.is-duel{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden}.is-duel footer{display:none}
.duel-client{height:calc(100dvh - 58px);padding:11px;display:grid;grid-template-columns:238px minmax(0,1fr) 294px;gap:11px;color:var(--text);--hand-height:clamp(210px,27dvh,312px);--hand-card-width:190px;--unit-height:clamp(124px,calc((100dvh - 720px)*.44),202px);--unit-width:calc(var(--unit-height)*.82);--slot-size:calc(max(var(--unit-height),var(--unit-width)) + 15px);--unit-label:0px}
.duel-client[data-card-size="small"]{--hand-card-width:165px;--unit-width:calc(var(--unit-height)*.71)}.duel-client[data-card-size="large"]{--hand-card-width:213px;--unit-width:calc(var(--unit-height)*.91)}
.client-sidebar{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:11px}.player-panel,.card-preview,.stack-panel,.shop-ledger,.history{border:1px solid var(--edge);border-radius:2px;background:var(--panel-dark);overflow:hidden}
.player-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:33px;padding:0 13px;border-bottom:1px solid #4e4b46;color:#dcd9d4;font-size:13px}.player-panel-heading b{font-weight:600}.player-panel-heading>span{color:#9c9994;font-size:12px}.active-player{border-color:#9d9a95}.active-player .player-panel-heading{background:#94918c22}.active-player .player-panel-heading>span{color:#bfbcb7}
.wizard-avatar{display:block;border:0;border-bottom:1px solid #4d4a45;background:#2b2823;width:100%;height:77px;padding:0;position:relative;overflow:hidden;text-align:left}.wizard-avatar>.card-illustration{position:absolute;left:0;top:0;bottom:0;width:105px;background:#c1beb9;opacity:.72}.wizard-avatar:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 20%,#2b2823 62%);pointer-events:none}.wizard-avatar .historical-print{filter:grayscale(1) contrast(1.4)}.life-total{position:absolute;right:17px;top:8px;z-index:1;font:40px/1 var(--card-font);color:#e0ddd8}.life-total small{display:block;text-align:center;font:12px var(--sans);color:#a6a39e;margin-top:4px;letter-spacing:.3px}.wizard-number{position:absolute;left:99px;top:28px;font:22px var(--card-font);color:#928f8a4a;z-index:1}.you .life-total{color:#d8d5d0}.you .wizard-avatar{background:#2f2c27}.you .wizard-avatar:after{background:linear-gradient(90deg,transparent 20%,#2f2c27 62%)}
.player-numbers{display:grid;grid-template-columns:repeat(3,1fr);padding:8px 10px;text-align:center;background:#26231e}.player-numbers span{display:block;border-left:1px solid #4b4843}.player-numbers span:first-child{border-left:0}.player-numbers b{font:20px var(--card-font);color:#dbd8d3;display:block}.player-numbers small{font-size:12px;color:#a6a39e}.player-numbers .player-gold b{color:#b9b6b1}.discard-button{width:100%;border:0;border-top:1px solid #47443f;background:#302d28;display:flex;align-items:center;gap:7px;padding:7px 12px;font-size:12px;text-align:left;color:#b3b0ab}.discard-button b{font-size:13px;color:#dddad5}.discard-button>span{margin-left:auto;font-size:12px;color:#95928d}.discard-button:hover{background:#43403b}.player-component-summary{display:block;padding:8px 10px;border-top:1px solid #515348;background:#2e302b}.player-component-summary>span{display:block;font-size:12px;color:#a5a899;margin-bottom:5px}.player-component-summary .inventory{justify-content:space-between;gap:5px}.player-component-summary .inventory-item{min-width:0;border:0;background:none;padding:0;display:grid;grid-template-columns:auto auto;gap:1px 4px}.player-component-summary .inventory-item small{grid-column:1 / -1;text-align:center;font-size:12px}.player-component-summary .resource-drawing{height:17px;width:17px}.player-component-summary .inventory-item b{font-size:14px}
.card-preview{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#73706b transparent}.card-preview .panel-title{min-height:35px}.shortcut-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:#999691}.shortcut-note>span{color:#5f5c57}
.duel-main{min-width:0;min-height:0;display:grid;grid-template-rows:39px minmax(0,1fr) 40px 77px 28px var(--hand-height);border:1px solid #5f5c57;border-radius:2px;overflow:hidden;background:#302d28;box-shadow:0 4px 13px #03000033}
.duel-toolbar{display:flex;align-items:center;gap:14px;padding:0 15px;border-bottom:1px solid #5e5b56;background:#2e2b26;font-size:13px}.duel-toolbar>span{display:flex;gap:15px;align-items:center}.duel-toolbar b{font-weight:600;color:#dfdcd7}.duel-toolbar small{font-size:12px;color:#9b9893}.card-size-control{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:12px;color:#a8a5a0}.card-size-control select{font:12px var(--sans);background:#27241f;color:#dad7d2;border:1px solid #696661;border-radius:2px;padding:3px 6px;min-width:78px}.duel-toolbar>button{border:1px solid #6c6964;border-radius:2px;background:#36332e;font-size:12px;color:#bfbcb7;min-width:25px;height:25px;padding:1px 5px}.duel-toolbar>.mobile-log{display:none}
.battlefield{position:relative;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 24px minmax(0,1fr);overflow:hidden;background:#3e3b36}
.field-half{min-height:0;display:grid;grid-template-rows:28px minmax(0,1fr);position:relative;background:#46433e}.opponent-field{background:#c6c5b9}.your-field{background:#d6d3c5}.field-half:before{display:none}
.zone-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 15px;border-bottom:1px solid #74766b26;color:#494b43;font:12px var(--sans);letter-spacing:0}.zone-caption>span:last-child{font-size:12px;letter-spacing:0;color:#66695b}.opponent-hand{display:flex;align-items:center;gap:9px}.opponent-hand>div{display:flex;gap:3px}.opponent-hand>small{font:12px var(--sans);color:#575b50;letter-spacing:0}.card-back{display:block;width:11px;height:16px;border:1px solid #928f8a;border-radius:2px;background:#36332e;box-shadow:0 1px 2px #03000055}.card-back svg{width:7px;height:10px;margin:2px 1px;color:#9f9c97}
.battle-row{min-height:0;display:flex;align-items:center;gap:10px;padding:9px 13px;overflow-x:auto;overflow-y:hidden;position:relative;z-index:2;scrollbar-width:thin;scrollbar-color:#888580 #3f3c37}
.unit-slot{height:calc(max(var(--unit-width),var(--unit-height)) + var(--unit-label));width:var(--slot-size);flex:0 0 var(--slot-size);position:relative;display:flex;align-items:flex-start;justify-content:center;padding:0 0 var(--unit-label)}
.unit.game-card{--card-width:var(--unit-width);width:var(--unit-width);height:var(--unit-height);min-height:0;padding:5px;align-self:center;position:relative;z-index:2;transform-origin:center center;box-shadow:1px 3px 4px #0005}
.unit .card-heading{min-height:23px;padding:0 0 5px}.unit .card-heading>b{font-size:13px;font-weight:600}.unit .card-cost,.unit .card-type,.unit .card-description,.unit .card-foot>small{display:none}.unit.game-card>.card-illustration{min-height:20px;height:0;flex:1;margin:0}.unit .card-foot{min-height:29px;padding:3px 1px 0}.unit .stats{font-size:27px;gap:4px}.unit .stats i{font-size:18px}.unit-status{position:absolute;bottom:0;left:-3px;right:-3px;text-align:center;font:12px var(--sans);color:#575a4e;line-height:19px;white-space:nowrap}.new-unit{color:#747467}.unit.exhausted{transform:rotate(90deg)}.unit.exhausted .card-illustration{opacity:.86}.unit.attacker{outline:2px solid #a75637;outline-offset:3px}.unit.assigned{outline:2px solid #4d6f80;outline-offset:3px}.unit.block-target{outline:2px dashed #d8d5d0;outline-offset:5px}.is-attacker .unit-status{color:#8a3d25}.is-blocker .unit-status{color:#3b5865}
.damage-chip,.ward-chip{position:absolute;right:5px;top:34px;background:#4e4b46;color:#f0ede8;border:1px solid #9d9a95;border-radius:2px;padding:2px 4px;font:12px var(--sans);z-index:3}.ward-chip{top:auto;bottom:37px;background:#56534e;border-color:#9b9893;color:#ece9e4}.unit.exhausted .damage-chip,.unit.exhausted .ward-chip{transform:rotate(-90deg)}
.empty-field{margin:auto;max-width:300px;text-align:center;color:#5c5e52;font:13px var(--sans);opacity:.55}.empty-field small{display:none}.opponent-field .empty-field{font-size:13px;opacity:.45}
.combat-divider{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;border-top:1px solid #898b7c;border-bottom:1px solid #898b7c;background:#b3b5a7;font:12px var(--sans);letter-spacing:0;color:#4d5245;z-index:1}.combat-divider span{background:inherit;padding:0 13px}.in-combat .combat-divider{background:#bca18c;border-color:#936b4f;color:#633b25}.combat-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}.combat-connections path.attack-link,.combat-connections path.block-link{fill:none;stroke:#aeaba6;stroke-width:2.2;opacity:.85}.combat-connections path.block-link{stroke-width:2.5}.combat-connections circle{fill:#2e2b26;stroke:#aeaba6;stroke-width:1.5}.combat-connections text{font:12px var(--sans);fill:#e0ddd8;text-anchor:middle}
.component-zone{display:flex;align-items:center;gap:17px;padding:0 13px;background:#23201b35;border-top:1px solid #95928d35;z-index:1}.component-zone>span{font-size:12px;color:#a6a39e;min-width:68px}.inventory{display:flex;align-items:center;gap:10px}.inventory-item{display:inline-flex;align-items:center;gap:4px;min-width:67px;padding:3px 7px;border:1px solid #adaaa527;border-radius:2px;background:#dfdcd708;color:#d2cfca}.inventory-item>.resource-drawing{width:18px;height:18px;color:#bebbb6}.inventory-item b{font-size:15px;font-weight:600;color:#e3e0db}.inventory-item small{font-size:12px;color:#b8b5b0}.inventory-item.depleted{opacity:.45}.inline-shop{font:12px var(--sans);background:#bcb9b40e;border:1px solid #8b888388;border-radius:2px;color:#d4d1cc;padding:4px 10px;margin-left:auto;white-space:nowrap}.inline-shop:hover{background:#8d8a8533}
.phase-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 15px;border-top:1px solid #6d6a65;border-bottom:1px solid #514e49;background:#2a2722}.turn-label{font:12px var(--sans);color:#adaaa5;white-space:nowrap}.turn-label b{font:20px var(--card-font);margin-left:4px;color:#dbd8d3}.phase-steps{display:flex;align-items:center;gap:6px}.phase-steps>span{font:12px var(--sans);color:#a19e99;padding:5px 12px;border:1px solid transparent;border-radius:2px;white-space:nowrap}.phase-steps i{font:12px var(--sans);font-style:normal;color:#7f7c77;margin-right:5px}.phase-steps>span.active{border-color:#9f9c979c;background:#9d9a951a;color:#dad7d2}.phase-steps>span.active i{color:#a3a09b}.priority-mark{font:12px var(--sans);color:#a8a5a0;white-space:nowrap;display:flex;align-items:center;gap:6px}.priority-mark:before{content:'';height:5px;width:5px;border-radius:50%;background:#918e89}.priority-mark.yours{color:#c8c5c0}.priority-mark.yours:before{background:#b7b4af}
.command-bar{display:flex;align-items:center;gap:13px;padding:9px 15px;background:#26231e;border-bottom:1px solid #64615c;min-height:0}.command-indicator{width:4px;height:34px;border-radius:2px;background:#77746f;flex-shrink:0}.has-priority .command-indicator{background:#b5b2ad}.choosing-target .command-indicator{background:#ccc9c4;box-shadow:0 0 10px #c9c6c122}.command-copy{min-width:0;flex:1}.command-copy strong{display:block;font:600 16px/1.2 var(--sans);color:#ece9e4}.command-copy p{font:12px/1.35 var(--sans);color:#afaca7;margin:5px 0 0}.command-buttons{display:flex;align-items:center;gap:9px;flex-shrink:0}.command-buttons .primary-button{min-width:124px}.command-buttons .quiet-button{font-size:12px}.command-buttons .outline-button{font-size:12px;padding:8px 13px}.inspect-action,.mobile-shop-button{display:none}
.hand-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 16px;background:#2e2b26;color:#bcb9b4}.hand-heading>span{font:12px var(--sans);font-weight:600;white-space:nowrap}.hand-heading b{font:12px var(--sans);border:1px solid #86837e4d;border-radius:2px;padding:0 5px;margin-left:5px;color:#d7d4cf}.hand-heading small{font:12px var(--sans);color:#999691}
.player-hand{display:flex;align-items:flex-start;gap:15px;padding:10px 15px 14px;overflow-x:auto;overflow-y:hidden;background:#282520;min-height:0;scrollbar-width:thin;scrollbar-color:#898681 #312e29}.player-hand .game-card{--card-width:var(--hand-card-width);height:calc(var(--hand-height) - 25px);min-height:0;padding:7px}.player-hand .game-card>.card-illustration{height:0;min-height:40px;flex:1}.player-hand .card-description{min-height:50px;flex:none;font-size:15px;padding-top:8px}.player-hand .familiar-card .card-description{font-size:12px}.player-hand .card-foot{min-height:32px}.player-hand .card-heading>b{font-size:18px}.player-hand .card-type{font-size:12px}.player-hand .card-foot small{font-size:12px}.player-hand .stats{font-size:30px}.player-hand .game-card.playable:hover{outline-color:#d6d3ce}.empty-hand{margin:auto;font:italic 20px var(--card-font);color:#9f9c97}
.client-tools{display:grid;grid-template-rows:auto auto minmax(0,1fr) 23px;min-height:0;gap:11px}.stack-panel{min-height:94px;max-height:235px;overflow:auto;scrollbar-width:thin;scrollbar-color:#817e79 transparent}.stack-panel>p{font-size:12px;color:#a9a6a1;margin:9px 13px 4px}.empty-stack{display:flex;align-items:center;gap:11px;padding:14px;color:#93908b;font-size:12px}.empty-stack>span{font:24px var(--card-font);color:#76736e}.stack-item{display:flex;align-items:center;gap:10px;padding:8px;margin:7px;width:calc(100% - 14px);border:1px solid #726f6a;border-radius:2px;text-align:left;background:#3c3934;color:#e3e0db}.stack-item>.card-illustration{height:53px;width:59px;flex-shrink:0;background:#d4d1cc;border-radius:2px}.stack-item>span{min-width:0}.stack-item small{display:block;font-size:12px;letter-spacing:.8px;color:#b9b6b1;margin-bottom:4px}.stack-item b{font:16px/1.1 var(--card-font);font-weight:400;display:block}.stack-item em{display:block;font:12px/1.4 var(--sans);font-style:normal;color:#a9a6a1;margin-top:5px}.stack-item:first-of-type{border-color:#aba8a3}
.ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-bottom:1px solid #97917d;background:#dbd4bf}.ledger-heading .eyebrow{font-size:12px;color:#9c9994;letter-spacing:1.3px}.ledger-heading h2{font:21px/1.1 var(--card-font);font-weight:400;color:#34382d;margin:0}.shop-rate{font:14px var(--sans);color:#46493b;text-align:right;white-space:nowrap}.shop-rate i{font:italic 17px var(--card-font)}.shop-rate small{display:block;font:12px var(--sans);color:#777762;margin-top:2px}.shop-item{display:flex;align-items:center;gap:11px;width:100%;padding:13px;min-height:52px;border:0;border-bottom:1px solid #8d8b7544;background:#e4decb;text-align:left;color:#30392b}.shop-item:hover:not(:disabled){background:#f0e8d2}.shop-item.needed-resource:not(:disabled){background:#eedcbb;border-left:3px solid #9f5a37;padding-left:10px}.shop-item:disabled{opacity:.42}.resource-image{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:27px;height:27px;background:none;border:0;color:#6b654a}.resource-image svg{height:23px;width:23px}.resource-name>b{font:14px var(--sans);font-weight:500;display:block}.resource-name>small{font:12px var(--sans);display:block;margin-top:3px;color:#875a3c}.shop-price{display:flex;align-items:center;gap:7px;margin-left:auto;font:12px var(--sans);color:#6b705c;white-space:nowrap}.shop-price b{font-weight:600;font-size:12px;color:#424936}.shop-stock{display:flex;justify-content:space-between;gap:10px;padding:11px 13px;font-size:12px;color:#71735f;border-top:1px solid #8c8c7055}.shop-stock b{font-weight:600;color:#424936}.ledger-note{font:12px/1.4 var(--sans);color:#70735f;margin:0;padding:0 13px 12px}.empty-shelf{padding:15px;color:#8e8b86;font-size:13px}
.history{display:flex;flex-direction:column;min-height:0;background:#27241f}.history .panel-title{background:#312e29}.log-entries{overflow:auto;min-height:0;padding:12px 13px;scrollbar-width:thin;scrollbar-color:#787570 transparent}.log-turn{margin-bottom:15px}.log-turn>span{display:block;font:12px var(--sans);letter-spacing:1px;color:#86837e;border-bottom:1px solid #4d4a4544;padding-bottom:6px;margin-bottom:7px}.log-turn ol{list-style:none;padding:0;margin:0}.log-turn li{font:12px/1.55 var(--sans);color:#b4b1ac;padding:0 0 6px}.log-turn li.spell{color:#c9c6c1}.log-turn li.death,.log-turn li.damage{color:#adaaa5}.log-turn li.combat{color:#bab7b2}.client-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;font:12px var(--sans);color:#7e7b76;padding:0 3px}.client-foot button{font:12px var(--sans);color:#aba8a3;border:0;background:none;padding:0}.client-foot button:hover{color:#c5c2bd}.mobile-stack{display:none}
.duel-result{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:350px;max-width:90%;padding:28px 30px;border:1px solid #9b9893;border-radius:2px;background:#27241ff5;box-shadow:0 12px 60px #03000099;text-align:center;z-index:8}.duel-result h2{font:47px var(--card-font);font-weight:400;color:#d6d3ce;margin:12px 0}.duel-result p{font-size:13px;color:#b0ada8;margin:0 0 20px}.duel-result>div{display:flex;justify-content:space-between;border-top:1px solid #5d5a55;border-bottom:1px solid #5d5a55;padding:13px 0;font-size:12px;color:#989590;margin-bottom:22px}.duel-result b{color:#d5d2cd;margin-left:7px;font-weight:500}.duel-result>.primary-button{display:flex;width:100%;margin-bottom:9px}.duel-result>.quiet-button{font-size:12px}.legal-target{outline:2px solid #c8c5c0!important;outline-offset:4px;box-shadow:0 0 0 6px #c1beb924!important;cursor:crosshair!important}

.player-panel,.card-preview,.stack-panel,.shop-ledger,.history,.duel-main{border-radius:0;box-shadow:none}
.client-sidebar{gap:9px}.player-panel{border-color:#616358}.player-panel-heading{background:#333630;border-bottom-color:#53564a}.active-player{border-color:#b3a27d}.active-player .player-panel-heading{background:#46483b}
.wizard-avatar,.you .wizard-avatar{background:#292c27;height:54px}.wizard-avatar:after,.you .wizard-avatar:after{display:none}.life-total{left:13px;right:auto;top:5px;font:39px/1 var(--card-font);color:#e5dfcd;display:flex;align-items:baseline;gap:9px}.life-total small{font:12px var(--sans);color:#999f8f}.wizard-number{left:auto;right:15px;top:15px;color:#696e5d;font:25px var(--card-font)}
.player-numbers{background:#30332c}.discard-button{background:#34372f}.card-preview{border:0;background:none}.card-preview .panel-title{background:none;border-bottom:1px solid #53564c;padding:0 2px;font-size:12px;font-weight:400;color:#a1a493}.card-preview .panel-title small{font-size:12px}.card-preview .preview-paper{margin:12px 1px 0}.requirements{margin:14px 3px 0}.requirements>div{color:#bec2ae}.requirements .missing{color:#d89974}
.duel-toolbar{background:#33372f;border-color:#606357}.duel-toolbar b{font-weight:500}.duel-toolbar small{color:#979d8b}.duel-main{border-color:#66695b;background:#30352d}.battlefield{background:#bbbfb0}.field-half{background:#d1cfc1}.opponent-field{background:#c5c6b9}.your-field{background:#d5d2c4}.battle-row{scrollbar-color:#8c907d transparent}
.card-back{background:#485144;border-color:#767d67}.card-back svg{color:#aeb296}.phase-bar{background:#33392f;border-color:#71745f}.phase-steps>span.active{background:#d8d0b5;color:#33382c;border-color:#a6a18b}.phase-steps>span.active i{color:#696b58}.phase-steps>span{border-radius:1px;color:#969e89}.priority-mark.yours{color:#dbcfac}.priority-mark.yours:before{background:#d9c99c}
.command-bar{background:#272d25;border-color:#63694f}.command-copy strong{font-weight:500}.command-copy p{color:#a2ad94}.command-indicator{display:none}.has-priority .command-copy strong{color:#eee5cf}.hand-heading{background:#343c2e;color:#bfc8ae}.hand-heading small{color:#8e9e7b}.hand-heading b{border:0}.player-hand{background:#30382b;border-top:1px solid #5d6651}
.shop-ledger{background:#ded8c3;color:#30382a;border-color:#989680}.ledger-heading>div>small{font-size:12px;color:#777861;display:block;margin-top:5px}.stack-panel{min-height:72px}.stack-panel .panel-title,.history .panel-title{background:#33392e;border-color:#535c46;font-size:12px;font-weight:500}.empty-stack{font-size:12px;padding:10px 13px;color:#8e9b7d}.history{background:#222a20}.log-turn li{font-size:12px;color:#aebc9b;line-height:1.45}.log-turn>span{letter-spacing:0;color:#82916e;font-size:12px}.log-turn li.damage,.log-turn li.death{color:#d29a78}.log-turn li.combat{color:#c7b18b}.client-tools{gap:9px}.client-foot{color:#83936e}.client-foot button{color:#adba98}
.damage-chip{background:#963e2c;color:#fff1dc;border-color:#d69976}.ward-chip{background:#4f6d53;color:#edf1d6;border-color:#9db19a}.stats .injured{color:#a1412d}
.player-hand{background:#2d2e28;border-color:#686b5b}.hand-heading{background:#373a31}.history{background:#272b24}.stack-panel .panel-title,.history .panel-title{background:#35382f}.client-tools .log-turn li.spell{color:#c3c8b5}
.combat-connections path.attack-link,.combat-connections path.block-link{stroke:#9d4d2e;opacity:.9;stroke-width:2}.combat-connections circle{fill:#e8dec4;stroke:#9d4d2e}.combat-connections text{fill:#653b25}

@media(max-width:1450px) and (min-width:761px){.duel-client{grid-template-columns:210px minmax(0,1fr) 257px;gap:9px;padding:9px}.inventory-item{min-width:55px;padding:3px 5px}.inventory-item small{font-size:12px}.inventory{gap:6px}.component-zone{gap:10px}.component-zone>span{min-width:60px}.ledger-heading h2{font-size:21px}.resource-name>b{font-size:13px}.shop-price{gap:4px}.command-copy strong{font-size:15px}.command-copy p{font-size:12px}.command-buttons{gap:7px}.command-buttons .primary-button{font-size:13px;min-width:108px;padding:8px 12px}.command-buttons .outline-button{font-size:12px;padding:8px 10px}.command-buttons .quiet-button{font-size:12px}.duel-toolbar{padding:0 12px}.duel-toolbar small{display:none}.phase-steps>span{padding:5px 8px;font-size:12px}.phase-steps i{display:none}.priority-mark{font-size:12px}.preview-paper>.card-illustration{height:160px}.inspection-title h3{font-size:21px}}
@media(max-height:960px) and (min-width:761px){.duel-client{--hand-height:clamp(190px,24dvh,225px);--hand-card-width:155px;--unit-height:clamp(101px,calc((100dvh - 520px)*.34),138px);--unit-width:calc(var(--unit-height)*.88);--unit-label:0px}.duel-client[data-card-size="small"]{--hand-card-width:140px;--unit-width:calc(var(--unit-height)*.76)}.duel-client[data-card-size="large"]{--hand-card-width:170px;--unit-width:calc(var(--unit-height)*.97)}.duel-main{grid-template-rows:34px minmax(0,1fr) 34px 64px 25px var(--hand-height)}.field-half{grid-template-rows:25px minmax(0,1fr)}.field-half:before{bottom:0}.component-zone{display:none}.player-component-summary{display:block;padding:6px;border-top:1px solid #4b4843;background:#2a2722}.player-component-summary .inventory{justify-content:space-between;gap:4px}.player-component-summary .inventory-item{border:0;padding:0;min-width:0;background:none;gap:3px}.player-component-summary .inventory-item small{display:none}.player-component-summary .resource-drawing{width:16px;height:16px}.player-component-summary .inventory-item b{font-size:12px}.wizard-avatar{height:53px}.life-total{font-size:32px;top:3px;right:15px}.life-total small{font-size:12px;margin-top:2px}.player-panel-heading{min-height:27px;font-size:12px}.player-panel-heading>span{font-size:12px}.player-numbers{padding:6px 8px}.player-numbers b{font-size:17px}.player-numbers small{font-size:12px}.discard-button{padding:5px 10px;font-size:12px}.discard-button span{font-size:12px}.card-preview .preview-paper{margin:9px;padding:7px}.preview-paper>.card-illustration{height:100px}.inspection-title h3{font-size:18px;margin-bottom:9px}.preview-paper>p{font-size:14px;margin:9px 0}.inspection-type{font-size:12px;padding-bottom:5px}.inspection-stats b{font-size:23px}.requirements{margin:8px 11px 0;padding-top:8px}.requirements>div{font-size:12px;padding:2px 0}.requirements>span{font-size:12px}.preview-help{font-size:12px;margin:10px 0;padding:0 11px}.client-sidebar{gap:8px}.client-tools{gap:8px}.stack-panel{min-height:80px;max-height:165px}.panel-title{min-height:31px;font-size:12px}.empty-stack{padding:10px 13px;font-size:12px}.empty-stack>span{font-size:20px}.ledger-heading{padding:10px 12px}.ledger-heading h2{font-size:20px}.shop-item{min-height:43px;padding:7px 11px;gap:8px}.resource-image{width:26px;height:26px}.resource-image svg{width:20px;height:20px}.resource-name>b{font-size:12px}.resource-name>small{font-size:12px;margin-top:2px}.shop-stock{padding:8px 11px;font-size:12px}.ledger-note{font-size:12px;padding:0 11px 9px}.shop-rate{font-size:20px}.ledger-heading .eyebrow{font-size:12px}.log-entries{padding:9px 11px}.log-turn li{font-size:12px;padding-bottom:5px}.command-bar{padding:7px 12px;gap:10px}.command-copy strong{font-size:14px}.command-copy p{font-size:12px;margin-top:3px}.command-indicator{height:29px}.command-buttons{gap:7px}.command-buttons .primary-button{font-size:12px;min-height:33px;padding:7px 10px;min-width:99px}.command-buttons .outline-button{font-size:12px;padding:7px 10px;min-height:33px}.command-buttons .quiet-button{font-size:12px}.player-hand{padding:8px 12px 12px;gap:12px}.player-hand .game-card{height:calc(var(--hand-height) - 22px);padding:5px}.player-hand .card-heading{min-height:25px;padding-bottom:5px}.player-hand .card-heading>b{font-size:15px}.player-hand .card-type{font-size:12px;padding:4px 1px}.player-hand .card-description{min-height:38px;font-size:13px;padding:7px 1px 4px}.player-hand .familiar-card .card-description{font-size:12px}.player-hand .card-foot{min-height:25px}.player-hand .stats{font-size:25px}.player-hand .card-foot small{font-size:12px}.unit .card-heading{min-height:20px;padding-bottom:3px}.unit .card-heading>b{font-size:12px}.unit .card-foot{min-height:23px}.unit .stats{font-size:23px}.unit-status{font-size:12px;line-height:17px}.battle-row{padding:6px 10px}.shortcut-note{font-size:12px;gap:4px}}
@media(max-height:790px) and (min-width:761px){.topbar{height:50px}.duel-client{height:calc(100dvh - 50px);padding:8px;gap:8px;--hand-height:208px;--hand-card-width:140px;--unit-height:84px;--unit-width:85px;--unit-label:0px;--slot-size:108px}.duel-client[data-card-size="small"]{--hand-card-width:128px;--unit-width:75px}.duel-client[data-card-size="large"]{--hand-card-width:150px;--unit-width:89px}.battle-row{padding:4px 10px}.duel-main{grid-template-rows:31px minmax(0,1fr) 32px 59px 23px var(--hand-height)}.unit.game-card{padding:3px;border-width:2px}.unit .card-heading{min-height:17px;padding-bottom:2px}.unit .card-heading>b{font-size:12px}.unit .card-foot{min-height:21px}.unit .stats{font-size:20px}.unit-status{font-size:12px;line-height:15px}.zone-caption{font-size:12px;height:23px;min-height:0}.field-half{grid-template-rows:23px minmax(0,1fr)}.player-component-summary{padding:4px 6px}.player-component-summary>span{display:none}.player-panel-heading{min-height:25px;font-size:12px}.wizard-avatar{height:43px}.life-total{font-size:28px;top:2px}.life-total small{font-size:12px}.player-numbers{padding:4px 6px}.player-numbers b{font-size:15px}.player-numbers small{font-size:12px}.discard-button{padding:4px 10px}.card-preview .panel-title{min-height:28px;font-size:12px}.preview-paper>.card-illustration{height:74px}.preview-paper>p{font-size:13px;margin:7px 0}.preview-help{display:none}.requirements>div{font-size:12px}.requirements>span{font-size:12px}.requirements svg{width:14px;height:14px}.inspection-title h3{font-size:16px}.inspection-stats b{font-size:21px}.inspection-stats{font-size:12px}.player-hand .game-card{height:calc(var(--hand-height) - 20px)}.player-hand .card-heading{min-height:23px}.player-hand .card-heading>b{font-size:14px}.player-hand .card-type{font-size:12px;padding:3px 1px}.player-hand .card-description{font-size:12px;min-height:34px;padding:5px 1px 3px}.player-hand .card-foot{min-height:23px}.player-hand .stats{font-size:23px}.player-hand .card-foot small{font-size:12px}.cost-symbol>.resource-drawing{width:13px;height:16px}.command-copy p{font-size:12px}.command-copy strong{font-size:13px}.command-buttons .primary-button{font-size:12px;min-width:92px}.command-buttons .outline-button{font-size:12px;padding:7px 9px}.phase-steps>span{font-size:12px;padding:4px 8px}.turn-label{font-size:12px}.turn-label b{font-size:17px}.priority-mark{font-size:12px}.hand-heading small{font-size:12px}.hand-heading>span{font-size:12px}}
@media(max-width:1050px) and (min-width:761px){.duel-client{grid-template-columns:179px minmax(0,1fr) 219px;gap:7px;padding:7px}.brand{min-width:150px}.topbar{gap:12px}.brand>span:last-child{font-size:24px}.brand-emblem{width:24px;height:24px}.topbar nav button{font-size:12px;padding:0 11px}.header-tools{gap:11px}.practice-label{display:none}.new-duel-button{font-size:12px;padding:6px 10px}.preview-paper{margin:8px;padding:6px}.inspection-title h3{font-size:18px}.inventory-item small{display:none}.component-zone>span{min-width:0;font-size:12px}.component-zone{gap:8px}.inventory-item{min-width:35px}.inventory{gap:7px}.resource-name>b{font-size:12px}.resource-name>small{font-size:12px}.shop-price{font-size:0}.shop-price b{font-size:12px}.ledger-heading h2{font-size:19px}.shop-rate{font-size:20px}.log-turn li{font-size:12px}.duel-toolbar{padding:0 10px;gap:9px;font-size:12px}.card-size-control{font-size:12px}.card-size-control select{min-width:65px;font-size:12px}.command-buttons .quiet-button{font-size:12px}.command-buttons{gap:6px}.command-copy p{font-size:12px}.command-buttons .outline-button{padding:6px 8px;font-size:12px}.command-buttons .primary-button{min-width:85px;font-size:12px;padding:7px 9px}.command-indicator{display:none}.phase-bar{gap:9px;padding:0 10px}.phase-steps{gap:0}.phase-steps>span{padding:4px 7px;font-size:12px}.priority-mark:before{display:none}.priority-mark{font-size:12px}.hand-heading small{display:none}}
@media(max-width:760px){.player-component-summary{display:block;padding:5px 8px}.player-component-summary>span{display:none}.player-component-summary .inventory-item{display:flex;gap:3px}.player-component-summary .inventory-item small{display:none}.player-component-summary .inventory-item b{font-size:12px}.player-component-summary .resource-drawing{width:15px;height:15px}.card-preview .preview-paper{margin:10px 1px}
 .is-duel{position:static;inset:auto;height:auto;overflow:auto}.duel-client{display:block;height:auto;padding:7px 7px 126px;--hand-height:264px;--hand-card-width:173px;--unit-height:119px;--unit-width:96px;--unit-label:0px;--slot-size:127px}.duel-client[data-card-size="small"]{--hand-card-width:150px;--unit-width:85px}.duel-client[data-card-size="large"]{--hand-card-width:193px;--unit-width:108px}.client-sidebar{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:7px;margin-bottom:7px}.card-preview,.shortcut-note{display:none}.player-panel-heading{padding:0 9px;min-height:29px;font-size:12px}.player-panel-heading>span{font-size:12px}.wizard-avatar{height:51px}.wizard-avatar>.card-illustration{width:75px}.life-total{font-size:30px;top:3px;right:13px}.life-total small{font-size:12px;margin-top:2px}.wizard-number{left:70px;font-size:17px;top:17px}.player-numbers{padding:6px 5px}.player-numbers b{font-size:16px}.player-numbers small{font-size:12px}.discard-button{font-size:12px;padding:5px 8px}.discard-button>span{font-size:12px}.discard-button b{font-size:12px}
 .duel-main{display:flex;flex-direction:column;overflow:visible}.duel-toolbar{height:35px;min-height:35px;padding:0 9px;gap:8px;font-size:12px}.duel-toolbar>span{gap:0}.duel-toolbar small{display:none}.duel-toolbar>.mobile-log{display:block;font-size:12px;min-width:0;padding:2px 6px}.duel-toolbar>button{height:23px;min-width:23px;font-size:12px}.card-size-control{font-size:12px;gap:4px}.card-size-control select{font-size:12px;min-width:60px;padding:2px 3px}
 .battlefield{height:439px;min-height:439px;flex:none;grid-template-rows:minmax(0,1fr) 23px minmax(0,1fr)}.field-half{grid-template-rows:24px minmax(0,1fr)}.field-half:before{inset:24px 0 32px}.zone-caption{font-size:12px;letter-spacing:.6px;padding:0 9px;gap:6px}.zone-caption>span:last-child{font-size:12px}.opponent-hand{gap:5px}.opponent-hand>small{font-size:12px}.card-back{height:13px;width:9px}.card-back svg{height:8px;width:5px;margin:1px}.opponent-hand>div{gap:2px}.battle-row{padding:5px 9px;gap:4px}.unit.game-card{padding:4px;border-width:2px}.unit .card-heading{min-height:20px;padding-bottom:4px}.unit .card-heading>b{font-size:12px}.unit .card-foot{min-height:25px}.unit .stats{font-size:23px}.unit-status{font-size:12px;line-height:18px}.damage-chip,.ward-chip{font-size:12px;right:3px;top:26px;padding:1px 3px}.ward-chip{top:auto;bottom:31px}.empty-field{font-size:17px}.opponent-field .empty-field{font-size:15px}.empty-field small{font-size:12px}.component-zone{padding:0 8px;gap:9px}.component-zone>span{font-size:12px;min-width:48px}.inventory{gap:10px}.inventory-item{padding:0;border:0;background:none;min-width:0;gap:3px}.inventory-item>.resource-drawing{width:17px;height:17px}.inventory-item b{font-size:13px}.inventory-item small{display:none}.inline-shop{display:none}.combat-divider{font-size:12px;letter-spacing:1.5px}
 .phase-bar{height:36px;min-height:36px;padding:0 9px;gap:6px;flex:none}.turn-label{font-size:12px}.turn-label b{font-size:16px;margin-left:2px}.phase-steps{gap:0}.phase-steps>span{font-size:12px;padding:4px 6px}.phase-steps i{display:none}.priority-mark{font-size:12px;white-space:normal;max-width:62px;text-align:right;line-height:1.25}.priority-mark:before{display:none}
 .command-bar{position:fixed;left:8px;right:8px;bottom:8px;z-index:35;border:1px solid #928f8a;border-radius:2px;box-shadow:0 5px 22px #03000088;background:#292621;min-height:83px;max-height:170px;padding:11px;gap:9px;align-items:center}.command-indicator{height:34px;width:3px}.command-copy strong{font-size:13px;line-height:1.2}.command-copy p{font-size:12px;line-height:1.4;margin-top:5px}.command-buttons{max-width:160px;justify-content:flex-end;flex-wrap:wrap;gap:5px}.command-buttons .primary-button{font-size:12px;padding:7px 10px;min-height:32px;min-width:0}.command-buttons .primary-button kbd{display:none}.command-buttons .outline-button{font-size:12px;padding:6px 8px;min-height:29px}.command-buttons .quiet-button{font-size:12px;padding:1px 3px}.command-buttons .quiet-button[data-action="unselect"]{font-size:0;padding:0 4px}.command-buttons .quiet-button[data-action="unselect"]:after{content:'×';font:20px var(--sans);line-height:22px}.inspect-action{display:block}.mobile-shop-button{display:block;border:0;background:none;color:#cecbc6;font-size:12px;padding:4px}.command-bar:has([data-action="cast"]) .mobile-shop-button,.command-bar:has([data-action="commit-attack"]) .mobile-shop-button{display:none}
 .hand-heading{height:31px;min-height:31px;padding:0 10px;gap:10px}.hand-heading>span{font-size:12px}.hand-heading small{font-size:12px;text-align:right;line-height:1.3;max-width:190px}.player-hand{height:var(--hand-height);flex:none;padding:10px 10px 15px;gap:12px}.player-hand .game-card{--card-width:var(--hand-card-width);height:calc(var(--hand-height) - 25px);padding:6px;min-height:0}.player-hand .card-heading{min-height:29px}.player-hand .card-heading>b{font-size:16px}.player-hand .game-card>.card-illustration{min-height:35px;flex:1;height:0}.player-hand .card-type{font-size:12px;padding:5px 1px 4px}.player-hand .card-description{font-size:14px;min-height:44px;padding:8px 1px 5px}.player-hand .familiar-card .card-description{font-size:12px}.player-hand .card-foot{min-height:28px}.player-hand .stats{font-size:27px}.player-hand .card-foot small{font-size:12px}.player-hand .card-cost .resource-drawing{width:14px;height:17px}
 .client-tools{display:none}.mobile-stack{display:block}.mobile-stack:empty{display:none}.mobile-stack .stack-panel{border-radius:0;border-width:1px 0;max-height:240px}.mobile-stack .stack-item{padding:7px}.duel-result{width:300px;padding:22px 23px}.duel-result h2{font-size:39px}.duel-result p{font-size:12px}.duel-result>div{font-size:12px;padding:11px 0;margin-bottom:17px}.duel-result .eyebrow{font-size:12px}#toast{bottom:108px;font-size:12px;padding:10px 15px}
}

/* Essential labels stay readable; card art and state carry the small board view. */
.client-sidebar{grid-template-rows:auto minmax(0,1fr) auto}.player-panel-heading{font-size:14px;min-height:34px}.life-total{font:700 40px/1 var(--card-font)}.life-total small{font:14px var(--sans);color:#c3c5b8}.player-numbers b{font:700 21px var(--card-font)}.player-numbers small{font-size:12px;color:#c4c7ba}.discard-button{font-size:14px;padding:8px 12px}.discard-button b{font-size:14px}.player-component-summary>span{font-size:13px}.player-component-summary .inventory-item b{font-size:18px}.player-component-summary .inventory-item small{font-size:12px;color:#c3c7b7}.player-component-summary .resource-drawing{height:20px;width:20px}
.card-preview .panel-title{font-size:13px}.card-preview .panel-title small{font-size:12px}.card-size-control,.card-size-control select{font-size:14px}.duel-toolbar{font-size:14px}.duel-toolbar>button{font-size:14px;height:30px;min-width:30px}.zone-caption,.zone-caption>span:last-child,.opponent-hand{font:13px var(--sans);letter-spacing:0}.zone-caption{color:#44473d}.zone-caption>span:last-child{color:#5c5f51}.combat-divider{font-size:13px;letter-spacing:0}.empty-field,.opponent-field .empty-field{font:14px var(--sans)}
.unit .card-heading>b{font:700 14px/1.1 var(--card-font)}.unit .stats{font-size:28px}.unit-state-chip{position:absolute;left:6px;top:31px;font:700 12px/1.3 var(--sans);padding:2px 5px;background:#eee7cf;color:#5c5033;border:1px solid #8f8060;z-index:3}.unit .card-description{display:none}.unit .card-foot{background:transparent}.unit.exhausted .unit-state-chip{display:none}
.phase-bar{gap:10px}.turn-label{font-size:14px}.turn-label b{font:700 20px var(--card-font)}.phase-steps>span{font-size:14px;padding:5px 10px}.priority-mark{font-size:13px}.command-copy strong{font:700 17px/1.2 var(--sans)}.command-copy p{font:14px/1.4 var(--sans)}.command-buttons .primary-button,.command-buttons .outline-button{font-size:15px;min-height:40px}.command-buttons .quiet-button{font-size:14px}.hand-heading>span{font-size:14px}.hand-heading b{font-size:14px}
.player-hand .card-heading>b{font:700 18px/1.1 var(--card-font)}.player-hand .card-type{font-size:13px}.player-hand .card-description{font:16px/1.35 var(--card-font);min-height:58px;padding:8px 5px 5px}.player-hand .familiar-card .card-description{min-height:28px}.player-hand .stats{font-size:30px}.player-hand .game-card>.card-illustration{min-height:28px}
.ledger-heading h2{font:700 18px/1.2 var(--sans)}.ledger-heading{padding:15px}.resource-name>b{font-size:16px}.resource-name>small{font-size:13px}.shop-price,.shop-price b{font-size:14px}.shop-item{min-height:54px}.shop-stock{font-size:13px}.ledger-note{font-size:13px;line-height:1.45}.empty-stack{font-size:14px}.stack-panel .panel-title,.history .panel-title{font-size:14px}.stack-item b{font:700 16px var(--card-font)}.stack-item em,.stack-item small,.stack-panel>p{font-size:13px}.log-turn li{font:14px/1.5 var(--sans);padding-bottom:8px;color:#c3c9b7}.log-turn>span{font-size:13px}.client-foot button{font-size:13px}
@media(max-height:960px) and (min-width:761px){.duel-main{grid-template-rows:36px minmax(0,1fr) 40px 72px 28px var(--hand-height)}.duel-client{--hand-height:230px}.player-panel-heading{min-height:30px;font-size:14px}.player-numbers small,.life-total small{font-size:12px}.player-numbers b{font-size:19px}.discard-button{font-size:13px;padding:6px 10px}.player-component-summary .inventory-item b{font-size:16px}.player-component-summary>span{display:none}.card-preview .preview-paper{margin:9px 1px;padding:7px}.inspection-title h3{font-size:18px}.preview-paper>p{font-size:15px}.requirements>div,.requirements>span{font-size:13px}.inspection-type,.inspection-stats{font-size:13px}.player-hand .card-heading>b{font-size:16px}.player-hand .card-description{font-size:14px;min-height:58px}.player-hand .card-type{font-size:12px}.player-hand .card-foot{min-height:28px}.ledger-heading{padding:12px}.shop-item{min-height:46px;padding:8px 11px}.shop-stock,.ledger-note{font-size:13px}.resource-name>b{font-size:15px}.log-turn li{font-size:13px}.command-copy strong{font-size:16px}.command-copy p{font-size:13px}.command-buttons .primary-button,.command-buttons .outline-button{font-size:14px;min-height:36px}.phase-steps>span{font-size:13px}.priority-mark{font-size:12px}}
@media(max-height:790px) and (min-width:761px){.duel-client{--hand-height:208px;--unit-width:100px;--unit-height:96px;--slot-size:113px}.duel-client[data-card-size="small"]{--unit-width:92px}.duel-client[data-card-size="large"]{--unit-width:106px}.duel-main{grid-template-rows:34px minmax(0,1fr) 36px 66px 26px var(--hand-height)}.field-half{grid-template-rows:24px minmax(0,1fr)}.zone-caption{font-size:12px}.unit .card-heading{min-height:28px}.unit .card-heading>b{font-size:12px}.unit .card-foot{min-height:23px}.unit .stats{font-size:23px}.unit-state-chip{font-size:12px;top:29px;left:3px;padding:0 3px}.life-total{font-size:30px}.life-total small{font-size:12px}.command-copy strong{font-size:14px}.command-copy p{font-size:13px}.player-hand .card-heading>b{font-size:15px}.player-hand .card-description{font-size:14px;min-height:58px;padding:5px 3px 3px}.player-hand .game-card>.card-illustration{min-height:18px}.player-hand .card-type{font-size:12px}.player-hand .familiar-card .card-description{min-height:20px}.phase-steps>span{font-size:12px;padding:4px 7px}.priority-mark{font-size:12px}.shop-price{font-size:13px}.shop-price b{font-size:14px}}
@media(max-width:760px){.player-panel-heading{font-size:13px;min-height:31px}.life-total{font-size:32px}.life-total small{font-size:12px}.player-numbers b{font-size:19px}.player-numbers small{font-size:12px}.discard-button{font-size:13px;padding:7px 8px}.player-component-summary .inventory-item b{font-size:17px}.player-component-summary .resource-drawing{width:19px;height:19px}.duel-toolbar>span{display:none}.duel-toolbar{height:42px;min-height:42px;font-size:14px;justify-content:flex-end}.card-size-control,.card-size-control select{font-size:13px}.card-size-control{margin-left:0}.duel-toolbar>.mobile-log{font-size:13px}.duel-toolbar>button{font-size:14px;height:30px;min-width:30px}.duel-client{--hand-height:295px;--unit-height:137px;--unit-width:110px;--slot-size:144px}.duel-client[data-card-size="small"]{--unit-width:100px}.duel-client[data-card-size="large"]{--unit-width:120px}.field-half{grid-template-rows:29px minmax(0,1fr)}.battlefield{height:420px;min-height:420px}.zone-caption,.zone-caption>span:last-child,.opponent-hand{font-size:12px;letter-spacing:0}.unit .card-heading>b{font-size:13px}.unit .card-heading{min-height:28px}.unit .stats{font-size:25px}.combat-divider{font-size:12px;letter-spacing:0}.phase-bar{height:43px;min-height:43px}.phase-steps>span{font-size:12px;padding:5px}.turn-label{font-size:12px}.turn-label b{font-size:17px}.priority-mark{font-size:12px;max-width:72px}.command-bar{min-height:96px;padding:12px;gap:9px}.command-copy strong{font-size:15px}.command-copy p{font-size:13px}.command-buttons{max-width:155px}.command-buttons .primary-button,.command-buttons .outline-button,.command-buttons .quiet-button,.mobile-shop-button{font-size:14px}.command-buttons .primary-button{min-height:37px}.command-buttons .outline-button{min-height:34px}.hand-heading{height:35px;min-height:35px}.hand-heading>span,.hand-heading b{font-size:14px}.player-hand .card-heading>b{font-size:17px}.player-hand .card-description{font-size:16px;min-height:70px}.player-hand .familiar-card .card-description{min-height:28px}.player-hand .card-type{font-size:13px}.player-hand .card-foot{min-height:30px}.player-hand .stats{font-size:29px}.mobile-stack .stack-item b{font-size:16px}}
.duel-main{grid-template-rows:44px minmax(0,1fr) 64px 30px var(--hand-height)}
.duel-toolbar{gap:12px;padding:0 12px}.duel-toolbar .phase-bar{border:0;background:none;padding:0;flex:1;min-width:0;height:100%;gap:14px}.duel-toolbar .phase-steps{gap:0}.duel-toolbar .priority-mark{margin-left:auto}.duel-toolbar .card-size-control{margin-left:0}.duel-toolbar .phase-steps>span{padding:5px 9px}
.duel-client{--unit-height:clamp(126px,calc((100dvh - 580px)*.46),202px);--unit-width:calc(var(--unit-height)*.82);--slot-size:calc(max(var(--unit-height),var(--unit-width)) + 15px)}
.duel-client[data-hand-view="compact"]{--hand-height:180px;--hand-card-width:144px}.duel-client[data-hand-view="compact"][data-card-size="small"]{--hand-card-width:130px}.duel-client[data-hand-view="compact"][data-card-size="large"]{--hand-card-width:160px}
.duel-client[data-hand-view="expanded"]{--hand-height:280px;--hand-card-width:190px}.duel-client[data-hand-view="expanded"][data-card-size="small"]{--hand-card-width:170px}.duel-client[data-hand-view="expanded"][data-card-size="large"]{--hand-card-width:213px}
.duel-client[data-hand-view="compact"] .player-hand .card-description{display:none}.duel-client[data-hand-view="compact"] .player-hand .card-heading>b{font-size:16px}.duel-client[data-hand-view="compact"] .player-hand .card-heading{min-height:28px}.duel-client[data-hand-view="compact"] .player-hand .card-type{padding:3px 2px;font-size:12px}.duel-client[data-hand-view="compact"] .player-hand .card-foot{min-height:27px}.duel-client[data-hand-view="compact"] .player-hand .stats{font-size:27px}
.hand-view-toggle{font:13px var(--sans);border:0;background:none;color:#d2d9c5;padding:3px 0;cursor:pointer}.hand-view-toggle:hover{color:#fff2ce}.hand-heading{border-top:1px solid #59634e}.hand-heading>span{font-size:14px}
.unit .card-type{display:block;font:12px/1.15 var(--card-font);padding:3px 2px;border-width:1px 0;flex-shrink:0}.unit .card-heading{min-height:24px}.unit .card-foot{min-height:27px}.unit .stats{font-size:26px}.unit-state-chip{top:31px}
@media(max-width:1450px) and (min-width:761px){.duel-toolbar .phase-bar{gap:9px}.duel-toolbar .phase-steps>span{padding:5px 7px}.duel-toolbar .priority-mark{font-size:12px}}
@media(max-height:850px) and (min-width:761px){.duel-client[data-hand-view="compact"]{--hand-height:148px;--hand-card-width:136px}.duel-client[data-hand-view="compact"][data-card-size="small"]{--hand-card-width:124px}.duel-client[data-hand-view="compact"][data-card-size="large"]{--hand-card-width:152px}.duel-client[data-hand-view="expanded"]{--hand-height:230px;--hand-card-width:180px}.duel-client[data-hand-view="expanded"][data-card-size="small"]{--hand-card-width:160px}.duel-client[data-hand-view="expanded"][data-card-size="large"]{--hand-card-width:200px}.duel-client{--unit-height:126px;--unit-width:112px;--slot-size:141px}.duel-client[data-card-size="small"]{--unit-width:104px}.duel-client[data-card-size="large"]{--unit-width:126px}.duel-main{grid-template-rows:44px minmax(0,1fr) 64px 30px var(--hand-height)}.field-half{grid-template-rows:26px minmax(0,1fr)}.unit .card-heading{min-height:22px}.unit .card-heading>b{font-size:12px}.unit .card-type{font-size:12px;padding:2px 1px}.unit .card-foot{min-height:25px}.unit .stats{font-size:24px}.duel-client[data-hand-view="compact"] .player-hand .card-heading>b{font-size:15px}.duel-client[data-hand-view="compact"] .player-hand .card-heading{min-height:23px}.duel-client[data-hand-view="compact"] .player-hand .game-card>.card-illustration{min-height:16px}.command-copy strong{font-size:14px}.command-copy p{font-size:13px}.duel-toolbar .turn-label{font-size:13px}.duel-toolbar .phase-steps>span{font-size:12px}}
@media(max-width:1100px) and (min-width:761px){.duel-toolbar .priority-mark{display:none}.duel-toolbar .phase-bar{gap:8px}.duel-toolbar{gap:8px}.duel-toolbar .phase-steps>span{padding:5px 6px}}
@media(max-width:760px){.duel-main{display:flex}.duel-toolbar{height:auto;min-height:78px;flex-wrap:wrap;padding:7px 9px;justify-content:flex-end;gap:8px}.duel-toolbar .phase-bar{flex:0 0 100%;height:30px;min-height:30px;gap:8px}.duel-toolbar .priority-mark{display:flex;margin-left:auto;max-width:none;white-space:nowrap;font-size:12px}.duel-toolbar .phase-steps>span{font-size:12px;padding:4px 6px}.duel-toolbar .turn-label{font-size:12px}.duel-toolbar .card-size-control{margin-left:auto}.battlefield{height:480px;min-height:480px}.field-half{grid-template-rows:29px minmax(0,1fr)}.duel-client{--unit-height:154px;--unit-width:118px;--slot-size:162px}.duel-client[data-card-size="small"]{--unit-width:108px}.duel-client[data-card-size="large"]{--unit-width:132px}.unit .card-heading>b{font-size:13px}.unit .card-type{font-size:12px}.unit .stats{font-size:25px}.duel-client[data-hand-view="compact"]{--hand-height:215px;--hand-card-width:158px}.duel-client[data-hand-view="compact"][data-card-size="small"]{--hand-card-width:144px}.duel-client[data-hand-view="compact"][data-card-size="large"]{--hand-card-width:175px}.duel-client[data-hand-view="expanded"]{--hand-height:295px;--hand-card-width:180px}.duel-client[data-hand-view="expanded"][data-card-size="small"]{--hand-card-width:164px}.duel-client[data-hand-view="expanded"][data-card-size="large"]{--hand-card-width:198px}.hand-heading{height:36px;min-height:36px}.hand-view-toggle{font-size:13px}.duel-client[data-hand-view="compact"] .player-hand .card-heading>b{font-size:16px}.duel-client[data-hand-view="compact"] .player-hand .card-type{font-size:12px;padding:5px 2px}}
