:root,:host{color:#e9eee9;font-synthesis:none;--muted:#91a09a;--line:#ffffff13;--mint:#c7f774;--teal:#4bbaac;--gold:#e8c876;background:#101918;font-family:Inter,Segoe UI,Microsoft YaHei,sans-serif;font-weight:400;display:block}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.36}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}button{border:0}button:hover:not(:disabled){filter:brightness(1.08)}.eightball-game-view{max-width:1520px;min-height:100dvh;margin:auto;padding:0 6%}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;height:108px;display:flex}.brand{align-items:center;gap:12px;display:inline-flex}.brand-ball{background:linear-gradient(130deg,#46504c,#080e0c);border:1px solid #465550;border-radius:50%;place-items:center;width:42px;height:42px;display:grid;box-shadow:inset 3px 3px 5px #ffffff10}.brand-ball>span{color:#18201b;background:#e2eadc;border-radius:50%;place-items:center;width:24px;height:24px;font-size:19px;font-weight:800;display:grid}.brand-word{letter-spacing:2px;font-size:16px;font-weight:750}.brand-word small{letter-spacing:4px;color:var(--muted);margin-top:5px;font-size:10px;font-weight:400;display:block}.top-actions{align-items:center;gap:16px;font-size:12px;display:flex}.connection{color:#9eaba4;white-space:nowrap;font-size:11px}.connection:before{content:"";background:var(--mint);border-radius:50%;width:5px;height:5px;margin-right:7px;display:inline-block}.connection.offline:before{background:#f0bc69}.profile-badge{width:32px;height:32px;color:var(--mint);background:#384c40;border-radius:50%;flex-shrink:0;place-items:center;font-size:12px;display:inline-grid}.icon-button{border:1px solid var(--line);background:#ffffff08;border-radius:50%;width:32px;height:32px;font-size:20px}.text-button,.subtle-link{color:var(--muted);background:0 0;padding:5px 0;font-size:12px}.subtle-link{color:#c7d0c4;border-bottom:1px solid #667060;gap:20px;display:inline-flex}.eyebrow{letter-spacing:3px;color:var(--mint);font-size:10px;font-weight:650}.lobby{grid-template-columns:1fr 1fr;align-items:center;min-height:418px;padding:44px 0 40px;display:grid}.hero-copy h1{letter-spacing:-2px;margin:20px 0 21px;font-size:clamp(36px,3.6vw,58px);font-weight:650;line-height:1.28}.hero-copy>p{color:var(--muted);font-size:13px;line-height:1.9}.hero-tags{gap:8px;margin:22px 0 25px;display:flex}.hero-tags span{color:#b3c1ab;border:1px solid #56644955;border-radius:4px;padding:6px 9px;font-size:10px}.hero-art{place-items:center;height:370px;display:grid;position:relative;overflow:hidden}.hero-orbit{border:1px solid #92ab9020;border-radius:50%;width:360px;height:360px;position:absolute;transform:rotate(-30deg)scaleY(.65)}.orbit-b{width:420px;height:420px;transform:rotate(37deg)scaleY(.66)}.hero-eight{background:radial-gradient(circle at 32% 23%,#6d7c70 0%,#27302b 28%,#070c09 63%,#19221b 89%);border-radius:50%;place-items:center;width:220px;height:220px;margin:0 34px 34px 0;display:grid;position:relative;transform:rotate(-22deg);box-shadow:22px 40px 60px #0008,inset 0 0 8px #aec9a52e}.hero-eight:before{content:"";filter:blur(7px);background:#eff7e219;border-radius:50%;width:87px;height:40px;position:absolute;top:17px;left:42px}.hero-eight span{color:#182019;background:radial-gradient(circle at 35% 30%,#f6f6db,#b9c3a8);border-radius:50%;place-items:center;width:103px;height:103px;font-size:87px;font-weight:600;display:grid;box-shadow:inset 3px -4px 8px #34402342}.hero-nine{background:linear-gradient(20deg,#bbc6b0 18%,#d6a22e 19%,#f1c458 68%,#f0efd6 69%);border-radius:50%;place-items:center;width:83px;height:83px;display:grid;position:absolute;bottom:54px;right:17%;transform:rotate(25deg);box-shadow:10px 18px 30px #0005}.hero-nine span{color:#292a18;background:#faf6dc;border-radius:50%;place-items:center;width:36px;height:36px;font-size:25px;font-weight:700;display:grid}.hero-caption{letter-spacing:2px;color:#637768;font-size:8px;line-height:1.6;position:absolute;bottom:7px;left:17%}.play-options{grid-template-columns:1fr 1fr .66fr;gap:17px;display:grid}.play-card{text-align:left;background:#1b2823;border:1px solid #3b4d3f;border-radius:10px;padding:25px 27px;transition:transform .2s}.play-card:hover{transform:translateY(-3px)}.primary-card{background:var(--mint);border-color:var(--mint);color:#1a2c14}.option-no{opacity:.7;align-items:center;gap:10px;font-family:monospace;font-size:10px;display:flex}.option-no span{letter-spacing:2px;font-family:inherit}.play-card h2{justify-content:space-between;gap:10px;margin:24px 0 10px;font-size:22px;font-weight:600;display:flex}.play-card h2 span{font-weight:400}.play-card p{opacity:.65;font-size:11px}.card-bottom{justify-content:space-between;align-items:center;margin-top:27px;display:flex}.card-bottom strong{font-size:11px;font-weight:500}.avatar-stack{padding-left:6px;display:flex}.avatar-stack i{color:#c7d6be;background:#334b35;border:2px solid #1b2823;border-radius:50%;place-items:center;width:27px;height:27px;margin-left:-6px;font-size:10px;font-style:normal;display:grid}.primary-card .avatar-stack i{border-color:var(--mint);color:var(--mint);background:#304b28}.avatar-stack i:nth-child(2){background:#758766}.more-options{flex-direction:column;gap:12px;display:flex}.more-options button{background:#15201c;border:1px solid #2c3b31;border-radius:8px;flex:1;justify-content:space-between;align-items:center;padding:19px;font-size:12px;display:flex}.more-options button span{color:var(--mint)}.lobby-footer{border-top:1px solid var(--line);letter-spacing:1px;color:#6f8076;justify-content:space-between;margin-top:44px;padding:23px 0 28px;font-size:9px;display:flex}.button{border-radius:6px;min-height:46px;padding:12px 23px;font-size:13px;font-weight:650;transition:filter .15s}.primary{background:var(--mint);color:#23351a}.secondary{color:#dee6d7;background:#28362e;border:1px solid #4c5b4e}.muted{color:var(--muted)}.positive{color:var(--mint)!important}.login-screen{width:min(440px,100%);margin:6vh auto;padding:60px 34px}.login-screen .brand{margin-bottom:65px}.login-screen h1{margin:21px 0;font-size:45px}.login-screen>p{color:var(--muted);font-size:13px;line-height:1.8}.login-screen form{flex-direction:column;gap:14px;margin-top:35px;display:flex}.login-screen label{color:var(--muted);font-size:12px}.login-screen input{color:#e5eadc;background:#1c2822;border:1px solid #435349;border-radius:6px;padding:16px}.login-screen form button{margin-top:8px}.login-caption{text-align:center;color:#6e8374;margin-top:27px;font-size:11px;display:block}.loading-screen{flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:90vh;display:flex}.loading-screen p{color:var(--muted);margin:20px;font-size:12px}.room-lobby{text-align:center;max-width:900px;margin:58px auto}.room-lobby h1{margin:18px 0;font-size:32px}.room-lobby>p{font-size:12px}.mode-switch{border:1px solid var(--line);border-radius:7px;gap:4px;margin:25px 0;padding:5px;display:inline-flex}.mode-switch button{color:var(--muted);background:0 0;border-radius:4px;padding:9px 20px;font-size:12px}.mode-switch .selected{color:var(--mint);background:#354833}.versus{grid-template-columns:1fr 55px 1fr;align-items:center;gap:15px;margin:17px 0 32px;display:grid}.team-seat{background:#192720;border:1px solid #3e5a474d;border-radius:10px;padding:25px}.team-seat:last-child{background:#28271b;border-color:#e8c87626}.team-label{letter-spacing:2px;color:#74c9ad;font-size:11px}.team-seat:last-child .team-label{color:var(--gold)}.seat-members{justify-content:center;gap:12px;margin-top:22px;display:flex}.seat{background:0 0;flex-direction:column;flex:1;align-items:center;gap:10px;padding:10px 4px;display:flex}.seat-avatar{color:#ade8d3;background:#254d40;border-radius:50%;place-items:center;width:58px;height:58px;font-size:23px;display:grid}.seat-avatar.gold{color:var(--gold);background:#514723}.seat strong{text-overflow:ellipsis;max-width:130px;font-size:12px;font-weight:500;overflow:hidden}.seat small{color:#96a292;font-size:10px}.seat.empty>span{color:#91a47f;border:1px dashed #72816a;border-radius:50%;place-items:center;width:58px;height:58px;font-size:26px;display:grid}.vs-mark{color:#74826d;font-size:18px;font-style:italic}.room-actions{justify-content:center;gap:12px;margin:24px 0;display:flex}.room-tip{color:var(--muted);line-height:1.8}.match-layout{grid-template-columns:1fr minmax(300px,430px) 1fr;align-items:start;gap:38px;max-width:1190px;margin:27px auto 20px;display:grid}.match-sidebar{padding-top:12px}.match-sidebar h1{letter-spacing:-1px;margin:17px 0 30px;font-size:27px;font-weight:500}.team-card{background:#19251f;border:1px solid #36483a;border-radius:8px;min-height:112px;margin-bottom:12px;padding:18px;transition:border-color .2s}.team-card.active{background:#233022;border-color:#92b369}.team-card-head{color:#b1c59b;justify-content:space-between;align-items:center;font-size:12px;display:flex}.team-card-head small{color:var(--muted);font-size:10px}.player-names{flex-wrap:wrap;gap:8px;margin-top:11px;font-size:13px;display:flex}.player-names span{opacity:.6}.player-names .current-player{opacity:1}.ball-rack{flex-wrap:wrap;align-items:center;gap:4px;min-height:22px;margin-top:16px;display:flex}.ball-rack>.muted{font-size:10px}.mini-ball{background:radial-gradient(circle at 30% 20%, #ffffff70, transparent 60%), var(--ball);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex;box-shadow:1px 2px 3px #0005}.mini-ball.striped{background:linear-gradient(0deg, #e4e5d2 0 22%, var(--ball) 23% 77%, #e4e5d2 78%)}.mini-ball span{color:#18201b;background:#f0f0dc;border-radius:50%;place-items:center;width:12px;height:12px;font-size:8px;font-weight:800;display:grid}.match-note{border-top:1px solid var(--line);margin-top:29px;padding-top:25px}.match-note>span{letter-spacing:2px;color:var(--muted);font-size:10px}.match-note p{color:#718577;margin:14px 0 19px;font-size:11px;line-height:1.9}.turn-banner{height:42px;color:var(--muted);justify-content:space-between;align-items:center;padding:0 10px;font-size:11px;display:flex}.turn-banner.my-turn{color:var(--mint)}#clock{letter-spacing:2px;color:#b5c0a9;border:1px solid #6b806149;border-radius:6px;place-items:center;width:34px;height:30px;font-family:monospace;font-size:17px;display:grid}#clock.urgent{color:#ffb888;border-color:#f3a060}.canvas-wrap{aspect-ratio:1/1.84;width:100%;max-height:calc(100dvh - 210px);margin:auto;position:relative}canvas{touch-action:none;width:100%;height:100%;display:block}.table-status{color:#92ac9f;text-align:center;min-height:30px;padding-top:10px;font-size:11px;line-height:1.8}.control-panel{background:#19231e;border:1px solid #344638;border-radius:10px;margin-top:8px;padding:25px}.control-panel h2{margin:14px 0 25px;font-size:24px;font-weight:500}.control-label{color:#b5c4ac;justify-content:space-between;align-items:center;font-size:11px;display:flex}.control-label>span:last-child:not(:first-child){color:#71836d;font-size:10px}.control-label strong{color:var(--mint);font-size:12px}.spin-pad{touch-action:none;background:radial-gradient(circle at 35% 30%,#f3f1da,#c4c6ad 60%,#849075);border-radius:50%;width:102px;height:102px;margin:19px auto 23px;position:relative;box-shadow:inset -6px -8px 12px #31452e50,6px 10px 18px #0003}.spin-cross-x,.spin-cross-y{background:#68756666;position:absolute}.spin-cross-x{width:80%;height:1px;top:50%;left:10%}.spin-cross-y{width:1px;height:80%;top:10%;left:50%}.spin-dot{background:#4b7640;border:2px solid #d1f1b6;border-radius:50%;width:16px;height:16px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.spin-pad small{color:#71836d;white-space:nowrap;font-size:9px;position:absolute;left:50%;transform:translate(-50%)}.spin-top{top:-15px}.spin-bottom{bottom:-17px}#spin-label{text-align:center;color:var(--muted);margin-bottom:23px;font-size:10px}.aim-area{border-top:1px solid var(--line);padding-top:20px}.fine-controls{color:#86947e;justify-content:space-between;align-items:center;gap:6px;margin:12px 0 24px;font-size:10px;display:flex}.fine-controls button{color:#d5e4c7;background:#253421;border:1px solid #42533d;border-radius:4px;width:32px;height:31px;font-size:19px}.power-area{margin-bottom:20px}.power-area input{width:100%;accent-color:var(--mint);cursor:pointer;height:6px;margin:17px 0}.power-ticks{color:#6d8068;justify-content:space-between;font-size:9px;display:flex}.control-panel .button{width:100%}.shoot-button{justify-content:space-between;align-items:center;font-size:15px;display:flex}.controls-hint{color:#74866c;text-align:center;margin-top:13px;font-size:9px;line-height:1.8}.placement-tip{color:var(--mint);text-align:center;margin:8px 0 12px;font-size:11px;line-height:1.8}.group-choice{gap:6px;display:flex}.group-choice .button{padding:10px 5px;font-size:11px}.mobile-team-hud{display:none}.result-screen{text-align:center;max-width:620px;margin:45px auto}.result-emblem{width:82px;height:82px;color:var(--mint);background:radial-gradient(#526436,#1a261c);border:1px solid #62704c;border-radius:50%;place-items:center;margin:0 auto 22px;font-size:42px;display:grid;box-shadow:0 0 65px #c7f77411}.result-screen h1{margin:17px 0;font-size:36px}.result-screen>p{font-size:12px}.result-stats{justify-content:center;margin:32px 0;display:flex}.result-stats>div{border-right:1px solid var(--line);flex-direction:column;gap:8px;width:30%;display:flex}.result-stats>div:last-child{border:0}.result-stats strong{font-size:31px;font-weight:500}.result-stats span{color:var(--muted);font-size:11px}.result-players{background:#1b2921;border:1px solid #3c4e3e;border-radius:8px;padding:12px 22px}.result-players>div{text-align:left;align-items:center;gap:14px;padding:10px;display:flex}.result-players strong{flex:1;font-size:12px;font-weight:500}.result-players>div>span:last-child{color:var(--muted);font-size:11px}.modal-layer{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:20;background:#030b07c9;place-items:center;padding:22px;display:grid;position:fixed;inset:0}.modal{background:#1c2a22;border:1px solid #405341;border-radius:12px;width:100%;max-width:540px;max-height:90dvh;padding:30px;position:relative;overflow:auto;box-shadow:0 20px 80px #0008}.modal h2{margin:10px 0 25px;font-size:22px}.modal p{color:#a3b59b;margin:16px 0;font-size:12px;line-height:1.9}.modal b{color:#d2e0c8;margin-bottom:7px;font-weight:500;display:block}.modal-close{color:var(--muted);background:0 0;font-size:26px;position:absolute;top:15px;right:20px}.history-list>div{border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:15px;padding:14px 0;font-size:11px;display:flex}.history-list small{color:var(--muted)}.toast{color:#21351c;opacity:0;pointer-events:none;z-index:40;background:#ecf4e5;border-radius:7px;max-width:min(500px,90%);padding:13px 24px;font-size:12px;transition:all .2s;position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);box-shadow:0 6px 24px #0005}.toast.show{opacity:1;transform:translate(-50%)}@media (min-width:1500px){.canvas-wrap{max-height:760px}}@media (max-width:1100px){.eightball-game-view{padding:0 4%}.match-layout{grid-template-columns:1fr minmax(290px,370px) 1fr;gap:18px}.control-panel{padding:17px}.match-sidebar h1{font-size:23px}.team-card{padding:13px}.hero-art{height:330px}.play-card{padding:22px}.play-card h2{font-size:19px}.play-options{grid-template-columns:1fr 1fr}.more-options{flex-direction:row;grid-column:1/-1}.more-options button{min-height:60px}}@media (max-width:800px){.match-sidebar{display:none}.match-layout{grid-template-columns:minmax(270px,420px) minmax(170px,220px);justify-content:center;gap:18px;margin-top:12px}.mobile-team-hud{grid-template-columns:1fr 1fr;gap:7px;display:grid}.mobile-team-hud .team-card{min-height:76px;margin:0;padding:10px}.mobile-team-hud .ball-rack{gap:2px;min-height:18px;margin-top:8px}.mobile-team-hud .mini-ball{width:17px;height:17px}.mobile-team-hud .mini-ball span{width:10px;height:10px;font-size:6px}.mobile-team-hud .player-names{margin-top:6px;font-size:11px}.mobile-team-hud .team-card-head{font-size:10px}.canvas-wrap{max-height:calc(100dvh - 265px)}.control-panel{margin-top:84px}.control-panel .eyebrow{letter-spacing:2px;font-size:8px}.control-panel h2{font-size:19px}.topbar{height:82px}.profile-name{display:none}.hero-copy h1{font-size:40px}.hero-art{height:310px}.hero-eight{width:170px;height:170px}.hero-eight span{width:85px;height:85px;font-size:70px}.hero-nine{width:66px;height:66px;right:5%}.hero-orbit{width:300px;height:300px}.orbit-b{width:340px;height:340px}.hero-caption{left:5%}.hero-copy>p{font-size:11px}.lobby{min-height:350px;padding:30px 0}.hero-copy .eyebrow{font-size:8px}.room-lobby{margin:35px auto}.team-seat{padding:20px 10px}.versus{grid-template-columns:1fr 30px 1fr;gap:5px}.vs-mark{font-size:13px}.room-lobby h1{font-size:27px}}@media (max-width:540px){.eightball-game-view{padding:0 18px}.topbar{height:76px}.brand{gap:9px}.brand-ball{width:32px;height:32px}.brand-ball>span{width:20px;height:20px;font-size:16px}.brand-word{letter-spacing:1.5px;font-size:12px}.brand-word small{letter-spacing:3px;font-size:8px}.top-actions{gap:10px}.top-actions .connection{display:none}.top-actions .text-button{font-size:11px}.profile-badge{width:27px;height:27px;font-size:10px}.lobby{min-height:330px;padding:33px 0 25px;display:block;position:relative}.hero-copy{z-index:2;position:relative}.hero-copy h1{margin:17px 0;font-size:36px;line-height:1.3}.hero-copy>p{max-width:230px}.hero-tags{gap:5px;margin:17px 0}.hero-tags span{padding:5px 7px;font-size:8px}.hero-copy .subtle-link{font-size:10px}.hero-art{opacity:.8;width:47%;height:260px;position:absolute;top:28px;right:-17px}.hero-eight{width:125px;height:125px;margin:0 -15px 50px 0;transform:rotate(-22deg)}.hero-eight span{width:59px;height:59px;font-size:49px}.hero-eight:before{width:54px;height:23px;top:14px;left:22px}.hero-nine{width:48px;height:48px;bottom:41px;right:14%}.hero-nine span{width:22px;height:22px;font-size:16px}.hero-orbit{width:230px;height:230px}.hero-caption{font-size:5px;bottom:8px;left:20%}.play-options{grid-template-columns:1fr;gap:12px}.play-card{padding:21px 23px}.play-card h2{margin:16px 0 9px;font-size:23px}.card-bottom{margin-top:19px}.play-card p{font-size:11px}.option-no{font-size:9px}.more-options{gap:8px}.more-options button{text-align:left;min-height:62px;padding:14px 10px;font-size:10px}.more-options button span{margin-left:4px}.lobby-footer{gap:12px;margin-top:27px;font-size:7px;line-height:1.7}.match-layout{max-width:390px;margin:10px auto;display:block}.mobile-team-hud .team-card{min-height:70px;padding:9px 10px}.mobile-team-hud .ball-rack>.muted{font-size:8px}.canvas-wrap{aspect-ratio:auto;height:min(53dvh,490px);max-height:none}.turn-banner{height:33px;padding:0 8px;font-size:10px}#clock{width:30px;height:25px;font-size:14px}.table-status{min-height:20px;padding-top:0;font-size:9px}.control-panel{border-radius:8px;grid-template-columns:70px 1fr;gap:5px 13px;margin:8px 0 18px;padding:12px;display:grid}.control-panel>.eyebrow,.control-panel>h2,.control-panel>.controls-hint{display:none}.spin-area{grid-area:1/1/4}.spin-area>.control-label{justify-content:center;font-size:8px}.spin-area .text-button{display:none}.spin-pad{width:52px;height:52px;margin:12px auto 11px}.spin-pad small{font-size:7px}.spin-top{top:-11px}.spin-bottom{bottom:-11px}.spin-dot{border-width:1px;width:10px;height:10px}#spin-label{margin:13px 0 0;font-size:7px}.aim-area{border:0;grid-area:1/2;justify-content:space-between;align-items:center;gap:10px;padding:0;display:flex}.aim-area .control-label{font-size:9px}.aim-area .control-label>span:last-child{display:none}.fine-controls{gap:9px;margin:0;font-size:8px}.fine-controls button{width:26px;height:25px;font-size:16px}.power-area{grid-area:2/2;margin:4px 0 2px}.power-area .control-label{font-size:9px}.power-area input{height:5px;margin:10px 0}.power-ticks{display:none}#primary-action{grid-area:3/2}.control-panel .button{min-height:35px;padding:7px 13px;font-size:11px}.placement-tip{text-align:left;margin:0 0 6px;font-size:9px}.room-lobby{margin:30px auto}.room-lobby h1{font-size:24px}.room-lobby>.eyebrow{font-size:8px}.room-lobby>p{font-size:10px}.team-seat{padding:15px 4px}.team-label{letter-spacing:1px;font-size:8px}.seat-members{gap:3px;margin-top:12px}.seat-avatar,.seat.empty>span{width:38px;height:38px;font-size:17px}.seat strong{max-width:65px;font-size:10px}.seat small{font-size:8px}.team-seat .subtle-link{font-size:9px}.room-actions{flex-wrap:wrap;gap:7px}.room-actions .button{padding:11px 15px;font-size:11px}.result-screen{margin:33px auto}.result-screen h1{font-size:29px}.result-stats{margin:28px 0}.result-players{padding:8px 12px}.result-players>div{padding:10px 4px}.result-players strong{font-size:11px}.modal{padding:22px}.modal h2{font-size:20px}.modal p{font-size:11px}.toast{width:max-content;padding:11px 16px;font-size:11px;bottom:20px}.login-screen{margin:0 auto}.login-screen .brand{margin-bottom:56px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
