/* =========================================================
   ГЕОГРАФІЧНИЙ ЕЛІАС — СТИЛІ
   1. Токени теми   2. База   3. Фон    4. Компоненти
   5. Екрани        6. Анімації  7. Адаптивність
   ========================================================= */

/* ---------- 1. ТОКЕНИ ---------- */
:root {
  --bg-1: #eaf6fb;
  --bg-2: #f6fbf7;
  --bg-3: #fdf8ec;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 76, 102, 0.14);
  --text: #0d2b38;
  --text-soft: #4b6a78;
  --accent: #00a7a7;
  --accent-2: #0f7ea8;
  --sun: #f6b93b;
  --glow: rgba(0, 167, 167, 0.35);
  --shadow: 0 18px 50px -18px rgba(10, 60, 80, 0.45);
  --radius: 28px;
  --radius-sm: 18px;
  --grid-line: rgba(15, 118, 150, 0.12);
  --globe-glow: rgba(0, 190, 190, 0.45);
  --ok: #1f9d55;
  --warn: #f39c12;
  --danger: #e04f4f;
  --tg-1: #2aabee;
  --tg-2: #229ed9;
}

body.dark {
  --bg-1: #050b1c;
  --bg-2: #071026;
  --bg-3: #030616;
  --surface: rgba(18, 34, 60, 0.55);
  --surface-strong: rgba(14, 28, 52, 0.82);
  --border: rgba(120, 220, 255, 0.18);
  --text: #eaf6ff;
  --text-soft: #9fc2d6;
  --accent: #35e6e0;
  --accent-2: #4aa8ff;
  --sun: #ffd166;
  --glow: rgba(53, 230, 224, 0.35);
  --shadow: 0 22px 60px -20px rgba(0, 0, 0, 0.8);
  --grid-line: rgba(120, 220, 255, 0.14);
  --globe-glow: rgba(80, 200, 255, 0.55);
}

/* ---------- 2. БАЗА ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 20% 0%, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  font-size: 20px;
  line-height: 1.45;
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.4s ease;
}

button { font-family: inherit; cursor: pointer; border: none; }
a { color: inherit; }

#app {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3vw, 40px);
  animation: fadeUp 0.5s ease both;
}
.screen.active { display: flex; }

/* ---------- 3. ФОН ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  background: radial-gradient(60% 60% at 50% 40%, var(--veil-color, transparent), transparent 70%);
}
.bg-veil.on { opacity: 1; }

/* ---------- 4. КОМПОНЕНТИ ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 60px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.28s ease, opacity 0.3s;
}
.btn:hover { transform: translateY(-2px) scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 40px -12px var(--glow), 0 0 0 0 var(--glow);
}
.btn-hero {
  min-height: 76px;
  padding: 18px 52px;
  font-size: clamp(20px, 2.8vw, 28px);
  animation: breathe 3.4s ease-in-out infinite;
}
.btn-ok { color: #fff; background: linear-gradient(135deg, #27ae60, #12946a); }
.btn-alt { color: var(--text); }
.btn-ghost { background: transparent; box-shadow: none; }

.theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  font-size: 26px;
  border-radius: 50%;
}

/* ---------- Соціальні посилання ---------- */
.social-ico { width: 22px; height: 22px; flex: 0 0 auto; }
.social-label { font-weight: 700; letter-spacing: 0.2px; }

/* Телеграм — лівий верхній кут */
.social-telegram {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 10px 30px -10px rgba(42, 171, 238, 0.7);
  text-decoration: none;
  font-size: 15px;
  animation: pulseTelegram 2.2s ease-in-out infinite;
}
.social-telegram:hover { transform: translateY(-2px) scale(1.04); }
.social-telegram:active { transform: scale(0.96); }

@keyframes pulseTelegram {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(42, 171, 238, 0.7), 0 0 0 0 rgba(42, 171, 238, 0.45); }
  50% { box-shadow: 0 10px 30px -10px rgba(42, 171, 238, 0.9), 0 0 0 12px rgba(42, 171, 238, 0); }
}

/* Інстаграм — під написом на головному екрані */
.social-instagram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 28px -10px rgba(214, 36, 159, 0.65);
  text-decoration: none;
  font-size: 15px;
  animation: pulseInstagram 2.4s ease-in-out infinite;
}
.social-instagram:hover { transform: translateY(-2px) scale(1.04); }
.social-instagram:active { transform: scale(0.96); }

@keyframes pulseInstagram {
  0%, 100% { box-shadow: 0 10px 28px -10px rgba(214, 36, 159, 0.65), 0 0 0 0 rgba(214, 36, 159, 0.42); }
  50% { box-shadow: 0 10px 28px -10px rgba(214, 36, 159, 0.85), 0 0 0 12px rgba(214, 36, 159, 0); }
}


/* ---------- 5. ЕКРАНИ ---------- */
/* Головний */
#screen-home { justify-content: center; text-align: center; gap: clamp(10px, 2vh, 22px); }

.globe-wrap {
  position: relative;
  width: clamp(190px, 34vh, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
  animation: floaty 8s ease-in-out infinite;
}
.globe-wrap:hover { transform: scale(1.06); }
.globe-img {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 50%;
  /* прибирає темний фон гіфки: лишається лише куля */
  clip-path: circle(45.5% at 50% 50%);
  filter: saturate(1.15) contrast(1.05);
}
.globe-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 44%, var(--globe-glow) 47%, transparent 66%);
  filter: blur(6px);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events: none;
}
.globe-orbit {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px dashed var(--border);
  animation: spin 40s linear infinite;
  pointer-events: none;
}

.title {
  margin: 0;
  font-size: clamp(28px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: clamp(1px, 0.5vw, 6px);
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--text-soft); font-size: clamp(16px, 2.2vw, 22px); font-weight: 600; }
.fineprint { color: var(--text-soft); font-size: 15px; white-space: pre-line; opacity: 0.85; }

/* Overlay (інструкція, модалки) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(4, 18, 30, 0.62);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(12px, 3vh, 32px) clamp(10px, 3vw, 28px);
}
.overlay.active { display: block; animation: fadeIn 0.35s ease both; }
.overlay-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vh, 20px);
  width: min(760px, 100%);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.step-card {
  width: 100%;
  padding: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.45s ease both;
}
.step-card h3 { margin: 0; font-size: clamp(19px, 2.6vw, 26px); }
.step-card p { margin: 0; color: var(--text-soft); font-size: clamp(16px, 2vw, 20px); }
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent-2);
  font-size: clamp(15px, 1.8vw, 18px);
}
.step-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 600;
}
.warn {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--danger);
}

/* Налаштування */
.section-title { font-size: clamp(20px, 3vw, 30px); font-weight: 800; margin: 6px 0 2px; text-align: center; }
.section-sub { color: var(--text-soft); text-align: center; font-size: clamp(15px, 1.9vw, 19px); margin-bottom: 8px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 2vw, 22px);
  width: min(1180px, 100%);
}
.cat-card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--cat), transparent 70%);
  opacity: 0.22;
  transition: opacity 0.35s;
}
.cat-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 26px 60px -20px var(--cat); }
.cat-card:hover::after { opacity: 0.4; }
.cat-card.selected { border-color: var(--cat); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 30%, transparent), var(--shadow); }
.cat-icon { font-size: clamp(38px, 5vw, 54px); line-height: 1; }
.cat-name { font-size: clamp(19px, 2.3vw, 24px); font-weight: 800; }
.cat-desc { color: var(--text-soft); font-size: clamp(14px, 1.7vw, 17px); }
.cat-count { font-weight: 700; color: var(--cat); font-size: clamp(14px, 1.7vw, 17px); }

.count-row { display: flex; gap: clamp(10px, 2vw, 20px); flex-wrap: wrap; justify-content: center; }
.count-btn {
  width: clamp(74px, 11vw, 104px);
  height: clamp(74px, 11vw, 104px);
  border-radius: 50%;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.28s, border-color 0.28s, background 0.3s, color 0.3s;
}
.count-btn:hover { transform: scale(1.08); }
.count-btn.selected { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }

.fade-block { transition: opacity 0.4s ease; }
.fade-block.locked { opacity: 0.35; pointer-events: none; }

/* Гра */
#screen-play { justify-content: flex-start; gap: clamp(10px, 2vh, 18px); padding-bottom: 108px; }

.hud {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.2vw, 24px);
}
.hud-left { display: flex; min-width: 0; align-items: center; gap: 12px; }
.hud-icon { font-size: clamp(28px, 4vw, 42px); flex-shrink: 0; }
.hud-title { font-weight: 800; font-size: clamp(17px, 2.1vw, 22px); }
.hud-desc { color: var(--text-soft); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hud-right { text-align: right; flex-shrink: 0; }
.hud-remaining { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--accent); line-height: 1; }
.hud-remaining-label { font-size: 13px; color: var(--text-soft); }
.bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.bar-label { grid-column: 1 / -1; font-size: 15px; color: var(--text-soft); }

.stage {
  width: min(760px, 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vh, 22px);
  text-align: center;
  padding: clamp(18px, 3vw, 34px);
  min-height: clamp(320px, 46vh, 520px);
}

.reveal-card {
  width: 100%;
  min-height: clamp(200px, 32vh, 320px);
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  white-space: pre-line;
  color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: breathe 4s ease-in-out infinite;
}
.reveal-card:hover { transform: scale(1.02); }

.word {
  font-size: clamp(30px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  animation: scaleIn 0.4s ease both;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.word-timer { font-size: 17px; color: var(--text-soft); }
.hint { font-size: clamp(14px, 1.8vw, 18px); color: var(--text-soft); max-width: 560px; }

.ring-wrap { position: relative; width: clamp(190px, 30vh, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.ring .track { stroke: color-mix(in srgb, var(--text) 12%, transparent); }
.ring .prog { stroke: var(--ok); transition: stroke-dashoffset 1s linear, stroke 0.6s ease; }
.ring-num { position: absolute; font-size: clamp(46px, 8vw, 74px); font-weight: 800; }
.ring-wrap.critical { animation: pulseScale 1s ease-in-out infinite; }
body.critical-bg::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(80% 80% at 50% 50%, rgba(224, 79, 79, 0.16), transparent 70%);
  animation: pulseOpacity 1s ease-in-out infinite;
}

.result-mark { font-size: clamp(64px, 12vw, 110px); animation: popIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.result-title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; }
.result-title.ok { color: var(--ok); }
.result-word { font-size: clamp(22px, 3.6vw, 34px); font-weight: 700; color: var(--text); }

.actions { display: flex; gap: clamp(10px, 2vw, 18px); flex-wrap: wrap; justify-content: center; }

.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(10px, 2vw, 22px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-strong);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.bottom-bar.active { display: flex; }
.bottom-bar .btn { min-height: 54px; padding: 10px 22px; font-size: 17px; }

/* Фінал */
.final-card { width: min(820px, 100%); padding: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: scaleIn 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.trophy { font-size: clamp(56px, 10vw, 92px); animation: floaty 4s ease-in-out infinite; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; }
.stat { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-strong); border: 1px solid var(--border); }
.stat-label { font-size: 14px; color: var(--text-soft); }
.stat-value { font-size: clamp(20px, 2.8vw, 26px); font-weight: 800; }
.quote { font-style: italic; color: var(--text-soft); font-size: clamp(16px, 2vw, 20px); }

.badge-card {
  width: 100%;
  padding: clamp(16px, 2.6vw, 26px);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--badge-c, var(--accent)), color-mix(in srgb, var(--badge-c, var(--accent)) 45%, #0b2740));
  box-shadow: 0 0 60px -12px var(--badge-c, var(--accent));
  animation: scaleIn 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both, glowPulse 3.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.badge-card::before {
  content: "";
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.22), transparent 40%);
  animation: spin 8s linear infinite;
}
.badge-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badge-medal { font-size: clamp(44px, 8vw, 68px); }
.badge-name { font-size: clamp(21px, 3.2vw, 30px); font-weight: 800; }
.badge-desc { font-size: clamp(15px, 1.9vw, 18px); opacity: 0.92; }

.tg-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--tg-1), var(--tg-2));
  box-shadow: 0 0 50px -10px var(--tg-1);
  animation: pulseScaleSoft 2.6s ease-in-out infinite;
  transition: transform 0.3s;
  flex-wrap: wrap;
  text-align: center;
}
.tg-card:hover { transform: scale(1.05); }
.tg-icon { font-size: clamp(30px, 5vw, 42px); }
.tg-text { font-weight: 800; font-size: clamp(17px, 2.2vw, 22px); }
.tg-link { font-size: clamp(15px, 1.9vw, 18px); opacity: 0.92; }

.gender-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; }

.page-footer { text-align: center; font-size: 13px; color: var(--text-soft); padding: 14px; white-space: pre-line; opacity: 0.8; }

#confetti { position: fixed; inset: 0; z-index: 55; pointer-events: none; }

/* ---------- 6. АНІМАЦІЇ ---------- */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94) } to { opacity: 1; transform: none } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.4) } 100% { opacity: 1; transform: scale(1) } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 14px 40px -12px var(--glow); transform: translateY(0) }
  50% { box-shadow: 0 22px 60px -10px var(--glow); transform: translateY(-3px) }
}
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.6 } 50% { opacity: 1 } }
@keyframes pulseScale { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }
@keyframes pulseScaleSoft { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.02) } }
@keyframes pulseOpacity { 0%, 100% { opacity: 0.35 } 50% { opacity: 1 } }
@keyframes glowPulse { 0%, 100% { filter: brightness(1) } 50% { filter: brightness(1.12) } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 7. АДАПТИВНІСТЬ ---------- */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .screen { padding-top: 68px; }
  #screen-home { padding-top: 24px; }
  .overlay { padding-top: 68px; }
  .theme-toggle { width: 48px; height: 48px; min-height: 48px; font-size: 22px; top: 10px; right: 10px; }
  .btn { min-height: 54px; padding: 12px 22px; font-size: 18px; }
  .btn-hero { min-height: 62px; padding: 14px 30px; }
  .step-card { border-radius: 20px; gap: 8px; }
  .overlay-inner { justify-content: flex-start; gap: 10px; }
  .stage { min-height: clamp(280px, 52vh, 460px); padding: 16px; }
  #screen-play { padding-bottom: 96px; }
  .bottom-bar .btn { min-height: 50px; padding: 8px 16px; font-size: 16px; }
  .hud-desc { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .globe-wrap { width: clamp(120px, 26vh, 180px); }
  .btn-hero { min-height: 56px; }
  .stage { min-height: auto; }
  .ring-wrap { width: clamp(130px, 34vh, 190px); }
}

/* Кнопка «Показати слово» — показує термін просто на місці кнопки */
.btn-peek { color: var(--text); border-style: dashed; }
.btn-peek.peeking {
  border-style: solid;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--accent, var(--text));
  background: color-mix(in srgb, var(--ok) 16%, transparent);
}
