*{box-sizing:border-box}html,body{margin:0;padding:0}html{color-scheme:dark}html:has(body.cabinet-play){height:100%;overflow:hidden}body{color:#e6e6e6;background:#1a1a1a;min-height:100vh;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.4}a,a:visited{color:#8aa4b8}img{max-width:100%;display:block}button,input,textarea,select{font:inherit;color:inherit}.wrap{width:960px;max-width:calc(100% - 32px);margin:0 auto}.site-header{border-bottom:1px solid #3a3a3a;padding:10px 0}.header-inner{flex-wrap:wrap;align-items:baseline;gap:10px 20px;width:960px;max-width:calc(100% - 32px);margin:0 auto;display:flex}.brand{color:#8aa4b8;font-weight:700}.nav-links{margin-left:auto}.nav-links a{margin-left:.85em}.nav-links a:first-child{margin-left:0}.search-slot{align-items:baseline;gap:6px;display:flex;position:relative}.search-slot label{color:#e6e6e6}.search-input{color:#e6e6e6;background:#111;border:1px solid #666;border-radius:0;width:14em;height:1.8em;padding:0 6px}.search-input:focus{outline:1px solid #8aa4b8}.search-results{z-index:20;background:#1a1a1a;border:1px solid #555;min-width:280px;max-height:min(70vh,420px);display:none;position:absolute;top:calc(100% + 4px);left:0;overflow:hidden auto}.search-results.open{display:block}.search-hit{color:#8aa4b8;border-bottom:1px solid #333;grid-template-columns:40px 1fr;align-items:center;gap:8px;padding:6px 8px;text-decoration:none;display:grid}.search-hit:hover,.search-hit.active{background:#242424}.search-hit img{object-fit:cover;background:#111;border:1px solid #3a3a3a;width:40px;height:40px}.search-hit strong{font-weight:400;text-decoration:underline;display:block}.search-hit small{color:#9a9a9a;text-decoration:none;display:block}.search-empty{padding:10px}h1,h2,h3{margin:0 0 8px;font-family:inherit;font-weight:700}h1{font-size:1.2rem}h2{font-size:1.05rem}.lede{color:#c8c8c8;margin:0 0 12px}.hint{color:#9a9a9a;margin:0;font-size:.8rem;font-weight:400}.credit-list{padding-left:1.2em;font-size:.9rem}.credit-list li+li{margin-top:4px}.section{padding:18px 0 4px}.cats{flex-wrap:wrap;gap:4px .9em;margin:0 0 14px;display:flex}.cat.is-active{color:#e6e6e6;font-weight:700;text-decoration:none}.grid{grid-template-columns:repeat(5,1fr);gap:16px 12px;display:grid}.card{min-width:0;color:inherit;text-decoration:none;display:block}.card:hover{text-decoration:none}.thumb{aspect-ratio:1;background:#2a2a2a;border:1px solid #3a3a3a;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.card-body{padding:5px 0 0}.card-body h3{color:#8aa4b8;margin:0;font-size:.9rem;font-weight:400;text-decoration:underline}.card-desc{color:#c8c8c8;margin:4px 0 0;font-size:.78rem;text-decoration:none}.card-label{color:#9a9a9a;margin:4px 0 0;font-size:.75rem}body.cabinet-play{overscroll-behavior:none;background:#111;height:100dvh;overflow:hidden}body.cabinet-play main{height:100dvh;overflow:hidden}.cabinet{background:#111;flex-direction:column;height:100%;min-height:0;display:flex}.cabinet-bar{color:#e6e6e6;background:#1a1a1a;border-bottom:1px solid #3a3a3a;flex:none;justify-content:space-between;align-items:baseline;gap:12px;min-height:40px;padding:8px 16px;display:flex}.cabinet-title{flex-wrap:wrap;align-items:baseline;gap:10px;min-width:0;display:flex}.back-link{font-size:.95rem}.cabinet-title h1{margin:0;font-size:1rem;line-height:1.2}.cabinet-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.cabinet-stage{background:#111;flex:auto;justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden;container-type:size}.player-frame{background:#000;position:relative;overflow:hidden}.cabinet-stage .player-frame{--ar-w:16;--ar-h:9;aspect-ratio:var(--ar-w) / var(--ar-h);width:min(100cqi, calc(100cqb * var(--ar-w) / var(--ar-h)));height:min(100cqb, calc(100cqi * var(--ar-h) / var(--ar-w)));max-width:100%;min-height:0;max-height:100%}.cabinet-stage .player-frame[data-fit=page]{aspect-ratio:auto;width:100%;height:100%}.cabinet-stage .player-frame iframe,.player-frame iframe{background:#000;border:0;width:100%;height:100%;display:block}.player-frame:fullscreen{background:#000;justify-content:center;align-items:center;display:flex;aspect-ratio:auto!important;width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important}.player-frame:fullscreen iframe{width:min(100vw, calc(100vh * var(--ar-w,16) / var(--ar-h,9)))!important;height:min(100vh, calc(100vw * var(--ar-h,9) / var(--ar-w,16)))!important;max-width:100%!important;max-height:100%!important;aspect-ratio:var(--ar-w,16) / var(--ar-h,9)!important}.player-frame[data-fit=page]:fullscreen iframe{aspect-ratio:auto!important;width:100%!important;height:100%!important}html.page-fill,html.page-fill body,html.page-fill body.cabinet-play,html.page-fill body.cabinet-play main,html.page-fill .cabinet{height:100dvh;overflow:hidden}html.page-fill .cabinet-stage .player-frame[data-fit=canvas]{aspect-ratio:var(--ar-w,16) / var(--ar-h,9);width:min(100cqi, calc(100cqb * var(--ar-w,16) / var(--ar-h,9)));height:min(100cqb, calc(100cqi * var(--ar-h,9) / var(--ar-w,16)));max-width:100%;max-height:100%}html.page-fill .cabinet-stage .player-frame[data-fit=page]{aspect-ratio:auto;width:100%;max-width:none;height:100%;max-height:none}html.page-fill .cabinet-bar,html.page-fill [data-page-fill]{display:none}html:not(.page-fill) [data-page-fill-exit]{display:none!important}html.page-fill [data-page-fill-exit]{z-index:10000;color:#e6e6e6;pointer-events:auto;background:#1a1a1a;border:2px solid #8aa4b8;padding:10px 18px;font-size:1rem;font-weight:600;position:fixed;top:12px;right:12px;display:inline-block!important}.cabinet-help{color:#e6e6e6;background:#1a1a1a;border:1px solid #555;width:min(480px,100% - 32px);padding:16px 18px 20px}dialog.cabinet-help{color:#e6e6e6;background:#1a1a1a}.cabinet-help::backdrop{background:#0000008c}.cabinet-help h2{font-size:1rem}.cabinet-help form{justify-content:flex-end;display:flex}.save-dialog{width:min(520px,100% - 32px)}.save-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.save-label{margin:12px 0 4px;display:block}.save-dialog textarea,[data-saves-page] textarea{resize:vertical;color:#e6e6e6;background:#111;border:1px solid #666;border-radius:0;width:100%;min-height:96px;margin-bottom:10px;padding:6px 8px}.save-note,.save-status{color:#c8c8c8;margin:8px 0}.save-status[data-kind=ok]{color:#8fba8f}.save-status[data-kind=err]{color:#d08080}.cloud-input{color:#e6e6e6;background:#111;border:1px solid #666;border-radius:0;width:100%;height:2em;padding:0 6px}.auth-bar{display:inline-block;position:relative}.auth-panel{z-index:40;background:#1a1a1a;border:1px solid #666;width:240px;padding:10px 12px 12px;position:absolute;top:calc(100% + 6px);right:0}.auth-panel .save-label:first-child{margin-top:0}.auth-panel .save-label .cloud-input{margin-top:4px;display:block}.auth-panel .save-actions{margin-bottom:0}.auth-signed{color:#c8c8c8;white-space:nowrap;margin:0;font-size:.9rem}.auth-sync{color:#8fba8f}.auth-sync[data-kind=err]{color:#d08080}.auth-sync[data-kind=info]{color:#a0a0a0}.conflict-list{margin:8px 0;padding-left:1.2em}.conflict-list li{margin:4px 0}.auth-sep{white-space:pre}.auth-text-btn{color:#8aa4b8;cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.cabinet-actions .auth-bar{z-index:40}.save-game-list{columns:2;gap:24px}.save-game-list a:hover{text-decoration:underline}@media (width<=640px){.save-game-list{columns:1}}.player-frame.soon{color:#e6e6e6;text-align:left;background:#1a1a1a;place-items:center;min-height:320px;padding:32px;display:grid}.btn{color:#e6e6e6;cursor:pointer;background:#1a1a1a;border:1px solid #666;border-radius:0;padding:3px 8px;text-decoration:none}.btn:hover{color:#e6e6e6;background:#242424;text-decoration:none}a.btn,a.btn:visited{color:#e6e6e6;text-decoration:none}.btn.primary{color:#e6e6e6;background:#1a1a1a;border-color:#8aa4b8}.block{margin-bottom:1.5em}.click-catch{z-index:2;cursor:pointer;color:#111;font:inherit;background:#ffffffbf;border:0;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;inset:0}.click-catch-label{pointer-events:none;color:#111;background:#f2f2f2;border:2px solid #222;padding:14px 28px;font-size:1.5rem;font-weight:600;line-height:1.2;display:inline-block}.click-catch.hidden{display:none}.full-play{background:#000;height:100vh;margin:0}.full-play iframe{border:0;width:100%;height:100vh}.site-footer{border-top:1px solid #3a3a3a;margin-top:28px;padding:14px 0 28px}.empty{padding:12px 0}@media (width<=980px){.grid{grid-template-columns:repeat(4,1fr)}}@media (width<=720px){.grid{grid-template-columns:1fr 1fr}.header-inner{width:calc(100% - 24px)}.nav-links{margin-left:0}}@media (width<=640px){.cabinet-bar{flex-wrap:wrap}.cabinet-stage .player-frame iframe{height:100%}}
