:root {
  --bg: #0a1020; --bg2: #0f1830; --card: #151f3a; --card2: #1c2848; --line: #2a3760;
  --text: #eef2fb; --muted: #8f9cbc; --gold: #f7b733; --gold-ink: #241800;
  --blue: #5aa9ff; --green: #3ecf8e; --red: #ff5d6c; --purple: #b48cff;
  --normal: #aab4c8; --rare: #5aa9ff; --elite: #c38cff; --legend: #f7b733;
  --radius: 14px; --tabbar: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(120% 60% at 50% 0%, #16244a 0%, var(--bg) 60%); color: var(--text); font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.45; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
input, select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
#app { max-width: 480px; margin: 0 auto; min-height: 100%; padding: 0 16px calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); position: relative; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 0 10px; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar .team { font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.dia { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dia .plus { background: var(--gold); color: var(--gold-ink); border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 14px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: rgba(10, 16, 32, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px); }
.tabbar .inner { display: grid; grid-template-columns: repeat(6, 1fr); width: 100%; max-width: 480px; }
.tabbar button { height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
.tabbar button .ico { font-size: 22px; line-height: 1; }
.tabbar button.on { color: var(--gold); font-weight: 700; }
h2.sec { font-size: 15px; margin: 20px 0 10px; color: var(--muted); font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card + .card { margin-top: 10px; }
.hero { background: linear-gradient(135deg, #1d2c58, #2a1d4a); border: 1px solid #3a4a80; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; }
.hero h1 { margin: 0 0 4px; font-size: 22px; }
.hero p { margin: 0 0 14px; color: #c9d3ee; font-size: 14px; }
.hero .ball { position: absolute; right: -16px; top: -16px; font-size: 96px; opacity: .12; transform: rotate(-20deg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 800; background: var(--card2); border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(180deg, #ffd166, var(--gold)); color: var(--gold-ink); border: none; box-shadow: 0 6px 18px #f7b73344; }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; }
.row { display: flex; gap: 8px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); margin: 2px 4px 2px 0; }
.chip.on { color: var(--green); border-color: var(--green); background: #0f2f22; }
.chip.off { color: var(--muted); }
.r-Normal { color: var(--normal); } .r-Rare { color: var(--rare); } .r-Elite { color: var(--elite); } .r-Legend { color: var(--legend); }
.b-Normal { border-color: #3a4566 !important; } .b-Rare { border-color: var(--rare) !important; } .b-Elite { border-color: var(--elite) !important; } .b-Legend { border-color: var(--legend) !important; box-shadow: 0 0 14px #f7b73344; }
.stat-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.stat-pills span { font-size: 11px; background: var(--bg2); border-radius: 6px; padding: 1px 6px; color: #c9d3ee; }
.list-row { display: grid; grid-template-columns: 26px 40px 1fr auto; gap: 8px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }
.list-row .order { color: var(--muted); font-weight: 800; text-align: center; }
.slot { font-size: 11px; font-weight: 800; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; text-align: center; }
.pname { font-weight: 700; }
.cost { font-weight: 800; color: var(--green); font-size: 13px; }
.move { display: flex; flex-direction: column; }
.move button { font-size: 12px; color: var(--muted); padding: 0 6px; line-height: 1.1; }
.meter { height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.meter div { height: 100%; background: var(--green); transition: width .25s; }
.meter.over div { background: var(--red); }
.issue { font-size: 12px; padding: 6px 10px; border-radius: 8px; margin-top: 6px; }
.issue.error { background: #3a1520; color: #ffb3bc; } .issue.warning { background: #3a2e10; color: #ffd88a; }
.sticky-foot { position: sticky; bottom: calc(var(--tabbar) + 8px + env(safe-area-inset-bottom)); margin-top: 14px; z-index: 5; background: rgba(21, 31, 58, .97); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; backdrop-filter: blur(6px); }
.opp { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--card2); }
.badge.rookie { color: var(--green); } .badge.pro { color: var(--red); }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: none; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--green); } .switch.on::after { transform: translateX(18px); }
.seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; font-weight: 700; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--card2); color: var(--text); }

/* 시트 / 모달 */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 480px; max-height: 82vh; overflow-y: auto; background: var(--bg2); border-radius: 20px 20px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 12px; }
.sheet h3 { margin: 0 0 10px; }
.pick { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); margin-bottom: 8px; }
.pick.cur { outline: 2px solid var(--gold); }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: .5; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: #1f2b4f; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; max-width: calc(100% - 32px); font-size: 14px; animation: up .2s; }
.toast.err { border-color: var(--red); }

/* 경기 화면 */
.match { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; }
.match.shake { animation: shake .45s; }
.sb { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: #0d1530; border-bottom: 1px solid var(--line); }
.sb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sb-team { display: flex; flex-direction: column; } .sb-team.right { align-items: flex-end; text-align: right; }
.sb-team .nm { font-size: 13px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-team .sc { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sb-team.me .nm { color: var(--gold); }
.sb-mid { text-align: center; font-size: 13px; }
.diamond { position: relative; width: 42px; height: 34px; margin: 4px auto 0; }
.diamond i { position: absolute; width: 12px; height: 12px; transform: rotate(45deg); border: 2px solid #3a4770; background: var(--bg); }
.diamond i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.diamond .b1 { right: 4px; top: 14px; } .diamond .b2 { left: 15px; top: 2px; } .diamond .b3 { left: 4px; top: 14px; }
.outs b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3a4770; margin: 0 2px; }
.outs b.on { background: var(--red); }
.ls { overflow-x: auto; margin-top: 8px; }
.ls table { border-collapse: collapse; font-size: 11px; width: 100%; }
.ls td, .ls th { text-align: center; padding: 2px 4px; min-width: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls td:first-child { text-align: left; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls td.r { color: var(--text); font-weight: 800; }
.ls td.live { color: var(--gold); }
.stage { position: relative; min-height: 86px; display: grid; place-items: center; padding: 8px 14px; text-align: center; }
.call { font-size: 26px; font-weight: 900; color: var(--gold); text-shadow: 0 0 20px #f7b73388; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.call.wait { font-size: 16px; color: var(--muted); text-shadow: none; animation: none; }
.matchup { font-size: 13px; color: var(--muted); }
.feed { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0 14px; }
.feed li { padding: 8px 2px; border-bottom: 1px solid #1c2647; font-size: 14px; animation: up .2s; }
.feed li.half { color: var(--blue); font-weight: 800; font-size: 13px; }
.feed li.tactic { color: var(--purple); } .feed li.change { color: var(--muted); font-style: italic; font-size: 13px; }
.feed li.h1 { color: #ffe1a3; } .feed li.h2 { color: var(--gold); font-weight: 800; }
.feed li.h3 { color: #fff; font-weight: 900; background: linear-gradient(90deg, #7a4a00, transparent); border-radius: 8px; padding-left: 8px; }
.feed li.end { color: var(--green); font-weight: 900; }
.mctl { display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0d1530; }
.mctl .btn { flex: 1; min-height: 42px; }
.clutch-ribbon { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-weight: 900; letter-spacing: 3px; font-size: 12px; color: #fff; background: linear-gradient(90deg, #8b0000, #ff3b3b, #8b0000); animation: pulse .9s infinite; }
.match.tense { box-shadow: inset 0 0 0 3px #ff3b3b; }
.result-card { text-align: center; padding: 22px 16px; }
.result-card .big { font-size: 40px; font-weight: 900; }
.result-card .win { color: var(--gold); } .result-card .lose { color: var(--muted); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }

/* 클러치 1구 */
.clutch { position: fixed; inset: 0; z-index: 60; background-color: #090c18; background-image: radial-gradient(100% 60% at 50% 30%, #3a0d16, #090c18 70%); display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); animation: fade .2s; }
.clutch .title { text-align: center; font-weight: 900; letter-spacing: 4px; color: #ff5d6c; animation: pulse .9s infinite; }
.clutch .sit { text-align: center; color: #e9c9cf; font-size: 13px; margin: 4px 0 10px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: #ffffff0d; border-radius: 14px; padding: 10px; }
.vs .who { font-weight: 800; } .vs .role { font-size: 11px; color: var(--muted); } .vs .x { font-weight: 900; color: #ff5d6c; }
.tcards { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.tcard { flex: 0 0 132px; text-align: left; border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card); font-size: 12px; }
.tcard .tn { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.tcard.sel { outline: 3px solid var(--gold); }
.field { position: relative; flex: 1; min-height: 300px; margin: 8px 0; touch-action: manipulation; user-select: none; }
.zone-wrap { position: absolute; left: 50%; top: 52%; width: 82%; aspect-ratio: 1 / 1.1; transform: translate(-50%, -50%); max-height: 100%; }
.zone-ball { position: absolute; border-radius: 10px; background: #ffffff08; border: 1px dashed #ffffff22; display: grid; place-items: center; font-size: 11px; color: #ffffff55; }
.zone-ball.sel, .zone-cell.sel { background: #f7b73340; border-color: var(--gold); }
.zone-grid { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); border: 2px solid #ffffffcc; border-radius: 4px; }
.zone-cell { border: 1px solid #ffffff33; }
.zone-cell.hot { background: #ff5d6c33; }
.pitch-ball { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ddd 60%, #aaa); box-shadow: 0 0 10px #fff8; pointer-events: none; }
.swing-btn { width: 100%; min-height: 78px; border-radius: 18px; font-size: 26px; font-weight: 900; letter-spacing: 3px; background: linear-gradient(180deg, #ff7a85, #e2384a); color: #fff; box-shadow: 0 10px 30px #e2384a66; }
.swing-btn:active { transform: scale(.97); }
.ring-wrap { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); }
.ring-target, .ring-move { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ring-target { width: 35%; height: 35%; border: 4px solid var(--green); box-shadow: 0 0 16px #3ecf8e88; }
.ring-move { width: 100%; height: 100%; border: 4px solid #fff; }
.grade { text-align: center; font-size: 34px; font-weight: 900; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.grade.PERFECT { color: var(--gold); text-shadow: 0 0 22px #f7b733; } .grade.GOOD { color: var(--green); } .grade.MISS, .grade.LOOKING { color: var(--red); } .grade.TAKE { color: var(--blue); }
.timing-bar { position: relative; height: 10px; border-radius: 5px; background: #ffffff15; margin: 10px 0; }
.timing-bar .good { position: absolute; top: 0; bottom: 0; background: #3ecf8e44; border-radius: 5px; }
.timing-bar .perfect { position: absolute; top: 0; bottom: 0; background: #f7b733aa; border-radius: 5px; }
.timing-bar .mark { position: absolute; top: -4px; width: 3px; height: 18px; background: #fff; }
.ptypes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ptypes button { padding: 10px 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.ptypes button.sel { border-color: var(--gold); color: var(--gold); }

/* 상점 */
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack { text-align: center; padding: 18px 10px; border-radius: 16px; background: linear-gradient(160deg, #2b2060, #15204a); border: 1px solid #4a3a90; }
.pack .art { font-size: 44px; } .pack .nm { font-weight: 800; margin: 6px 0; } .pack .price { color: var(--gold); font-weight: 900; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product { text-align: center; padding: 14px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.product.sel { border-color: var(--gold); box-shadow: 0 0 0 2px #f7b73355; }
.product .amt { font-size: 20px; font-weight: 900; } .product .bonus { color: var(--green); font-size: 12px; font-weight: 700; } .product .price { margin-top: 6px; font-weight: 800; }
.acct { background: var(--bg2); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px; }
.acct .line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 8px; }
.acct .amount { font-size: 26px; font-weight: 900; color: var(--gold); }
.copy { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.reveal { position: fixed; inset: 0; z-index: 70; background: radial-gradient(circle at 50% 40%, #2a1d5a, #05070f 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
.reveal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 440px; }
@media (min-width: 440px) { .reveal-grid { grid-template-columns: repeat(5, 1fr); } }
.reveal-grid.one { grid-template-columns: 170px; justify-content: center; }
.flip { aspect-ratio: 3 / 4; perspective: 600px; }
.flip .in { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip.open .in { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; text-align: center; }
.flip .back { background: repeating-linear-gradient(45deg, #1b2550, #1b2550 8px, #222e60 8px, #222e60 16px); font-size: 26px; }
.flip .back.glow-Elite { box-shadow: 0 0 18px var(--elite); border-color: var(--elite); }
.flip .back.glow-Legend { box-shadow: 0 0 26px var(--legend); border-color: var(--legend); animation: pulse .6s infinite; }
.flip .front { background: var(--card); transform: rotateY(180deg); font-size: 11px; overflow: hidden; gap: 2px; }
.flip .front .nm { font-weight: 800; font-size: 12px; line-height: 1.2; margin: 2px 0; word-break: keep-all; }
.new { font-size: 10px; font-weight: 900; color: #fff; background: var(--red); border-radius: 6px; padding: 0 5px; }
table.odds { width: 100%; border-collapse: collapse; font-size: 13px; }
table.odds td, table.odds th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.odds td.n { text-align: right; font-variant-numeric: tabular-nums; }
.box table { width: 100%; border-collapse: collapse; font-size: 12px; }
.box td, .box th { padding: 5px 3px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.box td:first-child, .box th:first-child { text-align: left; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 3D 경기장 */
.stage.stage3d { position: relative; padding: 0; height: 46vh; min-height: 260px; display: block; background: #0b1633; overflow: hidden; }
.stage.stage3d #call { position: absolute; left: 0; right: 0; top: 10px; text-align: center; pointer-events: none; z-index: 2; padding: 0 12px; text-shadow: 0 2px 8px #000; }
.stage.stage3d .call { font-size: 30px; }
.stage.stage3d .matchup { color: #dfe7ff; background: #0008; border-radius: 999px; padding: 3px 12px; display: inline-block; }
.result-over { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; background: rgba(10, 16, 32, .88); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(6px); }
.result-over .result-card { padding: 14px; }
.result-over .result-card .big { font-size: 30px; }
.match.clutch-on .stage.stage3d { position: fixed; inset: 0; height: auto; z-index: 55; max-width: 480px; margin: 0 auto; }
.clutch.three { background: linear-gradient(#0b0f1fee 0, #0b0f1f99 150px, transparent 230px, transparent 62%, #0b0f1fdd 80%); }
.clutch.three .field3d { flex: 1; min-height: 240px; touch-action: manipulation; }
.clutch.three .vs { background: #0b0f1fcc; }
.ring-float { position: fixed; width: 150px; height: 150px; transform: translate(-50%, -50%); pointer-events: none; z-index: 61; }
.ring-float .ring-target, .ring-float .ring-move { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ring-float .ring-target { width: 35%; height: 35%; border: 4px solid var(--green); box-shadow: 0 0 16px #3ecf8e88; }
.ring-float .ring-move { width: 100%; height: 100%; border: 4px solid #fff; }

.seg.scroll { overflow-x: auto; scrollbar-width: none; }
.seg.scroll::-webkit-scrollbar { display: none; }
.seg.scroll button { flex: 0 0 auto; padding: 9px 12px; }
/* 도감 */
.tabbar button { min-width: 0; }
.stars { color: var(--legend); letter-spacing: -1px; font-size: 11px; } .stars i { font-style: normal; color: #ffffff22; }
.star-chip { font-size: 10px; font-weight: 900; padding: 0 5px; border-radius: 6px; background: #ffffff14; color: #cfd8e8; margin-right: 3px; }
.star-chip.st4, .star-chip.st5 { color: var(--gold-ink); background: var(--legend); }
.shard-chip { font-size: 10px; font-weight: 900; padding: 0 5px; border-radius: 6px; background: #1f3a2a; color: var(--green); }
.holo-chip { font-size: 10px; font-weight: 900; padding: 0 5px; border-radius: 6px; color: #fff; background: linear-gradient(90deg, #ff5f8f, #ffd45c, #5affb0, #5aa9ff, #c38cff); background-size: 200% 100%; animation: holo 2.4s linear infinite; }
.title-chip { display: inline-block; font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 6px; border: 1px solid var(--legend); color: var(--legend); vertical-align: 1px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 2px; }
@keyframes holo { to { background-position: -200% 0; } }
.holo { position: relative; }
.holo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 20%, #ff5f8f33 35%, #ffd45c33 45%, #5affb033 55%, #5aa9ff33 65%, transparent 80%); background-size: 250% 100%; animation: holo 3s linear infinite; mix-blend-mode: screen; }
.codex-hero { text-align: left; }
.cx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cx { position: relative; aspect-ratio: 3 / 4; border: 2px solid var(--line); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; text-align: center; overflow: hidden; }
.cx-r { position: absolute; left: 6px; top: 4px; font-size: 11px; font-weight: 900; }
.cx-3d { position: absolute; right: 6px; top: 4px; font-size: 9px; font-weight: 900; color: var(--legend); }
.cx-ico { font-size: 16px; font-weight: 900; }
.cx-nm { font-size: 11px; font-weight: 800; line-height: 1.2; word-break: keep-all; }
.locked { opacity: .45; filter: grayscale(1); }
.cx.locked .cx-nm { color: var(--muted); }
.st3 { box-shadow: 0 0 0 1px #cfd8e8 inset, 0 0 10px #cfd8e855; }
.st4 { box-shadow: 0 0 0 1px var(--legend) inset, 0 0 12px #f7b73366; }
.st5 { box-shadow: 0 0 0 2px var(--legend) inset, 0 0 18px #f7b733aa; animation: glow5 1.6s ease-in-out infinite; }
@keyframes glow5 { 50% { box-shadow: 0 0 0 2px var(--legend) inset, 0 0 6px #f7b73355; } }
.cx-detail { margin: 10px auto; width: 120px; aspect-ratio: 3 / 4; border: 2px solid var(--line); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
