@font-face{font-family:Manrope;src:url('../assets/game-ui/v5/fonts/Manrope-Variable.ttf') format('truetype');font-weight:200 800;font-style:normal;font-display:swap}
:root{color-scheme:dark;--font:Manrope,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--ink:#f4f3e8;--muted:#b2c2cb;--faint:#8297a7;--panel:#13222dec;--panel-solid:#13222d;--border:#a2bbc536;--gold:#ffbd45;--ember:#f6a034;--veil:#69d6d6;--shadow:0 12px 35px #020b1555;--unit:160px;background:#101f2b;font-family:var(--font);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#101f2b;font:500 15px/1.5 var(--font)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{transition:background .16s,border-color .16s,box-shadow .16s}button:disabled{cursor:not-allowed;opacity:.5}a{color:#ffcf79;text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b4f2ec;outline-offset:4px}button:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--font);line-height:1.15;letter-spacing:-.035em}h1,h2{font-weight:800}p{margin-bottom:12px}small{font-size:inherit}i{font-style:normal}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.dr-icon{width:1em;height:1em;display:inline-block;vertical-align:middle;flex:none}.eyebrow{font-size:12px;font-weight:650;color:#a4bdca;margin-bottom:10px}.quiet,.text-button{background:transparent;color:#e1e9e9;border:1px solid var(--border);border-radius:9px;padding:10px 14px;min-height:42px;font-size:13px;font-weight:650}.quiet:hover,.text-button:hover{background:#a6d3d214;border-color:#8cabb477}
/* Match chrome. */
.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 24px;background:linear-gradient(180deg,#132737fa,#142734e8);border-bottom:1px solid #acc3ca18;position:relative;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:#fff8df;text-decoration:none!important;font-size:23px;font-weight:800;line-height:.95;letter-spacing:-.6px}.brand img{width:38px;height:46px}.top-actions{display:flex;align-items:center;gap:10px}.top-actions>button,.game-menu>summary{border:1px solid #abc4cd55;border-radius:10px;min-height:42px;background:#13212b99;color:#eff0e9;font-weight:700}.history-button{display:flex;align-items:center;gap:9px;padding:8px 15px;font-size:15px}.history-button svg{width:21px;height:21px}.icon-button{height:42px;width:42px;padding:0;font-size:23px}.top-actions>button:hover,.game-menu>summary:hover{background:#36526588}.game-menu{position:relative}.game-menu>summary{width:42px;height:42px;display:grid;place-items:center;list-style:none;cursor:pointer;font-size:21px}.game-menu>summary::-webkit-details-marker{display:none}.tabs{position:absolute;right:0;top:52px;width:235px;background:#12232ffb;border:1px solid #9fbdc862;border-radius:13px;box-shadow:var(--shadow);padding:8px;display:grid;gap:4px}.tabs button{min-height:45px;text-align:left;border:0;background:none;border-radius:7px;padding:10px 13px;font-size:14px;font-weight:650}.tabs button:hover,.tabs button[aria-current]{background:#809db328;color:#ffd389}.tabs button span{float:right;color:#b9cccf}.match-toolbar{height:52px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 24px;background:#142836;position:relative;z-index:5}.arena-picker{display:flex;align-items:center;gap:8px;min-width:0;color:#d2e1e5}.arena-picker>svg{width:20px;height:20px;color:#b2d1d7}.match-toolbar select{background:#192f3e;border:1px solid #a9c3ce35;border-radius:9px;font-size:13px;font-weight:650;height:39px;padding:7px 25px 7px 10px;max-width:100%;color:#e5eeeb}.phase-pill{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:6px 24px;border-radius:24px;border:1px solid #abc6cc70;background:#122531cf;box-shadow:0 2px 10px #0002;white-space:nowrap;max-width:45%}.phase-pill>span,.phase-pill>strong{font-size:17px;font-weight:750}.phase-pill>strong{overflow:hidden;text-overflow:ellipsis}.phase-pill i{color:#b3c5c9}.study-picker{display:flex;align-items:center;gap:9px;color:#b9ccd2;font-size:12px;min-width:0}.study-picker select{width:177px}
/* One world layer, two environments. */
.game-shell{position:relative;isolation:isolate;background:#213d50 url('../assets/game-ui/v5/arenas/rift-arena.png') center/cover no-repeat;min-height:calc(100svh - 120px)}.game-shell::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#10233324,transparent 30%,transparent 65%,#0b1b2a77)}body[data-arena=luminous-sanctuary] .game-shell{background-image:url('../assets/game-ui/v5/arenas/luminous-sanctuary.png')}body[data-arena=luminous-sanctuary] .game-shell::before{background:linear-gradient(180deg,#103b3720,transparent 30%,transparent 65%,#112e3655)}.arena-grid{max-width:1920px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) clamp(310px,25vw,380px);gap:20px;padding:16px 20px 8px}.arena{position:relative;display:grid;grid-template-columns:154px minmax(0,1fr);grid-template-rows:78px minmax(154px,1fr) minmax(24px,auto) minmax(154px,1fr) 86px 126px;column-gap:16px;row-gap:4px;height:calc(100svh - 180px);min-height:640px;align-items:center;min-width:0}.player-bar.opponent{grid-column:1;grid-row:1/3;align-self:start;margin-top:5px}.opponent-reserve{grid-column:2;grid-row:1}.opponent-battlefield{grid-column:2;grid-row:2}.turn-zone{grid-column:1/-1;grid-row:3}.own-battlefield{grid-column:2;grid-row:4}.resource-zone.own{grid-column:2;grid-row:5}.lower-board{display:contents}.own-player{grid-column:1;grid-row:5/7;align-self:end;margin-bottom:5px}.hand-zone{grid-column:2;grid-row:6;min-width:0;align-self:end}.zone{position:relative;min-width:0;width:100%}.zone-heading{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}.zone-heading h2,.resource-zone .zone-heading>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);font-size:12px}.battlefield .zone-heading>span:not(:empty){position:absolute;left:0;top:-13px;right:0;margin:auto;text-align:center;width:max-content;max-width:100%;background:#10232cdd;border:1px solid #9ac0b040;border-radius:8px;padding:2px 8px;color:#d8e9d2;font-size:11px}.creatures{display:flex;justify-content:center;align-items:center;gap:30px;min-height:185px;min-width:0;position:relative;z-index:3}.empty-field{font-size:13px;color:#d8e4e4b3;background:#12232a88;padding:7px 12px;border-radius:8px;margin:0}.unit{border:0;background:none;box-shadow:none;padding:0;width:var(--unit);height:194px;flex:none;position:relative;isolation:isolate}.new-unit{order:-1}.unit:focus-visible{outline:0}.unit:hover .piece-portrait,.unit:focus-visible .piece-portrait{border-color:#ffcf72;box-shadow:0 0 0 2px #ffbf4540,0 0 26px #ffbf4540}.unit:hover .piece-cutout,.unit:focus-visible .piece-cutout{transform:translateY(-3px) scale(1.025)}.arrival-preview{width:var(--unit);height:150px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:12px;pointer-events:none;order:-1;flex:none;color:#fff0c4;font-size:12px;font-weight:650}.arrival-preview>span:last-child{background:#152b36c9;border:1px solid #b7c5b76b;border-radius:8px;padding:4px 9px}.arrival-ring{display:block;width:110px;height:42px;border:2px solid #ffd576;border-radius:50%;box-shadow:0 0 13px #ffba45bb,inset 0 0 20px #ffba4522;background:#ffbf4510}.combat-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}.awakening-path{fill:none;stroke:#ffc359;stroke-width:2.5;stroke-dasharray:8 7;filter:drop-shadow(0 0 5px #e79e2e88)}.combat-path{fill:none;stroke:#ffd178;stroke-width:3;filter:drop-shadow(0 1px 3px #0009);stroke-dasharray:8 5}.combat-path.intercept{stroke:#9de5df}
/* Player identity and library counts. */
.player-bar{display:flex;flex-direction:column;gap:10px;align-items:flex-start;position:relative;z-index:4;min-width:0}.identity{display:flex;align-items:center;gap:10px;min-width:0}.identity strong{font-size:18px;font-weight:800;color:#fff5d8;display:block;letter-spacing:-.45px;text-shadow:0 2px 6px #091e2d}.identity small{display:block;font-size:10px;color:#d3e2e2;font-weight:600;text-shadow:0 1px 3px #071b24}.portrait{height:60px;width:60px;flex:none;border:2px solid #eeb258;border-radius:50%;box-shadow:0 0 0 3px #142b34cf,0 5px 15px #0005;background-size:cover;background-position:center 20%}.veil-portrait{background-image:url('../assets/game-ui/v1/art/V01.png');border-color:#8ce2df}.ember-portrait{background-image:url('../assets/game-ui/v1/art/E02.png')}.player-counters{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.counter.library{display:flex;align-items:center;gap:6px;padding:5px 10px;background:#122734ed;border:1px solid #b2c5cb5c;border-radius:10px;box-shadow:0 3px 12px #0003}.library-glyph{display:grid;place-items:center;color:#eceddd;font-size:22px}.library-glyph .dr-icon{font-size:19px}.counter.library>strong{font-size:29px;font-weight:800;line-height:1.2;color:#fff5db;font-variant-numeric:tabular-nums;order:3}.counter.library>span:last-child{display:flex;flex-direction:column;line-height:1.2}.counter b{font-weight:650;font-size:12px}.counter small{display:none}.counter.warning{border-color:#ffb570}.counter.warning strong{color:#ffc77d}.counter-button{display:flex;align-items:center;gap:5px;border:1px solid #a9bfc63d;background:#132b37db;border-radius:9px;padding:5px 8px;color:#dae6e6;min-height:35px}.counter-button>strong{font-size:17px;font-weight:750}.counter-button>small{font-size:10px}.opponent-hand{display:flex;gap:5px;height:6px;order:3;margin:0 0 0 8px}.opponent-hand i{width:5px;height:5px;background:#8ed8d1;border-radius:50%;opacity:.65}
/* Shared piece primitives. */
.realm-piece{--piece-accent:var(--ember);--piece-glow:#f49d354d;color:var(--ink);position:relative;width:100%;height:100%;font-family:var(--font);isolation:isolate;text-align:left}.piece--veil{--piece-accent:var(--veil);--piece-glow:#4cd5cd42}.realm-piece .dr-art,.node-core .dr-art,.realm-focus>.dr-art,.inspect-hero>.dr-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}.dr-art--pending{background:radial-gradient(ellipse at 50% 25%,#37697066,transparent 75%),#182f3d;display:grid;place-items:center;position:relative}.dr-art--pending>.dr-icon{width:34%;height:34%;color:#a5ceca;opacity:.22}.dr-art--pending>small{position:absolute;top:14%;left:12px;right:12px;text-align:center;color:#d2e2d7a6;font:600 10px var(--font);letter-spacing:.03em}.dr-pending-orbit{display:none}.dr-mana{display:inline-flex;gap:3px;align-items:center;line-height:1;white-space:nowrap}.dr-pip{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;border-radius:50%;font-size:13px;font-weight:800;background:#dddcc8;color:#152329;box-shadow:inset 0 1px 0 #ffffff66}.dr-pip--ember{background:#f8bb65;color:#3c2a18}.dr-pip--veil{background:#91e1d8;color:#12383f}.dr-keyword{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;background:#172f3c;border:1px solid #a7c5c253;border-radius:7px;color:#def0e7;font-size:12px;font-weight:650;white-space:nowrap;line-height:1.25}.dr-keyword>.dr-icon{font-size:15px}.piece-name{margin:0;color:#fff7e8;font-size:17px;font-weight:750;line-height:1.2;letter-spacing:-.4px}.piece-kind{display:flex;align-items:center;gap:5px;font-size:12px;color:#c1d6d7;margin:6px 0 0;text-transform:capitalize}.piece-kind>.dr-icon{color:var(--piece-accent);font-size:14px}.piece-visual{position:relative}.piece-aura{position:absolute;inset:0;background:radial-gradient(ellipse,var(--piece-glow),transparent 70%);filter:blur(9px);pointer-events:none}.piece-portrait{position:absolute;inset:0;overflow:hidden;background:#203a48}.piece-portrait::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,#0b1e2855)}.piece--unit{display:flex;flex-direction:column;align-items:center;justify-content:center;filter:drop-shadow(0 6px 8px #04101b55)}.piece--unit .piece-visual{width:146px;height:146px;flex:none;margin-top:5px}.piece--unit .piece-portrait{inset:5px;border:1px solid var(--piece-accent);border-radius:50%}.piece--unit .piece-portrait>.dr-art{object-position:50% 15%!important}.piece--unit .has-cutout .piece-portrait>.dr-art{opacity:.17;filter:blur(2px)}.piece-cutout{position:absolute;left:-12%;bottom:5px;width:124%;height:117%;object-fit:contain;object-position:bottom;pointer-events:none;user-select:none;z-index:2;filter:drop-shadow(0 3px 3px #05141b66);mask-image:linear-gradient(0deg,transparent,#000 14%);transition:transform .18s ease}.piece-resistance{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;z-index:3;pointer-events:none}.piece-resistance circle{fill:none;stroke-width:1.3}.resistance-track{stroke:#0e2638aa}.resistance-remaining{stroke:var(--piece-accent);stroke-linecap:round;transition:stroke-dasharray .25s}.piece-strength{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);height:42px;width:44px;z-index:5;display:flex;align-items:center;justify-content:center;background:#183a45;border:1px solid #bae4de;color:#fff4d5;clip-path:polygon(0 0,100% 0,100% 76%,50% 100%,0 76%);box-shadow:0 2px 9px #0005}.piece--ember .piece-strength{background:#523b24;border-color:#ffe0a0}.piece-strength>b{font-size:28px;font-weight:800;line-height:1;padding-bottom:4px}.piece-strength>small{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.piece--unit .piece-identity{width:max-content;max-width:180px;text-align:center;margin-top:15px;position:relative;z-index:5}.piece--unit .piece-name{display:block;background:#152b37e8;border:1px solid #a5bfc267;border-radius:9px;padding:4px 9px;box-shadow:0 2px 5px #0002;font-size:14px;white-space:nowrap}.piece-keywords{display:flex;justify-content:center;gap:4px;margin-top:4px}.piece-keywords .dr-keyword{font-size:10px;padding:2px 6px;border-color:#acd4c52e;background:#132d39dc}.piece-keywords .dr-icon{font-size:11px}.piece-status{position:absolute;z-index:5;left:-10px;bottom:8px;border:1px solid #91b6bf69;border-radius:7px;background:#102633ef;padding:3px 6px;font-size:10px;font-weight:650;color:#e3ece4;line-height:1.2}.piece-status.ready{display:none}.piece-status.new{border-color:#e7c377;color:#ffe4a4}.piece-status i{display:none}.piece--exhausted .piece-portrait,.piece--exhausted .piece-cutout{filter:saturate(.45) brightness(.82)}.piece--selected .piece-portrait{border-color:#ffcb69;box-shadow:0 0 0 2px #ffd17666,0 0 26px #ffbf4540}.piece--new .piece-aura{background:radial-gradient(ellipse,#ffcb5a55,transparent 72%)}.piece-damage{position:absolute;top:12px;right:-10px;z-index:6;background:#922f2c;border:1px solid #ffd0a4;color:#fff2e1;padding:3px 7px;border-radius:8px;font-size:11px;font-weight:750;white-space:nowrap;box-shadow:0 2px 8px #0005}.piece-type-mark{position:absolute;right:3px;bottom:5px;font-size:24px;color:var(--piece-accent);z-index:3;filter:drop-shadow(0 1px 3px #061a26)}.piece--artifact.piece--unit .piece-portrait{inset:18px;border-radius:16px;transform:rotate(45deg);border-color:var(--piece-accent)}.piece--artifact.piece--unit .piece-portrait>.dr-art{transform:rotate(-45deg) scale(1.45)}.piece--enchantment.piece--unit .piece-portrait{inset:20px -10px;border-radius:50%;box-shadow:0 0 20px var(--piece-glow)}.piece--enchantment .piece-aura{inset:-10% -20%}
/* Energy network. Public presentation depends only on production and state. */
.resources{display:flex;justify-content:center;gap:23px;min-width:0;padding:4px 12px;position:relative;isolation:isolate}.resource{position:relative;background:none;border:0;box-shadow:none;padding:0;flex:1 1 0;max-width:94px;min-width:0;height:79px;z-index:4;border-radius:50%}.resource:focus-visible{outline:0}.realm-node{width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;isolation:isolate;--node-color:#6ad6d4}.node--ember{--node-color:#f5a33c}.node-core{position:relative;width:58px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 45% 25%,#324854,#142a37 85%);border:1.5px solid #abc6c694;border-radius:50%;box-shadow:0 2px 7px #06172677,inset 0 0 12px #688a9c22;isolation:isolate}.node-element{display:flex;align-items:center;justify-content:center;height:24px;line-height:1;color:var(--node-color);z-index:1}.node-element .dr-icon{width:22px;height:22px}.node--dual .node-element .dr-icon:first-child{color:#f3a244}.node--dual .node-element .dr-icon:last-child{color:#64dad9;margin-left:-8px}.node-output{font-size:17px;font-weight:750;line-height:1;color:#fbf6df;z-index:1;letter-spacing:-.5px}.node-orbit{display:none}.node-connection{height:2px;position:absolute;top:29px;left:-50%;right:-50%;background:#72cccb80;z-index:-1;box-shadow:0 0 5px #86dddd22}.node--ember .node-connection{background:#e7b15b88}.node--selected .node-core{border-color:#ffd373;background:radial-gradient(circle at 45% 40%,#83602e,#483725 90%);box-shadow:0 0 0 2px #ffd36c77,0 0 24px #ffbf4588,inset 0 0 15px #ffb74a44}.node--selected .node-output{color:#fff5d5}.resource:hover .node-core,.resource:focus-visible .node-core{border-color:#ffda91;box-shadow:0 0 0 2px #ffe5b16b,0 0 22px #ffbf4560}.node-reactive{position:absolute;top:-8px;right:-9px;display:grid;place-items:center;width:24px;height:24px;border:1px solid #91ece6;background:#123b47;border-radius:50%;font-size:18px;color:#82eeea;z-index:5}.node-state-dot{display:none}.node-name{position:absolute;left:50%;transform:translateX(-50%);top:65px;z-index:6;border:1px solid #a2b7bd40;border-radius:6px;background:#102631ed;padding:2px 6px;min-width:max-content;max-width:150px;font-size:10px;font-weight:600;color:#d7e5e5;white-space:nowrap;opacity:0;pointer-events:none}.node--selected .node-name,.resource:hover .node-name,.resource:focus-visible .node-name{opacity:1}.node--concealed .node-name{display:none}.node-state{font-size:10px;color:#edf0df;background:#122832e8;border:1px solid #acbec36b;border-radius:5px;padding:1px 5px;line-height:1.2;white-space:nowrap}.node-state--ready{display:none}.node--exhausted .node-core{filter:saturate(.2) brightness(.68);border-style:dashed}.node--pending .node-core{border-color:#ffdf8b;box-shadow:0 0 20px #ffe19c77}.node--pending .node-state{color:#ffe4a0}.node--exhausted .node-name,.node--pending .node-name{display:none}.node--large{min-height:380px;justify-content:center;gap:18px}.node--large .node-core{width:150px;height:150px;box-shadow:0 0 60px #6ed8d51a,inset 0 0 25px #7db6bc22}.node--large .node-element{height:60px}.node--large .node-element .dr-icon{width:55px;height:55px}.node--large .node-output{font-size:38px}.node--large .node-name{position:static;transform:none;opacity:1;border:0;background:none;font-size:15px}.node--large .node-state{font-size:13px;display:block}.node--large .node-reactive{width:36px;height:36px;font-size:25px}.node--large .node-connection{top:46%;left:5%;right:5%}
/* Choices in hand. */
.hand-label{font-size:11px;font-weight:650;color:#dfebed;text-shadow:0 1px 3px #102334;margin-bottom:5px}.hand-label>span{color:#cededd;margin-left:7px;font-weight:500}.hand{display:flex;gap:10px;align-items:stretch;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#99c7ca66 transparent;padding:2px 2px 6px;min-width:0;max-width:100%}.hand-card{flex:1 0 0;min-width:0;height:112px;border:0;background:none;padding:0;position:relative;border-radius:13px;isolation:isolate}.hand-card:focus-visible{outline:0}.piece--hand{overflow:hidden;border-radius:13px;background:#162d3b;border:1px solid #acc3cb8c;box-shadow:0 3px 12px #0004}.piece--hand .piece-visual{position:absolute;inset:0;height:100%;width:100%}.piece--hand .piece-portrait{inset:0;border-radius:0;background:#162d3b}.piece--hand .piece-portrait::after{background:linear-gradient(0deg,#0b1d2af7,transparent 95%),linear-gradient(90deg,#071f2a77,transparent)}.piece--hand .dr-art{object-position:50% 20%!important}.piece--hand .piece-identity{position:absolute;left:10px;right:10px;bottom:9px;z-index:2}.piece--hand .piece-name{font-size:13px;line-height:1.12;max-width:100%;margin:0 0 7px;min-height:14px;font-weight:750;text-shadow:0 1px 4px #06131d}.piece--hand .piece-kind,.piece--hand .piece-hand-output,.piece-hand-price>small{display:none}.piece-hand-price{display:flex;justify-content:flex-end}.piece--hand .dr-pip{width:19px;min-width:19px;height:19px;font-size:11px}.piece--hand .piece-type-mark{font-size:16px;top:7px;bottom:auto;right:8px;background:#122c3acc;border-radius:50%;padding:3px}.hand-card:hover .piece--hand,.hand-card:focus-visible .piece--hand,.piece--hand.piece--selected{border-color:#ffd37c;box-shadow:inset 0 0 0 1px #ffcb6955,0 0 14px #ffbf4533}.hand-card:hover .piece-name,.hand-card:focus-visible .piece-name{color:#ffdc99}
/* Selected piece and active practice. */
.decision-rail{align-self:start;max-height:calc(100svh - 160px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#7e99a96b transparent;border:1px solid #a9bdc56b;border-radius:16px;background:var(--panel);box-shadow:var(--shadow);min-width:0;position:relative;z-index:6}.inspector{min-width:0}.inspect-hero{height:205px;position:relative;overflow:hidden;background:#1b303c;border-radius:15px 15px 0 0}.inspect-hero>.dr-art{object-position:50% 22%!important}.inspect-shade{position:absolute;inset:0;background:linear-gradient(0deg,#11222f 3%,#11222f44 55%,#11222f22)}.inspect-title{position:absolute;left:18px;right:18px;bottom:15px}.inspect-title h2{font-size:30px;margin:0 0 4px;letter-spacing:-1px;font-weight:800;color:#fff7dd}.inspect-title p{font-size:11px;font-weight:600;color:#d6e1df;margin:0}.inspect-context{position:absolute;left:14px;top:12px;max-width:calc(100% - 64px);background:#102430c9;color:#dce5de;padding:4px 7px;border:1px solid #b5c4cb30;border-radius:6px;font-size:10px;font-weight:650;text-transform:capitalize}.card-enlarge{position:absolute;right:12px;top:11px;display:grid;place-items:center;width:31px;height:31px;border-radius:7px;border:1px solid #bdcad066;background:#10232ccc;color:#e4e9dd}.card-enlarge:hover{background:#3b5b6c}.card-enlarge .dr-icon{font-size:18px}.inspect-body{padding:10px 18px 12px}.inspect-traits{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:13px}.inspect-stats{display:inline-flex;align-items:center;gap:12px;color:#fff3da;background:#152b38;border:1px solid #ebae44;border-radius:9px;padding:3px 12px;min-height:39px}.inspect-stats small{font-size:14px;font-weight:600}.inspect-stats b{font-size:29px;font-weight:800;line-height:1.15}.inspect-traits .dr-keyword{font-size:13px;padding:8px 10px;min-height:39px}.inspect-prices{display:grid;gap:0;margin-bottom:10px}.inspect-prices>span{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #a8c1c52c;gap:12px;padding:7px 0}.inspect-prices small{font-size:13px;font-weight:600;color:#d5e3e3}.inspect-prices strong{font-size:17px;font-weight:750;white-space:nowrap;color:#fff1d2}.resource-permission{color:#8de6de;font-size:16px}.face-info{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #abc5c22b;font-size:12px;padding:7px 0;color:#c1d8dc}.face-info strong{font-size:15px;color:#f1e7d2;font-weight:750}.rules-text{font-size:13px;line-height:1.55;color:#e0e9e6;margin:9px 0}.inspect-rules:empty{display:none}.card-story,.secondary-prices{font-size:12px;color:#b1c8d1;margin-top:10px}.card-story summary,.secondary-prices summary{cursor:pointer;font-size:12px;font-weight:600;min-height:24px}.card-story p{font-size:13px;line-height:1.6;margin:7px 0}.flavor{font-style:italic;color:#c2d6d1}.inspector>.eyebrow,.inspector>h2,.inspector>.card-type,.inspector>.face-info,.inspector>.rules-text,.inspector>.flavor,.inspector>.grave-list{margin-left:18px;margin-right:18px}.inspector>.eyebrow{margin-top:20px}.inspector>h2{font-size:27px;margin-top:8px}.card-type{font-size:13px;text-transform:capitalize;color:#bad1d6}.grave-list{padding-left:17px;font-size:14px;line-height:1.8}.study-panel{padding:0 18px 15px}.step-actions{display:flex;align-items:center;gap:8px;padding-top:12px}.primary{min-height:54px;padding:12px 14px;flex:1;min-width:0;border:1px solid #ffd775;border-radius:11px;background:linear-gradient(120deg,#ffc14b,#ffb133);color:#24221e;font-size:19px;font-weight:800;letter-spacing:-.6px;box-shadow:0 3px 9px #06162344;text-align:center}.primary:hover:enabled{background:linear-gradient(120deg,#ffd575,#ffc258);box-shadow:0 0 0 2px #ffdf9540,0 4px 12px #0003}.primary:disabled{background:#304652;border-color:#7a929d77;color:#c8d5d6;opacity:.9}.reset-button{height:43px;width:35px;background:#10242d;border:1px solid #a6bfc35c;border-radius:9px;color:#c3d6d7;font-size:24px;padding:0}.reset-button:hover{background:#2e4b59}.priority-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 0;font-size:12px;font-weight:650;color:#bdd3d6}.priority-status>span:first-child{color:#ffcf73}.priority-status>span{min-width:0}.outcome{font-size:12px;line-height:1.5;color:#b8d0d4;margin:11px 0 0}.outcome:empty{display:none}.study-explanation{border-top:1px solid #a6c5c22b;padding-top:12px;margin-top:13px;color:#b7ccd2}.study-explanation>summary{font-size:12px;font-weight:600;cursor:pointer}.study-explanation .eyebrow{font-size:11px;margin-top:14px;margin-bottom:7px;color:#8ab6c3}.study-explanation h1{font-size:20px;margin-bottom:10px}.study-explanation>p{font-size:13px;line-height:1.6}.payment{border-top:1px solid #9ec2c529;padding-top:9px}.payment>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin:6px 0}.payment>div>span{color:#aec8d0}.payment strong{font-weight:700;max-width:66%;text-align:right;color:#f6e5bc}.payment p{font-size:12px;margin:9px 0;line-height:1.6}.payment .resource-change{font-size:23px}.payment .lost-output{color:#ffc382}.study-controls{display:grid;gap:9px;border-top:1px solid #aac5c72e;margin-top:12px;padding-top:13px}.study-controls>label,.blocker-label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#c6dade;font-weight:600}.study-controls select,.blocker-label select{background:#1e3542;color:#e9efec;border:1px solid #a9c6ce5e;min-width:0;width:100%;border-radius:8px;padding:8px 9px;min-height:38px;font-size:12px;font-weight:600}.check-row{display:flex!important;align-items:center;flex-direction:row!important;gap:8px;font-size:12px;color:#d1e4e2;padding:6px 0}.check-row input{accent-color:#ffc35d;height:16px;width:16px}.study-controls p{font-size:12px;color:#a5d8ca;line-height:1.5;margin:1px 0}.chain-buttons{display:flex;gap:8px}.chain-buttons>*{flex:1}.study-controls .quiet{font-size:12px;min-height:37px;padding:7px 9px}.blocker-label{margin-top:7px}.piece-actions{display:flex;gap:8px;margin:0 18px 10px}.piece-actions button{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:40px;border:1px solid #99bac367;border-radius:8px;background:#203b49;color:#e0eae6;padding:8px 11px;font-size:12px;font-weight:650}.piece-actions b{font-size:14px;color:#ffe5b0}.piece-actions button:hover:enabled{background:#345465}.piece-actions button:disabled{opacity:.4}.turn-zone{position:relative;z-index:6;min-width:0;justify-self:center;width:min(600px,100%)}.stack{display:flex;flex-direction:column;gap:5px;max-height:115px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#95bfc26b #1937485b}.empty-stack{display:none}.stack-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 12px;background:#102733eb;border:1px solid #98d5d37a;border-radius:9px;font-size:13px;font-weight:650;color:#ecf1e6;box-shadow:0 3px 10px #03101c44;flex-shrink:0}.stack-entry small{display:block;color:#a8c9d0;font-size:11px;font-weight:500;line-height:1.4}.stack-order{font-size:9px;color:#ffd586;max-width:80px;text-align:right}.assignments{font-size:12px;font-weight:650;text-align:center;color:#fff2cd;background:#102833dd;border:1px solid #91c2c552;border-radius:8px;padding:4px 9px;margin:5px 0 0}.arena-footer{height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 24px;background:#0d202bc9;color:#c4d6d8;font-size:10px;border-top:1px solid #a9c4c221}.prototype-note{font-size:10px;color:#9bb6c1}.footer-hint{font-size:10px}kbd{font:600 10px var(--font);border:1px solid #9dbfc55d;padding:1px 4px;border-radius:4px;background:#213847}.event-log{position:fixed;right:24px;top:82px;z-index:40;max-width:calc(100% - 32px);width:390px;max-height:70svh;overflow-y:auto;padding:18px;background:#122632fa;border:1px solid #afcbcd99;border-radius:14px;box-shadow:var(--shadow)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.drawer-heading h2{font-size:23px;margin:0}.drawer-heading button{border:0;background:none;color:#cbe3e2;font-size:28px;line-height:1}.event-log ol{font-size:13px;line-height:1.6;color:#c6dde0;padding-left:19px;margin-bottom:0}.event-log li{margin:10px 0}
/* Collection and reference. */
.content-view{max-width:1540px;margin:auto;padding:38px 40px 65px;min-height:calc(100svh - 68px);background:radial-gradient(ellipse at 20% 0,#28505b35,transparent 65%)}.view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:30px}.view-heading h1{font-size:38px;color:#f7f2df;margin:0;letter-spacing:-1.5px}.view-heading>p{font-size:14px;line-height:1.6;color:#b9d0d6;text-align:right;margin:0}.view-heading .eyebrow{font-size:12px;color:#eab96b;letter-spacing:.05em}.collection-note{font-size:13px;margin-top:-12px;margin-bottom:22px}.deck-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}.deck-button{padding:19px;text-align:left;background:linear-gradient(125deg,#254657,#182d3d);border:1px solid #a6c2ce46;border-radius:12px;color:#e6eee6}.deck-button strong{display:block;font-size:20px;font-weight:750;letter-spacing:-.5px;margin-bottom:5px}.deck-button span{font-size:12px;color:#acc9d1}.deck-button:hover,.deck-button[aria-pressed=true]{border-color:#f0bd6a;background:linear-gradient(125deg,#3b514e,#1c3546)}.deck-details{border:1px solid #a6c6c74d;border-radius:13px;background:#183340a6;padding:23px;margin-bottom:24px}.deck-details h2{font-size:29px;margin-bottom:15px}.deck-details p{font-size:14px;line-height:1.7;color:#bdd4d8}.deck-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 24px;margin:18px 0}.deck-list button{border:0;background:none;text-align:left;color:#e8e9df;font-size:13px;padding:9px 0;border-bottom:1px solid #a5c7c728}.deck-list span{color:#ecc78e;font-size:12px}.catalog-controls{display:flex;align-items:flex-end;gap:14px;margin-bottom:23px}.catalog-controls label{display:flex;flex-direction:column;gap:8px;color:#b9d3d8;font-size:12px;font-weight:650;min-width:0}.catalog-controls label:first-child{flex:1}.catalog-controls input,.catalog-controls select{width:100%;min-width:0;border:1px solid #a0bdc456;background:#1b3343;border-radius:9px;min-height:44px;padding:10px 12px;color:#eaf0e7;font-size:13px}.catalog-controls select{min-width:145px}.catalog-controls .quiet{min-height:44px}.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start}.catalog-layout>.inspector{position:sticky;top:20px;background:#142936;border:1px solid #a5bfc26b;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.results-count{font-size:12px;color:#aac8d2;margin-bottom:14px}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.catalog-card{position:relative;padding:0;border:0;background:none;border-radius:12px;text-align:left;min-width:0}.catalog-card:focus-visible{outline-offset:4px}.piece--entry{height:205px;overflow:hidden;border:1px solid #afc8c86b;border-radius:12px;background:#183342;box-shadow:0 4px 15px #0003}.piece--entry .piece-visual{position:absolute;inset:0}.piece--entry .piece-portrait{inset:0}.piece--entry .piece-portrait::after{background:linear-gradient(0deg,#0b1f2bf5 2%,#0b1f2b55 70%,transparent),linear-gradient(90deg,#0c243b33,transparent)}.piece--entry .dr-art{object-position:50% 17%!important}.piece--entry .piece-identity{position:absolute;left:14px;right:14px;bottom:14px;z-index:3}.piece--entry .piece-name{font-size:21px;margin:0;letter-spacing:-.7px}.piece--entry .piece-kind{font-size:11px;color:#b7d4d9}.piece-entry-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.piece-entry-meta>span:first-child{display:flex;align-items:center;gap:7px}.piece-entry-meta small{font-size:10px;font-weight:700;color:#c4d8d5}.piece-entry-keywords{display:flex;gap:4px}.piece-entry-keywords .dr-keyword{font-size:9px;padding:3px 6px}.piece-entry-keywords .dr-icon{font-size:12px}.piece--entry .piece-type-mark{top:10px;right:10px;bottom:auto;font-size:21px}.catalog-card:hover .piece--entry,.piece--entry.piece--selected{border-color:#ffce79;box-shadow:0 0 0 1px #ffd27333,0 5px 18px #0003}.empty-results{grid-column:1/-1;font-size:16px;color:#b5cdd4;padding:25px 0}.rules-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:38px;align-items:start}.rules-layout>nav{position:sticky;top:20px;display:flex;flex-direction:column;border-left:1px solid #92bac551}.rules-layout>nav a{font-size:12px;padding:8px 13px;color:#b1ccd6;line-height:1.5}.rules-layout>nav a:hover{background:#7fc2ca12;color:#ffda92}.rule-doc{min-width:0;color:#c5d8dc;font-size:15px;line-height:1.75;overflow-wrap:anywhere}.rule-doc h1{font-size:34px;color:#f6ebd2}.rule-doc h2{font-size:28px;color:#f3ead7;margin-top:35px;padding-top:24px;border-top:1px solid #9ec3c738;scroll-margin-top:20px}.rule-doc h3{font-size:22px;color:#ead9b9;margin-top:24px}.rule-doc strong{color:#f0e7d1;font-weight:750}.rule-doc table{border-collapse:collapse;width:100%;font-size:12px;margin:19px 0;line-height:1.6}.rule-doc th,.rule-doc td{border:1px solid #9ac4c849;padding:10px;text-align:left;vertical-align:top}.rule-doc th{background:#224450;color:#e1eee4}.rule-doc li{margin:7px 0}.rule-doc code{background:#234350;color:#efddb0;padding:2px 5px;border-radius:4px}.rule-doc blockquote{margin-left:0;border-left:2px solid #c49d61;padding-left:18px}
/* Expanded live scene and help. */
dialog{width:min(580px,calc(100% - 32px));max-height:92svh;overflow-y:auto;border:1px solid #a6c6ce7b;border-radius:16px;padding:30px;background:linear-gradient(140deg,#1b3645,#102532);color:#e4ede7;box-shadow:0 20px 80px #020a14cc;font:500 14px/1.6 var(--font)}dialog::backdrop{background:#06121de3;backdrop-filter:blur(10px)}dialog h2{font-size:32px;margin:10px 0 18px;color:#f9efda;letter-spacing:-1px}dialog p{font-size:14px;color:#c4d9dd}dialog ol{padding-left:20px;font-size:14px;color:#c4d9dd}dialog li{margin:14px 0}dialog strong{color:#f4e3bc;font-weight:750}dialog .guide-note{font-size:12px;border-top:1px solid #a0c6c638;padding-top:16px;margin-top:20px}dialog .primary{width:100%;margin-top:12px}.dialog-close{position:absolute;top:10px;right:12px;width:33px;height:33px;z-index:5;display:grid;place-items:center;border-radius:50%;border:1px solid #aec6ca70;background:#10242dbb;color:#e0eae3;font-size:27px;padding:0;line-height:1}.dialog-close:hover{background:#385769}.card-zoom{width:min(1080px,calc(100% - 32px));padding:0;background:#112733;max-height:94svh}.card-zoom-body{display:grid;grid-template-columns:1.08fr 1fr;gap:0;align-items:stretch;min-height:560px}.zoom-face{min-width:0;overflow:hidden}.realm-focus{--piece-accent:var(--ember);position:relative;isolation:isolate;min-height:560px;height:100%;background:radial-gradient(ellipse at 50% 30%,#335362,#132b38 75%);overflow:hidden}.realm-focus.piece--veil{--piece-accent:var(--veil)}.realm-focus>.dr-art{object-position:50% 20%!important}.focus-vignette{position:absolute;inset:0;background:linear-gradient(0deg,#0d2431,transparent 65%),linear-gradient(90deg,transparent 70%,#0d243133)}.focus-realm{position:absolute;left:24px;top:25px;display:flex;align-items:center;gap:9px;font-size:11px;font-weight:750;color:var(--piece-accent);text-shadow:0 2px 6px #0008}.focus-realm .dr-icon{font-size:23px}.focus-presence{position:absolute;left:27px;right:24px;bottom:27px}.focus-presence>span{font-size:11px;text-transform:capitalize;color:var(--piece-accent);font-weight:650}.focus-presence h2{font-size:37px;font-weight:800;color:#fff1d0;line-height:1.03;margin:9px 0 18px;letter-spacing:-1.3px;text-wrap:balance}.focus-strength{display:flex;align-items:center;gap:13px;background:transparent;border:0;padding:0}.focus-strength>span:first-child{display:flex;align-items:center;gap:10px}.focus-strength small{font-size:11px;font-weight:650;color:#bdd5d7}.focus-strength b{font-size:36px;color:#fbe4ae}.focus-strength .piece-damage{position:static;font-size:12px}.focus-resistance{font-size:12px;color:#cce0df}.focus--dormant{display:flex;align-items:center}.realm-focus .dr-art--pending>small{font-size:12px;top:16%}.zoom-info{padding:35px 32px;align-self:center;min-width:0}.zoom-info .eyebrow{font-size:11px;color:#b7d2d5}.zoom-info h2{font-size:29px;margin:10px 0 13px}.zoom-info .card-type{font-size:12px}.zoom-routes{display:grid;gap:0;margin:19px 0}.zoom-routes>span{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;border-bottom:1px solid #a3c4c53d;padding:9px 0;color:#c7dcdf}.zoom-routes strong{font-size:19px;font-weight:800;color:#ffe4ae}.focus-rules{margin-top:21px}.piece-rule{font-size:14px;line-height:1.65;color:#e1e9e3;margin:11px 0}.zoom-keywords{display:grid;gap:15px;margin-top:21px}.zoom-keywords p{font-size:12px;line-height:1.6;color:#b8d3d8;margin:0}.zoom-keywords strong{display:block;color:#a2e4dd;font-size:12px;margin-bottom:3px}.zoom-keywords .dr-icon{font-size:15px;margin-right:4px}.zoom-info .flavor{font-size:13px;margin-top:22px;line-height:1.6}.zoom-info .zoom-hint{font-size:11px;margin-top:22px;color:#8eaebd}.digital-guide{width:min(690px,calc(100% - 30px))}.design-lifecycle{display:flex;align-items:center;justify-content:center;gap:36px;margin:30px 0}.design-lifecycle>div{width:160px;height:225px}.design-lifecycle>div>span{display:block;text-align:center;font-size:11px;font-weight:700;color:#c6e1df;margin-bottom:23px}.design-lifecycle>div>.realm-node{height:165px}.design-lifecycle>div>.realm-piece{height:185px}.design-lifecycle>b{font-size:28px;color:#ffcd78}.digital-guide-points{display:grid;gap:12px}.digital-guide-points p{margin:0;font-size:13px}
/* Scales preserve the same interaction model on smaller displays. */
@media(min-width:1650px) and (min-height:1000px){:root{--unit:190px}.arena{grid-template-columns:180px minmax(0,1fr);grid-template-rows:90px minmax(190px,1fr) minmax(30px,auto) minmax(190px,1fr) 100px 155px}.unit{height:230px}.piece--unit .piece-visual{width:178px;height:178px}.piece--unit .piece-name{font-size:17px;padding:5px 12px}.piece-strength{width:49px;height:48px}.piece-strength>b{font-size:33px}.piece--unit .piece-identity{margin-top:17px;max-width:215px}.resources{gap:28px}.resource{height:88px;max-width:110px}.node-core{width:68px;height:68px}.node-connection{top:34px}.node-output{font-size:21px}.node-element{height:28px}.node-element .dr-icon{width:26px;height:26px}.node-name{top:75px;font-size:12px}.hand-card{height:139px}.piece--hand .piece-name{font-size:17px}.piece--hand .dr-pip{width:23px;min-width:23px;height:23px;font-size:13px}.portrait{width:76px;height:76px}.identity strong{font-size:22px}.identity small{font-size:12px}.player-counters{gap:12px}.counter.library>strong{font-size:34px}.counter b{font-size:14px}.inspect-hero{height:260px}.inspect-title h2{font-size:35px}.inspect-prices small{font-size:15px}.inspect-prices strong{font-size:21px}.rules-text{font-size:15px}.primary{font-size:22px;min-height:60px}.priority-status,.outcome{font-size:13px}}
@media(max-width:1190px){:root{--unit:140px}.arena-grid{grid-template-columns:minmax(0,1fr) 286px;gap:14px;padding:14px 14px 8px}.arena{grid-template-columns:117px minmax(0,1fr);column-gap:10px;min-height:630px;grid-template-rows:76px minmax(148px,1fr) minmax(24px,auto) minmax(148px,1fr) 84px 126px}.unit{height:181px}.piece--unit .piece-visual{width:128px;height:128px}.piece--unit .piece-name{font-size:12px;padding:4px 7px;white-space:normal;max-width:150px}.piece-strength{width:38px;height:38px}.piece-strength>b{font-size:25px}.piece--unit .piece-identity{margin-top:12px}.creatures{gap:18px;min-height:167px}.resources{gap:12px;padding:4px 0}.node-core{width:49px;height:49px}.node-element{height:20px}.node-element .dr-icon{width:19px;height:19px}.node-output{font-size:16px}.node-connection{top:25px}.resource{height:72px;max-width:78px}.node-name{top:57px;font-size:9px}.node-reactive{width:20px;height:20px;font-size:15px;right:-6px;top:-6px}.node-state{font-size:9px}.identity{gap:7px;flex-wrap:wrap}.identity strong{font-size:16px}.portrait{width:49px;height:49px}.identity small{font-size:9px}.player-counters{gap:5px}.counter.library{padding:5px 7px;gap:5px}.counter.library>strong{font-size:26px}.counter b{font-size:11px}.library-glyph .dr-icon{font-size:15px}.counter-button{padding:4px 6px;min-height:29px}.counter-button small{font-size:9px}.hand-card{flex:0 0 142px}.hand{gap:8px}.arrival-preview{height:135px;width:var(--unit);font-size:10px}.arrival-ring{width:90px;height:34px}.inspect-hero{height:175px}.inspect-title{left:14px;right:14px}.inspect-title h2{font-size:27px}.inspect-body{padding:9px 14px 10px}.inspect-traits{gap:6px;margin-bottom:10px}.inspect-stats{gap:8px;padding:3px 9px;min-height:35px}.inspect-stats small{font-size:12px}.inspect-stats b{font-size:26px}.inspect-traits .dr-keyword{font-size:11px;min-height:35px;padding:7px 8px}.inspect-prices small{font-size:12px}.inspect-prices strong{font-size:16px}.study-panel{padding-left:14px;padding-right:14px}.primary{font-size:16px;min-height:50px;padding:11px 9px}.priority-status{font-size:11px}.piece-actions{margin-left:14px;margin-right:14px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-layout{grid-template-columns:minmax(0,1fr) 286px;gap:20px}.phase-pill{padding:5px 16px;gap:9px;max-width:37%}.phase-pill>span,.phase-pill>strong{font-size:14px}.study-picker>span{display:none}.match-toolbar{padding-left:18px;padding-right:18px}.study-picker select{width:160px}.arena-picker select{max-width:195px;font-size:12px}}
@media(max-width:900px){.arena-grid{grid-template-columns:1fr;padding:12px 20px 18px;gap:20px}.arena{height:730px;min-height:0;grid-template-columns:140px minmax(0,1fr);grid-template-rows:80px 180px 35px 180px 86px 126px;row-gap:5px;column-gap:15px}.unit{height:196px;width:155px}.piece--unit .piece-visual{width:143px;height:143px}.piece--unit .piece-name{font-size:14px;max-width:170px}.creatures{gap:25px}.resources{gap:18px}.node-core{width:56px;height:56px}.node-connection{top:28px}.node-output{font-size:18px}.node-element{height:23px}.node-element .dr-icon{width:22px;height:22px}.node-name{top:64px}.decision-rail{max-height:none;overflow:visible;width:min(100%,660px);justify-self:center;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.inspect-hero{height:215px}.inspector{overflow:hidden}.study-panel{padding-top:15px}.inspect-title h2{font-size:29px}.inspect-body{padding:13px 16px}.inspect-prices small{font-size:13px}.inspect-prices strong{font-size:18px}.primary{font-size:18px}.priority-status{flex-wrap:wrap;font-size:12px}.hand-card{flex:0 0 155px}.topbar{padding-left:20px;padding-right:20px}.catalog-layout{grid-template-columns:minmax(0,1fr) 250px}.catalog-controls{flex-wrap:wrap}.catalog-controls label:first-child{flex-basis:100%}.catalog-grid{gap:14px}.piece--entry .piece-name{font-size:19px}.piece-entry-meta{flex-wrap:wrap}.catalog-controls select{min-width:0}.rules-layout{grid-template-columns:190px minmax(0,1fr);gap:23px}.phase-pill{left:48%;max-width:34%}.phase-pill>span,.phase-pill>strong{font-size:13px}.arena-picker select{max-width:175px}.study-picker select{max-width:157px}.counter-button small{font-size:10px}}
@media(max-width:600px){:root{--unit:125px}.topbar{height:65px;padding:0 14px;gap:10px}.brand{font-size:20px;gap:8px}.brand img{width:31px;height:38px}.top-actions{gap:7px}.history-button{padding:8px 10px}.history-button>span{display:none}.history-button svg{width:20px;height:20px}.icon-button,.game-menu>summary{width:36px;height:39px;min-height:39px;font-size:20px}.top-actions>button{min-height:39px}.match-toolbar{height:auto;min-height:88px;padding:9px 14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 10px}.arena-picker{gap:5px}.arena-picker>svg{width:17px;height:17px}.arena-picker select{font-size:11px;height:35px;padding:5px 15px 5px 7px;max-width:calc(100% - 22px);width:100%}.study-picker{justify-self:stretch;min-width:0}.study-picker select{font-size:11px;height:35px;max-width:100%;width:100%;padding:5px 7px}.phase-pill{position:static;grid-row:2;grid-column:1/-1;justify-self:center;transform:none;max-width:100%;min-height:28px;padding:3px 15px;gap:10px}.phase-pill>span,.phase-pill>strong{font-size:13px}.game-shell{min-height:calc(100svh - 153px);background-size:auto 800px;background-position:top center;background-color:#102838}.arena-grid{padding:10px 12px 20px;gap:20px}.arena{height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:62px 66px 176px minmax(22px,auto) 176px 75px 61px 129px;column-gap:0;row-gap:4px;align-items:center}.player-bar.opponent{grid-row:1;grid-column:1;margin-top:0;align-self:center}.opponent-reserve{grid-row:2;grid-column:1}.opponent-battlefield{grid-row:3;grid-column:1}.turn-zone{grid-row:4;grid-column:1}.own-battlefield{grid-row:5;grid-column:1}.resource-zone.own{grid-row:6;grid-column:1}.own-player{grid-row:7;grid-column:1;align-self:center;margin:0}.hand-zone{grid-row:8;grid-column:1;align-self:center}.player-bar{flex-direction:row;align-items:center;gap:9px;justify-content:space-between}.identity{flex-wrap:nowrap;gap:8px;min-width:0}.identity strong{font-size:16px}.identity small{font-size:9px}.portrait{width:46px;height:46px}.player-counters{margin-left:auto;gap:6px;flex-wrap:nowrap}.counter.library{padding:5px 8px;gap:5px}.counter.library>strong{font-size:24px}.counter b{font-size:10px}.counter-button{padding:4px 6px;min-height:32px}.counter-button small{font-size:8px;max-width:42px;line-height:1.2}.opponent-hand{display:none}.library-glyph .dr-icon{font-size:15px}.unit{width:125px;height:168px}.piece--unit .piece-visual{width:122px;height:122px}.piece--unit .piece-name{font-size:12px;padding:4px 7px;max-width:147px}.piece--unit .piece-identity{margin-top:12px;max-width:145px}.piece--unit .piece-keywords{margin-top:3px}.piece-keywords .dr-keyword{font-size:9px;padding:2px 5px}.piece-strength{height:37px;width:37px;bottom:-8px}.piece-strength>b{font-size:24px}.piece-status{left:-3px;bottom:7px;font-size:9px;padding:3px 5px}.piece-damage{font-size:10px;top:8px;right:-3px}.creatures{min-height:168px;gap:28px;flex-wrap:wrap}.piece-cutout{height:116%;width:120%;left:-10%}.resources{gap:10px;padding:4px 7px}.resource{height:64px;max-width:72px}.node-core{width:47px;height:47px}.node-output{font-size:15px}.node-element{height:20px}.node-element .dr-icon{width:19px;height:19px}.node-connection{top:24px}.node-reactive{width:20px;height:20px;font-size:15px;right:-6px;top:-6px}.node-name{font-size:9px;top:54px;max-width:130px;padding:2px 4px}.node-state{font-size:9px}.arrival-preview{width:118px;height:135px;font-size:9px;gap:8px}.arrival-preview>span:last-child{padding:3px 6px}.arrival-ring{width:84px;height:32px}.hand-label{font-size:11px;margin-bottom:3px}.hand-label::after{content:'More choices →';float:right;font-size:10px;color:#d0e2e2}.hand{gap:9px;scroll-snap-type:x mandatory;padding:3px 2px 8px}.hand-card{flex:0 0 148px;height:112px;scroll-snap-align:start}.piece--hand .piece-name{font-size:14px}.hand-card .dr-pip{min-width:20px;width:20px;height:20px;font-size:12px}.stack{max-height:130px}.stack-entry{font-size:12px;padding:7px 9px;gap:10px}.stack-entry small{font-size:10px}.stack-order{font-size:8px;max-width:57px}.assignments{font-size:10px}.decision-rail{grid-template-columns:1fr;display:block;border-radius:14px}.inspect-hero{height:235px;border-radius:13px 13px 0 0}.inspect-title{left:18px;right:18px}.inspect-title h2{font-size:33px}.inspect-title p{font-size:12px}.inspect-context{font-size:10px}.inspect-body{padding:12px 18px}.inspect-traits{margin-bottom:12px}.inspect-stats{min-height:40px;padding:4px 12px;gap:12px}.inspect-stats small{font-size:14px}.inspect-stats b{font-size:29px}.inspect-traits .dr-keyword{font-size:13px;padding:8px 10px}.inspect-prices>span{padding:8px 0}.inspect-prices small{font-size:14px}.inspect-prices strong{font-size:19px}.rules-text{font-size:14px}.study-panel{padding:0 18px 18px}.step-actions{padding-top:10px}.primary{font-size:20px;min-height:56px}.priority-status{font-size:12px;flex-wrap:nowrap}.outcome{font-size:13px}.study-controls>label,.blocker-label{font-size:13px}.study-controls select,.blocker-label select{font-size:13px;min-height:42px}.study-controls p{font-size:13px}.piece-actions{margin:0 18px 12px}.piece-actions button{font-size:13px;min-height:44px}.arena-footer{height:auto;min-height:30px;padding:8px 14px;justify-content:center}.footer-hint{display:none}.prototype-note{font-size:10px}.battlefield .zone-heading>span:not(:empty){font-size:9px;top:-8px}.event-log{top:75px;right:12px;width:calc(100% - 24px);max-width:none}.content-view{padding:27px 16px 45px}.view-heading{display:block;margin-bottom:25px}.view-heading h1{font-size:33px;letter-spacing:-1px}.view-heading>p{font-size:13px;text-align:left;margin-top:13px}.view-heading .eyebrow{font-size:10px}.collection-note{font-size:12px;margin-top:-10px}.deck-row{grid-template-columns:1fr;gap:10px}.deck-button{padding:16px}.deck-button strong{font-size:20px}.deck-button span{font-size:12px}.catalog-controls{gap:11px;margin-bottom:20px}.catalog-controls label{flex:1;font-size:11px}.catalog-controls select,.catalog-controls input{font-size:12px;padding:10px;min-height:42px}.catalog-controls .quiet{flex-basis:100%;min-height:38px}.catalog-layout{grid-template-columns:1fr;gap:23px}.catalog-grid{grid-template-columns:1fr;gap:15px}.piece--entry{height:205px}.piece--entry .piece-name{font-size:25px}.piece--entry .piece-kind{font-size:12px}.piece-entry-meta{flex-wrap:nowrap}.piece-entry-meta .dr-pip{height:24px;min-width:24px;font-size:14px}.catalog-layout>.inspector{position:static}.deck-details{padding:18px}.deck-list{grid-template-columns:1fr;gap:3px}.rules-layout{grid-template-columns:1fr;gap:24px}.rules-layout>nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #9bc6c43a;border-radius:10px;padding:7px}.rules-layout>nav a{font-size:11px;padding:6px 8px}.rule-doc{font-size:14px}.rule-doc h1{font-size:28px}.rule-doc h2{font-size:25px}.rule-doc table{display:block;overflow-x:auto;font-size:11px}.rule-doc th,.rule-doc td{padding:7px;min-width:90px}dialog{padding:28px 22px;max-height:92svh;width:calc(100% - 22px)}dialog h2{font-size:29px}dialog p,dialog li{font-size:13px}.card-zoom{padding:0;width:calc(100% - 18px);max-height:94svh}.card-zoom-body{grid-template-columns:1fr;min-height:0}.realm-focus{min-height:370px;height:370px}.focus-presence{left:22px;right:22px;bottom:22px}.focus-presence h2{font-size:34px}.focus-realm{left:22px;top:22px;font-size:10px}.zoom-info{padding:25px 23px}.zoom-info h2{font-size:28px}.zoom-routes>span{font-size:13px}.piece-rule{font-size:14px}.focus-strength{gap:10px;flex-wrap:wrap}.focus-strength small{font-size:10px}.focus-strength b{font-size:31px}.node--large{min-height:330px}.node--large .node-core{width:140px;height:140px}.node--large .node-output{font-size:38px}.node--large .node-element{height:55px}.node--large .node-element .dr-icon{width:50px;height:50px}.node--large .node-reactive{width:34px;height:34px;font-size:24px}.node--large .node-name{position:static;transform:none;font-size:14px}.node--large .node-state{font-size:12px}.design-lifecycle{gap:15px;margin:25px 0}.design-lifecycle>div{width:125px;height:210px}.design-lifecycle>div>span{font-size:10px}.design-lifecycle>div>.realm-piece{height:175px}.design-lifecycle>b{font-size:24px}.digital-guide-points p{font-size:13px}body[data-current-scenario=coordinated] .unit,body[data-current-scenario=evasion] .unit{width:100px;height:157px}body[data-current-scenario=coordinated] .piece--unit .piece-visual,body[data-current-scenario=evasion] .piece--unit .piece-visual{width:100px;height:108px}body[data-current-scenario=coordinated] .piece-name,body[data-current-scenario=evasion] .piece-name{font-size:10px;white-space:normal;max-width:112px}body[data-current-scenario=coordinated] .creatures,body[data-current-scenario=evasion] .creatures{gap:10px}}
body[data-current-scenario=chain] #board-inspector{display:none}body[data-current-scenario=chain] .study-panel{padding-top:15px}body[data-current-scenario=deployment] #board-inspector .inspect-hero,body[data-current-scenario=evasion] #board-inspector .inspect-hero{height:155px}
/* Final contrast, silhouette and edge constraints shared by both environments. */
.has-cutout .piece-resistance{z-index:1}.resource:first-child .node-connection{left:50%}.resource:last-child .node-connection{right:50%}.piece--hand .piece-name{font-size:15px}.decision-rail{background:#142632}.primary{font-size:22px}.primary[data-long-label=true]{font-size:17px}.inspect-prices small{font-size:14px}.inspect-prices strong{font-size:18px}.inspect-hero:is([data-art-id=E08],[data-art-id=V03],[data-art-id=E09])>.dr-art{object-position:50% 7%!important}
@media(min-width:901px){.player-bar{width:215px}.identity{flex-wrap:nowrap}.identity strong{white-space:nowrap;font-size:18px}.identity small{white-space:nowrap}.opponent-reserve .resources{transform:translateY(-4px)}.opponent-battlefield .creatures{transform:translateY(12px)}}
@media(max-width:1190px) and (min-width:901px){.player-bar{width:175px}.identity strong{font-size:15px}.identity small{font-size:9px}.primary{font-size:18px}.primary[data-long-label=true]{font-size:15px}.piece--hand .piece-name{font-size:14px}}
@media(max-width:600px){.primary{font-size:20px}.primary[data-long-label=true]{font-size:17px}.step-actions{position:fixed;left:12px;right:12px;bottom:10px;z-index:30;padding:7px;background:#132633f5;border:1px solid #9bbbc577;border-radius:14px;box-shadow:0 5px 25px #020c1777}.arena-footer{padding-bottom:92px}.piece--hand .piece-name{font-size:14px}.game-shell{background-size:auto 900px}}
.top-actions>button,.game-menu>summary{min-height:44px}.icon-button,.game-menu>summary{width:44px;height:44px}.card-enlarge{width:38px;height:38px}.match-toolbar select{min-height:40px}
@media(max-width:600px){.top-actions>button,.game-menu>summary{min-height:44px}.icon-button,.game-menu>summary{width:40px;height:44px}.match-toolbar{min-height:93px}.match-toolbar select{height:40px}.card-enlarge{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
