:root{color:#173c34;font-synthesis:none;background:#f5f4ec;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,summary{font:inherit}button,summary{cursor:pointer}button{border:0;border-radius:10px;min-height:46px;font-weight:650}button:disabled{opacity:.42;cursor:default}a{color:inherit;text-decoration:none}.app-shell{max-width:1160px;margin:auto;padding:30px 32px 24px}header{border-bottom:1px solid #d7ddd3;justify-content:space-between;align-items:center;padding-bottom:24px;display:flex}.brand{letter-spacing:-1.2px;align-items:center;gap:16px;font-size:27px;font-weight:850;display:flex}.brand span{letter-spacing:.02em;border-left:1px solid #b9c8bc;padding-left:16px;font-size:12px;font-weight:450}.stage{background:#e5eadc;border-radius:20px;padding:8px 12px;font-size:12px}.intro{grid-template-columns:1fr 1fr;column-gap:48px;padding:34px 0 26px;display:grid}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:#6d816d;grid-column:1/-1;font-size:11px}h1{letter-spacing:-1.7px;margin:12px 0 0;font-size:44px;line-height:1.06}h2{letter-spacing:-.6px;margin:0 0 12px;font-size:22px}.intro p{color:#657365;align-self:end;max-width:440px;margin:0 0 3px;font-size:16px;line-height:1.6}.sandbox-layout{grid-template-columns:minmax(0,1fr) 330px;align-items:start;gap:22px;display:grid}.board-meta{border-bottom:1px solid #c6d5c9;justify-content:space-between;gap:10px;padding:18px 20px;font-size:12px;display:flex}.canvas-wrap{touch-action:none;height:480px}.board-status{background:#e6ece3;border-top:1px solid #c6d5c9;align-items:center;gap:10px;padding:17px 20px;font-size:13px;display:flex}.status-dot{background:#498263;border-radius:50%;width:7px;height:7px}.status-dot.moving{background:#ca862f}.control-card{background:#fffdf7;border:1px solid #dddcd1;border-radius:18px;padding:24px}.muted{color:#768071;margin:0 0 24px;font-size:13px;line-height:1.6}fieldset{border:0;gap:12px;margin:0;padding:0;display:grid}.range-field{margin-bottom:10px;font-size:13px;display:block}.range-field>span{justify-content:space-between;gap:8px;margin-bottom:10px;display:flex}output{color:#6c7968;font-variant-numeric:tabular-nums}input[type=range]{accent-color:#285f4a;width:100%;min-height:24px}.primary{color:#fff;background:#214e3d;justify-content:space-between;align-items:center;padding:0 18px;display:flex}.secondary{color:#285342;background:#e9edde;padding:0 14px}.physics-panel{border-top:1px solid #dfdfd3;margin-top:24px;padding-top:18px}.physics-panel summary{font-size:13px;font-weight:650}.physics-panel summary span{color:#7a8574;margin-left:8px;font-size:10px;font-weight:400;display:inline-block}.physics-panel p,.experiment p{color:#7a8574;font-size:11px;line-height:1.55}.physics-panel fieldset{gap:3px}.experiment{margin-top:15px}.text-button{color:#477151;text-align:left;background:0 0;min-height:38px;padding:0;font-size:12px}.experiment p{word-break:break-all;margin:4px 0;font-family:monospace}.error{color:#a33c28;font-size:13px}footer{color:#788373;max-width:760px;margin-top:22px;font-size:12px;line-height:1.7}footer strong{color:#4b6352;font-weight:500}:focus-visible{outline-offset:3px;outline:3px solid #df9b4e}@media (width<=800px){.app-shell{padding:20px 18px}.sandbox-layout{grid-template-columns:1fr}.intro{grid-template-columns:1fr;padding:26px 0 22px}.intro p{margin-top:16px;font-size:14px}.canvas-wrap{height:400px}.control-card{padding:22px}h1{font-size:36px}.brand span{display:none}.board-meta{padding:15px;font-size:11px}.board-status{padding:15px}}@media (width<=400px){.canvas-wrap{height:330px}}:root{--tuball-control-accent:#285f4a}select{color:#173c34;width:100%;min-height:42px;font:inherit;background:#f8faf3;border:1px solid #d7ddd3;border-radius:8px;margin:6px 0 10px;padding:6px}.reserves{flex-direction:column;gap:8px;margin:18px 0;font-size:12px;display:flex}.player-one{color:#a76120}.player-two{color:#237296}.power-meter{margin-bottom:20px;font-size:13px}.power-meter>span{justify-content:space-between;display:flex}.power-meter progress{accent-color:#285f4a;width:100%;height:10px;margin-top:10px}.help{margin-top:14px!important;margin-bottom:8px!important}.match-score{justify-content:space-between;align-items:center;gap:10px;margin:20px 0;font-size:12px;display:flex}.match-score strong{color:#173c34;white-space:nowrap;font-size:30px}.game-result{background:#f1f2e6;border-radius:12px;margin-bottom:18px;padding:16px}.game-result h3{margin:0 0 12px;font-size:18px}.game-result p{font-size:12px;line-height:1.65}.game-result ul{margin:14px 0;padding:0;list-style:none}.game-result li{border-bottom:1px solid #dddfcf;justify-content:space-between;gap:10px;padding:6px 0;font-size:11px;display:flex}.counted-ball{color:#94631e;font-weight:650}.game-result .primary{width:100%;margin-top:12px}.match-history{margin-bottom:18px;font-size:12px;line-height:1.6}.match-history p{margin:6px 0}.match-settings{margin-bottom:18px;font-size:12px}input[type=number]{color:#173c34;width:100%;min-height:38px;font:inherit;background:#f8faf3;border:1px solid #d7ddd3;border-radius:8px;margin:6px 0 12px;padding:6px}.game-distances{border-collapse:collapse;table-layout:fixed;width:100%;margin:16px 0;font-size:11px}.game-distances th,.game-distances td{text-align:left;border-bottom:1px solid #d9dccb;padding:8px 4px}.game-distances thead th{color:#657365;white-space:nowrap;font-weight:500}.game-distances th:first-child{width:48%;padding-left:0}.game-distances th:nth-child(2){width:34%}.game-distances th:last-child{text-align:right;width:18%;padding-right:0}.game-distances tbody th{font-weight:inherit}.game-distances .ball-distance{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right;padding-right:12px}.game-distances .ball-points{text-align:right;white-space:nowrap;padding-right:0}[hidden]{display:none!important}.brand-button{text-align:left;background:0 0;border:0;min-height:0;padding:0}.header-actions{align-items:center;gap:20px;display:flex}.header-actions .text-button{text-align:center;font-size:12px}.headline-line{display:block}.home-layout{grid-template-columns:1.1fr .9fr;align-items:center;gap:80px;padding:64px 0 30px;display:grid}.home-layout h1{margin:16px 0 24px;font-size:64px;line-height:1.04}.lead{color:#657365;max-width:520px;font-size:17px;line-height:1.7}.button-row{flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px;display:flex}.button-row .primary{padding:0 22px}.feature-list{color:#657365;flex-wrap:wrap;gap:10px 18px;margin-top:32px;padding:0;font-size:12px;list-style:none;display:flex}.feature-list li:before{content:"•";color:#d09a49;margin-right:8px}.board-illustration{filter:drop-shadow(0 12px 22px #284d3320);width:100%;max-width:300px;height:auto;margin:auto;display:block}.home-art{padding:20px;transform:rotate(6deg)}.setup-heading{padding:32px 0 10px}.setup-layout{grid-template-columns:1fr 1fr;gap:22px;display:grid}.setup-card{align-self:start}.setup-summary{margin:20px 0 0}.setup-world .physics-panel:first-child{border-top:0;margin-top:0;padding-top:0}.session-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:24px 0 20px;display:flex}.session-heading>.eyebrow{width:100%}.session-heading h1{letter-spacing:-1px;margin:0;font-size:32px}.session-heading h1:focus,.home-layout h1:focus,.setup-heading h1:focus{outline:none}.session-actions{gap:24px;display:flex}.game-session .control-card{padding:22px}.game-session .match-score{margin:12px 0 24px}.game-session .world-editor{font-size:12px}.match-finale{background:#fffdf7;border:1px solid #dddcd1;border-radius:20px;max-width:700px;margin:10px auto 30px;padding:30px}.match-finale h2{text-align:center;margin:0;font-size:28px}.match-finale>.match-score{max-width:400px;margin:24px auto}.match-finale .match-score strong{font-size:48px}.match-finale p{text-align:center;color:#657365;font-size:13px;line-height:1.7}.history-table{border-collapse:collapse;text-align:center;width:100%;margin:26px 0;font-size:13px}.history-table th,.history-table td{border-bottom:1px solid #e0e3d7;padding:10px}.history-table thead th{color:#657365;font-weight:500}.match-finale .button-row{justify-content:center}.app-dialog{color:#173c34;background:#fffdf7;border:1px solid #d7ddcf;border-radius:20px;width:min(640px,100% - 32px);max-height:85dvh;padding:28px;box-shadow:0 20px 100px #102d3540}.app-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#153b344f}.dialog-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.dialog-heading h2{margin:0;font-size:23px}.icon-button{background:#e9edde;min-width:40px;min-height:40px;font-size:28px;font-weight:400;line-height:1}.rules-copy h3{margin:22px 0 6px;font-size:15px}.rules-copy p{color:#657365;margin:0;font-size:13px;line-height:1.75}.tutorial-progress{gap:8px;margin:24px 0;display:flex}.tutorial-progress span{background:#e5e9dc;border-radius:8px;flex:1;height:4px}.tutorial-progress .active{background:#d2a051}.tutorial-content{grid-template-columns:140px 1fr;align-items:center;gap:28px;margin:20px 0;display:grid}.tutorial-content .board-illustration{width:auto;max-width:140px;max-height:180px}.tutorial-content h3{letter-spacing:-.5px;margin:10px 0;font-size:24px}.tutorial-content p{color:#657365;font-size:14px;line-height:1.8}.tutorial-content .eyebrow{font-size:12px}.world-editor fieldset label{font-size:13px}.world-editor .range-field{margin:14px 0 8px}@media (width<=800px){.home-layout{grid-template-columns:1fr;gap:20px;padding:34px 0 20px}.home-layout h1{font-size:46px}.home-art{grid-row:2;max-width:240px;margin:0 auto;padding:12px}.home-art .board-illustration{max-height:260px}.home-layout .lead{font-size:15px}.setup-layout{grid-template-columns:1fr}.setup-heading h1{font-size:32px}.session-heading h1{font-size:27px}.header-actions{gap:14px}.brand-button{font-size:24px}.app-dialog{padding:22px}.tutorial-content{grid-template-columns:90px 1fr;gap:18px}.tutorial-content .board-illustration{max-width:90px;max-height:140px}.tutorial-content h3{font-size:20px}.tutorial-content p{font-size:13px}.match-finale{padding:22px}.session-actions{gap:18px}.feature-list{margin-top:24px}.game-session .control-card{padding:22px}}@media (width<=360px){.tutorial-content{grid-template-columns:1fr}.tutorial-content .board-illustration{display:none}.dialog-heading h2{font-size:20px}.header-actions{gap:10px}.header-actions .text-button{font-size:11px}.home-layout h1{font-size:42px}}.brand-button{color:inherit}.setup-world{align-self:start}button{border-radius:8px;min-height:48px;font-size:16px}select,input[type=number]{min-height:48px;font-size:16px}.text-button,.header-actions .text-button{min-height:48px;padding:0 10px;font-size:15px}.control-card,.match-finale{background:0 0;border:0;border-radius:0;padding:16px 0}.screen-game{max-width:1050px;padding:12px 20px 24px}.screen-game header{border:0;padding-bottom:8px}.screen-game .brand span{display:none}.session-heading{gap:6px 16px;padding:10px 0 12px}.session-heading>.eyebrow{letter-spacing:1px;font-size:12px}.session-heading h1{font-size:28px}.session-heading .match-score{gap:14px;margin:0 0 0 auto}.sandbox-layout{grid-template-columns:minmax(0,640px) minmax(220px,1fr);gap:24px}.board-card{background:0 0;border:0;border-radius:0;overflow:visible}.canvas-wrap{touch-action:none;width:100%;height:auto}.board-status{background:0 0;border:0;min-height:42px;padding:8px 4px;font-size:15px;line-height:1.4}.game-controls{padding:0}.game-controls .reserves{flex-direction:row;justify-content:space-between;gap:12px;margin:8px 0 12px;font-size:15px}.game-controls .power-meter{margin:0 0 12px;font-size:16px}.power-meter progress{height:12px;margin-top:6px}.play-actions{gap:12px;display:flex}.play-actions button{flex:1;justify-content:center}.session-details{border-top:1px solid #d7ddd3;margin-top:18px;padding-top:8px;font-size:15px}.session-details>summary{align-content:center;min-height:48px;display:list-item}.session-details .muted{margin:12px 0;font-size:15px}.experiment p,.match-history{font-size:14px}.game-result{background:0 0;border-radius:0;padding:8px 0}.game-result p,.game-distances{font-size:14px}.game-result h3{font-size:23px}.game-distances th,.game-distances td{padding-top:12px;padding-bottom:12px}.rules-copy p{font-size:16px}.rules-copy h3{font-size:18px}.tutorial-content p{font-size:16px}@media (width<=800px){.app-shell{padding:12px 16px 24px}.screen-game{padding:8px 10px 20px}header{padding-bottom:12px}.header-actions{gap:4px}.brand-button{font-size:23px}.sandbox-layout{display:block}.session-heading{gap:2px 8px;padding:4px 4px 8px}.session-heading>.eyebrow{font-size:11px}.session-heading h1{font-size:23px}.session-heading .match-score{justify-content:center;gap:20px;width:100%;margin:0;font-size:14px}.session-heading .match-score strong{font-size:25px}.session-actions{margin-left:auto}.canvas-wrap{height:auto}.game-controls{padding:0 6px}.board-status{padding:6px;font-size:14px}.control-card,.game-session .control-card,.match-finale{padding:12px 0}.home-layout h1{font-size:46px}.home-art{padding:0}.feature-list{font-size:14px}.setup-layout{gap:12px}.setup-heading{padding-top:20px}.muted,.world-editor fieldset label,.world-editor .range-field{font-size:15px}.setup-card .button-row button{flex:1;justify-content:center}}@media (width<=1100px) and (height<=600px) and (orientation:landscape){.screen-game{padding:8px 10px 20px}.screen-game header{padding-bottom:0}.session-heading{padding:4px 0 8px}.session-heading h1{font-size:23px}.sandbox-layout{grid-template-columns:minmax(0,1fr) minmax(220px,35%);gap:16px;display:grid}.board-card{width:min(100%,calc((100dvh - 150px)/var(--field-aspect)));justify-self:center}.canvas-wrap{aspect-ratio:calc(1 / var(--field-aspect))!important}.session-heading .match-score{width:auto;margin-left:auto}.session-details{margin-top:8px}}.screen-game{max-width:none;height:100dvh;padding:0 max(10px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));flex-direction:column;display:flex;overflow:hidden}.screen-game>header{border:0;flex:0 0 48px;padding:0}.screen-game .brand-button{font-size:22px}.session-host,.game-session{flex-direction:column;flex:1;min-height:0;display:flex}.screen-game .session-heading{flex:none;grid-template-columns:1fr auto;gap:0 12px;padding:0 4px 4px;display:grid}.screen-game .session-heading>.eyebrow{letter-spacing:0;grid-column:1;width:auto;font-size:12px}.screen-game .session-heading h1{grid-column:1;font-size:22px;line-height:1.2}.screen-game .session-actions{grid-area:1/2/3;margin:0}.screen-game .session-heading .match-score{grid-column:1/3;justify-content:center;gap:16px;width:auto;height:30px;margin:0;font-size:14px}.screen-game .session-heading .match-score strong{font-size:24px}.screen-game .sandbox-layout{flex-direction:column;flex:1;gap:0;min-height:0;display:flex}.screen-game .board-card{flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.screen-game .canvas-wrap{flex:1;width:100%;height:auto;min-height:0;aspect-ratio:auto!important}.screen-game .board-status{white-space:nowrap;flex:0 0 32px;height:32px;min-height:32px;max-height:32px;padding:4px 6px;font-size:14px;line-height:1.25;overflow:hidden}.board-status .status-dot{flex:0 0 7px}.board-status .status-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.screen-game .game-controls{flex:none;width:100%;padding:0 4px}.compact-hud{justify-content:flex-end;align-items:center;gap:20px;min-height:28px;font-size:15px;display:flex}.compact-hud>span:first-child{margin-right:auto}.compact-hud .player-one:before{content:"● ";color:#e6a04d}.compact-hud .player-two:before{content:"● ";color:#317eaa}.screen-game .play-actions{gap:8px}.screen-game .play-actions button{min-height:48px}.screen-game .error{z-index:1;background:#fffdf7;padding:12px;position:absolute;bottom:90px;left:16px;right:16px}.session-scroll{overscroll-behavior:contain;flex:1;width:100%;max-width:760px;min-height:0;margin:0 auto;padding:12px 8px 24px;overflow:auto}.info-heading{z-index:1;background:#f5f4ec;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky;top:-12px}.info-heading h2{margin:0;font-size:22px}.session-info .muted{margin:20px 0;font-size:16px}.session-info .experiment p{font-size:15px}.result-actions{background:#fffdf7;flex-wrap:wrap;gap:10px;padding:12px 0 0;display:flex;position:sticky;bottom:-28px}.result-actions button{flex:1;justify-content:center;min-width:160px}@media (orientation:landscape) and (height<=600px){.screen-game .session-heading{grid-template-columns:1fr auto auto;padding-bottom:2px}.screen-game .session-heading .match-score{grid-area:1/2/3;height:auto;margin:0}.screen-game .session-actions{grid-column:3}.screen-game .game-controls{align-items:center;gap:16px;display:flex}.compact-hud,.screen-game .play-actions{flex:1}}
