/* Amareo — темна тема, великий кегль, максимум контрасту.
   Все розраховано на погляд збоку на 1-2 секунди. */

:root {
  --bg: #0d0f12;
  --panel: #171a1f;
  --line: #262b33;
  --text: #f2f4f7;
  --dim: #8b95a3;
  --accent: #ffd23f;
  --ok: #3ddc84;
  --err: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.screen { height: 100%; display: flex; flex-direction: column; }
[hidden] { display: none !important; }

/* ---------- екран налаштувань ---------- */

#setup { overflow-y: auto; align-items: center; padding: 24px 16px; }

.setup-card {
  width: 100%;
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.setup-card h1 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }
.sub { margin: 4px 0 28px; color: var(--dim); }

label {
  display: block;
  margin: 20px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}
.opt { font-weight: 400; color: var(--dim); }

textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: #0f1216;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }

button {
  font: inherit;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.primary {
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--accent);
  color: #14161a;
}
.primary:disabled { opacity: 0.5; cursor: default; }

.ghost {
  padding: 8px 14px;
  background: transparent;
  color: var(--dim);
  border-color: var(--line);
}
.ghost.danger { color: var(--err); }

.badge {
  margin: 18px 0 0;
  padding: 10px 14px;
  background: #14261a;
  border: 1px solid #1f4030;
  border-radius: 10px;
  color: var(--ok);
  font-size: 0.9rem;
}
.badge.missing { background: #2a2413; border-color: #4a3d15; color: var(--accent); }

.err { color: var(--err); margin-top: 14px; }
.hint-note { color: var(--dim); font-size: 0.9rem; margin-top: 20px; line-height: 1.5; }

/* ---------- жива сесія ---------- */

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.spacer { flex: 1; }

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}
.dot.listening { background: var(--ok); }
.dot.thinking { background: var(--accent); animation: pulse 0.9s ease-in-out infinite; }
.dot.calibrating { background: var(--accent); }
.dot.error { background: var(--err); }

@keyframes pulse { 50% { opacity: 0.25; } }

.banner {
  padding: 12px 16px;
  background: #2a2413;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  flex-shrink: 0;
}

.hints {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.idle { color: var(--dim); font-size: 1.1rem; margin: auto; text-align: center; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  flex-shrink: 0;
}
/* Старі картки лишаються доступними, але не конкурують за увагу */
.card.stale { opacity: 0.35; border-left-color: var(--line); }

.card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600;
  color: var(--dim);
  letter-spacing: -0.01em;
}

.bullet {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.bullet:last-child { margin-bottom: 0; }
.bullet::before { content: '· '; color: var(--accent); }

.caption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
  min-height: 40px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot.reconnecting { background: var(--accent); animation: pulse 0.6s ease-in-out infinite; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.overlay-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  text-align: center;
}
.overlay-card h2 { margin: 0 0 8px; font-size: 1.5rem; }
.overlay-card p { color: var(--dim); margin: 0; }

/* Ландшафтний планшет: тези можуть бути ще більшими */
@media (min-width: 900px) {
  .bullet { font-size: clamp(2rem, 3vw, 2.8rem); }
}
