/* ============================================================
   FIND COUNTRY — Futuristic Dark Theme
   Mobile-first. No emojis. Lucide icons.
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg:           #0a0e1a;
  --bg-surface:   #0f1628;
  --bg-card:      rgba(255,255,255,0.05);
  --bg-card-hover:rgba(255,255,255,0.08);
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(0, 212, 255, 0.3);

  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0, 212, 255, 0.15);
  --cyan-glow:    rgba(0, 212, 255, 0.4);
  --purple:       #7c3aed;
  --purple-dim:   rgba(124, 58, 237, 0.15);
  --purple-glow:  rgba(124, 58, 237, 0.45);
  --green:        #10b981;
  --green-glow:   rgba(16, 185, 129, 0.4);
  --gold:         #f59e0b;
  --gold-glow:    rgba(245, 158, 11, 0.4);
  --red:          #ef4444;

  --text-primary:   #e8eaf6;
  --text-secondary: #8892b0;
  --text-muted:     #4a5568;

  --font-heading: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --orb-size-mobile:  130px;
  --orb-size-tablet:  160px;
  --orb-size-desktop: 180px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Subtle starfield background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124,58,237,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(16,185,129,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }

/* ── Typography ── */
h1,h2,h3 { font-family: var(--font-heading); letter-spacing: 0.05em; }

/* ── Buttons Base ── */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition);
}
button:active { transform: scale(0.96); }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── Lucide Icon sizing ── */
[data-lucide] { width: 20px; height: 20px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Difficulty Badge */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}
.difficulty-badge .badge-icon { width: 12px; height: 12px; }
.difficulty-badge[data-diff="easy"]   { --badge-c: var(--green); background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: var(--green); }
.difficulty-badge[data-diff="medium"] { --badge-c: var(--gold);  background: rgba(245,158,11,0.12);  border-color: rgba(245,158,11,0.3);  color: var(--gold); }
.difficulty-badge[data-diff="hard"]   { --badge-c: var(--red);   background: rgba(239,68,68,0.12);   border-color: rgba(239,68,68,0.3);   color: var(--red); }

/* App Title */
.app-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  line-height: 1;
}
.title-find    { color: var(--text-secondary); font-weight: 400; margin-right: 4px; }
.title-country { color: var(--cyan); }

/* Score Panel */
.score-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-glow); }

.score-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.score-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.score-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

/* ============================================================
   MAIN GAME AREA
   ============================================================ */
.game-area {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 0;
  gap: 16px;
  overflow-y: auto;
}

/* ── Speech Bubble ── */
.speech-bubble-wrap {
  width: 100%;
  max-width: 480px;
}

.speech-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: var(--border);
  border-bottom: 0;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--bg-surface);
  border-bottom: 0;
  z-index: 1;
}

.speech-bubble.speaking {
  border-color: var(--purple-glow);
  box-shadow: 0 0 20px var(--purple-dim);
}
.speech-bubble.listening {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px var(--cyan-dim);
}

#speechText {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 400;
  text-align: center;
  min-height: 22px;
  transition: opacity 0.2s;
}

/* ── Orb ── */
.orb-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orb-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  animation: ringPulse 3s ease-in-out infinite;
  opacity: 0;
}
.ring-1 { width: calc(var(--orb-size-mobile) + 24px); height: calc(var(--orb-size-mobile) + 24px); animation-delay: 0s; }
.ring-2 { width: calc(var(--orb-size-mobile) + 50px); height: calc(var(--orb-size-mobile) + 50px); animation-delay: 0.6s; }
.ring-3 { width: calc(var(--orb-size-mobile) + 76px); height: calc(var(--orb-size-mobile) + 76px); animation-delay: 1.2s; }

@keyframes ringPulse {
  0%   { opacity: 0; transform: scale(0.92); }
  40%  { opacity: 0.45; }
  100% { opacity: 0; transform: scale(1.06); }
}

.orb {
  position: relative;
  width: var(--orb-size-mobile);
  height: var(--orb-size-mobile);
  border-radius: 50%;
  border: 2px solid rgba(0,212,255,0.25);
  background: radial-gradient(circle at 35% 35%, rgba(0,212,255,0.18), rgba(10,14,26,0.95));
  box-shadow:
    0 0 30px rgba(0,212,255,0.12),
    inset 0 0 30px rgba(0,212,255,0.06);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.orb::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 15%;
  width: 30%;
  height: 20%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.orb:hover {
  transform: scale(1.04);
  box-shadow: 0 0 50px rgba(0,212,255,0.25), inset 0 0 30px rgba(0,212,255,0.1);
}
.orb:active { transform: scale(0.97); }

.orb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.orb-icon-wrap { display: flex; align-items: center; justify-content: center; }
.orb-icon { width: 32px; height: 32px; color: var(--cyan); transition: var(--transition); }

.orb-status-text {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  opacity: 0.7;
}

/* Orb States */
.orb.state-listening {
  border-color: var(--cyan);
  box-shadow: 0 0 60px var(--cyan-glow), 0 0 100px rgba(0,212,255,0.1), inset 0 0 30px rgba(0,212,255,0.12);
  animation: orbListenPulse 1.5s ease-in-out infinite;
}
.orb.state-listening .orb-icon { color: var(--cyan); }
.orb.state-listening .orb-ring { border-color: var(--cyan-glow); }

.orb.state-speaking {
  border-color: var(--purple);
  box-shadow: 0 0 60px var(--purple-glow), inset 0 0 30px rgba(124,58,237,0.12);
}
.orb.state-speaking .orb-icon { color: var(--purple); animation: speakWave 0.6s ease-in-out infinite alternate; }

.orb.state-thinking {
  border-color: var(--gold);
  box-shadow: 0 0 40px var(--gold-glow), inset 0 0 20px rgba(245,158,11,0.08);
}
.orb.state-thinking .orb-icon { animation: spin 1.2s linear infinite; }

.orb.state-win {
  border-color: var(--gold);
  box-shadow: 0 0 80px var(--gold-glow), 0 0 120px rgba(245,158,11,0.2);
  animation: winBurst 0.5s ease-out;
}
.orb.state-win .orb-icon { color: var(--gold); }

@keyframes orbListenPulse {
  0%, 100% { box-shadow: 0 0 40px var(--cyan-glow), inset 0 0 20px rgba(0,212,255,0.1); }
  50%       { box-shadow: 0 0 80px rgba(0,212,255,0.6), inset 0 0 40px rgba(0,212,255,0.18); }
}

@keyframes speakWave {
  from { transform: scaleY(0.85); }
  to   { transform: scaleY(1.15); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes winBurst {
  0%   { transform: scale(0.95); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ── Text Input Fallback ── */
.text-input-wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-input-row {
  display: flex;
  gap: 8px;
}

.text-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.text-input::placeholder { color: var(--text-muted); }
.text-input:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 12px var(--cyan-dim);
}

.send-btn {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  flex-shrink: 0;
}
.send-btn:hover { background: rgba(0,212,255,0.22); }

.fallback-notice {
  font-size: 12px;
  color: var(--gold);
  text-align: center;
  opacity: 0.8;
}

/* ── Clues Section ── */
.clues-section {
  width: 100%;
  max-width: 480px;
  padding-bottom: 16px;
}

.clues-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.clue-count {
  margin-left: auto;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.clues-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Clue Card */
.clue-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: clueSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
  transition: border-color var(--transition);
}
.clue-card:hover { border-color: rgba(255,255,255,0.12); }

@keyframes clueSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.clue-card-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}
.clue-card-icon [data-lucide] { width: 15px; height: 15px; }

.clue-card-body { flex: 1; min-width: 0; }
.clue-card-label {
  font-size: 10px;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.clue-card-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.bottom-bar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.action-btn {
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  transition: var(--transition);
  min-height: 56px;
}
.action-btn [data-lucide] { width: 18px; height: 18px; }

.hint-btn:hover  { color: var(--cyan);   border-color: var(--border-glow); background: var(--cyan-dim); }
.skip-btn:hover  { color: var(--gold);   border-color: var(--gold-glow);   background: rgba(245,158,11,0.1); }
.help-btn:hover  { color: var(--purple); border-color: var(--purple-glow); background: var(--purple-dim); }

/* ============================================================
   OVERLAYS
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayFadeIn 0.25s ease both;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-card {
  width: 100%;
  max-width: 400px;
  max-height: 85dvh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cardSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Win Overlay */
.win-overlay .overlay-card { border-color: rgba(245,158,11,0.3); box-shadow: 0 0 60px rgba(245,158,11,0.15); }
.win-icon-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(245,158,11,0.15);
  border: 2px solid rgba(245,158,11,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  animation: winBurst 0.5s ease;
}
.win-icon-wrap [data-lucide] { width: 34px; height: 34px; }
.win-title  { font-size: 28px; color: var(--gold); }
.win-country { font-size: 18px; color: var(--text-primary); font-weight: 600; text-align: center; }
.win-score-gained {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  color: var(--cyan);
}
.win-score-gained [data-lucide] { width: 20px; height: 20px; color: var(--gold); }
.win-stats {
  font-size: 13px; color: var(--text-secondary);
  text-align: center; line-height: 1.6;
}

/* Skip / Reveal Overlay */
.skip-overlay .overlay-card { border-color: rgba(124,58,237,0.3); }
.skip-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 2px solid var(--purple-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
}
.skip-icon-wrap [data-lucide] { width: 28px; height: 28px; }
.skip-label  { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-heading); }
.skip-country { font-size: 24px; color: var(--text-primary); text-align: center; }
.skip-fact   { font-size: 13px; color: var(--text-secondary); text-align: center; line-height: 1.6; max-width: 300px; }

/* Scoreboard */
.scoreboard-header {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.scoreboard-header h2 { font-size: 16px; flex: 1; }
.scoreboard-header [data-lucide] { width: 20px; height: 20px; }
.close-btn {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.close-btn:hover { color: var(--red); border-color: rgba(239,68,68,0.3); }
.close-btn.small { width: 28px; height: 28px; min-width: 28px; }

.score-tabs {
  display: flex; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: 100%;
}
.score-tab {
  flex: 1; padding: 7px 10px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  min-height: unset;
  transition: var(--transition);
}
.score-tab.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--border-glow);
}

.scoreboard-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.score-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.score-rank {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700; width: 24px; text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.score-rank.gold   { color: #ffd700; }
.score-rank.silver { color: #c0c0c0; }
.score-rank.bronze { color: #cd7f32; }
.score-name  { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.score-pts   { font-family: var(--font-heading); font-size: 15px; color: var(--cyan); font-weight: 700; }
.score-meta  { font-size: 11px; color: var(--text-muted); }
.scoreboard-empty {
  text-align: center; padding: 24px;
  color: var(--text-muted); font-size: 14px; font-style: italic;
}

/* Help Modal */
.help-card { align-items: flex-start; max-height: 80dvh; }
.help-content { width: 100%; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.help-section {}
.help-section-title {
  font-size: 10px; font-family: var(--font-heading);
  color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.help-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.help-list li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.cmd {
  font-family: var(--font-heading); font-size: 11px;
  color: var(--text-primary); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 2px 7px; white-space: nowrap; flex-shrink: 0;
}

/* Buttons */
.primary-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cyan), rgba(0,212,255,0.7));
  color: #0a0e1a; font-weight: 700;
  font-size: 14px; font-family: var(--font-heading);
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
  min-height: 48px;
}
.primary-btn:hover { box-shadow: 0 6px 30px rgba(0,212,255,0.5); transform: translateY(-1px); }

.ghost-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
  min-height: 40px;
}
.ghost-btn:hover { border-color: rgba(239,68,68,0.4); color: var(--red); }

/* Browser Banner */
.browser-banner {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  color: var(--gold);
  font-size: 13px;
  max-width: calc(100% - 32px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   LOADING / BOOT STATE
   ============================================================ */
.boot-screen {
  position: fixed;
  inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
}
.boot-title {
  font-family: var(--font-heading);
  font-size: 28px; color: var(--cyan); letter-spacing: 0.15em;
}
.boot-loader {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ============================================================
   SCORE ANIMATION
   ============================================================ */
.score-pop {
  animation: scorePop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes scorePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); color: var(--gold); }
  100% { transform: scale(1); }
}

/* ============================================================
   RESPONSIVE — TABLET (600px+)
   ============================================================ */
@media (min-width: 600px) {
  .orb {
    width: var(--orb-size-tablet);
    height: var(--orb-size-tablet);
  }
  .ring-1 { width: calc(var(--orb-size-tablet) + 28px); height: calc(var(--orb-size-tablet) + 28px); }
  .ring-2 { width: calc(var(--orb-size-tablet) + 56px); height: calc(var(--orb-size-tablet) + 56px); }
  .ring-3 { width: calc(var(--orb-size-tablet) + 84px); height: calc(var(--orb-size-tablet) + 84px); }

  .orb-icon { width: 38px; height: 38px; }

  .game-area { padding: 24px 24px 0; gap: 20px; }

  .clues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .clues-section { max-width: 600px; }

  .top-bar { padding: 14px 24px; }
  .app-title { font-size: 18px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (900px+)
   ============================================================ */
@media (min-width: 900px) {
  .orb {
    width: var(--orb-size-desktop);
    height: var(--orb-size-desktop);
  }
  .ring-1 { width: calc(var(--orb-size-desktop) + 32px); height: calc(var(--orb-size-desktop) + 32px); }
  .ring-2 { width: calc(var(--orb-size-desktop) + 64px); height: calc(var(--orb-size-desktop) + 64px); }
  .ring-3 { width: calc(var(--orb-size-desktop) + 96px); height: calc(var(--orb-size-desktop) + 96px); }

  .game-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 24px;
    padding: 28px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .speech-bubble-wrap {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .orb-container {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    margin: 20px 0;
  }

  .text-input-wrap { grid-column: 1; grid-row: 3; max-width: 100%; }

  .clues-section {
    grid-column: 2;
    grid-row: 1 / 4;
    max-width: 100%;
    position: sticky;
    top: 16px;
  }

  .clues-grid { grid-template-columns: 1fr; }

  #speechText { font-size: 16px; }
}

/* ============================================================
   LANDSCAPE MOBILE
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 12px;
    overflow-y: auto;
  }
  .speech-bubble-wrap { grid-column: 1; grid-row: 1; }
  .orb-container { grid-column: 1; grid-row: 2; }
  .clues-section { grid-column: 2; grid-row: 1 / 3; overflow-y: auto; }
  .orb { width: 100px; height: 100px; }
  .ring-1 { width: 124px; height: 124px; }
  .ring-2 { width: 148px; height: 148px; }
  .ring-3 { width: 172px; height: 172px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (prefers-contrast: high) {
  :root {
    --border: rgba(255,255,255,0.3);
    --text-secondary: #c8ccd8;
  }
}
