/* The field is observed above; HP, fuel and fixed-size cards are operated below. */
body[data-screen=game]{background:#080f19}
body[data-screen=game] #app{max-width:1920px;padding:0 12px 10px}
body[data-screen=game] #topbar{height:36px;min-height:36px;margin:0;align-items:center}
body[data-screen=game] #topbar h1{font-size:15px;letter-spacing:.1em}
body[data-screen=game] #topbar button{font-size:11px;padding:4px 8px}
:is(#screen-game, #tutorialBattle):not(.hidden){display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,33vw,470px);gap:8px 10px;padding:4px 0 0;position:relative}
:is(#screen-game, #tutorialBattle) .gamehead,:is(#screen-game, #tutorialBattle) #boardNotice,:is(#screen-game, #tutorialBattle) #quickEffects,:is(#screen-game, #tutorialBattle) .battle-casts,:is(#screen-game, #tutorialBattle) .win-route{display:none!important}
:is(#screen-game, #tutorialBattle) .combat-workbench{display:contents}
:is(#screen-game, #tutorialBattle) .gamegrid{grid-column:1;grid-row:1;display:block!important;height:var(--arena-height,400px);position:relative;min-width:0}
:is(#screen-game, #tutorialBattle) .board-column{height:100%;min-height:0;min-width:0}
:is(#screen-game, #tutorialBattle) .stage-wrap{height:100%;box-sizing:border-box;padding:8px!important;display:flex;align-items:center;justify-content:center;background:#07101a;border:1px solid #3b5369;border-radius:8px;overflow:hidden}
:is(#screen-game, #tutorialBattle) .battle-canvas{max-width:100%;height:auto;flex:none}
:is(#screen-game, #tutorialBattle) .combat-signals{position:absolute;left:10px;right:10px;bottom:10px;pointer-events:none;z-index:8;display:flex;flex-direction:column;gap:4px}
:is(#screen-game, #tutorialBattle) .cast-forecast{margin:0;padding:7px;border:1px solid #6c8095;border-radius:6px;background:#0a1725f5;max-height:150px;overflow:auto;pointer-events:auto;box-shadow:0 4px 20px #0008;font-size:11px}
:is(#screen-game, #tutorialBattle) .cast-forecast[hidden]{display:none!important}
:is(#screen-game, #tutorialBattle) .forecast-heading{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#d1dfeb;margin:0 0 5px;padding:0}
:is(#screen-game, #tutorialBattle) .forecast-heading>span{font-size:9px;color:#9cb1c3}
:is(#screen-game, #tutorialBattle) .cast-intents{display:flex;gap:6px;overflow:auto;align-items:stretch}
:is(#screen-game, #tutorialBattle) .cast-intent{flex:0 0 245px;position:relative;border:1px solid #4b6173;border-radius:4px;padding:5px 7px;min-height:0;background:#142637;font-size:11px}
:is(#screen-game, #tutorialBattle) .cast-intent::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--attribute-band,#a9b7c5)}
:is(#screen-game, #tutorialBattle) .cast-intent>div{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
:is(#screen-game, #tutorialBattle) .cast-intent .intent-side{font-size:9px;color:#bcccd8}.cast-intent strong{margin-left:auto}
:is(#screen-game, #tutorialBattle) .cast-intent small{font-size:10px;display:block;color:#d1dce5;line-height:1.4}
:is(#screen-game, #tutorialBattle) .cast-intent button{font-size:10px;padding:3px 8px;margin:3px 0 0;background:#263d4e;border:1px solid #90a8ba;color:#edf5fc;min-height:22px}
:is(#screen-game, #tutorialBattle) .cast-intent.own{flex-basis:195px;background:#11232e}
:is(#screen-game, #tutorialBattle) .cast-intent progress{width:100%;height:3px;display:block;margin:4px 0;accent-color:#b4c8d9}
:is(#screen-game, #tutorialBattle) .response-tray{padding-top:6px;display:flex;flex-wrap:wrap;gap:5px}.response-tray>b,.response-tray>span{flex-basis:100%}
:is(#screen-game, #tutorialBattle) .response-tray button{display:flex;align-items:center;gap:4px;padding:5px 7px;font-size:11px;min-height:30px}
:is(#screen-game, #tutorialBattle) .action-feedback{min-height:0;margin:0;padding:3px 6px;max-width:100%;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e1dcc3;background:#0d1c29ef;border-radius:3px;pointer-events:none}
:is(#screen-game, #tutorialBattle) .action-feedback:empty{display:none}
:is(#screen-game, #tutorialBattle) .alchemy-panel{grid-column:2;grid-row:1;height:var(--arena-height,400px);min-height:290px;min-width:0;box-sizing:border-box;padding:10px 12px;display:flex;flex-direction:column;gap:5px;border:1px solid #61756c;border-radius:8px;background:radial-gradient(ellipse at 30% 30%,#1b363b,#101e29 65%);position:relative;box-shadow:inset 0 1px #d6e8d51a}
:is(#screen-game, #tutorialBattle) .cauldron-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:none}
:is(#screen-game, #tutorialBattle) .cauldron-heading h2{font-size:16px;color:#e3e7cf;margin:0}
:is(#screen-game, #tutorialBattle) .cauldron-heading span{display:none}:is(#screen-game, #tutorialBattle) #cauldronScore{font-size:14px;color:#dfd5a9;white-space:nowrap}
:is(#screen-game, #tutorialBattle) .cauldron-next{display:flex;align-items:center;gap:7px;font-size:10px;color:#aac2cc;height:19px;flex:none}
:is(#screen-game, #tutorialBattle) #cauldronNext{color:#e8e3cf;flex:1}:is(#screen-game, #tutorialBattle) #cauldronStock{font-size:10px}
:is(#screen-game, #tutorialBattle) .cauldron-body{display:grid;grid-template-columns:minmax(0,1fr) 66px;gap:6px;flex:1;min-height:125px}
:is(#screen-game, #tutorialBattle) .cauldron-play{display:flex;flex-direction:column;min-height:0;height:100%}
:is(#screen-game, #tutorialBattle) .cauldron-vessel{position:relative;flex:1;min-height:0;isolation:isolate}
:is(#screen-game, #tutorialBattle) #cauldronMaterials{position:absolute;inset:0}
:is(#screen-game, #tutorialBattle) .cauldron-blob{position:absolute;padding:0!important;border:0!important;min-width:0!important;min-height:0!important;background:transparent!important;display:grid;place-items:center;touch-action:manipulation;box-shadow:none!important}
:is(#screen-game, #tutorialBattle) .cauldron-vessel:not(.flask-vessel){border:1px solid #486472;border-radius:6px;background:linear-gradient(180deg,#0a1622,#0f222e);box-shadow:inset 0 2px 8px #000a}
:is(#screen-game, #tutorialBattle) .blob-orb{display:flex;align-items:center;justify-content:center;position:relative;border:1px solid color-mix(in srgb,var(--ore) 68%,#fff);background:radial-gradient(circle at 28% 22%,#ffffffd8,transparent 26%),linear-gradient(135deg,#ffffff2e,transparent 45%),radial-gradient(circle at 35% 35%,var(--ore),color-mix(in srgb,var(--ore) 38%,#07121c));box-shadow:inset 0 1px 2px #ffffff4d,0 2px 5px #0008;color:white}
:is(#screen-game, #tutorialBattle) .blob-orb strong{text-shadow:0 1px 3px #000}.blob-orb i{position:absolute;font-style:normal;color:#ffe28b}
:is(#screen-game, #tutorialBattle) .cauldron-blob.mature .blob-orb{border:2px double #f4d28c}
:is(#screen-game, #tutorialBattle) .cauldron-blob.catalyst-target .blob-orb{outline:1.5px dashed #f3d79b;outline-offset:2px;filter:drop-shadow(0 0 4px #e8c77f66)}
:is(#screen-game, #tutorialBattle) .cauldron-blob.merging .blob-orb{animation:cauldronMerge .3s ease-out}
@keyframes cauldronMerge{0%{transform:scale(.65);filter:brightness(2)}65%{transform:scale(1.15)}100%{transform:scale(1);filter:brightness(1)}}
:is(#screen-game, #tutorialBattle) .cauldron-tools{display:flex;flex-direction:column;gap:3px}:is(#screen-game, #tutorialBattle) .cauldron-tools button{font-size:10px;padding:3px;min-height:24px}:is(#screen-game, #tutorialBattle) .cauldron-tools b{font-size:9px}
:is(#screen-game, #tutorialBattle) .cauldron-mode{flex:none;font-size:10px;color:#b7cfca;line-height:1.3;margin:0;min-height:13px}
:is(#screen-game, #tutorialBattle) .cauldron-extraction{padding:6px 8px;border:1px solid #365660;border-radius:4px;background:#0b1923;flex:none}
:is(#screen-game, #tutorialBattle) .cauldron-extraction>div{display:flex;flex-direction:column;gap:2px;min-width:0}:is(#screen-game, #tutorialBattle) #cauldronSelected{font-size:11px;color:#e5e9d2}:is(#screen-game, #tutorialBattle) #cauldronForecast{font-size:10px;color:#b7cfd4;line-height:1.4}
:is(#screen-game, #tutorialBattle) .alchemy-colors{display:flex;gap:4px;align-items:center;font-size:10px}.alchemy-colors[hidden]{display:none!important}
:is(#screen-game, #tutorialBattle) .alchemy-colors button{font-size:11px;padding:3px 7px;color:var(--ore)}:is(#screen-game, #tutorialBattle) .alchemy-colors [aria-pressed=true]{outline:1px solid var(--ore)}
:is(#screen-game, #tutorialBattle) .alchemy-result{position:absolute;top:0;left:0;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;padding:0;margin:0}
:is(#screen-game, #tutorialBattle) .player-console{grid-column:1/-1;grid-row:2;min-width:0;display:flex;flex-direction:column;border:1px solid #405369;border-radius:8px;background:#101d2b;overflow:hidden}
:is(#screen-game, #tutorialBattle) .battle-overview{margin:0;padding:5px 10px;min-height:34px;border:0;border-bottom:1px solid #314557;border-radius:0;background:#152637;display:flex;align-items:center;gap:14px}
:is(#screen-game, #tutorialBattle) .health{display:flex;align-items:center;gap:8px;flex:1;min-width:0}:is(#screen-game, #tutorialBattle) .health strong{font-size:17px!important;white-space:nowrap}:is(#screen-game, #tutorialBattle) .health>span{font-size:10px!important;white-space:nowrap}:is(#screen-game, #tutorialBattle) .health strong small{font-size:10px;color:#9db0bf}
:is(#screen-game, #tutorialBattle) .health progress{width:100%;min-width:30px;height:5px;accent-color:#9bccba}:is(#screen-game, #tutorialBattle) .health.foe progress{accent-color:#c7a296}
:is(#screen-game, #tutorialBattle) .match-clock{text-align:center;min-width:135px;display:flex;gap:8px;align-items:center}:is(#screen-game, #tutorialBattle) .match-clock b{font-size:12px!important;color:#e2d4b6}:is(#screen-game, #tutorialBattle) .match-clock>span{font-size:10px}:is(#screen-game, #tutorialBattle) .match-clock small{display:none}
:is(#screen-game, #tutorialBattle) .world-goal{font-size:10px;color:#efd59b}
:is(#screen-game, #tutorialBattle) .battle-overview:has(>.victory-progress){flex-wrap:wrap;row-gap:4px}
.victory-progress{flex:0 0 100%;display:flex;flex-wrap:wrap;gap:3px 12px;border-top:1px solid #314557;padding-top:3px;font-size:10px;color:#d1e7df}
.victory-progress .foe{color:#ffd1ab}
:is(#screen-game, #tutorialBattle) .resource-bar{display:flex;align-items:center;gap:12px;padding:5px 10px;min-height:46px;border:0;border-bottom:1px solid #314557;background:#0d1b28;margin:0}
:is(#screen-game, #tutorialBattle) .resource{display:flex;gap:7px;align-items:center;min-width:0}:is(#screen-game, #tutorialBattle) .resource>span{font-size:10px;color:#b6cad7}:is(#screen-game, #tutorialBattle) .resource strong{font-size:20px;color:#e3efe7;white-space:nowrap}:is(#screen-game, #tutorialBattle) .resource strong small{font-size:10px;color:#9fb6c4}
:is(#screen-game, #tutorialBattle) .resource>small,:is(#screen-game, #tutorialBattle) .resource progress{display:none}
:is(#screen-game, #tutorialBattle) .mana-resources{flex:1;min-width:0;position:relative}:is(#screen-game, #tutorialBattle) .mana-caption{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:#9cb4c7;min-height:12px;margin-bottom:3px}:is(#screen-game, #tutorialBattle) .mana-caption>span,:is(#screen-game, #tutorialBattle) .mana-source{display:none}
:is(#screen-game, #tutorialBattle) .mana-spend{font-size:10px;font-style:normal;color:#e5d49f;max-width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#screen-game, #tutorialBattle) .mana-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
:is(#screen-game, #tutorialBattle) .mana-cell{display:flex;gap:5px;align-items:baseline;border-bottom:2px solid var(--mana);background:#152635;padding:1px 7px;min-width:0}
:is(#screen-game, #tutorialBattle) .mana-cell>span{font-size:11px;color:var(--mana)}:is(#screen-game, #tutorialBattle) .mana-cell strong{font-size:18px;color:#f1f5f2}:is(#screen-game, #tutorialBattle) .mana-cell small{font-size:9px;color:#adc1cf}:is(#screen-game, #tutorialBattle) .mana-gain{display:none}
:is(#screen-game, #tutorialBattle) .mana-cell.mana-paid{background:#30474c;box-shadow:inset 0 0 0 1px var(--mana)}
:is(#screen-game, #tutorialBattle) .hand-tray{padding:6px 8px!important;margin:0!important;border:0!important;background:transparent!important;min-width:0}
:is(#screen-game, #tutorialBattle) .hand-heading{display:flex;align-items:center;gap:8px;margin:0 0 5px!important;min-height:27px;flex-wrap:nowrap}:is(#screen-game, #tutorialBattle) .hand-heading h2{font-size:12px!important;margin:0;white-space:nowrap}:is(#screen-game, #tutorialBattle) #drawInfo{font-size:10px;color:#a7bac8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#screen-game, #tutorialBattle) .hand-heading button{font-size:10px;padding:4px 6px;min-height:24px;white-space:nowrap}
:is(#screen-game, #tutorialBattle) .hand-help,:is(#screen-game, #tutorialBattle) .mobile-hand-hint,:is(#screen-game, #tutorialBattle) .hand-footer>span:last-child{display:none}
:is(#screen-game, #tutorialBattle) .hand-heading .ult{margin:0 0 0 auto;min-width:110px;min-height:27px;height:27px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;padding:3px 9px;flex:none;border:1px solid #766b4d;border-radius:4px;background:#242c31}
:is(#screen-game, #tutorialBattle) .ult .utext{display:none}:is(#screen-game, #tutorialBattle) .ult .usub{font-size:9px}:is(#screen-game, #tutorialBattle) .ult .uname{font-size:12px}
:is(#screen-game, #tutorialBattle) .hand-zones{display:grid;grid-template-columns:minmax(0,1fr) clamp(130px,23vw,280px);gap:9px;height:132px;min-width:0}
:is(#screen-game, #tutorialBattle) .tactical-desk{padding:5px 7px!important;height:132px;min-height:132px;box-sizing:border-box;margin:0;display:flex;flex-direction:column;gap:4px;font-size:10px;align-items:stretch;border:1px solid #52625c;border-radius:5px;background:#13272c;overflow:hidden}
:is(#screen-game, #tutorialBattle) .queue-heading{display:flex;justify-content:space-between;gap:4px;font-size:11px;padding:0;margin:0;flex-wrap:wrap;line-height:13px}
:is(#screen-game, #tutorialBattle) .queue-heading small{display:block;font-size:9px;color:#b2c6c5}
:is(#screen-game, #tutorialBattle) .queue-slots{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto}
:is(#screen-game, #tutorialBattle) .queue-slots p{display:block;font-size:10px;line-height:1.6;margin:5px 0;color:#aec3c7}
:is(#screen-game, #tutorialBattle) .queue-card{display:flex;padding:0;gap:3px;min-height:27px;border:0;background:none;align-items:stretch}
:is(#screen-game, #tutorialBattle) .queue-card button{font-size:10px;padding:2px 4px;min-width:0;min-height:27px;background:#233b43;border:1px solid #45616b;border-radius:3px}
:is(#screen-game, #tutorialBattle) .queue-card button:first-child{flex:1;text-align:left;overflow:hidden}
:is(#screen-game, #tutorialBattle) .queue-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:12px}
:is(#screen-game, #tutorialBattle) .queue-card small{display:block;color:#e1cd9f;font-size:9px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#screen-game, #tutorialBattle) .queue-cancel{flex:none;font-size:9px!important}
:is(#screen-game, #tutorialBattle) .hand{display:flex!important;grid-template-columns:none!important;gap:6px!important;padding:0 0 4px;margin:0;overflow-x:auto!important;overflow-y:hidden!important;height:132px;min-height:132px;max-height:132px;box-sizing:border-box;flex-shrink:0;scroll-snap-type:x proximity;align-items:flex-start}
:is(#screen-game, #tutorialBattle) .hand>.card{flex:0 0 168px;width:168px!important;max-width:168px!important;min-width:168px!important;height:108px!important;min-height:108px!important;max-height:108px!important;box-sizing:border-box;position:relative;display:grid;grid-template-columns:14px minmax(0,1fr) auto;grid-template-rows:29px 32px 20px;gap:3px;padding:8px 7px 6px!important;border:1px solid #496175!important;border-radius:5px!important;background:#192b3b!important;box-shadow:none!important;overflow:hidden;scroll-snap-align:start;text-align:left;color:#eef3f5}
:is(#screen-game, #tutorialBattle) .hand>.card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--attribute-band,#a9b7c5)}
:is(#screen-game, #tutorialBattle) .hand>.card:hover{transform:none!important;background:#243c4e!important}:is(#screen-game, #tutorialBattle) .hand>.card.disabled{opacity:.8!important}:is(#screen-game, #tutorialBattle) .hand>.card.selected,:is(#screen-game, #tutorialBattle) .hand>.card.armed{outline:1px solid #eef3f5;outline-offset:-2px}
:is(#screen-game, #tutorialBattle) .hand>.card .key{position:static;grid-column:1;grid-row:1;font-size:10px;width:auto;height:auto;background:none;border:0;line-height:16px;color:#91a8bb}
:is(#screen-game, #tutorialBattle) .hand>.card .cname{grid-column:2/-1;grid-row:1;min-height:0!important;height:29px!important;font-size:12px!important;line-height:14px!important;padding:0 34px 0 0;margin:0;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:is(#screen-game, #tutorialBattle) .hand>.card .cdescription{grid-column:1/-1;grid-row:2;font-size:11px!important;line-height:15px!important;max-height:30px!important;height:30px!important;margin:0;color:#c4d5df;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:is(#screen-game, #tutorialBattle) .hand>.card .croles{position:absolute;top:9px;right:6px;display:flex!important;gap:2px;margin:0;padding:0}:is(#screen-game, #tutorialBattle) .hand>.card .role-mark{color:#d1dce4;background:none;border:0;padding:0}
:is(#screen-game, #tutorialBattle) .hand>.card .cost{position:static;grid-column:1/3;grid-row:3;display:flex;gap:4px;align-items:center;white-space:nowrap}:is(#screen-game, #tutorialBattle) .hand>.card .cost b{font-size:10px;padding:0;background:none;border:0}.hand>.card .cost .cs:empty{display:none}
:is(#screen-game, #tutorialBattle) .hand>.card .cmana{grid-column:2/-1;grid-row:3;display:flex;gap:3px;align-items:center;justify-content:end;font-size:10px;white-space:nowrap;pointer-events:none}
:is(#screen-game, #tutorialBattle) .hand>.card .tmark,:is(#screen-game, #tutorialBattle) .hand>.card .ctiming,:is(#screen-game, #tutorialBattle) .hand>.card .crequirement,:is(#screen-game, #tutorialBattle) .hand>.card .ctag,:is(#screen-game, #tutorialBattle) .hand>.card .ccombo,:is(#screen-game, #tutorialBattle) .hand>.card .cprice,:is(#screen-game, #tutorialBattle) .hand>.card .chint,:is(#screen-game, #tutorialBattle) .hand>.card .cart{display:none!important}
:is(#screen-game, #tutorialBattle) .hand>.card .cplan{position:absolute;top:41px;right:5px;font-size:9px;padding:1px 3px;background:#263e4d;color:#ecf4f4}
:is(#screen-game, #tutorialBattle) .hand-footer{font-size:9px;color:#91a7b7;padding:0;line-height:12px;margin:0}
:is(#screen-game, #tutorialBattle) #sidePanel,:is(#screen-game, #tutorialBattle) #sidePanel.expanded-inspector{position:fixed!important;right:calc(clamp(320px,33vw,470px) + 26px)!important;top:46px!important;bottom:auto!important;width:min(352px,42vw)!important;height:auto!important;max-height:min(392px,calc(var(--arena-height,400px) - 6px))!important;z-index:100;background:linear-gradient(155deg,#192c3cf5,#0f1c28f7);backdrop-filter:blur(6px);border:1px solid #c6a86e!important;border-radius:8px;padding:9px 11px;overflow:hidden;box-shadow:inset 0 1px #fff4d638,inset 0 0 0 1px #5c4b2d55,0 16px 44px #000c!important}
:is(#screen-game, #tutorialBattle) #sidePanel:not(.expanded-inspector){display:none!important}
:is(#screen-game, #tutorialBattle) #sidePanel.expanded-inspector{display:flex!important;flex-direction:column;gap:5px}:is(#screen-game, #tutorialBattle) .inspector-close{display:block;margin-left:auto;font-size:10px;padding:2px 8px;min-height:22px;flex:none;border-color:#8a7a5a;background:linear-gradient(180deg,#2a3b46,#182630)}
:is(#screen-game, #tutorialBattle) #cardInspector{flex:1;min-height:0;overflow-y:auto;padding-right:3px;font-size:11px;line-height:1.42}
:is(#screen-game, #tutorialBattle) #cardInspector .inspector-header{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:center;padding-bottom:5px;margin-bottom:4px;border-bottom:1px solid #354c5c}
:is(#screen-game, #tutorialBattle) #cardInspector .inspector-crest{width:68px;height:52px;border-radius:5px;overflow:hidden;border:1px solid #96835c;box-shadow:inset 0 1px #fff3d12e,0 3px 8px #0008;background:#0d1924}
:is(#screen-game, #tutorialBattle) #cardInspector .inspector-crest .card-art{width:100%;height:100%;margin:0}
:is(#screen-game, #tutorialBattle) #cardInspector h2{font-size:14px;margin:1px 0 3px;color:#f5e7c8}
:is(#screen-game, #tutorialBattle) #cardInspector .payment{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:10px}
:is(#screen-game, #tutorialBattle) #cardInspector .payment b{padding:1px 5px;border-radius:3px;background:#1b3140;border:1px solid #4d6778;color:#eaf2f5}
:is(#screen-game, #tutorialBattle) #cardInspector .recycle-bar{display:flex;align-items:center;gap:6px;margin:3px 0;padding:3px 6px;border-radius:4px;background:#1c2c30;border:1px dashed #9e8858}
:is(#screen-game, #tutorialBattle) #cardInspector .recycle-card{margin:0;padding:2px 7px;min-height:22px;font-size:10px;white-space:nowrap}
:is(#screen-game, #tutorialBattle) #cardInspector .recycle-bar small{font-size:9px;line-height:1.25;color:#bdcbc8}
:is(#screen-game, #tutorialBattle) #cardInspector :is(.opening-guide,.combo-purpose,.effect-window,.unit-card-purpose,.effect-copy,.price-copy,.resolution-note){margin:4px 0;padding:4px 7px;font-size:10px;line-height:1.38}
:is(#screen-game, #tutorialBattle) #cardInspector :is(.combo-purpose,.opening-guide,.effect-copy,.price-copy,.unit-card-purpose) p{margin:2px 0}
:is(#screen-game, #tutorialBattle) #sidePanel .card-actions{flex:none;display:flex;gap:6px;padding-top:4px;border-top:1px solid #354c5e}
:is(#screen-game, #tutorialBattle) #sidePanel .card-actions button{flex:1;min-height:28px;padding:4px 6px;font-size:11px}
:is(#screen-game, #tutorialBattle) .battle-details{grid-column:1/-1;grid-row:3;padding:3px 8px;border:1px solid #304353;font-size:10px}:is(#screen-game, #tutorialBattle) .battle-details #log{max-height:160px;overflow:auto}:is(#screen-game, #tutorialBattle) .battle-details #effectsPanel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#resTable{display:block;max-width:100%;overflow:auto}
.score-receipt{max-width:740px;margin:12px auto;padding:16px;border:1px solid #a68b51;border-radius:8px;background:linear-gradient(135deg,#172c38,#111b2a);text-align:left}.score-receipt>div{display:flex;justify-content:space-between;align-items:center;color:#e8d5a0}.score-receipt>div strong{font-size:28px}.score-receipt dl{display:grid;grid-template-columns:1fr auto;gap:5px 18px;font-size:13px;color:#c1d5df}.score-receipt dt,.score-receipt dd{margin:0}.score-receipt dd{color:#e9dda9}.score-receipt p{border-top:1px solid #465461;padding-top:9px}.score-receipt small{font-size:11px;color:#b4c4cf}
@media(max-width:900px){
 body[data-screen=game] #app{padding:0 6px 8px}body[data-screen=game] #topbar{height:auto;min-height:36px;flex-wrap:wrap}body[data-screen=game] #topbar h1{font-size:12px}body[data-screen=game] #topbar button{font-size:9px;padding:3px 4px}
 :is(#screen-game, #tutorialBattle):not(.hidden){grid-template-columns:minmax(0,1fr);gap:6px}:is(#screen-game, #tutorialBattle) .gamegrid{grid-row:1;height:155px}:is(#screen-game, #tutorialBattle) .alchemy-panel{grid-column:1;grid-row:2;height:315px;min-height:315px;padding:7px 10px;gap:3px}:is(#screen-game, #tutorialBattle) .player-console{grid-row:3}:is(#screen-game, #tutorialBattle) .battle-details{grid-row:4}
 :is(#screen-game, #tutorialBattle) .battle-overview{padding:4px 7px;gap:7px;min-height:34px}:is(#screen-game, #tutorialBattle) .health{gap:5px;flex-wrap:wrap}:is(#screen-game, #tutorialBattle) .health strong{font-size:14px!important}:is(#screen-game, #tutorialBattle) .health strong small{font-size:9px}:is(#screen-game, #tutorialBattle) .health>span{font-size:9px!important}:is(#screen-game, #tutorialBattle) .health progress{flex-basis:100%;height:3px}
 :is(#screen-game, #tutorialBattle) .match-clock{min-width:90px;flex-direction:column;gap:0}:is(#screen-game, #tutorialBattle) .match-clock b{font-size:11px!important}:is(#screen-game, #tutorialBattle) .match-clock>span{font-size:9px}
 :is(#screen-game, #tutorialBattle) .resource-bar{gap:5px;padding:4px 6px;display:grid;grid-template-columns:55px 49px minmax(0,1fr);min-height:51px}:is(#screen-game, #tutorialBattle) .resource{flex-direction:column;gap:0;align-items:start}:is(#screen-game, #tutorialBattle) .resource>span{font-size:8px}:is(#screen-game, #tutorialBattle) .resource strong{font-size:16px}:is(#screen-game, #tutorialBattle) .resource strong small{font-size:8px}
 :is(#screen-game, #tutorialBattle) .mana-caption{min-height:10px;font-size:8px;margin-bottom:2px}:is(#screen-game, #tutorialBattle) .mana-caption>b{display:none}:is(#screen-game, #tutorialBattle) .mana-spend{font-size:8px;max-width:100%}:is(#screen-game, #tutorialBattle) .mana-row{gap:2px}:is(#screen-game, #tutorialBattle) .mana-cell{padding:1px 2px;gap:3px;flex-wrap:wrap;justify-content:center}:is(#screen-game, #tutorialBattle) .mana-cell>span{font-size:9px}:is(#screen-game, #tutorialBattle) .mana-cell strong{font-size:14px}:is(#screen-game, #tutorialBattle) .mana-cell small{font-size:8px;line-height:9px;flex-basis:100%;text-align:center}
 :is(#screen-game, #tutorialBattle) .hand-heading{gap:5px;flex-wrap:wrap;min-height:24px}:is(#screen-game, #tutorialBattle) .hand-heading h2{font-size:11px!important}:is(#screen-game, #tutorialBattle) .hand-heading button{font-size:9px;padding:3px 4px;min-height:23px}:is(#screen-game, #tutorialBattle) #drawInfo,:is(#screen-game, #tutorialBattle) #btnQuickMode{display:none}:is(#screen-game, #tutorialBattle) .hand-heading .ult{min-width:92px;height:24px;min-height:24px;padding:3px 6px}
 :is(#screen-game, #tutorialBattle) .cauldron-extraction{padding:4px 6px}:is(#screen-game, #tutorialBattle) .cauldron-mode{font-size:9px}:is(#screen-game, #tutorialBattle) .cauldron-heading h2{font-size:14px}:is(#screen-game, #tutorialBattle) .cauldron-next{font-size:9px;height:16px}
 :is(#screen-game, #tutorialBattle) .combat-signals{left:5px;right:5px;bottom:5px}:is(#screen-game, #tutorialBattle) .cast-forecast{max-height:130px;padding:5px}:is(#screen-game, #tutorialBattle) .forecast-heading>span{display:none}:is(#screen-game, #tutorialBattle) .cast-intent{flex-basis:210px}:is(#screen-game, #tutorialBattle) .action-feedback{font-size:9px}
}
@media(prefers-reduced-motion:reduce){:is(#screen-game, #tutorialBattle) .cauldron-blob.merging .blob-orb{animation:none}}
/* Physics world uses uniform scale: the glass outline matches the collision walls. */
:is(#screen-game, #tutorialBattle) .flask-aim{display:flex;align-items:center;gap:5px;font-size:10px;color:#e9d9b1;flex:none;height:23px}
:is(#screen-game, #tutorialBattle) .flask-aim input{flex:1;min-width:35px;width:100%;height:18px;min-height:18px;padding:0;margin:0;accent-color:#d6c18d;cursor:ew-resize;touch-action:pan-y}
:is(#screen-game, #tutorialBattle) .flask-aim span{font-size:8px;color:#a9c8d0;white-space:nowrap}
:is(#screen-game, #tutorialBattle) .flask-vessel{border:0;border-radius:0;box-shadow:none;background:radial-gradient(ellipse at 50% 70%,#294d4930,transparent 70%);overflow:visible;min-height:0}
:is(#screen-game, #tutorialBattle) .flask-space{position:absolute;isolation:isolate}
:is(#screen-game, #tutorialBattle) .flask-glass{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
:is(#screen-game, #tutorialBattle) .flask-space .cauldron-blob{transform:translate(-50%,-50%);border-radius:50%;transition:none;z-index:2}
:is(#screen-game, #tutorialBattle) .flask-space .blob-orb{box-sizing:border-box;width:100%;height:100%;max-height:none;border-radius:50%;transition:none;box-shadow:inset -3px -4px 7px #0007,0 1px 3px #0008}
:is(#screen-game, #tutorialBattle) .flask-space .blob-color{position:absolute;inset:0;display:grid;place-items:center;font-size:var(--grain-font);font-weight:700;opacity:.35}
:is(#screen-game, #tutorialBattle) .flask-space .blob-mass{font-size:var(--grain-font);position:relative;z-index:1;line-height:1}
:is(#screen-game, #tutorialBattle) .flask-space .blob-mark{font-size:12px;top:-4px;right:-3px}
:is(#screen-game, #tutorialBattle) .flask-space .cauldron-blob.falling .blob-orb{filter:none;box-shadow:inset -3px -4px 7px #0007,0 0 8px color-mix(in srgb,var(--ore) 35%,transparent)}
:is(#screen-game, #tutorialBattle) .flask-space .cauldron-blob.selected{z-index:6}
:is(#screen-game, #tutorialBattle) .flask-space .cauldron-blob.selected .blob-orb{outline:2px solid #fff4c5;outline-offset:2px}

/* Glass, internal facets and front reflections are separate compositing layers. */
:is(#screen-game, #tutorialBattle) .flask-vessel{background:radial-gradient(ellipse at 50% 90%,#a9803d26,transparent 63%),radial-gradient(ellipse at 50% 55%,#436a7b22,transparent 65%)}
:is(#screen-game, #tutorialBattle) .flask-space::after{content:"";position:absolute;inset:8% 12% 14%;border-radius:46% 46% 48% 48%;background:radial-gradient(ellipse at 26% 22%,#ffffff18,transparent 38%),radial-gradient(ellipse at 76% 78%,#dfca9612,transparent 42%);pointer-events:none;z-index:3}
:is(#screen-game, #tutorialBattle) .flask-front{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}
:is(#screen-game, #tutorialBattle) .flask-space .blob-orb{border:0;background:none;box-shadow:none!important;isolation:isolate;overflow:visible}
:is(#screen-game, #tutorialBattle) .crystal-shell{position:absolute;inset:0;filter:drop-shadow(0 2px 2px #02080faa)}
:is(#screen-game, #tutorialBattle) .crystal-art{position:relative;width:100%;height:100%;display:block;background-color:var(--ore);background-image:url(../assets-759cd4c4acb186/game/crystal-pebble.webp);background-position:center;background-size:100% 100%;background-blend-mode:luminosity;mask-image:url(../assets-759cd4c4acb186/game/crystal-pebble.webp);mask-position:center;mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:url(../assets-759cd4c4acb186/game/crystal-pebble.webp);-webkit-mask-position:center;-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat}
:is(#screen-game, #tutorialBattle) .crystal-facets{position:absolute;inset:6%;width:88%;height:88%;pointer-events:none;display:block}
:is(#screen-game, #tutorialBattle) .crystal-tier-1{background-image:radial-gradient(circle at 38% 34%,#ffffff40,transparent 45%),url(../assets-759cd4c4acb186/game/crystal-pebble.webp)}
:is(#screen-game, #tutorialBattle) .crystal-tier-2{background-image:radial-gradient(circle at 46% 44%,#fff6d666,transparent 52%),url(../assets-759cd4c4acb186/game/crystal-pebble.webp)}
:is(#screen-game, #tutorialBattle) .crystal-tier-3{background-image:radial-gradient(circle at 50% 48%,#fff9df99,#ffe39438 48%,transparent 68%),url(../assets-759cd4c4acb186/game/crystal-pebble.webp)}
:is(#screen-game, #tutorialBattle) .flask-space .blob-color{display:none}
:is(#screen-game, #tutorialBattle) .flask-space .blob-mass{color:#fff8e7;text-shadow:0 1px 2px #00121c,1px 0 2px #00121c,-1px 0 2px #00121c;font-weight:700}
:is(#screen-game, #tutorialBattle) .cauldron-blob.mature .crystal-shell{filter:drop-shadow(0 0 5px var(--ore)) drop-shadow(0 0 2px #ffe8a3aa)}
:is(#screen-game, #tutorialBattle) .flask-space .cauldron-blob.selected .blob-orb{outline:1px solid #fff0bf;outline-offset:3px}
:is(#screen-game, #tutorialBattle) .cauldron-blob.merging .crystal-shell{animation:crystalFuse .32s ease-out}
:is(#screen-game, #tutorialBattle) .cauldron-points{color:var(--ore,#fff0bf);text-shadow:0 2px 5px #000;font-size:12px;line-height:1.7;white-space:pre-line;text-align:center;max-width:95%;z-index:8;pointer-events:none}
@keyframes crystalFuse{0%{transform:scale(.7);filter:brightness(1.8)}55%{transform:scale(1.12);filter:brightness(1.25)}100%{transform:scale(1);filter:brightness(1)}}
.alchemy-transfer{position:fixed;z-index:1000;width:13px;height:18px;pointer-events:none;background:linear-gradient(145deg,#fffdf2,var(--ore) 52%,color-mix(in srgb,var(--ore) 45%,#07131e));clip-path:polygon(50% 0,100% 38%,78% 86%,50% 100%,22% 86%,0 38%);box-shadow:0 0 16px var(--ore),0 0 6px #fff8dd;border:1px solid #fff4dd}
.alchemy-transfer::after{content:"";position:absolute;inset:2px 3px 4px;background:linear-gradient(180deg,#ffffffb8,transparent);clip-path:polygon(50% 0,100% 42%,50% 85%,0 42%)}
@media(prefers-reduced-motion:reduce){:is(#screen-game, #tutorialBattle) .cauldron-blob.merging .crystal-shell{animation:none}}
:is(#screen-game, #tutorialBattle) .flask-drop-guide{position:absolute;top:-2%;transform:translateX(-50%);font-size:11px;color:#ffe3a1;pointer-events:none;z-index:5;text-shadow:0 1px 5px #000}
:is(#screen-game, #tutorialBattle) .flask-capacity{text-align:center;font-size:9px;line-height:14px;color:#a9c3c5;flex:none}
:is(#screen-game, #tutorialBattle) .extraction-only .cauldron-body{display:block}
:is(#screen-game, #tutorialBattle) .extraction-only .cauldron-play{height:100%}
:is(#screen-game, #tutorialBattle) .extraction-only .flask-capacity{display:none}
:is(#screen-game, #tutorialBattle) .auto-intake{font-size:9px;color:#b8d8c7;border:1px solid #4c7067;border-radius:3px;padding:1px 5px;white-space:nowrap}
:is(#screen-game, #tutorialBattle) .flask-catalysts{flex:none;margin:0;border:0;padding:0;background:none;font-size:10px;color:#aec6cd}
:is(#screen-game, #tutorialBattle) .flask-catalysts summary{cursor:pointer;padding:2px 0;line-height:14px}
:is(#screen-game, #tutorialBattle) .flask-catalyst-buttons{display:flex;gap:4px;flex-wrap:wrap;padding:3px 0}
:is(#screen-game, #tutorialBattle) .flask-catalyst-buttons button{padding:3px 6px;font-size:10px;min-height:23px;border:1px solid #637563;background:#172b36;border-radius:4px}
:is(#screen-game, #tutorialBattle) .flask-catalyst-buttons small{margin-left:4px;color:#d1c09c}
:is(#screen-game, #tutorialBattle) .flask-catalyst-buttons [aria-pressed=true]{background:#75532d;border-color:#f4d186}

/* Completion follows a real threshold extraction; these layers never intercept clicks. */
:is(#screen-game, #tutorialBattle) .flask-milestone{font-size:10px;line-height:17px;text-align:center;color:#dacd98;flex:none}
:is(#screen-game, #tutorialBattle) .flask-milestone[hidden]{display:none}
:is(#screen-game, #tutorialBattle) .flask-milestone.completed{color:#ffeba8;font-weight:800;text-shadow:0 0 9px #d8b253}
:is(#screen-game, #tutorialBattle) .flask-vessel.boiling{background:radial-gradient(ellipse at 50% 85%,#74cbbc35,transparent 65%)}
:is(#screen-game, #tutorialBattle) .cauldron-points.grand-complete{font-size:22px;text-align:center;white-space:pre;animation:grandCrystalText 1.6s ease-out forwards}
:is(#screen-game, #tutorialBattle) .cauldron-points.forge-flash{font-size:14px;text-shadow:0 0 10px var(--ore,#ffe1a1),0 1px 3px #000}
:is(#screen-game, #tutorialBattle) .flask-completion-ring{position:absolute;z-index:5;pointer-events:none;width:72px;height:72px;border:4px double #fff1a8;border-radius:50%;box-shadow:0 0 26px #e4c65c,inset 0 0 24px #e4c65c;animation:grandCrystalRing 1.1s ease-out forwards}
:is(#screen-game, #tutorialBattle) .flask-completion-ring::before{content:"";position:absolute;inset:8px;border:1.5px dashed #fff9df;border-radius:50%}
@keyframes grandCrystalRing{from{transform:translate(-50%,-50%) scale(.5);opacity:1}to{transform:translate(-50%,-50%) scale(2.7);opacity:0}}
@keyframes grandCrystalText{0%{opacity:0;transform:translate(-50%,10px) scale(.8)}20%,65%{opacity:1;transform:translate(-50%,-8px) scale(1)}100%{opacity:0;transform:translate(-50%,-30px) scale(1)}}
@media(prefers-reduced-motion:reduce){:is(#screen-game, #tutorialBattle) .flask-completion-ring{animation:none;display:none}}


:is(#screen-game, #tutorialBattle) .cauldron-points{position:absolute;left:50%;top:36%;transform:translateX(-50%);z-index:7;pointer-events:none;font-size:12px;font-weight:700;color:var(--ore,#ffe1a1);text-shadow:0 1px 3px #000;animation:cauldronPoints .9s ease-out forwards}
@keyframes cauldronPoints{0%{opacity:0;transform:translate(-50%,12px) scale(.7)}20%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-35px)}}

:is(#screen-game, #tutorialBattle) .hand>.card .cost{z-index:auto;background:none!important;padding:0!important;width:max-content;max-width:90px}
:is(#screen-game, #tutorialBattle) .hand>.card .cmana{font-size:11px!important;height:auto!important;min-height:0;overflow:visible;z-index:1;line-height:20px;align-self:stretch}
:is(#screen-game, #tutorialBattle) .hand>.card.disabled{filter:none!important}

:is(#screen-game, #tutorialBattle) .combat-signals{top:10px;bottom:auto}
:is(#screen-game, #tutorialBattle) .action-feedback{position:absolute;top:calc(var(--arena-height,400px) - 43px);left:0;right:0}
:is(#screen-game, #tutorialBattle) .cast-intent{flex-basis:265px;padding:5px 7px}
:is(#screen-game, #tutorialBattle) .cast-intent small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
:is(#screen-game, #tutorialBattle) .cast-intent button{position:absolute;right:6px;bottom:5px;margin:0;min-height:21px}
:is(#screen-game, #tutorialBattle) .cast-intent progress{width:calc(100% - 85px)}
:is(#screen-game, #tutorialBattle) .cast-intent.own{flex-basis:230px}
@media(max-width:900px){:is(#screen-game, #tutorialBattle) .combat-signals{top:5px;bottom:auto}:is(#screen-game, #tutorialBattle) .action-feedback{top:120px}}

:is(#screen-game, #tutorialBattle) .cast-forecast{width:fit-content;max-width:100%;max-height:min(114px,calc(var(--arena-height,400px) * .42));padding:5px 7px;box-sizing:border-box;background:#0a1725e6;backdrop-filter:blur(3px)}
:is(#screen-game, #tutorialBattle) .forecast-heading{margin:0 0 3px;font-size:9.5px}
:is(#screen-game, #tutorialBattle) .forecast-heading>span{display:none}
:is(#screen-game, #tutorialBattle) .cast-intent{box-sizing:border-box;padding:4px 6px}

:is(#screen-game, #tutorialBattle) .hand>.card .ccontext{display:none}
:is(#screen-game, #tutorialBattle) .hand>.card.has-combo-context .cdescription{height:15px!important;max-height:15px!important;min-height:0!important;align-self:start;-webkit-line-clamp:1}
:is(#screen-game, #tutorialBattle) .hand>.card.has-effect-window .cname{padding-right:48px}
:is(#screen-game, #tutorialBattle) .hand>.card .cwindow{position:absolute;top:26px;right:6px;font-size:9px;line-height:11px;color:#d0e4df;white-space:nowrap}
.effect-window{padding:8px;border:1px solid #465e70;border-radius:4px;font-size:11px;line-height:1.6;background:#142838;color:#c7ddd8}
:is(#screen-game, #tutorialBattle) .hand>.card.has-combo-context .ccontext{display:block;grid-column:1/-1;grid-row:2;align-self:end;line-height:13px;font-size:9px;height:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e0d5ab}
.combo-purpose{margin:10px 0;padding:9px;border:1px solid #5a6c7a;background:#132636;border-radius:5px;font-size:11px;line-height:1.6}.combo-purpose p{margin:5px 0}.combo-purpose small{color:#ead7a3}

/* All flask controls share an overlay; the collision world keeps the entire bowl. */
:is(#screen-game, #tutorialBattle) .alchemy-panel.has-forge{display:flex;overflow:visible}
:is(#screen-game, #tutorialBattle) .alchemy-panel .cauldron-body{min-height:160px}
:is(#screen-game, #tutorialBattle) .alchemy-panel .cauldron-mode{position:absolute;left:12px;right:12px;bottom:70px;z-index:10;pointer-events:none;padding:6px;background:#11242ef0;border:1px solid #6c7d70;border-radius:4px;display:none}
:is(#screen-game, #tutorialBattle) .alchemy-panel.using-catalyst .cauldron-mode{display:block}
:is(#screen-game, #tutorialBattle) .alchemy-panel .cauldron-extraction{padding:4px 7px;min-height:31px;box-sizing:border-box}
:is(#screen-game, #tutorialBattle) .alchemy-panel .flask-milestone{font-size:10px;line-height:15px;min-height:15px;white-space:nowrap;text-align:center}
:is(#screen-game, #tutorialBattle) .alchemy-panel .flask-catalysts{height:20px;min-height:20px;box-sizing:border-box;margin:0;flex:none;z-index:20}
:is(#screen-game, #tutorialBattle) .alchemy-panel .flask-catalysts summary{font-size:11px;line-height:16px;padding:2px 0;color:#d4d8b7}
:is(#screen-game, #tutorialBattle) .alchemy-panel .flask-catalysts[open]{position:absolute;left:12px;right:12px;bottom:10px;height:auto;min-height:20px;max-height:min(156px,calc(100% - 48px));overflow:auto;padding:7px 9px;background:#102633f5;border:1px solid #ac9569;border-radius:5px;box-shadow:0 -8px 25px #0007}
:is(#screen-game, #tutorialBattle) .flask-catalysts .catalyst-help{font-size:10px;line-height:1.4;margin:3px 0;color:#c3d4d5}
:is(#screen-game, #tutorialBattle) .alchemy-panel .forge-resources{height:auto;min-height:0;max-height:none;padding:5px 6px;margin:4px 0 0;overflow:visible}
:is(#screen-game, #tutorialBattle) .alchemy-panel .forge-resources>div{height:auto;line-height:1.4;gap:5px;flex-wrap:wrap}
:is(#screen-game, #tutorialBattle) .alchemy-panel .forge-resources small{display:block;font-size:9.5px;line-height:1.4}
:is(#screen-game, #tutorialBattle) .alchemy-panel .forge-resources p{margin:3px 0;font-size:10.5px;line-height:1.4}
:is(#screen-game, #tutorialBattle) .flask-space .blob-mass{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:0;min-width:0;white-space:nowrap;font-family:Arial,'Noto Sans JP',sans-serif;font-variant-numeric:tabular-nums;font-weight:800;line-height:1;letter-spacing:0;pointer-events:none;text-shadow:0 1px 2px #00121c,1px 0 2px #00121c,-1px 0 2px #00121c}
/* The payment row remains separate from the current action and its waiting reason. */
:is(#screen-game, #tutorialBattle) .hand>.card{grid-template-rows:25px 28px 13px 16px;gap:2px}
:is(#screen-game, #tutorialBattle) .hand>.card .cname{height:25px!important;font-size:11px!important;line-height:12px!important}
:is(#screen-game, #tutorialBattle) .hand>.card .cdescription{height:28px!important;max-height:28px!important;line-height:14px!important}
:is(#screen-game, #tutorialBattle) .hand>.card .cost,:is(#screen-game, #tutorialBattle) .hand>.card .cmana{grid-row:4}
:is(#screen-game, #tutorialBattle) .hand>.card .cavailability{display:block;grid-column:1/-1;grid-row:3;font-size:9px;line-height:13px;color:#bde3d8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#screen-game, #tutorialBattle) .hand>.card.disabled .cavailability{color:#edc997}
:is(#screen-game, #tutorialBattle) .hand>.card .cwindow{top:25px}
:is(#screen-game, #tutorialBattle) .hand-heading .ult{height:32px;min-height:32px;flex-direction:column;gap:1px;padding:3px 8px;line-height:12px}
:is(#screen-game, #tutorialBattle) .ult .uname{font-size:11px}
:is(#screen-game, #tutorialBattle) .ult .usub{font-size:9px}
:is(#screen-game, #tutorialBattle) .ultimate-help{position:relative;flex:none;font-size:10px;z-index:30}
:is(#screen-game, #tutorialBattle) .ultimate-help summary{cursor:pointer;padding:5px;color:#e3cc93;border:1px solid #6b6a55;border-radius:3px;white-space:nowrap}
:is(#screen-game, #tutorialBattle) #ultimateGuide{position:absolute;bottom:33px;right:0;width:min(320px,75vw);box-sizing:border-box;padding:12px;background:#122735fa;border:1px solid #a18d60;border-radius:5px;box-shadow:0 5px 25px #000a;font-size:12px;line-height:1.7;color:#d5e1e1}
:is(#screen-game, #tutorialBattle) #ultimateGuide p{margin:7px 0 0;font-size:11px;line-height:1.7}
@media(max-width:600px){:is(#screen-game, #tutorialBattle) .hand-zones{grid-template-columns:minmax(0,1fr) 124px;gap:6px}:is(#screen-game, #tutorialBattle) .tactical-desk{padding:4px!important}:is(#screen-game, #tutorialBattle) .queue-heading small{display:none}:is(#screen-game, #tutorialBattle) .hand-heading{gap:4px}:is(#screen-game, #tutorialBattle) .ultimate-help summary{padding:4px 2px;font-size:9px}}

:is(#screen-game, #tutorialBattle) .flask-tool-slot{height:20px;min-height:20px;flex:none}
:is(#screen-game, #tutorialBattle) .alchemy-panel .cauldron-extraction{height:26px;min-height:26px;max-height:26px;padding:3px 8px;overflow:hidden}
:is(#screen-game, #tutorialBattle) .alchemy-panel .cauldron-extraction>div{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;white-space:nowrap;overflow:hidden}
:is(#screen-game, #tutorialBattle) .alchemy-panel #cauldronForecast{overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){:is(#screen-game, #tutorialBattle) .alchemy-panel{height:350px;min-height:350px}:is(#screen-game, #tutorialBattle) #sidePanel,:is(#screen-game, #tutorialBattle) #sidePanel.expanded-inspector{top:auto!important;bottom:14px!important;right:10px!important;width:min(340px,92vw)!important;max-height:min(360px,52vh)!important}}

/* A preview appears over the glass only while inspecting a stone, not as a permanent paragraph. */
:is(#screen-game, #tutorialBattle) .alchemy-panel .cauldron-extraction{position:absolute;left:12px;right:12px;top:52px;bottom:auto;z-index:12;display:none;pointer-events:none;background:#0b1923d9;backdrop-filter:blur(2px)}
:is(#screen-game, #tutorialBattle) .alchemy-panel.has-selection:not(.refining) .cauldron-extraction{display:block}
:is(#screen-game, #tutorialBattle) .tactical-desk{align-self:start;margin:0!important}
:is(#screen-game, #tutorialBattle) .alchemy-panel .alchemy-colors{position:absolute;left:12px;right:12px;bottom:70px;z-index:22;padding:6px;background:#142d37;border:1px solid #77938e;border-radius:4px}

:is(#screen-game, #tutorialBattle) .queue-slots{flex-wrap:nowrap;overflow:hidden}
:is(#screen-game, #tutorialBattle) .queue-card{flex:0 0 29px;min-height:29px;height:29px}
:is(#screen-game, #tutorialBattle) .queue-card button{height:29px;min-height:29px;padding:1px 3px;box-sizing:border-box}
:is(#screen-game, #tutorialBattle) .queue-card small{margin:0}
:is(#screen-game, #tutorialBattle) .player-console{overflow:visible}
