/* =========================================================
   Bible Games — ambassadorofchrist.in/biblegames
   ========================================================= */
:root {
  --night: #0f0a33;
  --night-2: #1d1250;
  --violet: #6d28d9;
  --violet-2: #8b5cf6;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --ink: #1f1633;
  --muted: #6b6280;
  --line: #e7e2f0;
  --bg: #f6f3fb;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-bg: #e9f8ef;
  --bad: #dc2626;
  --bad-bg: #fdeceb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(41, 20, 90, .10);
  --shadow-lg: 0 20px 50px rgba(41, 20, 90, .18);
  --font-te: 'Mandali', 'Poppins', system-ui, sans-serif;
  --font-head: 'Ramabhadra', 'Poppins', system-ui, sans-serif;
  --font-en: 'Poppins', system-ui, sans-serif;
  --tone-purple: linear-gradient(135deg, #a855f7, #6d28d9);
  --tone-pink: linear-gradient(135deg, #fb7185, #db2777);
  --tone-blue: linear-gradient(135deg, #60a5fa, #2563eb);
  --tone-green: linear-gradient(135deg, #34d399, #059669);
  --tone-gold: linear-gradient(135deg, #fcd34d, #f59e0b);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-te);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
button { font: inherit; }
h1, h2, h3 { line-height: 1.3; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.ic { flex-shrink: 0; vertical-align: middle; }
.hidden { display: none !important; }
.en { font-family: var(--font-en); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 10, 51, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: cover; }
.brand-logo--fallback { display: grid; place-items: center; color: var(--violet); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-script { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 24px; color: var(--gold); font-style: italic; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav > a, .nav-drop-btn {
  color: #e9e5ff; text-decoration: none; padding: 8px 12px; border-radius: 10px;
  font-size: 15px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.site-nav > a:hover, .nav-drop-btn:hover, .site-nav .is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-mega { color: var(--gold) !important; }
.nav-main { opacity: .8; font-size: 14px !important; }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-drop-menu a:hover { background: var(--bg); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--night); padding: 8px 16px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-drop-menu { position: static; display: flex; background: transparent; box-shadow: none; padding: 0 0 0 12px; }
  .nav-drop-menu a { color: #cfc8f5; }
  .nav-drop-menu a:hover { background: rgba(255, 255, 255, .06); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow-x: clip; overflow-y: visible; color: #fff;
  background:
    radial-gradient(ellipse at 78% 78%, rgba(251, 191, 36, .55), transparent 45%),
    radial-gradient(ellipse at 70% 100%, rgba(244, 114, 182, .45), transparent 55%),
    linear-gradient(180deg, #0f0a33 0%, #24135e 38%, #5b2a86 64%, #b84d7a 86%, #f08a4b 100%);
  padding: 72px 0 150px;
}
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 10, 51, .55), rgba(15, 10, 51, .25) 60%, rgba(15, 10, 51, .1)); }
.hero-stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 52% 22%, #fff, transparent), radial-gradient(1px 1px at 66% 12%, #fff, transparent),
  radial-gradient(1px 1px at 85% 6%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 28%, #fff, transparent),
  radial-gradient(1px 1px at 22% 36%, #fff, transparent), radial-gradient(1px 1px at 44% 40%, #fff, transparent);
  opacity: .7; pointer-events: none; }
.hero-cross { overflow: visible; position: absolute; right: 7%; bottom: 40px; width: 210px; height: 330px; opacity: .95; pointer-events: none; }
.hero-notes { position: absolute; left: 2%; top: 26%; width: 220px; opacity: .22; pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--font-en); font-size: 13px; letter-spacing: .4px;
}
.hero h1 { font-family: var(--font-head); font-size: clamp(34px, 6vw, 58px); margin: 18px 0 6px; font-weight: 400; text-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
.hero h1 .gold { display: block; color: var(--gold); }
.hero-sub { font-family: var(--font-en); font-weight: 600; letter-spacing: 1.5px; font-size: clamp(15px, 2.2vw, 20px); margin: 10px 0 28px; opacity: .95; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.hero-chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.hero-chip b { color: var(--gold); font-family: var(--font-en); }

/* Search */
.search { position: relative; max-width: 700px; margin: 0 auto; }
.search input {
  width: 100%; height: 64px; border-radius: 999px; border: 0; padding: 0 76px 0 28px;
  font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.search input:focus { outline: 3px solid rgba(251, 191, 36, .7); }
.search-btn {
  position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); text-align: left; overflow: hidden; z-index: 20; max-height: 360px; overflow-y: auto;
}
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.is-focus { background: var(--bg); }
.search-results small { color: var(--muted); font-family: var(--font-en); }

/* ---------- Game cards (overlapping hero like the main site) ---------- */
.game-cards { position: relative; margin-top: -110px; z-index: 5; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px; color: #fff; text-decoration: none;
  min-height: 190px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); }
.game-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.game-card .gc-top { display: flex; align-items: center; gap: 16px; }
.gc-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.gc-title { font-family: var(--font-head); font-size: 24px; line-height: 1.2; }
.gc-en { font-family: var(--font-en); font-weight: 700; font-size: 13px; opacity: .85; letter-spacing: .5px; }
.gc-desc { font-size: 15px; opacity: .95; }
.gc-cta { margin-top: auto; font-family: var(--font-en); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.tone-purple { background: var(--tone-purple); }
.tone-pink { background: var(--tone-pink); }
.tone-blue { background: var(--tone-blue); }
.tone-green { background: var(--tone-green); }
.tone-gold { background: var(--tone-gold); color: #3b2500; }

@media (max-width: 980px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-card { min-height: 160px; padding: 18px 14px; border-radius: 20px; }
  .gc-icon { width: 46px; height: 46px; border-radius: 14px; }
  .gc-title { font-size: 19px; }
  .gc-desc { display: none; }
  .game-card .gc-top { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.link-more { font-family: var(--font-en); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.page-hero {
  color: #fff; padding: 48px 0 56px;
  background: radial-gradient(ellipse at 85% 120%, rgba(251, 191, 36, .45), transparent 50%), linear-gradient(160deg, #0f0a33, #3b1a78 70%, #7a2f84);
}
.page-hero h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 5vw, 44px); margin: 8px 0; }
.page-hero p { margin: 0; opacity: .9; max-width: 720px; }
.crumbs { font-family: var(--font-en); font-size: 13px; opacity: .8; }
.crumbs a { color: #fff; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 16px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; box-shadow: 0 8px 20px rgba(109, 40, 217, .3);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--tone-gold); color: #3b2500; box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.btn-ghost { background: #fff; color: var(--violet); border: 1px solid var(--line); box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--violet); }
.pill-live { background: #fee2e2; color: #b91c1c; }
.pill-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: pulse 1.2s infinite; }
.pill-up { background: #fef3c7; color: #92400e; }
.pill-closed { background: #e5e7eb; color: #374151; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Mega banner ---------- */
.mega-banner {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 34px;
  background: radial-gradient(circle at 95% 0%, rgba(251, 191, 36, .45), transparent 45%), linear-gradient(135deg, #1d1250, #4c1d95 60%, #7e22ce);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; box-shadow: var(--shadow-lg);
}
.mega-banner h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); margin: 10px 0 8px; }
.mega-banner p { margin: 0 0 16px; opacity: .9; }
.mega-prizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mega-prizes span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.rounds-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.round-dot { font-family: var(--font-en); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.round-dot.is-live { background: #dc2626; }
.round-dot.is-closed { background: rgba(255, 255, 255, .25); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd-box { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 14px 6px; text-align: center; }
.cd-num { display: block; font-family: var(--font-en); font-weight: 800; font-size: 32px; line-height: 1; color: var(--gold); }
.cd-label { font-size: 13px; opacity: .85; }
.countdown-title { text-align: center; margin-bottom: 10px; font-weight: 600; }
@media (max-width: 860px) { .mega-banner { grid-template-columns: 1fr; padding: 24px 18px; } }

/* ---------- Books ---------- */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 8px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tab.is-active { background: var(--violet); color: #fff; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.book-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .15s ease;
}
.book-tile:hover { border-color: var(--violet-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.book-num { font-family: var(--font-en); font-size: 12px; color: var(--muted); font-weight: 600; }
.book-te { font-weight: 700; font-size: 17px; line-height: 1.35; }
.book-en { font-family: var(--font-en); font-size: 12px; color: var(--muted); }
.book-meta { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.book-tile.is-soon { opacity: .6; }
.book-badge { font-family: var(--font-en); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ede9fe; color: var(--violet); }
.book-badge.done { background: var(--ok-bg); color: var(--ok); }
.book-tile.ot { border-top: 4px solid #a855f7; }
.book-tile.nt { border-top: 4px solid #3b82f6; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.filter-row .input { max-width: 300px; }

/* ---------- Verse of the day / misc ---------- */
.votd { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff7e6, #fff); border: 1px solid #fde68a; }
.votd blockquote { font-size: 21px; margin: 12px 0; line-height: 1.7; }
.votd cite { font-style: normal; font-weight: 700; color: #b45309; }
.lb-mini li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lb-mini ol { list-style: none; padding: 0; margin: 0; }
.rank-badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-en); font-weight: 700; font-size: 14px; background: var(--bg); flex-shrink: 0; }
.rank-1 { background: #fde68a; color: #92400e; }
.rank-2 { background: #e5e7eb; color: #374151; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--bg); border-radius: 14px; padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-en); font-size: 26px; color: var(--violet); }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Game shell (quiz, verse order, word search, who am i) ---------- */
.game-wrap { max-width: 760px; margin: -32px auto 0; position: relative; z-index: 2; padding: 0 16px 56px; }
.game-panel { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 28px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.game-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--violet), var(--gold), var(--violet)); }
@media (max-width: 520px) { .game-panel { padding: 20px 16px; border-radius: 18px; } }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.game-count { font-family: var(--font-en); font-weight: 700; color: var(--violet); }
.game-score { font-family: var(--font-en); font-weight: 700; }
.timer { font-family: var(--font-en); font-weight: 700; padding: 6px 12px; border-radius: 10px; background: var(--bg); }
.timer.is-low { background: var(--bad-bg); color: var(--bad); animation: pulse 1s infinite; }
.progress { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet-2), var(--gold)); transition: width .3s ease; }
.level-tag { display: inline-block; font-family: var(--font-en); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.level-tag.easy { background: #dcfce7; color: #166534; }
.level-tag.medium { background: #fef3c7; color: #92400e; }
.level-tag.hard { background: #fee2e2; color: #991b1b; }
.q-text { font-size: 21px; font-weight: 700; line-height: 1.55; margin: 4px 0 6px; }
.q-hint { font-size: 14px; color: var(--violet); margin: 0 0 10px; }
.options { display: grid; gap: 10px; margin: 16px 0; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; color: var(--ink); transition: .12s ease;
}
.opt:hover:not(:disabled) { border-color: var(--violet-2); background: #faf7ff; }
.opt.is-selected { border-color: var(--violet); background: #f3edff; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt:disabled { cursor: default; }
.opt-key { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-family: var(--font-en); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.opt-key.square { border-radius: 8px; }
.opt.is-selected .opt-key { background: var(--violet); color: #fff; }
.feedback { border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; font-weight: 600; }
.feedback.ok { background: var(--ok-bg); color: var(--ok); }
.feedback.bad { background: var(--bad-bg); color: var(--bad); }
.ref { display: inline-block; font-size: 14px; background: #f3edff; color: var(--violet); padding: 4px 10px; border-radius: 8px; margin-top: 6px; font-weight: 600; }
.ref::before { content: "📖 "; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 150px; }

/* Result */
.result-hero { text-align: center; }
.result-score {
  border-radius: 20px; padding: 24px 16px; color: #fff; margin: 16px 0;
  background: radial-gradient(circle at 90% -10%, rgba(251, 191, 36, .4), transparent 60%), linear-gradient(160deg, #6d28d9, #3b1a78);
}
.result-score .big { font-family: var(--font-en); font-weight: 800; font-size: 52px; line-height: 1; }
.result-score .big small { font-size: 22px; color: #fde68a; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.result-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 4px; }
.result-stats b { display: block; font-family: var(--font-en); font-size: 20px; }
.result-stats span { font-size: 12px; opacity: .85; }
@media (max-width: 520px) { .result-stats { grid-template-columns: repeat(2, 1fr); } }
.review-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.review-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.review-q { font-weight: 700; margin-bottom: 8px; }
.review-opt { padding: 7px 10px; border-radius: 9px; margin-bottom: 4px; background: var(--bg); font-size: 15px; }
.review-opt.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.review-opt.bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.tiny { font-size: 13px; color: var(--muted); }

/* Start screen */
.start-screen { text-align: center; }
.start-icon { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; }
.start-screen h2 { font-family: var(--font-head); font-weight: 400; font-size: 28px; margin: 6px 0; }
.rules { text-align: left; background: var(--bg); border-radius: 14px; padding: 14px 18px 14px 36px; margin: 16px 0; }
.rules li { margin: 4px 0; }
.choice-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.choice { border: 1.5px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.choice.is-active { border-color: var(--violet); background: #f3edff; color: var(--violet); }

/* ---------- Verse order ---------- */
.vo-ref { font-weight: 700; color: #b45309; }
.vo-answer {
  min-height: 120px; border: 2px dashed #d8cdf0; border-radius: 16px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px;
  align-content: flex-start; background: #fcfaff; margin: 14px 0;
}
.vo-answer.is-correct { border-color: var(--ok); background: var(--ok-bg); border-style: solid; }
.vo-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 52px; }
.tile {
  padding: 10px 14px; border-radius: 12px; border: 0; cursor: pointer; font-size: 17px; font-weight: 600;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #3b1a78; box-shadow: 0 2px 0 #d6ccf5; transition: transform .1s ease;
}
.tile:active { transform: scale(.96); }
.vo-answer .tile { background: #fff; box-shadow: 0 2px 0 #e5e0f0; border: 1px solid var(--line); }
.tile.ok { background: var(--ok-bg); color: var(--ok); box-shadow: none; border-color: #bbf7d0; }
.tile.bad { background: var(--bad-bg); color: var(--bad); box-shadow: none; border-color: #fecaca; }
.vo-placeholder { color: var(--muted); font-size: 15px; margin: auto; }

/* ---------- Word search ---------- */
.ws-layout { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
@media (max-width: 720px) { .ws-layout { grid-template-columns: 1fr; } }
.ws-grid {
  display: grid; gap: 4px; user-select: none; -webkit-user-select: none; touch-action: none;
  background: #f3effb; padding: 8px; border-radius: 16px; aspect-ratio: 1 / 1; width: 100%;
}
.ws-cell {
  display: grid; place-items: center; background: #fff; border-radius: 8px; font-weight: 700; color: #2e1f55;
  font-size: clamp(13px, 3.4vw, 22px); line-height: 1; aspect-ratio: 1 / 1; cursor: pointer; transition: background .1s;
}
.ws-grid.en .ws-cell { font-family: var(--font-en); }
.ws-cell.is-sel { background: #c4b5fd; color: #fff; }
.ws-cell.is-found { color: #fff; }
.ws-words { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-word { padding: 6px 12px; border-radius: 10px; background: var(--bg); font-weight: 600; font-size: 15px; }
.ws-word.is-found { text-decoration: line-through; opacity: .7; color: #fff; }

/* ---------- Who am I ---------- */
.clues { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.clues li { padding: 12px 16px; border-radius: 14px; background: #f5f3ff; border-left: 4px solid var(--violet-2); animation: slideIn .3s ease; }
.clues li b { font-family: var(--font-en); color: var(--violet); margin-right: 6px; }
.points-meter { display: flex; gap: 6px; }
.points-meter i { width: 26px; height: 8px; border-radius: 99px; background: var(--gold); }
.points-meter i.off { background: var(--line); }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Mega quiz ---------- */
.mega-wrap { max-width: 640px; }
.form-row { margin-bottom: 14px; text-align: left; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.form-err { color: var(--bad); font-size: 14px; min-height: 1em; margin-top: 4px; }
.alert { border-radius: 14px; padding: 12px 16px; margin: 12px 0; background: #fef3c7; color: #92400e; font-weight: 600; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.timer-group { display: flex; gap: 8px; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--violet); border-radius: 50%; margin: 20px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.window-box { background: var(--bg); border-radius: 14px; padding: 12px; text-align: center; margin-top: 14px; }
.countdown.light .cd-box { background: var(--bg); border-color: var(--line); }
.countdown.light .cd-num { color: var(--violet); }
.countdown.light .cd-label { color: var(--muted); }
.round-list { display: grid; gap: 12px; }
.round-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; flex-wrap: wrap; }
.round-row h3 { margin: 0 0 2px; font-size: 18px; }
.round-row .when { font-size: 14px; color: var(--muted); }
.round-row .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin: 10px 0 24px; }
.podium-col { text-align: center; background: #fff; border-radius: 20px 20px 12px 12px; padding: 18px 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.podium-col.p1 { padding-top: 30px; background: linear-gradient(180deg, #fffbeb, #fff); border-color: #fde68a; }
.podium-medal { font-size: 36px; line-height: 1; }
.podium-name { font-weight: 700; margin: 6px 0 2px; word-break: break-word; }
.podium-score { font-family: var(--font-en); font-weight: 800; color: var(--violet); font-size: 20px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
table.lb { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lb th, table.lb td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.lb th { background: var(--bg); font-size: 13px; color: var(--muted); font-weight: 700; }
table.lb td.num { font-family: var(--font-en); }
table.lb tr.is-me { background: #fef9c3; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #cfc8f5; padding: 48px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.footer-grid a { display: block; color: #cfc8f5; text-decoration: none; padding: 3px 0; font-size: 15px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { font-family: var(--font-en); font-weight: 800; color: #fff; font-size: 20px; }
.footer-verse { font-size: 15px; opacity: .85; }
.footer-verse span { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 16px; font-size: 13px; font-family: var(--font-en); opacity: .7; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Admin ---------- */
.admin table.lb td { white-space: normal; vertical-align: top; }
.admin .card + .card { margin-top: 16px; }
.admin-body { padding-top: 24px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.admin-nav a, .admin-nav button {
  color: #e9e5ff; text-decoration: none; padding: 7px 14px; border-radius: 10px; font: inherit; font-size: 15px;
  background: rgba(255, 255, 255, .08); border: 0; cursor: pointer;
}
.admin-nav a.is-active, .admin-nav a:hover, .admin-nav button:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.inline-form { display: inline; margin: 0; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.admin-series-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-series-head h2 { margin: 0; font-size: 22px; }
.admin-series-head p { margin: 4px 0 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-form h3 { margin: 18px 0 8px; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
select.input { appearance: auto; }
textarea.input { resize: vertical; }
.input.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.gen-box { border: 1.5px dashed #c4b5fd; border-radius: 14px; padding: 8px 16px 14px; margin: 12px 0 0; background: #faf7ff; }
.gen-box legend { padding: 0 6px; }
.danger-zone { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.q-count { background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 10px 16px; min-width: 120px; }
.q-count.short { background: var(--bad-bg); color: var(--bad); }
.q-count b { display: block; font-family: var(--font-en); font-size: 26px; line-height: 1.1; }
.q-count span { font-size: 13px; }
.q-preview { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.q-preview summary { cursor: pointer; font-weight: 600; }
.q-preview .review-opt:first-of-type { margin-top: 10px; }
@media (max-width: 640px) {
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .admin-actions .btn { flex: 1 1 auto; }
}

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* =========================================================
   Home bands, motion and phone layout (v2)
   ========================================================= */
body { background: linear-gradient(180deg, #f6f3fb 0%, #fbf8ff 40%, #f6f3fb 100%); }

/* Section bands (home) */
.band { position: relative; padding: 72px 0; overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; }
.band-white { background: #fff; }
.band-lilac {
  background:
    radial-gradient(rgba(124, 58, 237, .09) 1.2px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f3edff 0%, #fdf2f8 100%);
}
.band-steps { background: linear-gradient(180deg, transparent 0%, #fff 60%); padding-top: 56px; }
.band-night {
  color: #fff;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(139, 92, 246, .45), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(251, 191, 36, .28), transparent 50%),
    linear-gradient(180deg, #0f0a33, #1d1250 60%, #2a1462);
}
.band-sunrise { background: linear-gradient(135deg, #5b21b6 0%, #a21caf 45%, #db2777 70%, #f59e0b 100%); color: #fff; }
.band-stars, .hero-stars--2 {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff, transparent), radial-gradient(1px 1px at 25% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 30%, #fff, transparent), radial-gradient(1px 1px at 58% 82%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, #fff, transparent), radial-gradient(1px 1px at 88% 60%, #fff, transparent),
    radial-gradient(1px 1px at 95% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 15% 88%, #fff, transparent);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: blobFloat 16s ease-in-out infinite alternate; }
.blob-1 { width: 380px; height: 380px; background: #c4b5fd; top: -120px; right: -100px; }
.blob-2 { width: 320px; height: 320px; background: #fbcfe8; bottom: -120px; left: -80px; animation-delay: -6s; }
@keyframes blobFloat { to { transform: translate(-40px, 50px) scale(1.15); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px;
  font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  background: #ede9fe; color: var(--violet); margin-bottom: 8px;
}
.eyebrow-gold { background: rgba(251, 191, 36, .16); color: var(--gold); border: 1px solid rgba(251, 191, 36, .35); }
.eyebrow-light { background: rgba(255, 255, 255, .18); color: #fff; }
.band .section-head h2, .band-head h2 { position: relative; padding-bottom: 10px; }
.band .section-head h2::after, .band-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--violet-2), var(--gold));
}
.section-head.center h2::after, .band-head.center h2::after { left: 50%; transform: translateX(-50%); }
.band-head { margin-bottom: 28px; }
.band-head h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; color: var(--gold); }
.band-head p { margin: 0; opacity: .85; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; background: #fff; border-radius: 22px; padding: 26px 22px 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(109, 40, 217, .25); }
.step-num { position: absolute; right: 18px; top: 6px; font-family: var(--font-en); font-weight: 800; font-size: 64px; line-height: 1; color: #f1ecfb; }
.step h3 { position: relative; margin: 14px 0 4px; font-size: 20px; }
.step p { position: relative; margin: 0; color: var(--muted); font-size: 15px; }

/* Mega banner on the dark band */
.band-night .mega-banner {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.band-night .mega-banner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, #fbbf24 80%, #a78bfa 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --ang: 360deg; } }
.mega-title { font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0 8px; }
.countdown .cd-box:last-child .cd-num { animation: tickPulse 1s ease-in-out infinite; }
@keyframes tickPulse { 0% { transform: scale(1); } 15% { transform: scale(1.12); } 40% { transform: scale(1); } }

/* Book tiles on lilac */
.band-lilac .book-tile { box-shadow: 0 4px 14px rgba(41, 20, 90, .06); }
.book-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.book-tile:hover { transform: translateY(-4px) rotate(-.6deg); }

/* Verse of the day + leaderboard on the sunrise band */
.band-sunrise .votd {
  position: relative; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 24px; padding: 28px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow: hidden;
}
.band-sunrise .votd::before { content: "\201C"; position: absolute; right: 18px; top: -20px; font-size: 150px; line-height: 1; font-family: Georgia, serif; opacity: .18; }
.band-sunrise .votd blockquote { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.75; margin: 14px 0 10px; }
.band-sunrise .votd cite { color: #fde68a; font-style: normal; font-weight: 700; }
.btn-light { background: #fff; color: var(--violet); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.lb-mini { background: #fff; color: var(--ink); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lg); }
.lb-mini-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lb-mini-head h2 { margin: 0; font-size: 24px; display: flex; gap: 8px; align-items: center; }
.lb-mini-head .ic { color: var(--gold-2); }
.lb-mini-sub { color: var(--muted); margin: 6px 0; }
.lb-empty { text-align: center; color: var(--muted); padding: 28px 10px 10px; }
.lb-empty-icon { display: block; font-size: 46px; margin-bottom: 8px; animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-8px); } }

/* Progress tiles */
.stat { position: relative; overflow: hidden; color: #fff; padding: 20px 14px; border-radius: 20px; box-shadow: var(--shadow); transition: transform .2s ease; }
.stat.tone-purple { background: var(--tone-purple); }
.stat.tone-blue { background: var(--tone-blue); }
.stat.tone-pink { background: var(--tone-pink); }
.stat.tone-gold { background: var(--tone-gold); }
.stat:hover { transform: translateY(-3px); }
.stat b { color: #fff; font-size: 34px; margin-top: 6px; }
.stat span { color: rgba(255, 255, 255, .92); }
.stat.tone-gold, .stat.tone-gold b, .stat.tone-gold span { color: #3b2500; }
.stat::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -40px; top: -40px; background: rgba(255, 255, 255, .15); }

/* FAQ */
.faq details { position: relative; transition: box-shadow .2s ease, border-color .2s ease; box-shadow: 0 2px 10px rgba(41, 20, 90, .04); }
.faq details[open] { border-color: #c4b5fd; box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-en); font-size: 22px; color: var(--violet); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }

/* Final call to action */
.cta-band {
  padding: 56px 0; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(251, 191, 36, .35), transparent 40%), linear-gradient(120deg, #4c1d95, #7e22ce 60%, #be185d);
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 4px; }
.cta-inner p { margin: 0; opacity: .9; }
.is-home .site-footer { margin-top: 0; }

/* ---------- Motion ---------- */
/* Scroll reveal: hidden only after app.js marks the page, so content never stays invisible without JS. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-on [data-reveal].is-in:hover { transition-delay: 0s; }
.reveal-on .book-tile.is-in:hover { transform: translateY(-4px) rotate(-.6deg); }
.reveal-on .game-card.is-in:hover, .reveal-on .step.is-in:hover { transform: translateY(-4px); }

/* Hero entrance + ambient motion */
.hero-inner > * { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; }
.hero-inner > :nth-child(5) { animation-delay: .4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
.hero-stars { animation: twinkle 3.5s ease-in-out infinite alternate; }
.hero-stars--2 { animation: twinkle 2.6s ease-in-out infinite alternate-reverse; background-position: 30px 40px; }
.band-stars { animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .85; } }
.hero-cross { overflow: visible; }
.hero-glow { transform-box: fill-box; transform-origin: center; animation: glowPulse 5s ease-in-out infinite; }
@keyframes glowPulse { 50% { transform: scale(1.12); opacity: .75; } }
.hero-notes { width: 110px; top: 30%; left: 4%; opacity: .16; animation: floatY 6s ease-in-out infinite; }
.hero h1 .gold { background: linear-gradient(90deg, #fbbf24, #fde68a, #f59e0b, #fbbf24); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldShift 5s linear infinite; }
@keyframes goldShift { to { background-position: 200% center; } }

/* Game cards: lift, light sweep, icon bounce */
.game-card::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg);
}
.game-card:hover::before { animation: sweep .8s ease; }
.game-card:hover { box-shadow: 0 26px 50px rgba(41, 20, 90, .28); }
.game-card:hover .gc-icon { animation: bounce .6s ease; }
.gc-cta .ic { transition: transform .2s ease; }
.game-card:hover .gc-cta .ic { transform: translateX(4px); }
@keyframes sweep { to { left: 130%; } }
@keyframes bounce { 30% { transform: translateY(-6px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } }

/* Buttons */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  animation: sweep 3.2s ease-in-out infinite;
}
.btn:active { transform: scale(.97); }

/* Game screens: gentle entrance for each screen, feedback on answers */
[data-screen]:not(.hidden) { animation: fadeUp .45s ease both; }
.opt { transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.opt:active:not(:disabled) { transform: scale(.98); }
.opt.is-correct { animation: pop .35s ease; }
.opt.is-wrong { animation: shake .4s ease; }
@keyframes pop { 50% { transform: scale(1.03); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.page-hero h1, .page-hero p { animation: fadeUp .7s ease both; }
.page-hero p { animation-delay: .1s; }

/* ---------- Phone layout ---------- */
@media (max-width: 920px) {
  .header-inner { min-height: 60px; }
  .site-nav { top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
  .site-nav > a, .nav-drop-btn { padding: 12px; font-size: 16px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; padding: 18px; }
  .step-icon { grid-row: span 2; }
  .step h3 { margin: 2px 0; font-size: 18px; }
  .step-num { font-size: 44px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-top { font-size: 13px; }
  .brand-script { font-size: 20px; }
  .hero { padding: 44px 0 128px; }
  .hero h1 { margin-top: 14px; }
  .hero-sub { letter-spacing: .5px; margin-bottom: 22px; }
  .hero-cross { width: 110px; height: 172px; right: -14px; bottom: 96px; opacity: .45; }
  .hero-notes { display: none; }
  .search input { height: 56px; padding: 0 64px 0 20px; font-size: 16px; }
  .search-btn { width: 42px; height: 42px; top: 7px; right: 7px; }
  .hero-chips { gap: 8px; }
  .hero-chip { font-size: 13px; padding: 5px 12px; }
  .band { padding: 48px 0; }
  .band-steps { padding-top: 36px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 18px; }
  .card { padding: 18px; }
  .page-hero { padding: 30px 0 46px; }
  .page-hero h1 { font-size: 28px; }
  .game-wrap { margin-top: -26px; padding-bottom: 40px; }
  .q-text { font-size: 19px; }
  .opt { padding: 12px 13px; font-size: 16px; }
  .actions .btn { min-width: 0; }
  .mega-banner { border-radius: 22px; }
  .band-night .mega-banner { padding: 22px 16px; }
  .countdown { gap: 6px; }
  .cd-box { padding: 10px 2px; border-radius: 12px; }
  .cd-num { font-size: 24px; }
  .cd-label { font-size: 12px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .band-sunrise .votd, .lb-mini { padding: 20px 18px; border-radius: 20px; }
  .stat { padding: 16px 10px; }
  .stat b { font-size: 28px; }
  .ws-grid { gap: 3px; padding: 5px; border-radius: 12px; }
  .ws-cell { border-radius: 6px; }
  .podium { gap: 8px; }
  .podium-col { padding: 14px 6px; }
  .podium-medal { font-size: 28px; }
  .podium-score { font-size: 17px; }
  table.lb th, table.lb td { padding: 10px; font-size: 14px; }
  .round-row { padding: 14px; }
  .round-row .btns, .round-row .btns .btn { width: 100%; }
  .footer-grid { gap: 20px; }
}
@media (max-width: 380px) {
  .game-grid { gap: 10px; }
  .gc-title { font-size: 17px; }
  .gc-en { font-size: 11px; }
  .book-te { font-size: 15px; }
}

/* ---------- Touch & small-screen polish ---------- */
html { -webkit-tap-highlight-color: transparent; }
button, .btn, .choice, .opt, .tile, .tab, a { touch-action: manipulation; }
.input, select.input, textarea.input { font-size: 16px; }              /* stops iOS zooming into fields */
.btn, .choice, .opt, .tab, .site-nav > a, .nav-drop-btn { min-height: 44px; }
.btn-sm { min-height: 38px; }
.tile { min-height: 44px; }
.site-header { padding-top: env(safe-area-inset-top); }
.wrap, .game-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.site-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.vo-answer, .vo-pool { -webkit-user-select: none; user-select: none; }
.q-text, .opt span, .review-q, .podium-name, td { overflow-wrap: anywhere; }
img, svg { max-width: 100%; }

@media (max-width: 520px) {
  .game-wrap { padding-left: 10px; padding-right: 10px; }
  .game-panel { padding: 18px 12px; }
  .ws-grid { margin: 0 -6px; width: calc(100% + 12px); padding: 6px; gap: 3px; border-radius: 12px; }
  .ws-cell { font-size: clamp(12px, 3.7vw, 20px); border-radius: 6px; }
  .ws-word { font-size: 14px; padding: 5px 10px; }
  .choice-row { gap: 6px; }
  .choice { padding: 8px 12px; font-size: 15px; }
  .vo-answer { min-height: 96px; padding: 10px; }
  .tile { padding: 9px 12px; font-size: 16px; }
  .clues li { padding: 10px 12px; }
  .game-top { gap: 8px; }
  .actions .btn { flex: 1 1 100%; }                                     /* full-width, easy-thumb buttons */
  .result-score .big { font-size: 44px; }
}
@media (max-width: 360px) {
  .brand-top { font-size: 12px; }
  .brand-script { font-size: 18px; }
  .hero h1 { font-size: 30px; }
  .gc-title { font-size: 16px; }
  .opt { font-size: 15px; padding: 11px 10px; gap: 8px; }
  .opt-key { width: 26px; height: 26px; }
  .cd-num { font-size: 20px; }
  .tab { padding: 8px 10px; font-size: 14px; }
  .book-grid { gap: 8px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 28px 0 110px; }
  .page-hero { padding: 22px 0 36px; }
  .site-nav { max-height: calc(100vh - 60px); }
}

.round-dot { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; }

/* Word search theme groups */
.theme-groups { text-align: left; }
.theme-label { margin: 14px 0 4px; font-weight: 700; color: var(--violet); }
.theme-row { justify-content: flex-start; margin: 0 0 6px; }
.theme-row .choice { font-size: 15px; padding: 8px 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}


/* Home search: dropdown must open above the chips and the game cards, never clipped by the hero */
.hero-inner { z-index: 8; }
.hero-inner > .search { position: relative; z-index: 12; }
.search-results { background: #fff; z-index: 30; }
.search-results a { background: #fff; }
.search-results a:hover, .search-results a.is-focus { background: var(--bg); }
