:root{--bg: #eef0f3;--panel: #ffffff;--ink: #14181f;--muted: #6b7280;--line: #e2e5ea;--accent: #1d4ed8;--good: #15803d;--bad: #b91c1c;--gold: #a16207;font-family:Pretendard,Apple SD Gothic Neo,Malgun Gothic,system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}.app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg)}.screen{padding:16px 16px 96px;display:flex;flex-direction:column;gap:12px}.screen.dark{background:#14181f;color:#fff;min-height:100vh;justify-content:center;cursor:pointer}.foot{text-align:center;color:var(--muted);font-size:11px;padding:8px 0 24px}h1{font-size:30px;line-height:1.2;margin:6px 0 0}h2{font-size:21px;line-height:1.3;margin:0}p{margin:0;line-height:1.6}.headline{font-size:23px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--accent)}.dark .eyebrow{color:#c8f31d}.muted{color:var(--muted)}.small{font-size:12px}.center{text-align:center;align-self:center}.good{color:var(--good)}.bad{color:var(--bad)}.hero{background:#14181f;color:#fff;border-radius:14px;padding:28px 20px}.hero .eyebrow{color:#c8f31d}.btn{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:12px;padding:13px 16px;font-size:15px;font-weight:600;cursor:pointer;flex:1;font-family:inherit}.btn.primary{background:#14181f;color:#fff;border-color:#14181f}.btn:disabled{opacity:.4;cursor:default}.btn.sm{padding:8px 12px;font-size:13px;flex:none}.btn.danger{color:var(--bad)}.btn.sticky{position:fixed;left:50%;transform:translate(-50%);bottom:16px;width:min(448px,calc(100% - 32px));box-shadow:0 6px 18px #0000002e;z-index:5}.btn.choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;width:100%}.btn.choice span{font-size:12px;font-weight:400;color:var(--muted)}.link{background:none;border:none;padding:0;color:inherit;font-size:13px;cursor:pointer;text-decoration:underline;align-self:flex-start;font-family:inherit}.link.center{align-self:center;color:#9ca3af}.row{display:flex;gap:8px;align-items:center}.row.wrap{flex-wrap:wrap}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tile{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;font-family:inherit}.tile-k{font-size:12px;color:var(--muted)}.tile-v{font-size:24px;font-weight:800}.tile-s{font-size:11px;color:var(--muted)}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;text-align:left;font-family:inherit;font-size:14px;color:var(--ink)}.card.pick{cursor:pointer}.card.pick.on{border-color:#14181f;box-shadow:inset 0 0 0 1px #14181f}.card.reveal{background:#fffbeb;border-color:#fde68a}.card-t{font-weight:700;font-size:15px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.card-t.mt{margin-top:8px}.kv{font-size:13px;line-height:1.5}.kv>span:first-child{color:var(--muted);margin-right:6px}.kv>span.good:first-child{color:var(--good);font-weight:700}.kv>span.bad:first-child{color:var(--bad);font-weight:700}.quote{font-size:13px;background:#f3f4f6;border-left:3px solid #14181f;padding:8px 10px;border-radius:4px}.note{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.5}.fan{font-size:13px;padding:8px 10px;background:#f9fafb;border-radius:8px}.pill{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:#f3f4f6;color:#374151}.pill.gold{background:#fef3c7;color:var(--gold)}.pills{display:flex;flex-wrap:wrap;gap:4px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px}.field>span{color:var(--muted)}input,select{border:1px solid var(--line);border-radius:10px;padding:11px 12px;font-size:15px;flex:1;font-family:inherit;background:#fff;min-width:0}.seg{display:flex;gap:6px}.seg.wrap{flex-wrap:wrap}.seg button{flex:1;border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:10px 8px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;font-family:inherit;color:var(--ink)}.seg.wrap button{flex:0 0 calc(25% - 5px)}.seg button.on{background:#14181f;color:#fff;border-color:#14181f}.phead{color:#fff;border-radius:14px;padding:12px 16px 16px;display:flex;flex-direction:column;gap:10px}.phead .link{color:#fffc}.phead-main{display:flex;justify-content:space-between;align-items:center}.phead-name{font-size:20px;font-weight:800}.phead-sub{font-size:12px;opacity:.9;margin-top:2px}.num{font-size:12px;opacity:.7;font-weight:600}.ovr{text-align:right;display:flex;flex-direction:column}.ovr b{font-size:30px;line-height:1}.ovr span{font-size:11px;opacity:.85}.ovr.dark span{color:var(--muted)}.mini{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:2px}.mini span{font-size:11px;color:var(--muted)}.mini b{font-size:16px}.mini i{font-size:10px;font-style:normal;color:var(--muted);min-height:12px}.stats{display:flex;flex-direction:column;gap:6px}.stat{display:grid;grid-template-columns:52px 1fr 30px 40px;gap:8px;align-items:center;font-size:13px}.stat-k{color:var(--muted)}.stat-v{font-weight:700;text-align:right}.stat-d{font-size:12px;text-align:right}.bar{height:8px;background:#eef0f3;border-radius:4px;overflow:hidden}.bar i{display:block;height:100%;border-radius:4px;background:#9ca3af}.bar i.g-C{background:#d97706}.bar i.g-B{background:#2563eb}.bar i.g-A{background:#16a34a}.bar i.g-S{background:#c026d3}.hl{padding:24px 4px;display:flex;flex-direction:column;gap:14px}.hl h2{font-size:30px}.hl p{font-size:16px;color:#d1d5db}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f12188c;display:flex;align-items:flex-end;justify-content:center;z-index:10}.sheet{background:var(--panel);width:min(480px,100%);border-radius:18px 18px 0 0;padding:20px 16px 24px;display:flex;flex-direction:column;gap:10px;max-height:88vh;overflow:auto}.logrow{display:flex;flex-direction:column;gap:2px;font-size:12px;padding:7px 0;border-top:1px solid var(--line)}.logrow:first-of-type{border-top:none}.bcard{background:var(--panel);border-radius:14px;border:2px solid var(--line);overflow:hidden;display:flex;flex-direction:column;gap:8px;padding-bottom:12px}.bcard>*:not(.bcard-top){padding:0 14px}.bcard.grade-S{border-color:#93c5fd}.bcard.grade-L{border-color:#f59e0b;box-shadow:0 0 0 3px #fef3c7}.bcard-top{color:#fff;padding:8px 14px;font-size:12px;font-weight:700;display:flex;justify-content:space-between}.bcard-body{display:flex;justify-content:space-between;align-items:center}.bcard-name{font-size:20px;font-weight:800}.bcard-stats{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.bcard-stats b{color:var(--ink)}.drow{display:grid;grid-template-columns:64px 1fr 48px;gap:8px;align-items:center;padding:7px 0;border-top:1px solid var(--line);font-size:13px}.drow.base{opacity:.5}.dpos{font-size:11px;font-weight:700;color:var(--muted)}.dname{display:flex;flex-direction:column;font-weight:600}.dname i,.dovr i{font-style:normal;font-size:11px;font-weight:400;color:var(--muted)}.dovr{text-align:right;display:flex;flex-direction:column}.dovr b{font-size:16px}.dovr i{color:var(--good)}.syn{display:flex;flex-direction:column;gap:2px;font-size:13px;padding:6px 0;border-top:1px solid var(--line);color:var(--muted)}.syn.on{color:var(--ink)}.syn span{font-size:12px;color:var(--muted)}.line{display:inline-block;width:22px;vertical-align:middle;background:#1d4ed8;border-radius:3px;height:0}.line.l1{height:2px}.line.l2{height:4px}.line.l3{height:7px}.flow{background:#0f1218;color:#e5e7eb;min-height:100vh;display:flex;flex-direction:column}.fhead{position:sticky;top:0;z-index:6;color:#fff;padding:12px 16px 10px;display:flex;flex-direction:column;gap:8px;box-shadow:0 6px 16px #00000059}.fhead-main{display:flex;justify-content:space-between;align-items:center}.fchap{display:flex;align-items:center;gap:8px;font-size:12px}.fchap b{font-weight:700}.fchap>span:last-child{opacity:.85;margin-left:auto;text-align:right}.dots{display:inline-flex;gap:3px}.dots i{width:14px;height:4px;border-radius:2px;background:#ffffff4d}.dots i.on{background:#c8f31d}.feed{flex:1;padding:14px 16px 0;display:flex;flex-direction:column;gap:10px}.feed-end{height:120px;flex:none}.f{animation:rise .35s ease-out both;transition:opacity .4s}.f.old{opacity:.45}.f p{line-height:1.55}.f-more{text-align:center;font-size:12px;color:#6b7280;padding:6px 0}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes pop{0%{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}.f-year{display:flex;align-items:baseline;gap:10px;margin-top:14px;padding-top:12px;border-top:1px dashed #2b3340}.f-year b{font-size:26px;font-weight:800;color:#fff;letter-spacing:-.02em}.f-year span{font-size:13px;color:#9ca3af}.f-chap{text-align:center;margin:18px 0 4px;display:flex;flex-direction:column;gap:4px}.f-chap b{font-size:13px;letter-spacing:.2em;color:#c8f31d}.f-chap span{font-size:12px;color:#9ca3af}.f-line{display:grid;grid-template-columns:34px 1fr;gap:8px;font-size:14.5px;padding-left:8px;border-left:2px solid #2b3340}.f-line i{font-style:normal;font-size:11px;color:#9ca3af;padding-top:3px}.f-line span{display:block;font-size:12px;color:#c8f31d;margin-top:2px}.f-line.t-good{border-left-color:#22c55e}.f-line.t-bad{border-left-color:#ef4444}.f-big{background:#1b212b;border:1px solid #2b3340;border-radius:12px;padding:14px;animation:pop .4s ease-out both}.f-big b{font-size:19px;color:#fff}.f-big p{font-size:14px;color:#cbd5e1;margin-top:4px}.f-big.t-gold{border-color:#f59e0b;background:#2a2110}.f-big.t-gold b{color:#fbbf24}.f-big.t-bad{border-color:#7f1d1d;background:#241517}.f-big.t-bad b{color:#fca5a5}.f-stat{background:#151a22;border-radius:10px;padding:10px 12px;font-size:13px;font-variant-numeric:tabular-nums}.f-stat span{display:block;font-size:11.5px;color:#9ca3af;margin-top:3px}.f-head p{font-size:17px;font-weight:700;color:#fff}.f-head span{display:inline-block;margin-top:4px;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#3b2f0b;color:#fbbf24}.f-fan{align-self:flex-start;max-width:88%;background:#1f2630;border-radius:4px 14px 14px;padding:8px 12px;font-size:13px;color:#cbd5e1}.f-grow{font-size:12.5px;color:#9ca3af;display:flex;flex-wrap:wrap;gap:4px 8px}.f-grow b{font-weight:700;color:#e5e7eb}.f-grow.t-good b{color:#4ade80}.f-grow.t-bad b{color:#f87171}.f-grow p{display:inline}.f-branch,.f-intv,.f-end{border-radius:12px;padding:12px 14px}.f-branch{background:#14213d;border:1px solid #1d4ed8}.f-branch b{font-size:12px;letter-spacing:.06em;color:#93c5fd}.f-intv{background:#1e2a0c;border:1px solid #84cc16}.f-intv b{font-size:12px;letter-spacing:.06em;color:#c8f31d}.f-end{background:#fff;color:#14181f;text-align:center}.f-end b{font-size:20px}.f-branch p,.f-intv p,.f-end p{font-size:14px;margin-top:4px}.fbar{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:min(480px,100%);display:grid;grid-template-columns:1.4fr 1fr 1.2fr .6fr;gap:8px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,#0f1218 70%,#0f121800);z-index:5}.fbtn{border:1px solid #2b3340;background:#1b212b;color:#e5e7eb;border-radius:12px;padding:13px 8px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}.fbtn.main{background:#fff;color:#14181f;border-color:#fff}.fbtn.intv{border-color:#84cc16;color:#c8f31d}.fbtn.intv b{display:inline-block;min-width:18px;margin-left:2px;border-radius:999px;background:#c8f31d;color:#14181f;font-size:12px;padding:0 5px}.deckhint{color:var(--accent)!important;font-weight:600!important}.btn.choice:disabled{opacity:.4}.sheet{color:var(--ink)}.flow+.foot{display:none}@media (prefers-reduced-motion: reduce){.f,.f-big{animation:none}}.pill.tier1{background:#e5e7eb;color:#374151}.pill.tier2{background:#dbeafe;color:#1d4ed8}.pill.tier3{background:#fef3c7;color:#a16207;box-shadow:inset 0 0 0 1px #f59e0b}.pill.fam{background:#14181f;color:#c8f31d}.fgoal{display:flex;align-items:center;gap:8px;font-size:12px;background:#00000047;border-radius:8px;padding:5px 8px}.fgoal b{color:#c8f31d;font-size:11px}.fgoal i{font-style:normal;margin-left:auto;opacity:.8}.fgoal.done{background:#c8f31d2e}.ftraits{display:flex;flex-wrap:wrap;gap:4px}.f-trait{border-radius:12px;padding:12px 14px;background:#1c1730;border:1px solid #8b5cf6;animation:pop .4s ease-out both}.f-trait b{font-size:16px;color:#ddd6fe}.f-trait p{font-size:13px;margin-top:4px;color:#cbd5e1}.f-trait.t-gold{background:#2a2110;border-color:#f59e0b}.f-trait.t-gold b{color:#fbbf24}.btn.choice.trait{border-width:2px}.btn.choice.trait b{display:flex;width:100%;justify-content:space-between;align-items:center;font-size:16px}.btn.choice.trait em{font-style:normal;font-size:11px;padding:2px 8px;border-radius:999px;background:#e5e7eb;color:#374151}.btn.choice.trait.tier2{border-color:#60a5fa;background:#f5f9ff}.btn.choice.trait.tier2 em{background:#dbeafe;color:#1d4ed8}.btn.choice.trait.tier3{border-color:#f59e0b;background:#fffbeb}.btn.choice.trait.tier3 em{background:#fde68a;color:#92400e}.btn.choice .fxline{color:var(--good)!important;font-weight:700!important}.seg button.tall{white-space:normal;display:flex;flex-direction:column;gap:3px;align-items:center;line-height:1.3}.seg button.tall small{font-size:11px;font-weight:400;opacity:.75}.tile.league{background:#14181f;color:#fff;border-color:#14181f}.tile.league .tile-k{color:#c8f31d}.tile.league .tile-s{color:#9ca3af}.card.deckgain{border-color:#84cc16;background:#f7fee7}.kv.good{color:var(--good);font-weight:600}.ladder{display:flex;gap:4px}.ladder i{flex:1;height:8px;border-radius:4px;background:#d1d5db}.ladder i.done{background:#14181f}.ladder i.on{background:#84cc16}.g-row{display:grid;grid-template-columns:22px 20px 44px 1fr;gap:8px;align-items:baseline;font-size:13.5px;padding:3px 0;animation-duration:.2s}.g-row i{font-style:normal;font-size:11px;color:#6b7280;text-align:right}.g-row.win b{color:#4ade80}.g-row.lose b{color:#f87171}.g-row.lose .g-opp,.g-row.lose .g-score{color:#9ca3af}.g-score{font-variant-numeric:tabular-nums;font-weight:700}.g-opp em{display:block;font-style:normal;font-size:12.5px;color:#c8f31d;margin-top:1px}.t-row{display:grid;grid-template-columns:20px 1fr auto;gap:8px;padding:3px 0;font-size:13px;color:#cbd5e1}.t-row.me{color:#c8f31d;font-weight:700}.sheet.report{max-height:94vh;padding-bottom:0}.sheet.report h2{font-size:19px}.rtiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.rtile{background:#14181f;color:#fff;border-radius:10px;padding:9px 10px;display:flex;flex-direction:column;gap:2px}.rtile.wide{grid-column:1 / -1}.rtile span{font-size:11px;color:#9ca3af}.rtile b{font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}.dgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}.dgrid>div{background:#fff;padding:7px 9px;display:flex;flex-direction:column}.dgrid span{font-size:10.5px;color:var(--muted)}.dgrid b{font-size:14px;font-variant-numeric:tabular-nums;font-family:ui-monospace,Cascadia Mono,Consolas,monospace}.trk{display:grid;grid-template-columns:1fr 70px 24px;gap:2px 8px;align-items:center;font-size:12.5px}.trk-bar{height:8px;background:#eef0f3;border-radius:4px;overflow:hidden}.trk-bar i{display:block;height:100%;border-radius:4px}.trk b{text-align:right;font-variant-numeric:tabular-nums}.trk em{grid-column:1 / -1;font-style:normal;font-size:11px;color:var(--muted);margin-top:-4px;font-family:ui-monospace,Consolas,monospace}.tscroll{overflow-x:auto;margin:0 -6px}.ctable{border-collapse:collapse;font-size:11.5px;font-variant-numeric:tabular-nums;font-family:ui-monospace,Cascadia Mono,Consolas,monospace;white-space:nowrap;min-width:100%}.ctable th{font-weight:600;color:var(--muted);text-align:right;padding:4px 6px;border-bottom:1px solid var(--line);font-family:inherit}.ctable td{text-align:right;padding:4px 6px;border-bottom:1px solid #f1f3f5}.ctable th:nth-child(3),.ctable td:nth-child(3){text-align:left}.ctable tr.farm td{color:#9ca3af}.ctable tr.mil td{color:#9ca3af;text-align:center}.ctable tr.total td{font-weight:700;border-top:2px solid var(--ink);border-bottom:none}.shoprow{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--line)}.shoprow>div{flex:1;display:flex;flex-direction:column}.shoprow b{font-size:13.5px}.shoprow span{font-size:11.5px;color:var(--muted)}.shoprow .btn.sm{min-width:76px}.sticky-row{position:sticky;bottom:0;background:linear-gradient(to top,#fff 75%,#fff0);padding:14px 0 16px;margin-top:2px}.card.flat{background:#f9fafb}.fbtn.main.go{background:#c8f31d;border-color:#c8f31d}.card.facedown{background:#14181f;color:#e5e7eb;border-color:#14181f}.card.facedown .quote{background:#1f2630;border-left-color:#c8f31d;color:#e5e7eb}.card.facedown .pill{background:#2b3340;color:#9ca3af}.card.facedown.on{border-color:#c8f31d;box-shadow:inset 0 0 0 1px #c8f31d}.card.reveal{border-width:2px;border-color:#14181f}.card.reveal.hs_top{border-color:#d97706;background:#fffbeb}.card.reveal.dev,.card.reveal.indie{border-color:#2563eb}.reveal-name{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:2px 0 6px}.seg.divs{margin-bottom:10px}
