:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f6efe2;background:#111313;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 20% 0%,rgba(75,115,93,.32),transparent 34rem),linear-gradient(180deg,#18201d,#111313 48%,#181411)}button{border:1px solid rgba(246,239,226,.16);border-radius:8px;padding:.62rem .75rem;color:#f6efe2;background:#252622;font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:linear-gradient(180deg,#e9b85e,#9f6730);color:#1b1309;border-color:#ffe2917a;font-weight:800}.small{padding:.5rem .75rem}.app-shell{width:min(100%,520px);margin:0 auto;min-height:100vh;padding:.75rem .75rem 2rem}.run-header{position:sticky;top:0;z-index:5;margin:-.75rem -.75rem .75rem;padding:.8rem .75rem .7rem;background:#101211eb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(246,239,226,.12)}.title-block{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.eyebrow{color:#b8d7bd;font-size:.72rem;letter-spacing:0;text-transform:uppercase}h1,h2,p{margin:0}h1{font-size:1.45rem}.run-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin:.65rem 0}.run-stats span{background:#ffffff0f;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.45rem .35rem;text-align:center;font-size:.72rem}.run-stats strong{display:block;font-size:.94rem}.header-actions,.row-actions,.shop-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.message{color:#d6cbb7;font-size:.83rem;margin-top:.55rem;line-height:1.35}.panel{background:#202320e0;border:1px solid rgba(246,239,226,.12);border-radius:8px;padding:.75rem;margin-bottom:.75rem;box-shadow:0 12px 26px #0000003d}.planning-layout,.board-stack,.bench-stack,.shop-column{display:grid;gap:.75rem;align-content:start}.planning-layout{margin-bottom:.75rem}.board-stack{order:1}.bench-stack{order:2}.shop-column{order:3}.planning-layout .panel{margin-bottom:0}.section-title{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:.6rem}.section-title span{font-weight:800}.section-title small,.hint,.muted{color:#a9a08f;font-size:.78rem}.fight-title-actions{display:flex;align-items:center;gap:.45rem}.battle-skip{padding:.32rem .55rem;font-size:.76rem;border-color:#e9b85e52}.shop-xp-box{margin-bottom:.6rem;padding:.55rem;border:1px solid rgba(233,184,94,.18);border-radius:8px;background:#0000002e}.shop-xp-label{display:flex;justify-content:space-between;gap:.6rem;align-items:baseline;font-size:.78rem;color:#d8cebb}.shop-xp-label span{font-weight:800;color:#f3d073}.shop-xp-label b{font-size:.72rem;color:#a9a08f;text-align:right}.shop-xp-track{height:.48rem;margin-top:.45rem;border-radius:999px;background:#f6efe214;overflow:hidden}.shop-xp-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#7fcda9,#f3d073);transition:width .18s ease}.shop-xp-meta{display:flex;justify-content:space-between;gap:.6rem;margin-top:.4rem;color:#a9a08f;font-size:.72rem}.xp-buy-button{display:inline-flex;align-items:center;gap:.45rem}.xp-buy-button b{color:#f3d073;font-size:.8rem}.board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(112px,1fr));gap:.5rem}.board-rule{margin:-.2rem 0 .55rem;color:#bfb4a3;font-size:.74rem;line-height:1.25}.flex-toggle{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.35rem;margin:-.1rem 0 .55rem;border-radius:8px;padding:.4rem;background:#00000029}.flex-toggle span{color:#d6cbb7;font-size:.76rem;font-weight:800}.flex-toggle span small{display:block;color:#9f9586;font-size:.66rem;font-weight:700}.flex-toggle button{padding:.38rem .55rem;font-size:.75rem}.flex-slot{outline:1px solid rgba(121,228,255,.18);outline-offset:-2px}.board-slot{position:relative;min-height:112px}.board-slot.drop-target .card,.board-slot.drop-target .empty-slot,.bench-card-shell.drop-target .card,.bench-empty.drop-target{outline:2px solid #7fcda9;box-shadow:0 0 0 4px #7fcda92e}.sell-drop-zone.drop-target{outline:2px solid #ffd37b;box-shadow:0 0 0 5px #ffa94038,0 20px 45px #00000073;transform:translate(-50%) scale(1.035)}.slot-badge{position:absolute;z-index:2;top:.25rem;left:.25rem;border-radius:999px;padding:.12rem .42rem;font-size:.63rem;font-weight:900;background:#0000006b;color:#f6efe2}.unit-slot .empty-slot,.carry-slot .empty-slot{border-color:#f4be4a6b;background:#7c521b29}.support-slot .empty-slot{border-color:#70b7d257;background:#1b516021}.empty-slot,.bench-empty{width:100%;height:100%;min-height:96px;border:1px dashed rgba(246,239,226,.2);background:#ffffff09;color:#a9a08f;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.25rem}.card{position:relative;width:100%;min-height:116px;display:flex;flex-direction:column;gap:.25rem;text-align:left;overflow:hidden;isolation:isolate;-webkit-user-select:none;user-select:none}.draggable-card{touch-action:none}.card:before{content:"";position:absolute;inset:0;opacity:.12;background:linear-gradient(135deg,#fff,transparent);z-index:-1}.card-compact{min-height:96px;padding:.55rem}.board-grid .card-compact{min-height:112px;padding:.48rem}.card-topline,.card-stats,.card-tags{display:flex;flex-wrap:wrap;gap:.28rem;align-items:center}.card-topline{justify-content:space-between}.card-rarity,.card-level,.card-tags span,.card-stats span,.perm-line{border-radius:999px;background:#00000038;padding:.13rem .38rem;font-size:.66rem}.card-stats{margin-top:.05rem}.card-title{font-weight:900;font-size:.92rem;line-height:1.05}.card p{color:#dfd5c4;font-size:.74rem;line-height:1.22}.price{color:#ffd37a;font-weight:800}.frozen-card{outline:2px solid rgba(136,212,255,.9);box-shadow:0 0 0 3px #4a9cd42e}.frozen-chip{color:#b9ecff;border:1px solid rgba(156,219,255,.3)}.perm-line{color:#a9efc1}.info-dot{position:absolute;right:.35rem;bottom:.35rem;width:1.25rem;height:1.25rem;display:grid;place-items:center;border-radius:50%;background:#ffffff2e;font-weight:800;font-size:.7rem}.rarity-common{border-color:#c2c7c373;background:#373b37}.rarity-rare{border-color:#5e9cf594;background:#26364b}.rarity-epic{border-color:#b570f19e;background:#3a2847}.rarity-legendary{border-color:#f4be4abf;background:#4a3518}.rarity-mythic{border-color:#7ef2e1d1;background:#143d3d}.element-wind{box-shadow:inset 4px 0 #56caa4}.element-feuer{box-shadow:inset 4px 0 #ee704b}.element-licht{box-shadow:inset 4px 0 #efd477}.element-finsternis{box-shadow:inset 4px 0 #9d74ee}.selected,.slot-selected .card{outline:2px solid #f3d073;transform:translateY(-1px)}.upgrade-target,.slot-upgrade .card{outline:2px solid #79e4ff;animation:pulse 1.1s infinite}.bench-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}.bench-card-shell{min-width:0}.drag-card-preview{position:fixed;z-index:50;width:min(220px,48vw);transform:translate(-50%,-50%) rotate(1.2deg);pointer-events:none;filter:drop-shadow(0 18px 26px rgba(0,0,0,.46))}.drag-card-preview .card{opacity:.94;border-color:#f3d073e6}.sell-drop-zone{position:fixed;left:50%;bottom:max(.85rem,env(safe-area-inset-bottom));z-index:45;width:min(92vw,420px);min-height:74px;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"label value" "name value";align-items:center;gap:.12rem .8rem;padding:.8rem 1rem;border:1px solid rgba(255,196,103,.42);border-radius:14px;background:radial-gradient(circle at 10% 10%,rgba(255,215,121,.2),transparent 16rem),linear-gradient(135deg,#5c231bf7,#221613f5);color:#f8e1b3;text-align:left;transform:translate(-50%);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;touch-action:none}.sell-drop-zone span{grid-area:label;font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#ffd37b}.sell-drop-zone strong{grid-area:value;justify-self:end;font-size:1.55rem;line-height:1;color:#ffe0a0}.sell-drop-zone small{grid-area:name;color:#d8c3a4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sell-drop-zone.zero-value{border-color:#adb3b052;background:linear-gradient(135deg,#303130f7,#161717f5);color:#d4d0c8}.sell-drop-zone.zero-value span,.sell-drop-zone.zero-value strong{color:#c7c1b4}.bench-empty{min-height:96px;font-size:.75rem}.upgrade-banner{margin-bottom:.55rem;color:#98e8ff;font-weight:800;font-size:.85rem}.oath-row{margin-bottom:.55rem;border-radius:8px;padding:.45rem .55rem;color:#f3d073;background:#00000038;font-size:.78rem;line-height:1.3}.synergy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.synergy-card{border-radius:8px;padding:.55rem;background:#0000002e;border:1px solid rgba(246,239,226,.08)}.synergy-card.active{border-color:#9bde9b8c;background:#3f694538}.synergy-card div{display:flex;justify-content:space-between}.synergy-card small{display:block;margin-top:.25rem;color:#d4c9b9;line-height:1.25}.shop-list{display:grid;gap:.55rem}.shop-offer{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:stretch}.shop-bought-placeholder{min-height:96px;border:1px dashed rgba(246,239,226,.22);border-radius:8px;padding:.65rem;display:grid;align-content:center;gap:.2rem;color:#bfb4a3;background:#00000029}.shop-bought-placeholder strong{color:#f3d073}.shop-bought-placeholder span,.shop-bought-placeholder small{font-size:.76rem;line-height:1.25}.shop-bought-placeholder small{color:#9f9586}.shop-offer-actions{min-width:86px;display:flex;flex-direction:column;gap:.35rem}.shop-offer-actions button{flex:1;padding:.42rem .5rem;font-size:.76rem}.odds-menu{position:relative}.odds-menu summary{list-style:none;border:1px solid rgba(246,239,226,.16);border-radius:8px;padding:.5rem .75rem;background:#252622;cursor:pointer;font-size:.88rem}.odds-menu summary::-webkit-details-marker{display:none}.odds-popover{position:absolute;z-index:8;right:0;top:calc(100% + .4rem);width:190px;border:1px solid rgba(246,239,226,.16);border-radius:8px;padding:.65rem;background:#121412f7;box-shadow:0 16px 32px #00000061}.odds-popover strong{display:block;margin-bottom:.4rem;font-size:.78rem}.odds-row{display:flex;justify-content:space-between;gap:.75rem;padding:.16rem 0;font-size:.74rem}.rarity-text-common{color:#d8ddd7}.rarity-text-rare{color:#90bfff}.rarity-text-epic{color:#d5a6ff}.rarity-text-legendary{color:#ffd77d}.rarity-text-mythic{color:#8ffff0}.active-toggle{background:#516643}.bought{opacity:.45}.fight-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-bottom:.55rem}.hp-box{border-radius:8px;padding:.5rem;background:#0000002e}.hp-label{display:flex;justify-content:space-between;gap:.4rem;font-size:.76rem;margin-bottom:.35rem}.hp-track,.cd-track{height:.46rem;overflow:hidden;border-radius:999px;background:#0000005c}.hp-fill{height:100%;background:linear-gradient(90deg,#d95548,#f3d073,#8ee6a2);transition:width .1s linear}.hp-box small{display:block;margin-top:.25rem;color:#b8ac9c;font-size:.7rem}.doom-indicator{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:.45rem;margin:-.1rem 0 .55rem;border:1px solid rgba(243,208,115,.26);border-radius:8px;padding:.42rem .55rem;background:#180f0f8f;color:#f4e4cf;font-size:.74rem}.doom-indicator span{color:#f3d073;font-weight:900}.doom-indicator strong{border-radius:999px;padding:.1rem .38rem;background:#d9554838;color:#ffd3c9;font-size:.72rem}.doom-indicator small{min-width:0;color:#c9b9aa;font-size:.68rem}.doom-active{border-color:#d9554885;box-shadow:inset 0 0 20px #d9554814}.replay-event{min-height:2rem;margin-bottom:.6rem;border-radius:8px;padding:.45rem .55rem;color:#e9dcc9;background:#0000002e;font-size:.78rem;line-height:1.35}.battle-stage{display:grid;gap:.55rem}.live-battle{grid-column:1 / -1}.live-battle .replay-grid{gap:.32rem}.live-battle .card-compact{min-height:88px;padding:.45rem}.live-battle .card-title{font-size:.78rem}.replay-board-title{margin-bottom:.35rem;color:#f3d073;font-size:.78rem;font-weight:900}.battle-lane{display:grid;place-items:center;gap:.08rem;min-height:2.5rem;border-radius:8px;border:1px solid rgba(233,184,94,.2);background:linear-gradient(90deg,transparent,rgba(233,184,94,.16),transparent),#0000002e;text-align:center}.battle-lane span{color:#f3d073;font-size:.78rem;font-weight:900}.battle-lane small{color:#bfb4a3;font-size:.68rem}.replay-grid,.fight-view .enemy-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.replay-slot,.enemy-slot{min-height:104px}.replay-slot{position:relative}.replay-slot .card{min-height:98px}.carry-replay .card{border-color:#f4be4a85}.support-replay .card{border-color:#70b7d261}.enemy-mirrored .support-replay .card{opacity:.9}.replay-slot .cd-track{position:static;margin:.25rem .25rem 0;height:.32rem}.cd-fill{height:100%;background:linear-gradient(90deg,#6ad6ff,#f3d073);transition:width .1s linear}.live-stat-strip{display:flex;flex-wrap:wrap;gap:.18rem;margin:.28rem .2rem 0;min-height:1.1rem;color:#d9cfbf}.live-stat-strip span,.muted-strip{border-radius:999px;padding:.08rem .28rem;background:#00000047;font-size:.58rem;font-weight:800}.live-stat-strip.has-scaling span{color:#b9efc8}.scaling-inspector{margin-top:.7rem;border-radius:8px;padding:.55rem;background:#0000002e}.scaling-inspector p{color:#d4c9b9;font-size:.78rem;line-height:1.35}.scaling-list{display:grid;gap:.35rem}.scaling-row{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center;padding:.42rem;border-radius:8px;background:#ffffff0b;font-size:.7rem}.scaling-row strong{flex-basis:100%;font-size:.76rem}.scaling-row span{border-radius:999px;padding:.12rem .35rem;background:#0000003d}.perm-value{color:#a9efc1}.replay-empty{display:block;min-height:98px;border:1px dashed rgba(246,239,226,.16);border-radius:8px;background:#ffffff08}.result-bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.5rem;margin-bottom:.6rem}.result-bars div,.perm-box{border-radius:8px;background:#0003;padding:.55rem}.result-bars span{display:block;color:#a9a08f;font-size:.75rem}.result-bars small{display:block;margin-top:.18rem;color:#cdbda8;font-size:.68rem}.summary-list{display:grid;gap:.35rem;margin-bottom:.65rem}.summary-list p{line-height:1.3;color:#e8decf}.stat-table{display:grid;gap:.35rem}.stat-row{display:grid;grid-template-columns:1.6fr .8fr .7fr .6fr;gap:.35rem;align-items:center;padding:.4rem;border-radius:8px;background:#ffffff0b;font-size:.76rem}details{margin-top:.7rem}summary{cursor:pointer;color:#f3d073}.log-lines{margin-top:.55rem;max-height:230px;overflow:auto;display:grid;gap:.25rem;color:#cfc5b4;font-size:.76rem}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#0000009e;display:grid;place-items:end center;padding:1rem}.modal-card{width:min(100%,520px);max-height:88vh;overflow:auto;border:1px solid rgba(246,239,226,.18);border-radius:8px;padding:1rem}.modal-header{display:flex;justify-content:space-between;gap:1rem;align-items:start;margin-bottom:.75rem}.detail-grid{display:grid;grid-template-columns:1fr 1.6fr;gap:.35rem .75rem;margin-bottom:.75rem;font-size:.88rem}.detail-grid span{color:#b8ac9c}.effect-list{display:grid;gap:.45rem;margin-top:.75rem;font-size:.85rem;line-height:1.35}.effect-list div{padding:.48rem;border-radius:8px;background:#0000002e}.effect-matrix{display:grid;gap:.65rem;margin-top:.85rem}.effect-section{display:grid;gap:.45rem}.effect-section-title{border-radius:8px;padding:.55rem;background:#00000038}.effect-section-title strong{display:block}.effect-section-title small{display:block;margin-top:.18rem;color:#d4c9b9;font-size:.75rem;line-height:1.3}.effect-row{display:grid;grid-template-columns:5.6rem 1fr;gap:.6rem;border:1px solid rgba(246,239,226,.08);border-radius:8px;padding:.55rem;background:#00000026}.effect-row.current{border-color:#f3d073a6;background:#6f501d52}.effect-row strong,.effect-row small{display:block}.effect-row small{margin-top:.12rem;color:#a9a08f;font-size:.68rem}.effect-row ul{margin:0;padding-left:1rem;line-height:1.34;color:#e8decf;font-size:.82rem}.effect-row li+li{margin-top:.22rem}.end-state h2{margin-bottom:.5rem}@keyframes pulse{0%,to{filter:brightness(1)}50%{filter:brightness(1.28)}}@media(min-width:760px){.app-shell{width:min(100%,1120px);display:grid;grid-template-columns:1fr 1fr;gap:.75rem;align-items:start}.run-header{grid-column:1 / -1;margin-left:0;margin-right:0;border-radius:0 0 8px 8px}.planning-layout{grid-column:1 / -1;grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);grid-template-areas:"board shop" "bench shop";align-items:start}.planning-layout.planning-single{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);grid-template-areas:"board bench"}.board-stack{grid-area:board}.bench-stack{grid-area:bench}.shop-column{grid-area:shop;position:sticky;top:8.5rem}.sell-drop-zone{left:auto;right:max(1rem,calc((100vw - 1120px)/2 + .75rem));bottom:max(1rem,env(safe-area-inset-bottom));top:auto;width:min(42vw,380px);transform:none}.sell-drop-zone.drop-target{transform:scale(1.035)}.planning-layout .panel{grid-column:auto}.app-shell>.fight-view,.app-shell>.combat-log,.app-shell>.end-state{grid-column:2}.fight-view.live-battle{grid-column:1 / -1}}@media(max-width:430px){.board-grid{gap:.35rem;grid-template-rows:repeat(2,minmax(108px,1fr))}.board-grid .card-title{font-size:.78rem}.board-grid .card-tags span,.board-grid .card-stats span,.board-grid .card-rarity,.board-grid .card-level{font-size:.56rem;padding:.08rem .24rem}.live-battle .battle-stage{gap:.45rem}.live-battle .card-tags span,.live-battle .card-stats span,.live-battle .card-rarity,.live-battle .card-level{font-size:.56rem;padding:.08rem .26rem}.live-battle .live-stat-strip span,.live-battle .muted-strip{font-size:.52rem}}
