:root{--bg:#0f1218;--surface:#1a1f2a;--surface-2:#242b38;--border:#323b4b;--text:#e8ebf1;--muted:#9aa3b5;--accent:#d4a73a;--accent-text:#1a1406;--danger:#f07070;--warn:#e6b450;--don:#b8892a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Hiragino Sans,Noto Sans JP,sans-serif;line-height:1.5}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;color:var(--text);margin:0}h1,h2{margin:0;line-height:1.3}:root{--zoom:1}.app{max-width:min(100%, calc(1180px * var(--zoom)));margin:0 auto;padding:0 16px 48px}.app-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:12px 0;display:flex}.app-header h1{letter-spacing:.02em;font-size:1.1rem}.muted{color:var(--muted)}.warning{color:var(--warn)}.small{font-size:.8rem}.count{background:var(--surface-2);min-width:2em;color:var(--muted);text-align:center;border-radius:999px;padding:0 6px;font-size:.8rem;display:inline-block}.button{border:1px solid var(--border);background:var(--surface-2);min-height:40px;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:0 16px;display:inline-flex}.button:hover:not(:disabled){border-color:var(--muted)}.button:disabled{opacity:.5;cursor:default}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.close{background:var(--surface-2);width:36px;height:36px;color:var(--text);cursor:pointer;border:none;border-radius:50%;font-size:1.3rem;position:absolute;top:8px;right:8px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}input,select,textarea{border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;border-radius:6px;padding:6px 8px}.setup,.pool-manager{flex-direction:column;gap:14px;display:flex}.app:not(.playing){max-width:1440px}.panel{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.panel h2{font-size:1rem}.panel p{margin:0}.deck-input{width:100%;font-family:ui-monospace,monospace;font-size:.85rem}.resume{border:1px solid var(--accent);background:#d4a73a1f;border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;display:flex}.problems{margin:0;padding-left:1.2em}.card-list{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:6px;margin:0;padding:0;list-style:none;display:grid}.card-row{border:1px solid var(--border);background:var(--surface-2);width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:8px;align-items:center;gap:10px;padding:6px 8px;display:flex}.card-row:hover{border-color:var(--muted)}.card-row-face{aspect-ratio:63/88;flex:none;width:40px;display:block}.card-row-count{font-variant-numeric:tabular-nums;font-weight:700}.card-row-main{flex:1;min-width:0;display:grid}.card-row-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.card-row-edit{color:var(--accent);font-size:.8rem}.start-panel .start{margin-left:auto}.radio{align-items:center;gap:4px;min-height:40px;padding:0 8px;display:inline-flex}.card-editor{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:10px;width:min(620px,100%);max-height:100%;padding:16px;display:flex;position:relative;overflow-y:auto}.card-editor-header{padding-right:44px}.card-editor-header h2{font-size:1rem}.card-editor-body{align-items:flex-start;gap:14px;display:flex}.card-editor-preview{aspect-ratio:63/88;flex:0 0 110px;display:block}.card-editor-fields{flex:1;gap:6px;display:grid}.field-row{grid-template-columns:5.5em 1fr;align-items:center;gap:8px;font-size:.9rem;display:grid}.field-row input,.field-row select{width:100%;min-width:0}.field-col{gap:4px;font-size:.9rem;display:grid}.color-picks{flex-wrap:wrap;gap:4px 10px;display:flex}.color-pick{align-items:center;gap:3px;display:inline-flex}.card-editor-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (max-width:560px){.card-editor-preview{flex-basis:76px}.card-editor-body{gap:10px}}.card-face,.card-back,.card-image{border-radius:5%/3.6%;width:100%;height:100%;display:block}.card-image{object-fit:cover;pointer-events:none}.card-face{background:linear-gradient(180deg, #0000 0 30%, #0a0e16e0 30% 100%), var(--card-color);color:#fff;text-align:left;border:1px solid #ffffff40;flex-direction:column;display:flex;position:relative;overflow:hidden;container-type:inline-size}.card-face.kind-leader{border:2px solid #f3d27a}.card-face.kind-extra{background:linear-gradient(180deg, #0000 0 30%, #181422e6 30% 100%), var(--card-color)}.card-face.kind-field{background:linear-gradient(180deg, #0000 0 30%, #101c1ae6 30% 100%), var(--card-color)}.card-face-top{justify-content:space-between;align-items:flex-start;min-height:30%;padding:4cqw;display:flex}.card-face-cost{background:#0000008c;border:1.5px solid #fff;border-radius:50%;place-items:center;width:28cqw;height:28cqw;font-size:17cqw;font-weight:800;line-height:1;display:grid}.card-face-cost.life{background:#8a1f1f;border-radius:20%}.card-face-power{font-variant-numeric:tabular-nums;background:#0000008c;border-radius:4cqw;padding:0 3cqw;font-size:15cqw;font-weight:800;line-height:1.2}.card-face-name{word-break:break-all;flex:1;padding:2cqw 5cqw;font-size:14cqw;font-weight:700;line-height:1.25;overflow:hidden}.card-face-bottom{justify-content:space-between;align-items:flex-end;padding:3cqw 4cqw;display:flex}.card-face-counter{color:#2a1d00;background:#e8d7a0;border-radius:3cqw;padding:0 3cqw;font-size:12cqw;font-weight:800}.card-face-trigger{color:#222;background:#f1c40f;border-radius:3cqw;place-items:center;width:18cqw;height:18cqw;font-size:12cqw;font-weight:900;display:grid}.card-back{background:radial-gradient(circle,#0000 0 18%,#c9a24a 19% 22%,#0000 23% 100%),repeating-linear-gradient(45deg,#1d2a44 0 6px,#23345a 6px 12px);border:2px solid #3d4f7a;position:relative}.duel[style*=--sleeve-me] .card-back{background:var(--sleeve-me) center / cover no-repeat;border:none}.duel .opp .card-back{background:radial-gradient(circle,#0000 0 18%,#c9a24a 19% 22%,#0000 23% 100%),repeating-linear-gradient(45deg,#1d2a44 0 6px,#23345a 6px 12px);border:2px solid #3d4f7a}.duel[style*=--sleeve-opp] .opp .card-back{background:var(--sleeve-opp) center / cover no-repeat;border:none}.overlay{z-index:10;background:#000000b3;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.overlay.drag-hidden{opacity:0;pointer-events:none}.sheet-backdrop{z-index:20;background:#0000008c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sheet{border:1px solid var(--border);background:var(--surface);border-radius:14px;width:min(560px,100%);max-height:80vh;padding:16px;overflow-y:auto}.sheet>.movable-grip{cursor:move;touch-action:none;background:linear-gradient(var(--border), var(--border)) center / 40px 5px no-repeat;width:56px;height:18px;margin:-10px auto 2px}.sheet-header{align-items:center;gap:12px;min-height:36px;margin-bottom:12px;padding-right:40px;display:flex;position:relative}.sheet-header .close{top:0;right:0}.sheet-actions{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;display:grid}.sheet-actions .button{justify-content:flex-start;font-size:.9rem}.menu-desc{background:var(--surface-2);white-space:pre-wrap;border-radius:8px;margin:12px 0 0;padding:8px 10px;font-size:.85rem}.look-count{align-items:center;gap:8px;margin-top:10px;font-size:.9rem;display:flex}.look-count input{width:5em}.mulligan-hand{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px;display:flex}.mulligan-card{aspect-ratio:63/88;width:64px;display:block}.pile-viewer{border:1px solid var(--border);background:var(--surface);border-radius:12px;width:min(760px,100%);max-height:100%;padding:16px;position:relative;overflow-y:auto}.pile-viewer-header{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;padding-right:44px;display:flex}.pile-viewer-header h2{margin-right:auto;font-size:1rem}.pile-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px;margin-top:10px;display:grid}.pile-grid .field-card{width:100%;height:auto}.pile-card{position:relative}.pile-card-label{white-space:nowrap;pointer-events:none;background:#000000bf;border-radius:4px;padding:0 5px;font-size:.65rem;position:absolute;bottom:2px;left:50%;transform:translate(-50%)}@media (max-width:560px){.pile-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:4px}.pile-viewer{padding:12px}}.card-panel{display:none}.card-panel.open{z-index:25;background:#00000080;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.card-panel-inner{background:linear-gradient(#16203a,#0b1120);border:1px solid #4a5a78;border-radius:10px;flex-direction:column;width:min(340px,100%);max-height:85vh;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 24px #0009}.card-panel-name{text-shadow:0 1px 2px #000000b3;border-bottom:1px solid #ffffff4d;align-items:center;gap:8px;padding:8px 10px;display:flex}.card-panel-name strong{flex:1;font-size:.95rem;line-height:1.25}.card-panel-name .close{flex-shrink:0;position:static}.card-panel-top{gap:10px;padding:10px;display:flex}.card-panel-face{aspect-ratio:63/88;flex-shrink:0;align-self:flex-start;width:42%;height:auto;display:block}.card-panel-stats{align-content:start;gap:4px;margin:0;display:grid}.card-panel-stats dt{color:var(--muted);font-size:.7rem}.card-panel-stats dd{font-variant-numeric:tabular-nums;margin:0;font-size:1rem;font-weight:700}.card-panel-type{background:#c9a24a2e;border-top:1px solid #c9a24a66;border-bottom:1px solid #c9a24a66;padding:4px 10px;font-size:.8rem}.card-panel-desc{color:#fff;white-space:pre-wrap;margin:0;padding:10px;font-size:.85rem;line-height:1.6;overflow-y:auto}.card-panel-desc.trigger{border-top:1px dashed #ffffff26}.card-panel-desc.muted{color:var(--muted)}.trigger-label{color:#222;background:#f1c40f;border-radius:4px;padding:0 5px;font-size:.75rem;font-weight:800}.card-panel-empty{margin:0;padding:16px}.card-panel-edit{min-height:34px;margin:0 10px 10px;font-size:.85rem}.duel{align-items:flex-start;gap:12px;display:flex}.duel-main{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.board{--side:92px;--gap:6px;--cell:min(calc(108px * var(--zoom)), calc((100vw - 32px - var(--side) - 10px - 4 * var(--gap)) / 5))}.board-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.toolbar-buttons{flex-wrap:wrap;gap:6px;display:flex}.auto-pay{color:var(--muted);align-items:center;gap:6px;font-size:.85rem;display:inline-flex}.toast{z-index:40;border:1px solid var(--warn);max-width:min(520px,100vw - 32px);color:var(--text);white-space:pre-line;background:#2b2414;border-radius:10px;padding:10px 14px;font-size:.9rem;position:fixed;bottom:16px;left:50%;translate:-50%;box-shadow:0 6px 18px #00000080}.placing-banner{border:1px solid var(--accent);background:#d4a73a1f;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;font-size:.9rem;display:flex}.placing-banner>.movable-grip{display:none}.play-area{grid-template-columns:var(--side) auto;justify-content:center;gap:8px 10px;display:grid}.play-area .hand{grid-column:1/-1}.side-column{flex-direction:column;align-self:center;gap:6px;display:flex}.turn{font-size:.85rem;font-weight:700;line-height:1.3;display:grid}.turn-owner{color:var(--muted);font-size:.75rem;font-weight:400}.phases{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.phase{border:1px solid var(--border);background:var(--surface);width:100%;min-height:30px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:0 6px;font-size:.75rem}.phase.past{color:var(--muted);opacity:.6}.phase.current{border-color:var(--accent);background:var(--accent);color:var(--accent-text);opacity:1;font-weight:700}.next-phase{min-height:38px;padding:2px 6px;font-size:.8rem;line-height:1.2}.field{grid-template-columns:repeat(5, var(--cell));gap:var(--gap);grid-auto-rows:auto;justify-content:center;display:grid}.slot{isolation:isolate;-webkit-tap-highlight-color:transparent;border:1px dashed var(--border);background:var(--surface);border-radius:6px;justify-content:center;align-items:center;display:flex;position:relative}.slot-character{background:#2a2420}.slot-leader{background:#2e1f22;border-color:#6b4a3a}.slot-stage{background:#1b2a26}.slot.target{border:2px solid var(--accent);cursor:pointer;background:#d4a73a2e}.slot.don-target{border:2px solid var(--don)}.slot-label{color:var(--muted);text-align:center;opacity:.75;font-size:.65rem}.pile{cursor:pointer;border-style:solid}.pile-top{aspect-ratio:63/88;height:94%;display:block}.pile-count{text-align:center;pointer-events:none;background:#000000bf;border-radius:999px;min-width:1.6em;padding:0 4px;font-size:.7rem;position:absolute;bottom:2px;right:2px}.drop-hand.hand,.pile.drop-trash,.pile.drop-deck,.pile.drop-life,.slot.drop-character,.slot.drop-stage{border-color:var(--accent)}.life-stack{width:100%;height:100%;position:relative}.life-card{left:50%;top:calc(-8% + var(--i) * 9%);aspect-ratio:63/88;height:70%;z-index:calc(20 - var(--i));position:absolute;transform:translate(-50%)rotate(-90deg)}.field-card{aspect-ratio:63/88;background:var(--surface-2);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;border:none;border-radius:5%/3.6%;height:100%;padding:0;transition:transform .15s;display:block;position:relative}.slot .field-card{height:94%}.field-card.rested{transform:rotate(90deg)scale(.9)}.field-card.selected{outline:2px solid var(--accent)}.field-card.draggable{touch-action:none}.duel.dragging{-webkit-user-select:none;user-select:none}.don-badge{z-index:2;background:var(--don);color:#1a1406;white-space:nowrap;pointer-events:none;border-radius:999px;padding:0 5px;font-size:.62rem;font-weight:800;position:absolute;top:-7px;left:50%;translate:-50%}.power-badge{z-index:2;color:#fff;font-variant-numeric:tabular-nums;pointer-events:none;background:#080a10eb;border:1px solid #ffffff73;border-radius:999px;padding:1px 8px;font-size:.85rem;font-weight:800;line-height:1.25;position:absolute;bottom:2px;left:50%;translate:-50%;box-shadow:0 1px 4px #0009}.power-badge.up{color:#6fcf8e}.power-badge.down{color:var(--danger)}.cost-area{min-height:calc(var(--cell) * .62);background:#1f1a10;border:1px solid #4a3d1e;border-radius:8px;grid-column:1/-1;align-items:center;gap:8px;padding:4px 6px;display:flex}.don-deck{height:calc(var(--cell) * .52);aspect-ratio:63/88;color:#1d1a14;font:inherit;cursor:pointer;background:repeating-linear-gradient(45deg,#f4f2ec 0 5px,#e6e2d8 5px 10px);border:1px solid #c9c4b8;border-radius:4px;flex:none;justify-items:center;padding:0;display:grid}.don-deck-label{align-self:end;font-size:.5rem;line-height:1.1}.don-deck-count{font-size:.85rem;font-weight:800}.don-chips{min-height:calc(var(--cell) * .45);flex-wrap:wrap;flex:1;align-items:center;gap:4px;display:flex}.don-chip{height:calc(var(--cell) * .45);aspect-ratio:63/88;color:#1a1406;font:inherit;font-size:max(.5rem, calc(var(--cell) * .1));cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:-.1em;background:linear-gradient(160deg,#d9ae4a,#8f6a1c);border:1px solid #f3d27a;border-radius:4px;place-items:center;padding:0;font-weight:900;display:grid}.don-chip.rested{margin:0 calc(var(--cell) * .07);opacity:.55;touch-action:auto;rotate:90deg}.cost-menu{font-variant-numeric:tabular-nums;flex:none;min-height:32px;padding:0 8px;font-size:.8rem}.hand{border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:6px}.hand-title{margin-bottom:4px;font-size:.8rem;font-weight:600}.hand-cards{min-height:calc(var(--cell) * 1.15);flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.hand-cards .field-card{height:calc(var(--cell) * 1.15)}.game-log{color:var(--muted);font-size:.8rem}.game-log summary{cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.game-log ol{max-height:200px;margin:6px 0 0;padding-left:1.4em;overflow-y:auto}.drag-ghost{z-index:30;height:calc(var(--cell,80px) * 1.1);pointer-events:none;filter:drop-shadow(0 6px 12px #0009);position:fixed;transform:translate(-50%,-60%)rotate(-4deg)}.drag-ghost .field-card{height:100%}.drag-ghost .don-chip{height:60%}@media (min-width:1100px){.card-panel,.card-panel.open{top:12px;z-index:auto;background:0 0;flex:0 0 260px;padding:0;display:block;position:sticky;top:auto;bottom:auto;left:auto;right:auto}.card-panel-inner{width:100%;max-height:calc(100dvh - 24px)}.card-panel-name .close{display:none}.board{--cell:min(calc(124px * var(--zoom)), calc((min(100vw, 1180px * var(--zoom)) - 32px - 272px - var(--side) - 10px - 4 * var(--gap)) / 5), calc((100dvh - 230px) / 3.9 * var(--zoom)))}}@media (max-width:560px){.app{padding:0 8px 24px}.app-header{margin-bottom:8px;padding:6px 0}.app-header h1{font-size:.95rem}.board{--gap:4px;--cell:min(96px, calc((100vw - 16px - 4 * var(--gap)) / 5))}.board-toolbar .button{min-height:34px;padding:0 10px;font-size:.85rem}.auto-pay{font-size:.75rem}.play-area{grid-template-columns:auto}.side-column{flex-flow:wrap;align-items:center}.phases{flex-direction:row;flex:1}.phase{flex:1;width:auto;padding:0 2px;font-size:.68rem}.turn{font-size:.75rem}.next-phase{flex:none;min-height:32px}.hand{padding:4px}.hand-title{display:none}.sheet-actions{grid-template-columns:1fr 1fr}.sheet-actions .button{min-height:38px;padding:0 8px;font-size:.82rem}.card-list{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.field-card{transition:none}}.choice-backdrop{z-index:25;background:#00000059;align-items:flex-end}.choice-prompt{margin:0 0 12px;line-height:1.5}.choice-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px;margin-bottom:12px;display:grid}.choice-grid .field-card{width:100%;height:auto}.effect-list{margin:8px 0 0;padding-left:18px;font-size:.85rem;line-height:1.5}.effect-list .manual{color:var(--warning,#e8a33d)}.choice-grid .not-allowed .field-card{opacity:.35;filter:grayscale(.8);cursor:not-allowed}.card-picture{width:100%;height:100%;display:block;position:relative;container-type:inline-size}.picture-chip{color:#fff;font-variant-numeric:tabular-nums;pointer-events:none;background:#080a10e0;border:1px solid #ffffff73;border-radius:999px;padding:0 .35em;font-size:max(.55rem,min(13cqw,.85rem));font-weight:800;line-height:1.3;position:absolute;top:3%}.picture-chip.cost{left:4%}.picture-chip.life{color:var(--accent)}.picture-chip.power{right:4%}.slot .picture-chip.power{display:none}.card-counter{z-index:1;color:#2a1d00;font-variant-numeric:tabular-nums;writing-mode:vertical-rl;pointer-events:none;background:#e8d7a0;border-radius:3cqw 0 0 3cqw;padding:2cqw 1cqw;font-size:11cqw;font-weight:800;line-height:1;position:absolute;top:52%;left:0;transform:rotate(180deg)}.undo{min-height:34px;padding:2px 6px;font-size:.8rem}.don-image-panel .row{align-items:center}.don-image-preview{aspect-ratio:63/88;border:1px solid var(--border);background:50%/cover no-repeat;border-radius:4px;place-items:center;width:48px;display:grid}.don-image-preview.empty{color:#1a1406;background:linear-gradient(160deg,#d9ae4a,#8f6a1c);font-size:.7rem;font-weight:900}.slot{min-height:var(--cell)}.opp-bar,.field-divider{flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:4px 12px;font-size:.8rem;display:flex}.opp-bar .switch-side{min-height:30px;margin-left:auto;padding:2px 10px;font-size:.75rem}.field-divider{border-top:1px solid var(--border);color:var(--muted,#9aa3b5);justify-content:center;padding:2px 0}.slot.opp{height:var(--cell);background:color-mix(in srgb, var(--surface) 82%, #4a1f2a)}.slot.opp .card-back{aspect-ratio:63/88;border-radius:5%/3.6%;height:94%;display:block}.cpu-thinking{left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:15;border:1px solid var(--border);background:var(--surface);pointer-events:none;border-radius:999px;padding:6px 14px;font-size:.85rem;position:fixed;translate:-50%}.winner-banner{z-index:30;border:1px solid var(--accent);background:var(--surface);border-radius:14px;justify-items:center;gap:12px;padding:20px 28px;font-size:1.2rem;display:grid;position:fixed;top:40%;left:50%;translate:-50% -50%}.battle-sheet .ok{color:#6fcf8e}.card-list li:has(.count-controls){align-items:center;gap:6px;display:flex}.card-list li:has(.count-controls) .card-row{flex:1;min-width:0}.count-controls{flex-shrink:0;gap:4px;display:flex}.count-controls .button{min-width:36px;padding:6px 8px}.library{margin:12px 0}.library summary{cursor:pointer;padding:6px 0;font-weight:600}.library-search{border:1px solid var(--border);background:var(--surface-2);width:100%;color:var(--text);font:inherit;border-radius:8px;margin:6px 0 8px;padding:8px}.deck-select,.opponent-deck select,.deck-name input{border:1px solid var(--border);background:var(--surface-2);min-width:0;max-width:100%;color:var(--text);font:inherit;border-radius:8px;padding:8px}.deck-select{flex:200px}.deck-name,.opponent-deck{flex:220px;align-items:center;gap:8px;display:flex}.deck-name input,.opponent-deck select{flex:1}.button.danger{color:#fff;background:#c0392b;border-color:#c0392b}.view-tabs,.pane-tabs,.segmented{border:1px solid var(--border);background:var(--surface);border-radius:10px;gap:3px;padding:3px;display:inline-flex}.view-tabs button,.pane-tabs button,.segmented button{min-height:34px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:7px;padding:0 14px;font-weight:600}.view-tabs button.active,.pane-tabs button.active,.segmented button.active{background:var(--accent);color:var(--accent-text)}.view-tabs button.active .count{color:inherit;background:#0000002e}.small-button{min-height:32px;padding:0 12px;font-size:.85rem}.start-row .start-buttons{flex-wrap:wrap;gap:8px;margin-left:auto;display:flex}.deck-import summary{cursor:pointer;font-weight:600}.deck-editor{flex-direction:column;gap:12px;display:flex}.card-detail{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:14px;padding:12px 14px;display:flex}.card-detail.empty{padding:10px 14px}@media (min-width:900px){.card-detail.open{height:156px;overflow-y:auto}.card-detail.open .card-detail-face{flex-basis:74px}.card-detail.open .card-detail-main{flex-flow:wrap;align-content:flex-start;column-gap:12px}.card-detail.open .card-detail-name,.card-detail.open .card-detail-text{flex:100%}}.card-detail-face{aspect-ratio:63/88;flex:0 0 96px;height:-moz-fit-content;height:fit-content}.card-detail-main{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.card-detail-name{color:#fff;text-shadow:0 1px 2px #0009;border-radius:6px;padding:3px 10px}.card-detail-text{white-space:pre-wrap;margin:0;font-size:.9rem}.card-detail-close,.pane-tabs{display:none}.deck-editor-panes{grid-template-columns:minmax(0,1fr) minmax(340px,.75fr);align-items:start;gap:14px;display:grid}.pool-pane,.deck-pane{flex-direction:column;gap:10px;min-width:0;display:flex}.pool-pane h2{font-size:1rem}.deck-pane{border:1px solid var(--border);background:var(--surface);border-radius:12px;max-height:calc(100dvh - 16px);padding:14px;position:sticky;top:8px;overflow-y:auto}.pool-filters{flex-wrap:wrap;gap:8px;display:flex}.pool-filters input,.pool-filters select,.pool-new-no,.deck-field input,.deck-field select{border:1px solid var(--border);background:var(--surface-2);min-width:0;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px}.pool-search{flex:220px}.pool-filters select{flex:0 auto}.pool-new-no{flex:220px;max-width:320px}.pool-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px 10px;display:grid}.pool-grid.manager{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.pool-tile,.deck-card{flex-direction:column;align-items:center;gap:5px;min-width:0;display:flex}.tile-face{aspect-ratio:63/88;width:100%;color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:0;display:block;position:relative}.tile-face.picked{outline:2px solid var(--accent);outline-offset:2px}.pool-tile.full .tile-face>.card-face,.pool-tile.full .tile-face>.card-picture{opacity:.45;filter:grayscale(.4)}.count-badge{z-index:2;border:2px solid var(--bg);background:var(--accent);min-width:24px;height:24px;color:var(--accent-text);border-radius:999px;place-items:center;padding:0 4px;font-size:.8rem;font-weight:800;line-height:1;display:grid;position:absolute;top:-6px;right:-6px}.tile-controls{gap:6px;display:flex}.tile-controls .button{min-width:34px;min-height:30px;padding:0 8px;font-size:1rem;font-weight:700}.card-face-no{opacity:.8;white-space:nowrap;font-size:9cqw}.deck-field{flex-direction:column;gap:3px;display:flex}.deck-leader-row{align-items:flex-start;gap:18px;display:flex}.deck-leader,.deck-don{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.leader-face{width:100px}.deck-leader-name{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.leader-empty{aspect-ratio:63/88;border:1px dashed var(--border);text-align:center;border-radius:6px;place-items:center;width:100px;display:grid}.color-chip{border:1px solid;border-radius:999px;padding:0 6px;font-size:.75rem}.color-chip.color-赤{color:#f07a6a}.color-chip.color-緑{color:#5fd08a}.color-chip.color-青{color:#6aaef0}.color-chip.color-紫{color:#b48ae0}.color-chip.color-黒{color:#c3c8d2}.color-chip.color-黄{color:#f0cf5a}.don-picture{aspect-ratio:63/88;border:1px solid var(--border);cursor:pointer;border-radius:6px;width:100px;display:block;overflow:hidden}.don-picture img{object-fit:cover;width:100%;height:100%;display:block}.don-picture-empty{color:#1a1406;background:linear-gradient(160deg,#d9ae4a,#8f6a1c);place-items:center;height:100%;font-weight:900;display:grid}.deck-total strong{font-variant-numeric:tabular-nums;font-size:1.8rem;font-weight:900}.deck-total strong.ok{color:#6fcf8e}.deck-total strong.over{color:var(--danger)}.deck-tools{justify-content:space-between;align-items:center;gap:8px;display:flex}.segmented button{min-height:30px;padding:0 12px;font-size:.85rem}.deck-cards{min-height:80px}.deck-cards.image{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:12px 10px;display:grid}.deck-cards.list{flex-direction:column;gap:4px;display:flex}.deck-card{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;position:relative}.deck-cards.list .deck-card{flex-direction:row}.deck-card.dragging{opacity:.35}.deck-cards.image .deck-card.drop-before:before,.deck-cards.list .deck-card.drop-before:before{content:"";z-index:3;background:var(--accent);border-radius:2px;position:absolute}.deck-cards.image .deck-card.drop-before:before{width:4px;top:0;bottom:36px;left:-7px}.deck-cards.list .deck-card.drop-before:before{height:3px;top:-4px;left:0;right:0}.deck-end-drop{border:2px dashed #0000;border-radius:8px;min-height:40px}.deck-cards.image .deck-end-drop{aspect-ratio:75/88}.deck-end-drop.active{border-color:var(--accent)}.stack-layer:not(.front) .card-counter{display:none}.deck-stack{aspect-ratio:75/88}.stack-layer{width:84%;top:0;bottom:0;left:calc((16% - (var(--n) - 1) * 5.33%) / 2 + var(--i) * 5.33%);filter:drop-shadow(1px 0 2px #00000080);position:absolute}.deck-row{border:1px solid var(--border);background:var(--surface-2);min-width:0;min-height:36px;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:8px;flex:1;align-items:center;gap:8px;padding:4px 10px;display:flex}.deck-row.picked{border-color:var(--accent)}.deck-row-cost{text-align:center;flex:0 0 1.6em;font-weight:800}.deck-row-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.deck-row-count{font-variant-numeric:tabular-nums;font-weight:800}.reorder-ghost{z-index:40;aspect-ratio:63/88;pointer-events:none;filter:drop-shadow(0 6px 12px #0009);width:72px;position:fixed;transform:translate(-50%,-60%)rotate(-4deg)}.pool-entry{min-width:0;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;flex-direction:column;gap:4px;padding:0;display:flex}.pool-entry .tile-face{pointer-events:none}.pool-entry-name{text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:600;overflow:hidden}.card-editor-delete{margin-right:auto}@media (max-width:899px){.pane-tabs{z-index:5;display:flex;position:sticky;top:0}.pane-tabs button{flex:1}.pane-count{font-variant-numeric:tabular-nums;background:#0003;border-radius:999px;min-width:2em;padding:0 6px;display:inline-block}.pane-count.ok{color:#1d6b39;background:#bfeccc}.deck-editor-panes{display:block}.pool-pane,.deck-pane{display:none}.pool-pane.active,.deck-pane.active{display:flex}.pool-pane h2{display:none}.deck-pane{max-height:none;position:static;overflow:visible}.card-detail.empty{display:none}.card-detail.open{z-index:20;max-height:55dvh;position:fixed;bottom:8px;left:8px;right:8px;overflow-y:auto;box-shadow:0 -6px 24px #0009}.card-detail-face{flex-basis:76px}.card-detail-close{display:inline-flex}}@media (max-width:560px){.pool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 6px}.pool-grid.manager{grid-template-columns:repeat(3,minmax(0,1fr))}.deck-cards.image{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 6px}.tile-controls{gap:4px}.count-badge{min-width:20px;height:20px;font-size:.72rem;top:-7px;right:-7px}.pool-manager .row .button{flex:auto;min-height:36px;padding:0 10px;font-size:.9rem}.tile-controls .button{width:30px;min-width:0;min-height:28px;padding:0}.pool-filters select{flex:30%;font-size:.85rem}.app-header{flex-wrap:wrap}.view-tabs button{min-height:30px;padding:0 10px}.deck-pane{padding:10px}.start-row .start-buttons{width:100%;margin-left:0}.start-row .start-buttons .button{flex:1;padding:0 8px}}.color-tabs{--tab:var(--muted);border-bottom:3px solid var(--tab);gap:5px;display:flex}.color-tab{border:2px solid var(--c);background:var(--surface);min-width:0;min-height:36px;color:var(--c);font:inherit;white-space:nowrap;cursor:pointer;border-bottom:none;border-radius:8px 8px 0 0;flex:1 1 0;padding:0 4px;font-weight:700}.color-tab.active{background:var(--c);color:#fff;min-height:42px;margin-top:-6px}.color-tab.tab-all,.color-tab.tab-leader{--c:#9aa3b5;flex-grow:1.5;overflow:hidden}.color-tab.tab-赤{--c:#d9503f}.color-tab.tab-緑{--c:#2f9e5a}.color-tab.tab-青{--c:#3f8fe0}.color-tab.tab-紫{--c:#9a68d0}.color-tab.tab-黒{--c:#7d8594}.color-tab.tab-黄{--c:#c9a227}.color-tab.tab-黄.active,.color-tab.tab-all.active,.color-tab.tab-leader.active{color:#14161b}.color-tabs:has(.tab-赤.active){--tab:#d9503f}.color-tabs:has(.tab-緑.active){--tab:#2f9e5a}.color-tabs:has(.tab-青.active){--tab:#3f8fe0}.color-tabs:has(.tab-紫.active){--tab:#9a68d0}.color-tabs:has(.tab-黒.active){--tab:#7d8594}.color-tabs:has(.tab-黄.active){--tab:#c9a227}.color-tabs{margin-top:6px}@media (max-width:560px){.color-tabs{gap:3px}.color-tab{font-size:.85rem}.color-tab.tab-all,.color-tab.tab-leader{flex-grow:1.6;font-size:.72rem}}.deck-total{align-items:baseline;gap:4px;line-height:1.1;display:flex}.deck-total strong{font-size:1.5rem}.deck-autosave{margin-left:auto}.deck-leader-row{align-items:stretch;gap:12px}.leader-face,.leader-empty{flex:0 0 84px;width:84px;height:-moz-fit-content;height:fit-content}.deck-leader-side{flex-direction:column;flex:1;justify-content:space-between;gap:8px;min-width:0;display:flex}.deck-tools{flex-wrap:wrap;justify-content:flex-start}.don-button{cursor:pointer;gap:6px}.don-button img{aspect-ratio:63/88;object-fit:cover;border-radius:2px;height:24px}.don-standard{color:#1a1406;background:linear-gradient(160deg,#d9ae4a,#8f6a1c);place-items:center;font-size:.7rem;font-weight:900;display:grid}.look-button{gap:6px}.look-thumb{aspect-ratio:63/88;background-position:50%;background-size:cover;border-width:1px;border-radius:2px;width:auto;height:24px;display:block}.gallery{flex-direction:column;gap:10px;display:flex}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px;display:grid}.gallery-tile{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:2px solid #0000;border-radius:8px;flex-direction:column;align-items:center;gap:3px;padding:4px;display:flex}.gallery-tile.selected{border-color:var(--accent);color:var(--accent)}.gallery-tile.deleting{color:var(--danger);border-color:#c0392b}.gallery-picture{aspect-ratio:63/88;background-color:var(--surface-2);background-position:50%;background-size:cover;border-radius:5%/3.6%;place-items:center;width:100%;height:auto;display:grid}.gallery-add .gallery-picture{border:1px dashed var(--border);font-size:1.6rem}.gallery-dialog{width:min(560px,100%)}.order-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}.order-card{flex-direction:column;align-items:center;gap:4px;display:flex}.order-card .field-card{touch-action:none;cursor:grab}.order-card.dragging .field-card{outline:2px solid var(--accent);opacity:.7}.order-number{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:800}.order-arrows{gap:4px;display:flex}.order-arrows .button{min-width:34px;min-height:30px;padding:0 6px}.order-note{margin:0 0 12px;font-size:.9rem;font-weight:600}.game-log ol{max-height:320px}.log-cards{flex-wrap:wrap;align-items:center;gap:4px;margin:3px 0 6px;display:flex}.log-card{aspect-ratio:63/88;cursor:pointer;background:0 0;border:none;width:46px;padding:0;position:relative}.log-card-number{min-width:1.4em;color:var(--accent);text-align:center;background:#000c;border-radius:999px;font-size:.65rem;font-weight:800;position:absolute;bottom:1px;right:1px}.log-cards-end{font-size:.7rem}.slot.drop-character,.slot.drop-stage{border-style:solid}.log-cards-where{color:var(--text);flex-basis:100%;font-size:.8rem}.don-badge.draggable{pointer-events:auto;touch-action:none;cursor:grab;padding:2px 7px}.cost-area.drop-cost{border-color:var(--accent)}.slot-character .card-counter,.slot-leader .card-counter,.slot-stage .card-counter,.slot-character .picture-chip.cost,.slot-stage .picture-chip.cost{display:none}.slot-character .card-face-cost,.slot-stage .card-face-cost{visibility:hidden}.game-log ol{padding-left:2.4em}.log-bottom{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;margin:8px 0;padding:8px 10px}.hand-cards .mulligan{align-self:center;margin-right:6px}.choice-grid .picked{opacity:1}.slot.opp .field-card,.slot.opp .pile-top,.slot.opp .life-stack{rotate:180deg}.slot.opp .card-back{width:auto;max-width:100%}.hand-cards .card-picture .card-counter{top:30%}:root{--bg:#0a0d13;--surface:#161b26;--surface-2:#1f2633;--surface-3:#2b3445;--border:#ffffff17;--text:#eef1f6;--muted:#98a2b6;--accent:#e0b040;--mat-line:#ffffff29;--shadow:0 1px 0 #ffffff0a inset, 0 10px 28px #00000052;font-family:Segoe UI,Yu Gothic UI,Hiragino Sans,Noto Sans JP,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}body{background:radial-gradient(1200px 520px at 50% -120px, #18202f 0%, var(--bg) 70%) fixed, var(--bg)}.app-header{border-bottom:none;padding:14px 0 10px}.app-header h1{letter-spacing:.04em;font-size:1.2rem;font-weight:800}.app-header h1:before{content:"";vertical-align:-.16em;background:linear-gradient(#f0cb62,#b8862a);border-radius:3px;width:6px;height:1.05em;margin-right:10px;display:inline-block}h2{letter-spacing:.02em;font-weight:700}.panel,.deck-pane,.card-detail,.hand,.sheet,.pile-viewer,.card-editor{box-shadow:var(--shadow);border-color:#0000}.sheet,.pile-viewer,.card-editor{border:1px solid var(--border)}.choice-sheet{border-color:#e0b0408c}.button{background:var(--surface-3);border-color:#0000;border-radius:10px;font-weight:500;transition:background .12s,transform 60ms}.button:hover:not(:disabled){background:#364156;border-color:#0000}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{background:linear-gradient(#ecc257,#cf9c2e);border-color:#0000;font-weight:700;box-shadow:inset 0 1px #ffffff59,0 4px 12px #cf9c2e38}.button.primary:hover:not(:disabled){background:linear-gradient(#f3cd6a,#d9a738)}.button.danger{background:#b93a30}input,select,textarea,.pool-filters input,.pool-filters select,.pool-new-no,.deck-field input,.deck-field select,.deck-select,.opponent-deck select,.deck-name input,.library-search{border-color:var(--border);background:#0d1119;border-radius:10px}input:focus-visible{outline-offset:1px;outline:2px solid #e0b040b3}select:focus-visible{outline-offset:1px;outline:2px solid #e0b040b3}textarea:focus-visible{outline-offset:1px;outline:2px solid #e0b040b3}.button:focus-visible{outline-offset:1px;outline:2px solid #e0b040b3}.view-tabs,.pane-tabs,.segmented{background:#0d1119;border-color:#0000}.view-tabs button.active,.pane-tabs button.active,.segmented button.active{background:var(--surface-3);color:var(--text);box-shadow:inset 0 1px #ffffff0f}.count{background:#ffffff14}.resume{background:#e0b04014;border-color:#e0b04073;border-radius:12px}.field{isolation:isolate;margin:8px;position:relative}.field:before{content:"";z-index:-1;background:radial-gradient(120% 80%,#ffffff0d,#0000 60%),linear-gradient(#1a3a49 0%,#143042 50%,#183646 100%);border-radius:18px;position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px;box-shadow:inset 0 0 0 1px #ffffff12,inset 0 0 0 5px #0000002e,0 14px 34px #00000073}.slot,.slot-character,.slot-stage,.slot.opp{border:1.5px solid var(--mat-line);background:#00000024;border-radius:9px}.slot-leader{background:#e0b0400f;border:1.5px solid #e0b0408c}.slot.opp{background:#96323c1a}.slot-label{color:#ffffff61;letter-spacing:.14em;opacity:1;font-size:.62rem;font-weight:700}.slot.target,.slot.drop-character,.slot.drop-stage,.pile.drop-trash,.pile.drop-deck,.pile.drop-life{border-color:var(--accent);box-shadow:0 0 0 2px #e0b04040,inset 0 0 16px #e0b0402e}.slot.don-target{border:1.5px solid var(--accent);box-shadow:0 0 0 2px #e0b04040}.field .field-card,.field .pile-top,.hand .field-card{box-shadow:0 3px 8px #00000073}.pile-count{font-variant-numeric:tabular-nums;background:#000000b8;font-weight:700}.power-badge{letter-spacing:.02em;background:#080a10e6;border-color:#ffffff4d}.cost-area{background:#00000038;border:1.5px solid #e0b0404d;border-radius:9px}.cost-area.drop-cost,.drop-hand.hand{border-color:var(--accent);box-shadow:0 0 0 2px #e0b04040}.field-divider{color:#ffffff8c;letter-spacing:.08em;border-top:none;font-weight:700}.field-divider:before,.field-divider:after{content:"";background:var(--mat-line);flex:1;height:1px}.opp-bar{padding:2px 4px}.hand{background:var(--surface);border:1px solid #0000;border-radius:14px}.turn{font-size:.95rem;font-weight:800}.phase{background:var(--surface-2);border-color:#0000}.phase.current{background:linear-gradient(#ecc257,#cf9c2e);border-color:#0000}.auto-pay{color:var(--muted)}.deck-pane{border:none}.tile-controls .button{border-radius:8px}.count-badge{border-color:var(--surface)}.deck-row{background:var(--surface-2);border-color:#0000}.log-bottom{box-shadow:var(--shadow);border-color:#0000}@media (max-width:560px){.field{margin:4px 0}.field:before{border-radius:12px;top:-4px;bottom:-4px;left:-4px;right:-4px}.turn{font-size:.75rem}.phase{white-space:nowrap}.hand-cards .mulligan{min-height:34px;padding:0 10px;font-size:.85rem}}.field .mat{z-index:-1;background-position:50%;background-size:cover;border-radius:12px;grid-column:1/-1;position:absolute;top:-6px;bottom:-6px;left:-6px;right:-6px;box-shadow:inset 0 0 0 1px #ffffff14}.field .mat:after{content:"";border-radius:inherit;background:#0000002e;position:absolute;top:0;bottom:0;left:0;right:0}.field .mat-opp{rotate:180deg}.field:has(.mat) .slot{background:#00000038;border-color:#ffffff47}.mat-standard{background:linear-gradient(#1a3a49 0%,#143042 50%,#183646 100%)}.gallery-mat .gallery-picture{aspect-ratio:16/10}.gallery-mat .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.look-thumb-mat{aspect-ratio:16/10}body[data-bg]{background:0 0}body[data-bg]:before{content:"";z-index:-1;position:fixed;top:0;bottom:0;left:0;right:0}body[data-bg=wood]:before,.bg-wood{background:radial-gradient(at 50% 30%,#0000 40%,#00000073 100%),repeating-linear-gradient(90deg,#00000052 0 2px,#ffffff08 2px 3px,#0000 3px 190px),repeating-linear-gradient(90deg,#ffffff07 0 1px,#0000 1px 6px,#0000000f 6px 8px,#0000 8px 19px,#0000000a 19px 20px,#0000 20px 31px),linear-gradient(#5a3a26 0%,#4a2f1f 55%,#3b2418 100%)}body[data-bg=image]:before{background:linear-gradient(#080a0e66, #080a0e66), var(--page-bg) center / cover no-repeat}.bg-standard{background:radial-gradient(120% 90% at 50% -20%, #18202f 0%, var(--bg) 70%)}.gallery-bg .gallery-picture{aspect-ratio:16/10;border-radius:6px}.gallery-bg .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.attack-arrow{z-index:30;pointer-events:none;width:100vw;height:100vh;position:fixed;top:0;bottom:0;left:0;right:0;overflow:visible}.attack-arrow line{stroke:#c8cdd7bf;stroke-width:7px;stroke-linecap:round;stroke-dasharray:14 10;filter:drop-shadow(0 2px 4px #0009)}.attack-arrow marker path{fill:#c8cdd7e6}.attack-arrow.ok line{stroke:#e5484d;stroke-dasharray:none}.attack-arrow.ok marker path{fill:#e5484d}.slot.attack-target{outline-offset:-2px;outline:2px dashed #e5484dcc}.slot.attack-target.aimed{outline:3px solid #e5484d;box-shadow:0 0 18px #e5484d8c}.slot.drop-hover{border-color:var(--accent);box-shadow:0 0 0 2px #e0b04073,inset 0 0 18px #e0b0404d}.field.mat-me .slot:not(.opp):not(.target),.field.mat-opp .slot.opp{box-shadow:none;background:0 0;border-color:#0000}.field.mat-me .slot:not(.opp) .slot-label,.field.mat-opp .slot.opp .slot-label{visibility:hidden}.field.mat-me .slot.drop-hover:not(.opp){border:2px solid var(--accent);background:#e0b04024;box-shadow:0 0 0 2px #e0b0404d,inset 0 0 18px #e0b0404d}.field.mat-me .cost-area:not(.drop-cost){background:0 0;border-color:#0000}.attack-hint{z-index:31;max-width:260px;color:var(--text);pointer-events:none;background:#080a10eb;border-radius:8px;padding:6px 10px;font-size:.8rem;position:fixed;transform:translate(14px,-130%)}.fw-field .battle-area,.fw-field .combo-area,.fw-field .energy-area{grid-column:1/-1}.battle-area{justify-content:center;gap:var(--gap);min-height:var(--cell);flex-wrap:wrap;padding:2px 4px}.battle-card{height:var(--cell);aspect-ratio:1;justify-content:center;align-items:center;display:flex;position:relative}.battle-card .field-card{height:94%}.battle-area.drop-battle,.combo-area.drop-combo,.slot-stage.drop-field{border-color:var(--accent)}.combo-area{min-height:calc(var(--cell) * .5);border-style:dashed;justify-content:flex-start;gap:8px;padding:2px 8px}.combo-area.active{background:#e5484d14;border-style:solid;border-color:#e5484d99}.combo-title{color:#ffffff8c;letter-spacing:.1em;cursor:pointer;flex:none;font-size:.72rem;font-weight:700}.combo-title strong{color:#ff8a8e;letter-spacing:0;font-size:.95rem}.combo-cards{flex-wrap:wrap;flex:1;gap:4px;display:flex}.combo-card{height:calc(var(--cell) * .46);display:block}.combo-card .field-card{height:100%}.combo-clear{flex:none;min-height:30px;padding:0 10px;font-size:.75rem}.energy-area{min-height:calc(var(--cell) * .72);border-color:#78b4ff59}.energy-cards{min-height:calc(var(--cell) * .62);flex-wrap:wrap;flex:1;align-items:center;gap:4px;display:flex}.energy-card{height:calc(var(--cell) * .62);place-items:center;display:grid}.energy-card:has(.rested){width:calc(var(--cell) * .62)}.energy-card .field-card{height:100%}.energy-card .field-card.rested{opacity:.7}.energy-area.drop-hover{border-color:var(--accent);box-shadow:0 0 0 2px #e0b04073}.fw-life .life-card{top:calc(-12% + var(--i) * 4.5% + var(--g,0) * 9%)}.fw-life.few .life-card{top:calc(-12% + var(--i) * 13%)}.awaken-badge{z-index:2;color:#1a1406;white-space:nowrap;pointer-events:none;background:#e0b040;border-radius:999px;padding:0 6px;font-size:.62rem;font-weight:800;position:absolute;top:-7px;left:50%;translate:-50%}.awaken-badge.combo{color:#fff;background:#e5484d}.card-face.awakened{border:2px solid #ff9a3c;box-shadow:inset 0 0 10px #ff9a3c80}.battle-card .card-counter,.slot-leader .card-counter,.battle-card .picture-chip.cost{display:none}.battle-card .card-face-cost{visibility:hidden}.awaken-fields{border:1px solid var(--border);border-radius:10px;gap:6px;margin:0;padding:8px 10px;display:grid}.awaken-fields legend{padding:0 4px;font-size:.85rem;font-weight:700}.color-cost{width:3.2em;margin-left:4px}.card-panel-desc.trigger{white-space:pre-line}.field.mat-me .battle-area:not(.drop-hover),.field.mat-me .combo-area:not(.active):not(.drop-hover){background:0 0;border-color:#0000}.card-face-costs{justify-items:start;gap:1px;display:grid}.card-face-colorcost{white-space:nowrap;background:#0000008c;border-radius:4px;padding:0 3px;font-size:max(7px,9cqi);font-weight:700;line-height:1.2}.ki-badge{z-index:2;color:#fff;pointer-events:none;background:#3aa0e0;border-radius:999px;padding:0 5px;font-size:.62rem;font-weight:800;position:absolute;top:18%;right:2px}.under-badge{z-index:2;color:#fff;pointer-events:none;background:#b0702a;border-radius:999px;padding:0 5px;font-size:.62rem;font-weight:800;position:absolute;top:18%;left:2px}.battle-card.stacked .field-card{box-shadow:3px 3px 0 -1px #2a3346,3px 3px #ffffff59,6px 6px 0 -1px #2a3346,6px 6px #ffffff40}.effect-lines{gap:4px;margin:0;padding:0;font-size:.75rem;list-style:none;display:grid}.effect-lines li{align-items:baseline;gap:6px;display:flex}.effect-mark{border-radius:999px;flex:none;padding:0 6px;font-size:.65rem;font-weight:700}.effect-mark.auto{color:#8fe0ad;background:#50b47840}.effect-mark.partly{color:#f0cb62;background:#e0b04038}.effect-mark.manual{color:var(--muted);background:#ffffff1a}.choice-grid .picked .field-card{outline:3px solid var(--accent);outline-offset:1px}.sides{gap:var(--gap);align-content:start;display:grid}.opp-field{padding-bottom:var(--gap);border-bottom:2px dashed #ffffff2e}.opp-hand{border:1px solid var(--border);background:var(--surface);border-radius:8px;align-items:center;gap:8px;min-width:0;padding:4px 8px;font-size:.8rem;display:flex}.opp-hand-title{flex:none;font-weight:700}.opp-hand-cards{flex:1;min-width:0;display:flex;overflow:hidden}.opp-hand-card{height:calc(var(--cell) * .42);aspect-ratio:63/88;margin-right:calc(var(--cell) * -.1);flex:none;display:block}.opp-hand-card .card-face{width:100%;height:100%}.opp-hand .button{flex:none;min-height:30px;padding:0 10px;font-size:.75rem}@media (min-width:1100px){.board.two-sided{--cell:min(calc(110px * var(--zoom)), calc((min(100vw, 1180px * var(--zoom)) - 32px - 272px - var(--side) - 10px - 4 * var(--gap)) / 5), calc((100dvh - 280px) / 7.4 * var(--zoom)))}}.battle-backdrop{pointer-events:none;z-index:24;background:0 0;justify-content:flex-end;align-items:flex-start}.battle-backdrop .sheet{pointer-events:auto;max-width:420px}.battle-sheet .warning{color:var(--danger);font-weight:700}.battle-sheet .ok{color:#6fcf8e;font-weight:700}.battle-card.attack-target{outline-offset:-2px;border-radius:8px;outline:2px dashed #e5484dcc}.battle-card.attack-target.aimed{outline:3px solid #e5484d;box-shadow:0 0 18px #e5484d8c}.field-col details textarea{box-sizing:border-box;width:100%;font-family:ui-monospace,monospace;font-size:.8rem}.card-counter.boosted{color:#fff;background:#e5484d}.slot .pile-count{z-index:25;border:1px solid #ffffff59;font-size:.78rem}.combo-area{flex-wrap:wrap}.combo-title{flex:0 auto;min-width:0}.power-badge.combo{color:#ffd27a;border-color:#ffb648;box-shadow:0 0 8px #ffb648b3}.battle-turn{text-align:center;border-radius:8px;padding:6px 8px;font-size:.8rem;line-height:1.4}.battle-turn strong{font-size:.95rem;display:block}.battle-turn.offense,.battle-sheet.offense .sheet-header{background:#dc464640;border:1px solid #f06e6eb3}.battle-turn.defense,.battle-sheet.defense .sheet-header{background:#4682e640;border:1px solid #6ea0fab3}.battle-sheet .sheet-header{border-radius:8px;padding:6px 10px}.hand.acting.offense{box-shadow:0 0 0 2px #f06e6ed9,0 0 18px #f06e6e59}.hand.acting.defense{box-shadow:0 0 0 2px #6ea0fad9,0 0 18px #6ea0fa59}.hand-turn{background:#ffffff1f;border-radius:999px;margin-left:10px;padding:1px 8px;font-size:.8rem;font-weight:700}.hand.acting.offense .hand-turn{color:#ff9b9b}.hand.acting.defense .hand-turn{color:#9cc2ff}.match-setup{gap:14px;display:grid}.match-title{margin:0;font-size:1.05rem}.match-sides{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:12px;display:grid}.match-side{text-align:center;border-radius:12px;justify-items:center;gap:6px;min-width:0;padding:12px;display:grid}.match-side.mine{background:linear-gradient(#4682e633,#0000);border:1px solid #6ea0fa99}.match-side.theirs{background:linear-gradient(#dc464633,#0000);border:1px solid #f06e6e99}.match-label{letter-spacing:.1em;color:var(--muted);font-size:.8rem;font-weight:700}.match-leader{aspect-ratio:63/88;border-radius:6px;width:84px;display:block;overflow:hidden;box-shadow:0 4px 14px #00000080}.match-leader .card-back{width:100%;height:100%;display:block}.match-deck{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.match-deck-select{border:1px solid var(--border);background:var(--surface-2);width:100%;max-width:260px;color:var(--text);font:inherit;border-radius:8px;padding:6px 8px;font-weight:700}.match-vs{color:var(--accent);text-shadow:0 2px 8px #0009;font-size:1.6rem;font-style:italic;font-weight:900}.match-order{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.match-start{grid-template-columns:1fr 1fr;gap:10px;display:grid}.match-button{justify-items:center;gap:2px;min-height:58px;display:grid}@media (max-width:520px){.match-sides{gap:6px}.match-side{padding:8px 4px}.match-leader{width:64px}.match-vs{font-size:1.2rem}.match-start{grid-template-columns:1fr}}.match-order .segmented button.active{background:var(--accent);color:var(--accent-text,#1a1206)}.match-sides>.match-vs{align-self:center}body[data-bg=marble-white]:before,.bg-marble-white{background:radial-gradient(at 50% 30%,#0000 45%,#00000038 100%),linear-gradient(#14161c1a,#14161c1a),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='c' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.004' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.75 0 0 0 0 0.74 0 0 0 0 0.72 1 0 0 0 -0.35'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0018 0.0045' numOctaves='6' seed='10'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.42 0 0 0 0 0.45 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0.15 0.95 0.15 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='0.7'/%3E%3C/filter%3E%3Cfilter id='w' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.009' numOctaves='5' seed='16'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.55 0 0 0 0 0.58 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0.12 0.7 0.12 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%' height='100%' fill='%23ece9e4'/%3E%3Crect width='100%' height='100%' filter='url(%23c)'/%3E%3Crect width='100%' height='100%' filter='url(%23w)' opacity='0.5'/%3E%3Crect width='100%' height='100%' filter='url(%23v)'/%3E%3C/svg%3E") 50%/cover no-repeat,#ece9e4}body[data-bg=marble-black]:before,.bg-marble-black{background:radial-gradient(at 50% 30%,#0000 40%,#00000080 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='c' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.004' numOctaves='4' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.22 0.6 0 0 0 -0.25'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0018 0.0045' numOctaves='6' seed='14'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.78 0 0 0 0 0.72 0 0 0 0 0.6 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0.9 0.35 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='0.7'/%3E%3C/filter%3E%3Cfilter id='w' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.009' numOctaves='5' seed='20'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.3 0 0 0 0 0.3 0 0 0 0 0.32 0.7 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%' height='100%' fill='%2315161a'/%3E%3Crect width='100%' height='100%' filter='url(%23c)'/%3E%3Crect width='100%' height='100%' filter='url(%23w)' opacity='0.5'/%3E%3Crect width='100%' height='100%' filter='url(%23v)'/%3E%3C/svg%3E") 50%/cover no-repeat,#15161a}.awaken-ready{z-index:4;color:#2a1a00;font:inherit;white-space:nowrap;cursor:pointer;background:linear-gradient(#ffd66b,#e0a020);border:1px solid #fff3c4;border-radius:999px;padding:1px 9px;font-size:.7rem;font-weight:800;animation:1.4s ease-in-out infinite awaken-pulse;position:absolute;top:-10px;left:50%;translate:-50%}.slot-leader:has(.awaken-ready) .field-card{border-radius:6px;box-shadow:0 0 0 2px #ffd66b,0 0 16px #ffc850bf}@keyframes awaken-pulse{0%,to{box-shadow:0 0 4px #ffd66b99}50%{box-shadow:0 0 14px #ffd66b}}@media (prefers-reduced-motion:reduce){.awaken-ready{animation:none}}.energy-marker{height:calc(var(--cell) * .62);aspect-ratio:63/88;color:#3a2600;font:inherit;cursor:pointer;background-color:#0000;background-image:radial-gradient(circle at 50% 42%,#ffe9a8 0 18%,#e0a020 19% 30%,#0000 31%),repeating-linear-gradient(45deg,#ffffff0f 0 4px,#0000 4px 9px),linear-gradient(160deg,#6b4a10,#2e1f05);background-position:50%;background-repeat:repeat,repeat,repeat;background-size:cover;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;border:2px solid #ffd66b;border-radius:5px;flex:none;align-self:center;padding:0;position:relative;box-shadow:0 2px 6px #00000080}.energy-marker>span:first-child{font-size:.8rem;font-weight:900;position:absolute;top:42%;left:50%;translate:-50% -50%}.energy-marker.has-picture{border-color:#ffffff80}.energy-marker.armed{box-shadow:0 0 0 3px #fff,0 0 14px #ffd66be6}.marker-armed{color:#3a2600;white-space:nowrap;background:#fff;border-radius:999px;padding:0 5px;font-size:.6rem;position:absolute;bottom:-9px;left:50%;translate:-50%}.marker-standard{color:#3a2600;background:radial-gradient(circle at 50% 42%,#ffe9a8 0 18%,#e0a020 19% 30%,#0000 31%),linear-gradient(160deg,#6b4a10,#2e1f05);font-weight:900}.look-thumb-marker{background-position:50%;background-size:cover;border-radius:3px}.gallery-marker .gallery-picture{aspect-ratio:63/88}.hand-sort{min-height:24px;margin-left:8px;padding:0 10px;font-size:.75rem}body[data-bg=marble-white] :is(.app-header,.auto-pay,.turn,.game-log>summary,.muted){text-shadow:0 1px 2px #000000e6,0 0 8px #0009}.attack-arrow.battle-arrow{z-index:15;opacity:.85}@media (min-width:1100px){.battle-backdrop{justify-content:flex-start;align-items:flex-end}.battle-backdrop .sheet{width:340px;max-height:60vh}}body[data-bg=felt-navy]:before,.bg-felt-navy{background:radial-gradient(70% 60% at 50% 38%,#5a82d238,#0000 70%),radial-gradient(at 50% 40%,#0000 45%,#000000a6 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23f)'/%3E%3C/svg%3E"),linear-gradient(#14213d 0%,#0d1730 60%,#070d1d 100%)}body[data-bg=leather-black]:before,.bg-leather-black{background:radial-gradient(65% 55% at 50% 36%,#ffd28c1f,#0000 70%),radial-gradient(at 50% 40%,#0000 40%,#000000b3 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.06' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.4 0 0 0 0.9'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23l)' opacity='0.35'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23f)'/%3E%3C/svg%3E"),linear-gradient(#1c1714 0%,#120e0c 100%)}body[data-bg=starry]:before,.bg-starry{background:radial-gradient(55% 45% at 72% 18%,#ffaa3c29,#0000 70%),radial-gradient(60% 50% at 18% 85%,#5078ff2e,#0000 70%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Ccircle cx='243' cy='606' r='1.3' fill='white' opacity='0.45'/%3E%3Ccircle cx='378' cy='618' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='620' cy='13' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='564' cy='239' r='0.6' fill='white' opacity='0.85'/%3E%3Ccircle cx='553' cy='562' r='1' fill='white' opacity='0.85'/%3E%3Ccircle cx='654' cy='154' r='0.6' fill='white' opacity='0.45'/%3E%3Ccircle cx='535' cy='399' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='163' cy='776' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='308' cy='798' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='484' cy='609' r='1' fill='white' opacity='0.85'/%3E%3Ccircle cx='404' cy='745' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='137' cy='374' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='139' cy='506' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='688' cy='446' r='0.8' fill='white' opacity='0.85'/%3E%3Ccircle cx='519' cy='395' r='1.3' fill='white' opacity='0.6'/%3E%3Ccircle cx='546' cy='599' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='344' cy='698' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='620' cy='687' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='554' cy='585' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='730' cy='671' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='291' cy='127' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='654' cy='495' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='68' cy='420' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='300' cy='437' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='45' cy='619' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='386' cy='735' r='1.3' fill='white' opacity='0.6'/%3E%3Ccircle cx='564' cy='285' r='1.3' fill='white' opacity='0.45'/%3E%3Ccircle cx='36' cy='317' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='110' cy='614' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='202' cy='417' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='159' cy='706' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='321' cy='368' r='0.6' fill='white' opacity='0.85'/%3E%3Ccircle cx='385' cy='471' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='659' cy='609' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='635' cy='519' r='0.8' fill='white' opacity='0.85'/%3E%3Ccircle cx='649' cy='737' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='447' cy='264' r='1.3' fill='white' opacity='0.6'/%3E%3Ccircle cx='561' cy='347' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='593' cy='322' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='630' cy='603' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='648' cy='642' r='0.8' fill='white' opacity='0.85'/%3E%3Ccircle cx='361' cy='695' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='755' cy='501' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='692' cy='21' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='643' cy='467' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='181' cy='372' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='776' cy='378' r='1.3' fill='white' opacity='0.6'/%3E%3Ccircle cx='307' cy='386' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='582' cy='700' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='512' cy='227' r='0.8' fill='white' opacity='0.45'/%3E%3Ccircle cx='335' cy='191' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='104' cy='615' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='691' cy='229' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='81' cy='344' r='0.6' fill='white' opacity='0.85'/%3E%3Ccircle cx='277' cy='230' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='542' cy='195' r='0.8' fill='white' opacity='0.45'/%3E%3Ccircle cx='285' cy='348' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='603' cy='132' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='530' cy='277' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='649' cy='426' r='0.8' fill='white' opacity='0.85'/%3E%3Ccircle cx='581' cy='419' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='159' cy='204' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='637' cy='522' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='33' cy='763' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='556' cy='349' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='602' cy='293' r='0.5' fill='white' opacity='0.45'/%3E%3Ccircle cx='46' cy='35' r='1.3' fill='white' opacity='0.45'/%3E%3Ccircle cx='440' cy='590' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='492' cy='763' r='0.5' fill='white' opacity='0.45'/%3E%3Ccircle cx='515' cy='307' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='537' cy='549' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='626' cy='116' r='0.8' fill='white' opacity='0.45'/%3E%3Ccircle cx='258' cy='553' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='360' cy='226' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='547' cy='122' r='0.6' fill='white' opacity='0.45'/%3E%3Ccircle cx='280' cy='131' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='643' cy='584' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='774' cy='277' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='632' cy='539' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='52' cy='484' r='0.8' fill='white' opacity='0.3'/%3E%3Ccircle cx='56' cy='793' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='127' cy='51' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='33' cy='729' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='323' cy='160' r='0.8' fill='white' opacity='0.3'/%3E%3Ccircle cx='359' cy='395' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='369' cy='271' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='438' cy='126' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='733' cy='740' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='580' cy='182' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='471' cy='618' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='651' cy='44' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='54' cy='381' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='430' cy='710' r='1' fill='white' opacity='0.85'/%3E%3Ccircle cx='18' cy='250' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='711' cy='604' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='229' cy='436' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='333' cy='383' r='1.3' fill='white' opacity='0.6'/%3E%3Ccircle cx='124' cy='475' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='683' cy='111' r='0.8' fill='white' opacity='0.3'/%3E%3Ccircle cx='601' cy='733' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='146' cy='241' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='539' cy='94' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='675' cy='384' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='349' cy='124' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='689' cy='493' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='90' cy='37' r='1.3' fill='white' opacity='0.45'/%3E%3Ccircle cx='109' cy='567' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='563' cy='332' r='1.3' fill='white' opacity='0.45'/%3E%3Ccircle cx='79' cy='247' r='0.6' fill='white' opacity='0.45'/%3E%3Ccircle cx='465' cy='630' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='376' cy='613' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='569' cy='428' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='512' cy='240' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='425' cy='707' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='159' cy='658' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='166' cy='98' r='1' fill='white' opacity='0.85'/%3E%3Ccircle cx='715' cy='529' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='139' cy='273' r='0.6' fill='white' opacity='0.45'/%3E%3Ccircle cx='599' cy='527' r='0.8' fill='white' opacity='0.45'/%3E%3Ccircle cx='707' cy='550' r='0.8' fill='white' opacity='0.85'/%3E%3Ccircle cx='609' cy='598' r='1.3' fill='white' opacity='0.6'/%3E%3Ccircle cx='222' cy='314' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='490' cy='391' r='0.6' fill='white' opacity='0.45'/%3E%3Ccircle cx='583' cy='369' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='494' cy='792' r='0.6' fill='white' opacity='0.85'/%3E%3Ccircle cx='714' cy='491' r='1.3' fill='white' opacity='0.45'/%3E%3Ccircle cx='479' cy='594' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='492' cy='738' r='0.5' fill='white' opacity='0.85'/%3E%3Ccircle cx='751' cy='46' r='1' fill='white' opacity='0.45'/%3E%3Ccircle cx='240' cy='663' r='0.5' fill='white' opacity='0.45'/%3E%3Ccircle cx='260' cy='247' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='140' cy='191' r='1.3' fill='white' opacity='0.3'/%3E%3Ccircle cx='261' cy='173' r='0.5' fill='white' opacity='0.6'/%3E%3Ccircle cx='187' cy='433' r='0.5' fill='white' opacity='0.3'/%3E%3Ccircle cx='120' cy='94' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='36' cy='365' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='7' cy='30' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='446' cy='388' r='1' fill='white' opacity='0.3'/%3E%3Ccircle cx='215' cy='659' r='1.3' fill='white' opacity='0.85'/%3E%3Ccircle cx='400' cy='128' r='1.3' fill='white' opacity='0.6'/%3E%3C/svg%3E") 50%/800px 800px,radial-gradient(at 50% 30%,#121a33 0%,#070a16 70%,#03040a 100%)}.battle-card.evolve-target{outline-offset:2px;border-radius:8px;outline:2px dashed #78c8ffd9;box-shadow:0 0 12px #78c8ff73}.battle-card.evolve-target.aimed{outline:3px solid #7cd0ff;box-shadow:0 0 22px #7cd0ffd9}.evolve-options{flex-wrap:wrap;gap:10px;margin:4px 0 8px;display:flex}.evolve-option{border:2px solid var(--line,#555);cursor:pointer;background:#ffffff0a;border-radius:10px;align-items:center;gap:4px;padding:6px;display:flex}.evolve-option:hover{border-color:#e7b84a;box-shadow:0 0 10px #e7b84a99}.evolve-option:focus-visible{border-color:#e7b84a;box-shadow:0 0 10px #e7b84a99}.evolve-base{align-items:center;gap:4px;display:flex}.evolve-card{aspect-ratio:63/88;width:78px;display:block}.evolve-card .card-picture{width:100%;height:100%;display:block}.evolve-plus{color:#e7b84a;font-size:1.1rem}.battle-backdrop.compact{justify-content:center;align-items:flex-start;padding:8px}.battle-sheet.battle-mini{border-width:2px;gap:6px;width:auto;max-width:calc(100vw - 16px);padding:8px;display:flex}.battle-sheet.battle-mini>.movable-grip{background:linear-gradient(90deg, var(--border), var(--border)) center / 5px 26px no-repeat;flex:0 0 14px;width:14px;height:auto;margin:-2px 0 -2px -2px}.battle-sheet.battle-mini .button{white-space:nowrap;min-height:38px;padding:0 10px;font-size:.82rem}.battle-sheet.battle-mini.offense{border-color:#f06e6ed9}.battle-sheet.battle-mini.defense{border-color:#6ea0fad9}.zoom-select{color:var(--muted);align-items:center;gap:4px;font-size:.8rem;display:inline-flex}.zoom-select select{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;border-radius:6px;padding:2px 4px}@media (max-width:560px){.zoom-select{display:none}}.choice-backdrop.on-board{pointer-events:none;background:0 0}.choice-backdrop.on-board .sheet{pointer-events:auto;max-width:380px}@media (min-width:1100px){.choice-backdrop.on-board{justify-content:flex-start;align-items:flex-end}}.field-card.pick-can{outline-offset:2px;cursor:pointer;border-radius:6px;outline:3px solid #e7b84ae6;animation:1.4s ease-in-out infinite pick-pulse;box-shadow:0 0 14px #e7b84a99}.field-card.pick-picked{outline-offset:2px;border-radius:6px;outline:4px solid #5fd38a;box-shadow:0 0 18px #5fd38acc}.field-card.pick-picked:after{content:"✓";color:#fff;z-index:2;background:#2f9e5c;border-radius:50%;place-items:center;width:26px;height:26px;font-weight:800;display:grid;position:absolute;top:4px;left:50%;transform:translate(-50%)}@keyframes pick-pulse{50%{box-shadow:0 0 4px #e7b84a4d}}@media (prefers-reduced-motion:reduce){.field-card.pick-can{animation:none}}.online-menu{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:8px;margin:8px 0;padding:12px;display:flex}.online-menu p{margin:0}.online-actions,.online-join{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.room-code-input{letter-spacing:.25em;text-align:center;border:1px solid var(--border);width:6.5em;min-height:36px;color:inherit;background:0 0;border-radius:6px;padding:0 10px;font-size:1.1rem}.online-lobby{text-align:center;flex-direction:column;align-items:center;gap:16px;padding:32px 16px;display:flex}.online-lobby p{margin:0}.room-code{letter-spacing:.3em;padding-left:.3em;font-size:3.5rem;font-weight:700}.online-status{color:#7fd08a;font-size:.85rem}.online-status.offline{color:var(--warn)}.online-menu{margin-top:14px}.online-name{align-items:center;gap:8px;font-size:.85rem;display:flex}.online-name input{border:1px solid var(--border);background:var(--surface);max-width:220px;color:var(--text);font:inherit;border-radius:6px;flex:1;padding:6px 8px}.online-waiting{z-index:26;border:1px solid var(--accent);color:var(--text);pointer-events:none;background:#141822eb;border-radius:999px;padding:10px 16px;font-size:.9rem;position:fixed;bottom:16px;left:50%;transform:translate(-50%)}
