/* Scoped additions for the ten-character battlefield; classic and duel are unchanged. */
.ten-game{--hud:#102226f5;--ink:#e9eadc}.ten-game header{gap:12px}.ten-game .actions{flex-wrap:wrap;justify-content:flex-end}.ten-game aside{width:min(480px,calc(100vw - 24px));bottom:16px;max-height:calc(100dvh - 86px);padding:18px}.ten-game #roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ten-game .pick{margin:0;min-height:76px;min-width:0;padding:9px;gap:8px}.ten-game .pick small{font-size:11px;line-height:1.4}.ten-game .pick.active{box-shadow:inset 4px 0 #e7d28d}.ten-game .pick.active strong:after{content:' · Selected';font:10px 'DM Sans',sans-serif;color:#f2d893}.ten-game .portrait{flex-shrink:0}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-title button{padding:4px 12px;font-size:22px}.ten-game aside h2{margin-bottom:6px}.ten-game aside .guide{display:block}.ten-game .minion-link{display:inline-block;margin:5px 5px 12px 0}.ten-game .input-notice{font-size:12px;line-height:1.5;border-left:3px solid #c9b77c;padding-left:10px}.ten-game #network-panel:empty{display:none}.ten-game #network-panel{border-top:1px solid #bba77166;margin-top:16px;padding-top:12px}.ten-game #network-panel input,.ten-game #network-panel select{max-width:100%;background:#182e34;color:#f3f0df;border:1px solid #8b9e92;padding:10px;border-radius:5px}.ten-game #network-panel button{min-height:42px;margin:3px}.ten-game .bottom{justify-content:flex-start;padding-left:130px;padding-right:195px}.ten-game #champion{width:210px;flex-shrink:0}.ten-game #abilities{min-width:0}.ten-game .ability{width:70px}.ten-game .ability:focus-visible{outline:3px solid #fff2ac;outline-offset:2px}.ten-game #hint{max-width:calc(100% - 40px);white-space:normal;text-align:center}.ten-game #target{max-width:240px}.ten-game #render-stats{position:absolute;z-index:3;left:12px;top:12px;padding:7px 10px;background:#07151eef;border:1px solid #9eb8a9;font:11px monospace;pointer-events:none}.ten-game #phone-notice{display:none}.ten-game dialog{width:min(470px,calc(100vw - 24px));max-height:calc(100dvh - 30px);border:1px solid #bba771;border-radius:12px;background:#102226;color:#e9eadc;padding:22px;box-shadow:0 18px 80px #000a}.ten-game dialog::backdrop{background:#030d14b8}.ten-game dialog h2{margin:0}.ten-game dialog p{font-size:12px;line-height:1.6;color:#bdcfc4}.ten-game dialog label{display:block;margin:16px 0;font-size:14px}.ten-game dialog select{display:block;width:100%;margin-top:8px;padding:10px;background:#233a3e;color:#f1eddd;border:1px solid #95a48c;border-radius:6px;font:inherit}.ten-game dialog input[type=range]{display:block;width:100%;margin-top:12px;accent-color:#d6bf7c}.ten-game dialog .check{display:flex;gap:10px;align-items:center;min-height:30px}.ten-game dialog input[type=checkbox]{width:18px;height:18px;accent-color:#d6bf7c}.ten-game dialog output{float:right}.ten-game dialog details{margin:18px 0;font-size:13px}.ten-game dialog summary{cursor:pointer;padding:10px 0}.settings-done{float:right;background:#41634f}.ten-game.hud-contrast #champion,.ten-game.hud-contrast #abilities,.ten-game.hud-contrast #status,.ten-game.hud-contrast #hint,.ten-game.hud-contrast #target{background:#061017;color:#fff;border-color:#e9dbac}.ten-game.hud-contrast .ability small{color:#c0e7ff}.ten-game.hud-contrast .health i{background:#a5efbd}.ten-game.hud-contrast .mana i{background:#91d3ff}
@media(max-width:1100px){.ten-game .bottom{padding-left:0;padding-right:145px}.ten-game #champion{width:170px}.ten-game .ability{width:58px}.ten-game #minimap{width:130px;height:130px}.ten-game #shop{bottom:115px}.ten-game #score{display:none}.ten-game .brand small{display:none}}
@media(max-width:760px){.ten-game header{height:auto;min-height:84px;padding:8px 10px;align-content:center;flex-wrap:wrap;gap:6px}.ten-game .brand{gap:6px}.ten-game .crest{font-size:22px}.ten-game h1{font-size:16px}.ten-game .actions{gap:5px}.ten-game .actions button{font-size:11px;padding:8px;min-height:34px}.ten-game main{height:calc(100dvh - 84px)}.ten-game aside{top:92px;max-height:calc(100dvh - 104px);bottom:12px}.ten-game .bottom{padding:0;left:8px;right:8px;justify-content:center}.ten-game #champion{display:block;width:140px;padding:8px;font-size:10px}.ten-game #champion strong{font-size:13px}.ten-game .ability{width:clamp(43px,9vw,58px);height:78px;overflow:hidden;font-size:9px;padding:4px}.ten-game .ability b{font-size:13px}.ten-game #abilities{gap:4px;padding:5px}.ten-game #minimap{display:none}.ten-game #status{top:8px;right:8px;max-width:200px;font-size:10px;padding:6px}.ten-game #hint{top:50px;font-size:11px;padding:6px 10px}.ten-game #target{top:110px;left:8px;font-size:11px;min-width:0;max-width:190px}.ten-game #phone-notice{display:block;position:absolute;bottom:140px;left:8px;right:8px;z-index:2;margin:0;text-align:center;font-size:11px;background:#102226e8;padding:6px;pointer-events:none}.ten-game #shop{bottom:106px;left:8px;max-width:calc(100% - 16px);font-size:10px}.ten-game .map-title{display:none}}
@media(max-width:420px){.ten-game #champion{width:112px;font-size:9px}.ten-game #champion strong{font-size:11px}.ten-game .bottom{gap:4px}.ten-game #roster{grid-template-columns:1fr}.ten-game .pick{min-height:64px}.ten-game dialog{padding:16px}}
@media(max-height:520px){.ten-game aside{bottom:8px}.ten-game dialog{padding:12px}.ten-game dialog label{margin:10px 0}}
@media(prefers-reduced-motion:reduce){.ten-game *{scroll-behavior:auto;transition:none!important;animation:none!important}}
/* Let the actual wrapped header determine the remaining battlefield height. */
.ten-game{height:100vh;height:100dvh;display:flex;flex-direction:column}.ten-game header{flex-shrink:0}.ten-game main{position:relative;flex:1;min-height:0;height:auto}.ten-game aside{top:12px;bottom:12px;max-height:calc(100% - 24px)}.ten-game #shop{bottom:155px}
@media(max-width:760px){.ten-game aside{top:8px;bottom:8px;max-height:calc(100% - 16px)}.ten-game #shop{bottom:138px}.ten-game #phone-notice{bottom:178px}}

.ten-game button:disabled{opacity:.5;cursor:default}.ten-game #network-panel label{display:block;margin:12px 0;font-size:12px}.ten-game #network-panel label input{display:block;width:100%;margin-top:6px}.ten-game #network-slots{display:grid;grid-template-columns:1fr;gap:4px;margin:12px 0}.ten-game #network-slots button{text-align:left;margin:0;overflow-wrap:anywhere}.ten-game #network-panel small{display:block;line-height:1.6;color:#b8cabe}.ten-game #network-status{padding:8px;border-left:3px solid #c9b77c;line-height:1.6}
.ten-game aside{background:#102226}.ten-game aside>.panel-title{position:sticky;top:-18px;z-index:2;background:#102226;padding:8px 0}.ten-game #network-slots button:disabled{opacity:.8}

/* DOM result covers both canvas layers and their obsolete canvas-only instructions. */
.ten-game #battle-result{position:absolute;inset:0;z-index:6;display:grid;place-items:center;overflow:auto;background:#102226;padding:20px;text-align:center}.ten-game #battle-result[hidden]{display:none}.ten-game .battle-result-card{width:min(560px,100%);padding:28px 20px;border:1px solid #d5bd7a;border-radius:12px;background:#142d30;box-shadow:0 16px 60px #0008}.ten-game .battle-result-card small{font-size:10px;letter-spacing:2px;color:#e2c77c}.ten-game .battle-result-card h2{font-size:clamp(22px,4vw,34px);line-height:1.3;margin:16px 0}.ten-game .battle-result-card p{font-size:14px;line-height:1.7;color:#d4e0d5}.ten-game .result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}.ten-game .result-actions button{min-height:44px}.ten-game .result-actions button[hidden]{display:none}@media(max-height:400px){.ten-game #battle-result{padding:12px}.ten-game .battle-result-card{padding:14px}.ten-game .battle-result-card h2{margin:8px 0}.ten-game .result-actions{margin-top:10px}}
