:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0c131c;--panel:#131e29;--line:#2a3945;--text:#e5ecf0;--muted:#8fa2b1;--accent:#6fcdef;--mono:Consolas,"Courier New",monospace;--sans:Arial,Helvetica,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:var(--sans);margin:0;font-size:16px;line-height:1.5}button,input,select{font:inherit}button{color:#dce8ef;cursor:pointer;background:#1a2936;border:1px solid #354654;border-radius:6px;padding:9px 13px;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#243a49;border-color:#648293}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.4;cursor:default}input,select{width:100%;min-width:0;color:var(--text);background:#0d1721;border:1px solid #354654;border-radius:5px;height:43px;padding:10px 12px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2395aab9' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:30px}label{color:#aec0cc;font-size:14px;display:block}label input,label select{margin-top:7px}h1,h2,p{margin:0}h2{letter-spacing:-.5px;font-size:24px}strong{font-weight:600}small,.small{font-size:13px}p{line-height:1.65}kbd{font-family:var(--mono);color:#afc4d0;border:1px solid #475965;border-radius:3px;margin-left:7px;padding:0 5px;font-size:12px;display:inline-block}button svg{display:block}.muted{color:var(--muted)}.mono{font-family:var(--mono)}.wide{width:100%}.primary{color:#0b202b;background:#76d1ee;border-color:#76d1ee;font-weight:600}.primary:hover:not(:disabled){background:#9bdff4;border-color:#9bdff4}.subtle,.text-button{background:0 0;border-color:#0000}.text-button{color:var(--accent);padding-left:0}.danger{color:#f0ac8e;border-color:#a4644b}.eyebrow,.section-label{font-family:var(--mono);letter-spacing:1.3px;color:#9eb2c0;font-size:12px}.eyebrow{color:#8dc7da}.section-label{margin-bottom:16px}.chip{font-family:var(--mono);letter-spacing:.7px;color:#9ec9da;background:#1e3340;border:1px solid #3a5461;border-radius:4px;padding:3px 6px;font-size:10px}.chip.success{color:#9cc6ac;background:#192c26;border-color:#385c4a}.app-shell{max-width:1900px;margin:auto;padding:0 36px}.topbar{border-bottom:1px solid var(--line);align-items:center;gap:40px;height:94px;display:flex}.brand{text-align:left;font-family:var(--mono);letter-spacing:1px;background:0 0;border:0;align-items:center;gap:12px;padding:0;font-size:24px;font-weight:700;display:flex}.brand:hover:not(:disabled){background:0 0;border:0}.brand-mark{color:#102630;background:#70ceec;border-radius:6px;place-items:center;width:37px;height:37px;font-size:35px;line-height:1;display:grid}.brand-light{color:#a3b4c1;font-weight:400}.brand small{color:#89a0b0;letter-spacing:2px;font-size:8px;display:block}.topbar nav{align-items:center;gap:6px;display:flex}.topbar nav button{color:#9cafbd;background:0 0;border:0;padding:12px 18px;font-size:14px}.topbar nav .nav-active{color:#cbeefa;background:#1a2a36}.topbar nav .help-button{border:1px solid #526473;border-radius:50%;width:24px;height:24px;margin-left:10px;padding:1px 0}.version{color:#708391;font:10px var(--mono);letter-spacing:1px;margin-left:auto}.menu-layout{grid-template-columns:1fr 510px;align-items:start;gap:90px;max-width:1170px;margin:70px auto 45px;display:grid}.menu-intro{padding-top:35px}.menu-intro h1{letter-spacing:-2px;margin:25px 0;font-size:57px;line-height:1.12}.menu-intro h1 span{color:#80d1ec}.menu-intro>p{color:#9eafbd;max-width:400px;font-size:18px}.intro-pipes{align-items:center;gap:4px;margin:38px 0;display:flex}.intro-pipes span{color:#8b9eac;font:11px var(--mono);max-width:90px;margin-left:12px;line-height:1.6}.intro-facts{border-top:1px solid var(--line);gap:43px;margin:15px 0;padding-top:24px;display:flex}.intro-facts strong{font:24px var(--mono);color:#d3e4ed;display:block}.intro-facts span{color:var(--muted);font-size:12px}.menu-footer{font:10px var(--mono);letter-spacing:.5px;color:#647e8e;margin-top:55px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:9px}.setup-panel{padding:28px 30px}.panel-heading{justify-content:space-between;align-items:center;display:flex}.setup-panel h2{margin:20px 0 25px}.form-row{grid-template-columns:1fr 1fr;gap:16px;display:grid}.player-setup{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:22px 0;padding:13px 0}.player-choice{align-items:center;gap:10px;padding:9px 0;font-size:15px;display:flex}.player-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.player-choice select{width:180px;margin:0 0 0 auto;font-size:14px}.map-description{color:#8b9daa;margin:9px 0 25px;font-size:12px}.start-button{padding:14px;font-size:16px}.secondary-actions{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:15px;display:flex}.secondary-actions button{color:#a1b6c3;background:0 0;border:0;padding:7px;font-size:12px}.settings-grid{grid-template-columns:1fr 1fr;gap:16px;margin:22px 0;display:grid}.weight-settings{margin:24px 0}.weight-settings .label{color:var(--muted);font-size:13px}.weight-settings label{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.weight-settings input{width:80px;margin:0}.setup-panel>.subtle{margin-top:10px;font-size:13px}.alert,.notice,.rules-banner{background:#2d2225;border:1px solid #7c4d46;border-radius:6px;justify-content:space-between;align-items:center;gap:20px;margin-top:15px;padding:13px 17px;font-size:14px;display:flex}.alert button,.notice button{background:0 0;border:0;padding:0 6px;font-size:22px}.notice{color:#b8dedc;background:#192b2c;border-color:#355d5b}.rules-banner{background:#142d3a;border-color:#35677d;align-items:start}.rules-banner p{color:#b4c8d4;max-width:1200px;margin-top:8px}.game-titlebar{justify-content:space-between;align-items:center;gap:20px;margin:30px 0 25px;display:flex}.game-titlebar h1{letter-spacing:-.7px;margin-top:4px;font-size:26px;font-weight:500}.title-actions{align-items:center;gap:8px;display:flex}.title-actions button{font-size:12px}.seed-tag{font:11px var(--mono);color:#91a4b3;margin-right:10px}.game-layout{grid-template-columns:234px minmax(380px,1fr) 270px;align-items:start;gap:22px;display:grid}.left-sidebar,.right-sidebar{gap:16px;display:grid}.compact{padding:18px}.compact select{font-size:13px}.compact .section-label{letter-spacing:1px;font-size:11px}.turn-panel{padding:20px}.turn-heading{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.turn-heading .section-label{margin:0}.turn-heading strong{font:28px var(--mono)}.turn-heading strong small{color:#78919f;font-size:13px}.turn-player{border-left:2px solid;align-items:center;gap:10px;margin-left:-21px;padding:3px 0 3px 12px;display:flex}.turn-player strong{margin-top:2px;font-size:17px;display:block}.turn-player .small{font-size:11px}.player-number{font:24px var(--mono);color:#526b7b;margin-left:auto}.piece-label{margin:25px 0 16px}.current-piece{flex-direction:column;align-items:center;gap:12px;margin-bottom:20px;display:flex}.current-piece strong{font-size:16px}.turn-panel>.wide{font-size:13px}.next-piece{border-top:1px solid var(--line);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;margin:18px 0;padding:16px 0;display:flex}.next-piece .section-label{margin:0 0 6px;font-size:10px;display:block}.next-piece strong{font-size:14px}.discard-button{color:#e7b39e;background:#2b2527;border-color:#60433d;justify-content:space-between;align-items:center;display:flex}.discard-button span{font-family:var(--mono)}.turn-panel>p{margin-top:12px;font-size:11px}.compact>.wide{margin-bottom:8px;font-size:13px}.compact>p{margin-top:12px;font-size:12px}.board-toolbar{align-items:center;gap:18px;min-height:42px;margin-bottom:13px;font-size:12px;display:flex}.board-status{color:#adbfcb;white-space:nowrap;align-items:center;gap:7px;margin-right:auto;font-size:12px;display:flex}.status-dot{background:#7894a3;border-radius:50%;width:6px;height:6px}.status-dot.live{background:#76d0ac;box-shadow:0 0 8px #76d0ac40}.toggle-label{white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:flex}.toggle-label input{accent-color:#7ccce7;width:14px;height:14px;margin:0}.speed-label{align-items:center;gap:8px;font-size:12px;display:flex}.speed-label select{width:63px;height:32px;font:12px var(--mono);background-position:right 6px center;margin:0;padding:4px 22px 4px 8px}.board-frame{background:#101923;border:1px solid #3b4d5b;border-radius:9px;padding:4px;overflow:hidden;box-shadow:0 15px 50px #00000020}.game-canvas{aspect-ratio:1;touch-action:manipulation;width:100%;height:auto;display:block}.board-caption{color:#8a9eac;flex-wrap:wrap;align-items:center;gap:16px;padding:14px 3px;font-size:10px;display:flex}.board-caption>span{align-items:center;gap:6px;display:flex}.board-caption i{border:1px solid #7299ac;width:8px;height:8px;display:inline-block}.legend-color{background:#3a9fbf;border-radius:2px}.legend-tank{border-radius:3px}.board-caption .legend-leak{background:#ebaa7d;border:0;border-radius:50%;width:5px;height:5px}.board-caption .caption-end{margin-left:auto;font-size:10px}.coordinate-form{align-items:end;gap:8px;padding:5px 0 12px;display:flex}.coordinate-form label{width:85px;font-size:12px}.coordinate-form input{height:32px;margin-top:4px;font-size:12px}.coordinate-form button{height:32px;padding:6px 10px;font-size:12px}.score-row{border-bottom:1px solid var(--line);padding:15px 0}.score-row:first-child{padding-top:2px}.score-row:last-child{border-bottom:0;padding-bottom:0}.score-name{align-items:center;gap:8px;font-size:14px;display:flex}.score-value{font:19px var(--mono);margin-left:auto}.score-details{color:#8b9fad;justify-content:space-between;gap:6px;margin-top:6px;font-size:9px;display:flex}.active-score .score-name strong{color:#eaf7fc}.active-score{position:relative}.active-score:before{content:"";background:#73cae7;width:2px;position:absolute;top:0;bottom:0;left:-19px}.reservoir-list{gap:13px;display:grid}.tank-item{text-align:left;background:0 0;border:0;width:100%;padding:0;display:block}.tank-item:hover:not(:disabled){background:#1a2a36;border:0}.tank-item>div:first-child{font:11px var(--mono);align-items:center;gap:12px;display:flex}.tank-item strong{color:#c9d9e3}.tank-item small{color:#91a5b3;font-size:9px}.tank-item>div:first-child small{margin-left:auto}.tank-progress{background:#263c49;border-radius:3px;height:5px;margin:9px 0;display:flex;overflow:hidden}.tank-progress i{height:100%;display:block}.tank-composition{font:10px var(--mono);flex-wrap:wrap;gap:9px;display:flex}.tank-composition small{color:#839aa8;font-size:9px}.selected-tank{outline-offset:5px;outline:1px solid #5c9cb3}.inspector .section-label{justify-content:space-between;display:flex}.inspector-name{font-size:14px}.inspector dl{margin:12px 0}.inspector dl>div{justify-content:space-between;margin-top:6px;font-size:11px;display:flex}.inspector dt{color:#94a9b8}.inspector dd{font-family:var(--mono);margin:0;font-size:10px}.fluid-breakdown{border-top:1px solid var(--line);padding-top:8px}.fluid-breakdown>div,.flow-details>div{font:9px var(--mono);justify-content:space-between;gap:7px;margin-top:5px;display:flex}.flow-details{color:#8fa8b8;margin-top:10px}.diagnostics .section-label{justify-content:space-between;align-items:center;gap:4px;font-size:10px;display:flex}.diagnostics .chip{font-size:8px}.balance-table{font:10px var(--mono)}.balance-table>div{grid-template-columns:35px 1fr 1fr 1fr;gap:5px;padding:5px 0;display:grid}.balance-header{color:#7c96a6;border-bottom:1px solid var(--line);font-size:9px}.game-footer{border-top:1px solid var(--line);font:9px var(--mono);color:#8ba2b2;letter-spacing:.5px;justify-content:space-between;gap:20px;margin-top:30px;padding:20px 0;display:flex}.tool-grid{grid-template-columns:repeat(3,1fr);gap:5px;display:grid}.tool-grid button{flex-direction:column;align-items:center;gap:7px;padding:8px 2px;display:flex}.tool-grid small{font-size:9px}.selected-tool{color:#c9f0fc;background:#203d4c!important;border-color:#74cde9!important}.tool-extras{flex-wrap:wrap;gap:5px;margin:10px 0;display:flex}.tool-extras button{padding:7px 9px;font-size:11px}.button-row{align-items:center;gap:8px;margin-top:10px;display:flex}.button-row button{flex:1;padding:8px;font-size:12px}.button-row+label{margin-top:14px}.compact label{font-size:12px}.parameter-row{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.parameter-row input{width:75px;height:33px;font:12px var(--mono);margin:0;padding:5px 7px}.scenario-description{min-height:60px}.results-panel{background:#152c37;border-color:#6095a4;margin-top:15px;padding:24px}.results-panel h2{margin:10px 0 20px}.results-grid{flex-wrap:wrap;gap:30px;margin-bottom:20px;display:flex}.results-grid>div{gap:4px;display:grid}.results-grid small{font:11px var(--mono);color:#91a8b7}.results-panel .eyebrow{font-size:10px}.results-panel .button-row{max-width:450px}@media (min-width:1550px){.game-layout{grid-template-columns:260px minmax(450px,1fr) 300px;gap:30px}.board-section{width:100%;max-width:900px;margin:auto}.compact{padding:21px}.game-titlebar{margin-top:35px}.topbar{height:100px}.score-details,.fluid-breakdown>div,.flow-details>div{font-size:10px}}@media (max-width:1190px){.app-shell{padding:0 20px}.game-layout{grid-template-columns:205px minmax(330px,1fr) 225px;gap:15px}.compact{padding:14px}.turn-panel{padding:16px}.turn-player{margin-left:-17px}.board-toolbar{flex-wrap:wrap;gap:9px}.board-status{font-size:10px}.score-details{display:grid}.score-row{padding:12px 0}.game-titlebar h1{font-size:23px}.title-actions{gap:5px}.seed-tag{display:none}.menu-layout{grid-template-columns:1fr 460px;gap:45px}.menu-intro h1{font-size:49px}.score-name{font-size:12px}.score-value{font-size:17px}.balance-table{font-size:9px}.balance-table>div{grid-template-columns:24px 1fr 1fr 1fr}.tank-item>div:first-child{gap:6px;font-size:10px}.tank-item>div:first-child small{font-size:8px}.active-score:before{left:-15px}}@media (max-width:970px){.game-layout{grid-template-columns:200px 1fr;gap:18px}.right-sidebar{grid-column:1/-1;grid-template-columns:repeat(2,1fr)}.topbar{gap:20px}.version{display:none}.menu-layout{grid-template-columns:1fr 420px;gap:30px;margin-top:45px}.menu-intro h1{font-size:42px}.menu-intro>p{font-size:16px}.setup-panel{padding:24px}.intro-facts{gap:20px}.game-titlebar{align-items:start}.title-actions{flex-wrap:wrap;justify-content:end}.game-footer{font-size:8px}}@media (max-width:740px){.app-shell{padding:0 12px}.topbar{justify-content:space-between;gap:10px;height:77px}.brand{gap:7px;font-size:20px}.brand-mark{width:30px;height:30px;font-size:28px}.brand small{letter-spacing:1.5px;font-size:6px}.topbar nav{gap:0}.topbar nav button{padding:9px;font-size:11px}.topbar nav .help-button{width:20px;height:20px;margin-left:3px}.menu-layout{flex-direction:column;gap:28px;max-width:510px;margin:22px auto 40px;display:flex}.menu-intro{padding:5px 10px}.menu-intro .eyebrow{font-size:10px}.menu-intro h1{margin:17px 0;font-size:42px}.menu-intro>p{font-size:15px}.intro-pipes,.intro-facts,.menu-footer{display:none}.menu-intro .text-button{margin-top:8px}.setup-panel{width:100%;padding:22px}.game-titlebar{flex-wrap:wrap;gap:12px;margin:20px 0 14px}.game-titlebar .eyebrow{font-size:10px}.game-titlebar h1{font-size:22px}.title-actions button{padding:6px 10px;font-size:11px}.game-layout{flex-direction:column;gap:14px;display:flex}.left-sidebar{align-items:start;gap:12px;width:100%;display:flex;overflow:auto}.left-sidebar>section{flex:1;min-width:210px}.turn-panel{grid-template-columns:1fr 1fr;column-gap:18px;max-width:none;display:grid}.turn-heading{margin-bottom:8px}.turn-player{border-left:0;margin:0;padding:0}.turn-player .player-number{display:none}.piece-label{margin:5px 0 10px}.current-piece{flex-direction:row;grid-area:3/1/5;gap:8px;margin:0}.current-piece svg{width:50px;height:50px}.current-piece strong{font-size:12px}.next-piece{border:0;grid-area:3/2/5;margin:0;padding:0}.next-piece strong{font-size:12px}.turn-panel>.wide{margin-top:12px;font-size:12px}.turn-panel>p{grid-column:1/-1;margin-top:9px}.turn-panel .piece-label{font-size:9px}.left-sidebar>.turn-panel{min-width:330px}.left-sidebar>.turn-panel+.compact{min-width:195px;max-width:200px}.board-section{width:100%}.board-toolbar{flex-wrap:nowrap;gap:12px;min-height:30px;margin-bottom:9px}.board-status,.toggle-label,.speed-label{font-size:10px}.speed-label{gap:5px}.board-caption .caption-end{display:none}.right-sidebar{grid-template-columns:1fr 1fr;gap:12px;width:100%;display:grid}.compact{padding:14px}.compact .section-label{font-size:10px}.board-caption{padding:10px 2px;font-size:10px}.game-footer{flex-direction:column;gap:8px;margin-top:20px;font-size:8px}.inspector dl>div{font-size:10px}.inspector dd{font-size:9px}.fluid-breakdown>div{font-size:8px}.tank-composition{gap:6px;font-size:9px}.tank-composition small{font-size:8px}.diagnostics .section-label{display:block}.diagnostics .chip{margin-top:7px;display:inline-block}.rules-banner{padding:12px;font-size:12px}.rules-banner button{padding:6px;font-size:12px}.results-panel{padding:18px}.results-panel h2{font-size:20px}.settings-grid{gap:12px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.score-details{font-size:11px}.tank-item>div:first-child{font-size:12px}.tank-item small,.tank-composition small{font-size:10px}.tank-composition{font-size:12px}.fluid-breakdown>div,.flow-details>div{font-size:11px}.inspector dl>div{font-size:12px}.inspector dd,.balance-table{font-size:11px}.balance-header{font-size:10px}.diagnostics>p,.turn-panel>p,.compact>p{font-size:12px}@media (max-width:740px){.topbar{flex-wrap:wrap;row-gap:10px;height:auto;min-height:77px;padding:13px 0}.topbar nav{margin-left:auto}.topbar nav button{padding:8px 6px;font-size:10px}.topbar nav .help-button{margin-left:4px}.board-toolbar{flex-wrap:wrap}.board-status{flex-basis:100%}.right-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.board-frame,.board-section{min-width:0}.compact .section-label{line-height:1.7}.score-details{font-size:11px;display:grid}.tank-item>div:first-child{flex-wrap:wrap}.tank-item>div:first-child small{margin-left:0}.fluid-breakdown>div,.flow-details>div{flex-wrap:wrap;gap:1px}.inspector dl>div{flex-wrap:wrap;gap:3px}.game-footer{overflow-wrap:anywhere}}@media (max-width:480px){.right-sidebar{grid-template-columns:minmax(0,1fr)}.score-details{font-size:12px;display:flex}.fluid-breakdown>div,.flow-details>div,.balance-table{font-size:12px}.tank-composition{gap:18px}.inspector dl>div{font-size:14px}.inspector dd{font-size:13px}}.match-screen{flex-direction:column;gap:10px;max-width:none;height:100dvh;padding:0 16px;display:flex;overflow:hidden}.match-screen .topbar{flex-shrink:0;gap:28px;height:60px;min-height:60px}.match-screen .brand{font-size:20px}.match-screen .brand-mark{width:31px;height:31px;font-size:29px}.match-summary{color:#9eb9c7;margin-left:auto;font-size:13px}.match-summary strong{font-family:var(--mono);color:#e1f4fc;font-size:20px}.match-actions{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:32px;display:flex}.match-actions>div{align-items:center;gap:7px;display:flex}.match-actions button{padding:5px 10px;font-size:12px}.turn-label{font-size:15px;font-weight:600}.game-workspace{flex:1;grid-template-columns:254px minmax(0,1fr) 250px;gap:16px;min-height:0;padding-bottom:12px;display:grid}.play-sidebar,.status-sidebar{scrollbar-width:thin;scrollbar-color:#3c5362 transparent;flex-direction:column;gap:12px;min-height:0;display:flex;overflow-y:auto}.play-sidebar>*,.status-sidebar>*{flex-shrink:0}.play-center{flex-direction:column;min-width:0;min-height:0;display:flex}.play-center .board-toolbar{flex-wrap:wrap;flex-shrink:0;gap:10px;min-height:33px;margin-bottom:6px}.board-area{scrollbar-width:thin;flex:1;place-items:center;min-width:0;min-height:0;display:grid;overflow:auto}.board-area .board-frame{border-radius:9px;flex-shrink:0;max-width:none;box-shadow:0 10px 30px #0003}.board-area .game-canvas{aspect-ratio:1}.placement-feedback{color:#9db8c8;flex-shrink:0;min-height:22px;padding-top:4px;font-size:12px}.play-center .coordinate-form{flex-shrink:0;margin:0;padding:3px 0 0}.play-center .coordinate-form label{width:66px;font-size:11px}.play-center .coordinate-form input{height:28px;margin-top:0}.play-center .coordinate-form button{height:28px;padding:3px 8px;font-size:11px}.match-screen h3{color:#bdced9;margin:0 0 12px;font-size:14px;font-weight:500}.match-screen .compact{padding:15px}.match-screen .compact>p{font-size:12px}.match-screen .compact>label{margin-top:10px}.hand-heading{justify-content:space-between;align-items:center;margin-bottom:17px;display:flex}.hand-heading strong{font-size:18px}.hand-heading span{color:#8da5b5;font-size:11px}.hand-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.hand-card{background:#172631;flex-direction:column;align-items:center;gap:6px;padding:9px 3px;display:flex}.hand-card strong{font-size:12px;font-weight:500}.hand-card>span{color:#9ebac9;font-size:11px}.hand-card.no-placement>span{color:#d79f91}.hand-card.no-placement:not(.selected-tool){opacity:.6}.hand-panel .next-piece{margin:13px 0;padding:10px 0}.hand-panel .next-piece strong{font-size:13px}.hand-panel .next-piece .section-label{margin-bottom:3px;font-size:10px}.inline-check{color:#a8bfce;align-items:center;gap:7px;display:flex;font-size:12px!important}.inline-check input{accent-color:#75ceea;width:14px;height:14px;margin:0}.plan-status{border-top:1px solid var(--line);gap:4px;margin-top:12px;padding-top:10px;font-size:12px;display:grid}.plan-status p{color:#e6c396;margin-top:5px;font-size:12px}.match-screen .score-row{padding:12px 0}.match-screen .score-row:first-of-type{padding-top:0}.match-screen .score-name{font-size:14px}.match-screen .score-details{flex-wrap:wrap;font-size:11px;display:flex}.match-screen .score-value{font-size:21px}.match-screen .tank-item>div:first-child{gap:8px;font-size:12px}.match-screen .tank-item small{font-size:10px}.match-screen .tank-composition{gap:12px;font-size:11px}.match-screen .tank-progress{height:7px}.award-composition{color:#a8bca4;margin-top:6px;font-size:10px}.match-screen .active-score:before{left:-16px}.debug-panel{padding:13px 14px}.debug-panel summary{cursor:pointer;color:#adc4d1;font-size:13px}.debug-panel h3{margin:14px 0 8px}.debug-panel dl{margin:10px 0}.debug-panel dl>div{justify-content:space-between;gap:7px;margin:5px 0;font-size:12px;display:flex}.debug-panel dd{font:11px var(--mono);margin:0}.debug-panel dt{color:#98aebb}.debug-composition{flex-wrap:wrap;justify-content:space-between;gap:4px;margin:5px 0;font-size:11px;display:flex}.debug-balance{border-bottom:1px solid var(--line);gap:4px;padding:8px 0;font-size:10px;display:grid}.debug-panel p{margin-top:12px;font-size:12px}.quick-inspect{font:12px var(--mono);color:#b8d2df;padding:0 5px}.lead-diagnostic{background:#2c2b22;border-color:#615841}.lead-diagnostic strong{color:#e3cf96;font-size:13px}.lead-diagnostic p{color:#c5bba4;margin-top:8px;font-size:12px}.score-event{background:#163c3e;border:1px solid #39746e;border-radius:6px;flex-wrap:wrap;flex-shrink:0;gap:10px;margin-top:6px;padding:10px;font-size:13px;display:flex}.forecast-box{background:#1b2f3c;border:1px solid #426073;border-radius:5px;flex-shrink:0;margin-top:6px;padding:9px;font-size:12px;line-height:1.6}.results-overlay{z-index:20;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#061018bc;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.results-overlay .results-panel{border-color:#64a9bb;width:min(640px,100%);margin:0;padding:30px;box-shadow:0 25px 90px #0008}.results-overlay .results-panel h2{margin-bottom:25px;font-size:28px}.results-overlay .results-grid{gap:35px}.results-overlay .button-row{max-width:none}.match-screen>.alert,.match-screen>.notice,.match-screen>.rules-banner{flex-shrink:0;margin:0}.match-screen>.notice,.match-screen>.alert{padding:7px 12px;font-size:13px}.research-settings{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:22px 0;padding:16px 0}.research-settings>summary{color:#9fd7e9;cursor:pointer;list-style:revert;font-size:14px}.research-settings p{margin-top:14px;font-size:13px}.research-settings .settings-grid{margin:18px 0}.research-settings h3{margin:20px 0 12px;font-size:15px;font-weight:500}.research-checks{gap:12px;display:grid}.research-checks label{align-items:start;gap:9px;font-size:13px;display:flex}.research-checks input{accent-color:#76cde8;width:15px;height:15px;margin:3px 0 0}.bag-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.bag-fields label{font-size:12px}.bag-fields input{height:36px}.research-settings>details{margin:18px 0}.research-settings>details>summary{color:#a5bccb;margin-bottom:10px;font-size:13px}.research-settings .button-row{flex-wrap:wrap}.research-settings .button-row button{font-size:11px}.basic-settings{margin:20px 0 0}.setup-panel .research-settings+.start-button{margin-top:0}.setup-panel>label{margin-top:15px}.menu-intro h1{font-size:49px}.match-screen .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width:1200px){.game-workspace{grid-template-columns:225px minmax(0,1fr) 225px;gap:12px}.match-screen{padding:0 12px}.match-screen .board-toolbar{gap:7px}.match-screen .board-status,.match-screen .speed-label,.match-screen .toggle-label{font-size:11px}.match-screen .topbar{gap:15px}.match-screen .topbar nav button{padding:9px 10px}.hand-card strong{font-size:11px}.status-sidebar .compact{padding:12px}.status-sidebar .score-details,.match-screen .tank-composition{font-size:10px}}@media (max-width:920px) and (min-width:741px){.game-workspace{grid-template-columns:190px minmax(0,1fr) 190px;gap:10px}.match-summary{font-size:11px}.match-screen .brand small{display:none}.match-screen .topbar nav button{padding:7px;font-size:12px}.match-screen .compact{padding:12px}.hand-heading strong{font-size:15px}.hand-card svg{width:40px;height:40px}.hand-card strong,.hand-heading span{font-size:10px}.match-screen .button-row{flex-wrap:wrap}.match-screen .board-status{flex-basis:100%}.match-screen .score-details{display:grid}.match-screen .tank-item>div:first-child{flex-wrap:wrap}.match-screen .tank-composition{gap:6px}.match-summary{text-align:right;max-width:150px}}@media (max-width:740px){.match-screen{gap:7px;height:100dvh;padding:0 9px}.match-screen .topbar{flex-wrap:nowrap;gap:8px;height:49px;min-height:49px;padding:0}.match-screen .brand{font-size:16px}.match-screen .brand-mark{width:25px;height:25px;font-size:24px}.match-screen .brand small,.match-summary{display:none}.match-screen .topbar nav{gap:0}.match-screen .topbar nav button{padding:7px 5px;font-size:10px}.match-actions{gap:7px;min-height:28px}.match-actions .seed-tag{display:none}.match-actions button{padding:4px 6px;font-size:10px}.turn-label{max-width:170px;font-size:12px}.game-workspace{flex-direction:column;gap:7px;padding-bottom:6px;display:flex;overflow-y:auto}.play-center{flex-shrink:0;order:0;height:57dvh;min-height:380px}.play-sidebar{flex-direction:column;order:1;gap:8px;min-height:0;max-height:none;overflow:visible}.status-sidebar{order:2;gap:8px;min-height:0;max-height:none;overflow:visible}.play-sidebar>section,.status-sidebar>section{width:100%;min-width:0}.hand-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.hand-card{padding:7px 3px}.hand-card svg{width:42px;height:42px}.hand-panel .hand-heading,.hand-panel h3{margin-bottom:8px}.hand-card strong{font-size:11px}.hand-panel .next-piece{margin:8px 0;padding:7px 0}.hand-panel .next-piece .section-label{font-size:9px}.match-screen .board-toolbar{flex-wrap:nowrap;gap:8px;min-height:28px}.match-screen .board-status{white-space:normal;max-width:90px;font-size:10px;line-height:1.2}.match-screen .toggle-label{font-size:10px}.match-screen .speed-label{gap:0;font-size:0}.match-screen .speed-label select{width:61px;height:28px;font-size:10px}.play-center .coordinate-form label{width:56px;font-size:10px}.play-center .coordinate-form button{font-size:10px}.placement-feedback{min-height:19px;font-size:10px}.match-screen .compact{padding:12px}.score-event{padding:6px;font-size:11px}.results-overlay .results-panel{padding:20px}.results-overlay .results-panel h2{font-size:24px}.results-overlay .button-row{flex-wrap:wrap}.match-screen .debug-panel dl>div{font-size:13px}.match-screen .score-details{font-size:12px;display:flex}.basic-settings,.bag-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.research-settings .button-row{flex-direction:column;align-items:stretch}.menu-intro h1{font-size:40px}}.board-area{justify-content:flex-start;align-items:flex-start;display:flex;container-type:size}.board-area .board-frame{margin:auto}.move-history ol{gap:10px;margin:0;padding:0;font-size:12px;list-style:none;display:grid}.move-history small,.move-history li>span{color:var(--muted);font-size:11px}.move-history li>div{color:#b8cbd7}.board-legend{color:var(--muted);flex-wrap:wrap;flex-shrink:0;gap:4px 9px;padding:3px 0;font-size:11px;display:flex}.quick-inspect{line-height:1.7}.quick-inspect>div{font-size:11px}.control-inspect{color:#b5d8b1;margin:5px 0}.replay-viewer{z-index:30;background:var(--bg);outline:none;padding-top:14px;position:fixed;inset:0}.replay-controls .button-row{flex-wrap:wrap;max-width:800px;margin:0}.replay-controls label{align-items:center;gap:16px;margin-top:10px;display:flex}.replay-controls input[type=range]{height:22px;accent-color:var(--accent);flex:1;margin:0}.replay-controls p{margin-top:6px;font-size:12px}.replay-workspace{flex:1;grid-template-columns:minmax(0,1fr) 270px;gap:18px;min-height:0;padding-bottom:12px;display:grid}.results-overlay .results-panel{max-height:calc(100dvh - 40px);overflow:auto}.results-overlay .button-row{flex-wrap:wrap}.replay-workspace .score-row{align-items:center;gap:12px;display:flex}@media (max-width:740px){.replay-workspace{flex-direction:column;display:flex;overflow:auto}.replay-workspace .play-center{height:50dvh;min-height:300px}.replay-controls .button-row button{flex:auto;padding:5px;font-size:10px}.replay-viewer>.match-actions{flex-wrap:wrap}.replay-controls label{font-size:12px}.replay-workspace .coordinate-form{flex-wrap:wrap}}
