/* GameOmbi Host Panel: the Snap look of the app (lib/ui/snap/snap_tokens.dart). Baloo 2 headings, Nunito text,
   signature yellow, near-black ink, pill buttons, 20px cards. Same-origin only; no inline styles anywhere. */
@font-face { font-family: "Baloo 2"; src: url("/static/baloo2.woff") format("woff"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/nunito.woff") format("woff"); font-weight: 200 1000; font-display: swap; }

:root {
  --yellow: #FFFC00; --ink: #111114; --white: #FFFFFF; --muted: #6B6B74; --line: #ECECF0; --gray: #F2F2F5;
  --red: #FF2D55; --red-soft: #FFE8EC; --green: #14C37A; --green-soft: #E3F8EE; --amber: #FFB800; --amber-soft: #FFF4D1; --blue: #0A9BFF;
  --blue-soft: #E5F4FF; --r: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--gray); color: var(--ink); font: 400 16px/1.5 Nunito, system-ui, sans-serif; }
h1, h2, h3, .brand, .stat-v, .btn { font-family: "Baloo 2", Nunito, system-ui, sans-serif; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 800; margin: 8px 0 14px; }
h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
p { margin: 0 0 12px; }
.fine { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }

.top { background: var(--yellow); padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 800; }
.brand img { display: block; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.tab { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--gray); text-decoration: none; font-weight: 800; }
.tab[aria-current="page"] { background: var(--ink); color: var(--white); }
.wrap { max-width: 880px; margin: 0 auto; padding: 18px 16px 28px; }

.card { background: var(--white); border-radius: var(--r); padding: 18px; margin: 0 0 14px; box-shadow: 0 0 0 1px var(--line); }
.card.narrow, .narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.hero { text-align: center; padding: 18px 0 8px; }
.hero-logo { max-width: 70%; height: auto; }
.hero.soon { padding: 56px 0; }
.hero p { color: var(--muted); max-width: 460px; margin: 0 auto 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { background: var(--gray); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-l { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-v { font-size: 26px; line-height: 1.1; font-weight: 800; overflow-wrap: anywhere; }
.stat-h { color: var(--muted); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn.alt { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn:focus-visible, .input:focus-visible, .tab:focus-visible, a:focus-visible, .link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.link { background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); min-height: 44px; }
form.inline { display: inline; }

.field { display: block; margin: 0 0 14px; }
.field-l { display: block; font-weight: 800; margin-bottom: 4px; }
.field-h { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.field-err { display: block; color: var(--red); font-size: 14px; font-weight: 700; margin-top: 4px; }
.input { width: 100%; min-height: 48px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--gray); font: inherit; color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }
.input.code { font-family: "Baloo 2", Nunito, sans-serif; font-size: 26px; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ink); }

.notice { border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-weight: 700; }
.notice.ok { background: var(--green-soft); }
.notice.err { background: var(--red-soft); }
.notice.draft { background: var(--amber-soft); }
.chip { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 800; background: var(--gray); }
.chip.ok { background: var(--green-soft); }
.chip.wait { background: var(--amber-soft); }
.chip.bad { background: var(--red-soft); }
.chip.info { background: var(--blue-soft); }

.bar { height: 12px; border-radius: 999px; background: var(--gray); overflow: hidden; margin-bottom: 12px; }
.bar i { display: block; height: 100%; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink) inset; border-radius: 999px; }
.bar-p0 { width: 4%; } .bar-p1 { width: 10%; } .bar-p2 { width: 20%; } .bar-p3 { width: 30%; } .bar-p4 { width: 40%; } .bar-p5 { width: 50%; }
.bar-p6 { width: 60%; } .bar-p7 { width: 70%; } .bar-p8 { width: 80%; } .bar-p9 { width: 90%; } .bar-p10 { width: 100%; }

.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules { padding-left: 20px; color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 8px; }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }

.legal { background: var(--white); border-radius: var(--r); padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.legal h1 { font-size: 26px; } .legal h2 { font-size: 19px; margin-top: 22px; }
.legal blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--ink); background: var(--gray); border-radius: 8px; }
.legal blockquote p { margin: 0; }

.foot { max-width: 880px; margin: 0 auto; padding: 8px 16px 40px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-bottom: 6px; }
.foot-links a { font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 560px) {
  h1 { font-size: 26px; }
  .tbl table, .tbl thead, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl thead { position: absolute; left: -9999px; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl td { border: 0; padding: 3px 0; }
  .tbl td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
