@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f7f6f5; --panel: #ffffff; --panel-2: #efedeb; --line: #dedbd7; --line-2: #bcb8b2; --text: #191919; --muted: #5f5d5a;
  --blue: #317cff; --blue-ink: #1a59d1; --green: #00a558; --red: #f53b3a; --orange: #f58e3a; --ink: #191919; --radius: 4px;
  --hard: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font: 16px/1.5 var(--sans); caret-color: var(--blue); scrollbar-color: var(--line-2) var(--bg); }
::selection { background: var(--blue); color: #000; }
::placeholder { color: var(--muted); opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.icon-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font: 500 .78rem/1.4 var(--mono); margin-top: 1.4em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px clamp(12px, 3vw, 28px); background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo b { font-weight: 600; color: var(--muted); }
.seal { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor; -webkit-mask: url("/seal.png") center / contain no-repeat; mask: url("/seal.png") center / contain no-repeat; }
.logo-mark { width: 34px; height: 34px; background: var(--blue); color: #000; display: grid; place-items: center; font-size: 28px; box-shadow: 2px 2px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.logo:hover .logo-mark { transform: translate(-1px, -1px) rotate(-6deg); box-shadow: 4px 4px 0 var(--ink); }
.logo:hover .seal { animation: hop .5s var(--ease); }
.by { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.by:hover { color: var(--text); }
@keyframes hop { 40% { transform: translateY(-5px) rotate(8deg); } }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-3deg); } }
@keyframes wiggle { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes drift { 50% { transform: translate(var(--dx, 10px), var(--dy, -16px)) rotate(90deg); } }
.search { flex: 1; max-width: 420px; }
.search input { width: 100%; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.top nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.top nav a:not(.btn) { color: var(--text); }

main { max-width: 1040px; margin: 0 auto; padding: clamp(14px, 3vw, 28px); }
main.wide { max-width: 1320px; }
section { margin-bottom: 34px; }
.sub, .fine { color: var(--muted); }
.fine { font-size: .9rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 0; background: #000; color: #fff; font: 500 1rem var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blue); }
.btn:active { box-shadow: none; }
.btn:active { transform: translate(2px, 2px); }
/* Keeps the pressed button under the pointer at its top and left edges. */
.btn { position: relative; }
.btn:active::after { content: ""; position: absolute; inset: -4px 0 0 -4px; }
.btn-build { background: var(--blue); color: #000; box-shadow: 3px 3px 0 var(--ink); }
.btn-build:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-build:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--panel); box-shadow: inset 0 0 0 1px var(--ink), var(--hard); }
.btn-small { padding: 8px 16px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.chip-btn { position: relative; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.chip-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
.chip-btn:active { transform: none; box-shadow: none; }
.chip-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--ink); color: #000; }
.chip-btn.pop .icon { animation: like-pop .45s var(--ease); }
@keyframes like-pop { 40% { transform: scale(1.7) rotate(-12deg); } }
.spark { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3px; pointer-events: none; animation: spark .6s var(--ease) forwards; }
@keyframes spark { to { transform: translate(var(--sx), var(--sy)) rotate(180deg); opacity: 0; } }

.hero { padding: clamp(18px, 4vw, 44px) 0 8px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; max-width: 11ch; }
.dot { display: inline-block; width: .2em; height: .2em; margin-left: .04em; background: var(--blue); animation: dot-in .5s var(--ease) .55s both, dot-jump 2.6s var(--ease) 1.6s infinite; }
@keyframes dot-in { from { transform: translateY(-1.2em); opacity: 0; } }
@keyframes dot-jump { 0%, 82%, 100% { transform: none; } 88% { transform: translateY(-.35em) rotate(90deg); } 94% { transform: translateY(0) rotate(180deg); } }
.words span { display: inline-block; animation: word-in .55s var(--ease) both; }
.words span:nth-child(2) { animation-delay: .07s; } .words span:nth-child(3) { animation-delay: .14s; }
.words span:nth-child(4) { animation-delay: .21s; } .words span:nth-child(5) { animation-delay: .28s; color: var(--blue-ink); }
@keyframes word-in { from { opacity: 0; transform: translateY(.5em) rotate(4deg); } }
.poster-wrap { position: relative; perspective: 1100px; }
.mascot { position: absolute; z-index: 0; right: 18px; top: -62px; font-size: 96px; color: var(--ink); animation: bob 3.2s ease-in-out infinite; pointer-events: none; }
.poster-wrap:hover .mascot { animation: hop .5s var(--ease) infinite; }
.bit { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; animation: drift 6s ease-in-out infinite; }
.bit1 { left: -20px; top: 18%; background: var(--orange); }
.bit2 { left: 12%; bottom: -24px; width: 10px; height: 10px; background: var(--green); --dx: -14px; --dy: 10px; animation-duration: 7.5s; }
.bit3 { right: -18px; bottom: 22%; width: 18px; height: 18px; background: var(--blue); --dx: 8px; --dy: 18px; animation-duration: 5s; }
@keyframes blink { 50% { opacity: 0; } }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.hero-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-small h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 22ch; }
.hero-event { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.poster { position: relative; z-index: 1; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), box-shadow .25s var(--ease); animation: poster-in .6s var(--ease) backwards; }
.poster:hover { box-shadow: 13px 13px 0 var(--blue); text-decoration: none; }
.poster img { transition: transform .6s var(--ease); }
.poster:hover img { transform: scale(1.05); }
.poster-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ink); color: #fff; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sq { display: inline-block; width: 8px; height: 8px; background: var(--blue); flex: none; }
.blink { margin-left: auto; }
.blink { color: #7fb0ff; }
.poster img, .poster .tile-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--ink); color: #fff; }
.poster-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.poster-meta { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #e3e1da; white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes poster-in { from { opacity: 0; transform: translateY(12px); } }

.ticker { overflow: hidden; margin: 28px calc(-1 * clamp(14px, 3vw, 28px)) 22px; background: var(--ink); color: #fff; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-run { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 9px 22px; white-space: nowrap; }
.ticker span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 22px; background: var(--blue); vertical-align: middle; }
.ticker b { font-weight: 500; color: #7fb0ff; margin-left: 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.chips a { transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.chips a:hover { text-decoration: none; border-color: var(--ink); color: var(--text); transform: translateY(-2px); box-shadow: 0 2px 0 var(--ink); }
.chips a { flex: none; padding: 7px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); border-color: var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.tile { --pop: var(--blue); animation: pop-in .5s var(--ease) both; }
.tile:nth-child(4n + 2) { --pop: var(--orange); } .tile:nth-child(4n + 3) { --pop: var(--green); } .tile:nth-child(4n + 4) { --pop: var(--red); }
.tile:nth-child(2) { animation-delay: .05s; } .tile:nth-child(3) { animation-delay: .1s; } .tile:nth-child(4) { animation-delay: .15s; }
.tile:nth-child(5) { animation-delay: .2s; } .tile:nth-child(6) { animation-delay: .25s; } .tile:nth-child(n + 7) { animation-delay: .3s; }
.tile:hover { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 7px 7px 0 var(--pop); text-decoration: none; }
.tile:active { box-shadow: 2px 2px 0 var(--pop); }
.tile img { transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile-play { position: absolute; top: 8px; right: 8px; padding: 4px 9px; background: var(--pop); color: #000; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: 0; transform: translateY(-6px) scale(.9); transition: opacity .15s, transform .2s var(--ease); }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: none; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile img, .tile-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-blank { display: grid; place-items: center; font-size: clamp(2.4rem, 8vw, 4.5rem); font-weight: 600; font-family: var(--mono); color: #fff; }
.hue0 { background: #317cff; color: #000; } .hue1 { background: #191919; }
.hue2 { background: #00a558; color: #000; } .hue3 { background: #f58e3a; color: #000; }
.hue4 { background: #ac9983; color: #000; } .hue5 { background: #f53b3a; color: #000; }
.hue0, .hue2, .hue3, .hue4, .hue5 { color: #000; }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px 8px; background: var(--ink); color: #fff; }
.tile-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; justify-content: space-between; gap: 8px; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #e3e1da; }
.tile-meta b { font-weight: 500; color: #7fb0ff; font-variant-numeric: tabular-nums; }
.tile-big .tile-title { font-size: 1.4rem; }
.tile-slot { display: grid; place-content: center; justify-items: center; gap: 10px; background: transparent; border: 1px dashed var(--line-2); box-shadow: none; color: var(--muted); }
.tile-slot:hover { border: 1px solid var(--ink); color: var(--text); background: var(--panel); }
.tile-slot .seal { font-size: 54px; animation: bob 3.2s ease-in-out infinite; }
.tile-slot:hover .seal { animation: wiggle .5s ease-in-out infinite; }
.tile-slot-text { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }

.event { padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.event-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.event h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -.035em; margin-bottom: .25em; }
.event-meta { display: flex; align-items: center; gap: 8px; font: 500 .8rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.event-meta i { font-style: normal; color: var(--line-2); }
.event .sub { margin: 0; max-width: 60ch; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 500; }
.build-banner, .build-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff; border: 0; }
.build-banner .btn-build, .build-card .btn-build { box-shadow: 3px 3px 0 #fff; }
.build-banner .btn-build:hover, .build-card .btn-build:hover { box-shadow: 6px 6px 0 #fff; }
.build-banner { position: relative; overflow: hidden; padding-right: 150px; }
.banner-seal { position: absolute; right: 22px; bottom: -14px; font-size: 118px; color: var(--blue); animation: bob 3.6s ease-in-out infinite; }
.build-banner:hover .banner-seal { animation: wiggle .6s ease-in-out infinite; }
.empty .seal { font-size: 72px; display: block; margin: 0 auto 10px; color: var(--ink); animation: bob 3.2s ease-in-out infinite; }
.lost { font-size: 110px; color: var(--ink); animation: wiggle 2.4s ease-in-out infinite; }
.made { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.made .seal { font-size: 22px; }
.made:hover { text-decoration: none; border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blue); }
.made:hover .seal { animation: hop .5s var(--ease); }
.build-banner h2, .build-card h2 { font-size: 1.5rem; }
.build-banner p, .build-card p { margin: 0; color: #d2d0cd; max-width: 56ch; }
.build-card { flex-direction: column; align-items: flex-start; }
.empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); margin-bottom: 34px; }

.card { display: block; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 18px; color: var(--text); }
.player { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); margin-bottom: 18px; }
.stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10; max-height: 76vh; width: 100%; background: #000; display: grid; place-items: center; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.7); transform: scale(1.1); }
.play { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 18px 40px; border: 0; border-radius: 0; background: var(--blue); color: #000; font: 600 1.5rem var(--sans); letter-spacing: -.02em; cursor: pointer; box-shadow: 6px 6px 0 #000; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.play:not(:disabled) { animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 10px 10px 0 #000; transform: translate(-3px, -3px); } }
.play:hover:not(:disabled) { animation: none; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.play:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #000; }
.play:disabled { background: var(--panel-2); color: var(--muted); cursor: default; box-shadow: none; }
.play-icon { width: 0; height: 0; border: 12px solid transparent; border-left: 20px solid currentColor; border-right: 0; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel); }
.player-title h1 { font-size: 1.3rem; margin: 0; }
.player-title a { font-size: .9rem; }
.player-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Separate rules: a browser without :fullscreen drops a whole selector list that contains it. */
.player:fullscreen { border-radius: 0; border: 0; display: flex; flex-direction: column; }
.player:fullscreen .stage { flex: 1; max-height: none; aspect-ratio: auto; min-height: 0; }
.player.full { border-radius: 0; border: 0; display: flex; flex-direction: column; }
.player.full .stage { flex: 1; max-height: none; aspect-ratio: auto; min-height: 0; }
.player.full { position: fixed; inset: 0; z-index: 100; height: 100dvh; padding: env(safe-area-inset-top) max(env(safe-area-inset-right), 12px) max(env(safe-area-inset-bottom), 12px) max(env(safe-area-inset-left), 12px); background: var(--ink); box-shadow: none; }
.player.full .player-title a, .player.full #share { display: none; }
.refill { position: absolute; z-index: 2; padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(20, 20, 20, .85); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
/* A phone held sideways has little height: keep the bar to one thin row so the game gets the rest.
   Separate rules again, for browsers without :fullscreen. */
@media (orientation: landscape) and (max-height: 500px) {
  .player.full .player-bar { flex-wrap: nowrap; padding: 4px 12px; gap: 8px; }
  .player:fullscreen .player-bar { flex-wrap: nowrap; padding: 4px 12px; gap: 8px; }
  .player.full .player-title { min-width: 0; }
  .player:fullscreen .player-title { min-width: 0; }
  .player.full .player-title h1 { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player:fullscreen .player-title h1 { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player.full .player-title a { display: none; }
  .player:fullscreen .player-title a { display: none; }
  .player.full .player-actions { flex-wrap: nowrap; flex-shrink: 0; }
  .player:fullscreen .player-actions { flex-wrap: nowrap; flex-shrink: 0; }
  .player.full .chip-btn { padding: 3px 10px; font-size: .8rem; }
  .player:fullscreen .chip-btn { padding: 3px 10px; font-size: .8rem; }
}
.home-hint { margin: 0 0 12px; }
.no-scroll, .no-scroll body { overflow: hidden; }
#field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.game-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tags > * { padding: 4px 12px; border-radius: var(--radius); background: var(--panel-2); font-size: .85rem; color: var(--text); }
.dialog { max-width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: var(--hard); }
.dialog::backdrop { background: rgba(25, 25, 25, .55); }
.dialog h2 { margin: 0 0 8px; }
.dialog p { margin: 0; }
.dialog .row { margin-top: 16px; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.dialog select, .dialog textarea { width: 100%; margin-top: 12px; }
.scores { list-style: none; margin: 10px 0; padding: 0; font: .85rem var(--mono); }
.scores li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); animation: pop-in .4s var(--ease) both; }
.scores .rank { color: var(--muted); }
.scores .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scores li:first-child:not(.sub) b { color: var(--blue-ink); }
.scores-card { margin-top: 18px; }
.badge.tier-verified { background: var(--blue); color: #000; }
.badge.tier-anonymous { background: var(--panel-2); color: var(--text); }
.badge { padding: 3px 10px; border-radius: var(--radius); background: var(--ink); color: #fff; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.built { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.dev-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.dev-card:hover { text-decoration: none; border-color: var(--ink); box-shadow: var(--hard); }
.dev-card img, .profile img { border-radius: 50%; }
.profile { display: flex; align-items: center; gap: 18px; padding-top: 18px; }
.profile p { color: var(--muted); margin: 0; }
.profile .bio { color: var(--ink); margin-top: 8px; max-width: 60ch; overflow-wrap: anywhere; }
.bio-form { display: grid; gap: 8px; margin-bottom: 18px; }
.bio-form textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); }

form .row, .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0; }
input[type="radio"] { accent-color: var(--blue); }
textarea, select, input[type="text"], .dev-login input { width: 100%; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; }
select, .dev-login input { width: auto; }
textarea { margin-bottom: 12px; resize: vertical; }
#feedback-status { margin-left: 12px; color: var(--muted); }

.steps, .setup { padding-left: 0; list-style: none; counter-reset: step; }
.steps > li, .setup > li { position: relative; counter-increment: step; margin-bottom: 18px; padding: 20px 20px 20px 68px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.setup > li { background: var(--panel-2); }
.steps > li::before, .setup > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--blue); color: #000; font: 500 .9rem var(--mono); }
.prompt { padding: 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: .85rem/1.55 var(--mono); }

.my-game { padding: 16px 0; border-top: 1px solid var(--line); }
.my-game:first-child { border-top: 0; padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { padding: 10px 12px; border-radius: var(--radius); background: var(--bg); }
.stat b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.stat span { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fb { padding: 8px 12px; margin: 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.fb.bug { border-color: var(--red); }

footer { padding: 28px clamp(12px, 3vw, 28px) 40px; border-top: 1px solid var(--line); color: var(--muted); font: .72rem/1.7 var(--mono); text-align: center; }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top nav a:not(.btn):not(#account), .by { display: none; }
  .mascot { font-size: 64px; top: -42px; right: 10px; }
  .poster-wrap { margin-top: 34px; }
  .bit1, .bit3 { display: none; }
  .build-banner { padding-right: 24px; padding-bottom: 96px; }
  .banner-seal { font-size: 92px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .event-head, .hero-event { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .game-cols { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 3 / 4; max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.tokens { margin-top: 14px; }
.token-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }

/* preview page */
.preview-note { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff3d6; color: var(--text); }
.sdk-log { list-style: none; margin: 10px 0 0; padding: 0; max-height: 360px; overflow: auto; font: .85rem var(--mono); }
.sdk-log li { display: grid; grid-template-columns: auto 5.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sdk-log time { color: var(--muted); }
.sdk-log .sdk-bad b, .sdk-log .sdk-bad span { color: #c22a29; }
.sdk-log .sdk-none { display: block; color: var(--muted); font-family: var(--sans); }
.checks { list-style: none; margin: 0 0 12px; padding: 0; }
.checks li { padding: 5px 0 5px 26px; position: relative; color: var(--muted); }
.checks li::before { content: "–"; position: absolute; left: 4px; font-family: var(--mono); }
.checks li[data-ok="true"] { color: var(--text); }
.checks li[data-ok="true"]::before { content: "✓"; color: var(--green); font-weight: 700; }
#check-error[data-ok="false"] { color: #c22a29; }
#check-error[data-ok="false"]::before { content: "✕"; color: #c22a29; }

.prose { max-width: 68ch; }
.prose h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.prose p, .prose li { color: var(--muted, inherit); line-height: 1.6; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }
.account-end { margin-top: 48px; color: var(--muted, inherit); }
.account-end summary { cursor: pointer; width: fit-content; }
