.duel-shell{min-height:100svh;color:var(--paper);background:radial-gradient(circle at 8% 12%,#f15b351a,#0000 28rem),radial-gradient(circle at 92% 40%,#2fb5d614,#0000 30rem),#090b0c;overflow-x:hidden}.duel-topbar{z-index:4;border-bottom:1px solid var(--line);background:#090b0cf5;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;min-height:74px;padding:0 clamp(18px,4vw,58px);display:grid;position:relative}.duel-brand{align-items:center;gap:11px;width:max-content;display:inline-flex}.duel-brand>span{width:34px;height:34px;color:var(--orange);border:1px solid #f15b359e;border-radius:50%;place-items:center;font-family:serif;display:grid}.duel-brand strong,.duel-exit,.duel-mode-title span{font-family:var(--font-geist-mono), monospace;letter-spacing:.12em;text-transform:uppercase;font-size:8px}.duel-brand strong{letter-spacing:.16em;font-size:10px}.duel-mode-title{flex-direction:column;align-items:center;gap:4px;display:flex}.duel-mode-title span{color:#706d67;font-size:6px}.duel-mode-title strong{font-size:12px;font-weight:560}.duel-exit{border:1px solid var(--line);color:#96928b;border-radius:999px;justify-self:end;padding:9px 12px}.duel-exit:hover,.duel-exit:focus-visible{color:var(--paper);border-color:#f15b358c}.duel-intro{grid-template-columns:1fr minmax(300px,.7fr);align-items:end;gap:42px;max-width:1600px;margin:0 auto;padding:38px clamp(18px,3vw,46px) 30px;display:grid}.duel-intro>div>p,.duel-intro>p{margin:0}.duel-intro>div>p{color:var(--orange);font-family:var(--font-geist-mono), monospace;letter-spacing:.14em;text-transform:uppercase;font-size:8px}.duel-intro h1{letter-spacing:-.06em;margin:12px 0 0;font-size:clamp(44px,6vw,82px);font-weight:590;line-height:.92}.duel-intro>p{color:#8c8982;font-size:13px;line-height:1.7}.duel-shell.is-match-active .duel-intro{display:none}.duel-shell.is-match-active{--duel-control-height:clamp(76px, 10dvh, 98px);--duel-hand-peek-height:clamp(58px, 7dvh, 68px);--duel-log-width:clamp(210px, 15vw, 250px);--duel-topbar-height:clamp(44px, 5.5dvh, 58px);height:100dvh;min-height:0;position:fixed;inset:0;overflow:hidden}.duel-shell.is-match-active .duel-topbar{height:var(--duel-topbar-height);min-height:0;padding-inline:clamp(14px,2vw,32px)}.duel-shell.is-match-active .duel-brand>span{width:30px;height:30px}.duel-play-layout{height:calc(100dvh - var(--duel-topbar-height));grid-template-columns:minmax(0, 1fr) var(--duel-log-width);align-items:stretch;gap:6px;min-width:0;min-height:0;padding:4px clamp(6px,1vw,12px);display:grid}.duel-table-column{width:100%;min-width:0;height:100%;min-height:0}.duel-table{grid-template-rows:minmax(0, 1fr) var(--duel-control-height) minmax(0, 1fr) var(--duel-hand-peek-height);background-color:#0e1112;background-image:linear-gradient(90deg,#ffffff05 1px,#0000 1px),linear-gradient(#ffffff05 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:48px 48px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;border:1px solid #eee7da26;gap:2px;width:100%;min-width:0;max-width:100%;height:100%;min-height:0;margin:0;padding:3px;display:grid;overflow:hidden;box-shadow:0 28px 70px #00000057}.duel-board{contain:layout paint;border:0;grid-template-rows:clamp(28px,4.5cqh,38px) minmax(0,1fr);height:100%;min-height:0;padding:3px 5px;display:grid;container-type:size}.duel-player-stage{grid-row:3/5;height:100%;min-height:0;position:relative}.duel-player-stage>.duel-board{inset:0 0 var(--duel-hand-peek-height);height:auto;position:absolute}.duel-board.is-opponent{background:linear-gradient(#2fb5d609,#0000 42%)}.duel-board.is-player{background:linear-gradient(#0000 58%,#f15b350a)}.duel-player-label{align-items:center;gap:9px;min-height:0;padding:0 2px 3px;display:flex}.duel-player-avatar{width:clamp(26px,3.2dvh,34px);height:clamp(26px,3.2dvh,34px);color:var(--orange);font-family:var(--font-geist-mono), monospace;border:1px solid #f15b3580;border-radius:50%;place-items:center;font-size:11px;font-weight:700;display:grid}.is-opponent .duel-player-avatar{color:#59c3d9;border-color:#2fb5d680}.duel-player-label>div{flex-direction:column;gap:3px;display:flex}.duel-player-label>div strong{font-size:clamp(14px,1.5dvh,17px);font-weight:560}.duel-player-label>div small,.duel-life{color:#6e6b65;font-family:var(--font-geist-mono), monospace;letter-spacing:.09em;text-transform:uppercase;font-size:clamp(9px,.9dvh,11px)}.duel-life{border:1px solid var(--line);margin-left:auto;padding:4px 8px}.duel-mat{--duel-card-width:min(187px, calc((100cqw - 74px) / 7), calc((100cqh - 88px) * .263566));--duel-card-height:calc(var(--duel-card-width) * 1.26471);--duel-slot-gap:clamp(2px, .18cqw, 3px);--duel-row-height:calc(var(--duel-card-height) + 13px);grid-template-columns:minmax(0, 1fr) repeat(2, calc(var(--duel-card-width) + 8px));grid-template-rows:repeat(3, var(--duel-row-height));grid-template-areas:"characters.deck""support leader trash""chakra summon exclusion";place-content:center space-between;gap:2px 4px;min-width:0;height:100%;min-height:0;display:grid}.duel-zone{background:linear-gradient(145deg,#ffffff05,#0000 48%),#080a0bb3;border:1px solid #eee7da2e;flex-direction:column;min-width:0;padding:2px 3px;display:flex;position:relative;overflow:hidden}.is-player .duel-zone{border-color:#f15b3538}.is-opponent .duel-zone{border-color:#2fb5d633}.duel-zone-characters{grid-area:characters}.duel-zone-support{grid-area:support}.duel-zone-chakra{grid-area:chakra}.duel-zone-deck{grid-area:deck}.duel-zone-leader{grid-area:leader}.duel-zone-summon{grid-area:summon}.duel-zone-trash{grid-area:trash}.duel-zone-exclusion{grid-area:exclusion}.duel-zone-heading{color:#8b8881;height:9px;font-family:var(--font-geist-mono), monospace;letter-spacing:.07em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:4px;padding-bottom:1px;font-size:clamp(9px,.72cqw,11px);display:flex}.duel-zone-heading small{color:#53514d;font-size:6.5px}.duel-slot-row{grid-template-columns:repeat(5, var(--duel-card-width));justify-content:start;gap:var(--duel-slot-gap);flex:1;grid-template-rows:1fr;min-height:0;display:grid}.duel-card-slot,.duel-single-slot{background:#ffffff04;border:1px dashed #eee7da29;place-items:center;min-width:0;display:grid;position:relative;overflow:hidden}.duel-card-slot{width:var(--duel-card-width);height:var(--duel-card-height);border-radius:4px;align-self:center}.duel-card-slot.is-occupied,.duel-single-slot.is-occupied{border:0}.duel-card-slot:not(.is-occupied):before{aspect-ratio:1;content:"";border:1px solid #eee7da12;border-radius:50%;width:38%}.duel-card-slot small{color:#45433f;font-family:var(--font-geist-mono), monospace;font-size:5px;position:absolute;bottom:4px;right:5px}.duel-single-slot{width:var(--duel-card-width);height:var(--duel-card-height);min-height:var(--duel-card-height);flex:0 0 var(--duel-card-height);align-self:center}button.duel-single-slot{color:inherit;cursor:pointer;font:inherit;padding:0}.duel-zone-collection-trigger:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}.is-opponent .duel-zone-collection-trigger:focus-visible{outline-color:#59c3d9}.duel-single-slot>span{aspect-ratio:1;color:#4d4b47;width:42px;font-family:var(--font-geist-mono), monospace;border:1px solid #eee7da1a;border-radius:50%;place-items:center;font-size:12px;display:grid}.duel-single-slot img{opacity:1;object-fit:contain;border-radius:4px;width:100%;height:100%}.duel-single-slot>strong{width:24px;height:24px;color:var(--paper);font-family:var(--font-geist-mono), monospace;background:#080a0bf0;border-radius:50%;place-items:center;font-size:7px;display:grid;position:absolute;bottom:6px;right:6px}.duel-field-controls{grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;height:100%;min-height:0;padding:2px 0;display:grid;overflow:hidden}.duel-field-controls.has-detail{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr)}.duel-console{background:#050708e6;border:1px solid #eee7da21;grid-template-columns:86px minmax(170px,.8fr) minmax(0,1.2fr);align-items:center;gap:10px;height:100%;min-height:0;margin:0;padding:5px 8px;display:grid}.duel-console>div:first-child{flex-direction:column;gap:4px;display:flex}.duel-console>div:first-child span,.duel-status small{color:#67645f;font-family:var(--font-geist-mono), monospace;letter-spacing:.11em;text-transform:uppercase;font-size:9px}.duel-console>div:first-child strong{font-size:clamp(18px,2.4dvh,24px);font-weight:520}.duel-status{align-items:center;gap:8px;display:flex}.duel-status>span{background:#76736d;border-radius:50%;width:11px;height:11px}.duel-status>span.is-ready{background:#62c58b;box-shadow:0 0 14px #62c58b66}.duel-status>div{flex-direction:column;gap:4px;display:flex}.duel-status strong{font-size:clamp(13px,1.8dvh,17px);font-weight:520}.duel-console button{min-height:36px;color:var(--paper);cursor:pointer;font-family:var(--font-geist-mono), monospace;letter-spacing:.09em;text-transform:uppercase;background:#f15b3514;border:1px solid #f15b356b;border-radius:999px;padding:0 13px;font-size:10px}.duel-console button:hover,.duel-console button:focus-visible{border-color:var(--orange);background:#f15b3524}.duel-console button.is-attention{animation:3.2s ease-in-out infinite duel-action-attention}@keyframes duel-action-attention{0%,18%,to{background:#f15b3514;border-color:#f15b356b}6%,12%{color:#fff8ea;background:#ff841c57;border-color:#ff9a36}}.duel-footer-note{color:#66635e;font-family:var(--font-geist-mono), monospace;letter-spacing:.09em;text-transform:uppercase;grid-template-columns:repeat(6,auto);justify-content:center;gap:10px 20px;padding:0 18px 42px;font-size:6px;display:grid}.duel-footer-note strong{color:#97938c;font-weight:520}.rotate-device-prompt{display:none}@media (max-width:760px){.duel-topbar{grid-template-columns:1fr auto;min-height:66px}.duel-mode-title{display:none}.duel-brand strong{font-size:8px}.duel-intro{grid-template-columns:1fr;gap:20px;padding-top:38px}.duel-intro h1{font-size:52px}.duel-intro>p{max-width:520px;font-size:11px}.duel-table{width:100%;min-width:0;padding:12px}.duel-board{padding:12px}.duel-mat{grid-template-rows:repeat(3,104px)}.duel-footer-note{grid-template-columns:repeat(2,auto)}}@media (max-width:1000px) and (orientation:landscape){.duel-topbar{min-height:52px}.duel-intro,.duel-footer-note{display:none}.duel-table{width:100%;min-width:0;padding:7px}.duel-board{padding:7px 9px 9px}.duel-player-label{min-height:36px;padding-bottom:5px}.duel-player-avatar{width:28px;height:28px}.duel-mat{grid-template-rows:repeat(3,74px);gap:5px}.duel-zone{padding:6px}.duel-zone-heading{padding-bottom:4px;font-size:5px}.duel-slot-row{gap:4px}.duel-single-slot img{width:38px}.duel-console{min-height:52px;margin-block:6px;padding:7px 10px}.duel-console button{min-height:32px}}@media (max-width:760px) and (orientation:portrait){.duel-shell.is-match-active .rotate-device-prompt{z-index:200;text-align:center;background:radial-gradient(circle,#f15b351a,#0000 38%),#090b0c;flex-direction:column;justify-content:center;align-items:center;padding:34px;display:flex;position:fixed;inset:0}.rotate-device-prompt>p{color:var(--orange);font-family:var(--font-geist-mono), monospace;letter-spacing:.14em;text-transform:uppercase;margin:28px 0 0;font-size:8px}.rotate-device-prompt h2{letter-spacing:-.055em;margin:12px 0 0;font-size:clamp(38px,12vw,56px);font-weight:580;line-height:.95}.rotate-device-prompt>span:last-child{color:#8c8982;max-width:300px;margin-top:18px;font-size:12px;line-height:1.65}.rotate-phone-mark{border:2px solid #eee7dab3;border-radius:13px;width:74px;height:116px;position:relative;transform:rotate(90deg)}.rotate-phone-mark:before{content:"";background:#eee7da73;border-radius:999px;width:22px;height:3px;position:absolute;top:7px;left:50%;transform:translate(-50%)}.rotate-phone-mark>span{border-right:2px solid var(--orange);border-bottom:2px solid var(--orange);border-radius:50%;width:42px;height:42px;position:absolute;bottom:-21px;right:-23px}.rotate-phone-mark>span:after{border-right:2px solid var(--orange);border-bottom:2px solid var(--orange);content:"";width:9px;height:9px;position:absolute;bottom:2px;right:-2px}}.preset-select{width:min(1180px,100% - 36px);margin:0 auto;padding:clamp(52px,8vw,104px) 0 70px}.preset-heading{gap:14px;max-width:760px;display:grid}.preset-heading>p,.preset-heading>h1,.preset-heading>span{margin:0}.preset-heading>p,.preset-option>div:last-child>span,.preset-option dt,.duel-log-heading span,.duel-hand-overlay header span,.selected-card-actions>div:first-child>span,.duel-choice-panel>div:first-child>span{color:var(--orange);font-family:var(--font-geist-mono), monospace;letter-spacing:.13em;text-transform:uppercase;font-size:7px}.preset-heading h1{letter-spacing:-.065em;font-size:clamp(52px,8vw,96px);font-weight:590;line-height:.92}.preset-heading>span{color:#96928b;max-width:680px;font-size:13px;line-height:1.75}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:42px;display:grid}.preset-option{background:linear-gradient(135deg,#ffffff06,#0000 58%),#0e1112;border:1px solid #eee7da26;grid-template-columns:minmax(150px,.72fr) minmax(0,1.2fr);gap:clamp(18px,3vw,34px);padding:clamp(18px,2.5vw,28px);display:grid;overflow:hidden}.preset-option.is-red{border-color:#ef3e8952}.preset-option.is-blue{border-color:#2fb5d64d}.preset-card-art{align-self:center}.preset-card-art img{object-fit:contain;border-radius:8px;width:100%;height:auto;max-height:400px;display:block;box-shadow:0 22px 40px #00000052}.preset-option>div:last-child{flex-direction:column;justify-content:center;min-width:0;display:flex}.preset-option.is-blue>div:last-child>span{color:#59c3d9}.preset-option h2{letter-spacing:-.045em;margin:10px 0 0;font-size:clamp(28px,3vw,44px);font-weight:570}.preset-option p{color:#89867f;margin:12px 0 0;font-size:11px;line-height:1.65}.preset-option dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0 0;display:grid}.preset-option dl>div{border:1px solid var(--line);min-width:0;padding:9px}.preset-option dt{color:#625f59;text-overflow:ellipsis;white-space:nowrap;font-size:5px;overflow:hidden}.preset-option dd{margin:6px 0 0;font-size:18px;font-weight:560}.preset-option button{width:max-content;min-height:40px;color:var(--paper);cursor:pointer;font-family:var(--font-geist-mono), monospace;letter-spacing:.1em;text-transform:uppercase;background:#f15b351a;border:1px solid #f15b3580;border-radius:999px;margin-top:22px;padding:0 17px;font-size:7px}.preset-option.is-blue button{background:#2fb5d617;border-color:#2fb5d685}.duel-card{outline-offset:-2px;width:100%;min-width:0;height:100%;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;outline:2px solid #0000;place-items:center;padding:0;transition:outline-color .14s,box-shadow .14s,transform .14s;display:grid;position:relative;overflow:hidden}.duel-card img,.duel-single-slot .duel-card img{opacity:1;object-fit:contain;border-radius:5px;width:100%;height:100%;display:block;position:absolute;inset:0}.duel-card.is-rested img{transform:rotate(90deg)scale(.78)}.duel-card.is-selected{outline-color:var(--orange);box-shadow:inset 0 0 0 1px #f15b3561}.is-opponent .duel-card.is-selected{outline-color:#59c3d9}.duel-card.is-choice-candidate{outline-color:#e9ca6b;box-shadow:0 0 0 1px #e9ca6b61}.duel-card.is-choice-selected{outline-color:#74d89c;box-shadow:0 0 16px #55cf8947}.duel-card.is-attacking{animation:.56s ease-out duel-card-attacking}.duel-card.is-being-attacked{animation:.52s ease-out duel-card-attacked}@keyframes duel-card-attacking{0%,to{box-shadow:none;background:0 0;transform:translate(0)rotate(0)}18%{background:#eeca4a33;transform:translate(-3px)rotate(-1.5deg);box-shadow:inset 0 0 0 2px #f7d652e0}36%{transform:translate(4px)rotate(1.8deg)}54%{background:#eeca4a1f;transform:translate(-2px)rotate(-.8deg)}72%{transform:translate(2px)rotate(.7deg)}}@keyframes duel-card-attacked{0%,to{box-shadow:none;background:0 0}24%,62%{background:#dd3e373d;box-shadow:inset 0 0 0 3px #ef4c42e6}43%{background:#77111021;box-shadow:inset 0 0 0 1px #ef4c4280}}.duel-card-set-mark,.duel-card-damage,.duel-card-stat{z-index:3;color:var(--paper);font-family:var(--font-geist-mono), monospace;text-transform:uppercase;background:#07090ae6;border-radius:999px;place-items:center;font-size:7px;display:grid;position:absolute}.duel-card-stat{background:#050708e6;border:1px solid #ffffff3d;border-radius:5px;min-width:36px;min-height:34px;padding:3px 6px;line-height:1}.duel-card-stat small{color:#bbb7af;letter-spacing:.08em;font-size:5px}.duel-card-stat b{color:#fff;margin-top:2px;font-size:13px}.duel-card-stat.is-damage{border-color:#eb5752a3;top:5px;left:5px}.duel-card-stat.is-power{border-color:#54bcdd9e;top:5px;right:5px}.duel-card-stat.is-hp{border-color:#5dca85a3;bottom:5px;right:5px}.duel-card-set-mark{padding:5px 7px;bottom:5px;left:5px}.duel-card-damage{background:#be3e39;width:28px;height:28px;font-size:10px;font-weight:700;bottom:5px;left:5px}.duel-card.is-known-set .duel-card-damage{left:42px}.duel-single-slot>.duel-card,.duel-card-slot>.duel-card{width:100%;height:100%;position:absolute;inset:0}.duel-hover-preview{display:none}@media (hover:hover) and (pointer:fine){.duel-hover-preview{z-index:90;opacity:0;pointer-events:none;visibility:hidden;contain:layout paint;background:#080a0b;border:1px solid #eee7da38;gap:0;width:clamp(250px,20vw,320px);max-height:calc(100dvh - 24px);transition:opacity .16s,transform .18s,visibility 0s linear .18s;display:grid;position:fixed;top:50%;left:clamp(10px,1.5vw,28px);overflow:hidden;transform:translate(-10px,-50%);box-shadow:0 20px 50px #0000007a}.duel-hover-preview.is-visible{opacity:1;visibility:visible;transition-delay:0s;transform:translateY(-50%)}.duel-hover-preview-art{background:#101415;place-items:center;max-height:min(49dvh,430px);padding:8px;display:grid}.duel-hover-preview-art img{object-fit:contain;border-radius:6px;width:100%;height:100%;max-height:min(47dvh,414px);display:block}.duel-hover-preview-info{background:#0b0e0f;border-top:1px solid #eee7da29;gap:7px;min-width:0;padding:10px 12px 12px;display:grid}.duel-hover-preview-info>strong{color:#fff;font-size:15px;font-weight:600}.duel-hover-preview-stats{flex-wrap:wrap;gap:5px;display:flex}.duel-hover-preview-stats span{color:#aaa69f;font-family:var(--font-geist-mono), monospace;text-transform:uppercase;border:1px solid #eee7da24;padding:5px 7px;font-size:9px}.duel-hover-preview-stats b{color:#fff;margin-left:4px;font-size:13px}.duel-hover-preview-types,.duel-hover-preview-text{margin:0;font-size:11px;line-height:1.45}.duel-hover-preview-types{color:#6fe29b;font-family:var(--font-geist-mono), monospace}.duel-hover-preview-text{color:#fff;-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}.duel-life b{color:var(--paper);font-size:clamp(17px,2.3dvh,22px)}.duel-turn-phase{flex-direction:column;gap:4px;display:flex}.duel-turn-phase strong{text-transform:capitalize}.duel-console-actions,.selected-card-buttons,.duel-choice-options,.duel-choice-buttons{scrollbar-width:thin;justify-content:flex-end;align-items:center;gap:7px;min-width:0;display:flex;overflow-x:auto}.duel-choice-card-controls{justify-content:space-between;align-items:center;gap:16px;min-width:0;display:flex}.duel-choice-buttons{flex:none}.duel-console-actions button,.selected-card-actions button,.duel-choice-panel button{min-height:34px;color:var(--paper);cursor:pointer;font-family:var(--font-geist-mono), monospace;letter-spacing:.07em;text-transform:uppercase;background:#f15b3512;border:1px solid #f15b3561;border-radius:999px;flex:none;padding:0 12px;font-size:10px}.selected-card-actions,.duel-choice-panel{background:#0b0e0f;border:1px solid #eee7da1f;grid-template-columns:minmax(130px,.36fr) minmax(0,1.64fr);align-items:center;gap:10px;height:100%;min-height:0;margin:0;padding:5px 8px;display:grid;overflow:hidden}.selected-card-heading,.duel-choice-panel>div:first-child{flex-direction:column;gap:3px;min-width:0;display:flex}.selected-card-heading strong,.duel-choice-panel strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:560;overflow:hidden}.selected-card-heading>small,.selected-card-buttons>span,.duel-choice-panel>small{color:#74716b;font-family:var(--font-geist-mono), monospace;font-size:9px}.selected-card-heading>small{text-transform:capitalize}.selected-card-clear{width:max-content;margin-top:1px}.selected-card-detail{gap:4px;min-width:0;display:grid}.selected-card-statline{flex-wrap:wrap;gap:4px;display:flex}.selected-card-statline>span{color:#fff;border:1px solid #eee7da1f;align-items:baseline;gap:5px;min-width:54px;padding:3px 6px;display:flex}.selected-card-statline small{color:#aaa69f;font-family:var(--font-geist-mono), monospace;letter-spacing:.08em;text-transform:uppercase;font-size:7px}.selected-card-statline b{color:#fff;font-size:13px}.selected-card-types,.selected-card-text{margin:0;font-size:10px;line-height:1.35}.selected-card-types{color:#6fe29b;font-family:var(--font-geist-mono), monospace;letter-spacing:.04em;font-size:9px}.selected-card-text{color:#fff;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.selected-card-buttons{justify-content:flex-start;padding-top:2px}.duel-choice-panel{border-color:#e9ca6b52}.duel-choice-panel button:disabled{cursor:not-allowed;opacity:.4}.mobile-log-toggle{display:none}.duel-log{background:#0b0e0f;border:1px solid #eee7da24;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;gap:10px;width:auto;height:100%;min-height:0;max-height:none;margin:0;padding:12px 10px;display:grid;position:relative;top:auto;overflow:hidden}.duel-log-heading{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.duel-log-heading>div{flex-direction:column;gap:5px;display:flex}.duel-log-heading strong{font-size:15px;font-weight:560}.duel-log-close{display:none}.duel-log ol{scrollbar-width:thin;scrollbar-gutter:stable;overscroll-behavior:contain;align-content:start;gap:4px;height:100%;min-height:0;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.duel-log li{background:#ffffff06;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:8px;display:grid}.duel-log li>span{color:#66625c;font-family:var(--font-geist-mono), monospace;font-size:8px}.duel-log li p{color:#b0aca4;margin:0;font-size:11px;line-height:1.5}.duel-log li p.is-system{color:#efd36f}.duel-log-card-name{font-weight:650}.duel-log-card-name.is-character{color:#7ce8a6}.duel-log-card-name.is-support{color:#76dcf2}.duel-log-preset,.duel-log-close{border:1px solid var(--line);color:#aaa69f;cursor:pointer;min-height:38px;font-family:var(--font-geist-mono), monospace;text-transform:uppercase;background:0 0;border-radius:999px;padding:0 12px;font-size:8px}.duel-action-bubbles{display:none}.duel-zone-viewer{z-index:180;min-width:0;padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));isolation:isolate;place-items:center;display:grid;position:fixed;inset:0}.duel-zone-viewer-backdrop{z-index:-1;cursor:default;background:#050708f5;border:0;position:absolute;inset:0}.duel-zone-viewer>section{contain:layout paint;background:#0b0e0f;border:1px solid #eee7da33;grid-template-rows:auto minmax(0,1fr) auto;width:min(860px,100%);min-height:0;max-height:min(76dvh,690px);display:grid;overflow:hidden;box-shadow:0 24px 60px #0000007a}.duel-zone-viewer>section>header,.duel-zone-viewer>section>footer{border-bottom:1px solid #eee7da1f;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex}.duel-zone-viewer>section>footer{border-top:1px solid #eee7da1f;border-bottom:0}.duel-zone-viewer header>div{min-width:0}.duel-zone-viewer header span{color:var(--orange);font-family:var(--font-geist-mono), monospace;letter-spacing:.13em;text-transform:uppercase;font-size:7px}.duel-zone-viewer h2,.duel-zone-viewer header p{margin:0}.duel-zone-viewer h2{margin-top:4px;font-size:clamp(20px,3vw,32px);font-weight:570}.duel-zone-viewer header p,.duel-zone-viewer footer>span{color:#99958e;margin-top:4px;font-size:10px;line-height:1.45}.duel-zone-viewer header button,.duel-zone-viewer footer button{min-height:36px;color:var(--paper);cursor:pointer;font-family:var(--font-geist-mono), monospace;text-transform:uppercase;background:#f15b3514;border:1px solid #f15b3573;border-radius:999px;flex:none;padding:0 13px;font-size:8px}.duel-zone-viewer footer button:disabled{cursor:not-allowed;opacity:.42}.duel-zone-viewer-grid{overscroll-behavior:contain;scrollbar-gutter:stable;grid-template-columns:repeat(auto-fill,minmax(86px,124px));place-content:start center;gap:10px;min-height:0;padding:14px;display:grid;overflow-y:auto}.duel-zone-viewer-grid article{gap:5px;min-width:0;display:grid}.duel-zone-viewer-grid article>.duel-card{aspect-ratio:170/215;width:100%;height:auto}.duel-zone-viewer-grid article>span{color:#b7b2aa;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.3;overflow:hidden}.duel-zone-viewer-empty{color:#8c8982;text-align:center;grid-column:1/-1;margin:0;padding:32px}.has-zone-viewer .duel-console button.is-attention{animation-play-state:paused}.duel-notice{z-index:80;color:#edb0a8;background:#171010;border:1px solid #de5b4e73;max-width:min(380px,100vw - 36px);margin:0;padding:11px 14px;font-size:10px;line-height:1.5;position:fixed;bottom:82px;right:300px}.duel-hand-overlay{--hand-card-width:clamp(110px, 14dvh, 142px);--hand-card-height:calc(var(--hand-card-width) * 1.26471);z-index:100;height:clamp(120px,20dvh,190px);min-height:0;box-shadow:none;opacity:1;pointer-events:none;contain:layout paint;background:0 0;border:0;padding:0;transition:transform .22s,opacity .18s;position:absolute;bottom:-20px;left:2%;right:28%;transform:translateY(22px)}.duel-hand-overlay:hover,.duel-hand-overlay:focus-within,.duel-hand-overlay.is-open{opacity:1;transform:translateY(0)}.duel-hand-overlay header{z-index:40;pointer-events:auto;background:#0b0e0ff0;border:1px solid #f15b354d;justify-content:space-between;align-items:center;gap:10px;min-height:0;padding:5px 7px;display:flex;position:absolute;top:12px;left:4px}.duel-hand-overlay header>div{flex-direction:column;gap:2px;display:flex}.duel-hand-overlay header strong{font-size:13px;font-weight:550}.duel-hand-overlay header button{border:1px solid var(--line);color:#aaa69f;cursor:pointer;min-height:28px;font-family:var(--font-geist-mono), monospace;text-transform:uppercase;background:0 0;border-radius:999px;padding:0 9px;font-size:7px}.duel-hand-cards{pointer-events:none;min-height:0;position:absolute;inset:0;overflow:visible}.duel-hand-card-shell{z-index:var(--hand-layer);width:var(--hand-card-width);height:var(--hand-card-height);opacity:.96;pointer-events:auto;transform:translateX(calc(-50% + var(--hand-idle-x))) translateY(var(--hand-fan-offset)) rotate(var(--hand-fan-angle));transform-origin:50% 100%;transition:transform .18s,opacity .18s;display:block;position:absolute;bottom:0;left:50%}.duel-hand-overlay:hover .duel-hand-card-shell,.duel-hand-overlay:focus-within .duel-hand-card-shell,.duel-hand-overlay.is-open .duel-hand-card-shell{transform:translateX(calc(-50% + var(--hand-open-x))) translateY(var(--hand-fan-offset)) rotate(var(--hand-fan-angle))}.duel-hand-card-shell:hover,.duel-hand-card-shell:focus-within{z-index:50;opacity:1;transform:translateX(calc(-50% + var(--hand-open-x))) translateY(-24px) rotate(0deg) scale(1.08)}.duel-hand-card-shell .duel-card{width:var(--hand-card-width);height:var(--hand-card-height);background:#111516}.duel-hand-card-shell .duel-card-stat{display:none}.duel-hand-empty{color:#8c8982;text-align:center;margin:0;font-size:12px;position:absolute;bottom:26px;left:0;right:0}@media (min-width:1001px){.duel-slot-row{box-sizing:border-box;padding-left:var(--duel-card-width);justify-content:center;align-items:center}.duel-card-stat small{font-size:8px}.duel-hand-overlay{--hand-card-width:clamp(121px, 15.4dvh, 156px);width:min(76vw,1100px);height:clamp(132px,22dvh,209px);position:fixed;bottom:-20px;left:50%;right:auto;transform:translate(-50%,22px)}.duel-hand-overlay:hover,.duel-hand-overlay:focus-within,.duel-hand-overlay.is-open{transform:translate(-50%)}.duel-action-bubbles{top:calc(var(--duel-topbar-height) + 10px);left:calc((100vw - var(--duel-log-width)) / 2);z-index:145;width:min(380px, calc(100vw - var(--duel-log-width) - 32px));pointer-events:none;gap:6px;display:grid;position:fixed;transform:translate(-50%)}.duel-action-bubble{background:#0b0e0ff5;border:1px solid #eee7da2e;padding:9px 12px;animation:5.2s both duel-action-bubble}.duel-action-bubble[data-event-type=ATTACK_DECLARED],.duel-action-bubble[data-event-type=ATTACK_INTERRUPTED]{animation-duration:8s}.duel-action-bubble p{color:#e8e3db;margin:0;font-size:11px;line-height:1.45}.duel-action-bubble p.is-system{color:#efd36f}}@keyframes duel-action-bubble{0%{opacity:0;transform:translateY(-7px)}7%,82%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}@media (max-width:1000px){.duel-play-layout{padding:0;display:block}.duel-console .mobile-log-toggle{align-items:center;display:inline-flex}.duel-log{top:max(6px, env(safe-area-inset-top));right:max(6px, env(safe-area-inset-right));bottom:max(6px, env(safe-area-inset-bottom));z-index:150;opacity:0;pointer-events:none;visibility:hidden;width:min(330px,100vw - 12px);height:auto;max-height:none;transition:transform .18s,opacity .18s,visibility .18s;position:fixed;transform:translate(18px)}.duel-log.is-open{opacity:1;pointer-events:auto;visibility:visible;transform:translate(0)}.duel-log-close{display:block}.duel-notice{bottom:12px;right:12px}.duel-hand-overlay{--hand-card-width:clamp(82px, 13dvh, 118px);opacity:1;pointer-events:none;visibility:visible;width:auto;height:clamp(108px,20dvh,160px);position:absolute;bottom:-16px;left:2%;right:20%;transform:translateY(18px)}.duel-zone-viewer{padding:max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));place-items:end center}.duel-zone-viewer>section{width:100%;max-height:calc(100dvh - max(12px, env(safe-area-inset-top)))}.duel-zone-viewer>section>header,.duel-zone-viewer>section>footer{padding:8px 10px}.duel-zone-viewer h2{font-size:18px}.duel-zone-viewer header p,.duel-zone-viewer footer>span{font-size:8px}.duel-zone-viewer-grid{grid-template-columns:repeat(auto-fill,minmax(62px,88px));gap:7px;padding:9px}.duel-zone-viewer-grid .duel-card-stat{display:none}.duel-hand-overlay.is-open{opacity:1;visibility:visible;transform:translateY(0)}.duel-hand-card-shell{opacity:1;transform:translateX(calc(-50% + var(--hand-mobile-x))) translateY(var(--hand-fan-offset)) rotate(var(--hand-fan-angle))}.duel-hand-overlay:hover .duel-hand-card-shell,.duel-hand-overlay:focus-within .duel-hand-card-shell,.duel-hand-overlay.is-open .duel-hand-card-shell{transform:translateX(calc(-50% + var(--hand-mobile-x))) translateY(var(--hand-fan-offset)) rotate(var(--hand-fan-angle))}.duel-hand-card-shell:hover,.duel-hand-card-shell:focus-within{transform:translateX(calc(-50% + var(--hand-mobile-x))) translateY(-18px) rotate(0deg) scale(1.06)}.preset-grid{grid-template-columns:1fr}.preset-option{min-height:310px}}@media (max-width:620px){.preset-select{width:min(100% - 24px,520px);padding-top:44px}.preset-heading h1{font-size:52px}.preset-option{grid-template-columns:112px minmax(0,1fr);min-height:0;padding:14px}.preset-card-art img{max-height:240px}.preset-option dl{grid-template-columns:repeat(2,minmax(0,1fr))}.preset-option dl>div:last-child{display:none}.duel-log{grid-template-columns:1fr}}@media (max-width:1000px) and (orientation:landscape){.duel-shell.is-match-active .duel-topbar{display:none}.duel-shell.is-match-active .duel-table{width:100%;min-width:0;padding:0 3px}.duel-shell.is-match-active .duel-board{padding:3px 6px}.duel-shell.is-match-active .duel-player-label{min-height:34px;padding-bottom:3px}.duel-shell.is-match-active .duel-mat{--duel-card-width:min(126px, calc((100cqw - 56px) / 7));--duel-card-height:calc(var(--duel-card-width) * 1.26471);--duel-row-height:calc(var(--duel-card-height) + 16px);grid-template-columns:minmax(0, 1fr) repeat(2, calc(var(--duel-card-width) + 6px));grid-template-rows:repeat(3, var(--duel-row-height));gap:3px}.duel-shell.is-match-active .duel-zone-heading{height:10px;padding-bottom:1px;font-size:5px}.duel-shell.is-match-active .duel-slot-row{grid-template-columns:repeat(5, minmax(0, var(--duel-card-width)));gap:3px}.duel-shell.is-match-active .duel-card-slot{width:var(--duel-card-width);height:var(--duel-card-height);align-self:center}.duel-shell.is-match-active .duel-single-slot{width:var(--duel-card-width);height:var(--duel-card-height);min-height:var(--duel-card-height);flex:0 0 var(--duel-card-height)}.duel-shell.is-match-active .duel-card-stat{border-radius:2px;min-width:14px;min-height:13px;padding:1px 2px}.duel-shell.is-match-active .duel-card-stat small{display:none}.duel-shell.is-match-active .duel-card-stat b{margin:0;font-size:6px}.duel-shell.is-match-active .duel-card-stat.is-damage,.duel-shell.is-match-active .duel-card-stat.is-power{top:1px}.duel-shell.is-match-active .duel-card-stat.is-damage,.duel-shell.is-match-active .duel-card-set-mark,.duel-shell.is-match-active .duel-card-damage{left:1px}.duel-shell.is-match-active .duel-card-stat.is-power,.duel-shell.is-match-active .duel-card-stat.is-hp{right:1px}.duel-shell.is-match-active .duel-card-stat.is-hp,.duel-shell.is-match-active .duel-card-set-mark,.duel-shell.is-match-active .duel-card-damage{bottom:1px}.duel-shell.is-match-active .duel-card-set-mark{padding:2px 3px;font-size:4px}.duel-shell.is-match-active .duel-card-damage{width:13px;height:13px;font-size:5px}.duel-shell.is-match-active .duel-console{grid-template-columns:60px minmax(140px,.7fr) minmax(0,1.5fr);gap:8px;min-height:44px;margin-block:2px;padding:3px 6px}.duel-shell.is-match-active .duel-choice-panel{grid-template-columns:130px minmax(0,1fr);min-height:32px;margin:2px 6px;padding:3px 6px}.duel-shell.is-match-active .selected-card-actions{right:max(5px, env(safe-area-inset-right));bottom:max(5px, env(safe-area-inset-bottom));left:max(5px, env(safe-area-inset-left));z-index:95;grid-template-columns:112px minmax(0,1fr);max-height:min(190px,100dvh - 12px);margin:0;padding:8px;position:fixed;overflow-y:auto;box-shadow:0 14px 38px #00000094}.duel-shell.is-match-active .selected-card-heading{gap:4px}.duel-shell.is-match-active .selected-card-heading strong{white-space:normal;font-size:11px}.duel-shell.is-match-active .selected-card-heading>small,.duel-shell.is-match-active .selected-card-buttons>span,.duel-shell.is-match-active .selected-card-text{font-size:7px}.duel-shell.is-match-active .selected-card-detail{gap:4px}.duel-shell.is-match-active .selected-card-statline>span{gap:4px;min-width:48px;padding:3px 5px}.duel-shell.is-match-active .selected-card-statline small,.duel-shell.is-match-active .selected-card-types{font-size:6px}.duel-shell.is-match-active .selected-card-statline b{font-size:10px}.duel-shell.is-match-active .duel-hand-overlay{width:min(620px,100vw - 18px);padding:7px}.duel-shell.is-match-active .duel-hand-card-shell{flex-basis:48px;grid-template-rows:68px;width:48px}.duel-shell.is-match-active .duel-hand-cards .duel-card{flex-basis:48px;width:48px;height:68px}.duel-shell.is-match-active .duel-hand-overlay header{padding-bottom:5px}.duel-shell.is-match-active{--duel-control-height:clamp(40px, 11dvh, 48px);--duel-topbar-height:0px}.duel-shell.is-match-active .duel-play-layout{height:100dvh;padding:1px max(4px, env(safe-area-inset-right)) 1px max(4px, env(safe-area-inset-left));display:block}.duel-shell.is-match-active .duel-table{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:var(--duel-control-height) minmax(0, 1fr);gap:2px;width:100%;height:100%;padding:1px;display:grid}.duel-shell.is-match-active .duel-table>.duel-board{grid-area:2/1}.duel-shell.is-match-active .duel-field-controls{grid-area:1/1/auto/-1;grid-template-columns:minmax(0,1fr);padding:0}.duel-shell.is-match-active .duel-player-stage{grid-area:2/2}.duel-shell.is-match-active .duel-player-stage>.duel-board{height:100%;inset:0}.duel-shell.is-match-active .duel-board{grid-template-rows:24px minmax(0,1fr);padding:2px 3px}.duel-shell.is-match-active .duel-player-label{gap:5px;min-height:0;padding:0 1px 2px}.duel-shell.is-match-active .duel-player-avatar{width:22px;height:22px;font-size:7px}.duel-shell.is-match-active .duel-player-label>div strong{font-size:11px}.duel-shell.is-match-active .duel-player-label>div small,.duel-shell.is-match-active .duel-life{font-size:7px}.duel-shell.is-match-active .duel-life{padding:2px 4px}.duel-shell.is-match-active .duel-life b{font-size:14px}.duel-shell.is-match-active .duel-mat{--duel-card-width:min(calc((100cqw - 58px) / 7), calc((100cqh - 70px) * .263566));--duel-card-height:calc(var(--duel-card-width) * 1.26471);--duel-slot-gap:2px;--duel-row-height:calc(var(--duel-card-height) + 12px);grid-template-columns:minmax(0, 1fr) repeat(2, calc(var(--duel-card-width) + 6px));grid-template-rows:repeat(3, var(--duel-row-height));gap:2px}.duel-shell.is-match-active .duel-zone{padding:2px}.duel-shell.is-match-active .duel-zone-heading{letter-spacing:.04em;height:8px;padding-bottom:0;font-size:7px}.duel-shell.is-match-active .duel-zone-heading small,.duel-shell.is-match-active .duel-card-slot small{display:none}.duel-shell.is-match-active .duel-slot-row{grid-template-columns:repeat(5, var(--duel-card-width));justify-content:start;gap:var(--duel-slot-gap)}.duel-shell.is-match-active .duel-card-slot,.duel-shell.is-match-active .duel-single-slot{width:var(--duel-card-width);height:var(--duel-card-height);min-height:var(--duel-card-height)}.duel-shell.is-match-active .duel-single-slot img{width:100%}.duel-shell.is-match-active .duel-console{grid-template-columns:56px minmax(112px,.7fr) minmax(0,1.3fr);gap:6px;height:100%;min-height:0;margin:0;padding:2px 5px}.duel-shell.is-match-active .duel-console>div:first-child span,.duel-shell.is-match-active .duel-status small{font-size:7px}.duel-shell.is-match-active .duel-console>div:first-child strong,.duel-shell.is-match-active .duel-status strong{font-size:11px}.duel-shell.is-match-active .duel-console button,.duel-shell.is-match-active .selected-card-actions button,.duel-shell.is-match-active .duel-choice-panel button{min-height:30px;padding-inline:8px;font-size:8px}.duel-shell.is-match-active .selected-card-actions,.duel-shell.is-match-active .duel-choice-panel{right:max(5px, env(safe-area-inset-right));bottom:max(5px, env(safe-area-inset-bottom));left:max(5px, env(safe-area-inset-left));z-index:120;grid-template-columns:112px minmax(0,1fr);width:auto;height:auto;max-height:min(180px,100dvh - 10px);margin:0;padding:7px;position:fixed;overflow-y:auto;box-shadow:0 14px 38px #00000094}.duel-shell.is-match-active .duel-hand-overlay{--hand-card-width:clamp(54px, 16dvh, 68px);width:auto;height:clamp(80px,28dvh,112px);padding:0;bottom:-12px;left:0;right:0;transform:translateY(16px)}.duel-shell.is-match-active .duel-hand-overlay:hover,.duel-shell.is-match-active .duel-hand-overlay:focus-within,.duel-shell.is-match-active .duel-hand-overlay.is-open{transform:translateY(0)}.duel-shell.is-match-active .duel-hand-overlay header{padding:3px 4px;top:3px;left:2px}.duel-shell.is-match-active .duel-hand-overlay header strong{font-size:9px}.duel-shell.is-match-active .duel-hand-overlay header button{min-height:22px;padding-inline:6px;font-size:6px}.duel-shell.is-match-active .duel-hand-cards{min-height:0}.duel-shell.is-match-active .duel-hand-card-shell,.duel-shell.is-match-active .duel-hand-cards .duel-card{width:var(--hand-card-width);height:var(--hand-card-height)}}@media (hover:none),(pointer:coarse){.duel-hover-preview{display:none!important}}@media (max-width:390px){.duel-topbar{padding-inline:14px}.duel-brand>span{width:30px;height:30px}.duel-exit{padding-inline:10px;font-size:6px}.duel-intro{padding-inline:16px}.duel-intro h1{font-size:46px}}@media (prefers-reduced-motion:reduce){.duel-shell *,.duel-shell :before,.duel-shell :after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.duel-action-bubble{opacity:1;transform:none}.duel-card.is-attacking{outline-color:#f2cf55}.duel-card.is-being-attacked{outline-color:#ef584e}.duel-console button.is-attention{background:#ff841c38;border-color:#ff9a36}}
