
:root {
  --accent: #6366f1;
  --bg: #0f172a;
  --glass: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --text: #f8fafc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at top, #1e1b4b, #0f172a);
  color: var(--text);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-app {
  width: 100%;
  max-width: 420px;
  height: 90vh;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
}

.brand span {
  font-size: 0.75rem;
  opacity: 0.6;
}

.status-blob {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

#rules {
  padding: 8px;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.7;
}

.chat-viewport {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.sent {
  align-self: flex-end;
  background: var(--accent);
}

.received {
  align-self: flex-start;
  background: rgba(255,255,255,0.1);
}

.msg small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 4px;
}

.input-container {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--border);
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  outline: none;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

#picker-container {
  position: absolute;
  bottom: 80px;
  left: 10px;
  display: none;
  z-index: 99;
}
