:root{color-scheme:dark;--bg: #0a0e27;--bg-deep: #060818;--surface: #131736;--surface-soft: #1a1f47;--accent: #00c9a7;--accent-soft: rgba(0, 201, 167, .18);--accent-glow: rgba(0, 201, 167, .42);--text: #e4e7f1;--text-dim: #8a91b8;--text-strong: #f3f6ff;--danger: #ff5757;--warning: #ffb830;--border: #2a3166;--border-soft: rgba(228, 231, 241, .08);--radius: 14px;--radius-sm: 8px;--shadow-soft: 0 12px 32px rgba(0, 0, 0, .42);--shadow-card: 0 8px 20px rgba(0, 0, 0, .45)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}html,body{width:100%;min-height:100%;margin:0;background:radial-gradient(ellipse at top,#0e1335 0%,var(--bg) 60%,var(--bg-deep) 100%);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Noto Sans JP,Segoe UI,system-ui,sans-serif;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";overscroll-behavior:none;touch-action:manipulation;user-select:none;-webkit-user-select:none}button{font-family:inherit;color:inherit;background:none;border:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.shell{position:relative;width:100%;min-height:100dvh;display:flex;justify-content:center;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}.app-frame{position:relative;width:100%;max-width:480px;min-height:100dvh;display:flex;flex-direction:column;background:linear-gradient(180deg,transparent 0%,rgba(10,14,39,.4) 100%)}.title-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;gap:20px;text-align:center}.title-mark{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;margin-bottom:16px}.title-logo{font-size:44px;font-weight:800;letter-spacing:.02em;margin:0;line-height:1;color:var(--text-strong)}.title-logo .accent{color:var(--accent);text-shadow:0 0 24px var(--accent-glow)}.title-sub{font-size:13px;color:var(--text-dim);letter-spacing:.12em;text-transform:uppercase}.title-pitch{font-size:13px;color:var(--text-dim);line-height:1.6;max-width:340px;margin:0 0 8px}.title-actions{display:flex;flex-direction:column;gap:12px;width:100%;max-width:280px}.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 22px;border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:15px;font-weight:600;letter-spacing:.04em;border:1px solid var(--border);transition:transform .08s ease,background .15s ease,border-color .15s ease}.btn:active{transform:scale(.96)}.btn-primary{background:linear-gradient(180deg,var(--accent) 0%,#00a888 100%);color:#001a14;border:1px solid transparent;box-shadow:0 12px 28px #00c9a747}.btn-primary:active{box-shadow:0 6px 12px #00c9a747}.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--text-dim)}.title-best{font-size:12px;color:var(--text-dim);margin-top:12px;letter-spacing:.04em}.battle{flex:1;display:flex;flex-direction:column;padding:12px 14px 14px;gap:10px;min-height:100dvh}.battle-top{display:flex;align-items:stretch;gap:10px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.enemy-art{width:64px;height:64px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,var(--surface-soft) 0%,transparent 70%);position:relative}.enemy-art .glyph{font-size:38px;font-weight:700;line-height:1;filter:drop-shadow(0 0 12px currentColor);transition:transform .16s ease}.enemy-art.hit .glyph{animation:enemy-hit .22s ease}@keyframes enemy-hit{0%{transform:translate(0) scale(1)}30%{transform:translate(-4px) scale(1.05);filter:drop-shadow(0 0 18px currentColor)}60%{transform:translate(4px) scale(1.03)}to{transform:translate(0) scale(1)}}.enemy-info{flex:1;display:flex;flex-direction:column;gap:6px;justify-content:center;min-width:0}.enemy-name{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.enemy-name .name{font-size:14px;font-weight:700;color:var(--text-strong)}.enemy-name .stage{font-size:11px;color:var(--text-dim);letter-spacing:.1em}.hp-bar{position:relative;width:100%;height:10px;background:#e4e7f10f;border-radius:999px;overflow:hidden}.hp-bar .fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--danger) 0%,#ff7a4a 100%);transition:width .3s ease}.hp-bar.player .fill{background:linear-gradient(90deg,var(--accent) 0%,#4dffd8 100%)}.hp-text{font-size:12px;color:var(--text-dim);display:flex;justify-content:space-between}.intent{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:#ff575729;color:var(--danger);font-size:12px;font-weight:600}.intent.guarded{background:#00c9a729;color:var(--accent)}.play-lane{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:76px}.play-lane-head{display:flex;justify-content:space-between;align-items:center}.play-lane-head .label{font-size:11px;color:var(--text-dim);letter-spacing:.1em;text-transform:uppercase}.play-lane-head .synergy-banner{font-size:12px;color:var(--accent);font-weight:700;letter-spacing:.06em;opacity:0;transition:opacity .2s ease}.play-lane-head .synergy-banner.show{opacity:1;animation:synergy-pulse .6s ease}@keyframes synergy-pulse{0%{transform:scale(.95)}50%{transform:scale(1.08);text-shadow:0 0 16px var(--accent-glow)}to{transform:scale(1)}}.lane-slots{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.lane-slots::-webkit-scrollbar{display:none}.lane-turn{flex:0 0 auto;display:flex;flex-direction:column;gap:3px;padding:6px 8px;border-radius:var(--radius-sm);background:#00000040;border:1px solid var(--border-soft);min-width:60px}.lane-turn.current{border-color:var(--accent);background:var(--accent-soft)}.lane-turn .t-label{font-size:10px;color:var(--text-dim);letter-spacing:.08em}.lane-turn .t-nums{display:flex;gap:4px;flex-wrap:wrap}.lane-turn .t-num{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:6px;background:var(--surface-soft);color:var(--text-strong);font-size:13px;font-weight:700}.lane-turn .t-num.prime{background:#ffb83038;color:var(--warning)}.lane-turn .t-num.fib{box-shadow:inset 0 0 0 1px var(--accent)}.lane-turn .t-empty{font-size:11px;color:var(--text-dim);opacity:.5}.player-info{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.player-row{display:flex;align-items:center;gap:10px}.player-row .stat{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--text-dim)}.player-row .stat strong{font-size:14px;color:var(--text-strong);font-weight:700}.energy-pips{display:inline-flex;gap:3px}.energy-pip{width:10px;height:10px;border-radius:50%;background:#00c9a733;border:1px solid var(--accent)}.energy-pip.used{background:transparent;border-color:var(--border)}.buff-row{display:flex;flex-wrap:wrap;gap:4px}.buff-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600}.buff-chip.shield{background:#50a0ff2e;color:#7ac1ff}.buff-chip.guard{background:#ffb8302e;color:var(--warning)}.hand-section{margin-top:auto;display:flex;flex-direction:column;gap:8px}.hand-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 4px}.hand-toolbar .turn-info{font-size:11px;color:var(--text-dim);letter-spacing:.1em}.end-turn-btn{display:inline-flex;align-items:center;gap:4px;padding:8px 14px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:13px;font-weight:600;transition:transform .08s ease,background .15s ease}.end-turn-btn:active{transform:scale(.96);background:var(--surface-soft)}.hand-scroll{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 4px 12px;-webkit-overflow-scrolling:touch}.hand-scroll::-webkit-scrollbar{display:none}.card{flex:0 0 96px;height:132px;border-radius:var(--radius);background:linear-gradient(180deg,var(--surface) 0%,var(--surface-soft) 100%);border:1px solid var(--border);box-shadow:var(--shadow-card);display:flex;flex-direction:column;padding:8px;scroll-snap-align:center;transition:transform .1s ease,border-color .15s ease,box-shadow .15s ease;position:relative;overflow:hidden}.card.playable{border-color:var(--accent)}.card.playable:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px #00c9a759}.card.disabled{opacity:.42;filter:grayscale(.4)}.card:active.playable{transform:scale(.95);box-shadow:0 4px 12px #00c9a740}.card-cost{position:absolute;top:6px;left:6px;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#001a14;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}.card-cost.zero{background:var(--text-dim);color:var(--bg-deep)}.card-rarity{position:absolute;top:8px;right:8px;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim)}.card-rarity.uncommon{color:#7ac1ff}.card-rarity.rare{color:var(--warning)}.card-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:16px}.card-body .num{font-size:36px;font-weight:800;line-height:1;color:var(--text-strong);letter-spacing:-.04em}.card.is-prime .card-body .num{color:var(--warning);text-shadow:0 0 16px rgba(255,184,48,.35)}.card.is-fib .card-body .num{color:var(--accent);text-shadow:0 0 16px var(--accent-glow)}.card-body .name{font-size:12px;font-weight:700;text-align:center;color:var(--text-strong);line-height:1.2;max-width:100%}.card-foot{font-size:9px;color:var(--text-dim);line-height:1.3;text-align:center;margin-top:6px;max-height:38px;overflow:hidden}.dmg-popup{position:absolute;pointer-events:none;font-size:22px;font-weight:800;color:var(--danger);text-shadow:0 2px 6px rgba(0,0,0,.6);animation:dmg-rise .7s ease-out forwards;z-index:5}.dmg-popup.synergy{color:var(--accent);font-size:28px;text-shadow:0 0 16px var(--accent-glow)}@keyframes dmg-rise{0%{transform:translate(-50%);opacity:1}to{transform:translate(-50%,-56px);opacity:0}}.modal-backdrop{position:fixed;inset:0;background:#060818b3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:30;animation:fade-in .18s ease}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.modal-card{width:100%;max-width:360px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px 18px;display:flex;flex-direction:column;gap:18px;box-shadow:var(--shadow-soft);animation:pop-in .22s ease}@keyframes pop-in{0%{transform:translateY(16px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.modal-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);text-align:center}.modal-title{font-size:18px;font-weight:700;text-align:center;margin:0;color:var(--text-strong)}.modal-desc{font-size:12px;color:var(--text-dim);text-align:center;line-height:1.5;margin:0}.reward-row{display:flex;gap:8px;justify-content:center}.reward-row .card{flex:1;max-width:100px}.modal-actions{display:flex;flex-direction:column;gap:8px}.result-section{flex:1;display:flex;flex-direction:column;padding:32px 24px;gap:20px;align-items:center;text-align:center}.result-eyebrow{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--text-dim)}.result-eyebrow.victory{color:var(--accent)}.result-score{font-size:56px;font-weight:800;line-height:1;color:var(--text-strong);letter-spacing:-.04em}.result-score.victory{color:var(--accent);text-shadow:0 0 32px var(--accent-glow)}.result-breakdown{width:100%;max-width:320px;display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.result-breakdown .row{display:flex;justify-content:space-between;font-size:13px;color:var(--text-dim)}.result-breakdown .row strong{color:var(--text-strong);font-weight:600}.history-graph{width:100%;max-width:320px;height:70px;display:flex;align-items:flex-end;gap:2px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm)}.history-graph .bar{flex:1;background:linear-gradient(180deg,var(--accent) 0%,rgba(0,201,167,.3) 100%);border-radius:2px;min-height:2px;position:relative}.history-graph .bar.prime{background:linear-gradient(180deg,var(--warning) 0%,rgba(255,184,48,.3) 100%)}.result-actions{display:flex;flex-direction:column;gap:10px;width:100%;max-width:280px}.ranking-list{width:100%;max-width:320px;display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);max-height:220px;overflow-y:auto}.ranking-list .item{display:flex;justify-content:space-between;align-items:baseline;padding:6px 4px;font-size:13px;color:var(--text-dim);border-bottom:1px solid var(--border-soft)}.ranking-list .item:last-child{border-bottom:none}.ranking-list .item.highlight{color:var(--accent);font-weight:700}.ranking-list .item .pos{font-size:11px;letter-spacing:.1em;min-width:28px}.ranking-list .item .score{color:var(--text-strong);font-weight:700;font-size:14px}.ranking-list .item.highlight .score{color:var(--accent)}.hint-banner{font-size:11px;color:var(--text-dim);text-align:center;letter-spacing:.04em;line-height:1.4;padding:6px 10px;background:#00000040;border-radius:var(--radius-sm);border:1px solid var(--border-soft)}.hint-banner strong{color:var(--accent)}.howto-card{text-align:left}.howto-card ul{margin:0;padding-left:18px;font-size:12px;color:var(--text-dim);line-height:1.7}.howto-card ul strong{color:var(--accent)}.flex-1{flex:1}.text-dim{color:var(--text-dim)}.text-accent{color:var(--accent)}
