:root{color:#f7f3e7;font-synthesis:none;text-rendering:optimizelegibility;background:#17120f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button{font:inherit}.appShell{background:#17120f;grid-template-columns:292px minmax(0,1fr) 260px;gap:14px;min-height:100vh;padding:14px;display:grid}.loadingScreen{background:#010412;place-items:center;min-height:100vh;padding:24px;display:grid}.loadingCard{text-align:center;justify-items:center;gap:14px;width:min(560px,100%);display:grid}.loadingLogo{aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 18px 50px #00000057);width:min(100%,520px);display:block}.loadingCard p{color:#d9e8ff;background:#010412b8;border-radius:8px;min-height:26px;margin:-18px 0 0;padding:6px 12px;font-size:14px;font-weight:800;line-height:1.3}.scoreboard,.eventLog,.tableShell{background:#211914;border:1px solid #4b3425;border-radius:8px;box-shadow:0 18px 52px #00000042}.scoreboard{flex-direction:column;gap:12px;padding:14px;display:flex}.brandBlock{align-items:center;gap:10px;display:flex}.brandBlock h1{letter-spacing:0;margin:0;font-size:22px}.brandBlock p{color:#c5b49f;margin:2px 0 0;font-size:12px;line-height:1.35}.logoDot{background:conic-gradient(from 45deg,#f3c548,#101010,#f7f3e7,#0f6f3d,#f3c548);border:1px solid #ffffff2e;border-radius:999px;flex:none;width:34px;height:34px}.logoDot.large{width:54px;height:54px;margin:0 auto 14px}.loadingError{color:#ffcf9e}.sidebarTools{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.sidebarToolButton{color:#f4d58b;cursor:pointer;background:#2b2119;border:1px solid #5f442d;border-radius:8px;place-items:center;min-width:0;height:38px;display:inline-grid}.sidebarToolButton:hover,.sidebarToolButton.active{color:#17120f;background:#f0c66a;border-color:#f0c66a}.sidebarToolButton:focus-visible,.sidebarModalClose:focus-visible{outline-offset:2px;outline:2px solid #f7f3e7}.sidebarModalOverlay{z-index:20;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0b0705b8;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.sidebarModal{background:#211914;border:1px solid #f0c66a70;border-radius:8px;flex-direction:column;width:min(460px,100%);max-height:calc(100vh - 32px);display:flex;overflow:hidden;box-shadow:0 24px 80px #0000007a}.sidebarModalHeader{justify-content:space-between;align-items:center;gap:12px;padding:14px 14px 10px 16px;display:flex}.sidebarModalHeader h2{color:#f7f3e7;overflow-wrap:anywhere;min-width:0;margin:0;font-size:16px;line-height:1.2}.sidebarModalClose{color:#ffd5a3;cursor:pointer;background:#3b2b20;border:1px solid #5f442d;border-radius:8px;flex:none;place-items:center;width:34px;height:34px;display:inline-grid}.sidebarModalClose:hover{color:#17120f;background:#ffcf9e}.sidebarModalBody{padding:0 16px 16px;overflow:auto}.modalVersion{color:#f0c66a;margin:0 0 10px;font-size:12px;font-weight:900}.modalList{color:#c5b49f;margin:0;padding:0 0 0 18px;font-size:13px;line-height:1.42}.modalList li+li{margin-top:7px}.rulesList{gap:10px;padding:0 12px 11px;display:grid}.rulesList h3{color:#f7f3e7;margin:0 0 6px;font-size:12px;line-height:1.2}.rulesList ul{padding:0 0 0 17px}.modalRulesList{padding:0}.modalRulesList ul{color:#c5b49f;margin:0;font-size:13px;line-height:1.42}.controlGroup{gap:6px;display:grid}.controlLabel{color:#f0c66a;text-transform:uppercase;letter-spacing:0;font-size:11px;font-weight:800}.controlLabel.withIcon{align-items:center;gap:6px;display:flex}.segmented{border:1px solid #5f442d;border-radius:8px;grid-template-columns:repeat(2,1fr);display:grid;overflow:hidden}.segmented.three{grid-template-columns:repeat(3,1fr)}.segmented button{color:#ddcfb9;cursor:pointer;background:#2b2119;border:0;border-right:1px solid #5f442d;min-width:0;padding:9px 6px;font-weight:800}.segmented button:last-child{border-right:0}.segmented button.selected{color:#17120f;background:#f0c66a}.segmented button:disabled{color:#8f806e;cursor:not-allowed}.languageGroup{grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:10px}.languageSegmented button{padding:7px 6px}.players{gap:8px;display:grid}.playerCard{background:#2b2119;border:1px solid #443326;border-radius:8px;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;padding:10px;display:grid}.playerCard.withAction{grid-template-columns:38px minmax(0,1fr) 32px}.playerCard.active{border-color:#f0c66a;box-shadow:0 0 0 2px #f0c66a24}.playerCard.empty{color:#a99680;border-style:dashed;justify-content:center;display:flex}.avatar{color:#f7f3e7;background:#0f6f3d;border-radius:999px;flex:none;place-items:center;width:38px;height:38px;font-weight:900;display:grid;overflow:hidden}.avatarImage{object-fit:cover;width:100%;height:100%;display:block}.playerCard strong{overflow-wrap:anywhere;align-items:center;gap:6px;min-width:0;display:flex}.playerCard span:not(.hostBadge){color:#c5b49f;text-transform:capitalize;font-size:12px;display:block}.hostBadge{color:#f4d58b;text-transform:uppercase;letter-spacing:0;background:#f0c66a24;border:1px solid #f0c66a47;border-radius:999px;flex:none;align-items:center;height:18px;padding:0 6px;font-size:10px;line-height:1;display:inline-flex}.botBadge{color:#9be7b6;background:#0f6f3d2e;border-color:#9be7b652}.statusPill{color:#bdf6c9;text-align:center;text-transform:capitalize;background:#173c27;border-radius:8px;padding:9px 10px;font-weight:800}.statusGrid{background:#19130f;border:1px solid #443326;border-radius:8px;grid-template-columns:44px minmax(0,1fr);gap:6px 10px;padding:10px;font-size:13px;display:grid}.statusGrid span{color:#c5b49f}.statusGrid strong{overflow-wrap:anywhere}.audioPanel{background:#19130f;border:1px solid #443326;border-radius:8px;padding:10px}.audioPanel summary{min-height:0;padding:0}.audioPanel[open] summary{padding-bottom:8px}.audioSliders{gap:6px;display:grid}.volumeSlider{color:#ddcfb9;grid-template-columns:48px minmax(80px,1fr) 42px;align-items:center;gap:8px;font-size:12px;font-weight:800;display:grid}.volumeSlider input{accent-color:#f0c66a;min-width:0}.volumeSlider strong{text-align:right;color:#f0c66a;font-variant-numeric:tabular-nums}.restartButton,.modeButton,.secondaryButton{color:#17120f;cursor:pointer;background:#f0c66a;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:11px 12px;font-weight:900;display:flex}.modeButton{background:#88d99a}.secondaryButton{color:#f2ddc0;background:#3b2b20;border:1px solid #5f442d}.restartButton:disabled{cursor:not-allowed;color:#8f806e;background:#35281e}.spectators{color:#c5b49f;justify-content:center;align-items:center;gap:8px;font-size:13px;display:flex}.kickButton{color:#ffd5a3;cursor:pointer;background:#3b2b20;border:1px solid #5f442d;border-radius:8px;place-items:center;width:32px;height:32px;display:inline-grid}.kickButton:hover{color:#17120f;background:#ffcf9e}.spectatorList{background:#19130f;border:1px solid #443326;border-radius:8px;gap:6px;padding:8px;display:grid}.spectatorRow{color:#ddcfb9;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:8px;font-size:12px;font-weight:800;display:grid}.spectatorRow span{overflow-wrap:anywhere}.endScreen{z-index:4;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f0a08ad;border-radius:8px;place-items:center;padding:18px;display:grid;position:absolute;inset:0}.endScreenPanel{text-align:center;background:#211914f5;border:1px solid #f0c66a7a;border-radius:8px;width:min(420px,100vw - 36px);padding:22px;box-shadow:0 24px 70px #0000006b}.endScreenIcon{color:#17120f;background:#f0c66a;border-radius:999px;place-items:center;width:54px;height:54px;margin:0 auto 12px;display:grid;box-shadow:0 0 0 8px #f0c66a24}.endScreenKicker{color:#f0c66a;text-transform:uppercase;letter-spacing:0;font-size:12px;font-weight:900;display:block}.endScreen h2{color:#f7f3e7;letter-spacing:0;overflow-wrap:anywhere;margin:6px 0 8px;font-size:clamp(28px,5vw,46px);line-height:1}.endScreen p{color:#ddcfb9;overflow-wrap:anywhere;margin:0;line-height:1.4}.endScreenPlayers{flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0;display:flex}.endScreenPlayers span{color:#ddcfb9;background:#2b2119;border:1px solid #443326;border-radius:8px;align-items:center;min-height:30px;padding:6px 10px;font-size:12px;font-weight:900;display:inline-flex}.endScreenPlayers span.winner{color:#17120f;background:#f0c66a;border-color:#f0c66a}.endScreenButton{width:100%}.waitingMatchOverlay{z-index:3;aspect-ratio:1774/887;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#09060480;border-radius:6px;place-items:center;padding:18px;display:grid;position:absolute;top:10px;left:10px;right:10px}.waitingMatchPanel{text-align:center;background:#211914f0;border:1px solid #f0c66a80;border-radius:8px;justify-items:center;gap:8px;width:min(430px,100%);padding:16px;display:grid;box-shadow:0 22px 70px #00000075}.waitingMatchIcon{color:#17120f;background:#f0c66a;border-radius:999px;place-items:center;width:38px;height:38px;display:grid;box-shadow:0 0 0 7px #f0c66a24}.waitingMatchKicker{color:#f0c66a;text-transform:uppercase;letter-spacing:0;font-size:11px;font-weight:900}.waitingMatchPanel h2{color:#f7f3e7;margin:0;font-size:clamp(18px,2.4vw,25px);line-height:1.1}.waitingMatchPanel p{color:#ddcfb9;max-width:34rem;margin:0;font-size:13px;line-height:1.35}.waitingMatchActions{border:1px solid #5f442d;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid;overflow:hidden}.waitingMatchActions button{color:#ddcfb9;cursor:pointer;background:#2b2119;border:0;border-right:1px solid #5f442d;justify-content:center;align-items:center;gap:6px;min-width:0;min-height:38px;font-size:13px;font-weight:900;display:inline-flex}.waitingMatchActions button:last-child{border-right:0}.waitingMatchActions button:hover,.waitingMatchActions button:focus-visible{color:#17120f;background:#f0c66a;outline:none}.gameColumn{align-items:center;min-width:0;display:grid}.tableStage{min-width:0;position:relative}.tableShell{padding:10px}.poolTable{aspect-ratio:1774/887;touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;background:#0d0907;border-radius:6px;width:100%;height:auto;display:block}.poolTable.isAiming{cursor:crosshair}.trajectoryGuide{pointer-events:none}.trajectoryMain{stroke:#f7f3e7e0;stroke-width:4px;stroke-linecap:round;stroke-dasharray:12 10;filter:drop-shadow(0 0 6px #f7f3e742);animation:1.1s linear infinite trajectoryDash}.trajectoryObject{stroke:#f0c66af2;stroke-width:4px;stroke-linecap:round;stroke-dasharray:14 9;filter:drop-shadow(0 0 8px #f0c66a4d);animation:.98s linear infinite trajectoryDash}.trajectoryCue{stroke:#5dcafcb8;stroke-width:3px;stroke-linecap:round;stroke-dasharray:8 9}.trajectoryGuide.remoteAim .trajectoryMain{stroke:#74d2ffb8;filter:drop-shadow(0 0 7px #5dcafc3d)}.trajectoryGuide.remoteAim .trajectoryObject{stroke:#b7e4ffb8;filter:drop-shadow(0 0 7px #5dcafc38)}.trajectoryContact{fill:#f0c66a29;stroke:#f0c66af2;stroke-width:3px;animation:.9s ease-in-out infinite contactPulse}.illegalTargetMarker{pointer-events:none;filter:drop-shadow(0 0 8px #ff3a5b8c)}.illegalTargetMarker circle{fill:#18060a8a;stroke:#ffd8dedb;stroke-width:2px}.illegalTargetMarker line{stroke:#ff375f;stroke-width:7px;stroke-linecap:round}.cueStickLayer{pointer-events:none}.cueStickShadow{stroke:#00000094;stroke-width:15px;stroke-linecap:round}.cueStick{stroke:#d99f5b;stroke-width:8px;stroke-linecap:round;filter:drop-shadow(0 0 4px #ffcd8933)}.remoteCueStick{stroke:#72cfff;stroke-width:8px;stroke-linecap:round;filter:drop-shadow(0 0 5px #5dcafc47)}.cueTip{fill:#5dcafc;stroke:#e4f6ff;stroke-width:1.4px;filter:drop-shadow(0 0 5px #5dcafc8c)}.ballSprite{transform-box:fill-box;transform-origin:50%;will-change:transform;transition:transform 35ms linear}.spriteBallShadow{fill:#00000059}.shotHud{pointer-events:none}.powerTrack{fill:#140e0ad6;stroke:#f0c66a3d;stroke-width:1px}.powerFill{fill:#f0c66a;filter:drop-shadow(0 0 7px #f0c66a59);transition:width .12s ease-out}.powerText{fill:#f7f3e7;pointer-events:none;font-size:24px;font-weight:900}.spinPanel{fill:#140e0ac7;stroke:#f0c66a47;stroke-width:1px}.spinDot{fill:#f05d8b;stroke:#ffe0eb;stroke-width:1.2px;filter:drop-shadow(0 0 5px #f05d8b80)}.spinText{fill:#f0c66a;text-transform:uppercase;font-size:18px;font-weight:900}.remoteAimLabel rect{fill:#0a1216d1;stroke:#5dcafc75;stroke-width:1px}.remoteAimLabel text{fill:#d8f3ff;font-size:18px;font-weight:900}.placementGhost{opacity:.72;pointer-events:none}.placementRing{fill:#f0c66a14;stroke:#f0c66aeb;stroke-width:3px;stroke-dasharray:8 7}.tableControls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;display:flex}.hint{color:#ddcfb9;min-width:220px;font-size:13px}.powerControl{color:#ddcfb9;background:#2b2119;border:1px solid #443326;border-radius:8px;flex:260px;grid-template-columns:auto minmax(120px,1fr) 42px;align-items:center;gap:9px;min-width:230px;padding:6px 9px;font-size:12px;font-weight:800;display:grid}.powerControl input{accent-color:#f0c66a;width:100%;min-width:0}.powerControl input:disabled{opacity:.46}.powerControl output{color:#f0c66a;text-align:right;font-variant-numeric:tabular-nums}.shotMeta{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.shotMeta span{color:#ddcfb9;background:#2b2119;border:1px solid #443326;border-radius:8px;align-items:center;min-height:30px;padding:6px 9px;font-size:12px;font-weight:800;display:inline-flex}.eventLog{padding:14px;overflow:hidden}.eventLog h2{margin:0 0 10px;font-size:16px}.eventLog p{color:#ddcfb9;background:#2b2119;border-radius:8px;margin:0 0 8px;padding:9px 10px;font-size:13px;line-height:1.35}.eventLog p.warning{color:#ffd5a3;background:#3b2518}.eventLog p.success{color:#bdf6c9;background:#173c27}@media (width<=1080px){.appShell{grid-template-columns:1fr}.scoreboard{order:1}.gameColumn{order:2}.eventLog{order:3}}@media (width<=640px){.appShell{gap:8px;padding:8px}.scoreboard,.eventLog,.tableShell{border-radius:8px}.brandBlock h1{font-size:20px}.hint{width:100%;min-width:0}.powerControl{flex-basis:100%;grid-template-columns:auto minmax(0,1fr) 42px;width:100%;min-width:0}.shotMeta{justify-content:flex-start}.shotMeta span{padding:5px 7px;font-size:11px}.waitingMatchOverlay{padding:8px}.waitingMatchPanel{gap:5px;padding:10px}.waitingMatchIcon{width:30px;height:30px;box-shadow:0 0 0 5px #f0c66a24}.waitingMatchKicker{font-size:10px}.waitingMatchPanel h2{font-size:16px}.waitingMatchPanel p{font-size:11px;line-height:1.25}.waitingMatchActions button{gap:4px;min-height:32px;font-size:11px}}@keyframes trajectoryDash{to{stroke-dashoffset:-21px}}@keyframes contactPulse{0%,to{opacity:.58;transform:scale(.92)}50%{opacity:1;transform:scale(1.18)}}@media (prefers-reduced-motion:reduce){.trajectoryMain,.trajectoryObject,.trajectoryContact{animation:none}.ballSprite,.powerFill{transition:none}}
