/* Reference: user-supplied 2026-10-22 screen recording. Keep the table clear and centered. */
.duel-cinematic{--duel-card:clamp(68px,6vw,94px);background:#141921;border:1px solid #5c6676;border-radius:12px;box-shadow:0 18px 55px #10202b40;color:#f4f6fa}
.duel-cinematic .duel-topbar{background:#10151e;min-height:44px;padding:6px 12px;gap:8px;position:relative;z-index:75;border-bottom:1px solid #61728755}
.duel-cinematic .duel-topbar>div{display:flex;align-items:center;gap:8px;min-width:0}
.duel-cinematic .duel-topbar>div:first-child>span:last-child{font-size:calc(12px * var(--duel-text-scale,1));color:#a9b6c7;max-width:380px}
.duel-cinematic .duel-topbar strong{font-size:calc(14px * var(--duel-text-scale,1));white-space:nowrap}
.duel-table-tools{position:relative;color:#e4ebf5;flex-shrink:0}.duel-table-tools>summary{list-style:none;cursor:pointer;padding:8px 12px;border:1px solid #67758a66;background:#ffffff08;border-radius:6px;font-size:calc(13px * var(--duel-text-scale,1));min-height:36px;box-sizing:border-box}.duel-table-tools>summary::-webkit-details-marker{display:none}
.duel-tool-drawer{position:absolute;right:0;top:calc(100% + 10px);width:min(420px,85vw);display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px;padding:16px;background:#151d2af5;border:1px solid #7e90ab88;border-radius:10px;box-shadow:0 12px 35px #0009;z-index:90;box-sizing:border-box}.duel-tool-drawer .btn{min-height:40px}
.duel-cinematic .duel-table{height:clamp(590px,78dvh,950px);min-height:590px;background:#313b49;padding:0;gap:0;isolation:isolate}
.duel-cinematic .duel-enemy,.duel-cinematic .duel-mine{border-radius:0;overflow:visible;flex:1;min-height:0;position:relative}
.duel-cinematic .duel-enemy{background:radial-gradient(ellipse at 30% 10%,#8392a133,transparent 70%),linear-gradient(115deg,#47586b,#293749)}
.duel-cinematic .duel-mine{background:radial-gradient(ellipse at 70% 70%,#bfb7a22b,transparent 70%),linear-gradient(115deg,#8d897e,#69685f)}
.duel-cinematic .duel-enemy:before,.duel-cinematic .duel-mine:before{opacity:.055}
.duel-cinematic .duel-divider{height:8px;min-height:8px;border:0;background:linear-gradient(#ffffff40,#20283288);overflow:visible;z-index:4;position:relative}
.duel-cinematic .duel-divider>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:3px 14px;font-size:calc(11px * var(--duel-text-scale,1));background:#18232de8;border:1px solid #87919d66;border-radius:12px;white-space:nowrap;color:#f3e9ce;box-shadow:0 2px 8px #0004}
.duel-cinematic .duel-battle-row{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;flex:1;min-height:125px;padding:48px 22px 20px;margin:0;gap:20px;background:transparent;overflow:auto;scrollbar-width:thin}
.duel-cinematic .duel-zone-label:has(.duel-player-identity){top:7px;left:10px;font-size:calc(11px * var(--duel-text-scale,1));color:#f4f5fa;max-width:44%;background:#17212a90;border:1px solid #ffffff22;border-radius:24px;padding:3px 10px 3px 3px;white-space:nowrap}
.duel-cinematic .duel-player-identity .player-avatar{width:30px;height:30px}.duel-cinematic .duel-empty{font-size:calc(12px * var(--duel-text-scale,1));color:#ffffff65;opacity:1;background:none;padding:0;text-shadow:none}
.duel-cinematic .duel-rail,.duel-cinematic .enemy-rail{grid-template-columns:48px minmax(30px,1fr) 64px 68px auto;min-height:43px;height:43px;margin:0;padding:3px 9px;gap:6px;background:#18202a55;border:0;border-top:1px solid #ffffff22;border-bottom:1px solid #ffffff22;box-sizing:border-box;z-index:3}
.duel-cinematic .duel-lore{padding:0;display:flex;align-items:center;justify-content:center;gap:5px}.duel-cinematic .duel-lore strong{font-size:calc(25px * var(--duel-text-scale,1));font-weight:800;color:#fff;text-shadow:0 2px 4px #0007}.duel-cinematic .duel-lore span{font-size:calc(7px * var(--duel-text-scale,1));max-width:16px;line-height:1.2;color:#d7e0eb}
.duel-cinematic .duel-ink-total{min-width:54px;background:#0a111b88;border:1px solid #ffffff15;padding:3px 5px;justify-self:center;border-radius:4px;line-height:1}.duel-cinematic .duel-ink-total strong{font-size:calc(16px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-total em{font-size:calc(12px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-total span{font-size:calc(7px * var(--duel-text-scale,1));display:block;margin-top:3px;color:#bfc9d7}
.duel-cinematic .duel-ink-drops{border:0;background:#0a111b66;padding:2px 5px;gap:0 3px;grid-template-columns:14px auto}.duel-cinematic .duel-ink-drops svg{width:12px;height:18px}.duel-cinematic .duel-ink-drops strong{font-size:calc(17px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-drops span{font-size:calc(7px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-drops small{display:none}
.duel-cinematic .duel-ink-cards{display:flex;align-items:center;min-height:30px;max-height:34px;overflow:hidden;padding:0 5px;gap:2px}.duel-cinematic .duel-ink-cards>.duel-back{width:22px;height:30px;flex-basis:22px;border-radius:2px}.duel-cinematic .duel-ink-cards>.ink-used{transform:rotate(90deg) scale(.8);margin:0 1px}
.duel-cinematic .duel-turn-controls{display:flex;flex-direction:row;gap:5px;grid-column:auto;justify-content:flex-end}.duel-cinematic .duel-turn-controls .btn{font-size:calc(11px * var(--duel-text-scale,1));min-height:32px;padding:5px 10px;white-space:nowrap;border-radius:5px}.duel-cinematic .duel-turn-controls .btn:last-child{background:#d9b66d;color:#25231c;border-color:#ebcf93}
.duel-cinematic .duel-hand-row{grid-template-columns:48px minmax(0,1fr) 48px;padding:3px 8px;gap:6px;background:#0e141e38;z-index:2}.duel-cinematic .opponent-hand{height:45px;min-height:45px;overflow:visible}
.duel-cinematic .duel-hidden-hand{min-height:35px;max-height:35px;justify-content:center;overflow:visible}.duel-cinematic .duel-hidden-hand>.duel-back{height:53px;width:38px;flex-basis:38px;margin-left:-18px;transform:translateY(-21px) rotate(180deg)}.duel-cinematic .duel-hidden-hand>span:last-child{bottom:-3px;font-size:calc(10px * var(--duel-text-scale,1));background:#10141cdd;padding:2px 10px;border-radius:5px}
.duel-cinematic .duel-pile>summary{height:36px;width:42px;min-height:36px;min-width:42px;border:0;background:#0a111a75;border-radius:4px}.duel-cinematic .duel-pile>summary>strong{font-size:calc(23px * var(--duel-text-scale,1));color:#fff;text-shadow:0 2px 4px #000}.duel-cinematic .duel-pile>summary>.duel-back,.duel-cinematic .duel-pile>summary>img{height:33px;width:24px;opacity:.45}.duel-cinematic .duel-pile>summary>small{font-size:calc(7px * var(--duel-text-scale,1))}
.duel-cinematic .duel-hand-row.my-hand{height:112px;min-height:112px;overflow:visible;background:#121a2344}.duel-cinematic .duel-hand-scroll{height:112px;min-height:112px;overflow-x:auto;overflow-y:hidden;padding:15px 8px 0;scrollbar-width:thin}.duel-cinematic .duel-hand-fan{display:flex;align-items:flex-start;justify-content:center;height:150px;min-width:100%;width:max-content;gap:0;padding:0 16px;transform:translateY(5px)}
.duel-cinematic .duel-hand-card,.duel-cinematic.is-expanded .duel-hand-card{width:clamp(78px,7vw,105px);flex:0 0 clamp(78px,7vw,105px);margin-left:-23px;transform:rotate(var(--fan,0deg));transform-origin:50% 125%;transition:transform .22s,margin .22s;z-index:1}.duel-cinematic .duel-hand-card:first-child{margin-left:0}.duel-cinematic .duel-hand-card:hover,.duel-cinematic .duel-hand-card.is-focused{transform:translateY(-14px) rotate(0deg);margin-left:0;margin-right:18px;z-index:6}
.duel-cinematic .duel-slot.is-exerted{margin:0 16px}.duel-cinematic .duel-card-face{border-radius:5px;box-shadow:0 4px 9px #0006;border:1px solid #141922;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .2s}.duel-cinematic .duel-stat{font-size:calc(10px * var(--duel-text-scale,1));bottom:-16px;padding:2px 5px;background:#18212bce;border-radius:4px;color:#e4eaf3}
.duel-cinematic .duel-drying{inset:43% 2px auto;font-size:calc(10px * var(--duel-text-scale,1));background:#14212bd9;letter-spacing:.03em;padding:3px 0}.duel-cinematic .duel-damage{top:3px;left:3px;font-size:calc(16px * var(--duel-text-scale,1));padding:2px 5px;background:#d23650;border-radius:4px;color:white;box-shadow:0 2px 5px #0006}.duel-strength-change{position:absolute;top:3px;right:3px;background:#27b78b;color:#fff;border:1px solid #70f3c6;border-radius:4px;padding:2px 4px;font-size:calc(12px * var(--duel-text-scale,1));font-weight:800;z-index:3}
.duel-cinematic .duel-under{font-size:calc(10px * var(--duel-text-scale,1));padding:2px 5px;background:#7635d8;color:#fff;border-radius:4px}.duel-cinematic .duel-bottom-bar{background:#141b25;padding:7px 12px;border-top:1px solid #5f6a7755;color:#c1ccd9;font-size:calc(11px * var(--duel-text-scale,1))}
.duel-cinematic .duel-effects{background:#111923f5;border-color:#8594aa88;backdrop-filter:blur(12px)}.duel-cinematic .duel-effect-copy{color:#29251a!important;background:#e6d5a8}.duel-cinematic .duel-target-prompt{background:#14202be8}.duel-cinematic .duel-inspector{background:#111c2af7;border-color:#8b9db8aa}
.duel-cinematic .duel-motion-beam{filter:drop-shadow(0 0 5px #edb35c)}.duel-cinematic .duel-motion-beam line{stroke:#ffb24a;stroke-width:4}.duel-cinematic .duel-motion-float{border-radius:5px;background:#cb2d4e;padding:4px 8px;font-size:calc(24px * var(--duel-text-scale,1));box-shadow:0 3px 10px #0006}.duel-cinematic .duel-motion-float.is-gold{background:#8041d4;color:#fff}.duel-quest-aura{position:absolute;width:70px;height:70px;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#f8b9ffbb,#a943df66 40%,transparent 72%);box-shadow:0 0 30px #d268ed88;mix-blend-mode:screen}.duel-cast-preview{position:absolute;right:24px;top:34%;display:flex;align-items:center;flex-direction:column;width:clamp(90px,13vw,150px);filter:drop-shadow(0 8px 18px #0009);pointer-events:none;z-index:2}.duel-cast-preview img{width:100%;border-radius:6px}.duel-cast-preview span{display:block;background:#e7a43e;color:#221a13;padding:4px 8px;border-radius:0 0 5px 5px;font-size:calc(11px * var(--duel-text-scale,1));font-weight:800;max-width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-cinematic.is-expanded{inset:0;border-radius:0;--duel-card:clamp(68px,8.5dvh,102px);overflow:hidden}.duel-cinematic.is-expanded>.duel-table{height:auto;min-height:0;flex:1}.duel-cinematic.is-expanded .duel-battle-row{min-height:90px;padding:45px 20px 20px}.duel-cinematic.is-expanded .duel-hand-row.my-hand{height:100px;min-height:100px}.duel-cinematic.is-expanded .duel-hand-scroll{height:100px;min-height:100px}
@media(max-width:760px),(pointer:coarse) and (max-width:1100px){
 .duel-cinematic{--duel-card:clamp(48px,12vw,76px);overflow:hidden;border-radius:8px}.duel-cinematic .duel-topbar{padding:5px 7px;min-height:48px;gap:4px;flex-wrap:nowrap}.duel-cinematic .duel-topbar>div:first-child{flex:1;flex-wrap:wrap;gap:2px 6px}.duel-cinematic .duel-topbar>div:first-child>span:last-child{flex-basis:100%;max-width:100%;font-size:calc(10px * var(--duel-text-scale,1));white-space:nowrap}.duel-cinematic .duel-topbar>.duel-toolbar-actions{width:auto;flex-wrap:nowrap;justify-content:flex-end;gap:4px}.duel-cinematic .duel-topbar strong{font-size:calc(12px * var(--duel-text-scale,1))}.duel-cinematic .duel-font-controls{margin:0;gap:1px;flex-wrap:nowrap}.duel-cinematic .duel-font-controls .btn{min-width:32px;min-height:40px;padding:4px;font-size:calc(11px * var(--duel-text-scale,1))}.duel-table-tools>summary{font-size:calc(11px * var(--duel-text-scale,1));min-height:40px;padding:11px 7px}.duel-tool-drawer{position:fixed;top:58px;right:8px;width:calc(100vw - 16px);max-width:420px}.duel-cinematic .duel-tool-drawer .btn{min-height:44px;min-width:44px;font-size:calc(13px * var(--duel-text-scale,1))}
 .duel-cinematic .duel-table,.duel-cinematic.is-expanded .duel-table{height:clamp(560px,76dvh,850px);min-height:560px;overflow:hidden;padding:0;display:flex;flex-direction:column;flex:none}.duel-cinematic .duel-enemy,.duel-cinematic .duel-mine{flex:1;min-height:0;overflow:visible;display:flex;flex-direction:column}.duel-cinematic .duel-battle-row,.duel-cinematic.is-expanded .duel-battle-row{min-height:100px;flex:1;flex-wrap:nowrap;justify-content:safe center;align-items:center;align-content:center;gap:14px;padding:41px 14px 19px;overflow-x:auto;overflow-y:hidden;touch-action:pan-x}
 .duel-cinematic .duel-zone-label:has(.duel-player-identity){left:5px;top:5px;max-width:70%;font-size:calc(10px * var(--duel-text-scale,1));padding:2px 8px 2px 2px}.duel-cinematic .duel-player-identity .player-avatar{width:26px;height:26px}.duel-cinematic .duel-slot.is-exerted{margin:0 12px}.duel-cinematic .duel-stat{font-size:calc(8px * var(--duel-text-scale,1));bottom:-15px}.duel-cinematic .duel-drying{font-size:calc(8px * var(--duel-text-scale,1));padding:2px 0}.duel-cinematic .duel-damage{font-size:calc(12px * var(--duel-text-scale,1))}.duel-strength-change{font-size:calc(9px * var(--duel-text-scale,1))}.duel-cinematic .duel-under{font-size:calc(8px * var(--duel-text-scale,1))}
 .duel-cinematic .duel-rail,.duel-cinematic .enemy-rail{height:44px;min-height:44px;grid-template-columns:36px minmax(0,1fr) 45px 41px auto;gap:3px;padding:3px 5px}.duel-cinematic .duel-ink-cards{display:flex;padding:0;gap:1px;min-height:28px;max-height:30px}.duel-cinematic .duel-ink-cards>.duel-back{width:16px;height:23px;flex-basis:16px}.duel-cinematic .duel-ink-cards>.ink-used{margin:0;transform:rotate(90deg) scale(.75)}.duel-cinematic .duel-lore strong{font-size:calc(22px * var(--duel-text-scale,1))}.duel-cinematic .duel-lore span{font-size:calc(7px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-total{min-width:0;padding:4px 2px}.duel-cinematic .duel-ink-total strong{font-size:calc(13px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-total em{font-size:calc(10px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-total span{font-size:calc(6px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-drops{padding:1px 3px;grid-template-columns:10px auto}.duel-cinematic .duel-ink-drops svg{width:9px;height:14px}.duel-cinematic .duel-ink-drops strong{font-size:calc(13px * var(--duel-text-scale,1))}.duel-cinematic .duel-ink-drops span{font-size:calc(6px * var(--duel-text-scale,1))}.duel-cinematic .duel-turn-controls{grid-column:auto;gap:2px;flex-wrap:nowrap}.duel-cinematic .duel-turn-controls .btn{min-height:36px;min-width:32px;font-size:calc(10px * var(--duel-text-scale,1));padding:4px 5px}.duel-cinematic .duel-turn-controls>[data-play-action=undo]{font-size:0;min-width:28px}.duel-cinematic .duel-turn-controls>[data-play-action=undo]:before{font-size:calc(15px * var(--duel-text-scale,1))}.duel-cinematic .duel-turn-controls .btn:last-child{max-width:78px}
 .duel-cinematic .duel-hand-row{grid-template-columns:34px minmax(0,1fr) 34px;padding:2px 4px;gap:3px}.duel-cinematic .opponent-hand{height:33px;min-height:33px}.duel-cinematic .duel-pile>summary{width:32px;min-width:32px;height:32px;min-height:32px}.duel-cinematic .duel-pile>summary>strong{font-size:calc(20px * var(--duel-text-scale,1))}.duel-cinematic .duel-pile>summary>small{font-size:calc(6px * var(--duel-text-scale,1))}.duel-cinematic .duel-pile>summary>.duel-back,.duel-cinematic .duel-pile>summary>img{width:21px;height:29px}.duel-cinematic .duel-hidden-hand>.duel-back{width:28px;flex-basis:28px;height:39px;margin-left:-13px;transform:translateY(-18px) rotate(180deg)}.duel-cinematic .duel-hidden-hand>span:last-child{font-size:calc(9px * var(--duel-text-scale,1));bottom:1px}.duel-cinematic .duel-hand-row.my-hand,.duel-cinematic.is-expanded .duel-hand-row.my-hand{height:100px;min-height:100px}.duel-cinematic .duel-hand-scroll,.duel-cinematic.is-expanded .duel-hand-scroll{height:100px;min-height:100px;padding:16px 5px 0;touch-action:pan-x}.duel-cinematic .duel-hand-fan{justify-content:safe center;align-items:flex-start;min-width:100%;width:max-content;gap:0;padding:0 12px;transform:translateY(4px);height:140px}.duel-cinematic .duel-hand-card,.duel-cinematic.is-expanded .duel-hand-card{width:75px;flex:0 0 75px;margin-left:-23px;transform:rotate(var(--fan,0deg))}.duel-cinematic .duel-hand-card:first-child{margin-left:0}.duel-cinematic .duel-hand-card.is-focused{transform:translateY(-12px) rotate(0deg);margin-left:-8px;margin-right:12px}.duel-cinematic .duel-bottom-bar{padding:6px 8px;font-size:calc(10px * var(--duel-text-scale,1))}.duel-mobile-help{font-size:calc(11px * var(--duel-text-scale,1));padding:5px 9px;background:#253347}
 .duel-cinematic.is-expanded{position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.duel-cinematic.is-expanded>.duel-topbar,.duel-cinematic.is-expanded>.duel-bottom-bar,.duel-cinematic.is-expanded>.duel-mobile-help{flex-shrink:0}.duel-cinematic.is-expanded>.duel-table{height:auto;min-height:0;flex:1}.duel-cinematic.is-expanded .duel-hand-row.my-hand,.duel-cinematic.is-expanded .duel-hand-scroll{height:88px;min-height:88px}.duel-cinematic.is-expanded .duel-battle-row{min-height:72px}
 .duel-cinematic .duel-target-prompt{position:absolute!important;inset:5% auto auto 50%!important;bottom:auto!important;width:calc(100% - 20px)!important;max-width:560px;max-height:23%;transform:translateX(-50%)!important;padding:0;border-radius:8px;pointer-events:none;z-index:65}.duel-cinematic .duel-target-prompt .practice-effect-choice{padding:8px 10px}.duel-cinematic .duel-target-prompt p{font-size:calc(11px * var(--duel-text-scale,1))}.duel-cinematic .duel-cast-preview{right:10px;width:90px;top:35%}.duel-cinematic .duel-mulligan-tray{min-height:105px}.duel-cinematic .duel-mulligan-tray .duel-hand-card{width:65px;flex-basis:65px}
}
@media(max-height:550px) and (orientation:landscape){.duel-cinematic.is-expanded{--duel-card:52px}.duel-cinematic.is-expanded .duel-topbar{min-height:38px}.duel-cinematic.is-expanded .duel-hand-row.my-hand,.duel-cinematic.is-expanded .duel-hand-scroll{height:62px;min-height:62px}.duel-cinematic.is-expanded .duel-battle-row{padding-top:36px;padding-bottom:16px;min-height:50px}.duel-cinematic.is-expanded .duel-rail{height:34px;min-height:34px}.duel-cinematic.is-expanded .opponent-hand{height:22px;min-height:22px}}
@media(prefers-reduced-motion:reduce){.duel-cinematic *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Explicit resource slots prevent older auto-placement rules from moving the score or controls. */
.duel-cinematic .duel-rail>.duel-lore{grid-column:1;grid-row:1;min-width:0}
.duel-cinematic .duel-rail>.duel-ink-cards{grid-column:2;grid-row:1;min-width:0}
.duel-cinematic .duel-rail>.duel-ink-total{grid-column:3;grid-row:1}
.duel-cinematic .duel-rail>.duel-ink-drops{grid-column:4;grid-row:1}
.duel-cinematic .duel-rail>.duel-turn-controls{grid-column:5;grid-row:1}
@media(max-width:760px),(pointer:coarse) and (max-width:1100px){.duel-cinematic.is-expanded>.duel-mobile-help{display:none}}
@media(max-height:550px) and (orientation:landscape){
 .duel-cinematic.is-expanded{--duel-card:42px}
 .duel-cinematic.is-expanded .duel-enemy{flex:1}.duel-cinematic.is-expanded .duel-mine{flex:1.25}
 .duel-cinematic.is-expanded .duel-battle-row{padding:27px 16px 8px;min-height:50px;overflow-y:hidden}
 .duel-cinematic.is-expanded .duel-zone-label:has(.duel-player-identity){top:2px;font-size:10px;padding:1px 6px 1px 1px}.duel-cinematic.is-expanded .duel-player-identity .player-avatar{width:20px;height:20px}
 .duel-cinematic.is-expanded .duel-rail{height:28px;min-height:28px;padding:1px 8px}.duel-cinematic.is-expanded .duel-lore strong{font-size:20px}.duel-cinematic.is-expanded .duel-ink-total strong,.duel-cinematic.is-expanded .duel-ink-drops strong{font-size:13px}.duel-cinematic.is-expanded .duel-ink-cards{min-height:23px;max-height:25px}.duel-cinematic.is-expanded .duel-ink-cards>.duel-back{height:22px;width:16px;flex-basis:16px}.duel-cinematic.is-expanded .duel-turn-controls .btn{min-height:26px;padding:3px 7px;font-size:11px}.duel-cinematic.is-expanded .duel-stat{font-size:8px;bottom:-12px}
 .duel-cinematic.is-expanded .duel-hand-row.my-hand,.duel-cinematic.is-expanded .duel-hand-scroll{height:56px;min-height:56px}.duel-cinematic.is-expanded .duel-hand-scroll{padding-top:7px}.duel-cinematic.is-expanded .duel-hand-card{width:66px;flex-basis:66px}.duel-cinematic.is-expanded .opponent-hand{height:22px;min-height:22px}.duel-cinematic.is-expanded .duel-pile>summary{height:24px;min-height:24px}.duel-cinematic.is-expanded .duel-pile>summary>strong{font-size:20px}.duel-cinematic.is-expanded .duel-bottom-bar{padding:4px 8px;font-size:10px}
}
.duel-cinematic .duel-lore{flex-direction:column;gap:0;line-height:1}.duel-cinematic .duel-lore span{max-width:none;white-space:nowrap;line-height:1;font-size:7px}

/* Newly inked cards stay faceup for the turn, including while paying costs. */
.duel-cinematic .duel-ink-cards>.duel-ink-faceup{position:relative;width:27px;height:37px;flex:0 0 27px;padding:0;margin:0 3px;border:1px solid #f1cc78;border-radius:3px;background:#18202b;box-shadow:0 0 8px #ffdd7d55;overflow:visible;cursor:pointer;transition:transform .3s}
.duel-ink-faceup img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}.duel-ink-faceup>span{position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);background:#e1ba65;color:#201a10;padding:1px 2px;white-space:nowrap;font-size:6px;line-height:1.1;border-radius:2px}.duel-cinematic .duel-ink-cards>.duel-ink-faceup.ink-used{transform:rotate(90deg) scale(.8);margin:0 7px}.duel-cinematic .duel-ink-cards{overflow-x:auto;overflow-y:visible;scrollbar-width:thin;max-height:39px}
@media(max-width:760px){.duel-cinematic .duel-ink-cards>.duel-ink-faceup{width:21px;height:29px;flex-basis:21px;margin:0 2px}.duel-cinematic .duel-ink-cards>.duel-ink-faceup.ink-used{margin:0 5px}.duel-ink-faceup>span{font-size:5px}}
@media(max-height:550px) and (orientation:landscape){.duel-cinematic.is-expanded .duel-ink-cards>.duel-ink-faceup{width:18px;height:25px;flex-basis:18px}}
/* One room lobby for both deck formats, and visible post-match choices. */
.room-format-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.room-format-options .btn{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:80px;white-space:normal;text-align:left;padding:14px}.room-format-options .btn[aria-pressed=true]{border-color:#c39b4d;background:#e8d5a5;color:#2c261c;box-shadow:inset 0 0 0 1px #c39b4d}.room-format-options small{font-weight:400;line-height:1.4}.room-sealed-state{padding:14px;border:1px solid #a48a52;border-radius:10px;background:#f5efdf;margin-bottom:15px}.room-sealed-state p{font-size:13px;line-height:1.6}
.duel-result-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;flex-shrink:0}.duel-game-over .duel-result-actions>[data-duel-leave]{background:#263546;color:#f2f4f7;border:1px solid #7b8da4}.duel-game-over button:disabled{opacity:.65;cursor:default}
@media(max-width:600px){.duel-result-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.duel-game-over .duel-result-actions .btn{min-width:0;font-size:14px!important;white-space:normal}.room-format-options .btn{padding:12px}}

.computer-setup{flex:1 1 100%;min-width:0;display:grid;gap:12px}.computer-setup .room-format-options{max-width:740px}.computer-setup>label{max-width:280px}.computer-setup .dim{margin:0}.computer-setup small{display:block;white-space:normal}.computer-setup .room-sealed-state{max-width:740px}

/* Anchor controls explicitly; language controls must not change child-based layout. */
.duel-cinematic .duel-topbar>.duel-toolbar-actions{margin-left:auto;flex:0 1 auto;justify-content:flex-end;flex-wrap:wrap;max-width:100%}
.duel-cinematic .duel-topbar>div:first-child{flex:1 1 160px}
.duel-cinematic .duel-table-tools{position:static}
.duel-cinematic .duel-tool-drawer{position:absolute;inset:auto 8px auto auto;top:calc(100% + 6px);width:min(420px,calc(100% - 16px));max-width:calc(100% - 16px);max-height:min(60dvh,420px);overflow:auto}
@media(max-width:700px){.duel-cinematic .duel-topbar{flex-wrap:wrap}.duel-cinematic .duel-topbar>.duel-toolbar-actions{flex:1 1 100%;width:100%;min-width:0;justify-content:flex-end}.duel-cinematic .duel-topbar>.duel-toolbar-actions .duel-font-controls{margin-left:0}.duel-cinematic .duel-tool-drawer .duel-audio{max-width:100%;flex-wrap:wrap}.duel-cinematic .duel-tool-drawer input[type=range]{max-width:100%}}
