/* Physical playing fields and framed cards, with original region environment art. */
.cb-root{--cb-cream:#f2e8d1;--cb-gold:#d8b879;--cb-muted:#c2b5a0;background:#252520;border-color:#746d56;color:#f4eedf}
.cb-spell-reveal{position:fixed;z-index:1500;left:50%;top:50%;transform:translate(-50%,-50%);width:226px;max-width:calc(100vw - 24px);padding:10px;background:#252c23f5;border:1px solid #d8bd81;box-shadow:0 12px 45px #0009;pointer-events:none}
.cb-spell-reveal-label{display:block;text-align:center;font-size:12px;color:#f0d799;padding:2px 0 9px}.cb-spell-reveal .cb-card{width:100%;min-height:310px}.cb-spell-reveal .cb-card-art{width:168px;height:168px}.cb-spell-reveal .cb-card>p{font-size:11px}
@media(max-height:500px){.cb-spell-reveal{width:190px;padding:6px}.cb-spell-reveal-label{font-size:10px;padding-bottom:5px}.cb-spell-reveal .cb-card{min-height:230px;padding:6px}.cb-spell-reveal .cb-card-art{width:110px;height:110px}.cb-spell-reveal .cb-card>p{font-size:9px}}
.cb-header{background:linear-gradient(110deg,#34392f,#352a29);border-color:#777157;padding:16px 24px}.cb-header>span{color:#eee3c7}.cb-wallet{color:#e3cb94}.cb-eyebrow{color:#cdbc86}.cb-tabs{background:#20251f;border-color:#655f46}.cb-tabs button{color:#c9c7b6}.cb-tabs button.active{color:#f2dca3;border-color:#d4b878;background:#a3966515}.cb-body{background:linear-gradient(110deg,#242821,#272422);padding:22px}
.cb-root input,.cb-root select,.cb-deck-sharing textarea{background:#232b25;color:#eee5ce;border-color:#726b53}.cb-button{background:linear-gradient(#4b5140,#31382f);border-color:#93856b;color:#eee5cf;box-shadow:inset 0 1px #fff2,0 2px 2px #12191177}.cb-button:hover:not(:disabled){background:linear-gradient(#60674b,#434a38)}.cb-primary{background:linear-gradient(#f0d799,#b69858);border-color:#ffe4a5;color:#312719;box-shadow:inset 0 1px #fff6,0 3px 0 #6c5838}.cb-primary:hover:not(:disabled){background:linear-gradient(#ffe5ac,#ccb575)}.cb-text-button{color:#e1ca96}.cb-button.selected{border-color:#e8d192;background:#62614a}.cb-sound-button{background:#2a322a;border-color:#777057;color:#e7dbc1}.cb-sound-controls label{color:#c4bdaa}.cb-sound-button[aria-pressed="false"]{background:#242923;color:#a49f8b}.cb-root #cb-volume{accent-color:#d8bf80}
.cb-table{--region:#b8c487;--arena-image:url('/static/card-art/arena-forest-v2.png');background-color:#a2956f;background-image:var(--arena-image);background-size:100% 100%;background-position:center;background-repeat:no-repeat;padding:16px clamp(45px,7.2vw,116px) 24px;border:2px solid #8b7957;border-radius:30px;box-shadow:0 9px 0 #151b15,0 20px 35px #090e0ac9,inset 0 0 0 3px #dac69955;isolation:isolate;overflow:hidden;min-height:700px}
.cb-region-ember{--region:#e6a467;--arena-image:url('/static/card-art/arena-ember-v2.png')}.cb-region-shadow{--region:#d2b0de;--arena-image:url('/static/card-art/arena-shadow-v2.png')}.cb-region-dawn{--region:#eed398;--arena-image:url('/static/card-art/arena-dawn-v2.png')}.cb-region-storm{--region:#a5cbc4;--arena-image:url('/static/card-art/arena-storm-v2.png')}
.cb-region-scenery{display:none}.cb-table::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(180deg,#151b1230,transparent 17% 85%,#11180f35)}
.cb-table-header{background:#252c23d9;color:#f1e5c9;border:1px solid #ac94747a;border-radius:10px;padding:9px 13px;box-shadow:0 3px 10px #13190944;font-size:11px;align-items:center}.cb-my-turn{color:#e4f3b2}.cb-practice-time{color:#d4c8b0}
.cb-hero-row{grid-template-columns:minmax(0,1fr) minmax(230px,300px) minmax(0,1fr);gap:15px;padding:10px 0}.cb-battle-hero{min-height:91px;gap:10px;background:transparent;border:0;box-shadow:none;padding:3px;max-width:300px;min-width:0;justify-self:center;justify-content:center;color:#f6ecd5;border-radius:48px}.cb-hero-portrait{width:80px;height:80px;border:5px double #e1c692;box-shadow:0 3px 0 #665139,0 8px 12px #17221570,inset 0 0 10px #14170e;border-radius:50%;flex-shrink:0}.cb-default-portrait{background:radial-gradient(circle at 35% 20%,#778265,#24382e);color:#ecdb9c;padding:13px}.cb-hero-info{flex:none;background:#293328e8;border:1px solid #b5a07b88;border-radius:9px;padding:8px 10px;max-width:160px;text-shadow:0 1px #131d12}.cb-hero-info small{color:#e1cda6}.cb-hero-info strong{font-size:13px;color:#fff5db}.cb-hero-info>span{font-size:9px;color:#d4d2bb}.cb-hero-hp{width:39px;min-height:46px;font-size:24px;background:linear-gradient(145deg,#e26363,#8b203a);border:2px solid #f3c6a2;border-radius:45% 45% 46% 46%;box-shadow:0 3px 3px #3a1c2a66}.cb-hero-hp small{color:#ffe2d4;font-size:8px}
.cb-other-mana,.cb-mana-pool{padding:9px 12px;border-radius:12px;border:1px solid #b4a77c;background:#24382fde;color:#bfe8d7;text-shadow:0 1px #172719;box-shadow:inset 0 0 0 2px #d2bb7033,0 4px 7px #12271944;font-size:12px;white-space:normal}.cb-mana-pool{font-size:24px}.cb-mana-pool small{font-size:10px;color:#ded6bd}.cb-enemy-power{padding:8px 10px;background:#252c24d9;border:1px solid #a08c655c;border-radius:9px;color:#e8d3a8;font-size:10px}.cb-enemy-power small{color:#dbd7c4;font-size:9px}.cb-power-button{position:relative;align-items:center!important;text-align:center!important;min-height:90px!important;padding:9px 10px!important;border:2px solid #b59b70;border-radius:18px;background:linear-gradient(155deg,#736a4a,#394937);box-shadow:inset 0 0 0 2px #e3cf8033,0 5px 0 #3e4934,0 8px 12px #1b261877}.cb-power-button strong{font-size:12px;color:#ffedbd}.cb-power-button span{font-size:10px;color:#eee5cc}.cb-power-button small{font-size:9px;color:#cee0b9}.cb-root .cb-power-button:disabled{opacity:.72;filter:saturate(.55)}.cb-power-emblem{width:29px;height:29px;color:#e5d094;position:absolute;right:-7px;top:-8px;background:#304637;border:2px solid #c4a977;border-radius:50%;padding:4px}.cb-power-emblem svg{width:100%;height:100%}
.cb-board{--unit-width:138px;min-height:209px;padding:12px 7px 20px;gap:12px;background:transparent;border-radius:15px;scrollbar-color:#938b61 #4b533e55;align-items:center}.cb-board>p{color:#f7efd8;background:#30442dd6;border:1px solid #c8b88b8c;border-radius:20px;padding:8px 15px;font-size:10px;text-shadow:0 1px #162714;box-shadow:0 2px 7px #18211544}.cb-board-divider{padding:5px 12px;border:0;background:linear-gradient(90deg,transparent,#353a2ada,transparent);color:#f0dcad;text-shadow:0 1px #162214;border-radius:50%;font-size:9px;letter-spacing:1px;gap:10px}.cb-board-divider b{font-size:17px}.cb-turn-bar{border:0;padding-top:9px;gap:12px}.cb-turn-bar>span{font-size:10px;background:#283526e3;border:1px solid #a9936666;border-radius:7px;padding:6px 10px;color:#eee3cc;line-height:1.6}.cb-turn-bar .cb-primary{min-height:40px;font-size:12px;padding:9px 15px;border-radius:12px}
.cb-unit{position:relative;flex:0 0 var(--unit-width);width:var(--unit-width);min-height:195px;padding:6px 9px 23px;border:4px double #c7b07f;background:linear-gradient(135deg,#e0d3ad,#7e785f 38%,#4b5b45 65%,#cfb781);color:#eee1c4;border-radius:50% 50% 39% 39%;overflow:visible;box-shadow:0 5px 0 #5b5239,0 10px 14px #151c156b,inset 0 0 0 2px #5a6147;transition:transform .18s,box-shadow .18s}
.cb-unit::after{content:'';position:absolute;inset:3px;border:1px solid #f5e7ac66;pointer-events:none;border-radius:inherit}.cb-unit-art{width:calc(var(--unit-width) - 28px);height:calc(var(--unit-width) - 19px);margin:auto;border:2px solid #eee0b8;border-radius:50% 50% 35% 35%;box-shadow:0 3px 8px #1c292466;overflow:hidden}.cb-unit-art .cb-illustration{width:100%;height:100%;aspect-ratio:auto}.cb-unit strong{position:relative;z-index:4;display:block;font-size:11px;line-height:1.45;margin:2px -7px 0;padding:4px 3px;border:1px solid #ba9a68;background:linear-gradient(#526448,#293d32);color:#fff0ce;border-radius:9px 3px;box-shadow:0 3px 3px #162d2366;text-shadow:0 1px #142519}.cb-unit small{font-size:8px;line-height:1.3;min-height:11px;margin-top:4px;color:#f0ead1;text-shadow:0 1px #28392b}.cb-unit-stats{position:absolute;left:4px;right:4px;bottom:-5px;z-index:5;display:flex;justify-content:space-between;margin:0;pointer-events:none}.cb-unit .cb-attack,.cb-unit .cb-health{width:31px;height:32px;font-size:19px;border:2px solid #e9d9a4;box-shadow:0 3px 0 #533c2b,0 5px 7px #10201955;clip-path:polygon(18% 0,82% 0,100% 25%,100% 78%,50% 100%,0 78%,0 25%)}.cb-unit .cb-attack{background:linear-gradient(135deg,#fff0a4,#bf8734);color:#503313}.cb-unit .cb-health{background:linear-gradient(135deg,#ff9a87,#a42c42);color:#fff7e5}.cb-unit-grade{top:1px;right:1px;min-width:26px;border:1px solid #b8a87c;background:#3b4131;color:#f8e6ba;border-radius:7px;font-size:9px;padding:3px;z-index:5;box-shadow:0 2px 4px #17231966}
.cb-unit.cb-rarity-rare{border-color:#9bbacf;background:linear-gradient(145deg,#d5dfea,#566f7a,#b6bec7)}.cb-unit.cb-rarity-epic{border-color:#c9a0cf;background:linear-gradient(145deg,#e4ceec,#675475,#c4a8cd)}.cb-unit.cb-rarity-legendary{border-color:#f7cc74;background:linear-gradient(145deg,#fce6b1,#9b682d,#e0b366);box-shadow:0 5px 0 #6e512b,0 0 18px #ffd88945,0 10px 14px #151c156b}.cb-unit.cb-golden{border-color:#ffe5a3;background:linear-gradient(140deg,#fff0b8,#c39043,#fde2a0)}.cb-unit.cb-unit-ready{outline:2px solid #cceaa5;outline-offset:2px;box-shadow:0 5px 0 #607441,0 0 16px #baee8c78,0 10px 14px #12231770}.cb-unit.cb-taunt{border-width:5px;border-style:ridge;border-radius:34% 34% 20% 20%;box-shadow:0 5px 0 #434f47,0 9px 14px #101e1b77}.cb-unit.cb-shielded{outline:3px solid #f4e6b7;outline-offset:4px}.cb-unit.selected{outline:3px solid #e8f3ab;outline-offset:3px;transform:translateY(-4px)}.cb-targetable{outline-color:#f7d399!important}
.cb-card{--card-rim:#b2a080;position:relative;background:linear-gradient(145deg,#ded1a7 0,#faf0d5 36%,#d7c797);color:#3e3726;border:3px solid var(--card-rim);border-radius:27px 27px 17px 17px;padding:12px 10px 9px;box-shadow:inset 0 0 0 2px #fff6dfaa,inset 0 0 0 4px #82664555,0 5px 0 #655039,0 10px 16px #080e0b66;overflow:hidden;isolation:isolate}
.cb-card::after{content:'';position:absolute;inset:5px;border:1px solid #9e835c77;border-radius:20px 20px 12px 12px;pointer-events:none;z-index:2}.cb-card-top{position:relative;z-index:4;padding:0 3px;min-height:30px}.cb-card .cb-mana{width:31px;height:33px;border:2px solid #f0e1b0;border-radius:11px 11px 15px 15px;background:linear-gradient(140deg,#88c6cd,#307276 48%,#244d55);color:#fff3d2;font-size:19px;box-shadow:0 2px 0 #375546,0 3px 7px #4d574b66;clip-path:polygon(20% 0,80% 0,100% 22%,100% 78%,50% 100%,0 78%,0 22%)}.cb-card .cb-card-meta>span{color:#746044;font-size:9px}.cb-card .cb-grade{color:#6c5736;border-color:#9e835e;background:#f8eccbcc}
.cb-card-art{position:relative;z-index:1;border:3px ridge #baa482;border-bottom:3px ridge #baa482!important;border-radius:32% 32% 15% 15%;box-shadow:0 3px 6px #7b674a66,inset 0 0 0 2px #fceccc;width:100%;overflow:hidden;margin:3px auto 0}.cb-card-name{position:relative;z-index:4;background:linear-gradient(#68583d,#433c2f);color:#fff1cc!important;border:1px solid #c3a876;border-radius:9px 3px;padding:5px 3px;margin:-2px -4px 3px;line-height:1.4;box-shadow:0 2px 2px #493d3155;text-shadow:0 1px #221c13;font-size:12px}.cb-card>p{color:#4c4535;font-size:11px;line-height:1.55;margin:6px 2px 9px;min-height:40px;position:relative;z-index:4}.cb-card-bottom{color:#695b40;position:relative;z-index:4}.cb-card .cb-spell{color:#514a38;background:#eddfbe;border:1px solid #b4a078;border-radius:8px;padding:4px}.cb-card .cb-attack,.cb-card .cb-health{border:2px solid #f7e6b5;background:linear-gradient(135deg,#ffefa9,#c59848);box-shadow:0 2px 0 #7e5838;color:#4d3118}.cb-card .cb-health{background:linear-gradient(135deg,#f7957d,#a82f43);color:#fff5e4}
.cb-card.cb-rarity-rare{--card-rim:#809ca7}.cb-card.cb-rarity-epic{--card-rim:#ab89b4}.cb-card.cb-rarity-legendary{--card-rim:#d8ac60;box-shadow:inset 0 0 0 2px #ffefbaa8,inset 0 0 0 4px #a47635aa,0 5px 0 #795326,0 9px 20px #f7bf5755}.cb-card.cb-golden{--card-rim:#eec26b;background:linear-gradient(145deg,#fff0bd,#e8c580,#fff0b7);border-color:#edc474}.cb-card.cb-golden .cb-card-name{color:#fff0bf!important;background:linear-gradient(#937034,#664927);border-color:#e9ce83}.cb-card.cb-golden .cb-card-meta>span{color:#80602e}.cb-card.cb-golden .cb-card-art{border-color:#dec17a}
.cb-hand-section{background:linear-gradient(145deg,#383d2f,#25271f);padding:15px;border:1px solid #8a7d5b;border-radius:20px;margin-top:22px;box-shadow:inset 0 0 0 2px #b7a27322,0 8px 15px #10180e55}.cb-hand-section .cb-section-top{margin:0 0 4px}.cb-hand-section h3{font-size:15px;color:#e6d5ad}.cb-hand-section .cb-section-top>small{font-size:10px;color:#c8c4aa}.cb-hand{padding:14px 6px 24px;scrollbar-color:#a79a72 #2a3024}.cb-hand .cb-card{flex-basis:177px;min-height:325px;border-radius:25px 25px 15px 15px}.cb-hand .cb-card-art{height:151px}.cb-hand .cb-card-name{font-size:13px}.cb-hand .cb-card>p{font-size:11px}.cb-hand .cb-card:not(:disabled):hover{transform:translateY(-5px);box-shadow:0 5px 0 #655039,0 10px 25px #10160d77}.cb-card.selected{outline:3px solid #e5efb0;border-color:#c5d89c;transform:translateY(-8px)}
.cb-turn-clock{color:#f2e3bc;min-width:105px}.cb-turn-clock small{color:#d6d1b8}.cb-turn-clock i{background:#666c47}.cb-turn-clock em{background:#d2dda0}.cb-clock-urgent{color:#ffba83}.cb-clock-urgent em{background:#e59765}.cb-battle-tools>span{color:#d4c7ab}.cb-result{background:linear-gradient(130deg,#49513c,#342a27);border-color:#cfb978}.cb-result p,.cb-result small{color:#e2d7bb}.cb-log,.cb-pack-rules{border-color:#746e52;color:#c5c2ae}.cb-log summary,.cb-pack-rules summary{color:#e1d1aa}.cb-log p{border-color:#4d5945}
.cb-deck-editor{color:#ece7d2;--deck-accent:#c9d49b}.cb-deck-heading p,.cb-deck-heading .cb-deck-status>span{color:#c8c4ab}.cb-deck-status .cb-deck-count{color:#e7d5a3}.cb-deck-library{border-color:#767659;background:#343b30}.cb-deck-library label{color:#ddd6b9}.cb-deck-filterbar{background:linear-gradient(140deg,#364335,#2a3229);border-color:#6f7457}.cb-deck-searchline label{color:#d6d7bd}.cb-deck-editor .cb-filters button{background:#333f31;border-color:#7c8463;color:#d8ddc2}.cb-deck-editor .cb-filters button.active{background:#d1dca3;border-color:#e2e8be;color:#2e3b26}.cb-catalog-caption{color:#c2c8ac}.cb-catalog-caption .cb-text-button{color:#e2d09c}.cb-card-pages button{background:#424a36;border-color:#92906c;color:#e6dfba}.cb-deck-card{background:#2d382b;border-color:#626b50}.cb-deck-card.cb-in-deck{background:#3b4933;border-color:#afbe83}.cb-deck-card .cb-card{padding:12px 9px 9px;border-radius:25px 25px 15px 15px;min-height:344px}.cb-deck-card .cb-card-art{border-radius:32% 32% 15% 15%;height:169px}.cb-deck-card .cb-card-name{font-size:13px;margin:-2px -2px 2px}.cb-deck-card .cb-card>p{font-size:11px;color:#4c4535}.cb-deck-card .cb-card-meta>span{color:#746044}.cb-deck-card-caption{color:#d2d6bf}.cb-deck-card-caption b{color:#e0d4a1}.cb-deck-card-status{color:#c6cbae}.cb-deck-card .cb-card-controls{background:#303d2b;border-color:#7f8960}.cb-deck-card .cb-card-controls button{background:#4b573d;color:#e6ebcb}.cb-deck-roster{background:linear-gradient(155deg,#424c38,#2b342a);border-color:#91906b}.cb-deck-crest{background:linear-gradient(140deg,#778058,#354b37);border-color:#beaf7e;color:#efe0ac}.cb-deck-commander{border-color:#7a7f5e}.cb-deck-commander small,.cb-deck-commander p b{color:#e5d29e}.cb-deck-commander p,.cb-deck-name-label,.cb-deck-composition{color:#d0d4ba}.cb-deck-progress{background:#233321}.cb-deck-progress>span{background:#c9d99a}.cb-deck-composition>b{color:#e7d7a9}.cb-roster-details>summary,.cb-roster-caption{color:#e8e2c6}.cb-roster-details>summary>span,.cb-roster-caption span{color:#bfc7a9}.cb-mana-curve{border-color:#747d58}.cb-mana-curve>div{color:#cbd0b5}.cb-mana-curve span{background:#293a25}.cb-mana-curve i{background:linear-gradient(#d8e1ac,#8fa877)}.cb-deck-rows{scrollbar-color:#929970 #293623}.cb-deck-row{background:#333f2f;border-color:#7f886b;color:#eee7ca}.cb-deck-row:hover:not(:disabled){background:#4b583b;border-color:#d7d7a4}.cb-row-cost{color:#c7d9ba}.cb-row-name small{color:#c0cbb0}.cb-row-quantity,.cb-row-remove{color:#e2ddbc}.cb-deck-savebar{border-color:#818360}.cb-deck-savebar>p,.cb-deck-manage{color:#cbd2b5}.cb-deck-share-details{background:#343d2f;border-color:#7d8261}.cb-deck-share-details>summary{color:#e7ddba}.cb-deck-sharing p,.cb-deck-sharing label{color:#d8d2b8}
.cb-intro{background:linear-gradient(120deg,#384d34,#574632);border-color:#9b936e}.cb-intro p{color:#dedbc0}.cb-tags span{border-color:#9caa7b;color:#e1e6c6}.cb-npc{background:linear-gradient(125deg,#34432f,#3e342b);border-color:#8a8460}.cb-npc p,.cb-friend p,.cb-friend small{color:#cbcdb6}.cb-npc b,.cb-npc-enter{color:#e0cc93}.cb-friend{background:#323d2f;border-color:#767c59}.cb-appearance{background:linear-gradient(125deg,#404d36,#302f27);border-color:#8f8763}.cb-appearance-preview{background:#2e3c2b;border-color:#aaa16d;color:#e3d39a}.cb-appearance-main>strong{color:#ece0b4}.cb-appearance-main p{color:#d1d4bb}.cb-appearance-main>small{color:#bfc7a9}.cb-pack-shop{background:linear-gradient(120deg,#3f5037,#594630);border-color:#a5966a}.cb-pack-shop p,.cb-pack-count{color:#ddd8bb}.cb-pack-count b{color:#ebd08d}.cb-pack-visual{background:linear-gradient(140deg,#4a6345,#513d28);border-color:#d7bd7e;color:#efe0b0}.cb-pack-rewards article,.cb-stats article{background:#34442f;border-color:#7e8563}.cb-pity{background:#473e32;border-color:#b2a174}.cb-pity strong{color:#ead49e}.cb-pity small{color:#d1c8b0}.cb-forfeit-dialog{background:linear-gradient(145deg,#48503b,#272f28);border-color:#bbb08b;color:#ede4c9}.cb-forfeit-dialog p{color:#d7d3bb}.cb-forfeit-icon{background:#3b4d33;border-color:#b1a674;color:#e4d3a4}
@media(min-width:1600px){.cb-board{--unit-width:148px;min-height:224px}.cb-unit{min-height:208px}.cb-table{padding-inline:clamp(100px,7.2vw,130px)}}
@media(max-width:1100px) and (min-width:701px){.cb-board{--unit-width:120px;min-height:186px;gap:10px}.cb-unit{min-height:179px}.cb-unit strong{font-size:10px}.cb-table{padding-inline:55px;min-height:655px}.cb-hero-row{grid-template-columns:minmax(0,1fr) minmax(210px,255px) minmax(0,1fr);gap:10px}.cb-battle-hero{max-width:255px}.cb-hero-portrait{width:65px;height:65px}.cb-hero-info{padding:6px;max-width:125px}.cb-hero-info strong{font-size:11px}.cb-hero-hp{width:32px;font-size:21px;min-height:40px}.cb-enemy-power{padding:6px;font-size:9px}.cb-enemy-power small{font-size:8px}.cb-power-button{min-height:83px!important;padding:7px!important}.cb-power-button strong{font-size:10px}.cb-power-button span{font-size:9px}.cb-power-button small{font-size:8px}.cb-other-mana{padding:7px;font-size:10px}}
@media(max-width:700px){.cb-body{padding:12px}.cb-header{padding:14px}.cb-table{padding:12px 12px 18px;min-height:660px;border-radius:22px;background-size:100% 100%;background-position:center}.cb-table::before{background:linear-gradient(180deg,#17201322,transparent 25% 70%,#17201333)}.cb-table-header{font-size:9px;padding:7px 8px;gap:7px}.cb-hero-row{grid-template-columns:1fr;gap:7px;padding:9px 0}.cb-battle-hero{width:auto;min-height:77px;max-width:280px;grid-row:1}.cb-hero-portrait{width:66px;height:66px;border-width:4px}.cb-hero-info{max-width:135px;padding:6px 8px}.cb-hero-info strong{font-size:11px}.cb-hero-info>span{font-size:8px}.cb-hero-hp{width:34px;min-height:42px;font-size:22px}.cb-other-mana{grid-row:2;justify-self:center;font-size:9px;padding:5px 12px}.cb-own-commander .cb-mana-pool{grid-row:2;font-size:19px;padding:5px 12px;justify-self:center}.cb-own-commander .cb-power-area{grid-row:3;width:min(100%,265px);justify-self:center}.cb-power-button{min-height:66px!important;padding:7px 10px!important;border-radius:14px;gap:3px}.cb-power-button strong{font-size:11px}.cb-power-button span{font-size:9px}.cb-power-button small{font-size:8px}.cb-power-emblem{width:24px;height:24px;padding:3px}.cb-board{--unit-width:105px;min-height:160px;gap:9px;padding:10px 5px 19px}.cb-unit{min-height:155px;padding:5px 7px 20px;border-width:3px}.cb-unit strong{font-size:9px;padding:3px 2px;margin-inline:-5px}.cb-unit small{font-size:7px}.cb-unit .cb-attack,.cb-unit .cb-health{width:25px;height:27px;font-size:16px}.cb-unit-grade{font-size:8px;min-width:24px}.cb-board>p{font-size:9px;padding:6px 11px}.cb-board-divider{font-size:8px;padding:4px}.cb-turn-bar>span{font-size:9px;flex-basis:100%}.cb-turn-bar .cb-primary{font-size:11px;min-height:36px;padding:8px 14px}.cb-hand-section{padding:11px;margin-top:18px;border-radius:16px}.cb-hand-section h3{font-size:13px}.cb-hand .cb-card{flex-basis:163px;min-height:308px;padding:10px 8px 9px}.cb-hand .cb-card-art{height:139px}.cb-hand .cb-card-name{font-size:12px}.cb-hand .cb-card>p{font-size:10px}.cb-hand-section .cb-section-top>small{font-size:8px}.cb-deck-card .cb-card{min-height:300px;padding:10px 6px 8px}.cb-deck-card .cb-card-art{height:125px}.cb-deck-card .cb-card-name{font-size:11px;margin:-2px 0 2px}.cb-deck-card .cb-card>p{font-size:10px}.cb-deck-card .cb-mana{font-size:15px;width:25px;height:27px}.cb-deck-card .cb-card-meta>span{font-size:8px}}
@media(max-width:360px){.cb-deck-card .cb-card-art{height:108px}.cb-deck-card .cb-card{min-height:292px}.cb-deck-card .cb-card-meta>span{font-size:7px}.cb-table{padding-inline:8px}}
@media(max-width:700px){.cb-table.cb-region-forest{--arena-image:url('/static/card-art/arena-forest-mobile-v2.png');background-size:100% 100%}.cb-table.cb-region-ember{--arena-image:url('/static/card-art/arena-ember-mobile-v2.png');background-size:100% 100%}.cb-table.cb-region-shadow{--arena-image:url('/static/card-art/arena-shadow-mobile-v2.png');background-size:100% 100%}.cb-table.cb-region-dawn{--arena-image:url('/static/card-art/arena-dawn-mobile-v2.png');background-size:100% 100%}.cb-table.cb-region-storm{--arena-image:url('/static/card-art/arena-storm-mobile-v2.png');background-size:100% 100%}}
@media(prefers-reduced-motion:reduce){.cb-unit,.cb-card{transition:none}.cb-hand .cb-card:hover{transform:none}}

/* Commander portraits: image and health only; resources stay beside the portrait. */
.cb-battle-hero{position:relative;display:block;width:100px;max-width:100%;min-height:100px;padding:5px 6px 7px;border:0;border-radius:8px;background:transparent;box-shadow:none;justify-self:center;color:#fff2df}
.cb-battle-hero .cb-hero-portrait{width:88px;height:88px;border:2px solid #c8b47f;border-radius:6px;box-shadow:0 4px 8px #101c1a80,inset 0 0 0 1px #eeddbc55;overflow:hidden}
.cb-battle-hero .cb-hero-hp{position:absolute;right:-5px;bottom:3px;width:36px;min-height:40px;border:2px solid #edc3a0;border-radius:6px;background:linear-gradient(145deg,#e86765,#8b203a);box-shadow:0 3px 4px #391d2580;font-size:25px;line-height:1}
.cb-default-portrait{background:linear-gradient(150deg,#788563,#253c32);padding:17px}.cb-battle-hero.cb-targetable{outline-offset:3px}
.cb-battle-resources{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;justify-self:start}
.cb-card-counts{display:flex;flex-direction:column;gap:4px;padding:7px 10px;background:#253129dd;border:1px solid #b6a27777;border-radius:8px;font-size:10px;color:#e4dcc8;min-width:130px}
.cb-card-counts>span{display:flex;align-items:center;justify-content:space-between;gap:14px;white-space:nowrap}.cb-card-counts b{font-size:13px;font-variant-numeric:tabular-nums;color:#ffebbb}
@media(max-width:1100px) and (min-width:701px){.cb-hero-row{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr)}.cb-battle-hero{width:88px;min-height:88px;padding:4px}.cb-battle-hero .cb-hero-portrait{width:80px;height:80px}.cb-battle-hero .cb-hero-hp{width:33px;min-height:37px;font-size:23px}.cb-card-counts{font-size:9px;padding:6px 8px;min-width:122px}}
@media(max-width:700px){.cb-battle-hero{width:88px;min-height:88px;grid-row:1;padding:4px}.cb-battle-hero .cb-hero-portrait{width:80px;height:80px}.cb-battle-hero .cb-hero-hp{width:33px;min-height:37px;font-size:23px}.cb-battle-resources{grid-row:2;justify-self:center;flex-direction:row;align-items:center;justify-content:center;gap:8px;max-width:100%}.cb-battle-resources .cb-other-mana,.cb-own-commander .cb-battle-resources .cb-mana-pool{font-size:10px;padding:7px 9px;white-space:nowrap}.cb-battle-resources .cb-mana-pool small{font-size:9px}.cb-card-counts{font-size:9px;padding:5px 8px;gap:2px;min-width:116px}.cb-card-counts>span{gap:9px}.cb-card-counts b{font-size:11px}}

/* Sprite cells are square: equal frame dimensions preserve the original face proportions. */
.cb-battle-hero .cb-hero-portrait>.cb-illustration{width:100%;height:100%;aspect-ratio:1}

/* One-screen combat: the hand lives on the playing surface, above the lower edge. */
body:has(.cb-in-match){overflow:hidden}
.cb-root.cb-in-match{position:fixed;inset:0;z-index:1000;display:grid;grid-template-rows:40px minmax(0,1fr);border:0;border-radius:0;min-height:0;padding-bottom:env(safe-area-inset-bottom,0px)}
.cb-in-match .cb-header{padding:5px 12px;gap:8px;flex-wrap:nowrap;justify-content:initial;min-height:0}.cb-in-match .cb-header>span{width:auto;font-size:11px;letter-spacing:0;white-space:nowrap}.cb-in-match .cb-header>span svg{width:17px}.cb-in-match .cb-wallet{display:none}.cb-in-match .cb-match-menu{padding:3px 8px;min-height:26px;font-size:10px;margin-left:auto}
.cb-in-match .cb-sound-controls{width:auto;gap:5px;flex-wrap:nowrap}.cb-in-match .cb-sound-button{font-size:10px!important;padding:4px 7px}.cb-in-match .cb-sound-controls label{font-size:0;gap:0}.cb-in-match #cb-volume{width:56px}
.cb-in-match .cb-tabs{display:none;position:absolute;right:10px;top:42px;z-index:100;padding:6px;background:#20291ff5;border:1px solid #aa976d;border-radius:9px;box-shadow:0 8px 20px #0007;max-width:calc(100vw - 20px)}.cb-in-match.cb-battle-menu-open .cb-tabs{display:flex}.cb-in-match .cb-tabs button{padding:9px 10px;font-size:11px}
.cb-in-match .cb-body{position:relative;display:flex;flex-direction:column;padding:0;min-height:0}.cb-in-match .cb-battle-tools{flex:none;height:28px;margin:0;padding:2px 12px;gap:12px;align-items:center;background:#22291f}.cb-in-match .cb-battle-tools>span{font-size:10px}.cb-in-match .cb-battle-tools .cb-button{font-size:10px;min-height:24px;padding:3px 9px}
.cb-in-match .cb-log{position:absolute;z-index:15;right:100px;top:6px;margin:0;border:0;padding:0;background:transparent;max-width:min(340px,calc(100vw - 28px));font-size:10px}.cb-in-match .cb-log summary{padding:0}.cb-in-match .cb-log[open]{padding:10px;max-height:290px;overflow:auto;border:1px solid #9e8e68;border-radius:9px;background:#1f2922f5;box-shadow:0 8px 24px #0008}.cb-in-match .cb-log p{font-size:11px}
.cb-in-match .cb-error{position:absolute;z-index:40;bottom:140px;left:12px;right:12px;margin:0;padding:8px;font-size:11px}
.cb-in-match .cb-table{--unit-width:clamp(82px,calc((100dvh - 385px)*.29),138px);flex:1;min-height:0;margin:0;border-radius:18px 18px 0 0;padding:7px clamp(12px,3.5vw,65px) 0;display:grid;grid-template-rows:30px 76px minmax(0,1fr) var(--battle-divider-height,16px) minmax(0,1fr) 76px 30px 132px;gap:0;overflow:hidden;background-size:100% 100%}
.cb-in-match .cb-table-header{padding:5px 10px;min-height:0;gap:8px;font-size:10px;border-radius:8px}.cb-in-match .cb-turn-clock{font-size:10px;min-width:90px}.cb-in-match .cb-turn-clock b{font-size:18px}.cb-in-match .cb-turn-clock em{height:3px}
.cb-in-match .cb-hero-row{grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr);gap:8px;padding:0;min-height:0}.cb-in-match .cb-battle-hero{width:72px;min-height:72px;grid-row:auto;padding:4px}.cb-in-match .cb-battle-hero .cb-hero-portrait{width:64px;height:64px}.cb-in-match .cb-battle-hero .cb-hero-hp{width:30px;min-height:33px;font-size:22px;right:-4px;bottom:1px}
.cb-in-match .cb-battle-resources{grid-row:auto;justify-self:start;flex-direction:row;align-items:center;gap:6px}.cb-in-match .cb-mana-pool{padding:5px 8px;font-size:22px}.cb-in-match .cb-other-mana{padding:5px 8px;font-size:10px}.cb-in-match .cb-card-counts{min-width:110px;padding:4px 7px;font-size:9px;gap:2px}.cb-in-match .cb-card-counts b{font-size:11px}.cb-in-match .cb-card-counts>span{gap:8px}
.cb-in-match .cb-enemy-power{display:block;max-width:280px;padding:6px 9px;font-size:10px}.cb-in-match .cb-enemy-power small{font-size:9px}.cb-in-match .cb-own-commander .cb-power-area{grid-row:auto;width:100%;justify-self:stretch}.cb-in-match .cb-power-button{min-height:60px!important;padding:6px 9px!important;border-radius:12px;gap:3px}.cb-in-match .cb-power-button strong{font-size:11px}.cb-in-match .cb-power-button span{font-size:9px}.cb-in-match .cb-power-button small{font-size:8px}.cb-in-match .cb-power-emblem{width:23px;height:23px;right:-4px;top:-5px;padding:3px}
.cb-in-match .cb-board{min-height:0;padding:3px 3px 9px;gap:10px;overflow-y:hidden;border-radius:8px}.cb-in-match .cb-unit{min-height:calc(var(--unit-width)*1.36);padding:4px 6px 17px}.cb-in-match .cb-unit-art{width:calc(var(--unit-width) - 25px);height:calc(var(--unit-width) - 25px)}.cb-in-match .cb-unit strong{font-size:clamp(8px,.85vw,11px);padding:3px 2px;line-height:1.3}.cb-in-match .cb-unit small{font-size:7px;min-height:9px}.cb-in-match .cb-unit .cb-attack,.cb-in-match .cb-unit .cb-health{width:27px;height:29px;font-size:18px}.cb-in-match .cb-board>p{font-size:10px;padding:5px 12px;margin:0}.cb-in-match .cb-board-divider{font-size:8px;padding:0}
.cb-in-match .cb-turn-bar{margin:0;padding:0;border:0;gap:8px;flex-wrap:nowrap;min-height:0}.cb-in-match .cb-turn-bar>span{flex-basis:auto;font-size:10px;text-align:left;background:#283727bf;padding:3px 8px;border-radius:7px}.cb-in-match .cb-turn-bar .cb-button{min-height:26px;padding:4px 10px;font-size:10px;flex:none}
.cb-hand-dock{position:relative;z-index:8;min-width:0;min-height:0;margin:0!important;padding:0!important;border:0!important;border-top:1px solid #d3b46e66!important;border-radius:0!important;background:linear-gradient(180deg,#24352255,#1b2b22ec)!important;box-shadow:none!important;overflow:visible}
.cb-hand-dock .cb-section-top{margin:0;padding:4px 8px;gap:8px;height:22px}.cb-hand-dock .cb-section-top h3{font-size:10px;margin:0;white-space:nowrap;color:#f3e4bd}.cb-hand-dock .cb-section-top h3 small{font-size:9px}.cb-hand-dock .cb-section-top>small{font-size:8px;color:#e1d4b3}.cb-hand-dock .cb-hand{--hand-spread:clamp(25px,calc((100vw - 220px)/var(--hand-count)),94px);display:block;position:relative;height:110px;padding:0;overflow:visible;scrollbar-width:none}
.cb-hand-dock .cb-card{position:absolute;left:calc(50% + (var(--hand-index) - (var(--hand-count) - 1)/2)*var(--hand-spread));bottom:-93px;z-index:calc(10 + var(--hand-index));width:148px;min-height:208px;height:208px;padding:7px 8px;display:grid;grid-template-rows:24px 17px 96px 1fr 25px;gap:2px;transform:translateX(-50%) rotate(var(--hand-tilt));transform-origin:50% 110%;transition:transform .14s,box-shadow .14s}
.cb-hand-dock .cb-card-top{grid-row:1;min-width:0}.cb-hand-dock .cb-card-name{grid-row:2;font-size:10px;line-height:1.3;margin:0}.cb-hand-dock .cb-card-art{grid-row:3;width:96px;height:96px;margin:0 auto}.cb-hand-dock .cb-card>p{grid-row:4;font-size:9px;line-height:1.35;margin:0;min-height:0}.cb-hand-dock .cb-card-bottom{grid-row:5;font-size:8px}.cb-hand-dock .cb-card-meta>span{display:none}.cb-hand-dock .cb-card-meta .cb-grade{font-size:8px}.cb-hand-dock .cb-mana{width:25px;height:25px;min-width:25px;font-size:15px}.cb-hand-dock .cb-card .cb-attack,.cb-hand-dock .cb-card .cb-health{width:22px;height:22px;font-size:14px}
.cb-hand-dock .cb-card:hover,.cb-hand-dock .cb-card:focus-visible,.cb-hand-dock .cb-card.selected{z-index:60;transform:translateX(-50%) translateY(-73px) rotate(0deg);box-shadow:0 0 0 2px #efd893,0 8px 20px #101710bb}.cb-hand-dock .cb-card.cb-drag-source{transform:translateX(-50%) translateY(-35px) rotate(0deg);pointer-events:none}
.cb-in-match .cb-battle-menu-open{z-index:80}.cb-card-peek{background:#273229;color:#f4e9d0;border-color:#bda475}.cb-card-peek .cb-card-art{width:155px;height:155px}
@media(max-width:700px){.cb-in-match .cb-header{padding:4px 7px;gap:5px}.cb-in-match .cb-header>span{font-size:10px}.cb-in-match .cb-header>span svg{width:14px}.cb-in-match .cb-sound-controls{gap:3px}.cb-in-match .cb-sound-button{padding:4px 5px!important;font-size:9px!important}.cb-in-match #cb-volume{width:37px}.cb-in-match .cb-match-menu{padding:3px 6px;font-size:9px}.cb-in-match .cb-table{--unit-width:clamp(72px,calc((100dvh - 355px)*.27),108px);padding:5px 7px 0;grid-template-rows:29px 62px minmax(0,1fr) var(--battle-divider-height,14px) minmax(0,1fr) 66px 28px 116px;border-radius:12px 12px 0 0}.cb-in-match .cb-table-header{font-size:8px;flex-wrap:nowrap;padding:4px 6px}.cb-in-match .cb-table-header>span{max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-in-match .cb-practice-time{font-size:8px}.cb-in-match .cb-turn-clock{font-size:8px;min-width:78px}.cb-in-match .cb-turn-clock b{font-size:16px}.cb-in-match .cb-hero-row{grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);gap:4px}.cb-in-match .cb-battle-hero{width:58px;min-height:58px;padding:3px}.cb-in-match .cb-battle-hero .cb-hero-portrait{width:52px;height:52px}.cb-in-match .cb-battle-hero .cb-hero-hp{width:25px;min-height:28px;font-size:18px;right:-3px}.cb-in-match .cb-battle-resources{flex-direction:column;gap:3px;align-items:flex-start;max-width:none}.cb-in-match .cb-mana-pool,.cb-in-match .cb-battle-resources .cb-other-mana{font-size:10px;padding:3px 6px;white-space:nowrap;min-height:0}.cb-in-match .cb-battle-resources .cb-mana-pool small{font-size:8px}.cb-in-match .cb-card-counts{font-size:7px;padding:2px 5px;min-width:82px;gap:0}.cb-in-match .cb-card-counts b{font-size:9px}.cb-in-match .cb-card-counts>span{gap:4px}.cb-in-match .cb-enemy-power{font-size:8px;padding:3px 5px;max-width:125px}.cb-in-match .cb-enemy-power small{font-size:7px;line-height:1.3}.cb-in-match .cb-power-button{min-height:55px!important;padding:4px 5px!important;gap:2px;box-shadow:inset 0 0 0 1px #efd79344,0 3px 0 #3e4934}.cb-in-match .cb-power-button strong{font-size:8px}.cb-in-match .cb-power-button span{font-size:7px;line-height:1.3}.cb-in-match .cb-power-button small{display:none}.cb-in-match .cb-power-emblem{width:17px;height:17px;padding:2px;right:-2px;top:-3px}.cb-in-match .cb-board{gap:6px;padding:3px 2px 8px}.cb-in-match .cb-unit{padding:3px 4px 15px;border-width:3px}.cb-in-match .cb-unit-art{width:calc(var(--unit-width) - 19px);height:calc(var(--unit-width) - 19px)}.cb-in-match .cb-unit strong{font-size:8px;padding:2px}.cb-in-match .cb-unit small{font-size:6px}.cb-in-match .cb-unit .cb-attack,.cb-in-match .cb-unit .cb-health{width:22px;height:23px;font-size:14px}.cb-in-match .cb-unit-grade{font-size:7px;min-width:21px;padding:2px}.cb-in-match .cb-board>p{font-size:8px;padding:4px 8px}.cb-in-match .cb-board-divider{font-size:7px}.cb-in-match .cb-turn-bar{gap:4px}.cb-in-match .cb-turn-bar>span{font-size:8px;max-width:calc(100% - 115px);padding:3px 5px}.cb-in-match .cb-turn-bar .cb-button{font-size:8px;padding:3px 6px;min-height:23px}.cb-hand-dock .cb-section-top{height:20px;padding:3px 4px}.cb-hand-dock .cb-section-top>small{font-size:7px}.cb-hand-dock .cb-section-top h3{font-size:9px}.cb-hand-dock .cb-hand{height:96px;display:flex;overflow-x:auto;overflow-y:hidden;gap:0;padding:0 5px;scrollbar-width:none}.cb-hand-dock .cb-card{position:relative;left:auto;bottom:auto;flex:0 0 110px;width:110px;min-height:193px;height:193px;margin-right:-25px;transform:none;transform-origin:50% 100%;grid-template-rows:22px 16px 80px 1fr 22px;padding:5px 6px;gap:1px}.cb-hand-dock .cb-card-art{width:80px;height:80px}.cb-hand-dock .cb-card-name{font-size:9px}.cb-hand-dock .cb-card:hover,.cb-hand-dock .cb-card:focus-visible,.cb-hand-dock .cb-card.selected,.cb-hand-dock .cb-card.cb-drag-source{transform:none}.cb-hand-dock .cb-card:last-child{margin-right:0}.cb-in-match .cb-log{right:95px;top:8px;font-size:9px}.cb-card-peek{width:190px}.cb-card-peek .cb-card-art{width:145px;height:145px}}
@media(max-height:650px){.cb-in-match .cb-table{--unit-width:82px;grid-template-rows:25px 58px minmax(0,1fr) var(--battle-divider-height,12px) minmax(0,1fr) 58px 26px 100px}.cb-in-match .cb-hero-row{padding:0}.cb-in-match .cb-battle-hero{width:56px;min-height:56px;padding:3px}.cb-in-match .cb-battle-hero .cb-hero-portrait{width:50px;height:50px}.cb-in-match .cb-battle-hero .cb-hero-hp{width:25px;min-height:28px;font-size:18px}.cb-in-match .cb-power-button{min-height:48px!important}.cb-in-match .cb-power-button small{display:none}.cb-in-match .cb-hand-dock .cb-section-top{height:18px}.cb-in-match .cb-hand-dock .cb-hand{height:82px}.cb-in-match .cb-hand-dock .cb-card{bottom:-114px}.cb-in-match .cb-hand-dock .cb-card:hover,.cb-in-match .cb-hand-dock .cb-card:focus-visible,.cb-in-match .cb-hand-dock .cb-card.selected{transform:translateX(-50%) translateY(-90px) rotate(0deg)}}
@media(max-height:650px) and (max-width:700px){.cb-in-match .cb-table{--unit-width:64px}.cb-in-match .cb-hand-dock .cb-card{bottom:auto}.cb-in-match .cb-hand-dock .cb-card:hover,.cb-in-match .cb-hand-dock .cb-card:focus-visible,.cb-in-match .cb-hand-dock .cb-card.selected{transform:none}}
@media(prefers-reduced-motion:reduce){.cb-hand-dock .cb-card{transition:none}}

.cb-fx-damage.cb-fx-strength-heavy,.cb-fx-damage.cb-fx-strength-crushing{color:#fff0bc;-webkit-text-stroke:2px #822d25;text-shadow:0 4px 0 #84271f,0 8px 18px #351612cc}.cb-fx-strength-crushing{letter-spacing:-3px}
.cb-in-match .cb-board{--unit-width:inherit;justify-content:safe center}

/* Fixed hand limits permit declarative layout without inline style attributes. */
.cb-hand-dock .cb-hand{--hand-count:1}.cb-hand-dock .cb-card{--hand-index:0;--hand-tilt:calc((var(--hand-index) - (var(--hand-count) - 1)/2)*2.4deg)}
.cb-hand-dock .cb-hand[data-count="1"]{--hand-count:1}.cb-hand-dock [data-index="0"]{--hand-index:0}
.cb-hand-dock .cb-hand[data-count="2"]{--hand-count:2}.cb-hand-dock [data-index="1"]{--hand-index:1}
.cb-hand-dock .cb-hand[data-count="3"]{--hand-count:3}.cb-hand-dock [data-index="2"]{--hand-index:2}
.cb-hand-dock .cb-hand[data-count="4"]{--hand-count:4}.cb-hand-dock [data-index="3"]{--hand-index:3}
.cb-hand-dock .cb-hand[data-count="5"]{--hand-count:5}.cb-hand-dock [data-index="4"]{--hand-index:4}
.cb-hand-dock .cb-hand[data-count="6"]{--hand-count:6}.cb-hand-dock [data-index="5"]{--hand-index:5}
.cb-hand-dock .cb-hand[data-count="7"]{--hand-count:7}.cb-hand-dock [data-index="6"]{--hand-index:6}
.cb-hand-dock .cb-hand[data-count="8"]{--hand-count:8}.cb-hand-dock [data-index="7"]{--hand-index:7}
.cb-hand-dock .cb-hand[data-count="9"]{--hand-count:9}.cb-hand-dock [data-index="8"]{--hand-index:8}
.cb-hand-dock .cb-hand[data-count="10"]{--hand-count:10}.cb-hand-dock [data-index="9"]{--hand-index:9}
@media(min-width:701px){.cb-hand-dock .cb-card:hover:not(.selected):not(:focus-visible){transform:translateX(-50%) rotate(var(--hand-tilt));z-index:60;box-shadow:0 0 0 2px #efd893,0 8px 20px #101710bb}}
body:has(.cb-in-match) .workspace>:not(.cb-in-match),body:has(.cb-in-match) .main>:not(.workspace),body:has(.cb-in-match) .sidebar,body:has(.cb-in-match) .mobile-nav{visibility:hidden}
.cb-in-match .cb-table{overflow:clip}
@media(max-width:700px){.cb-in-match .cb-hand-dock .cb-card{min-height:96px;height:96px}}
@media(max-width:700px) and (max-height:650px){.cb-in-match .cb-hand-dock .cb-card{min-height:82px;height:82px}}

@media(max-height:480px){.cb-root.cb-in-match{grid-template-rows:30px minmax(0,1fr)}.cb-in-match .cb-header{padding-block:2px}.cb-in-match .cb-battle-tools{height:20px;padding-block:0}.cb-in-match .cb-battle-tools .cb-button{min-height:18px;font-size:8px;padding:1px 6px}.cb-in-match .cb-log{top:4px;font-size:8px}.cb-in-match .cb-table{--unit-width:clamp(44px,calc(44px + (100dvh - 390px)*.3),70px);padding-block:4px 0;grid-template-rows:22px 42px minmax(0,1fr) var(--battle-divider-height,8px) minmax(0,1fr) 42px 22px 55px}.cb-in-match .cb-table-header{font-size:8px;padding:2px 5px}.cb-in-match .cb-turn-clock b{font-size:13px}.cb-in-match .cb-hero-row{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);gap:4px}.cb-in-match .cb-battle-hero{width:42px;min-height:42px;padding:3px}.cb-in-match .cb-battle-hero .cb-hero-portrait{width:36px;height:36px}.cb-in-match .cb-battle-hero .cb-hero-hp{width:21px;min-height:23px;font-size:15px;right:-3px}.cb-in-match .cb-battle-resources{flex-direction:row;align-items:center;gap:4px}.cb-in-match .cb-card-counts{font-size:7px;padding:2px 4px;min-width:80px;gap:0}.cb-in-match .cb-card-counts b{font-size:8px}.cb-in-match .cb-mana-pool,.cb-in-match .cb-other-mana{font-size:10px;padding:3px 5px}.cb-in-match .cb-power-button{min-height:37px!important;padding:3px 6px!important;gap:1px}.cb-in-match .cb-power-button strong,.cb-in-match .cb-enemy-power{font-size:8px}.cb-in-match .cb-power-button span,.cb-in-match .cb-enemy-power small{font-size:7px}.cb-in-match .cb-power-emblem{display:none}.cb-in-match .cb-board{padding:0 2px 5px;gap:6px}.cb-in-match .cb-unit{padding:2px 3px 10px;border-width:2px;min-height:0}.cb-in-match .cb-unit-art{width:calc(var(--unit-width) - 12px);height:calc(var(--unit-width) - 12px);border-width:1px}.cb-in-match .cb-unit strong{font-size:6px;padding:1px;line-height:1.15}.cb-in-match .cb-unit small{display:none}.cb-in-match .cb-unit-grade{font-size:6px;min-width:17px;padding:1px}.cb-in-match .cb-unit .cb-attack,.cb-in-match .cb-unit .cb-health{width:17px;height:18px;font-size:11px;border-width:1px}.cb-in-match .cb-turn-bar .cb-button{font-size:8px;min-height:19px;padding:2px 6px}.cb-in-match .cb-turn-bar>span{font-size:8px;padding:1px 5px}.cb-in-match .cb-hand-dock .cb-section-top{height:16px;padding-block:1px}.cb-in-match .cb-hand-dock .cb-hand{height:39px}.cb-in-match .cb-hand-dock .cb-card{bottom:-164px;grid-template-columns:25px minmax(0,1fr);grid-template-rows:25px 52px 1fr 22px}.cb-in-match .cb-hand-dock .cb-card-top{grid-row:1;grid-column:1}.cb-in-match .cb-hand-dock .cb-card-meta{display:none}.cb-in-match .cb-hand-dock .cb-card-name{grid-row:1;grid-column:2;align-self:center;font-size:9px}.cb-in-match .cb-hand-dock .cb-card-art{grid-row:2;grid-column:1 / -1;width:52px;height:52px}.cb-in-match .cb-hand-dock .cb-card>p{grid-row:3;grid-column:1 / -1}.cb-in-match .cb-hand-dock .cb-card-bottom{grid-row:4;grid-column:1 / -1}}
@media(max-height:480px) and (max-width:700px){.cb-in-match .cb-hand-dock .cb-card{bottom:auto;min-height:39px;height:39px}.cb-in-match .cb-battle-resources{flex-direction:column;gap:1px}.cb-in-match .cb-card-counts{min-width:70px;font-size:6px}.cb-in-match .cb-mana-pool,.cb-in-match .cb-battle-resources .cb-other-mana{font-size:8px;padding:1px 3px}}


/* A sprite cell always remains square, including fixed-height card windows. */
.cb-illustration{height:auto!important;aspect-ratio:1!important;flex-shrink:0}
.cb-card-art,.cb-unit-art,.cb-hero-portrait,.cb-row-art,.cb-appearance-preview,.cb-npc>span{display:grid;align-content:center;overflow:hidden}
.cb-deck-card .cb-card-art{height:auto;aspect-ratio:1}
.cb-unit-art{height:auto;aspect-ratio:1}
.cb-deck-class-select{display:block;font-size:11px;margin-bottom:12px;color:#ded1ae}
.cb-deck-class-select select{width:100%;margin-top:6px}

/* Keep the final battlefield on screen and put rewards in its centre. */
.cb-result-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:#0b120fba;backdrop-filter:blur(5px);overflow:auto}
.cb-result-overlay .cb-result{width:min(520px,100%);display:grid;justify-items:center;text-align:center;gap:18px;padding:38px 28px;margin:0;border:2px solid #e1c684;border-radius:22px;background:radial-gradient(ellipse at top,#5b6140,#242e25 75%);box-shadow:0 20px 80px #0009,inset 0 0 0 5px #e7d28a14}
.cb-result-overlay .cb-result>span{width:66px}.cb-result-overlay .cb-result h2{font-size:34px;margin:12px 0}.cb-result-overlay .cb-result p{font-size:12px;margin:0}
.cb-result-rewards{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px}.cb-result-rewards>span{padding:12px 16px;background:#111e17aa;border:1px solid #b8a373;border-radius:12px;color:#f1ddb0;font-size:12px}.cb-result-rewards b{font-size:25px;margin:0 4px;color:#fff0c0}
.cb-result-overlay .cb-primary{min-width:220px;padding:13px 20px}
@media(min-width:701px) and (min-height:651px){
 .cb-in-match .cb-table{--commander-size:clamp(96px,12.5dvh,128px);--unit-width:clamp(82px,calc((100dvh - 428px)*.29),138px);grid-template-rows:25px calc(var(--commander-size) + 8px) minmax(0,1fr) var(--battle-divider-height,16px) minmax(0,1fr) calc(var(--commander-size) + 8px) 30px 110px}
 .cb-in-match .cb-hero-row{grid-template-columns:minmax(0,1fr) calc(var(--commander-size) + 12px) minmax(0,1fr)}
 .cb-in-match .cb-battle-hero{width:calc(var(--commander-size) + 8px);min-height:calc(var(--commander-size) + 8px);padding:4px}
 .cb-in-match .cb-battle-hero .cb-hero-portrait{width:var(--commander-size);height:var(--commander-size)}
 .cb-in-match .cb-battle-hero .cb-hero-hp{width:42px;min-height:44px;font-size:29px;right:-5px;bottom:1px}
 .cb-in-match .cb-hand-dock .cb-hand{height:86px}
}
@media(max-width:560px){.cb-result-overlay{padding:14px}.cb-result-overlay .cb-result{padding:28px 18px;gap:12px}.cb-result-overlay .cb-result h2{font-size:26px}.cb-result-rewards{gap:8px}.cb-result-rewards>span{padding:10px 12px}}

/* The commander ability stays compact beside its portrait instead of filling the row. */
.cb-in-match .cb-own-commander .cb-power-area{width:min(100%,240px);justify-self:start}

/* Shield is distinct from attack readiness and rarity, without changing geometry. */
.cb-shield-shell,.cb-shield-badge{display:none;pointer-events:none}
.cb-shielded .cb-shield-shell{display:block;position:absolute;inset:-4px;z-index:3;border:3px solid #9beaff;border-radius:46% 46% 32% 32%;background:linear-gradient(135deg,#b8f4ff50,transparent 35%,#53bde52b 70%,#d8faff70);box-shadow:0 0 0 2px #187198,inset 0 0 18px #78dfff99,0 0 14px #44c7ffb3}
.cb-shielded .cb-shield-badge{display:block;position:absolute;z-index:4;top:28px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:3px 7px;border:1px solid #d3f9ff;border-radius:12px;background:#064b6ee8;color:#effcff;font-size:10px;font-weight:800;box-shadow:0 2px 7px #002331aa}
.cb-shielded{outline:none!important}
.cb-shield-shatter{position:fixed;z-index:1100;pointer-events:none;border:4px solid #a6edff;border-radius:45%;box-shadow:0 0 22px #4ddaff,inset 0 0 14px #87eaff}

/* The fixed hand dock owns hover, so lifting cards cannot toggle their own hit area. */
@media(min-width:701px) and (hover:hover) and (pointer:fine){
/* Keep all commander sizes and grid rows exactly as before. Lift only the hand. */
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-section-top{visibility:hidden}
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card{bottom:6px;height:168px;min-height:168px;grid-template-rows:22px 16px 76px 1fr 22px;padding:6px;gap:1px;--hand-tilt:calc((var(--hand-index) - (var(--hand-count) - 1)/2)*1deg);transition:bottom .24s ease,transform .14s ease}
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-art{width:76px;height:76px}
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card>p{font-size:8px;line-height:1.15}
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-name{font-size:10px;line-height:1.2}
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-mana{width:22px;height:22px;min-width:22px;font-size:13px}
.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card.selected,.cb-in-match .cb-hand-dock:where(:hover,:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card:focus-visible{transform:translateX(-50%) translateY(-10px) rotate(0deg)}

}
@media(max-width:700px),(hover:none){
/* Keep all commander sizes and grid rows exactly as before. Lift only the hand. */
.cb-in-match .cb-hand-active .cb-section-top{visibility:hidden}
.cb-in-match .cb-hand-active .cb-card{bottom:6px;height:168px;min-height:168px;grid-template-rows:22px 16px 76px 1fr 22px;padding:6px;gap:1px;--hand-tilt:calc((var(--hand-index) - (var(--hand-count) - 1)/2)*1deg);transition:bottom .24s ease,transform .14s ease}
.cb-in-match .cb-hand-active .cb-card-art{width:76px;height:76px}
.cb-in-match .cb-hand-active .cb-card>p{font-size:8px;line-height:1.15}
.cb-in-match .cb-hand-active .cb-card-name{font-size:10px;line-height:1.2}
.cb-in-match .cb-hand-active .cb-mana{width:22px;height:22px;min-width:22px;font-size:13px}
.cb-in-match .cb-hand-active .cb-card.selected,.cb-in-match .cb-hand-active .cb-card:focus-visible{transform:translateX(-50%) translateY(-10px) rotate(0deg)}

}

/* Status moves closer; portraits and their health badges are untouched. */
.cb-in-match .cb-battle-resources{width:min(100%,128px);min-width:0;justify-self:end;flex-direction:column;align-items:stretch;gap:3px}
.cb-in-match .cb-card-counts{font-size:9px;min-width:0;padding:3px 6px}.cb-in-match .cb-card-counts b{font-size:12px}.cb-in-match .cb-card-counts .cb-count-short{display:none}
.cb-in-match .cb-mana-pool,.cb-in-match .cb-other-mana{font-size:12px;padding:3px 6px!important}
@media(max-width:700px){
 .cb-in-match .cb-hand-active .cb-hand{position:absolute;inset-inline:0;bottom:6px;height:146px;align-items:start}
 .cb-in-match .cb-hand-active .cb-card{height:146px;min-height:146px;bottom:auto;grid-template-rows:22px 16px 72px 22px;padding:5px;gap:2px;transform:none!important}
 .cb-in-match .cb-hand-active .cb-card-art{width:72px;height:72px}.cb-in-match .cb-hand-active .cb-card>p{display:none}.cb-in-match .cb-hand-active .cb-card-bottom{grid-row:4}
 .cb-in-match .cb-battle-resources{width:84px;gap:2px}.cb-in-match .cb-card-counts{font-size:7px;padding:2px 3px;display:flex;flex-direction:row;gap:3px;justify-content:space-between}.cb-in-match .cb-card-counts b{font-size:9px}
 .cb-in-match .cb-card-counts .cb-count-label{display:none}.cb-in-match .cb-card-counts .cb-count-short{display:inline}.cb-in-match .cb-mana-pool,.cb-in-match .cb-other-mana{font-size:10px;padding:2px 3px}
 .cb-in-match .cb-shielded .cb-shield-badge{top:20px;font-size:8px;padding:2px 4px}
}
@media(min-width:701px) and (min-height:481px) and (max-height:650px){
 .cb-in-match .cb-table{--unit-width:clamp(48px,calc((100dvh - 440px)*.35),62px)}
 .cb-in-match .cb-battle-resources{gap:2px}.cb-in-match .cb-card-counts{font-size:8px;padding:2px 4px}.cb-in-match .cb-card-counts b{font-size:10px}.cb-in-match .cb-mana-pool,.cb-in-match .cb-other-mana{font-size:10px;padding:2px 4px!important}
 .cb-in-match .cb-unit{padding:2px 3px 12px;border-width:2px;min-height:0}.cb-in-match .cb-unit-art{width:calc(var(--unit-width) - 14px);height:calc(var(--unit-width) - 14px);border-width:1px}.cb-in-match .cb-unit strong{font-size:7px;padding:1px;line-height:1.15}.cb-in-match .cb-unit small{display:none}.cb-in-match .cb-unit .cb-attack,.cb-in-match .cb-unit .cb-health{width:19px;height:20px;font-size:12px;border-width:1px}
}
@media(max-height:480px){
 .cb-in-match .cb-battle-resources{width:min(100%,180px);flex-direction:row;align-items:center}.cb-in-match .cb-card-counts{font-size:6px;padding:1px 3px}.cb-in-match .cb-card-counts b{font-size:8px}.cb-in-match .cb-mana-pool,.cb-in-match .cb-other-mana{font-size:9px;padding:2px 3px}
}
@media(max-width:700px) and (min-height:481px) and (max-height:650px){.cb-in-match .cb-own-commander .cb-battle-resources{min-height:62px;justify-content:center}}

/* Combat cues overlay the existing cards; commander and board geometry stay unchanged. */
.cb-unit-key{position:absolute;top:0;left:0;z-index:7;display:grid;place-items:center;width:27px;height:27px;border:2px solid #e5edd8;border-radius:8px;background:#283329;color:#d7dccf;font-size:17px;font-weight:900;line-height:1;box-shadow:0 2px 5px #10231999;pointer-events:none}
.cb-unit-ready .cb-unit-key{background:#126c3b;border-color:#b9ffd1;color:#fff}
.cb-unit-action,.cb-guard-notice{position:absolute;top:calc(var(--unit-width) - 35px);left:50%;transform:translateX(-50%);z-index:6;white-space:nowrap;pointer-events:none;border:2px solid;border-radius:6px;padding:3px 7px;font-size:12px;font-weight:900;line-height:1.2;box-shadow:0 3px 7px #101a1199;text-shadow:0 1px #0c1b12}
.cb-unit-action{display:none;background:#0c6c3cf5;border-color:#a8ffcb;color:#effff4}
.cb-unit-ready .cb-unit-action{display:block}
.cb-action-selected{display:none}.cb-unit.selected .cb-action-idle,.cb-unit.cb-drag-source .cb-action-idle{display:none}.cb-unit.selected .cb-action-selected,.cb-unit.cb-drag-source .cb-action-selected{display:inline}
.cb-unit.cb-unit-ready{outline:3px solid #5df39d;outline-offset:2px;box-shadow:0 5px 0 #315a32,0 0 0 3px #146e40,0 0 23px #5bf29d9c,0 8px 13px #132b1970}
.cb-unit.cb-unit-ready.selected{outline:4px solid #eafff1;outline-offset:3px;box-shadow:0 5px 0 #315a32,0 0 0 4px #29d974,0 0 28px #8effbabb}.cb-unit.selected .cb-unit-key{background:#ecfff0;color:#14512d;border-color:#4ded91}
.cb-guard-notice{display:flex;align-items:center;gap:3px;background:#8b3315f7;border-color:#ffdd94;color:#fff2ca;text-shadow:0 1px #45150a}
.cb-guard-notice svg{width:17px;height:17px;stroke-width:2.4;flex:none}
.cb-unit.cb-priority-guard{border-color:#f1bd69;box-shadow:0 5px 0 #683b23,0 0 0 2px #b16b33,0 0 17px #ffb95277,0 8px 13px #291c1570}
.cb-unit.cb-guard-target{outline:4px solid #ffc566!important;outline-offset:2px;box-shadow:0 0 0 3px #9b3920,0 0 24px #ffb53cab,0 8px 13px #291c1570}.cb-guard-target .cb-guard-notice{background:#bb3810;border-color:#ffe1a1;box-shadow:0 0 12px #ffbd6a99}
@media(max-width:700px){
 .cb-in-match .cb-unit-key{width:23px;height:23px;font-size:14px;border-radius:6px}
 .cb-in-match .cb-unit-action,.cb-in-match .cb-guard-notice{font-size:10px;padding:2px 4px;border-width:1px;top:calc(var(--unit-width) - 35px)}
 .cb-in-match .cb-guard-notice svg{width:13px;height:13px}
}
@media(max-height:650px) and (min-width:701px),(max-height:480px){
 .cb-in-match .cb-unit-key{width:18px;height:18px;font-size:11px;border-width:1px;border-radius:4px}
 .cb-in-match .cb-unit-action,.cb-in-match .cb-guard-notice{font-size:7px;padding:2px;border-width:1px;top:calc(var(--unit-width) - 24px);gap:1px}
 .cb-in-match .cb-guard-notice svg{width:9px;height:9px}
 .cb-in-match .cb-shielded .cb-shield-badge{top:16px;font-size:6px;padding:1px 3px}
}

@media(max-height:480px) and (max-width:700px),(max-height:480px) and (hover:none){
 .cb-in-match .cb-hand-active .cb-hand{position:absolute;inset-inline:0;bottom:6px;height:66px}
 .cb-in-match .cb-hand-active .cb-card{height:66px;min-height:66px;bottom:auto;grid-template-columns:22px 1fr;grid-template-rows:16px 24px 16px;padding:3px;gap:1px}
 .cb-in-match .cb-hand-active .cb-card-top{grid-column:1;grid-row:1}.cb-in-match .cb-hand-active .cb-mana{width:16px;height:16px;min-width:16px;font-size:10px}
 .cb-in-match .cb-hand-active .cb-card-name{grid-column:2;grid-row:1;font-size:8px}.cb-in-match .cb-hand-active .cb-card-art{grid-column:1 / -1;grid-row:2;width:24px;height:24px}.cb-in-match .cb-hand-active .cb-card>p{display:none}
 .cb-in-match .cb-hand-active .cb-card-bottom{grid-column:1 / -1;grid-row:3}.cb-in-match .cb-hand-active .cb-card-bottom .cb-attack,.cb-in-match .cb-hand-active .cb-card-bottom .cb-health{width:16px;height:16px;font-size:10px}
}
@media(max-height:480px) and (min-width:701px) and (hover:hover) and (pointer:fine){
 .cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-hand{position:absolute;inset-inline:0;bottom:6px;height:66px}
 .cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card{height:66px;min-height:66px;bottom:auto;grid-template-columns:22px 1fr;grid-template-rows:16px 24px 16px;padding:3px;gap:1px}
 .cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-top{grid-column:1;grid-row:1}.cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-mana{width:16px;height:16px;min-width:16px;font-size:10px}
 .cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-name{grid-column:2;grid-row:1;font-size:8px}.cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-art{grid-column:1 / -1;grid-row:2;width:24px;height:24px}.cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card>p{display:none}
 .cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-bottom{grid-column:1 / -1;grid-row:3}.cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-bottom .cb-attack,.cb-in-match .cb-hand-dock:where(:has(.cb-card:hover),:has(.cb-card:focus-visible),:has(.cb-drag-source)) .cb-card-bottom .cb-health{width:16px;height:16px;font-size:10px}
}

@media(min-width:701px) and (hover:hover) and (pointer:fine){
 .cb-in-match .cb-hand-dock:not(:hover):not(:has(.cb-card:focus-visible)):not(:has(.cb-drag-source)) .cb-card.selected{transform:translateX(-50%) rotate(var(--hand-tilt))}
}
/* Enemy ability information sits beside the portrait and opens on demand. */
.cb-in-match .cb-enemy-ability{position:relative;grid-column:3;justify-self:start;align-self:center;width:34px;z-index:25}
.cb-in-match .cb-enemy-ability-button{display:grid;place-items:center;width:34px;height:34px;padding:6px;border:1px solid #d5bd82;border-radius:50%;background:#304335ed;color:#f0d799;box-shadow:0 3px 8px #17231688}
.cb-enemy-ability-button svg{width:100%;height:100%}
.cb-in-match .cb-enemy-ability .cb-enemy-power{display:none;position:absolute;top:calc(100% + 8px);right:0;z-index:70;width:240px;max-width:calc(100vw - 24px);padding:10px;background:#252c24f5;font-size:11px;text-align:left;box-shadow:0 6px 18px #0006}
.cb-in-match .cb-enemy-ability .cb-enemy-power small{display:block;font-size:10px;line-height:1.6;margin-top:4px}
.cb-in-match .cb-enemy-ability:hover .cb-enemy-power,.cb-in-match .cb-enemy-ability:has(.cb-enemy-ability-button:focus-visible) .cb-enemy-power,.cb-in-match .cb-enemy-ability[data-open="true"] .cb-enemy-power{display:block}
.cb-ability-reveal{position:fixed;z-index:1500;left:50%;top:50%;transform:translate(-50%,-50%);width:270px;max-width:calc(100vw - 24px);padding:18px;text-align:center;background:#252c23f5;border:1px solid #d8bd81;box-shadow:0 12px 45px #0009;pointer-events:none}
.cb-ability-reveal .cb-ability-emblem{display:block;width:44px;height:44px;margin:6px auto;color:#efd99d}.cb-ability-emblem svg{width:100%;height:100%}
.cb-ability-reveal h3{font-size:18px;margin:8px 0}.cb-ability-reveal p{font-size:12px;margin:0;color:#eee5ce}.cb-ability-reveal small{display:block;font-size:11px;color:#f0d799;margin-top:8px}
@media(max-width:700px){.cb-in-match .cb-enemy-ability{width:28px}.cb-in-match .cb-enemy-ability-button{width:28px;height:28px;padding:5px}.cb-in-match .cb-enemy-ability .cb-enemy-power{width:200px}}
@media(prefers-reduced-motion:reduce){.cb-in-match .cb-hand-dock .cb-card{transition:none!important}}

/* Playback controls and ability artwork do not change commander/board geometry. */
.cb-power-art{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1;border-radius:inherit}
.cb-in-match .cb-power-emblem{overflow:hidden;padding:0}
.cb-in-match .cb-enemy-ability-button{padding:0;overflow:hidden}
.cb-ability-reveal .cb-ability-emblem{width:160px;height:160px;overflow:hidden;border-radius:12px;border:1px solid #b99c68;box-shadow:0 4px 18px #0005}
.cb-speed-button{white-space:nowrap;font-variant-numeric:tabular-nums}
.cb-speed-button:disabled{opacity:.65}
.cb-action-target{outline:3px solid #ffe2a0!important;outline-offset:4px;box-shadow:0 0 0 7px #e65f3544,0 0 22px #ffae5d88!important}
.cb-board-divider[data-action-note]{color:#fff1c8;font-size:12px;font-weight:700;text-shadow:0 1px 3px #000;background:#263122dd}
/* Keep the turn control beside the battlefield, above the hand dock. */
.cb-in-match .cb-board-divider{position:relative}
.cb-in-match .cb-board-divider>span{min-width:0;max-width:calc(100% - 240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cb-in-match .cb-end-turn{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:12;width:110px;min-height:52px;padding:10px 8px;border-radius:14px;font-size:13px;line-height:1.35;letter-spacing:0;text-shadow:none;touch-action:manipulation;box-shadow:0 4px 0 #51462b,0 6px 14px #10171099}
@media(max-width:700px){
 .cb-in-match .cb-board-divider>span{max-width:calc(100% - 180px)}
 .cb-in-match .cb-end-turn{width:84px;min-height:48px;padding:8px 6px;font-size:11px;border-radius:12px}
 .cb-in-match .cb-turn-bar>span{max-width:100%}
}
@media(max-width:700px){.cb-ability-reveal .cb-ability-emblem{width:140px;height:140px}.cb-board-divider[data-action-note]{font-size:9px}.cb-in-match .cb-speed-button{font-size:9px!important}}

.cb-ability-reveal p{word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;line-height:1.6}

/* Recovery and result cues overlay the existing geometry. */
.cb-fx-recovery{position:fixed;z-index:1115;pointer-events:none;border:3px solid #c0efba;border-radius:30%;background:radial-gradient(ellipse at bottom,#e5ffb57d,transparent 65%);box-shadow:0 0 24px #97ed9d88,inset 0 0 20px #bdf29377}
.cb-fx-siphon{border-color:#e5b5d3;background:radial-gradient(ellipse at bottom,#e7a8c865,transparent 65%);box-shadow:0 0 20px #d78bad66,inset 0 0 15px #e5b9d266}
.cb-audio-credits{font-size:10px;color:#cbc4ab}
.cb-result-overlay .cb-result{animation:cb-result-arrive .38s ease-out both}
@keyframes cb-result-arrive{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.cb-result-overlay .cb-result{animation:none}.cb-fx-recovery{box-shadow:none}}

/* Catalogue cards share footer baselines even when text or golden controls differ. */
.cb-card-catalog>.cb-collection-item{display:flex;flex-direction:column}
.cb-card-catalog>.cb-collection-item>.cb-card{flex:1}
.cb-card-catalog>.cb-collection-item>.cb-craft{margin-top:auto;width:100%}
@supports(grid-template-rows:subgrid){
 .cb-card-catalog>.cb-collection-item{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
 .cb-card-catalog>.cb-collection-item>.cb-card{grid-row:1;height:100%}
 .cb-card-catalog>.cb-collection-item>.cb-owned{grid-row:2}
 .cb-card-catalog>.cb-collection-item>.cb-finish-select{grid-row:3}
 .cb-card-catalog>.cb-collection-item>.cb-craft{grid-row:4;align-self:end;margin-top:0}
}

/* Touch cards use a deliberate hold to drag; short swipes move the hand. */
.cb-hand [data-cb="card"],.cb-table [data-cb="unit"],.cb-table [data-cb="power"]{touch-action:none;-webkit-touch-callout:none}
.cb-touch-drag-ghost{position:fixed!important;z-index:1200!important;pointer-events:none!important;margin:0!important;transform:rotate(-3deg)!important;opacity:.94;box-shadow:0 12px 28px #0009;transition:none!important;animation:none!important}

/* A lifted mobile card remains readable and never intercepts its drop target. */
.cb-card-peek[data-pinned="true"] .cb-card{touch-action:none;-webkit-touch-callout:none}
.cb-touch-card{position:fixed;z-index:1600;width:160px;max-width:46vw;overflow:visible;border:0;background:none;box-shadow:none;pointer-events:none!important;user-select:none;transform:rotate(-2deg)}
.cb-touch-card *{pointer-events:none!important}
.cb-touch-card .cb-card{width:100%;min-height:230px;padding:7px;box-shadow:0 12px 30px #0009;opacity:.96}
.cb-touch-card .cb-card-art{width:112px;height:112px;max-width:100%;margin-inline:auto}
.cb-touch-card .cb-card-name{font-size:11px}.cb-touch-card .cb-card>p{display:block;font-size:10px;line-height:1.4}
.cb-drag-label{display:block;margin-top:5px;padding:6px 8px;border-radius:7px;background:#17231ef2;color:#fff4d4;text-align:center;font-size:11px;font-weight:700}
.cb-drag-valid .cb-card{outline:3px solid #8cebb0}.cb-drag-valid .cb-drag-label{background:#215c37;color:#edfff1}
@media(max-height:480px){.cb-touch-card{width:135px}.cb-touch-card .cb-card{min-height:175px}.cb-touch-card .cb-card-art{width:75px;height:75px}}

/* Bring the central controls and own side lower without moving the hand. */
@media(min-width:701px) and (min-height:651px){
 .cb-in-match .cb-table{--own-side-lower:clamp(0px,calc((100dvh - 650px)*.16),24px)}
 .cb-in-match .cb-board-divider{top:var(--own-side-lower)}
 .cb-in-match .cb-own-board{position:relative;top:calc(var(--own-side-lower)*.75)}
 .cb-in-match .cb-own-commander{position:relative;top:calc(var(--own-side-lower)*.5)}
}

/* Acquisition guidance occupies its own row, never an implicit second column. */
.cb-card-catalog>.cb-collection-item{min-width:0}
.cb-card-catalog>.cb-collection-item>.cb-card{width:100%;min-width:0}
.cb-card-catalog .cb-acquisition{display:block;text-align:center;font-size:10px;color:#b7cbe5;padding:6px 0;overflow-wrap:anywhere}
@supports(grid-template-rows:subgrid){
 .cb-card-catalog>.cb-collection-item{grid-template-columns:minmax(0,1fr)}
 .cb-card-catalog>.cb-collection-item>*{grid-column:1}
 .cb-card-catalog>.cb-collection-item>.cb-acquisition{grid-row:4;align-self:end}
}

/* Actual discounted cost stays visible in the hand, preview and drag card. */
.cb-root .cb-mana.cb-cost-reduced{position:relative;overflow:visible;background:linear-gradient(145deg,#267c35,#104b28)!important;color:#caff91!important;border:2px solid #a8ff83!important;text-shadow:0 1px 2px #092d13;box-shadow:0 0 8px #8bef7077}
.cb-cost-saving{position:absolute;left:calc(100% - 2px);top:-4px;z-index:2;border-radius:4px;padding:1px 3px;background:#183f25;color:#caff91;font-size:9px;line-height:12px;white-space:nowrap;border:1px solid #a8ff83;pointer-events:none}
.cb-hand-dock .cb-card.cb-card-arrived{animation:cb-hand-arrival 2.2s ease-out}
@keyframes cb-hand-arrival{0%{translate:36px 0;opacity:.3;outline:3px solid #c8ecff}20%{translate:0 0;opacity:1;outline:3px solid #c8ecff}80%{outline:3px solid #c8ecff}100%{outline:3px solid transparent}}
@media(prefers-reduced-motion:reduce){.cb-hand-dock .cb-card.cb-card-arrived{animation:none;outline:2px solid #c8ecff}}

/* Dinosaur: dry canyon palette and individual maturation. */
.cb-card.cb-class-dinosaur{border-color:#b88757}
.cb-growth{position:absolute;left:4px;top:25px;z-index:4;background:#342419e8;border:1px solid #e8bd77;border-radius:5px;color:#ffe5b4;padding:2px 4px;font-size:9px;font-weight:700;pointer-events:none}
.cb-growth.is-mature{background:#174c48;color:#befff0;border-color:#74d5c4}
.cb-dino-protection{position:absolute;left:3px;bottom:28px;z-index:4;background:#1d414ddd;color:#c6f5ff;font-size:8px;padding:2px}
.cb-growth-detail{color:#caffdf!important;background:#24463c;padding:6px!important;border-radius:6px;font-size:10px!important}
.cb-region-dinosaur{--arena-image:url('/static/card-art/arena-dinosaur-v4.png')}
@media(max-width:700px){.cb-growth{top:20px;font-size:7px;padding:1px 2px}.cb-dino-protection{font-size:6px;bottom:23px}}

.cb-dino-guide{margin:12px 0;padding:10px 12px;border:1px solid #84724a;border-radius:8px;font-size:12px;line-height:1.65}.cb-dino-guide summary{cursor:pointer;color:#efd5a0}.cb-dino-guide p{margin:8px 0}

/* Battle-only dinosaur previews preserve the current stage beside adult reference. */
.cb-card-peek.cb-dino-comparison{width:min(430px,calc(100vw - 16px));box-sizing:border-box;max-height:calc(100dvh - 16px);overflow-y:auto}
.cb-dino-peek-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.cb-dino-peek-pair>div{min-width:0;display:flex;flex-direction:column}
.cb-dino-peek-pair .cb-growth-detail{font-size:11px;text-align:center;margin:0 0 5px;line-height:1.4}
.cb-dino-peek-pair .cb-card{box-sizing:border-box;min-width:0;flex:1}
.cb-card-peek .cb-dino-peek-pair .cb-card-art{width:min(155px,100%);height:auto;aspect-ratio:1;margin-inline:auto}
@media(max-width:440px){.cb-dino-peek-pair{gap:5px}.cb-dino-peek-pair .cb-card{padding:6px;min-height:260px}.cb-dino-peek-pair .cb-card-name{font-size:11px}.cb-dino-peek-pair .cb-card p{font-size:10px}.cb-dino-peek-pair .cb-growth-detail{font-size:10px}}

.cb-card-peek[data-pinned="true"] [data-cb-preview-only] .cb-card{touch-action:pan-y}

/* The regular hand floats over the arena; its count already lives beside the hero. */
/* Recycle counts are not part of the battle HUD, including learning modes. */
.cb-root.cb-in-match .cb-card-counts>span[title^="덱이 비면"]{display:none}
.cb-root.cb-in-match .cb-turn-bar>*{visibility:hidden!important}
.cb-root.cb-in-match .cb-hand-dock>.cb-section-top{visibility:hidden!important}
.cb-root.cb-in-match .cb-hand-dock>.cb-hand>p{display:none}
.cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-turn-bar:not(:has([data-cb="cancel"]))>span{visibility:hidden}
.cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock{background:transparent!important;border:0!important}
.cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock>.cb-section-top{display:none}
@media(min-width:701px) and (min-height:481px) and (hover:hover) and (pointer:fine){
 .cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock>.cb-hand{height:100%}
}
.cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock>.cb-hand>p{width:fit-content;margin:8px auto;padding:5px 10px;border-radius:8px;background:#253129dd;color:#f3e4bd;font-size:11px}

/* Remaining draw pile: separate from the playable hand, with no full-width panel. */
.cb-deck-pile{position:absolute;right:8px;bottom:10px;z-index:4;width:94px;display:flex;flex-direction:column;align-items:center;gap:9px;user-select:none;pointer-events:none}
.cb-deck-stack{position:relative;width:65px;height:88px;flex:none;border:1px dashed #ead4a278;border-radius:9px;box-shadow:inset 0 0 16px #39281120}
.cb-deck-back{display:block;box-sizing:border-box;position:absolute;inset:0;border:2px solid #ddbd78;border-radius:8px;background:repeating-linear-gradient(45deg,transparent 0 7px,#e5cc8612 7px 8px),linear-gradient(135deg,#377466,#163c39 55%,#102c34);box-shadow:inset 0 0 0 3px #183b36,inset 0 0 0 4px #c9ad6b90,0 3px 6px #291b1655}
.cb-deck-back::after{content:'◆';position:absolute;inset:0;display:grid;place-items:center;font-size:29px;color:#e1c783;text-shadow:0 2px 4px #081f23}
.cb-deck-stack>.cb-deck-back:nth-child(1){transform:translate(0,0) rotate(-6deg)}
.cb-deck-stack>.cb-deck-back:nth-child(2){transform:translate(-2px,-3px) rotate(-2deg)}
.cb-deck-stack>.cb-deck-back:nth-child(3){transform:translate(-4px,-6px) rotate(2deg)}
.cb-deck-stack>.cb-deck-back:nth-child(4){transform:translate(-6px,-9px) rotate(5deg)}
.cb-deck-label{white-space:nowrap;padding:4px 8px;border:1px solid #d9bd7966;border-radius:12px;background:#253b32e8;color:#f3e2bb;font-size:10px;line-height:16px;box-shadow:0 2px 5px #25191230}
.cb-deck-label b{font-size:16px;font-variant-numeric:tabular-nums;color:#fff0bb;margin-left:3px}.cb-deck-label small{font-size:10px;margin-left:2px}
.cb-deck-pile[data-depth="0"] .cb-deck-stack{background:#3b352d26}.cb-deck-pile[data-depth="0"] .cb-deck-label{color:#dfd3b9}
.cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-own-commander .cb-remaining-deck-row{display:none}
.cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock>.cb-hand{width:calc(100% - 116px);--hand-spread:clamp(18px,calc((100vw - 370px)/var(--hand-count)),94px)}
.cb-tutorial-mode .cb-deck-pile,.cb-learning-mode .cb-deck-pile{display:none}
.cb-deck-flight{position:fixed;inset:auto;z-index:1110;pointer-events:none;transform-origin:center;will-change:transform,opacity}
@media(max-width:700px){
 .cb-deck-pile{right:1px;bottom:12px;width:58px;gap:6px}.cb-deck-stack{width:36px;height:49px;border-radius:6px}.cb-deck-back{border-radius:5px;border-width:1px}.cb-deck-back::after{font-size:19px}
 .cb-deck-label{font-size:8px;padding:2px 4px;line-height:14px}.cb-deck-label b{font-size:12px;margin-left:1px}.cb-deck-label small{font-size:8px;margin-left:1px}
 .cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock>.cb-hand{width:calc(100% - 64px)}
}
@media(max-height:480px){
 .cb-deck-pile{bottom:5px;width:58px;right:2px;gap:4px}.cb-deck-stack{width:28px;height:37px}.cb-deck-back::after{font-size:16px}.cb-deck-label{font-size:8px;padding:1px 4px;line-height:13px}.cb-deck-label b{font-size:11px}.cb-deck-label small{font-size:8px}
 .cb-in-match:not(.cb-tutorial-mode):not(.cb-learning-mode) .cb-hand-dock>.cb-hand{width:calc(100% - 64px)}
}

/* Original hand-drawn skull: inset overlay keeps it inside clipped board cards. */
.cb-lethal-marker{position:absolute;top:15%;left:50%;transform:translateX(-50%);width:min(88px,80%);height:auto;aspect-ratio:1;opacity:.5;z-index:12;pointer-events:none;filter:drop-shadow(0 3px 5px #190c16cc);}
.cb-lethal-marker svg{display:block;width:100%;height:100%;}
@media(max-width:700px){.cb-lethal-marker{width:min(68px,80%);}}
@media(prefers-reduced-motion:no-preference){.cb-lethal-marker{animation:cb-skull-appear .12s ease-out;}@keyframes cb-skull-appear{from{opacity:0;scale:.8;}to{opacity:.5;scale:1;}}}
