/* Monochrome Hub — one palette, no colour but the role accents in the demos */
:root {
    color-scheme: dark;
    --bg: #0a0a0a; --bg2: #0e0e10; --surface: #111113; --raised: #17171a; --hover: #1c1c20;
    --border: #232326; --border-2: #303035;
    --text: #ededed; --sec: #a1a1a8; --ter: #66666e;
    --red: #ff5a5a; --blue: #5a96ff; --green: #5fe17d; --amber: #f5b840;
    --sans: 'Geist', -apple-system, system-ui, sans-serif; --mono: 'Geist Mono', 'SF Mono', monospace;
    --r: 12px; --r2: 18px;
    --ease: 320ms cubic-bezier(.4,0,.2,1); --spring: 520ms cubic-bezier(.2,.9,.25,1.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
code, kbd { font-family: var(--mono); }
kbd { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--raised); border: 1px solid var(--border-2); }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; }

/* ── background ─────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-grid {
    position: absolute; inset: -1px;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 70%);
}
.bg-spot {
    position: absolute; width: 700px; height: 700px; border-radius: 50%; left: 0; top: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,.07), rgba(255,255,255,.02) 40%, transparent 65%);
    transition: transform .12s ease-out; will-change: transform; pointer-events: none;
}
.bg-noise { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── nav ────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50; height: 60px; display: flex; align-items: center; gap: 24px;
    padding: 0 clamp(16px, 4vw, 48px); background: rgba(10,10,10,.65); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.dim { color: var(--ter); font-weight: 500; }
.mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; height: 22px; padding: 3px; border-radius: 6px; background: #000; border: 1px solid var(--border-2); }
.mark i { border-radius: 2px; background: #fff; }
.mark i:nth-child(2), .mark i:nth-child(3) { background: #9a9a9a; }
.mark i:nth-child(4) { background: #3a3a3a; }
.mark.small { width: 18px; height: 18px; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { padding: 7px 11px; border-radius: 8px; font-size: 13.5px; color: var(--sec); transition: all var(--ease); }
.links a:hover { color: var(--text); background: var(--hover); }
.nav-right { margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 13px; color: var(--sec); transition: all var(--ease); }
.pill:hover { color: var(--text); border-color: var(--ter); background: var(--hover); }

/* ── hero ───────────────────────────────────────────────── */
main { display: block; }
.hero { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(72px, 12vw, 140px) clamp(16px, 4vw, 48px) 60px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(17,17,19,.7); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--sec); animation: up var(--spring) backwards; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95,225,125,.5); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,225,125,.55); } 100% { box-shadow: 0 0 0 10px rgba(95,225,125,0); } }
.title { font-size: clamp(52px, 9vw, 112px); line-height: .98; margin: 26px 0 18px; letter-spacing: -0.045em; animation: up var(--spring) .06s backwards; }
/* the highlight sits mid-image with plain white either side and the sweep
   runs edge to edge, so the loop point is white->white: no visible restart */
.shine {
    background: linear-gradient(100deg, #fff 0 40%, #7a7a82 50%, #fff 60% 100%);
    background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent; animation: shine 4.5s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.lede { max-width: 640px; margin: 0 auto; color: var(--sec); font-size: clamp(15px, 1.7vw, 18px); animation: up var(--spring) .12s backwards; }
.loader {
    display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 30px auto 0; padding: 6px 6px 6px 16px;
    border-radius: 12px; background: rgba(17,17,19,.85); border: 1px solid var(--border-2); text-align: left;
    box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); animation: up var(--spring) .18s backwards;
}
.loader code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { position: relative; flex-shrink: 0; padding: 9px 16px; border-radius: 8px; border: none; background: #fff; color: #000; font: 600 13px var(--sans); cursor: pointer; overflow: hidden; transition: transform .15s; }
.copy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(0,0,0,.12) 50%, transparent 70%); transform: translateX(-100%); animation: slide 3s ease-in-out infinite; }
@keyframes slide { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.copy:active { transform: scale(.96); }
.copy.done { background: var(--green); }
.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; animation: up var(--spring) .24s backwards; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(23,23,26,.8); color: var(--text); font-weight: 600; font-size: 14px; transition: all var(--ease); }
.btn:hover { border-color: var(--ter); background: var(--hover); transform: translateY(-1px); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { background: #e9e9e9; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* floating target card in the hero */
.hero-card { position: relative; width: 300px; height: 210px; margin: 56px auto 0; animation: up var(--spring) .3s backwards; }
.tc-box { position: absolute; left: 90px; top: 0; width: 120px; height: 150px; border-radius: 14px; background: rgba(214,218,228,.08); }
.tc-render { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); }
.tc-box s, .fit s { position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); border-radius: 14px; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.tc-box s:nth-of-type(1), .fit s:nth-of-type(1) { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.tc-box s:nth-of-type(2), .fit s:nth-of-type(2) { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.tc-box s:nth-of-type(3), .fit s:nth-of-type(3) { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.tc-box s:nth-of-type(4), .fit s:nth-of-type(4) { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.tc { position: absolute; left: 50px; top: 142px; width: 200px; height: 58px; border-radius: 10px; background: rgba(20,20,24,.92); border: 1px solid rgba(255,90,90,.35); box-shadow: 0 16px 40px rgba(0,0,0,.6); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tc-pill { position: absolute; left: 0; top: 10px; width: 3px; height: 38px; border-radius: 2px; background: linear-gradient(var(--red), var(--amber)); }
.tc-av { position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 7px; background: #26262c; }
.tc-name { position: absolute; left: 46px; top: 7px; display: flex; flex-direction: column; line-height: 1.15; }
.tc-name b { font-size: 13px; color: var(--red); }
.tc-name span { font-size: 11px; color: #a0a0ac; }
.tc-right { position: absolute; right: 12px; top: 8px; text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.tc-right b { font-size: 12px; font-weight: 500; color: #e1e1eb; }
.tc-right span { font-size: 12px; color: #e1e1eb; }
.tc-hp { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 6px; border-radius: 3px; background: #28282e; overflow: hidden; }
.tc-hp i { display: block; height: 100%; width: 70%; border-radius: 3px; background: var(--green); animation: hp 5s ease-in-out infinite; }
@keyframes hp { 0%, 100% { width: 92%; background: var(--green); } 50% { width: 28%; background: var(--red); } }

/* ── marquee ────────────────────────────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(14,14,16,.6); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 40px; width: max-content; padding: 14px 0; animation: marquee 34s linear infinite; }
.track span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ter); white-space: nowrap; }
.track span::before { content: "◆"; margin-right: 40px; font-size: 8px; vertical-align: middle; color: var(--border-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }

/* ── sections ───────────────────────────────────────────── */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 48px); }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-head h2, .split h2, .support h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.section-head p, .lead { color: var(--sec); font-size: 15.5px; }
.section-head a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; border-radius: var(--r2); background: rgba(17,17,19,.8); border: 1px solid var(--border); overflow: hidden; transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.game:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.game.soon { opacity: .7; }
.game-art { height: 150px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 44px; letter-spacing: -.04em; color: rgba(255,255,255,.9); position: relative; overflow: hidden; }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(17,17,19,1)); }
.game-art span { position: relative; z-index: 1; }
.game-art.mm2, .game-art.dg { background: #0e0e10; }
.game-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.game:hover .game-art img { transform: scale(1.04); }
.game-art.pf { background: radial-gradient(120% 100% at 70% 0%, #10203a, #0e0e10 60%), repeating-linear-gradient(-45deg, rgba(90,150,255,.08) 0 2px, transparent 2px 14px); }
.game-art.next { background: radial-gradient(120% 100% at 50% 0%, #1c1c20, #0e0e10 60%); color: var(--ter); }
.game-body { padding: 16px 18px 18px; }
.game-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.game-body p { color: var(--sec); font-size: 13.5px; }
.status { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; }
.status.beta { color: var(--blue); background: rgba(90,150,255,.12); }
.status.soon { color: var(--ter); background: var(--raised); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { grid-column: span 2; padding: 20px; border-radius: var(--r2); background: rgba(17,17,19,.8); border: 1px solid var(--border); transition: border-color var(--ease), transform var(--ease); }
.tile:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tile.wide { grid-column: span 2; }
@media (min-width: 900px) { .tile { grid-column: span 1; } .tile.wide { grid-column: span 2; } }
.tile h3 { font-size: 16px; margin: 14px 0 6px; }
.tile p { color: var(--sec); font-size: 13.5px; }
.tile-demo { position: relative; height: 130px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); overflow: hidden; }
.figure { position: absolute; left: 50%; top: 22px; width: 60px; height: 92px; transform: translateX(-50%); }
.figure i { position: absolute; background: #3c4054; border-radius: 3px; }
.figure .h { left: 18px; top: 0; width: 24px; height: 22px; background: #e2c8a0; }
.figure .t { left: 12px; top: 26px; width: 36px; height: 34px; background: #5b6e9c; }
.figure .a { top: 26px; width: 12px; height: 34px; background: #e2c8a0; }
.figure .a.l { left: -2px; } .figure .a.r { right: -2px; }
.figure .g { top: 62px; width: 16px; height: 30px; }
.figure .g.l { left: 13px; } .figure .g.r { right: 13px; }
.fit { position: absolute; left: 50%; top: 14px; width: 84px; height: 108px; transform: translateX(-50%); border-radius: 12px; background: rgba(214,218,228,.07); animation: fit 3s ease-in-out infinite; }
@keyframes fit { 0%, 100% { width: 84px; } 50% { width: 78px; } }
.fit s { width: 18px; height: 18px; border-radius: 12px; border-color: var(--green); }
.grad-demo { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 22px; }
.gbar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--amber), var(--red)); background-size: 200% 100%; animation: gscroll 2.4s linear infinite; }
.gbar.two { background-image: linear-gradient(90deg, var(--blue), #c060ff, var(--blue)); animation-duration: 3.4s; animation-direction: reverse; }
.gbar.three { background-image: linear-gradient(90deg, var(--green), #3ca8ff, var(--green)); animation: gpulse 2s ease-in-out infinite; }
@keyframes gscroll { to { background-position: 200% 0; } }
@keyframes gpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.8); } }
.streak-demo i { position: absolute; top: 60px; left: -60px; width: 60px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--amber)); box-shadow: 0 0 12px var(--amber); animation: streak 1.6s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes streak { 0% { left: -60px; opacity: 1; } 70% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.streak-demo::after { content: ""; position: absolute; right: 24px; top: 52px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0%, 65% { transform: scale(.2); opacity: 0; } 72% { opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.feed-demo { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 18px; }
.fe { display: flex; flex-direction: column; padding: 7px 10px 7px 12px; border-radius: 8px; background: var(--raised); border-left: 3px solid var(--red); animation: feedin var(--spring) backwards; }
.fe.d { border-left-color: var(--green); animation-delay: .3s; }
.fe b { font-size: 12.5px; color: var(--red); } .fe.d b { color: var(--green); }
.fe span { font: 10.5px var(--mono); color: var(--ter); }
@keyframes feedin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.sw-demo { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 26px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--sec); }
.sw { width: 40px; height: 23px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border-2); position: relative; transition: background var(--ease), border-color var(--ease); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #8a8a8a; transition: transform var(--spring), background var(--ease); }
.sw.on { background: var(--green); border-color: var(--green); }
.sw.on::after { transform: translateX(17px); background: #fff; }
.sw-row:has(.sw.on) span { color: var(--text); }

/* 3D preview figure: boxes with four faces each, turning as a group */
.preview-demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-2d { position: absolute; left: 50%; top: 50%; height: 118px; width: 118px; transform: translate(-50%, -50%); object-fit: contain; opacity: 0; transition: opacity var(--ease); }
.pv-2d.show { opacity: 1; }
.pv-box { position: absolute; left: 50%; top: 14px; width: 66px; height: 102px; transform: translateX(-50%); border-radius: 12px; background: rgba(90,150,255,.06); opacity: 0; transition: opacity var(--ease); }
.pv-box.show { opacity: 1; transform: none; }
.pv-2d.show ~ .pv-box { opacity: 1; }
.pv-box s { position: absolute; width: 16px; height: 16px; border: 2px solid var(--blue); border-radius: 12px; }
.pv-box s:nth-of-type(1) { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.pv-box s:nth-of-type(2) { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.pv-box s:nth-of-type(3) { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.pv-box s:nth-of-type(4) { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }

/* web split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; margin-top: 18px; display: grid; gap: 10px; color: var(--sec); font-size: 14px; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks code { font-size: 12px; background: var(--raised); padding: 1px 6px; border-radius: 5px; }
.mock { border-radius: 14px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mock:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.mock-top span { margin-left: 10px; font: 11px var(--mono); color: var(--ter); }
.mock-body { display: grid; grid-template-columns: 110px 1fr; min-height: 250px; }
.mock-side { border-right: 1px solid var(--border); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-side b { font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ter); padding: 8px 8px 3px; }
.mock-side span { font-size: 12px; color: var(--sec); padding: 5px 8px; border-radius: 6px; }
.mock-side span.act { background: var(--raised); color: var(--text); }
.mock-main { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.mock-card { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.mock-card.on { border-color: rgba(95,225,125,.35); }
.msw { width: 30px; height: 18px; border-radius: 999px; background: var(--hover); border: 1px solid var(--border-2); position: relative; }
.msw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #8a8a8a; }
.msw.on { background: var(--green); border-color: var(--green); }
.msw.on::after { left: 14px; background: #fff; }

/* support */
.support { text-align: center; max-width: 640px; margin: 0 auto; padding: 44px 28px; border-radius: var(--r2); background: rgba(17,17,19,.8); border: 1px solid var(--border); position: relative; overflow: hidden; }
.support::before { content: ""; position: absolute; inset: -40% -20% auto; height: 200px; background: radial-gradient(circle, rgba(245,184,64,.14), transparent 60%); pointer-events: none; }
.support-star { font-size: 40px; color: var(--amber); text-shadow: 0 0 30px rgba(245,184,64,.5); animation: float 4s ease-in-out infinite; }
.support p { color: var(--sec); font-size: 15px; margin: 10px auto 22px; }
.support-row { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.stat { font-size: 13.5px; color: var(--sec); }
.stat b { font-family: var(--mono); font-size: 18px; color: var(--amber); }

/* changelog */
.log { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--border); margin-left: 6px; }
.log li { position: relative; padding: 12px 0 12px 26px; display: grid; grid-template-columns: 96px 150px 1fr; gap: 14px; align-items: baseline; }
.log li::before { content: ""; position: absolute; left: -5px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-2); }
.log li:first-child::before { border-color: var(--green); background: var(--green); }
.log time { font: 12px var(--mono); color: var(--ter); }
.log b { font-size: 14px; }
.log span { color: var(--sec); font-size: 13.5px; }
@media (max-width: 720px) { .log li { grid-template-columns: 1fr; gap: 2px; } }

/* footer / toast */
.foot { border-top: 1px solid var(--border); padding: 36px clamp(16px, 4vw, 48px); text-align: center; color: var(--ter); font-size: 12.5px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--sec); margin-bottom: 10px; }
.foot a { border-bottom: 1px solid var(--border-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); font-size: 13px; transition: all var(--ease); pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
    .links { display: none; }
    .bento { grid-template-columns: 1fr; }
    .tile, .tile.wide { grid-column: span 1; }
    .hero-actions { flex-direction: column; }
    .loader code { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* game cards open a feature list */
button.game { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; }
button.game:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gmodal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.gmodal[hidden] { display: none; }
.gmodal-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); animation: fade .25s both; }
.gmodal-card { position: relative; width: min(720px, 100%); max-height: min(80vh, 760px); overflow: auto; border-radius: var(--r2); background: rgba(17,17,19,.96); border: 1px solid var(--border-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); animation: up var(--spring) both; }
.gmodal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; position: sticky; top: 0; background: rgba(17,17,19,.96); border-bottom: 1px solid var(--border); }
.gmodal-head h3 { font-size: 18px; font-weight: 700; margin: 0; }
.gmodal-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--raised); color: var(--sec); font-size: 18px; cursor: pointer; }
.gmodal-x:hover { color: #fff; border-color: var(--border-2); }
.gmodal-body { padding: 16px 22px 22px; display: grid; gap: 18px; }
.gmodal-body h4 { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ter); margin: 14px 0 8px; }
.gmodal-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.gmodal-body li { position: relative; padding-left: 14px; color: var(--sec); font-size: 13.5px; }
.gmodal-body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--text); opacity: .55; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ── credits: Discord profile cards ─────────────────────── */
.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dc { position: relative; display: block; border-radius: var(--r2); background: rgba(17,17,19,.85); border: 1px solid var(--border); overflow: hidden; transition: border-color var(--ease), transform var(--ease); }
.dc:hover { border-color: var(--border-2); transform: translateY(-3px); }
.dc-banner { height: 92px; background: linear-gradient(135deg, #1c1c20, #0e0e10); background-size: cover; background-position: center; }
.dc-body { padding: 0 18px 18px; }
.dc-av { position: relative; width: 76px; height: 76px; margin-top: -40px; border-radius: 50%; border: 5px solid #111113; background: #111113; }
.dc-av img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.dc-status { position: absolute; right: -1px; bottom: -1px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid #111113; background: var(--ter); display: none; }
.dc[data-status] .dc-status { display: block; }
.dc[data-status="online"] .dc-status { background: #23a55a; }
.dc[data-status="idle"] .dc-status { background: #f0b232; }
.dc[data-status="dnd"] .dc-status { background: #f23f43; }
.dc-name { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 18px; }
.dc-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 6px 1px 4px; border-radius: 6px; background: var(--raised); border: 1px solid var(--border-2); color: var(--sec); }
.dc-tag img { width: 14px; height: 14px; }
.dc-user { color: var(--ter); font-size: 13px; }
.dc-role { display: inline-flex; align-items: center; gap: 6px; margin: 12px 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border-2); color: var(--text); }
.dc-act { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.dc-act img { width: 44px; height: 44px; border-radius: 8px; flex: none; object-fit: cover; }
.dc-act div { min-width: 0; font-size: 12px; color: var(--sec); line-height: 1.35; }
.dc-act b { display: block; color: var(--text); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-act span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-act small { color: var(--ter); font-family: var(--mono); font-size: 11px; }
.dc-bar { height: 3px; margin-top: 6px; border-radius: 2px; background: var(--border-2); overflow: hidden; }
.dc-bar i { display: block; height: 100%; background: var(--text); }
.dc-tag[hidden], .dc-act[hidden] { display: none; }
.dc-role-emoji { width: 18px; height: 18px; object-fit: contain; }

/* ── game write-ups ─────────────────────────────────────── */
.gm-hero { position: relative; height: 170px; border-radius: 14px; background: var(--bg2) center / cover no-repeat; border: 1px solid var(--border); overflow: hidden; }
.gm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.05) 20%, rgba(10,10,10,.92)); }
.gm-hero-in { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; }
.gm-hero-in a { flex: none; font-size: 12.5px; color: var(--sec); padding: 5px 10px; border-radius: 999px; background: rgba(17,17,19,.8); border: 1px solid var(--border-2); }
.gm-hero-in a:hover { color: #fff; }
.gm-high { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gm-high div { padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--text); }
@media (max-width: 620px) { .gm-high { grid-template-columns: 1fr; } }
.gm-groups { display: grid; gap: 4px 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gm-shared { border-top: 1px solid var(--border); padding-top: 12px; }
.gm-shared summary { cursor: pointer; color: var(--sec); font-size: 13px; list-style: none; }
.gm-shared summary::before { content: "+ "; color: var(--ter); }
.gm-shared[open] summary::before { content: "− "; }
.gm-shared summary:hover { color: var(--text); }
