:root{--bg:#121d33;--panel:#1b2943;--zone:#ffffff0a;--lane:#060c1a6b;--lane-edge:#34496f;--felt:#15223b;--felt-light:#1d3052;--line:#2c3d5e;--edge:#7387aa;--text:#edf1f7;--muted:#a9b5ca;--accent:#e3a64b;--on-accent:#121d33;--card-back:#2a4a7c;--card-back-rim:#0d1526;--ok:#7bc496;--warn:#f0c27f;--warn-bg:#2b2418;--sans:"IBM Plex Sans", system-ui, sans-serif;--mono:"IBM Plex Mono", ui-monospace, monospace;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{background:var(--bg);color:var(--text);font:16px/1.5 var(--sans);margin:0}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.import{flex-direction:column;gap:20px;max-width:1080px;margin:0 auto;padding:32px 16px;display:flex}h1{margin:0;font-size:28px}form,.field,.report,.start{flex-direction:column;gap:8px;display:flex}.report{gap:12px}label{font-weight:600}.hint{color:var(--muted);margin:0;font-size:14px}code,textarea{font-family:var(--mono)}textarea,select,input{box-sizing:border-box;border:1px solid var(--edge);background:var(--panel);width:100%;color:var(--text);border-radius:8px;padding:12px;font-size:14px}select,input{min-height:44px}button{background:var(--text);min-height:44px;color:var(--bg);font:600 14px var(--sans);cursor:pointer;border:0;border-radius:8px;align-self:flex-start;padding:0 20px}button:disabled{opacity:.5;cursor:default}.ok,.problem,.quiet{border-radius:6px;margin:0;padding:10px 12px}.ok{color:var(--ok);background:var(--panel)}.quiet{color:var(--muted)}.quiet:empty{padding:0}.problem{color:var(--warn);background:var(--warn-bg)}details{background:var(--panel);border-radius:8px;padding:10px 12px}summary{color:var(--muted);cursor:pointer}details ul{margin:8px 0 0;padding-left:20px}.start{max-width:320px}.goal{border:0;margin:0;padding:0}.goal legend{margin-bottom:8px;padding:0;font-weight:600}.radio{cursor:pointer;flex-wrap:wrap;align-items:center;column-gap:10px;min-height:32px;font-weight:400;display:flex}.radio input{width:20px;height:20px;min-height:0;accent-color:var(--accent);margin:0}.radio .muted{font-size:14px}button.secondary{color:var(--text);border:1px solid var(--edge);background:0 0}.muted{color:var(--muted)}.mono,.chip,.count{font-family:var(--mono)}.accent{color:var(--accent)}.play{flex-direction:column;height:100vh;display:flex}.play-bar{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px 24px;padding:10px 24px;display:flex}.brand{align-items:baseline;gap:12px;display:flex}.wordmark{margin:0;font-size:18px;font-weight:700}.chip{color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:2px 8px;font-size:13px}.phases{flex-wrap:wrap;flex:auto;justify-content:center;gap:4px;margin:0;padding:0;list-style:none;display:flex}.phase{color:var(--muted);white-space:nowrap;border-radius:999px;padding:6px 12px;font-size:14px}.phase.current{background:var(--accent);color:var(--on-accent);font-weight:600}.turn-actions{align-items:center;gap:12px;display:flex}.menu-button{place-items:center;width:44px;padding:0;display:grid}.menu-button svg{fill:none;stroke:currentColor;width:22px;height:22px}.game-menu{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;margin:0;padding:12px;inset:64px 24px auto auto}.game-menu:popover-open{flex-direction:column;gap:8px;display:flex}.game-menu button{align-self:stretch}.turn{color:var(--muted);font-size:14px}.turn strong{color:var(--text);font-size:18px}.table{background:radial-gradient(ellipse at 50% 35%, var(--felt-light), var(--felt) 70%);flex:1;grid-template:"cmd dummy piles""cmd field piles""log field piles"minmax(0,1fr)"mana hand ctrl"/240px minmax(0,1fr) 340px;gap:16px;min-height:0;padding:16px 24px 0;display:grid}.board,.zones{display:contents}.board h2,.zones h2{color:var(--muted);margin:0;font-size:14px;font-weight:500}.dummy{background:var(--panel);border-radius:999px;flex-wrap:wrap;grid-area:dummy;justify-self:center;align-items:center;gap:8px 24px;padding:8px 20px;font-size:14px;display:flex}.life strong{font-family:var(--mono);font-size:28px}.cmdr-damage{flex-direction:column;gap:4px;width:200px;display:flex}.cmdr-damage .row{white-space:nowrap;justify-content:space-between;gap:8px;display:flex}.bar{background:var(--line);border-radius:3px;height:6px}.bar div{background:var(--accent);border-radius:3px;height:6px}.game-over{z-index:4;background:var(--accent);color:var(--on-accent);border-radius:8px;grid-area:field;place-self:start center;margin:12px 0 0;padding:10px 16px;font-weight:600}.battlefield{flex-direction:column;grid-area:field;gap:18px;min-width:0;min-height:0;padding-top:8px;display:flex}.lane{border:1px solid var(--lane-edge);background:var(--lane);border-radius:16px;flex:1.35 1 0;align-items:center;min-height:0;padding:16px 20px 12px;display:flex;position:relative;box-shadow:inset 0 2px 14px #00000073,0 1px #ffffff0d}.lane+.lane{flex-grow:1}.lane>.cards{flex:1}.lane>.cards>*{align-self:center}.lane h2{z-index:1;border:1px solid var(--lane-edge);background:var(--panel);letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:2px 12px;font-size:13px;position:absolute;top:0;left:18px;translate:0 -50%}.prompts{flex-direction:column;grid-area:prompt;gap:8px;min-width:0;max-height:26vh;display:flex;overflow-y:auto}.table:has(.prompts){grid-template-rows:auto auto minmax(0,1fr) auto auto;grid-template-areas:"cmd dummy piles""cmd field piles""log field piles""log prompt piles""mana hand ctrl"}.hand{border:1px solid var(--line);background:var(--zone);box-sizing:border-box;border-bottom:0;border-radius:16px 16px 0 0;flex-direction:column;grid-area:hand;align-items:center;gap:8px;min-width:0;height:200px;padding:10px 20px 0;display:flex;overflow:clip}.hand-cards{height:calc(var(--card-w) * 680 / 488);flex:none}.hand-cards>.card{transition:top .16s ease-out;top:0}.hand-cards>.card:hover,.hand-cards>.card:focus-visible{top:-24px}.cards{justify-content:center;align-self:stretch;gap:12px;min-width:0;max-width:100%;min-height:64px;display:flex}.cards>.card{flex:0 1 var(--card-w);min-width:24px}.lane{overflow-x:clip}.battlefield .cards{justify-content:safe center}.cards>.card:last-child{flex-shrink:0}.cards>.card:hover,.cards>.card:focus-visible{z-index:2}.battlefield .cards{--card-w:150px}.battlefield .lands{--card-w:112px;gap:8px}.cards>.stack{--pile-step:calc(var(--card-w) * .16);flex:none;display:grid}.cards>.stack.tapped{--pile-step:calc(var(--card-w) * .05)}.stack>.card{--card-w:inherit;height:calc(var(--card-w) * 680 / 488);aspect-ratio:auto;margin-top:calc(var(--i,0) * var(--pile-step));grid-area:1/1}.stack>.card:nth-child(2){--i:1}.stack>.card:nth-child(3){--i:2}.stack>.card:nth-child(n+4){--i:3}.stack>.card.tapped{width:calc(var(--card-w) * 680 / 488)}.card.has-image.tapped .card-badge{top:calc(var(--card-w) * (680 / 488 - 1) / 2 - 8px)}.stack>.card[data-note=summoning\ sick]{width:calc(var(--card-w) * 1.42)}@media (width>=1001px){.lane{container-type:size}.battlefield .cards{--card-w:min(190px, (100cqh - 14px) * 488 / (680 + 488 * var(--rise,0)), max(96px, 100cqw / var(--slots,1) - 12px))}.battlefield .lands{--card-w:min(140px, (100cqh - 14px) * 488 / (680 + 488 * var(--rise,0)), max(72px, 100cqw / var(--slots,1) - 8px))}}.hand-cards{--card-w:132px;gap:4px}.empty{color:var(--muted);align-self:center;margin:0;font-size:14px}.notice{color:var(--warn);background:var(--warn-bg);border-radius:6px;margin:0;padding:4px 10px;font-size:14px}.card{--card-w:120px;width:var(--card-w);aspect-ratio:488/680;box-sizing:border-box;color:#1a1a1a;text-align:left;font:400 14px/1.2 var(--sans);cursor:pointer;background:#f1eee6;border:2px solid #0000;border-radius:8px;flex-direction:column;align-items:flex-start;gap:6px;padding:10px;display:flex;position:relative}.cards>.card{width:auto;height:calc(var(--card-w) * 680 / 488);aspect-ratio:auto}.battlefield .cards>.card,.zone-cards>.card,.hand-cards>.card{--card-w:inherit}.card:disabled{opacity:1;cursor:default}.card-name{font-weight:600}.card-cost{font-family:var(--mono);color:#3f444a}.card-foot{justify-content:space-between;align-items:flex-end;gap:4px;width:100%;margin-top:auto;display:flex}.card-note{color:#3f444a;font-size:13px}.card-pt{font-family:var(--mono);font-weight:600}.card.unsupported{background:#d9d5cb;border-style:dashed;border-color:#6b727a}.card.has-image{background:0 0;border:0;padding:0}.card-art{width:var(--card-w);object-fit:cover;border-radius:6px;height:100%;transition:rotate .16s ease-out;position:absolute;top:0;left:0;box-shadow:0 3px 8px #00000073}.card.has-image .card-name,.card.has-image .card-cost,.card.has-image .card-note{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.card.has-image .card-foot{width:var(--card-w);pointer-events:none;justify-content:center;position:absolute;bottom:-12px;left:0}.card.has-image[data-note=summoning\ sick] .card-art{filter:saturate(.45)brightness(.7);left:calc(var(--card-w) * .21);rotate:20deg}.cards>.card[data-note=summoning\ sick]{flex-basis:calc(var(--card-w) * 1.42)}.card:not(.has-image)[data-note=summoning\ sick]{rotate:20deg}.card.has-image .card-pt{white-space:nowrap;background:var(--panel);color:var(--text);border-radius:999px;padding:1px 9px;font-size:14px}.card.has-image.unsupported .card-art{outline:2px dashed var(--warn);outline-offset:2px}.cards>.card.tapped{flex-basis:calc(var(--card-w) * 680 / 488)}.card.has-image.tapped .card-foot{bottom:8%}.card.has-image.tapped .card-art{left:calc(var(--card-w) * (680 / 488 - 1) / 2);top:50%;translate:0 -50%;rotate:90deg}.card.tapped:not(.has-image){background:#b9b4a8}.card-zoom{z-index:10;top:var(--zoom-y,76px);left:var(--zoom-x,auto);pointer-events:none;border-radius:14px;width:300px;display:none;position:fixed;right:24px;box-shadow:0 12px 32px #0000008c}.card:hover .card-zoom,.card:focus-visible .card-zoom{display:block}.card.zoom-off .card-zoom{display:none}@media (prefers-reduced-motion:reduce){.card,.card-art{transition:none}}.card.selected,.card.selected .card-art{box-shadow:0 0 0 3px var(--accent)}.card.has-image.selected{box-shadow:none}.card-badge{z-index:1;background:var(--accent);width:24px;height:24px;color:var(--on-accent);font:700 14px/24px var(--sans);text-align:center;border-radius:50%;position:absolute;top:-8px;right:-8px}.panel{background:var(--panel);border-radius:12px;flex-direction:column;gap:8px;padding:14px;display:flex}.panel p{margin:0}.cmd-zone{text-align:center;grid-area:cmd;align-self:start;align-items:center}.cmd-zone .card{--card-w:172px;height:239.672px}@media (width>=1001px) and (height<=820px){.cmd-zone .card{--card-w:120px;height:167.213px}}.cmd-zone .card.has-image .card-art{outline:3px solid var(--accent);outline-offset:3px}.cmdr-name{font-weight:600}.move{text-align:left;flex-direction:column;align-self:stretch;gap:8px;display:flex}.piles{grid-area:piles}.side-top{flex-direction:column;grid-area:side;gap:16px;min-width:0;min-height:0;display:flex;overflow-y:auto}.piles{background:var(--panel);border-radius:12px;gap:14px;padding:14px;display:grid}.pile{grid-template-columns:auto 1fr;grid-template-areas:"stack name""stack count";align-content:center;column-gap:16px;display:grid}.pile h2{grid-area:name;align-self:end}.pile-stack{grid-area:stack}.pile .count{grid-area:count;align-self:start}button.pile-stack{min-height:0;font:inherit;border:0;padding:0}.pile-top,button.pile-stack.pile-top{padding:8px}.pile .playable{color:var(--accent);font:600 13px var(--sans);margin-right:8px}.pile-stack{aspect-ratio:488/680;box-sizing:border-box;width:80px;color:var(--muted);text-align:center;border-radius:7px;place-items:center;font-size:14px;display:grid;overflow:hidden}@media (width>=1001px) and (height<=820px){.pile-stack{width:60px}}.pile-stack img{object-fit:cover;width:100%;height:100%}.pile-stack[data-deep]{box-shadow:3px 3px 0 -1px var(--panel), 3px 3px 0 0 var(--edge), 6px 6px 0 -1px var(--panel), 6px 6px 0 0 var(--edge);overflow:visible}.pile-back{background:repeating-linear-gradient(45deg, transparent 0 7px, #ffffff12 7px 8px), var(--card-back);border:5px solid var(--card-back-rim)}.pile-top{color:#1a1a1a;background:#f1eee6}.pile-top:has(img){padding:0}.pile-empty{border:2px dashed var(--edge)}.count{font-family:var(--mono);font-size:20px;font-weight:600}.mana{grid-area:mana;align-self:end;margin-bottom:16px}.pool{flex-wrap:wrap;gap:6px;min-height:28px;display:flex}.pool.restricted{flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.pip{color:#1a1a1a;background:#c9c4b8;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:14px;font-weight:700;display:flex}.pip-W{background:#f8f4d4}.pip-U{background:#a9cbe8}.pip-B{background:#b8aca6}.pip-R{background:#ec9b7c}.pip-G{background:#8fc19e}.pip-C{background:#d3ccc8}.pip svg{fill:#1a1a1a;width:72%;height:72%}.pip-hybrid{position:relative}.pip-hybrid svg{width:46%;height:46%;position:absolute}.pip-hybrid .half-a{top:8%;left:8%}.pip-hybrid .half-b{bottom:8%;right:8%}.pip-W-U{background:linear-gradient(135deg,#f8f4d4 50%,#a9cbe8 50%)}.pip-W-B{background:linear-gradient(135deg,#f8f4d4 50%,#b8aca6 50%)}.pip-W-R{background:linear-gradient(135deg,#f8f4d4 50%,#ec9b7c 50%)}.pip-W-G{background:linear-gradient(135deg,#f8f4d4 50%,#8fc19e 50%)}.pip-U-W{background:linear-gradient(135deg,#a9cbe8 50%,#f8f4d4 50%)}.pip-U-B{background:linear-gradient(135deg,#a9cbe8 50%,#b8aca6 50%)}.pip-U-R{background:linear-gradient(135deg,#a9cbe8 50%,#ec9b7c 50%)}.pip-U-G{background:linear-gradient(135deg,#a9cbe8 50%,#8fc19e 50%)}.pip-B-W{background:linear-gradient(135deg,#b8aca6 50%,#f8f4d4 50%)}.pip-B-U{background:linear-gradient(135deg,#b8aca6 50%,#a9cbe8 50%)}.pip-B-R{background:linear-gradient(135deg,#b8aca6 50%,#ec9b7c 50%)}.pip-B-G{background:linear-gradient(135deg,#b8aca6 50%,#8fc19e 50%)}.pip-R-W{background:linear-gradient(135deg,#ec9b7c 50%,#f8f4d4 50%)}.pip-R-U{background:linear-gradient(135deg,#ec9b7c 50%,#a9cbe8 50%)}.pip-R-B{background:linear-gradient(135deg,#ec9b7c 50%,#b8aca6 50%)}.pip-R-G{background:linear-gradient(135deg,#ec9b7c 50%,#8fc19e 50%)}.pip-G-W{background:linear-gradient(135deg,#8fc19e 50%,#f8f4d4 50%)}.pip-G-U{background:linear-gradient(135deg,#8fc19e 50%,#a9cbe8 50%)}.pip-G-B{background:linear-gradient(135deg,#8fc19e 50%,#b8aca6 50%)}.pip-G-R{background:linear-gradient(135deg,#8fc19e 50%,#ec9b7c 50%)}.mana-text .pip{vertical-align:-.3em;width:1.35em;height:1.35em;margin:0 .06em;font-size:.85em;display:inline-flex}.side-log{flex-direction:column;grid-area:score;gap:16px;display:flex}.log{grid-area:log;min-height:0;overflow:auto}.log summary{background:var(--panel);margin:-14px -14px 0;padding:14px 14px 4px;position:sticky;top:-14px}.score-line strong{font-family:var(--mono);color:var(--accent);font-size:28px}.best-line summary{cursor:pointer}.best-line ol{max-height:200px;margin:8px 0;padding-left:20px;font-size:14px;overflow-y:auto}.score button,.best-line button{align-self:stretch;width:100%}.log ol{flex-direction:column;gap:6px;margin:8px 0 0;padding:0;font-size:14px;list-style:none;display:flex}.log-line{width:100%;min-height:0;color:inherit;font:inherit;text-align:left;background:0 0;border-radius:4px;margin:-2px -4px;padding:2px 4px;display:block}.log-line:hover,.log-line[aria-expanded=true]{background:var(--line)}.branch-offer{flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;display:flex}.branch-offer span{flex-basis:100%}.branch-offer button{padding:0 14px}.naming input[type=search]{margin-bottom:12px}.zone-browser.naming .zone-cards{--card-w:110px}.naming .card:not(:disabled){outline:none}.naming footer{background:var(--panel);border-top:1px solid var(--line);z-index:3;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px -16px -16px;padding:12px 16px;display:flex;position:sticky;bottom:-16px}.naming footer span{flex-basis:100%}.line-switch{width:auto;max-width:260px;padding:0 12px}.game-controls{flex-direction:column;grid-area:ctrl;align-self:end;gap:8px;margin-bottom:16px;display:flex}.game-controls button{align-self:stretch}@media (width<=1000px){.side-top{display:contents}.table{grid-template-rows:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"dummy dummy""score score""field field""piles piles""cmd cmd""mana mana""hand hand""log log""ctrl ctrl";gap:12px;padding:12px 16px 0}.prompts{max-height:none;overflow-y:visible}.table:has(.prompts){grid-template-rows:none;grid-template-areas:"dummy dummy""score score""field field""prompt prompt""piles piles""cmd cmd""mana mana""hand hand""log log""ctrl ctrl"}.card-zoom{display:none!important}.piles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}.pile-stack{width:72px}.pile{grid-template-columns:auto;grid-template-areas:"name""stack""count";justify-items:center;row-gap:6px}.cmd-zone .card{--card-w:100px;height:139.344px}.mana{margin:0}.play{height:auto;min-height:100vh}.hand{z-index:3;background:var(--bg);height:auto;padding-bottom:8px;position:sticky;bottom:0}.replay .hand{position:static}.hand-cards>.card:hover,.hand-cards>.card:focus-visible{top:0}.hand-cards{--card-w:96px}.battlefield .lands{--card-w:64px}.lane{flex:none;padding:24px 12px 16px}.battlefield .cards:not(.lands){--card-w:88px}}@media (width<=760px){.play-bar{gap:8px 16px;padding:8px 16px}.turn-actions{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.line-switch{flex:100%;order:1;max-width:none}.phases{flex-wrap:nowrap;flex-basis:100%;order:3;justify-content:flex-start;overflow-x:auto}.phase{padding:4px 10px}.wordmark{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.dummy{border-radius:12px}}.import-body{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:32px;display:grid}.import-side{flex-direction:column;gap:16px;min-width:0;display:flex}.import-side .start{max-width:none}.commander-card{border-radius:12px;width:240px;max-width:100%;box-shadow:0 10px 28px #00000080}@media (width<=800px){.import-body{grid-template-columns:minmax(0,1fr)}}.import-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.past-games{flex-direction:column;gap:8px;max-width:720px;margin:0;padding:0;list-style:none;display:flex}.past-games button{text-align:left;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;width:100%;display:flex}.stats{flex-direction:column;gap:16px;max-width:720px;display:flex}.stats h2,.stat-group h3{margin:0}.stat-group{background:var(--panel);border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.stat-group h3{font-size:16px}.stat-group p{margin:0}.stat-group table{border-collapse:collapse}.stat-group th,.stat-group td{border-bottom:1px solid var(--line);text-align:left;padding:6px 12px 6px 0;font-weight:400}.stat-group td{font-family:var(--mono)}.stat-group thead th{color:var(--muted);font-size:13px}.turn-gaps{font-family:var(--mono);flex-wrap:wrap;gap:6px 16px;margin:8px 0;padding:0;list-style:none;display:flex}.turn-gaps [data-weakest]{color:var(--accent);font-weight:600}.choice{background:var(--panel);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;font-size:14px;display:flex}.choice.decision{outline:2px solid var(--accent)}.choice>.zone-cards{--card-w:92px;flex-wrap:wrap;flex-basis:100%;justify-content:flex-start}.hint-plays{flex-direction:column;flex-basis:100%;order:2;gap:2px;margin:0;padding-left:1.5em;display:flex}.hint-plays li{flex-wrap:wrap;align-items:center;gap:2px 12px;display:flex}.choice.hint button{min-height:32px;padding:0 14px}.hint-plays button,.choice.hint>button{margin-left:auto}.choice.hint>button{order:1}.choice.hint progress{flex:120px}.choice>.waiting{border-top:1px solid var(--line);flex-basis:100%;padding-top:6px}.waiting ol{margin:4px 0 0;padding-left:1.5em}@media (hover:none){.hand-cards>.card{touch-action:none}.cards>.card:hover:not(:focus-visible){z-index:auto}.hand-cards>.card:hover:not(:focus-visible){top:0}}.card.dragging{z-index:10;transition:none}.hand:has(.dragging){overflow:visible}.zone-browser{border:1px solid var(--line);background:var(--panel);width:min(92vw,960px);max-height:86vh;color:var(--text);border-radius:16px;padding:16px}.zone-browser::backdrop{background:#000000b3}.zone-browser header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.zone-browser h2{margin:0}.zone-browser .zone-cards{--card-w:150px;flex-wrap:wrap;justify-content:flex-start;gap:12px}.zone-browser .card:not(:disabled){outline:3px solid var(--accent);outline-offset:2px}.card-detail{border:1px solid var(--line);background:var(--panel);max-width:min(92vw,420px);color:var(--text);border-radius:16px;padding:16px}.card-detail::backdrop{background:#000000b3}.card-detail img{border-radius:4.75%/3.5%;width:100%;display:block}.card-detail-actions{gap:8px;margin-top:12px;display:flex}.card-detail-actions button{flex:1}@media (width>=1001px){.table.play{grid-template:"mana dummy side""cmd field side"minmax(0,1.5fr)"log lands side"minmax(0,1fr)"log hand side"/200px minmax(0,1fr) clamp(248px,17vw,400px)}.table.play:has(.prompts){grid-template-rows:auto minmax(0,1.5fr) minmax(0,1fr) auto auto;grid-template-areas:"mana dummy side""cmd field side""log lands side""log prompt side""log hand side"}.play .battlefield,.play .piles{display:contents}.play .creatures-lane{grid-area:field}.play .lands-lane{grid-area:lands}.play .dummy{align-self:center}.play .hand{height:160px}.play .mana{grid-template-rows:auto auto;grid-auto-flow:column;align-content:center;align-self:stretch;column-gap:20px;margin:0;display:grid}.play .mana .life,.play .mana .pool{margin:0}.play .cmd-zone{align-self:stretch;min-height:0;container-type:size}.play .cmd-zone .card{--card-w:min(172px, (100cqh - 150px) * 488 / 680);height:calc(var(--card-w) * 680 / 488)}.play .side-log{flex:0 auto;min-width:0;min-height:0;overflow-y:auto}.play .score,.play .summary{text-align:left;flex-flow:wrap;align-items:center;gap:4px 16px;padding:8px 16px;display:flex}.play .score>*,.play .summary>*{margin:0}.play .score-line strong{font-size:22px}.play .score>p.muted{flex:240px}.play .score>button{width:auto;margin-left:auto}.play .best-line[open]{flex-basis:100%;order:1}.play .side-top{gap:12px;overflow:hidden}.play .pile{border:1px solid var(--lane-edge);background:var(--lane);border-radius:12px;flex:1 1 0;grid-template:"name count""stack stack"minmax(0,1fr)/1fr auto;align-items:center;gap:6px 8px;min-height:0;padding:10px 12px;container-type:size}.play .pile h2,.play .pile .count{align-self:center;margin:0;font-size:14px}.play .pile .count{font-size:16px}.play .pile-stack{justify-self:center;width:min(100cqw - 8px,71.7647cqh - 21.5294px)}}@media (width>=1001px) and (height<=820px){.play .hand{height:130px}.play .cmd-zone .card{--card-w:min(172px, (100cqh - 110px) * 488 / 680)}.play .cmd-zone h2{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}form.tap-count{flex-direction:row}.tap-count input{width:4.5em;font:inherit;font-family:var(--mono)}.color-choice{border-radius:50%;padding:4px;line-height:0}.best-turn{border:1px solid var(--line,#33415c);background:var(--bg,#0b1324);width:min(1240px,96vw);height:min(860px,94vh);color:var(--text);border-radius:12px;padding:16px 20px}.best-turn[open]{grid-template-rows:auto auto minmax(0,1fr) auto auto auto;gap:10px;display:grid}.best-turn::backdrop{background:#0009}.best-turn>header{align-items:baseline;gap:16px;display:flex}.best-turn>header h2{margin:0;font-size:18px}.best-turn>header p{flex:1;margin:0}.best-status{align-items:center;gap:24px;display:flex}.best-pool{align-items:center;gap:4px;display:inline-flex}.play .best-turn .battlefield,.best-turn .battlefield{grid-template-rows:minmax(0,1.4fr) minmax(0,1fr);gap:8px;min-height:0;display:grid}.best-turn .lane{min-height:0;container-type:size}.best-hand h3{margin:0 0 4px;font-size:13px}.best-turn .best-hand .cards{justify-content:flex-start;overflow-x:auto}.best-turn .best-hand .card{--card-w:64px}.best-caption{min-height:1.6em;margin:0;font-size:18px;font-weight:600}.best-turn>footer{justify-content:space-between;align-items:center;display:flex}.best-controls{align-items:center;gap:8px;display:flex}.best-controls label{align-items:center;gap:6px;display:inline-flex}.best-controls select{width:auto;padding:6px 8px}.card.highlight .card-art,.card.highlight:not(.has-image){outline:3px solid var(--accent);outline-offset:2px;box-shadow:0 0 18px var(--accent)}.play .best-turn .battlefield,.play .best-turn .creatures-lane,.play .best-turn .lands-lane{grid-area:auto}
