/* Nunublox (roblox.nunubot.org). The nunubot.org look (near-black ground, Hanken Grotesk, pill buttons)
   with the green of the Nunublox logo. No gradients, no shadows at rest. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0b0f; --s1: #151821; --s2: #1c2030; --s3: #262b3d;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --ink: #f4f5f8; --ink-2: #d3d7e1; --muted: #a9afbe;
  --green: #1fbf62; --go: #2ee27a; --go-hi: #5cf09a; --go-ink: #04140a; --green-soft: #0f2a1b; --mint: #b9f5d0;
  --down: #ff8a80; --up: #5cf09a;
  --r: 14px; --r-lg: 22px; --r-xl: 30px;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px; --gut: clamp(18px, 4vw, 40px);
  --t-hero: clamp(2.7rem, 7.4vw, 6.6rem); --t-lg: clamp(2rem, 4.4vw, 3.6rem); --t-md: clamp(1.7rem, 3.2vw, 2.6rem); --t-sm: clamp(1.3rem, 2vw, 1.6rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
b { font-weight: 700; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--go); color: var(--go-ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--go); color: var(--go-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.h-lg { font-size: var(--t-lg); }
.h-md { font-size: var(--t-md); }
.h-sm { font-size: var(--t-sm); letter-spacing: -.015em; line-height: 1.15; }
.soft { color: var(--muted); }
time, .r-num, .b-num, .chip-n, .g-live b, .t-num, [data-live], [data-total] { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--go); color: var(--go-ink); font-weight: 750; font-size: 1rem; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--go-hi); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.08rem; }
.btn-ghost { background: var(--s2); color: var(--ink); }
.btn-ghost:hover { background: var(--s3); }
.text-link { font-weight: 650; color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.text-link:hover { color: var(--go-hi); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 15, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand img { transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
.links { display: flex; gap: 4px; margin-right: auto; }
.links a { padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.links a:hover { color: var(--ink); background: var(--s1); }
.links a[aria-current="page"] { color: var(--ink); background: var(--s2); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.hero-in { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
.hero-h { grid-column: 1 / -1; font-size: var(--t-hero); font-weight: 800; letter-spacing: -.045em; line-height: .95; max-width: 19ch; position: relative; z-index: 2; }
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h .ln > span { display: block; }
.hero-h .ln:nth-child(2) > span { color: var(--go); }
.hero-p { grid-column: 1 / span 6; margin-top: 36px; font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; }
.hero-act { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 32px; }
.hero-total { grid-column: 1 / span 7; margin-top: 30px; color: var(--muted); }
.hero-total b { color: var(--ink); font-size: 1.15rem; }

.chip { position: absolute; z-index: 3; }
.chip-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 380px; max-width: 100%; padding: 12px 18px 12px 12px;
  background: var(--s1); border: 1px solid var(--line-2); border-radius: 20px; transition: background .25s, border-color .25s, transform .35s var(--ease); }
.chip-in:hover { background: var(--s2); border-color: var(--green); }
.chip-in .ico { border-radius: 12px; }
.chip-t { display: grid; min-width: 0; }
.chip-t small, .chip-n small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.chip-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; }
.chip-n { display: grid; text-align: right; }
.chip-n b { font-size: 1.25rem; font-weight: 800; color: var(--go); }
.chip-a { right: 0; top: 8px; transform: rotate(3deg); }
.chip-b { right: 70px; top: 190px; transform: rotate(-2.5deg); }
.chip-b .chip-n b { color: var(--ink); font-size: 1rem; }
.chip-c { right: 250px; top: 300px; transform: rotate(2deg); }
.chip-c:hover, .chip-a:hover, .chip-b:hover { z-index: 4; }
.switch { display: inline-flex; gap: 4px; padding: 5px; background: var(--s1); border: 1px solid var(--line-2); border-radius: 999px; }
.switch button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 650; font-size: .92rem; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.switch button[aria-pressed="true"] { background: var(--go); color: var(--go-ink); }
.chip-in.swap { animation: swap .45s var(--ease); }
@keyframes swap { 0% { opacity: .2; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

/* ---------- icons ---------- */
.ico { flex: none; border-radius: 10px; background: var(--s2); object-fit: cover; }
.ico-none { display: inline-block; }

/* ---------- live boards ---------- */
.live { padding: clamp(60px, 8vw, 110px) 0; background: var(--s1); }
.live-in { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.live-idx { position: sticky; top: 100px; }
.live-idx .h-sm { font-size: var(--t-md); letter-spacing: -.03em; line-height: 1.04; }
.idx { display: grid; gap: 2px; margin-top: 30px; }
.idx button { text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 0; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 750; letter-spacing: -.025em; color: var(--muted); transition: color .2s, padding .3s var(--ease); }
.idx button:hover { color: var(--ink-2); }
.idx button[aria-selected="true"] { color: var(--ink); padding-left: 22px; position: relative; }
.idx button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--go); transform: rotate(14deg); }
.idx-note { margin-top: 22px; color: var(--muted); max-width: 30ch; }

.board { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.live .board { background: var(--bg); }
.board-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.board-h b { font-size: 1.05rem; }
.board-h span { color: var(--muted); font-size: .9rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) 110px 110px; align-items: center; gap: 16px; padding: 12px 22px; transition: background .2s; }
.row:hover { background: var(--s1); }
.row:hover .r-name b { color: var(--go-hi); }
.r-rank { color: var(--muted); font-weight: 700; font-size: .95rem; text-align: right; }
.r-name { display: grid; min-width: 0; }
.r-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.04rem; transition: color .2s; }
.r-name small, .r-num small, .r-chg small { color: var(--muted); font-size: .82rem; }
.has-codes { font-style: normal; color: var(--go); font-weight: 650; }
.r-num, .r-chg { display: grid; text-align: right; }
.r-num b { font-size: 1.12rem; }
.r-chg { font-weight: 700; color: var(--ink-2); }
.r-chg.up { color: var(--up); } .r-chg.down { color: var(--down); }
.board-more { display: block; padding: 16px 22px; border-top: 1px solid var(--line); font-weight: 650; color: var(--go); }
.board-more:hover { background: var(--s1); }
.board-wide { margin-top: 28px; }
[data-live].bump { animation: bump .9s var(--ease); }
@keyframes bump { 0% { color: var(--go-hi); } 100% { color: inherit; } }

/* ---------- updates week ---------- */
.week { padding: clamp(70px, 9vw, 130px) 0; }
.week-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.week-head .h-lg { max-width: 24ch; }
.week-in { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.days { display: grid; gap: 6px; }
.days button { display: grid; text-align: left; gap: 2px; padding: 14px 18px; border: 1px solid transparent; border-radius: var(--r); background: none; cursor: pointer; transition: background .2s, border-color .2s; }
.days button b { font-size: 1.1rem; }
.days button small { color: var(--muted); font-size: .88rem; }
.days button:hover { background: var(--s1); }
.days button[aria-selected="true"] { background: var(--s1); border-color: var(--green); }
.bands ul, ul.bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.band { display: grid; grid-template-columns: 92px auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; background: var(--s1); border-radius: var(--r); transition: background .2s, transform .3s var(--ease); }
.band:hover { background: var(--s2); transform: translateX(4px); }
.b-time { font-weight: 750; font-size: 1.05rem; color: var(--go); }
.b-name { display: grid; min-width: 0; }
.b-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-name small, .b-num small { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-num { display: grid; text-align: right; }
.bands-more { display: inline-block; margin-top: 16px; font-weight: 650; color: var(--go); }
.bands-empty { padding: 28px; background: var(--s1); border-radius: var(--r); color: var(--ink-2); }

/* ---------- plate: one game page with margin notes ---------- */
.plate { padding: clamp(70px, 9vw, 130px) 0; background: var(--s1); }
.plate-in { display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; gap: 20px clamp(20px, 3vw, 44px); align-items: center; }
.plate-h { grid-column: 1 / -1; text-align: center; margin-bottom: 36px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.note { display: grid; gap: 6px; padding: 14px 0 14px 18px; border-left: 3px solid var(--s3); cursor: default; transition: border-color .25s; outline: none; }
.note b { font-size: 1.12rem; }
.note span { color: var(--ink-2); font-size: .98rem; }
.note.is-on, .note:hover, .note:focus-visible { border-left-color: var(--go); }
.notes-l { text-align: right; } .notes-l .note { padding: 14px 18px 14px 0; border-left: 0; border-right: 3px solid var(--s3); }
.notes-l .note.is-on, .notes-l .note:hover, .notes-l .note:focus-visible { border-right-color: var(--go); }
.gpanel { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.gpanel > *, .gp-body > * { transition: opacity .3s, outline-color .3s; outline: 2px solid transparent; outline-offset: -2px; border-radius: 10px; }
.gpanel.focus .gp-body > *:not(.is-on), .gpanel.focus .gp-pic:not(.is-on) { opacity: .35; }
.gpanel .is-on { outline-color: var(--go); }
.gp-pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.gp-body { display: grid; gap: 14px; padding: 18px; }
.gp-title { display: flex; align-items: center; gap: 12px; }
.gp-title span { display: grid; min-width: 0; }
.gp-title b { font-size: 1.15rem; }
.gp-title small, .gp-live small, .gp-codes span { color: var(--muted); font-size: .88rem; }
.gp-live { display: flex; align-items: baseline; gap: 10px; }
.gp-live b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--go); }
.gp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.gp-facts div { padding: 10px 12px; background: var(--s1); border-radius: 10px; }
.gp-facts dt { color: var(--muted); font-size: .82rem; }
.gp-facts dd { margin: 0; font-weight: 700; }
.gp-codes { display: grid; gap: 2px; padding: 10px 12px; background: var(--s1); }
.gp-play { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 999px; background: var(--go); color: var(--go-ink); font-weight: 750; }
.gp-play:hover { background: var(--go-hi); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.c-line { stroke: var(--go); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.c-area { fill: var(--green-soft); }
.c-dot { fill: var(--go); stroke: var(--bg); stroke-width: 3; }
.chart-range { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.chart-empty { color: var(--muted); padding: 18px 0; }

/* ---------- how it works ---------- */
.how { padding: clamp(70px, 9vw, 130px) 0; }
.how-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.how-steps .h-sm { color: var(--muted); font-size: 1.15rem; margin-bottom: 10px; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .3; transition: opacity .4s; }
.step:first-of-type { min-height: 50vh; justify-content: start; padding-top: 6vh; }
.step.is-on { opacity: 1; }
.step .s-big { font-size: var(--t-lg); font-weight: 780; letter-spacing: -.035em; line-height: 1.02; }
.step p:not(.s-big) { font-size: 1.15rem; color: var(--ink-2); max-width: 38ch; }
.how-stage { position: sticky; top: 120px; align-self: start; height: min(560px, calc(100vh - 160px)); display: grid; place-items: center; }
.how-frag { width: min(420px, 100%); display: grid; gap: 18px; padding: 24px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-xl); transform: rotate(-2deg); transition: transform .6s var(--ease); }
.how-frag[data-state="1"] { transform: rotate(1.5deg); }
.how-frag[data-state="2"] { transform: rotate(-1deg) scale(1.02); }
.hf-top { display: flex; align-items: center; gap: 14px; }
.hf-top span { display: grid; min-width: 0; } .hf-top b { font-size: 1.2rem; } .hf-top small { color: var(--muted); }
.hf-top .ico { border-radius: 14px; }
.hf-count { display: grid; }
.hf-count b { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hf-count small { color: var(--muted); margin-top: 6px; }
.hf-tick { color: var(--go); font-weight: 650; }
.hf-upd { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 14px; background: var(--bg); border-radius: var(--r); transition: background .4s; }
.hf-upd .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--s3); transform: rotate(14deg); transition: background .4s; }
.hf-chg { grid-column: 2; color: var(--muted); font-size: .9rem; }
.hf-play { display: flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 999px; background: var(--s2); color: var(--ink); font-weight: 750; transition: background .4s, color .4s; }
.how-frag[data-state="0"] .hf-count b { color: var(--go); }
.how-frag[data-state="1"] .hf-upd { background: var(--green-soft); }
.how-frag[data-state="1"] .hf-upd .dot { background: var(--go); }
.how-frag[data-state="2"] .hf-play { background: var(--go); color: var(--go-ink); }

/* ---------- ask ---------- */
.ask { padding: clamp(70px, 10vw, 150px) 0; background: var(--green); color: var(--go-ink); }
.ask-line { font-size: clamp(2.2rem, 6.4vw, 5.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .25em; }
.ask-line input { flex: 1 1 6ch; min-width: 0; width: 6ch; border: 0; border-bottom: .07em solid var(--go-ink); background: none; color: var(--go-ink); font: inherit; letter-spacing: inherit; padding: 0 .05em; border-radius: 0; }
.ask-line input::placeholder { color: rgba(4, 20, 10, .42); }
.ask-line input:focus { outline: none; border-bottom-color: #fff; }
.ask-line input::-webkit-search-cancel-button { display: none; }
.ask-line button { border: 0; background: var(--go-ink); color: var(--go); font: inherit; letter-spacing: inherit; padding: 0 .35em .06em; border-radius: .4em; cursor: pointer; transition: background .2s, color .2s; }
.ask-line button:hover { background: #fff; color: var(--go-ink); }
.ask-note { margin-top: 26px; font-size: 1.15rem; max-width: 52ch; font-weight: 550; }

/* ---------- list pages ---------- */
.list-page { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 110px); }
.lp-head { display: grid; gap: 18px; }
.lp-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.lp-search { display: flex; gap: 10px; max-width: 640px; }
.lp-search input, .field-in { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--s1); }
.lp-search input:focus { outline: none; border-color: var(--go); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-top: 26px; background: var(--s1); border-radius: 999px; }
.seg a, .seg button { padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-weight: 650; font-size: .95rem; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg a[aria-current="page"], .seg button[aria-selected="true"] { background: var(--go); color: var(--go-ink); }
.seg-sm { margin-top: 0; }
.empty-box { margin-top: 30px; padding: 36px; background: var(--s1); border-radius: var(--r-lg); display: grid; gap: 10px; }
.empty-box a, .prose a, .muted-p a { color: var(--go); font-weight: 650; }
.empty { padding: clamp(80px, 12vw, 160px) var(--gut); display: grid; gap: 14px; }
.empty p { font-size: 1.15rem; color: var(--ink-2); }
.empty a { color: var(--go); font-weight: 650; }
.day-block { margin-top: 44px; }
.day-block .h-sm { margin-bottom: 16px; }
.muted-p { color: var(--ink-2); }
.bands-open { margin-top: 8px; }

/* ---------- one game ---------- */
.g-hero { padding: clamp(36px, 5vw, 70px) 0 clamp(30px, 4vw, 50px); }
.g-hero-in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.g-pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--s1); }
.g-pic .ico { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: var(--r-lg); }
.g-side { display: grid; gap: 24px; }
.g-name { display: flex; gap: 16px; align-items: center; }
.g-name .ico { border-radius: 16px; }
.g-name .h-lg { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.g-name p { color: var(--muted); margin-top: 6px; }
.g-live { display: grid; gap: 4px; }
.g-live b { font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--go); }
.g-live > span { color: var(--ink-2); }
.g-live em { font-style: normal; font-weight: 700; } .g-live em.up { color: var(--up); } .g-live em.down { color: var(--down); }
.g-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.g-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.g-facts div { padding: 12px 14px; background: var(--s1); border-radius: var(--r); }
.g-facts dt { color: var(--muted); font-size: .84rem; }
.g-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.g-facts small { color: var(--muted); font-weight: 500; font-size: .82rem; display: block; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 30px; }
.g-card { background: var(--s1); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.g-chart-card { grid-column: 1 / -1; }
.gc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.code { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--bg); border-radius: var(--r); }
.code code { font: 700 1.02rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--go); padding: 6px 10px; background: var(--green-soft); border-radius: 8px; overflow-wrap: anywhere; }
.code span { display: grid; min-width: 0; }
.code small { color: var(--muted); font-size: .82rem; }
.code.off code { color: var(--muted); background: var(--s2); text-decoration: line-through; }
.copy { border: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--go); color: var(--go-ink); font-weight: 750; cursor: pointer; }
.copy:hover { background: var(--go-hi); }
.copy.done { background: var(--s3); color: var(--ink); }
.old summary { cursor: pointer; color: var(--muted); font-weight: 650; padding: 6px 0; }
.old .codes { margin-top: 10px; }
.hint { color: var(--muted); font-size: .9rem; }
.ups { list-style: none; margin: 0; padding: 0; display: grid; }
.ups li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ups li:first-child { border-top: 0; padding-top: 0; }
.ups span { color: var(--ink-2); } .ups small { color: var(--muted); grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.g-desc { grid-column: 1 / -1; }
.desc { white-space: pre-line; color: var(--ink-2); overflow-wrap: anywhere; max-width: 80ch; }
.g-more { padding-bottom: clamp(60px, 8vw, 110px); }
.g-more .h-md { margin-top: 30px; }

.prose { max-width: 760px; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 110px); display: grid; gap: 18px; }
.prose p { color: var(--ink-2); font-size: 1.08rem; }
.prose .h-sm { margin-top: 14px; }

/* ---------- footer of tiles ---------- */
.foot { padding: 10px var(--gut) var(--gut); }
.tiles { max-width: calc(var(--wrap) + 40px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 10px; }
.tile { background: var(--s1); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; }
.t-about { grid-column: span 2; }
.t-lead { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; max-width: 24ch; }
.t-legal { color: var(--muted); font-size: .86rem; max-width: 60ch; }
.t-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.t-nav a { font-weight: 650; color: var(--ink-2); }
.t-nav a:hover { color: var(--go); }
.t-live p:last-child, .t-mail p { color: var(--ink-2); }
.t-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.035em; color: var(--go); line-height: 1; }
.t-link { font-weight: 750; font-size: 1.15rem; }
a.t-link:hover { color: var(--go); }
.t-mark { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 22px; background: var(--s2); }
.t-mark img { width: 110px; height: 110px; transition: transform .5s var(--ease); }
.t-mark:hover img { transform: rotate(-18deg); }
.t-mark span { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; }
.t-go { grid-column: span 1; background: var(--go); color: var(--go-ink); flex-direction: row; align-items: end; transition: background .2s; }
.t-go span { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; max-width: 12ch; }
.t-go svg { transition: transform .35s var(--ease); flex: none; }
.t-go:hover { background: var(--go-hi); }
.t-go:hover svg { transform: translate(4px, -4px); }

/* ---------- motion (only with script, never needed to read) ---------- */
.hero-h .ln > span { animation: lift .9s var(--ease) both; }
.hero-h .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes lift { from { transform: translateY(105%); } to { transform: none; } }
.chip { animation: chipin .8s var(--ease) .35s both; }
.chip-b { animation-delay: .5s; } .chip-c { animation-delay: .65s; }
@keyframes chipin { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js [data-rise].in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .chip-c { right: 120px; top: 330px; }
  .hero-p, .hero-act, .hero-total { grid-column: 1 / span 7; }
  .plate-in { grid-template-columns: 1fr 1fr; }
  .plate-in .gpanel { grid-column: 1 / -1; grid-row: 2; max-width: 600px; justify-self: center; width: 100%; }
  .notes-l { text-align: left; } .notes-l .note { padding: 14px 0 14px 18px; border-right: 0; border-left: 3px solid var(--s3); }
  .notes-l .note.is-on, .notes-l .note:hover { border-left-color: var(--go); }
}
@media (max-width: 900px) {
  .links { display: none; }
  .bar-in { justify-content: space-between; }
  .hero-in { display: flex; flex-direction: column; }
  .chip { position: static; transform: none; margin-top: 14px; }
  .chip-a { margin-top: 34px; transform: rotate(-1.5deg); }
  .chip-b { transform: rotate(1.2deg); align-self: flex-end; }
  .chip-in { width: 100%; max-width: 440px; }
  .chip-b .chip-in { width: 440px; }
  .hero-p { order: 1; margin-top: 30px; }
  .hero-act { order: 2; }
  .hero-total { order: 3; }
  .live-in, .week-in, .how-in, .g-hero-in { grid-template-columns: 1fr; }
  .live-idx { position: static; }
  .idx { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .idx button { font-size: 1rem; padding: 10px 16px; border-radius: 999px; background: var(--bg); min-height: 44px; }
  .idx button[aria-selected="true"] { padding-left: 16px; background: var(--go); color: var(--go-ink); }
  .idx button[aria-selected="true"]::before { display: none; }
  .days { display: flex; flex-wrap: wrap; gap: 6px; }
  .days button { padding: 10px 14px; }
  .days button small { font-size: .82rem; }
  .week-head { flex-direction: column; align-items: start; }
  .how-stage { position: sticky; top: 80px; height: auto; z-index: 2; order: -1; padding: 10px 0; background: var(--bg); }
  .how-frag { width: 100%; max-width: 420px; padding: 16px; gap: 10px; }
  .how-frag .hf-count b { font-size: 2.2rem; }
  .step, .step:first-of-type { min-height: 46vh; padding-top: 0; justify-content: center; }
  .g-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .t-about, .t-mark, .t-go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-in { height: 62px; }
  .bar .btn-sm { padding: 0 14px; }
  .chip-b .chip-in { width: 100%; }
  .row { grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .r-chg { display: none; }
  .band { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 14px; gap: 12px; }
  .b-time { grid-column: 1 / -1; font-size: .92rem; }
  .plate-in { grid-template-columns: 1fr; }
  .gp-facts, .g-facts { grid-template-columns: 1fr 1fr; }
  .how-frag .hf-upd, .how-frag .hf-play { display: none; }
  .how-frag[data-state="1"] .hf-upd { display: grid; }
  .how-frag[data-state="2"] .hf-play { display: flex; min-height: 44px; }
  .code { grid-template-columns: 1fr auto; }
  .code span { grid-column: 1 / -1; grid-row: 2; }
  .lp-search { flex-direction: column; }
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 20px; }
  .t-mark img { width: 72px; height: 72px; }
  .week-head .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-rise] { transform: none; opacity: 1; }
}
/* grid children may shrink below their content (long game names stay inside the board) */
.live-in > *, .week-in > *, .how-in > *, .g-hero-in > *, .plate-in > * { min-width: 0; }
@media (max-width: 640px) { .hero-h { font-size: clamp(2rem, 9.4vw, 2.7rem); } .ask-line { font-size: clamp(2rem, 10vw, 2.6rem); } }

/* hero pictures: the most played games, as Roblox shows them */
.hero-pics { position: absolute; right: 0; top: -10px; width: 44%; height: 520px; z-index: 1; pointer-events: none; }
.hp { position: absolute; width: 74%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--s1); }
.hp-1 { right: 0; top: 70px; transform: rotate(-3deg); }
.hp-2 { right: 40%; top: 250px; width: 58%; transform: rotate(4deg); }
.hp-3 { right: 2%; top: 330px; width: 52%; transform: rotate(-1.5deg); }
.chip-a { right: 16%; top: 20px; }
.chip-b { right: 0; top: 270px; }
.chip-c { right: 30%; top: 470px; }
.hp { animation: chipin .9s var(--ease) both; } .hp-2 { animation-delay: .15s; } .hp-3 { animation-delay: .3s; }
.hf-pic { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
@media (max-width: 1100px) { .hero-pics { width: 46%; } .chip-a { right: 4%; } .chip-c { right: 20%; } }
@media (max-width: 900px) {
  .hero-pics { position: relative; order: 0; width: 100%; height: auto; top: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 28px; }
  .hp { position: static; width: 100%; transform: none; border-radius: 14px; }
  .hp-1 { grid-row: span 2; height: 100%; aspect-ratio: auto; }
  .hp-2, .hp-3 { width: 100%; }
  .chip-a, .chip-b, .chip-c { right: auto; top: auto; }
}
@media (max-width: 640px) { .how-frag .hf-pic { display: none; } }
/* phones and tablets: the card sits above the steps, nothing pinned over the text */
@media (max-width: 900px) {
  .how-stage { position: static; order: 0; padding: 0; }
  .how-steps { order: 1; }
  .step, .step:first-of-type { min-height: 0; opacity: 1; padding: 18px 0; }
  .step .s-big { font-size: var(--t-md); }
}
