/* Font disimpan di repo (lisensi SIL OFL, lihat assets/fonts). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/pacifico-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans Fallback"; src: local("Arial"); size-adjust: 105%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Pacifico Fallback"; src: local("Georgia"); size-adjust: 92%; ascent-override: 110%; descent-override: 50%; line-gap-override: 0%; }

:root {
  --font: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Pacifico", "Pacifico Fallback", cursive;
  color-scheme: light; /* tampilan sengaja selalu terang dan ceria */
  --sky: #0ea5e9; --sky-d: #0369a1; --sky-50: #f0f9ff; --sky-100: #e0f2fe;
  --amber: #fbbf24; --amber-100: #fef3c7;
  --rose: #f43f5e; --rose-100: #ffe4e6;
  --violet: #7c3aed; --violet-100: #ede9fe;
  --emerald: #10b981; --emerald-100: #d1fae5;
  --ink: #0f172a; --muted: #475569; --line: #e2e8f0;

  --bg: #ffffff;
  --surface: #ffffff;
  --text: var(--ink);
  --team-a: #e11d48;
  --team-a-soft: var(--rose-100);
  --team-b: #0284c7;
  --team-b-soft: var(--sky-100);
  --ok: #059669;
  --bad: #be123c;
  --accent: var(--amber);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  font-size: 17px; line-height: 1.7;
  background: var(--bg); color: var(--muted);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; font-weight: 800; }
a { color: var(--sky-d); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navigasi ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { font-family: var(--font); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand::before { content: ""; width: 34px; height: 34px; border-radius: 10px; background: var(--sky) url("/favicon.svg") center/70% no-repeat; }
.nav-inner nav { display: flex; gap: 4px; align-items: center; }
.nav-inner nav a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; }
.nav-inner nav a:hover { background: var(--sky-50); color: var(--sky-d); }
.nav-inner nav a.nav-cta { background: var(--sky-d); color: #fff; padding: 11px 22px; border-radius: 12px; margin-left: 10px; box-shadow: 0 8px 18px rgba(3,105,161,.25); }
.nav-inner nav a.nav-cta:hover { background: #075985; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 34rem 22rem at 6% 12%, rgba(251,191,36,.20), transparent 70%),
    radial-gradient(ellipse 34rem 22rem at 94% 6%, rgba(244,63,94,.13), transparent 70%),
    radial-gradient(ellipse 40rem 24rem at 80% 95%, rgba(124,58,237,.13), transparent 70%),
    radial-gradient(ellipse 50rem 26rem at 40% 45%, rgba(14,165,233,.16), transparent 70%), #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(14,165,233,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(14,165,233,.10) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 25%, transparent 75%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; background: linear-gradient(180deg, transparent, #fff); }
.hero-inner { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-text { text-align: center; }
.eyebrow { display: inline-block; color: var(--sky-d); font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; padding-bottom: .06em;
  background: linear-gradient(100deg, #0284c7 0%, #7c3aed 55%, #e11d48 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1.xl { font-size: clamp(3rem, 7.6vw, 5.2rem); line-height: 1.15; }
.hero h1 .st { font-family: var(--script); font-weight: 400; letter-spacing: 0; font-size: .92em; padding: 0 .1em; }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0 0 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin: 0 auto 22px; }
.checks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 18px; padding: 0; }
.checks li { font-weight: 700; color: var(--muted); font-size: .95rem; }
.checks li::before { content: "\2713"; color: #16a34a; font-weight: 900; margin-right: 7px; }
.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.crumbs { text-align: center; }
.kelas-row { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 14px; font-family: var(--font); font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sky-d); color: #fff; box-shadow: 0 10px 22px rgba(3,105,161,.28); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn:focus-visible, .card:focus-visible, .kelas-btn:focus-visible, .tile:focus-visible { outline: 4px solid var(--amber); outline-offset: 2px; }

/* mockup layar dengan kartu info yang menumpuk di tepinya */
.screen-wrap { position: relative; padding: 22px 12px 30px 0; max-width: 540px; margin: 0 auto; width: 100%; }
.screen { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(15,23,42,.13); overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: #fca5a5; }
.screen-bar i:nth-child(2) { background: #fde68a; }
.screen-bar i:nth-child(3) { background: #86efac; }
.screen-bar span { margin-left: 10px; background: var(--sky-50); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 3px 14px; }
.screen img { display: block; width: 100%; height: auto; }
.fcard {
  position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 11px 16px; font-weight: 800; font-size: .9rem; line-height: 1.25; color: var(--ink); box-shadow: 0 14px 34px rgba(15,23,42,.14);
  animation: fl 5s ease-in-out infinite;
}
.fcard small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.fcard .e { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: var(--tint, #dcfce7); flex: none; }
.fc1 { top: 0; right: -6px; }
.fc2 { bottom: 6px; left: -10px; animation-delay: -2s; --tint: #fef3c7; }
.fc3 { bottom: 64px; right: -8px; animation-delay: -3.5s; --tint: var(--violet-100); }
@keyframes fl { 50% { transform: translateY(-10px); } }

/* ---------- Bagian halaman ---------- */
.section { padding-top: 84px; padding-bottom: 84px; position: relative; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.section h3 { font-size: 1.25rem; margin: 18px 0 6px; }
.band { background: #f8fafc; border-block: 1px solid var(--line); }
.prose { max-width: 720px; font-size: 1.05rem; }
.prose p { margin: 0 0 14px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 28px; }
.card {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 6px 18px rgba(15,23,42,.05);
  transition: transform .25s, box-shadow .25s;
}
.card::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 99px; background: var(--c, var(--sky)); margin-bottom: 14px; }
a.card:hover, a.card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,.1); }
.card h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card-link { font-weight: 800; color: var(--c, var(--sky-d)); }
.card.soon { opacity: .85; box-shadow: none; background: #f8fafc; }
.why .card::before { display: none; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; background: var(--sky-100); color: var(--sky-d); }
.tag-soon { background: var(--amber-100); color: #92400e; }

.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--violet)); color: #fff; font-family: var(--font); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.steps li:nth-child(2)::before { background: linear-gradient(135deg, var(--amber), var(--rose)); }
.steps li:nth-child(3)::before { background: linear-gradient(135deg, var(--emerald), var(--sky)); }
.steps b { font-family: var(--font); font-size: 1.2rem; color: var(--ink); }
.steps span { color: var(--muted); }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.feature { border-left: 6px solid var(--c, var(--amber)); padding: 4px 0 4px 14px; }
.feature:nth-child(2) { --c: var(--rose); } .feature:nth-child(3) { --c: var(--sky); } .feature:nth-child(4) { --c: var(--violet); }
.feature h3 { margin: 0 0 4px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 0 auto 12px; max-width: 820px; padding: 0 24px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sky-d); font-weight: 700; }
.faq details[open] summary::after { content: "3"; }
.faq p { margin: 0; padding: 0 0 20px; color: var(--muted); }

footer.site { background: var(--ink); color: #cbd5e1; font-size: .95rem; padding: 34px 0; }
footer.site a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }

/* ---------- Landing game ---------- */
.kelas-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.kelas-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 50px; padding: 0 13px;
  border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(30,41,59,.18); transition: transform .2s;
}
.kelas-btn:hover { transform: translateY(-3px); }
.k1 { --c: #e11d48; } .k2 { --c: #ea580c; } .k3 { --c: #b45309; } .k4 { --c: #059669; } .k5 { --c: #0284c7; } .k6 { --c: #7c3aed; }
.kelas-card .example { background: var(--sky-50); border-radius: 16px; padding: 10px 16px; font-family: var(--font); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 12px 0 14px; line-height: 1.4; }
.kelas-card .example span { display: block; }
.device-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.device { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.device h3 { margin: 0 0 6px; }
.device p { margin: 0; color: var(--muted); }

/* ---------- Beranda: hub game ---------- */

.why { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 28px; }
.why .card p { font-size: 1rem; }
.why .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--c); color: #fff; font-family: var(--font); font-weight: 800; font-size: 1.3rem; }

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 24px; }
.tile {
  text-align: left; font: inherit; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  color: var(--muted); box-shadow: 0 6px 18px rgba(15,23,42,.05); transition: transform .25s, box-shadow .25s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,.1); }
.tile .badge { display: inline-grid; place-items: center; min-width: 52px; height: 44px; padding: 0 10px; border-radius: 14px; background: var(--c); color: #fff; font-family: var(--font); font-weight: 800; font-size: 1.2rem; }
.tile b { display: block; font-family: var(--font); font-size: 1.15rem; color: var(--ink); margin-top: 8px; line-height: 1.2; }
.tile small { display: block; font-size: .85rem; font-weight: 700; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 18px rgba(15,23,42,.05); padding: 18px 20px; margin-top: 24px; }
.filter-group { margin-bottom: 14px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-d); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; font: 800 .92rem var(--font); color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--sky); color: var(--sky-d); }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 8px 18px rgba(14,165,233,.3); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--sky); }
.count-note { margin: 18px 0 0; font-weight: 800; color: var(--ink); }
.card[hidden], .empty[hidden] { display: none; }
.empty { background: var(--amber-100); border: 2px dashed #fde68a; border-radius: 24px; padding: 22px; margin-top: 18px; color: #92400e; font-weight: 700; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }

/* ---------- Game ---------- */
.stage {
  --gap: clamp(8px, 1.6vw, 22px);
  height: 100vh; height: 100dvh;
  padding: max(var(--gap), env(safe-area-inset-top)) max(var(--gap), env(safe-area-inset-right)) max(var(--gap), env(safe-area-inset-bottom)) max(var(--gap), env(safe-area-inset-left));
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100) 55%, var(--rose-100));
}
.game {
  height: 100%; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; overflow: hidden;
  background: #fff; border: 4px solid #fff; border-radius: 28px; box-shadow: 0 20px 50px rgba(14,165,233,.28);
}

.topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-bottom: 3px solid var(--amber); }
.topbar .title { font-family: var(--font); font-weight: 800; color: var(--ink); font-size: clamp(16px, 2vw, 24px); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn {
  min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid var(--sky-100);
  background: var(--sky-50); color: var(--sky-d); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; padding: 0 16px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.iconbtn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.iconbtn.ic { width: 48px; padding: 0; justify-content: center; flex: none; }
.iconbtn.ic svg { width: 24px; height: 24px; display: block; }
.iconbtn.ic .slash { display: none; }
.iconbtn.ic[aria-pressed="false"] .slash { display: block; }
.iconbtn.ic .fs-out { display: none; }
.iconbtn.ic.is-full .fs-in { display: none; }
.iconbtn.ic.is-full .fs-out { display: inline; }
.iconbtn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.rotate-hint { display: none; background: var(--violet); color: #fff; padding: 8px 12px; font-weight: 700; font-size: 15px; align-items: center; gap: 10px; }
.rotate-hint button { margin-left: auto; min-height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.25); color: #fff; font: inherit; font-weight: 800; cursor: pointer; padding: 0 14px; }

.rope {
  --rope-h: clamp(96px, 17vh, 160px);
  --kid-h: calc(var(--rope-h) * .84);
  --kid-w: calc(var(--kid-h) * .8);
  --flag-s: clamp(30px, 4.4vw, 48px);
  --pos: 0;
  position: relative; height: var(--rope-h); background: linear-gradient(180deg, #fff, var(--sky-50)); border-bottom: 2px solid var(--line);
}
.rope .kid {
  position: absolute; top: 50%; height: var(--kid-h); width: var(--kid-w); margin-top: calc(var(--kid-h) * -.413);
  transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none;
}
.rope .kid-a { left: 2%; transform: rotate(-6deg); }
.rope .kid-b { right: 2%; transform: scaleX(-1) rotate(-6deg); }
.rope .line {
  position: absolute; left: calc(2% + var(--kid-w) * .93); right: calc(2% + var(--kid-w) * .93); top: 50%; height: 8px; margin-top: -4px;
  background: repeating-linear-gradient(90deg, #b58a54 0 14px, #8a6636 14px 28px); border-radius: 4px;
}
.rope .center { position: absolute; left: 50%; top: 14%; bottom: 14%; width: 3px; margin-left: -1.5px; background: var(--muted); opacity: .3; }
.rope .flag {
  position: absolute; top: 50%; width: var(--flag-s); height: var(--flag-s); margin: calc(var(--flag-s) / -2) 0 0 calc(var(--flag-s) / -2);
  border-radius: 50%; background: var(--amber); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
  left: calc(50% + var(--pos) * (48% - var(--kid-w) * .93)); transition: left .35s cubic-bezier(.3, 1.4, .5, 1);
}

.arena { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.team { display: flex; flex-direction: column; padding: clamp(6px, 1.5vw, 20px); gap: clamp(6px, 1.5vw, 16px); min-height: 0; position: relative; }
.team.a { background: var(--team-a-soft); border-right: 3px solid #fff; }
.team.b { background: var(--team-b-soft); }
.team h2 { margin: 0; text-align: center; font-size: clamp(15px, 2.2vw, 28px); }
.team.a h2 { color: var(--team-a); } .team.b h2 { color: var(--team-b); }

.question {
  font-family: var(--font); text-align: center; font-weight: 800; color: var(--ink);
  font-size: clamp(28px, 5.6vw, 80px); line-height: 1.1;
  background: #fff; border-radius: 24px; padding: clamp(4px, 1.5vh, 20px) 8px;
  border: 4px solid var(--line); flex: 0 0 auto;
}
.team.a .question { border-color: var(--team-a); } .team.b .question { border-color: var(--team-b); }

.choices { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, 1.5vw, 16px); min-height: 0; }
.choice {
  border: 0; border-radius: 24px; font-family: var(--font); font-weight: 800; font-size: clamp(22px, 4.4vw, 62px);
  color: #fff; cursor: pointer; min-height: 0; transition: transform .08s ease, filter .12s ease;
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
}
.team.a .choice { background: var(--team-a); } .team.b .choice { background: var(--team-b); }
.choice:active { transform: translateY(3px) scale(.97); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.choice:focus-visible { outline: 4px solid var(--amber); outline-offset: 2px; }
.team.locked .choice, .team.bot .choice { filter: grayscale(.6) brightness(.9); pointer-events: none; }
.team.bot:not(.locked) .choice { filter: none; }

.feedback {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 20px;
  background: #fff; border: 4px solid var(--line); font-size: clamp(14px, 2vw, 26px); font-weight: 700; text-align: center; color: var(--ink);
  display: none; z-index: 2;
}
.feedback.show { display: block; }
.feedback.ok { border-color: var(--ok); } .feedback.bad { border-color: var(--bad); }
.feedback b { display: block; font-family: var(--font); font-size: 1.2em; }
.feedback.ok b { color: var(--ok); } .feedback.bad b { color: var(--bad); }

/* ---------- Overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12, 74, 110, .72); display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 40; }
.overlay[hidden] { display: none; }
.panel { background: #fff; border-radius: 32px; padding: clamp(18px, 3vw, 36px); width: min(760px, 100%); max-height: 100%; overflow: auto; text-align: center; border: 4px solid var(--amber); }
.panel h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 44px); }
.panel p { color: var(--muted); margin: 0 0 12px; font-size: clamp(14px, 1.8vw, 19px); line-height: 1.5; }
.panel h3 { margin: 14px 0 8px; font-size: clamp(17px, 2vw, 22px); }
.options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.opt {
  min-height: 52px; min-width: 56px; padding: 0 20px; border-radius: 999px; border: 3px solid var(--sky-100);
  background: var(--sky-50); color: var(--sky-d); font: inherit; font-size: clamp(16px, 2vw, 21px); font-weight: 800; cursor: pointer;
}
.opt[aria-pressed="true"] { border-color: var(--violet); background: var(--violet); color: #fff; }
.primary {
  margin-top: 18px; min-height: 64px; padding: 0 44px; border-radius: 999px; border: 0;
  background: var(--ok); color: #fff; font-family: var(--font); font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 22px rgba(5,150,105,.35);
}
.secondary { margin-top: 12px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 3px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.trophy { width: clamp(64px, 14vh, 120px); height: auto; display: block; margin: 0 auto 4px; }
.winner { font-family: var(--font); font-size: clamp(32px, 6vw, 68px); font-weight: 800; margin: 6px 0; }
.winner.a { color: var(--team-a); } .winner.b { color: var(--team-b); }
.stats { color: var(--muted); font-size: clamp(14px, 1.8vw, 20px); }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 44px 0 64px; }
  .screen-wrap { max-width: 460px; }
  .nav-inner nav a:not(.nav-cta) { display: none; }
  .nav-inner nav a.nav-cta { margin-left: 0; padding: 9px 16px; font-size: .9rem; white-space: nowrap; }
  .brand { font-size: 1.1rem; }
}

@media (max-width: 700px) and (orientation: portrait) {
  .arena { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .team.a { border-right: 0; border-bottom: 3px solid #fff; }
  .rotate-hint:not([hidden]) { display: flex; }
  .topbar .title { display: none; }
  .topbar { flex-wrap: wrap; }
}

@media (max-height: 520px) {
  .topbar { padding: 4px 8px; gap: 6px; border-bottom-width: 2px; }
  .topbar .title { font-size: 15px; }
  .iconbtn { min-height: 38px; min-width: 38px; font-size: 13px; padding: 0 12px; }
  .iconbtn.ic { width: 40px; padding: 0; }
  .iconbtn.ic svg { width: 20px; height: 20px; }
  .stage { --gap: 6px; }
  .game { border-width: 3px; border-radius: 18px; }
  .rope { --rope-h: 58px; --flag-s: 24px; }
  .rope .flag { border-width: 3px; }
  .team { padding: 6px; gap: 6px; }
  .team h2 { font-size: 14px; }
  .question { font-size: clamp(22px, 9vh, 44px); padding: 2px 6px; border-width: 3px; border-radius: 16px; }
  .choices { gap: 6px; }
  .choice { font-size: clamp(20px, 9vh, 40px); border-radius: 16px; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
  .feedback { font-size: 13px; padding: 6px 8px; left: 6px; right: 6px; bottom: 6px; border-width: 3px; border-radius: 14px; }
  .panel { padding: 12px 16px; border-radius: 24px; }
  .panel h1 { font-size: 22px; }
  .panel h3 { margin: 8px 0 4px; font-size: 16px; }
  .opt { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .primary { margin-top: 10px; min-height: 48px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fcard { animation: none; }
  .rope .flag, .choice, .card, .tile, .btn, .kelas-btn { transition: none; }
}

/* judul bagian yang diratakan tengah */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { margin: 0 auto; }

@media (max-width: 480px) { .fc1, .fc3 { right: 0; } .fc2 { left: 0; } }
