:root{color-scheme:dark;--ink:#eff1ff;--mute:#b6b8ca;--hair:#d9def02b;--lime:#dcfa89;--gutter:clamp(1rem,4.6vw,5.75rem);
  font-family:"DM Sans","Avenir Next","Segoe UI","Apple SD Gothic Neo","Malgun Gothic","PingFang SC","Microsoft YaHei",sans-serif;background:#0f1020;color:var(--ink);font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-height:100%;width:100%}
body{background:radial-gradient(ellipse at 1% -19%,#35365e9c 0%,transparent 56%),radial-gradient(ellipse at 100% 95%,#25334b75,transparent 52%),linear-gradient(120deg,#161728,#121322 55%,#111723);background-attachment:fixed}
[hidden]{display:none!important}
button,select{font:inherit;color:inherit}
button,a,select{touch-action:manipulation}
#lobby{max-width:1630px;min-height:100vh;min-height:100svh;margin:auto;display:flex;flex-direction:column;justify-content:center;
 padding:max(clamp(24px,5vh,65px),env(safe-area-inset-top)) max(var(--gutter),env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left))}
.mast{display:flex;align-items:center;justify-content:space-between;gap:22px;padding-bottom:clamp(19px,2.85vh,32px);border-bottom:1px solid var(--hair)}
h1{margin:0;font-family:"Archivo Black","Avenir Next","Arial Black","Segoe UI",sans-serif;font-size:clamp(3.3rem,5.7vw,6.35rem);font-weight:900;letter-spacing:-.073em;line-height:1.02;color:#fff9ec}
h1 span{color:#fff9ec}h1 em{display:inline-block;color:var(--lime);font-style:normal;transform:skewX(-8deg);margin-left:.03em}
.introduction p{margin:.65rem 0 0;color:#c4c4d3;font-size:clamp(1rem,1.28vw,1.19rem);font-weight:500;letter-spacing:-.023em;word-break:keep-all}
.tools{display:flex;align-items:center;gap:9px;flex:none}
.tools button,.language{border:1px solid #e1e4ff39;border-radius:22px;height:41px;display:inline-flex;align-items:center;gap:8px;background:#212237;color:#ececfa;font-size:.9rem;font-weight:640}
.tools button{padding:0 15px;cursor:pointer}.tools button:hover,.language:hover{border-color:#e4e7ffad}
.tools svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.language{position:relative;padding:0 13px}.language>svg{pointer-events:none;position:absolute;left:13px}
.language::after{content:"";width:5px;height:5px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);position:absolute;right:13px;top:16px;pointer-events:none}
.language select{cursor:pointer;appearance:none;-webkit-appearance:none;display:block;height:100%;background:transparent;border:0;outline-offset:3px;padding:0 14px 0 24px;font-size:inherit;font-weight:inherit}
.language option{background:#202234;color:white}
.contract,#fullscreen[aria-pressed=true] .expand{display:none}#fullscreen[aria-pressed=true] .contract{display:inline-block}
button:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
.shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.7vw,30px);margin:clamp(22px,3.6vh,48px) 0 0;align-items:start}
.game{color:inherit;text-decoration:none;display:block;min-width:0;outline-offset:8px;border-radius:10px}
.poster{position:relative;aspect-ratio:2/3;overflow:hidden;border-radius:10px;background:#24263d;box-shadow:0 9px 23px -10px #000a;transition:transform .2s ease,box-shadow .2s ease}
.poster::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #fffffe40;pointer-events:none}
.poster img{width:100%;height:100%;object-fit:contain;display:block}
.caption{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.17rem 6px;margin-top:clamp(12px,1.35vw,20px)}
.caption h2{margin:0;color:#f9f7f3;font-size:clamp(1.2rem,1.7vw,1.88rem);font-weight:750;line-height:1.24;letter-spacing:-.06em;text-wrap:balance;word-break:keep-all;overflow-wrap:break-word}
.caption p{grid-column:1/-1;margin:.22rem 0 0;color:var(--mute);font-size:clamp(.875rem,1.05vw,1rem);letter-spacing:-.027em;line-height:1.45;word-break:keep-all}
.play-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #c6c9e353;border-radius:50%;color:#f4f3f8;transition:background .2s,color .2s}
.play-icon::after{content:"";border-left:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent;margin-left:2px}
.game:focus-visible{outline:2px solid var(--lime)}
@media(hover:hover){.game:hover .poster{transform:translateY(-4px);box-shadow:0 13px 30px -8px #050611}.game:hover .play-icon{color:#19221b;background:var(--lime);border-color:var(--lime)}}
.game:focus-visible .play-icon{color:#19221b;background:var(--lime);border-color:var(--lime)}
.keyboard-guide{display:flex;align-items:center;justify-content:center;gap:18px;color:#b8bdcc;margin:clamp(22px,4.5vh,50px) 0 0}
.keyboard-guide>span{display:flex;gap:4px;align-items:center;font-size:.81rem}.keyboard-guide span span{margin-left:3px}
kbd{font-family:inherit;font-weight:650;font-size:.75rem;min-width:19px;text-align:center;padding:.12rem .29rem;border-radius:4px;border:1px solid #bfc5dd48;color:#e3e4ec}
#screen-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);border-radius:9px;background:#292c43;color:#fffdf6;max-width:min(550px,90vw);width:max-content;font-size:.92rem;text-align:center}
#screen-status:not(:empty){padding:9px 16px}
#player{position:fixed;inset:0;background:#080818}#player iframe{display:block;border:0;width:100%;height:100%;background:#080818}
body.in-game{overflow:hidden}
@media(min-width:1000px) and (min-aspect-ratio:18/10){#lobby{max-width:min(1630px,calc(220vh + 2 * var(--gutter)));padding-top:clamp(18px,3.4vh,38px)}.keyboard-guide{margin-top:20px}}
@media(max-width:900px){.mast{align-items:start}.tools{gap:6px}.shelf{gap:14px}.caption h2{font-size:1.18rem}.play-icon{width:25px;height:25px}}
@media(max-width:720px){#lobby{justify-content:flex-start;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(22px,env(safe-area-inset-bottom))}.mast{flex-direction:column-reverse;gap:18px;padding-bottom:15px}.tools{align-self:flex-end}.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;margin-top:18px}h1{font-size:clamp(2.7rem,8.9vw,4.6rem)}.introduction p{font-size:1rem;line-height:1.45}.caption{margin-top:9px}.caption p{font-size:.875rem;line-height:1.35}.tools button,.language{height:38px}.keyboard-guide{display:none}}
@media(max-width:370px){.shelf{gap:18px 10px}.caption h2{font-size:1.02rem}.play-icon{width:23px;height:23px}}
@media(any-pointer:coarse){.keyboard-guide{display:none}}
@media(max-height:520px) and (orientation:landscape) and (min-width:620px){#lobby{padding:10px 3vw 12px;justify-content:flex-start}.mast{flex-direction:row;align-items:center;gap:12px;padding-bottom:9px}h1{font-size:2.65rem}.introduction p{margin-top:4px;font-size:.88rem}.tools{align-self:center}.shelf{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px;gap:12px}.poster{max-height:min(59vh,260px);width:auto;max-width:100%;margin:0 auto}.game{min-width:0}.caption{margin-top:6px}.caption h2{font-size:1rem}.caption p{font-size:.76rem}.keyboard-guide{display:none}}
@media(prefers-reduced-motion:reduce){*,*::after{transition:none!important;scroll-behavior:auto!important}}
body.fit-screen #lobby{max-width:min(1630px,calc(245vh + 2 * var(--gutter)))}
@media(max-width:720px){body.fit-screen .mast{gap:8px}body.fit-screen .shelf{margin-top:12px}}
