:root{color:#ebf2fa;background:#0b111a;font-family:Arial,Yu Gothic,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0}header{border-bottom:1px solid #2a3544;justify-content:space-between;align-items:center;gap:20px;padding:26px 5%;display:flex}header b{letter-spacing:.1em}small{color:#96a7bb;font-size:14px}nav{color:#91e6d4;border-bottom:1px solid #263342;gap:36px;padding:24px 5%;display:flex}section{max-width:1200px;margin:auto;padding:54px 24px}h1{margin:16px 0;font-size:38px}h2{font-size:22px}p{line-height:1.8}.panels{grid-template-columns:1fr 1fr;gap:24px;margin-top:36px;display:grid}article{background:#141e2c;border:1px solid #314153;border-radius:12px;padding:30px}label{font-size:14px;display:block}input,select,button{font:inherit;border-radius:6px;padding:12px 16px}input,select{color:#ebf2fa;background:#0b111a;border:1px solid #40516a;width:100%;margin:12px 0 22px;display:block}button{color:#0b191a;cursor:pointer;background:#91e6d4;border:0;font-weight:700}button:disabled{opacity:.45;cursor:default}a{color:#91e6d4}@media (width<=650px){.panels{grid-template-columns:1fr}header{flex-direction:column;align-items:flex-start}h1{font-size:28px}nav{gap:20px}}header span{color:#91e6d4;margin-left:12px;font-size:12px}nav{flex-wrap:wrap;align-items:center;padding-top:12px;padding-bottom:12px}nav a{margin-left:auto;font-size:14px}.quiet{color:#c9d7e7;background:#1c2a3a}.active{background:#91e6d4}.link{color:#91e6d4;text-align:left;background:0 0;padding:4px;font-size:14px}.muted{color:#9aabc0}.eyebrow{letter-spacing:.2em;color:#91e6d4;font-size:12px}.number{color:#91e6d4;font-size:32px}.deck-select{max-width:470px}.toolbar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.toolbar h1,.toolbar h2,.toolbar>div:first-child{margin-right:auto}.saved{border:1px solid #314153;border-radius:10px;margin:28px 0;padding:20px}.room-invitations{grid-column:1/-1}.room-filters{grid-template-columns:minmax(0,1fr) minmax(170px,240px);gap:10px;display:grid}.room-filters input,.room-filters select{margin:0 0 14px}.room-list{gap:10px;display:grid}.room-card{text-align:left;flex-direction:column;align-items:flex-start;gap:5px;width:100%;display:flex}.room-card strong{color:#ebf2fa;font-size:17px}.room-card small{color:#afbed0}.room-state{color:#91e6d4;font-size:12px}.spectator-mode .action-bar,.spectator-mode .opening-dice-panel,.spectator-mode .mulligan-panel{display:none}@media (width<=650px){.room-filters{grid-template-columns:1fr}}.notice{color:#91e6d4;min-height:24px;padding:0 5%}.error{color:#ffd9da;background:#492629;border-radius:8px;margin:16px 5%;padding:18px}.error button{margin-left:20px}.builder{grid-template-columns:minmax(0,1fr) minmax(460px,520px);gap:28px;display:grid}.builder>div>.card-grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:10px}.builder>div>.card-grid .card{gap:5px;padding:7px}.builder>div>.card-grid .card h3{font-size:12px;line-height:1.3}.builder>div>.card-grid .card small{font-size:10px}.builder>div>.card-grid .card>button:last-child{padding:7px 5px;font-size:12px}.builder>div>.card-grid .favorite{width:28px;height:28px;font-size:18px;top:10px;right:10px}.filters{flex-wrap:wrap;gap:10px;display:flex}.filters input{flex:1;min-width:220px}.filters select{width:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:18px;display:grid}.card{flex-direction:column;gap:8px;padding:12px;display:flex}.card h3{margin:0;font-size:14px;line-height:1.5}.card small{font-size:12px}.card button:last-child{margin-top:auto}.card-image{background:0 0;width:100%;padding:0;display:block}.card-image img{aspect-ratio:600/838;object-fit:contain;border-radius:4px;width:100%}.inventory-image-wrap{position:relative}.library-detail-button{display:none}@media (width>=901px){.library-detail-button{color:#fff;opacity:0;pointer-events:none;z-index:3;background:#08101de8;border:1px solid #91e6d4;padding:5px 8px;font-size:12px;display:block;position:absolute;bottom:7px;left:5px}.inventory-image-wrap:hover .library-detail-button,.inventory-image-wrap:focus-within .library-detail-button{opacity:1;pointer-events:auto}}.inventory-badge{color:#fff;pointer-events:none;z-index:2;background:#08101de8;border:1px solid #91e6d4;border-radius:999px;justify-content:center;align-items:center;min-width:28px;min-height:28px;padding:5px;font-size:13px;font-weight:800;line-height:1;display:flex;position:absolute;bottom:7px;right:7px;box-shadow:0 2px 7px #000c}.inventory-controls{grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:6px;margin-top:7px;display:grid}.inventory-controls button{min-height:34px;margin-top:0;padding:2px;font-size:20px}.inventory-controls span{text-align:center;font-size:12px;font-weight:700}.library-search-card{gap:4px;padding:7px 7px 5px}.library-search-card .inventory-controls{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px;margin-top:4px}.library-search-card .inventory-controls button{min-height:30px;font-size:18px}.library-search-card .inventory-controls span,.library-search-card>small{font-size:10px;line-height:1.2}.deck-panel{background:#141e2c;border-radius:10px;flex-direction:column;align-self:start;height:calc(100dvh - 116px);max-height:calc(100dvh - 116px);padding:20px;display:flex;position:sticky;top:20px;overflow:hidden}.deck-editor-heading{display:contents}.player-order-badge{color:#c5fff0;vertical-align:middle;background:#254b48;border:1px solid #91e6d4;border-radius:999px;margin-left:8px;padding:3px 9px;font-size:12px;display:inline-block}.deck-limit-warning{color:#ffd0a3;flex:none;margin:4px 0 8px;font-size:12px;line-height:1.4}.deck-switcher{flex:none;gap:6px;margin-bottom:10px;display:flex;overflow-x:auto}.deck-switcher button{white-space:nowrap;padding:6px 9px;font-size:12px}.deck-card-list{overscroll-behavior:contain;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-height:0;padding-right:4px;display:grid;overflow-y:auto}.deck-row{background:#101925;border:1px solid #304054;border-radius:7px;grid-template-columns:minmax(0,1fr);align-content:start;align-items:center;gap:0;padding:5px;display:grid;position:relative}.deck-row .link{flex-direction:column;grid-column:1;gap:2px;min-width:0;padding:2px;display:flex}.deck-row .link b{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.deck-row .link small{font-size:10px}.deck-card-preview{background:0 0;grid-column:1;width:100%;padding:0}.deck-card-preview img{aspect-ratio:600/838;object-fit:contain;border-radius:4px;width:100%;display:block}.deck-quantity{color:#fff;z-index:2;background:#08101de8;border:1px solid #ffffff40;border-radius:5px;grid-column:1/span 2;justify-content:space-between;align-items:center;gap:4px;padding:2px;display:flex;position:absolute;bottom:7px;left:7px;right:7px}.deck-quantity button{flex:1;min-width:28px;min-height:32px;padding:2px 6px}.deck-quantity span{text-align:center;white-space:nowrap;font-size:12px;font-weight:700}.pagination{justify-content:center;margin-top:30px}.public-deck-list{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-top:24px;display:grid}.public-deck-users{gap:18px;margin-top:24px;display:grid}.public-deck-owner{background:#101925;border:1px solid #314153;border-radius:10px;padding:14px}.public-deck-owner summary{color:#91e6d4;cursor:pointer;align-items:center;gap:12px;display:flex}.public-deck-owner summary b{font-size:18px}.public-deck-owner summary span{color:#96a7bb;font-size:13px}.public-deck-owner .public-deck-list{margin-top:14px}.public-deck-list article{padding:20px}.public-deck-list h2{margin-bottom:6px}.public-deck-preview{width:min(980px,100%)}.public-deck-cards{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;margin:18px 0;display:grid}.public-deck-card{color:#ebf2fa;background:#101925;min-width:0;padding:5px;position:relative}.public-deck-card img{aspect-ratio:600/838;object-fit:contain;width:100%;display:block}.public-deck-card b{background:#0b111add;border-radius:999px;padding:3px 7px;position:absolute;top:8px;right:8px}.public-deck-card small{text-overflow:ellipsis;white-space:nowrap;margin-top:4px;display:block;overflow:hidden}footer{color:#91a0b2;border-top:1px solid #293747;padding:30px 5%;font-size:12px}.overlay{z-index:10;background:#000b;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.overlay>article{width:min(850px,100%);max-height:90vh;overflow:auto}.detail{grid-template-columns:260px 1fr;gap:28px;margin-top:20px;display:grid}.detail-close{z-index:2;margin-left:auto;position:sticky;top:0;right:0}.detail img{border-radius:6px;width:100%}.detail p{white-space:pre-wrap;font-size:14px}.playmat{border-top:3px solid #91e6d4;min-height:0;margin:0;padding:8px 10px;overflow:hidden}.turn-status{background:color-mix(in srgb, var(--accent) 13%, var(--panel));border:1px solid color-mix(in srgb, var(--accent) 40%, var(--line));border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0;padding:.85rem 1rem;display:flex}.turn-status.finished{background:color-mix(in srgb, #d8b64c 18%, var(--panel))}.effect-assist{background:color-mix(in srgb, var(--accent) 8%, var(--panel));border:1px solid var(--line);border-radius:12px;margin:1rem 0;padding:1rem}.effect-assist h3,.effect-assist p{margin-top:0}.playmat.opponent{border-top-color:#d49ef1}.table-section{flex-direction:column;max-width:1500px;height:100dvh;padding-top:8px;display:flex;position:relative;overflow:hidden auto}.room-bar,.action-bar{flex-wrap:nowrap;flex:0 0 32px;gap:5px;min-height:32px;overflow-x:auto}.room-bar button,.action-bar button{white-space:nowrap;border-radius:4px;padding:4px 8px;font-size:12px}.dice-count-control{white-space:nowrap;flex:none;align-items:center;gap:3px;font-size:12px;display:inline-flex}.dice-count-control select{text-align:center;width:42px;min-width:42px;margin:0;padding:3px 2px}.room-bar h2{white-space:nowrap;margin:0 4px 0 0;font-size:14px}.turn-pill{white-space:nowrap;background:#203b3a;border:1px solid #579b91;border-radius:999px;margin-right:auto;padding:3px 9px;font-size:12px;font-weight:800}.turn-pill.finished{background:#47391a;border-color:#e7c759}.turn-pill.turn-self{background:#17645b;border-color:#90ebd8;box-shadow:0 0 0 2px #90ebd833}.turn-pill.turn-opponent{background:#303447;border-color:#858fb1}.table-section>.code{display:none}.table-section>details.saved{z-index:8;background:#141e2cee;max-width:min(420px,80vw);max-height:42%;margin:0;padding:4px 9px;position:absolute;bottom:6px;right:8px;overflow:auto}.table-section>details.saved summary{cursor:pointer;font-size:12px}.table-section>details.saved p{margin:5px 0;font-size:12px;line-height:1.35}main:has(.table-section) header{display:none}main:has(.table-section) header small{display:none}main:has(.table-section) nav{display:none}main:has(.table-section) nav button{white-space:nowrap;padding:4px 9px;font-size:12px}main:has(.table-section) nav a{display:none}main:has(.table-section) .notice{display:none}main:has(.table-section) footer{margin-top:72px}.battle-board{flex:1 0 688px;grid-template-rows:repeat(2,minmax(340px,1fr));gap:8px;min-height:0;display:grid;position:relative}.opening-phase .battle-board{flex-basis:320px;grid-template-rows:repeat(2,minmax(156px,1fr))}.opening-phase .artist-stage{display:none}.opening-phase .playmat.self .field-hand,.opening-phase .playmat.opponent .field-hand{z-index:2;grid-area:1/1/span 3;max-height:none}.opening-phase .field-hand .pieces{align-items:center}.opening-dice-panel,.dice-strip{background:#1b2a3a;border:1px solid #607b98;border-radius:7px;flex-wrap:wrap;flex:none;align-items:center;gap:6px 12px;margin-bottom:5px;padding:4px 8px;display:flex}.opening-dice-panel strong,.dice-strip{font-size:13px}.opening-dice-panel span{font-size:12px}.opening-dice-panel button{padding:4px 8px;font-size:12px}.move-guide{z-index:7;background:#102c2bee;border:1px solid #91e6d4;border-radius:999px;align-items:center;gap:10px;padding:4px 6px 4px 12px;font-size:13px;font-weight:700;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.move-guide button{padding:3px 7px;font-size:11px}[data-drop-active=true]{cursor:pointer;border-color:#91e6d4!important;box-shadow:inset 0 0 0 2px #91e6d455,0 0 10px #91e6d466!important}[data-touch-over=true]{background:#234a47!important;border-color:#d8fff7!important;box-shadow:inset 0 0 0 3px #91e6d4,0 0 16px #91e6d4!important}.zones{grid-template-rows:minmax(90px,1fr) 54px;grid-template-columns:.7fr repeat(8,minmax(74px,1fr));grid-template-areas:"deck hand hand hand stage1 stage2 stage3 stage4 stage5""deck backstage song magic direction trash excluded excluded excluded";gap:5px;height:calc(100% - 38px);min-height:0;display:grid}.zone{background:#0e1622;border:1px solid #304053;border-radius:6px;min-height:0;padding:5px;overflow:hidden}.zone h3{color:#aab8c9;justify-content:space-between;margin:0 0 4px;font-size:12px;display:flex}.zone-deck{grid-area:deck}.zone-hand{grid-area:hand}.zone-stage1{grid-area:stage1}.zone-stage2{grid-area:stage2}.zone-stage3{grid-area:stage3}.zone-stage4{grid-area:stage4}.zone-stage5{grid-area:stage5}.zone-backstage{grid-area:backstage}.zone-song{grid-area:song}.zone-magic{grid-area:magic}.zone-direction{grid-area:direction}.zone-trash{grid-area:trash}.zone-excluded{grid-area:excluded}.pieces{flex-wrap:wrap;gap:6px;display:flex}.piece{color:#fff;cursor:grab;background:0 0;width:clamp(42px,5.2vw,72px);padding:0}.piece:active{cursor:grabbing}@media (pointer:coarse){.piece{touch-action:none}.library-card-image{touch-action:pan-y}}.piece img{border-radius:3px;width:100%}.piece.rest img{transform:rotate(90deg)}.rotatable-piece{justify-content:center;width:100%;height:100%;display:inline-flex;position:relative}.rotatable-piece>.piece{height:100%}.rotate-card{color:#e8fbff;z-index:8;background:#08121de6;border:1px solid #7dd8e7;border-radius:50%;justify-content:center;align-items:center;width:24px;min-width:24px;height:24px;padding:0;font-size:14px;line-height:1;display:flex;position:absolute;top:2px;right:-2px}.rotate-card:hover,.rotate-card:focus-visible{background:#246576;border-color:#c7f7ff}.back{color:#78acb0;background:repeating-linear-gradient(45deg,#162a3a,#162a3a 4px,#203443 4px 5px);border:1px solid #466172;border-radius:3px;place-items:center;width:28px;height:45px;display:grid}.zone-deck .back{width:clamp(45px,5vw,68px);height:clamp(70px,12vh,108px)}.zone-hand .pieces{flex-wrap:nowrap}.zone-hand .piece{flex:0 72px}.zone[class*=zone-stage] .piece{width:100%}.zone[class*=zone-stage] .piece img{object-fit:contain;max-height:14vh}.mulligan-panel{background:#243022;border:1px solid #819c64;border-radius:10px;margin-bottom:8px;padding:8px 12px}.mulligan-panel>div:first-child{justify-content:space-between;gap:18px;display:flex}.mulligan-panel p{margin:5px 0;font-size:12px}.table-section>.toolbar,.table-section>.turn-status{flex:none}.table-section>.turn-status{margin:5px 0;padding:6px 10px}.playmat>.toolbar{flex-wrap:nowrap;gap:5px;min-height:22px}.playmat>.toolbar h2{margin:0 auto 0 0;font-size:17px;line-height:1}.counter{border:1px solid #506176;border-radius:6px;align-items:center;gap:2px;padding:2px 3px;font-size:12px;display:flex}.counter button{color:inherit;background:#08101966;border:1px solid;border-radius:3px;min-width:24px;padding:0 4px;font-size:13px;line-height:20px}.counter b{text-align:center;min-width:20px;font-size:16px;line-height:20px}.counter-icon{background:#213346;border:1px solid #6f849a;border-radius:50%;justify-content:center;align-items:center;min-width:19px;height:19px;font-size:11px;font-weight:800;display:inline-flex}.counter-VOL{color:#ffe38a;background:#47391a;border-color:#e7c759}.counter-α{color:#ffadb5;background:#521f25;border-color:#e0606d}.counter-β{color:#9ce9ff;background:#183f50;border-color:#55c8ec}.counter-Ω{color:#d7b7ff;background:#392452;border-color:#a77ae0}.counter-group-VOL{color:#ffe38a;background:#47391a;border-color:#e7c759}.counter-group-α{color:#ffadb5;background:#521f25;border-color:#e0606d}.counter-group-β{color:#9ce9ff;background:#183f50;border-color:#55c8ec}.counter-group-Ω{color:#d7b7ff;background:#392452;border-color:#a77ae0}.field-layout{grid-template-rows:72px minmax(0,1fr) 72px;grid-template-columns:minmax(0,1fr) 112px;gap:5px;height:calc(100% - 24px);min-height:0;display:grid}.playmat.opponent .field-hand{grid-area:1/1}.playmat.opponent .artist-stage{grid-area:2/1/span 3}.playmat.opponent .field-side{grid-area:1/2/span 3}.playmat.self .artist-stage{grid-area:1/1/span 2}.playmat.self .field-hand{grid-area:3/1}.playmat.self .field-side{grid-area:1/2/span 3}.field-hand,.field-deck,.field-trash,.field-used-magic,.artist-slot,.direction-slot{background:#0e1622;border:1px solid #304053;border-radius:6px;min-height:0;padding:3px;overflow:hidden}.field-hand{position:relative}.field-hand h3,.field-deck h3,.field-trash h3{justify-content:space-between;margin:0 0 2px;font-size:12px;display:flex}.hand-count{color:#c4d0de;z-index:3;background:#182433dd;border-radius:999px;padding:0 6px;line-height:18px;position:absolute;top:3px;right:3px}.field-hand .pieces{overscroll-behavior-x:contain;touch-action:pan-x;flex-wrap:nowrap;justify-content:safe center;height:100%;overflow:auto hidden}.field-hand .piece{touch-action:pan-x;flex:0 0 42px;width:42px;height:100%}.field-hand .piece img{object-fit:contain;height:100%}.playmat.self .field-hand .piece{flex-basis:50px;width:50px}.playmat.opponent .field-hand{max-height:38px}.field-hand .back{width:26px;height:42px}.field-deck{flex-direction:column;align-items:center;display:flex;position:relative}.field-side{grid-template-rows:76px 48px minmax(0,1fr) 49px;gap:5px;min-height:0;display:grid}.field-noise{background:#111b2b;border:1px solid #6d5d96;border-radius:6px;min-height:0;padding:2px 3px;overflow:hidden}.noise-heading{justify-content:space-between;align-items:center;line-height:17px;display:flex}.noise-heading small{color:#d8c5ff;white-space:nowrap;font-size:10px;font-weight:700}.noise-heading button{min-height:17px;padding:0 2px;font-size:9px}.noise-cards{gap:2px;min-height:24px;display:flex;overflow-x:auto}.noise-cards .noise-back{flex:0 0 16px;width:16px;height:22px;padding:0}.blind-card{padding:0}.field-used-magic{border-color:#8a67bd;min-height:0;position:relative;box-shadow:inset 0 0 18px #6c42a826}.field-used-magic>small{color:#d7b7ff;text-align:center;font-size:10px;line-height:12px;display:block}.used-magic-cards{justify-content:center;height:calc(100% - 12px);display:flex}.used-magic-cards .piece{width:38px;height:100%;margin:0 -4px}.used-magic-cards .piece img{object-fit:contain;height:100%}.field-trash{border-color:#b79348;min-height:0;box-shadow:inset 0 0 18px #b793481a}.trash-inspect{color:#ecd58d;background:linear-gradient(145deg,#29313c,#151c25);border:1px solid #8a7546;flex-direction:column;justify-content:center;align-items:center;gap:3px;width:100%;height:100%;padding:4px 2px;display:flex}.trash-inspect span{white-space:nowrap;font-size:9px;line-height:1.1}.trash-inspect b{font-size:12px}.field-deck h3{text-align:center;align-self:stretch;font-size:14px;line-height:24px}.field-deck .back{width:48px;height:76px}.deck-draw-button{z-index:5;min-height:22px;padding:2px 5px;font-size:9px;position:absolute;top:3px;left:3px;right:3px}.deck-count-overlay{color:#fff;pointer-events:none;z-index:5;background:#08101de8;border:1px solid #91e6d4;border-radius:999px;padding:5px 8px;font-size:14px;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 7px #000c}.solo-side-switch{gap:5px;display:flex}.solo-side-switch button{min-height:30px;padding:4px 8px;font-size:11px}.deck-bottom-target{color:#c4d0de;text-align:center;z-index:4;background:#182433;border:1px dashed #718094;border-radius:4px;min-height:30px;font-size:12px;font-weight:800;line-height:28px;position:absolute;bottom:3px;left:3px;right:3px}@media (width>=651px){.deck-bottom-target{width:100%;margin-top:4px;position:static}.playmat.self .artist-stage,.playmat.opponent .artist-stage{align-self:end;height:169px}}.artist-stage{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-height:0;display:grid}.artist-lane{grid-template-rows:92px 74px;gap:3px;min-height:0;display:grid}.artist-slot{border-color:#5d788e;position:relative}.artist-card-stack{z-index:2;justify-content:center;align-items:flex-start;min-height:0;display:flex;position:absolute;inset:18px 3px auto}.artist-card-stack .piece img{object-fit:contain;height:auto}.artist-songs{pointer-events:auto;z-index:3;justify-content:center;align-items:end;height:48%;display:flex;position:absolute;bottom:0;left:0;right:0}.artist-songs .piece:first-child{transform:translate(-7%,9%)}.artist-songs .piece:nth-child(2){transform:translate(7%,9%)}.artist-songs .piece img{object-fit:contain;height:100%}.song-touch-target{color:#e2fff7;z-index:8;background:#153f3be8;border:2px solid #91e6d4;border-radius:5px;width:55%;min-height:34px;padding:2px;font-size:10px;font-weight:800;position:absolute;bottom:2px;right:1px}.selected-card-overview{gap:12px;margin:8px 0;display:flex}.selected-card-overview img{align-self:flex-start;max-width:85px}.selected-card-overview p{white-space:pre-wrap;max-height:90px;margin:5px 0;font-size:12px;overflow:auto}.stage-swap-options{border:1px solid #5b7892;border-radius:8px;margin:10px 0;padding:8px}.stage-swap-options h3{margin:0 0 6px;font-size:14px}.artist-lane .piece{z-index:1;width:auto;max-width:76px;height:100%}.artist-lane .piece img{object-fit:contain;width:100%;height:100%}.artist-card-stack .piece{aspect-ratio:5/7;z-index:2;flex:none;width:50px;max-width:min(50px,100%);height:auto}.artist-card-stack .piece img{height:auto}.artist-songs .piece{z-index:3;width:50px;max-width:min(50px,100%);height:100%;margin:0 -5px}.direction-slot{z-index:4;justify-content:center;align-items:center;gap:3px;display:flex;position:relative;overflow:visible}.direction-slot>small{color:#718094;font-size:12px;position:absolute}.direction-slot .piece{aspect-ratio:5/7;width:50px;max-width:min(50px,100%);height:auto;max-height:none}.direction-slot .piece img{object-fit:contain;height:auto}.attach-slot{z-index:1;background:0 0;border:0;justify-content:center;align-items:flex-start;height:52%;padding:0;display:flex;position:absolute;top:4px;left:8%;right:8%;overflow:visible}.attach-slot .piece{aspect-ratio:5/7;z-index:1;flex:none;width:50px;max-width:min(50px,100%);height:auto;margin:0 -12%}.attach-slot .piece img{height:auto}.deck-effect-dialog{max-width:920px}.deck-effect-dialog .count-picker{max-width:90px;margin-left:10px}.deck-action-menu{gap:10px;display:grid}.trash-card-item{position:relative}.trash-card-badge{color:#fff;pointer-events:none;z-index:2;background:#08101de8;border:1px solid #91e6d4;border-radius:999px;padding:4px 6px;font-size:11px;font-weight:700;line-height:1;position:absolute;bottom:6px;right:6px;box-shadow:0 2px 7px #000c}.trash-view-toggle{margin:12px 0}.card-grid.trash-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.deck-effect-cards{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;max-height:58vh;margin:12px 0;display:grid;overflow-y:auto}.deck-effect-card{background:#101a28;border:1px solid #34465b;border-radius:7px;padding:5px}.deck-effect-card .card-image,.deck-effect-card select{width:100%}.deck-effect-card select{margin-top:4px;padding:5px 2px}.deck-order-buttons{grid-template-columns:repeat(2,1fr);gap:3px;margin-top:4px;display:grid}.waiting{color:#bdeedb;background:#20372f;padding:18px}.getting-started{max-width:1100px;padding-top:34px}.guide-heading{justify-content:space-between;align-items:center;gap:24px;display:flex}.guide-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px;display:grid}.guide-columns article{padding:22px}.guide-role{color:#91e6d4;letter-spacing:.12em;margin:0 0 18px;font-size:13px;font-weight:700}.guide-role.friend{color:#d49ef1}.guide-steps{counter-reset:guide-step;margin:0;padding:0;list-style:none}.guide-steps li{counter-increment:guide-step;border-top:1px solid #304054;padding:16px 4px 16px 42px;position:relative}.guide-steps li:before{color:#b6f1e4;content:counter(guide-step);background:#263e43;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:flex;position:absolute;top:14px;left:3px}.guide-steps p{color:#9aabc0;margin:5px 0 8px;font-size:14px;line-height:1.65}.guide-steps button{padding:6px 10px;font-size:13px}.invite-manager{gap:8px;margin-top:10px;display:grid}.invite-manager input{margin-top:4px}.issued-invite{background:#18342f;border:1px solid #5aa891;border-radius:8px;gap:8px;padding:10px;display:grid}.issued-invite code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.issued-invite small{color:#b5c9c3;font-size:12px;line-height:1.5}.guide-steps .invite-copy{color:#0b191a;background:#91e6d4}.code-note{background:#1d2938;border:1px solid #52667e;border-radius:10px;margin-top:20px;padding:16px 20px}.code-note p{color:#b7c5d5;margin:6px 0 0;font-size:14px}.code-note strong{color:#ebf2fa;margin-left:8px}.code{overflow-wrap:anywhere;display:block}.footnote{font-size:14px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #e7cf87}@media (width<=900px){.builder{grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:1fr;gap:5px;height:100%;min-height:0;display:grid}.guide-heading{flex-direction:column;align-items:flex-start}.guide-columns{grid-template-columns:1fr}.deck-panel{grid-row:1;height:100%;max-height:100%;padding:8px;position:static}.deck-card-list{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));max-height:none}.deck-panel .deck-editor-heading>label{font-size:11px}.deck-panel .deck-editor-heading>label input{margin:3px 0 5px;padding:5px 8px}.deck-panel .deck-editor-heading>.toolbar h2{margin:2px 0;font-size:18px}.deck-panel .deck-editor-heading>.toolbar button{padding:5px 9px}.deck-panel>.muted{display:none}.builder>div:first-child{overscroll-behavior:contain;touch-action:pan-y;grid-row:2;width:100%;min-width:0;max-width:100%;min-height:0;overflow:hidden auto}.builder>div:first-child>*{min-width:0;max-width:100%}.builder>div:first-child>.card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;overflow-x:clip}.builder>div:first-child>.card-grid .card{gap:3px;min-width:0;padding:3px}.builder>div:first-child>.card-grid .card h3{font-size:10px;line-height:1.2}.builder>div:first-child>.card-grid .card small{display:none}.builder>div:first-child>.card-grid .card>button:last-child{padding:5px 2px;font-size:10px}.builder>div:first-child>.card-grid .favorite{width:23px;height:23px;font-size:15px;top:5px;right:5px}.builder>div:first-child .filter-panel{z-index:7;background:#141e2c;margin-bottom:8px;padding:5px;position:sticky;top:0}.builder .mobile-filter-toggle{z-index:8;background:#91e6d4;justify-content:space-between;align-items:center;width:100%;padding:5px 9px;font-size:12px;line-height:1.1;display:flex;position:sticky;top:0}.builder .mobile-filter-toggle span{font-size:11px;font-weight:400}.builder .filter-panel:not(.mobile-open)>:not(.mobile-filter-toggle){display:none}.builder .filter-panel.mobile-open .search-line{margin-top:6px}.builder .filter-panel.mobile-open{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;max-height:100%;overflow-y:auto}.builder .filter-panel.mobile-open .choices{max-height:none;overflow:visible}main:has(.builder) header{height:32px;padding:3px 2%}main:has(.builder) header small{display:none}main:has(.builder) nav{flex-wrap:nowrap;gap:5px;height:38px;padding:3px 2%;overflow-x:auto}main:has(.builder) nav button{white-space:nowrap;padding:4px 8px;font-size:12px}main:has(.builder) nav a{display:none}main:has(.builder) .notice{display:none}main:has(.builder) section>.toolbar{display:none}main:has(.builder) section>.muted{display:none}main:has(.builder) footer{display:none}main:has(.builder) section{height:calc(100dvh - 70px);padding:5px}main:has(.builder) .deck-row .link{display:none}.detail-close{min-height:44px;padding:8px 14px;font-size:16px}.table-section{height:100svh;padding-inline:6px}.table-section>details.saved{z-index:auto;flex:none;width:100%;max-width:none;max-height:min(45svh,260px);margin:6px 0 0;position:static;bottom:auto;right:auto}.battle-board{flex-basis:608px;grid-template-rows:repeat(2,minmax(300px,1fr))}.zones{grid-template-columns:.65fr repeat(8,minmax(48px,1fr))}.table-section>.toolbar button{padding:3px 6px;font-size:12px}.table-section>.code{display:none}.playmat{padding:5px}.playmat>.toolbar{grid-template-columns:34px repeat(4,minmax(0,1fr));width:100%;display:grid}.playmat>.toolbar h2{margin:0;font-size:13px}.counter{justify-content:center;gap:1px;min-width:0;padding:1px}.counter-icon{min-width:17px;height:17px;font-size:10px}.counter b{min-width:13px;font-size:14px}.field-layout{grid-template-rows:60px minmax(0,1fr) 60px;grid-template-columns:minmax(0,1fr) 82px}.field-side{grid-template-rows:48px 36px minmax(72px,1fr) 48px}.noise-heading small,.noise-heading button{font-size:8px}.noise-count{display:none}.field-used-magic>small{font-size:8px;line-height:9px}.used-magic-cards{height:calc(100% - 9px)}.used-magic-cards .piece{width:28px}.trash-inspect{flex-direction:row;justify-content:space-around;font-size:9px}.trash-inspect b{font-size:11px}.field-deck h3{display:flex}.deck-effect-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.deck-effect-card{padding:3px}.deck-effect-card select{font-size:11px}.artist-stage{gap:2px}.opening-dice-panel,.dice-strip{gap:3px 7px;padding:3px 5px}.song-touch-target{width:62%;min-height:32px;font-size:9px}.artist-lane{grid-template-rows:78px 60px;gap:2px}.field-hand .piece{width:40px}.artist-card-stack .piece,.artist-songs .piece,.attach-slot .piece,.direction-slot .piece{width:40px;max-width:min(40px,100%)}.counter button{min-width:18px;padding:0 2px;font-size:11px;line-height:18px}.detail{grid-template-columns:1fr}.detail img{max-width:100%}.toolbar{gap:8px}nav a{margin-left:0}.card-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}}@media (width<=650px){.overlay:has(.card-detail-dialog){align-items:flex-start;padding:4px}.overlay>.card-detail-dialog{border-radius:8px;width:100%;max-height:calc(100dvh - 8px);padding:8px}.card-detail-dialog .detail{gap:12px;margin-top:4px}.card-detail-dialog .detail img{width:100%;max-width:none;height:auto;display:block}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.filter-panel{background:#141e2c;border:1px solid #314153;border-radius:10px;margin-bottom:24px;padding:18px}.mobile-filter-toggle{display:none}.search-line{gap:10px;display:flex}.search-line input{flex:1;min-width:0}.search-line select{width:auto}.check{cursor:pointer;align-items:center;gap:8px;font-size:14px;display:flex}.check input{accent-color:#91e6d4;width:18px;height:18px;margin:0}.result-count{color:#91e6d4;white-space:nowrap;margin-left:auto}.filter-chips{flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}.chip{color:#b6f1e4;background:#263e43;padding:6px 10px;font-size:12px;font-weight:400}.filter-groups>p{font-size:13px}.filter-groups fieldset{border:0;border-top:1px solid #334052;margin:20px 0;padding:18px 0}.filter-groups legend{padding-right:14px;font-size:16px;font-weight:700}.filter-groups legend small{margin-left:12px;font-size:12px;font-weight:400}.choices{flex-wrap:wrap;gap:8px;max-height:240px;margin-top:12px;display:flex;overflow:auto}.choice{color:#c8d5e5;text-align:left;background:#101a28;border:1px solid #435367;padding:8px 12px;font-size:14px;font-weight:400}.choice.selected{color:#0b191a;background:#91e6d4;border-color:#91e6d4}.sort-line{justify-content:flex-end;display:flex}.sort-line label{color:#aebdd0;align-items:center;gap:10px;display:flex}.sort-line select{width:auto;margin:10px 0 0;padding:8px}.card{position:relative}.favorite{z-index:1;color:#ffe1a0;background:#101a28e8;border-radius:50%;width:34px;height:34px;padding:3px;font-size:24px;position:absolute;top:16px;right:16px}.favorite[aria-pressed=true]{color:#ffd275;background:#423823}@media (width<=650px){.deck-panel .deck-delete-button{flex:none;align-self:flex-end;width:auto;min-height:24px;margin:3px 0 0 auto;padding:3px 8px;font-size:10px}.card-search-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.card-search-grid .library-search-card{gap:3px;min-width:0;padding:3px}.card-search-grid .favorite{width:23px;height:23px;font-size:15px;top:5px;right:5px}.card-search-grid .inventory-badge{min-width:22px;min-height:22px;padding:3px;font-size:10px;bottom:4px;right:4px}.card-search-grid .inventory-controls{grid-template-columns:24px minmax(0,1fr) 24px;gap:2px;margin-top:2px}.card-search-grid .inventory-controls button{min-height:26px;font-size:16px}.card-search-grid .inventory-controls span{font-size:9px;line-height:1.1}.card-search-grid .library-search-card>small{text-overflow:ellipsis;white-space:nowrap;font-size:8px;overflow:hidden}.public-deck-list{grid-template-columns:1fr}.public-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.public-deck-preview{padding:14px}main:has(.builder) header{display:none}main:has(.builder) section{height:calc(100dvh - 38px)}main:has(.builder) .builder{grid-template-rows:minmax(0,3fr) minmax(0,2fr)}main:has(.builder) .deck-card-list{flex:1 1 0;grid-auto-rows:calc(50% - 2px);gap:4px}main:has(.builder) .deck-row{grid-template-rows:minmax(0,1fr);gap:3px;min-height:0;padding:3px;overflow:hidden}main:has(.builder) .deck-card-preview{height:100%;min-height:0}main:has(.builder) .deck-card-preview img{height:100%;min-height:0}main:has(.builder) .deck-quantity button{min-height:28px}.search-line{flex-direction:column;gap:0}.search-line input{margin-bottom:8px}.search-line select{margin-top:0}.filter-panel{padding:12px}.result-count{margin-left:0}.choices{max-height:300px}.choice{font-size:14px}.filter-panel .toolbar{gap:14px}}.entrance{max-width:640px;padding-top:70px}.entrance article{margin:30px 0}.entrance input{letter-spacing:.03em}.toast{z-index:1000;color:#fff;background:#111d;border:1px solid #fff5;border-radius:999px;padding:8px 16px;font-size:13px;position:fixed;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 4px 18px #0006}@media (width>=901px){main:has(.builder)>header{padding:5px clamp(18px,2.5vw,48px);font-size:12px}main:has(.builder)>header small{font-size:11px}main:has(.builder)>nav{gap:8px;padding:5px clamp(18px,2.5vw,48px)}main:has(.builder)>nav button{padding:5px 9px;font-size:12px}main:has(.builder)>section{width:100%;max-width:none;padding:8px clamp(18px,2.5vw,48px) 16px}:is(main:has(.builder)>section>.toolbar,main:has(.builder)>section>.muted){max-width:none}main:has(.builder)>section>.toolbar .eyebrow{display:none}main:has(.builder)>section>.toolbar h1{margin:0;font-size:20px}main:has(.builder)>section>.toolbar>button{padding:5px 9px;font-size:12px}main:has(.builder)>section>.muted{margin:3px 0 6px;font-size:11px}.builder{grid-template-columns:minmax(0,1.55fr) minmax(430px,.85fr);align-items:start;gap:clamp(18px,2vw,34px);width:100%}.builder>div:first-child{min-width:0}.builder>div>.card-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}.deck-panel{width:100%;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);padding:16px;top:20px}.deck-card-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.filter-panel{margin-bottom:16px;padding:16px}.builder :where(button,input,select,label,p,small,summary,.deck-row .link b,.deck-row .link small,.deck-quantity span,.chip,.choice,.check,.result-count,.filter-groups>p,.filter-groups legend,.filter-groups legend small){font-size:13px}.builder .favorite{font-size:18px}.builder .filter-panel{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;margin-bottom:10px;padding:10px 12px;display:grid}.builder .filter-panel>.search-line{grid-area:1/1/auto/-1}.builder .filter-panel>.toolbar{grid-area:2/1;gap:8px}.builder .filter-panel>.sort-line{grid-area:2/2;align-self:center}.builder .filter-panel>.filter-chips,.builder .filter-panel>.filter-groups{grid-column:1/-1}.builder .filter-panel>.filter-chips:empty{display:none}.builder .filter-chips{margin-top:0}.builder .search-line input,.builder .search-line select,.builder .sort-line select{margin:0;padding:7px 9px}.builder .filter-panel>.toolbar button{padding:6px 9px}.builder .deck-editor-heading{flex:none;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-bottom:10px;display:grid}.builder .deck-editor-heading input{margin:4px 0 0;padding:7px 9px}.builder .deck-editor-heading .toolbar{gap:8px}.builder .deck-editor-heading h2{margin:0;font-size:20px}.builder .deck-editor-heading button{padding:7px 10px}.builder .deck-panel>.muted{display:none}.builder .deck-panel{padding:10px}.builder>div>.card-grid,.builder .deck-card-list{gap:6px}.builder>div>.card-grid .card,.builder .deck-row{padding:3px}}@media (width<=650px){.playmat>.toolbar{grid-template-columns:54px repeat(4,minmax(0,1fr))}.playmat>.toolbar h2{white-space:nowrap;align-items:center;gap:2px;font-size:10px;display:flex}.player-order-badge{flex-shrink:0;margin-left:0;padding:0 3px;font-size:10px;line-height:14px}.player-order-suffix{display:none}.field-side{grid-template-rows:40px 30px minmax(100px,1fr) 40px;gap:3px}.field-deck{min-height:100px}.field-deck .deck-bottom-target{min-height:22px;line-height:20px}.solo-mode .field-layout{grid-template-rows:140px minmax(78px,1fr);gap:3px;height:calc(100% - 32px)}.solo-mode .playmat.self .artist-stage{grid-row:1}.solo-mode .playmat.self .field-hand{grid-row:2}.solo-mode .playmat.opponent .field-layout{grid-template-rows:minmax(78px,1fr) 140px}.solo-mode .playmat.opponent .artist-stage{grid-row:2}.solo-mode .playmat .field-side{grid-row:1/span 2}.solo-mode .playmat .field-hand{max-height:none}.solo-mode .playmat .field-hand .piece{flex:0 0 50px;width:50px;min-width:0}}@media (width>=651px) and (width<=900px){.battle-board{flex:auto;grid-template-rows:repeat(2,minmax(320px,1fr))}.field-layout{grid-template-rows:82px minmax(0,1fr) 82px}.playmat.self .artist-stage,.playmat.opponent .artist-stage{align-self:stretch;height:100%}.artist-lane{grid-template-rows:repeat(2,minmax(0,1fr))}.artist-card-stack{align-items:stretch;bottom:3px}.attach-slot{height:auto;bottom:17px}.artist-card-stack .piece,.attach-slot .piece{width:auto;max-width:min(clamp(64px,12vw,108px),100%);height:100%}.artist-card-stack .piece img,.attach-slot .piece img{object-fit:contain;width:auto;max-width:100%;height:100%}.artist-songs .piece{width:clamp(48px,7vw,70px);max-width:min(clamp(48px,7vw,70px),100%)}.direction-slot{padding:3px;overflow:hidden}.direction-slot .piece{width:auto;max-width:min(clamp(64px,12vw,108px),100%);height:100%}.direction-slot .piece img{object-fit:contain;width:auto;max-width:100%;height:100%}.playmat.self .field-hand .piece,:is(.solo-mode,.spectator-mode) .playmat.opponent .field-hand .piece{flex-basis:56px;width:56px}:is(.solo-mode,.spectator-mode) .playmat.opponent .field-hand{max-height:none}}@media (width>=1500px){.builder{grid-template-columns:minmax(0,1.7fr) minmax(600px,.9fr)}.builder>div>.card-grid{grid-template-columns:repeat(auto-fill,minmax(126px,1fr))}.deck-card-list{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (width>=901px){.table-section{width:100%;max-width:1800px;padding-inline:12px}.field-layout{grid-template-rows:96px minmax(0,1fr) 96px}.playmat.self .artist-stage,.playmat.opponent .artist-stage{align-self:stretch;height:100%}.artist-lane{grid-template-rows:repeat(2,minmax(0,1fr))}.artist-card-stack{align-items:stretch;bottom:3px}.attach-slot{height:auto;bottom:17px}.artist-card-stack .piece,.attach-slot .piece{width:auto;max-width:min(clamp(82px,9vw,138px),100%);height:100%}.artist-card-stack .piece img,.attach-slot .piece img{object-fit:contain;width:auto;max-width:100%;height:100%}.artist-songs .piece{width:clamp(68px,6.5vw,100px);max-width:min(clamp(68px,6.5vw,100px),100%)}.direction-slot{padding:3px;overflow:hidden}.direction-slot .piece{width:auto;max-width:min(clamp(82px,9vw,138px),100%);height:100%}.direction-slot .piece img{object-fit:contain;width:auto;max-width:100%;height:100%}.playmat.self .field-hand .piece{flex-basis:66px;width:66px}:is(.solo-mode,.spectator-mode) .playmat.opponent .field-hand{max-height:none}:is(.solo-mode,.spectator-mode) .playmat.opponent .field-hand .piece{flex-basis:66px;width:66px}.table-section>details.saved{z-index:20;max-width:none;max-height:none;padding:0;position:fixed;top:50%;bottom:auto;right:0;overflow:visible;transform:translateY(-50%)}.table-section>details.saved>summary{color:#d8fff7;writing-mode:vertical-rl;background:#203b3a;border:1px solid #579b91;border-radius:7px 0 0 7px;padding:12px 7px;font-size:13px;font-weight:800;list-style:none}.table-section>details.saved>summary::-webkit-details-marker{display:none}.table-section>details.saved[open]{background:#141e2cf7;border-left:1px solid #579b91;width:min(430px,100vw);height:100dvh;padding:12px;top:0;bottom:0;overflow-y:auto;transform:none}.table-section>details.saved[open]>summary{writing-mode:horizontal-tb;z-index:2;border-radius:6px;width:max-content;margin:0 0 10px auto;padding:8px 12px;position:sticky;top:0}}
