:root{color-scheme:light;--ink: #32252a;--muted: #6b5548;--pill: #7c6657;--pill-ink: #fff4de;--dark: #292326;--cream: #fff0d6;font-family:system-ui,-apple-system,Segoe UI,PingFang SC,Hiragino Sans,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}html{background:#050506}body{background:radial-gradient(ellipse at 50% 43%,#303033,#1b1b1e 44%,#0d0d0f,#050506)}.case{width:560px;padding:16px 16px 22px;border-radius:32px 32px 48px 48px;background:linear-gradient(155deg,#f8e1bc,#ebc99d 55%,#d6ac7e);box-shadow:inset 0 2px #ffefd1,inset 0 -3px #ae8461,0 5px 8px #0009,0 18px 38px #000b,0 32px 72px #0008;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--scale, 1));transform-origin:center;user-select:none;-webkit-user-select:none;touch-action:none}.case.wide{width:auto;display:grid;align-items:center;column-gap:28px;border-radius:40px;grid-template:"bar bar bar" auto "left screen right" auto "legend legend legend" auto / 254px 960px 254px}.wide .bar{grid-area:bar}.wide .bezel{grid-area:screen}.wide .pads{display:contents}.wide .grip.left{grid-area:left}.wide .grip.right{grid-area:right}.wide .legend{grid-area:legend}.bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 12px}.title{display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink);text-decoration:none;font-weight:800;font-size:16px}.title img{border-radius:6px;box-shadow:0 1px #ffefd1,0 0 0 1px #0000001f}.title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title:hover span{text-decoration:underline;text-underline-offset:3px}.tools{display:flex;gap:6px;flex:none}.tools button,.tools a{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:99px;background:#292326df;color:var(--cream);font-size:12px;font-weight:700;box-shadow:inset 0 0 0 1px #86766a,0 2px #ae8461}.tools button:hover,.tools a:hover{background:var(--dark)}.tools [aria-pressed=true],.tools [aria-pressed=true]:hover{background:#f2d8a9;color:#352a22;box-shadow:inset 0 0 0 1px #86766a,inset 0 2px 3px #0000001f}.tools button:focus-visible,.tools a:focus-visible,.pad-btn:focus-visible{outline:3px solid #4bb3b6;outline-offset:2px}.tools .label{display:none}@media(min-width:700px){.tools .label{display:inline}}.bezel{padding:8px;border:2px solid #2d2428;border-radius:16px;background:#302b2d;box-shadow:inset 0 2px #584c4c,0 2px #fff1d6}.screen{position:relative;aspect-ratio:16 / 9;border-radius:5px;overflow:hidden;background:#181519}.screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}.cover{position:absolute;inset:0}#status[hidden]{display:none}#status{position:absolute;inset:0;margin:0;display:grid;place-items:center;color:#fff4df;background:#211b23;font-size:14px}.pads{display:flex;justify-content:space-between;gap:24px;margin-top:30px}.grip{flex:1;display:flex;flex-direction:column;align-items:center;gap:26px;min-width:0}.shoulders{display:flex;gap:10px}.pad-btn{appearance:none;margin:0;padding:0;border:1px solid #362a2b;color:inherit;font-family:inherit;font-size:21px;font-weight:800;line-height:1;cursor:pointer;display:grid;place-items:center;position:relative;min-width:0;min-height:0;box-shadow:inset 0 2px #ffffff48,0 2px #33292d;-webkit-tap-highlight-color:transparent;transition:transform .05s,box-shadow .05s}.pad-btn.pressed{transform:translateY(2px);box-shadow:inset 0 2px 4px #2118205c}.shoulder,.system{border-radius:20px;background:var(--pill);color:var(--pill-ink);box-shadow:inset 0 1px #ffffff45,0 2px #46362e}.shoulder.pressed,.system.pressed{box-shadow:inset 0 2px 4px #2118205c}.shoulder{width:84px;height:34px;font-size:15px}.system{width:80px;height:32px;font-size:12px;letter-spacing:.07em;text-transform:uppercase}.dpad,.face{display:grid;width:156px;aspect-ratio:1;grid-template:repeat(3,minmax(0,1fr)) / repeat(3,minmax(0,1fr))}.dpad{background:radial-gradient(circle,#39333b 20%,transparent 21%)}.dpad .pad-btn{border-radius:6px;background:#49434a;color:#f4dbaf}.face .pad-btn{border-radius:50%;color:#321e25}.dpad .up,.face .x{grid-area:1 / 2}.dpad .left,.face .y{grid-area:2 / 1}.dpad .right,.face .a{grid-area:2 / 3}.dpad .down,.face .b{grid-area:3 / 2}.dpad .glyph{font-size:17px}.face .x{background:#efc75f}.face .y{background:#83c0bc}.face .a{background:#e97469}.face .b{background:#e5a36c}.keys{display:none;position:absolute;gap:3px}.show-keys .keys{display:flex}.keys kbd{min-width:17px;padding:2px 4px;border-radius:4px;background:var(--dark);color:var(--cream);box-shadow:0 1px #ffefd1;font:700 11px/1.2 ui-monospace,SF Mono,Menlo,Consolas,monospace;letter-spacing:0;text-transform:none;text-align:center;white-space:nowrap}.shoulder .keys,.dpad .up .keys,.face .x .keys{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.system .keys,.dpad .down .keys,.face .b .keys{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.dpad .left .keys,.face .y .keys{right:calc(100% + 6px);top:50%;transform:translateY(-50%);flex-direction:column;align-items:flex-end}.dpad .right .keys,.face .a .keys{left:calc(100% + 6px);top:50%;transform:translateY(-50%);flex-direction:column;align-items:flex-start}.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:30px 6px 0;padding:0;list-style:none;font-size:13px;color:var(--muted)}.legend b{display:inline-block;min-width:20px;margin-right:6px;padding:2px 6px;border-radius:6px;background:var(--pill);color:var(--pill-ink);text-align:center;font-weight:800;box-shadow:0 1px #46362e}@media(prefers-reduced-motion:reduce){.pad-btn{transition:none}}
