/* JemputHoki 88 — stylesheet utama (gaya "app modern", tema gelap otomatis) */
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #eceefa;
  --ink: #12131a;
  --muted: #555a72;
  --line: #e1e4f0;
  --brand: #5b4cf0;
  --brand-2: #4334d6;
  --link: #4a3be0;
  --lime: #c6f432;
  --pink: #ff4f8b;
  --orange: #ff8a3d;
  --teal: #14b8a6;
  --good: #16a34a;
  --bad: #e11d48;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(18, 19, 26, .08);
  --shadow-lg: 0 20px 50px rgba(18, 19, 26, .14);
  --font: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e15; --surface: #161824; --surface-2: #1f2232; --ink: #eef0ff; --muted: #a6abc6;
    --line: #272b3d; --link: #a99fff; --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; margin-right: auto; }
.brand b { color: var(--link); }
.brand .badge88 { font-size: .68rem; font-weight: 800; background: var(--lime); color: #12131a; border-radius: 6px; padding: 1px 6px; }
.top-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 600; text-decoration: none; }
.top-nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .btn { min-height: 44px; }

/* Navigasi bawah (HP) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .top-nav, .nav .btn { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .bottom-nav a span { font-size: 1.25rem; line-height: 1; }
  .bottom-nav a[aria-current="page"] { color: var(--link); }
  body { padding-bottom: 64px; }
  .to-top { bottom: 80px !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(91, 76, 240, .3);
}
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.lime { background: var(--lime); color: #12131a; box-shadow: 0 6px 18px rgba(150, 190, 20, .3); }
.btn.lime:hover { background: #b5e61f; color: #12131a; }
.btn.soft { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn.soft:hover { background: var(--line); color: var(--ink); }
.btn.sm { min-height: 44px; padding: 6px 16px; font-size: .92rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Hero carousel ===== */
.hero { padding: 28px 0 8px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero-top h1 { margin: 0; }
.hero-top p { margin: 4px 0 0; color: var(--muted); max-width: 620px; }
.carousel { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: #1b1640; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  padding: 36px 40px; color: #fff; min-height: 340px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s;
}
.slide.on { opacity: 1; visibility: visible; }
.slide .kicker { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 700; margin-bottom: 12px; }
.slide h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: #fff; margin-bottom: .3em; }
.slide p { color: rgba(255,255,255,.86); max-width: 440px; }
.slide .art { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 16px 40px rgba(0,0,0,.35); transform: rotate(2deg); }
.slide .art svg { width: 100%; height: 100%; }
.s-violet { background: linear-gradient(135deg, #3b2bd0, #7b3fe4); }
.s-pink { background: linear-gradient(135deg, #b0175a, #ff4f8b); }
.s-teal { background: linear-gradient(135deg, #0b6f66, #14b8a6); }
.car-ctrl { position: absolute; left: 40px; bottom: 22px; display: flex; align-items: center; gap: 8px; }
.car-ctrl button { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; cursor: pointer; font: inherit; }
.car-ctrl .arrow { width: 44px; height: 44px; font-size: 1.1rem; }
.car-ctrl .dot { width: 44px; height: 44px; background: none; display: grid; place-items: center; padding: 0; }
.car-ctrl .dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .3s ease; }
.car-ctrl .dot[aria-current="true"]::before { width: 28px; background: #fff; }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; padding: 24px 22px 80px; gap: 16px; min-height: 0; }
  .slide .art { order: -1; transform: none; }
  .car-ctrl { left: 16px; bottom: 14px; }
}

/* ===== Sections ===== */
section { padding: 30px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 14px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.pill:hover { border-color: var(--brand); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.searchbox { position: relative; flex: 1 1 260px; max-width: 360px; }
.searchbox input { width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; padding: 8px 18px; }
.searchbox input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,76,240,.18); }
.toolbar[hidden] { display: none; }
.empty { text-align: center; color: var(--muted); padding: 20px 0; }

/* ===== Tiles (game) ===== */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.tiles > li[hidden] { display: none; }
.tile {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover, .tile:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .icon { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; }
.tile .icon svg { width: 100%; height: 100%; transition: transform .3s ease; }
.tile:hover .icon svg { transform: scale(1.08) rotate(-3deg); }
.tile h3 { margin: 0 0 2px; font-size: 1.08rem; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.tile .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; font-weight: 700; }
.tag { background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.tag.cat { background: rgba(91,76,240,.12); color: var(--link); }
.mybest { position: absolute; top: 10px; right: 12px; font-size: .75rem; font-weight: 800; background: var(--lime); color: #12131a; border-radius: 999px; padding: 2px 9px; }
.tiles > li { animation: masuk .45s ease both; }
.tiles > li:nth-child(2) { animation-delay: .04s; } .tiles > li:nth-child(3) { animation-delay: .08s; }
.tiles > li:nth-child(4) { animation-delay: .12s; } .tiles > li:nth-child(5) { animation-delay: .16s; } .tiles > li:nth-child(6) { animation-delay: .2s; }
@keyframes masuk { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ===== Rekor & lencana ===== */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .6em; }
.records { list-style: none; margin: 0; padding: 0; }
.records li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.records li:last-child { border-bottom: 0; }
.records strong { font-variant-numeric: tabular-nums; }
.records .none { color: var(--muted); font-weight: 600; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--pink)); border-radius: 999px; transition: width .6s ease; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.badges li { text-align: center; border-radius: 18px; padding: 12px 8px; background: var(--surface-2); font-size: .8rem; font-weight: 700; color: var(--muted); }
.badges li span { display: block; font-size: 1.9rem; filter: grayscale(1); opacity: .45; margin-bottom: 4px; }
.badges li.got { background: rgba(198,244,50,.25); color: var(--ink); }
.badges li.got span { filter: none; opacity: 1; }

/* ===== Konten umum ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px; background: var(--surface-2); }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.article-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.article-card:hover { transform: translateY(-3px); }
.article-card .band { height: 92px; display: grid; place-items: center; font-size: 2.6rem; }
.article-card .txt { padding: 16px 20px 20px; }
.article-card h2, .article-card h3 { font-size: 1.1rem; margin: 0 0 .35em; }
.article-card a { color: var(--ink); text-decoration: none; }
.article-card a::after { content: ""; position: absolute; inset: 0; }
.article-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.article-card small { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; }
.b1 { background: linear-gradient(135deg, #e7e3ff, #f7dfff); } .b2 { background: linear-gradient(135deg, #dff9f5, #e6f7d0); } .b3 { background: linear-gradient(135deg, #ffe4ef, #ffefdf); }
@media (prefers-color-scheme: dark) { .b1 { background: #2a2350; } .b2 { background: #12393a; } .b3 { background: #47202f; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose h2 { margin-top: 1.4em; font-size: 1.45rem; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.article th { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface-2); border-left: 4px solid var(--brand); border-radius: 0 16px 16px 0; padding: 14px 18px; color: var(--ink); }
.byline { color: var(--muted); font-size: .9rem; font-weight: 600; }

.crumb { font-size: .88rem; margin: 18px 0 12px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--muted); }
.crumb li + li::before { content: "›"; margin-right: 8px; }
.crumb a { color: var(--muted); }

/* ===== Halaman game ===== */
.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-head .icon { width: 72px; height: 72px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); flex: none; }
.game-head .icon svg { width: 100%; height: 100%; }
.game-head h1 { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.game-head p { margin: 2px 0 0; color: var(--muted); }
.stage-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 16px; box-shadow: var(--shadow); }
.hud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hud div { flex: 1 1 0; min-width: 80px; background: var(--surface-2); border-radius: 16px; padding: 8px 12px; }
.hud span { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hud strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.arena { position: relative; margin: 0 auto; border-radius: 20px; overflow: hidden; background: var(--surface-2); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.arena canvas { width: 100%; height: auto; touch-action: none; }
.arena.w-420 { max-width: 420px; } .arena.w-520 { max-width: 520px; } .arena.w-600 { max-width: 600px; }
.arena:fullscreen { max-width: none; border-radius: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.arena:fullscreen canvas { width: auto; height: 100vh; max-width: 100vw; object-fit: contain; }
.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease;
}
.overlay[hidden] { display: none; }
.overlay .emo { font-size: 3rem; line-height: 1; }
.overlay h2 { margin: 0; font-size: 1.6rem; }
.overlay p { margin: 0; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .game-grid { grid-template-columns: 1fr; } }
.side .card + .card { margin-top: 16px; }
.side h2 { font-size: 1.05rem; margin: 0 0 .5em; }
.side ul { margin: 0; color: var(--muted); padding-left: 1.1em; }
select { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; padding: 6px 14px; }

/* Tabs info */
.tabs-ui { margin-top: 26px; }
.tablist { display: flex; gap: 6px; background: var(--surface-2); padding: 6px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tablist button { min-height: 44px; padding: 6px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tablist button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabpanel { padding: 18px 4px 0; }
.tabpanel[hidden] { display: none; }

/* Lampu Padam */
.lights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px; aspect-ratio: 1; }
.lights button { border: 0; border-radius: 14px; background: #2b2e45; cursor: pointer; transition: background .15s ease, box-shadow .15s ease, transform .1s ease; touch-action: manipulation; }
.lights button.on { background: var(--lime); box-shadow: 0 0 22px rgba(198,244,50,.7); }
.lights button:active { transform: scale(.94); }

/* Kata Acak */
.word { padding: 20px 14px; text-align: center; }
.cat-label { display: inline-block; background: rgba(91,76,240,.12); color: var(--link); font-weight: 800; border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.slots, .letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; min-height: 56px; }
.slots span { width: 44px; height: 52px; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; background: var(--surface); }
.slots span.f { border-style: solid; border-color: var(--brand); }
.slots.ok span { border-color: var(--good); background: rgba(22,163,74,.15); }
.slots.no { animation: goyang .35s ease; }
@keyframes goyang { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.letters button { width: 48px; height: 52px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font: inherit; font-size: 1.4rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 var(--brand-2); touch-action: manipulation; }
.letters button:disabled { opacity: .2; cursor: default; box-shadow: none; }
.letters button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-2); }

/* Geser Angka */
.puzzle { display: grid; gap: 8px; padding: 14px; aspect-ratio: 1; grid-template-columns: repeat(3, 1fr); }
.puzzle button { border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; font-size: clamp(1.4rem, 7vw, 2.4rem); font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 var(--line); touch-action: manipulation; transition: transform .08s ease; }
.puzzle button.ok { background: rgba(91,76,240,.14); color: var(--link); }
.puzzle button.blank { visibility: hidden; }
.puzzle button:active { transform: scale(.95); }

/* Warna Jebakan */
.stroop { padding: 22px 14px; text-align: center; }
.stroop .q { color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.stroop .wordbox { background: #fff; border-radius: 22px; padding: 26px 10px; margin: 0 auto 18px; max-width: 420px; box-shadow: inset 0 0 0 1px #e1e4f0; }
.stroop .w { font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 900; letter-spacing: .04em; }
.stroop .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; margin: 0 auto; }
.stroop .yn button { min-height: 64px; border: 0; border-radius: 18px; font: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.stroop .yes { background: var(--good); color: #fff; }
.stroop .no { background: var(--bad); color: #fff; }
.stroop .flash-ok { animation: okf .3s ease; } .stroop .flash-no { animation: goyang .3s ease; }
@keyframes okf { 50% { transform: scale(1.04); } }

/* ===== Footer ===== */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 24px; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { font-size: .95rem; margin: 0 0 .6em; }
.site-footer p { color: var(--muted); font-size: .94rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; font-size: .94rem; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.legal { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; color: var(--muted); font-size: .86rem; }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

.toast { position: fixed; left: 50%; top: 84px; z-index: 80; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 20px; font-weight: 700; box-shadow: var(--shadow-lg); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Form */
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; display: block; margin-bottom: 4px; }
.form input, .form textarea, .form select { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; padding: 11px 14px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,76,240,.18); }
.form textarea { min-height: 140px; resize: vertical; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) {
  .hud { flex-wrap: nowrap; gap: 6px; }
  .hud div { min-width: 0; padding: 6px 8px; border-radius: 12px; }
  .hud span { font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud strong { font-size: 1.05rem; }
  .stage-wrap { padding: 10px; border-radius: 22px; }
}
.arena .btn.soft { background: var(--surface); box-shadow: 0 2px 0 var(--line); }
