:root{color-scheme:dark;--page:#0c0f17;--panel:#161a25;--line:#2c3141;--text:#f4f4f9;--muted:#a6a8bb;--lime:#c2fa73;--purple:#ada1fc;--mono:"Space Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;--sans:Inter,"Noto Sans SC","Noto Sans CJK SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 2%,#131626 0,transparent 66%),var(--page);color:var(--text);font:400 1rem/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{opacity:.53;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,canvas[tabindex]:focus-visible{outline:2px solid var(--lime);outline-offset:4px}a{color:inherit;text-decoration:none}img{display:block;width:100%}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.mono{font-family:var(--mono)}.ico{display:inline-block;flex:none;width:1.15em;height:1.15em;background:currentColor;mask:var(--glyph) center/contain no-repeat;-webkit-mask:var(--glyph) center/contain no-repeat;vertical-align:middle}.topbar{height:77px;border-bottom:1px solid #242836;background:#10131d}.bar-inner,.shell,.foot-inner{width:min(1352px,calc(100% - clamp(40px,8.2vw,144px)));margin-inline:auto}.bar-inner{height:100%;display:flex;align-items:center;gap:clamp(30px,5.3vw,86px)}.brand{display:inline-flex;gap:12px;align-items:center;flex:none}.brand-alien{font-size:37px;color:var(--lime);width:40px;height:40px;filter:drop-shadow(0 0 7px #b8f56a20)}.brand span{display:flex;flex-direction:column;gap:3px}.brand b{font-size:1.24rem;font-weight:900;line-height:1.12;letter-spacing:.02em}.brand small{color:var(--lime);font:700 .65rem/1 var(--mono);letter-spacing:.21em}.main-nav{display:flex;align-self:stretch;gap:30px}.nav-link{position:relative;display:flex;align-items:center;gap:9px;padding:0 1px;color:#a6a8bb;font-size:.93rem;font-weight:620}.nav-link .ico{font-size:1.02rem}.nav-link:hover,.nav-link.active{color:var(--lime)}.nav-link.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--lime)}.top-actions{display:flex;align-items:center;gap:15px;margin-left:auto}.icon-btn,.join-btn,.btn,.filters button,.heart-btn,.control-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}.icon-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:9px;background:#191d29;color:#c8cbda}.icon-btn:hover,.glass:hover,.control-btn:hover{border-color:#70768c;color:white}.join-btn{border:1px solid #424a3d;background:#20271f;color:var(--lime);font-size:.9rem;font-weight:720;border-radius:7px;min-height:38px;padding:0 15px}.join-btn:hover{background:#303d28}.shell{padding-top:clamp(23px,2.35vw,38px)}.hero{isolation:isolate;overflow:hidden;position:relative;border:1px solid #393349;border-radius:14px;background:#171427;min-height:clamp(338px,27vw,405px);display:flex;align-items:center;box-shadow:0 8px 26px #0002}.hero-art,.hero-shade,.dot-texture{position:absolute;inset:0;z-index:-1;pointer-events:none}.hero-art{left:32%;background-image:url('/art/hockey.webp');background-size:cover;background-position:50% 54%}.hero-shade{background:linear-gradient(90deg,#1a172b 0%,#1b172d 23%,rgba(27,23,44,.97) 32%,rgba(25,20,44,.79) 41%,rgba(22,19,37,.20) 55%,transparent 70%),linear-gradient(0deg,#0b091b48,transparent 22%)}.dot-texture{right:58%;background-image:radial-gradient(#b3a5dd1b .7px,transparent 1px);background-size:6px 6px;mask-image:linear-gradient(90deg,black,transparent)}.hero-content{position:relative;padding:clamp(28px,2.65vw,44px) clamp(26px,3.5vw,56px);max-width:51%}.feature-line{display:flex;align-items:center;gap:14px;margin-bottom:14px}.feature-label{display:inline-flex;align-items:center;gap:5px;padding:3px 9px 4px;border:1px solid #a7d37460;border-radius:4px;color:var(--lime);background:#b8f17b0e;font-size:.78rem;font-weight:720;line-height:1.45}.feature-label .ico{width:12px;height:14px}.hero-index{font-size:.75rem;line-height:1;color:#c3bdcf;letter-spacing:.13em}.hero h1{font-size:clamp(3.05rem,4.35vw,4.4rem);font-weight:900;line-height:1.2;letter-spacing:.035em;text-shadow:2px 3px 0 #0a091a66}.pixel-word{display:block;height:clamp(15px,1.42vw,22px);width:auto;max-width:100%;margin-top:8px;image-rendering:pixelated}.hero-content p{font-size:clamp(.94rem,1.19vw,1.075rem);color:#c5c3d3;line-height:1.75;margin:20px 0 23px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.btn{border-radius:7px;min-height:44px;padding:0 21px;font-weight:750;font-size:.94rem;letter-spacing:.017em;transition:background .15s ease,transform .15s ease}.btn:active:not(:disabled){transform:translateY(1px)}.primary{background:var(--lime);color:#192514;border:1px solid #d6ff9f;box-shadow:0 2px 0 #6e9448}.primary:hover:not(:disabled){background:#d3ff94}.primary .i-play{width:15px;height:15px}.glass,.secondary{background:#222032dc;color:#e4e3ee;border:1px solid #545064}.secondary{border-color:#393e50;background:#222634}.secondary:hover{background:#303647}.hero-pager{position:absolute;right:23px;bottom:15px;display:flex;gap:1px;align-items:center;background:#10101b9c;padding:1px 6px;border-radius:20px}.hero-pager button{height:22px;width:18px;padding:0;display:grid;place-items:center}.hero-pager button:after{content:"";width:6px;height:6px;border-radius:8px;background:#b3a8c4}.hero-pager button.current{width:28px}.hero-pager .current:after{width:20px;background:var(--lime)}.library{margin-top:clamp(29px,2.65vw,43px)}.section-head,.section-title{display:flex;align-items:center}.section-head{justify-content:space-between;gap:16px;margin-bottom:18px}.section-title{gap:11px;flex-wrap:wrap}.section-title h2{font-size:clamp(1.48rem,1.8vw,1.88rem);font-weight:820;line-height:1.2;letter-spacing:.025em}.library-mark{width:27px;height:27px;display:grid;place-items:center;color:var(--lime)}.library-mark .ico{width:24px;height:24px}.library-en{font-size:.70rem;letter-spacing:.14em;color:#9393a9;font-weight:bold;line-height:1}.filters{display:flex;gap:2px;align-items:center;padding:3px;background:#141721;border:1px solid #2c3040;border-radius:8px}.filters button{font-size:.84rem;line-height:1.5;color:#adb0c1;padding:3px 14px 4px;border:1px solid transparent;border-radius:5px;font-weight:600}.filters button.on{background:#343c2d;color:var(--lime);border-color:#525e42}.filters button:hover:not(.on){color:#eeeef5;background:#232836}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.3vw,21px)}.card{position:relative;border:1px solid #313545;border-radius:10px;overflow:hidden;background:#191d29;transition:border-color .16s,transform .16s,box-shadow .16s}.card:hover,.card:focus-within{border-color:#838b70;transform:translateY(-3px);box-shadow:0 10px 25px #0004}.card-main{display:block;width:100%;padding:0;text-align:left}.card-main:focus-visible{outline-offset:-3px}.thumb{display:block;aspect-ratio:1.64;overflow:hidden;background:#232437;border-bottom:1px solid #ffffff0c}.thumb img{height:100%;object-fit:cover;transition:transform .26s;image-rendering:auto}.card:hover .thumb img{transform:scale(1.035)}.card-main .card-info{display:flex;flex-direction:column;gap:7px;padding:12px 15px 14px}.card-title-line{display:flex;align-items:center;justify-content:space-between;gap:5px}.card-name{font-size:clamp(1.04rem,1.35vw,1.27rem);font-weight:770;line-height:1.43}.card-info .i-go{color:#7e8498;width:14px;height:14px}.card-meta{display:flex;align-items:center;gap:6px;color:#adb0c2;font-size:.79rem;line-height:1.25}.card-meta .ico{font-size:.85rem;color:var(--game-color)}.heart-btn{position:absolute;top:9px;right:9px;width:29px;height:29px;padding:0;border-radius:7px;background:#141523bf;border:1px solid #ffffff38;color:#fff;backdrop-filter:blur(4px)}.heart-btn .ico{width:16px;height:16px}.heart-btn:hover,.heart-btn.selected{color:#ff9cb9;border-color:#f5a6c078;background:#281a2cdc}.site-foot{margin-top:auto;padding-top:clamp(32px,4.1vw,70px)}.foot-inner{border-top:1px solid #272b36;min-height:64px;display:flex;align-items:center;justify-content:space-between;color:#9296aa;font-size:.78rem}.foot-inner>span{display:inline-flex;align-items:center;gap:7px}.foot-brand{color:#858a9e}.foot-brand .ico{width:20px;height:20px}.foot-brand b{font-size:.71rem;letter-spacing:.14em}.foot-dot{color:#616579}.empty{grid-column:1/-1;text-align:center;border:1px dashed var(--line);border-radius:10px;padding:36px 12px;color:var(--muted)}.empty>.ico{display:block;color:var(--purple);width:30px;height:30px;margin:0 auto 10px}.empty button{display:inline-block;color:var(--lime);margin-top:8px}.favorites .library{margin-top:0}.favorites{min-height:58vh}
dialog{width:min(450px,calc(100% - 30px));padding:0;border:1px solid #44485b;border-radius:16px;background:#1a1e2b;color:var(--text);max-height:90dvh;overflow:auto;box-shadow:0 30px 90px #0009}dialog::backdrop{background:#070912bb;backdrop-filter:blur(5px)}.dialog-body{padding:26px}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{font-size:1.38rem;letter-spacing:.035em}.dialog-close{flex:none;width:31px;height:31px;border-radius:7px}.dialog-body>p,.dialog-text{color:#b7bbcd;line-height:1.7;margin:13px 0 18px}.modal-cover{position:relative;height:130px;overflow:hidden;border-radius:11px;margin:18px 0}.modal-cover img{height:100%;object-fit:cover;object-position:center 48%}.modal-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#131325a9,transparent 68%)}.modal-cover span{position:absolute;left:13px;bottom:9px;z-index:1;font:700 .83rem var(--mono);letter-spacing:.13em;text-transform:uppercase;color:#fff}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.modal-actions .btn{flex:1;white-space:nowrap;padding-inline:13px}.modal-actions.stack{flex-direction:column}.rules{margin:18px 0;padding-inline-start:24px;color:#d7d8e3}.rules li{margin:9px 0;padding-left:3px}.rules li::marker{font-family:var(--mono);color:var(--lime)}.field{display:block;font-size:.87rem;color:#cdd0df;margin:14px 0}.field input{display:block;width:100%;margin-top:6px;background:#10131d;border:1px solid #51566a;border-radius:7px;color:#fff;padding:10px 13px;line-height:1.4}.field input:focus{border-color:var(--lime);outline-offset:1px}.code-input{font-family:var(--mono);font-size:1.35rem;letter-spacing:.21em;text-transform:uppercase}.form-error{color:#ffafbd;font-size:.88rem;margin-top:9px}.room-key{margin:16px 0 12px;padding:16px 4px;text-align:center;color:var(--lime);border:1px dashed #64774e;border-radius:9px;background:#161d19;font:700 clamp(1.7rem,7vw,2.45rem)/1.2 var(--mono);letter-spacing:.18em;text-indent:.18em}.seats{display:flex;gap:10px;margin:15px 0}.seat{flex:1;display:flex;gap:8px;align-items:center;padding:9px 11px;background:#141824;border:1px solid #303547;border-radius:7px;font-size:.83rem;color:#bcc0d3}.seat .ico{color:var(--lime)}.seat.vacant .ico{color:#777e96}.low-action{display:block;color:#afafc3;font-size:.87rem;margin:16px auto 0;padding:3px 10px;text-decoration:underline;text-underline-offset:3px}.toast{position:fixed;z-index:5;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,8px);opacity:0;transition:.18s;pointer-events:none;padding:9px 17px;max-width:92vw;text-align:center;border-radius:9px;background:#282e3e;border:1px solid #52586c;box-shadow:0 7px 24px #0006;color:white;font-size:.9rem}.toast.show{opacity:1;transform:translate(-50%,0)}
.stage{max-width:1040px}.stage-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.stage-title{display:flex;gap:13px;align-items:center}.stage-title h1{font-size:clamp(1.35rem,2.3vw,2rem);line-height:1.3}.stage-title small{display:block;text-transform:uppercase;color:#adb1c5;font-size:.67rem;letter-spacing:.12em}.stage-status{display:flex;gap:10px;align-items:center}.chip{padding:4px 9px;border-radius:5px;background:#262a3b;color:#c9cbdc;border:1px solid #3a4053;font-size:.79rem}.stage-wrap{overflow:hidden;border:1px solid #393c51;border-radius:13px;background:#141824}.game-hud{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 20px;border-bottom:1px solid #303749;background:#1a1e2d}.player{font-weight:650;font-size:.88rem;display:flex;align-items:center;gap:6px;color:#c5c8d7}.player b{font:700 .77rem var(--mono);padding:3px 6px;border:1px solid #8ecfee66;border-radius:4px;color:#9bdeff}.player.p2 b{color:#f9a0cc;border-color:#f9a0cc66}.score{font:700 1.26rem var(--mono);letter-spacing:.03em;color:var(--lime)}.field-wrap{position:relative;background:#10131d}.board-canvas{display:block;width:100%;height:auto;aspect-ratio:800/440;touch-action:none;user-select:none;outline-offset:-3px!important}.stage:fullscreen{background:var(--page);width:100%;max-width:none;overflow:auto;padding:12px max(12px,calc((100vw - 1040px)/2))}.stage:fullscreen .board-canvas{max-height:72vh;object-fit:contain}.game-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:10px;background:#080a139c;backdrop-filter:blur(3px);text-align:center}.overlay-box{max-width:440px;border:1px solid #60657a;border-radius:14px;padding:18px 26px;background:#1c2031ee;box-shadow:0 12px 35px #0006}.overlay-box>.ico{font-size:1.3rem;color:var(--lime)}.overlay-box h2{font-size:clamp(1.25rem,2.2vw,1.7rem);margin:2px 0}.overlay-box p{color:#c8cbd9;font-size:.9rem;margin:4px 0 12px}.overlay-box .btn{min-height:36px}.game-bar{padding:12px 18px;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #303445}.game-note{color:#d2d5e2;font-size:.93rem}.game-controls,.palette{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.control-btn{border:1px solid #53586c;background:#252a3a;border-radius:6px;min-height:36px;padding:4px 12px;font-size:.9rem;font-weight:650}.control-btn.hot{background:var(--lime);color:#1a2514;border-color:#d1ff94}.control-btn.raised,.swatch.active{outline:2px solid var(--lime);outline-offset:2px}.power{display:flex;align-items:center;gap:6px;color:#b9bdce;font-size:.85rem}.power input{width:90px;accent-color:var(--lime)}.swatch{width:29px;height:29px;border:2px solid #11131c;border-radius:50%;background:var(--swatch);position:relative;padding:0;display:grid;place-items:center}.swatch:not(.erase):after{content:"";border-radius:50%;width:7px;height:7px;background:#2224368c}.stage-guide{display:flex;align-items:flex-start;gap:9px;color:#aeb2c4;font-size:.9rem;margin:14px 0}.stage-guide>.ico{color:var(--lime);margin-top:3px}.stage-guide button{color:var(--lime);margin-left:auto;white-space:nowrap;font-size:.87rem}.status-line{font-size:.87rem;color:#c2c7d7}
@media(min-width:1560px){.hero{min-height:405px}.hero-content p{margin-block:24px 29px}.hero-content{padding-left:55px}}
@media(max-width:980px){.bar-inner,.shell,.foot-inner{width:calc(100% - 52px)}.bar-inner{gap:35px}.main-nav{gap:19px}.hero{min-height:320px}.hero-content{max-width:57%;padding-left:30px}.hero h1{font-size:3.2rem}.hero-art{left:30%}.cards{gap:10px}.card-main .card-info{padding:10px}.library-en{font-size:.64rem}.card-name{font-size:1rem}}
@media(max-width:760px){.bar-inner,.shell,.foot-inner{width:calc(100% - 32px)}.topbar{height:62px}.brand{gap:7px}.brand-alien{width:30px;height:30px}.brand b{font-size:1.02rem}.brand small{font-size:.53rem}.bar-inner{gap:16px}.main-nav{gap:12px}.nav-link{font-size:.83rem;gap:5px}.nav-link .ico{width:14px;height:14px}.top-actions{gap:7px}.icon-btn{width:34px;height:34px}.join-btn{min-height:34px;padding-inline:10px;font-size:.82rem}.hero-content{max-width:65%;padding:25px 23px}.hero h1{font-size:2.8rem}.hero-art{left:25%}.hero-shade{background:linear-gradient(90deg,#19162bee 0%,#19162beb 34%,#19162b99 52%,transparent 78%)}.hero-content p{font-size:.91rem;margin:13px 0 19px}.hero{min-height:295px}.hero-actions{gap:8px}.hero-actions .btn{padding-inline:13px;min-height:38px;font-size:.85rem}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.thumb{aspect-ratio:1.62}.library{margin-top:24px}.site-foot{padding-top:35px}}
@media(max-width:550px){.topbar{height:auto}.bar-inner{display:grid;grid-template-columns:1fr auto;gap:0;padding-top:11px}.brand{justify-self:start}.top-actions{grid-row:1;grid-column:2}.main-nav{grid-row:2;grid-column:1/-1;gap:25px;height:38px;margin-top:5px}.nav-link{font-size:.85rem}.nav-link.active:after{height:2px}.shell{padding-top:16px}.hero{min-height:345px;align-items:flex-end}.hero-art{inset:0 0 12% 13%;background-position:center 50%}.hero-shade{background:linear-gradient(0deg,#19172b 0%,#19172bea 21%,#19172b80 52%,transparent 82%),linear-gradient(90deg,#19172bc9,transparent 78%)}.dot-texture{right:65%}.hero-content{max-width:100%;padding:18px 17px 22px;width:100%}.feature-line{margin-bottom:9px;gap:10px}.feature-label{font-size:.72rem}.hero h1{font-size:2.5rem}.pixel-word{height:13px;margin-top:5px}.hero-content p{font-size:.87rem;margin:10px 0 15px;max-width:92%}.hero-pager{right:10px;top:10px;bottom:auto}.hero-pager button{height:20px;width:14px}.hero-pager button.current{width:24px}.section-title{gap:6px}.section-title h2{font-size:1.27rem}.library-mark{width:21px;height:21px}.library-mark .ico{width:18px;height:18px}.library-en{display:none}.section-head{margin-bottom:13px;gap:6px}.filters button{font-size:.76rem;padding:2px 9px 3px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-main .card-info{padding:9px 11px 11px;gap:5px}.heart-btn{top:6px;right:6px;width:27px;height:27px}.card-meta{font-size:.74rem}.foot-inner{min-height:56px}.stage-status .chip{display:none}.stage-title{gap:8px}.stage-head{margin-bottom:10px}.game-hud,.game-bar{padding:8px 10px}.score{font-size:1.07rem}.player{font-size:.76rem;gap:4px}.game-note{font-size:.83rem}.game-bar{gap:8px}.game-controls,.palette{gap:6px}.stage-guide{font-size:.79rem}.stage-guide button{font-size:.79rem}.overlay-box{padding:8px 15px}.overlay-box>.ico{display:none}.overlay-box p{font-size:.79rem;margin:2px 0 6px}.game-overlay .btn{font-size:.8rem;min-height:30px}.stage[data-game=beads] .board-canvas{aspect-ratio:500/570}.stage-guide>.ico{width:16px}.dialog-body{padding:21px}.swatch{width:30px;height:30px}.control-btn{min-height:38px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.stage.expanded{position:fixed;inset:0;z-index:3;width:100%;max-width:none;overflow:auto;padding:12px;background:var(--page)}.copy-fallback{display:block;width:90%;margin:0 auto 16px;padding:6px;color:var(--text);background:var(--page);border:1px solid var(--line);border-radius:5px}
