:root{color-scheme:dark;--bg:#18171c;--text:#faf7f0;--lime:#d3f577;--muted:#bdb7c9;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
.shell{width:min(1040px,calc(100% - 72px));margin:0 auto}
.top{border-bottom:1px solid #37353c;background:#1c1b20}
.bar{min-height:64px;display:flex;align-items:center;justify-content:space-between}
.wordmark{color:var(--text);text-decoration:none;display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:800;letter-spacing:.015em}
.wordmark img{image-rendering:pixelated;border-radius:6px}
.screen{font:inherit;font-weight:650;display:inline-flex;align-items:center;gap:8px;color:#e3dfe7;background:transparent;border:1px solid #514e58;border-radius:7px;padding:7px 12px;cursor:pointer;font-size:14px}
.screen[hidden]{display:none}.screen:hover{border-color:var(--lime);color:var(--lime)}
.corners{width:14px;height:14px;background:linear-gradient(currentColor 0 0) 0 0,linear-gradient(currentColor 0 0) 100% 0,linear-gradient(currentColor 0 0) 0 100%,linear-gradient(currentColor 0 0) 100% 100%,linear-gradient(currentColor 0 0) 0 0,linear-gradient(currentColor 0 0) 100% 0,linear-gradient(currentColor 0 0) 0 100%,linear-gradient(currentColor 0 0) 100% 100%;background-size:5px 2px,5px 2px,5px 2px,5px 2px,2px 5px,2px 5px,2px 5px,2px 5px;background-repeat:no-repeat}
.heading{display:flex;align-items:flex-end;justify-content:space-between;padding:clamp(30px,5vh,55px) 0 24px}
.kicker,.en{margin:0;font:700 12px/1.3 "SFMono-Regular",Consolas,"Courier New",monospace;letter-spacing:.11em}
.kicker{color:var(--lime);font-size:13px;letter-spacing:.18em;margin-bottom:7px}
h1,h2,p{margin:0}h1{font-size:clamp(2.65rem,5.3vw,4.4rem);letter-spacing:-.07em;line-height:1.06;font-weight:900}
h1 span{color:var(--lime);display:inline-block;transform:rotate(5deg);margin-left:.025em}
.token{display:flex;gap:5px;padding:0 5px 4px}.token i{display:block;background:#777d60;width:8px;height:23px;transform:skewX(-23deg)}.token i:nth-child(2){background:#a1af72}.token i:nth-child(3){background:var(--lime)}
.games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:48px}
.game{display:block;position:relative;isolation:isolate;min-width:0;color:var(--text);text-decoration:none;background:#242229;border:1px solid #48434d;border-radius:13px;overflow:hidden;transition:transform .19s ease,border-color .19s ease,box-shadow .19s ease}
.game:hover,.game:focus-visible{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 6px 22px #08060c66}
.game:focus-visible,.screen:focus-visible,.wordmark:focus-visible{outline:3px solid var(--lime);outline-offset:4px}
.doot{--accent:#c5a6ff}.marbles{--accent:#ffb06b}.draw{--accent:#99dcea}.racing{--accent:#ff8da2}
.cover{position:relative;background:var(--accent);border-bottom:1px solid #36323c;overflow:hidden}
.cover img{display:block;width:100%;aspect-ratio:3.15/1;height:auto;object-fit:cover;image-rendering:pixelated}
.tag{position:absolute;top:11px;left:12px;background:#242129;color:white;border-radius:4px;font-size:13px;font-weight:650;line-height:1.5;padding:2px 7px}
.detail{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 19px 17px}.en{color:var(--accent);margin-bottom:3px}
h2{font-size:clamp(1.25rem,2vw,1.65rem);font-weight:850;line-height:1.35;letter-spacing:-.025em}
.desc{color:#c5c0cb;font-size:.96rem;line-height:1.55;margin-top:4px}
.play{flex:0 0 35px;height:35px;border-radius:50%;border:1px solid #65606b;display:grid;place-items:center;transition:background .15s}
.play:before{display:block;content:"";width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid var(--accent);margin-left:3px}
.game:hover .play,.game:focus-visible .play{background:var(--accent);border-color:var(--accent)}.game:hover .play:before,.game:focus-visible .play:before{border-left-color:#241d2b}
@media(max-width:760px){.shell{width:calc(100% - 36px)}.games{gap:13px}.detail{padding:13px 12px;gap:5px}.play{flex-basis:28px;height:28px}.cover img{aspect-ratio:2.6/1}.tag{left:7px;top:7px}.desc{font-size:.9rem}}
@media(max-width:570px){.bar{min-height:55px}.heading{padding:25px 0 20px}.games{grid-template-columns:1fr;gap:16px}.game{border-radius:10px}.cover img{aspect-ratio:3.15/1}.detail{padding:12px 15px 13px}.play{flex-basis:34px;height:34px}.desc{font-size:.96rem}.kicker{font-size:12px}.tag{left:10px;top:9px}.token i{height:17px;width:6px}}
@media(prefers-reduced-motion:reduce){*,*:before{transition:none!important;transform:none!important}}

footer{margin-top:-26px;padding-bottom:24px;color:#bbb7c4}
.credits{font-size:13px}.credits summary{width:fit-content;cursor:pointer;padding:4px 0}
.credits ul{list-style:none;padding:0;margin:6px 0;display:flex;gap:6px 18px;flex-wrap:wrap}
.credits a{color:inherit;text-underline-offset:2px}
