:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--canvas:#fff;--panel:#f7f7f8;--raised:#eeeef0;--border:#dedee2;--line-bright:#aeafb7;--text:#1b1c20;--muted:#54555d;--accent:#a5411d;--accent-hover:#813215;--header:70px;--layout-width:1360px;--gutter:clamp(18px, 4vw, 60px);--mono:ui-monospace, "SFMono-Regular", monospace;color:var(--text);background:var(--canvas);font-family:Avenir Next,PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}:root:has(#viewport:is([data-state=playing],[data-state=paused])){overscroll-behavior-x:none}[hidden]{display:none!important}body{background:var(--canvas);min-width:300px;min-height:100dvh;margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed}:where(a,button,input):focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,p{margin:0}.icon{flex:none;place-items:center;width:20px;height:20px;display:inline-grid}.icon svg{width:100%;height:100%;display:block}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip-link{z-index:6;inset:12px auto auto var(--gutter);background:var(--accent);color:#fff;border-radius:4px;padding:8px 12px;font-weight:750;position:fixed}.skip-link:not(:focus){clip-path:inset(50%)}.top{z-index:5;background:var(--canvas);border-bottom:1px solid var(--border);position:sticky;top:0}.top-inner{width:min(100% - 2 * var(--gutter), var(--layout-width));min-height:calc(var(--header) - 1px);grid-template-columns:auto 1fr minmax(150px,280px) auto;align-items:center;gap:clamp(14px,2.4vw,36px);margin-inline:auto;display:grid}.brand{align-items:center;gap:11px;width:max-content;display:inline-flex}.brand-mark{background:var(--accent);color:#fff;clip-path:polygon(0 0,100% 0,100% 76%,76% 100%,0 100%);place-items:center;width:40px;height:40px;display:grid}.brand-mark .icon{width:24px;height:24px}.brand strong,.brand small{display:block}.brand strong{letter-spacing:.045em;font-size:16px;font-weight:850;line-height:1.3}.brand small{font:700 9px var(--mono);color:var(--muted);letter-spacing:.12em;margin-top:3px}.top-nav{align-self:stretch;gap:clamp(14px,2.2vw,30px);display:flex}.top-nav a{min-height:40px;color:var(--muted);white-space:nowrap;align-items:center;font-size:14px;font-weight:650;display:flex;position:relative}.top-nav a:is(:hover,[aria-current]){color:var(--text)}.top-nav a[aria-current]:after{content:"";background:var(--accent);height:3px;position:absolute;inset:auto 0 -1px}.search{border:1px solid var(--border);background:var(--panel);height:39px;color:var(--muted);border-radius:5px;align-items:center;gap:9px;padding:0 10px;display:flex}.search:focus-within{border-color:var(--accent)}.search input{width:100%;min-width:0;color:var(--text);background:0 0;border:0;outline:none;padding:0;font-size:13px}.search input:focus-visible{outline:0}.search input::placeholder{color:var(--muted)}.search .icon{width:17px;height:17px}.language-control{justify-self:end}.language-control select{border:1px solid var(--border);background:var(--canvas);height:39px;color:var(--text);font:inherit;border-radius:5px;padding:0 8px;font-size:13px}.language-control select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}kbd{font:11px var(--mono);white-space:nowrap;border:1px solid var(--line-bright);background:var(--raised);color:var(--text);border-radius:4px;padding:3px 6px}#content{width:min(100% - 2 * var(--gutter), var(--layout-width));min-width:0;scroll-margin-top:var(--header);margin-inline:auto;padding:clamp(24px,3vw,44px) 0 70px}.page-title{flex-wrap:wrap;align-items:baseline;gap:8px 14px;margin-bottom:20px;display:flex}.page-title h1{letter-spacing:-.035em;font-size:clamp(28px,3vw,40px);font-weight:850;line-height:1.2}.page-title p{color:var(--muted);font-size:13px}.library-layout{grid-template-columns:166px minmax(0,1fr);align-items:start;gap:clamp(20px,3.3vw,46px);display:grid}.library-nav{top:calc(var(--header) + 18px);border-right:1px solid var(--border);gap:4px;padding-right:15px;display:grid;position:sticky}.library-nav a{min-height:38px;color:var(--muted);white-space:nowrap;border-radius:4px;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;font-size:14px;font-weight:650;display:flex}.library-nav a:hover{background:var(--panel);color:var(--text)}.library-nav a[aria-current]{box-shadow:inset 3px 0 var(--accent);color:var(--accent);background:var(--panel)}.category-count{font:12px var(--mono)}.eyebrow{color:var(--muted);font-size:12px;font-weight:700}.primary{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:5px;justify-content:center;align-items:center;gap:9px;width:fit-content;min-height:44px;padding:0 17px;font-size:14px;font-weight:850;display:inline-flex}.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.primary .icon{width:15px;height:15px}.primary svg{fill:currentColor}.icon-btn{background:var(--raised);border:1px solid var(--line-bright);border-radius:5px;place-items:center;width:42px;height:42px;display:inline-grid}.icon-btn .icon{width:17px;height:17px}.icon-btn:not(:disabled):hover{border-color:var(--accent);color:var(--accent)}.icon-btn:disabled{opacity:.42}.favorite.selected{color:var(--accent)}.favorite.selected svg{fill:currentColor}.text-link,.back-link{color:var(--text);white-space:nowrap;align-items:center;gap:7px;font-size:13px;display:inline-flex}.text-link .icon,.back-link .icon{width:15px;height:15px;color:var(--accent)}.text-link:hover,.back-link:hover{color:var(--accent)}.game-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:22px 16px;display:grid}.game-card{min-width:0;position:relative}.game-card a,.game-card img,.game-card small{display:block}.game-card a:hover strong{color:var(--accent);text-underline-offset:3px;text-decoration:underline}.game-art{background:var(--panel);border-radius:5px;overflow:hidden}.game-card img{aspect-ratio:4/3;object-fit:cover;width:100%}.game-card-copy{justify-content:space-between;align-items:center;gap:8px;padding-top:9px;display:flex}.game-card-copy strong{font-size:clamp(14px,1.45vw,18px);font-weight:800;line-height:1.4;display:block}.game-card-copy small{color:var(--muted);margin-top:4px;font-size:12px}.game-card-play{color:var(--muted)}.game-card-play .icon{width:16px;height:16px}.game-card .favorite{background:var(--canvas);border-color:var(--border);width:34px;height:34px;position:absolute;top:7px;right:7px}.empty{border-top:1px solid var(--border);padding:25px 0}.empty p{color:var(--muted);margin-bottom:14px}.detail-heading{justify-content:space-between;align-items:baseline;gap:10px 16px;margin:16px 0 14px;display:flex}.detail-heading>:first-child{min-width:0}.detail-heading>:last-child{flex-shrink:0}.detail-heading h1,.nes-page h1{overflow-wrap:anywhere;font-size:clamp(22px,2.7vw,34px);font-weight:750;line-height:1.23}.detail-heading .eyebrow{margin-bottom:5px}.game-layout{grid-template-columns:minmax(0,1fr) minmax(210px,250px);align-items:start;gap:16px;display:grid}.player{border:1px solid var(--border);background:var(--panel);border-radius:11px;overflow:hidden}.viewport{aspect-ratio:16/9;background:#0d1013 var(--game-cover) center / cover;position:relative;overflow:hidden}.arcade-viewport{aspect-ratio:auto;height:clamp(275px,56vw,560px)}.embedded-viewport{width:100%;aspect-ratio:var(--game-ratio);max-height:min(72svh,720px)}#game-mount{position:absolute;inset:0;overflow:hidden}#game-mount canvas{image-rendering:pixelated;display:block}.hosted-game-frame{background:#0d1013;border:0;width:100%;height:100%;display:block}.player-overlay{color:#fff2df;text-align:center;background:#101013b4;align-content:center;justify-items:center;gap:10px;display:grid;position:absolute;inset:0}.player-overlay h2{text-shadow:1px 3px #151312;font-size:clamp(25px,4vw,48px)}.player-overlay p{color:#f4e4d1;font-size:13px}.player-overlay .primary{margin-top:5px}.player-bar{background:var(--panel);justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;font-size:12px;display:flex}.embedded-bar{flex-wrap:wrap}.player-tools{align-items:center;gap:6px;display:flex}.hosted-link{color:var(--accent);white-space:nowrap;padding:6px}.hosted-link:hover{text-decoration:underline}.player-tools .icon-btn{width:33px;height:33px}.play-info{gap:12px;display:grid}.play-info section{background:var(--panel);border:1px solid var(--border);border-radius:9px;padding:15px}.play-info h2{align-items:center;gap:7px;margin-bottom:9px;font-size:15px;display:flex}.play-info h2 .icon{width:16px;height:16px;color:var(--accent)}.play-info p,.play-info dt{color:var(--muted);font-size:12px;line-height:1.7}.play-info p+p{margin-top:7px}.play-info dl{gap:8px;margin:0;display:grid}.play-info dl div{justify-content:space-between;align-items:center;display:flex}.play-info dd{margin:0}.stage-list{gap:5px;display:grid}.stage-list button{text-align:left;border:1px solid var(--border);background:var(--raised);border-radius:5px;align-items:center;gap:8px;width:100%;padding:7px 8px;font-size:12px;display:flex}.stage-list button:disabled{opacity:.55}.stage-list button[aria-current],.stage-list button:enabled:hover{color:var(--accent)}.stage-list button span:first-child{font-family:ui-monospace,monospace}.stage-list .icon{width:13px;height:13px;margin-left:auto}.touch-controls{touch-action:none;display:none}.touch-controls button{border:1px solid var(--line-bright);background:var(--raised);touch-action:none;border-radius:6px;min-width:48px;min-height:42px;padding:0 12px}.touch-controls button:active{color:var(--accent);border-color:var(--accent)}:is(.player:fullscreen,.player.expanded){background:var(--panel);flex-direction:column;justify-content:center;display:flex}:is(.player:fullscreen .viewport,.player.expanded .viewport){aspect-ratio:auto;flex:1;min-height:0}.player.expanded{z-index:12;position:fixed;inset:0}#leave-dialog{width:min(386px,100% - 26px);color:var(--text);background:var(--panel);border:1px solid var(--line-bright);border-radius:11px;padding:22px}#leave-dialog::backdrop{background:#100d0db8}#leave-dialog h2{font-size:22px}#leave-dialog p{color:var(--muted);margin-top:8px;font-size:14px}.leave-actions{justify-content:end;gap:8px;margin-top:21px;display:flex}.leave-button{border:1px solid var(--line-bright);background:var(--raised);border-radius:7px;padding:0 13px}.leave-button:hover{border-color:var(--accent)}@media (width<=1050px){.game-layout{grid-template-columns:minmax(0,1fr)}.play-info{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=760px){:root{--header:100px}.top-inner{grid-template-rows:54px 45px;grid-template-columns:auto minmax(110px,1fr);gap:0 12px}.top-nav{grid-area:2/1;gap:12px}.top-nav a{font-size:12px}.search{grid-area:2/2;height:34px}.language-control{grid-area:1/2}.language-control select{height:34px}.search kbd{display:none}.brand-mark{width:33px;height:33px}.brand-mark .icon{width:21px;height:21px}.brand strong{font-size:13px}.brand small{font-size:8px}.library-layout{grid-template-columns:minmax(0,1fr);gap:17px}.library-nav{border-right:0;flex-wrap:wrap;gap:6px;padding:0;display:flex;position:static}.library-nav a{gap:5px;padding-inline:9px;font-size:13px}.library-nav a[aria-current]{box-shadow:inset 0 -2px var(--accent)}.page-title{margin-bottom:14px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.play-info{grid-template-columns:minmax(0,1fr)}}@media (pointer:coarse),(width<=620px){.touch-controls.visible{justify-content:space-between;gap:10px;padding:0 10px 10px;display:flex}.touch-controls>div{gap:7px;display:flex}}@media (prefers-reduced-motion:no-preference){.primary,.icon-btn,.library-nav a{transition:background-color .18s,border-color .18s,color .18s}.game-card img{transition:transform .24s}.game-card a:hover img{transform:scale(1.04)}}.nes-page h1{margin:6px 0}.nes-intro{color:var(--muted);margin-bottom:20px;font-size:14px}.nes-console{border:1px solid var(--border);background:var(--panel);border-radius:11px;gap:10px;padding:clamp(10px,2vw,18px);display:grid}.nes-screen{border:1px solid var(--line-bright);background:#08090d;border-radius:8px;place-items:center;min-height:0;display:grid;position:relative}.nes-screen canvas{width:min(100%,max(500px,82dvh));height:auto;image-rendering:pixelated;outline-offset:-2px;border-radius:7px;display:block}.nes-screen canvas:focus-visible{outline:2px solid var(--accent)}.nes-idle{color:#c6c7ce;pointer-events:none;position:absolute}.nes-paused{border-radius:inherit;background:#08090d96;place-items:center;display:grid;position:absolute;inset:0}.nes-toolbar,.nes-toolbar-group{flex-wrap:wrap;gap:8px;display:flex}.nes-toolbar{top:var(--header);z-index:1;background:var(--panel);justify-content:space-between;position:sticky}.nes-toolbar button{min-height:40px}.nes-toolbar button:disabled{opacity:.48}.nes-status,.nes-keys{overflow-wrap:anywhere;font-size:13px;line-height:1.5}.nes-status:empty{display:none}.nes-keys{color:var(--muted)}.nes-touch{display:none}:is(.nes-console:fullscreen,.nes-console.nes-expanded){background:var(--canvas);width:100%;height:100dvh;padding:max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));border:0;border-radius:0;grid-template-rows:auto minmax(0,1fr) auto}.nes-console.nes-expanded{z-index:12;position:fixed;inset:0}.nes-console:is(:fullscreen,.nes-expanded) .nes-screen{container-type:size}.nes-console:is(:fullscreen,.nes-expanded) .nes-toolbar{background:0 0;position:static}.nes-console:is(:fullscreen,.nes-expanded) canvas{width:min(100cqw,106.667cqh);height:auto}.nes-console:is(:fullscreen,.nes-expanded) .nes-keys{display:none}@media (pointer:coarse),(width<=620px){.nes-touch{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.nes-console:is(:fullscreen,.nes-expanded):has(.nes-touch:not([hidden])){grid-template-rows:auto minmax(0,1fr) auto auto}.nes-toolbar-group{gap:5px}.nes-toolbar .leave-button{padding-inline:8px;font-size:13px}.nes-touch button{border:1px solid var(--line-bright);background:var(--raised);touch-action:none;-webkit-user-select:none;user-select:none;border-radius:7px;min-width:44px;min-height:44px;padding:0 6px}.nes-touch button:active{border-color:var(--accent);color:var(--accent)}.nes-dpad{grid-template-columns:repeat(3,44px);gap:3px;display:grid}.nes-dpad button:first-child{grid-column:2}.nes-dpad button:nth-child(2){grid-column:1}.nes-system-buttons,.nes-action-buttons{gap:4px;display:flex}}
