/* 별빛 생존 전용 */
:root { --bg: #0c1024; --panel: #141a36; --panel-2: #1d2448; --line: #2d3665; --muted: #a3acd6; --accent: #9fe7ff; --accent-ink: #062030; }
.how { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.codex { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.codex div { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.codex .ic { font-size: 22px; line-height: 1; }
.codex strong { display: block; font-size: 14px; }
.codex span { color: var(--muted); font-size: 12px; }
.codex .passive { border-style: dashed; }

#play { position: fixed; inset: 52px 0 0 0; background: #070914; user-select: none; -webkit-user-select: none; }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; inset: 0 0 auto 0; padding: 8px 12px; display: grid; gap: 6px; pointer-events: none; }
.bars { display: grid; gap: 4px; }
.bar { position: relative; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .15); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width .15s; }
.bar.xp i { background: linear-gradient(90deg, #5fd3ff, #b98cff); }
.bar.hp { height: 10px; width: min(260px, 50%); }
.bar.hp i { background: linear-gradient(90deg, #ff5f6d, #ff9a76); }
.bar span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.bar.hp span { font-size: 9px; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .spacer { flex: 1; }
.row button { pointer-events: auto; }
.chip { background: rgba(8, 10, 24, .75); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; display: flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; font-size: 13px; }
.chip b { font-size: 16px; }
.chip span { color: var(--muted); }
.chip.target { border-color: #ffd35c; color: #ffd35c; }
.build { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.build span { background: rgba(8, 10, 24, .75); border: 1px solid var(--line); border-radius: 8px; padding: 1px 5px; font-size: 13px; }
.build small { font-size: 10px; color: var(--muted); margin-left: 1px; }
.center-msg { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; font-size: clamp(22px, 5vw, 36px); font-weight: 900; text-shadow: 0 3px 16px rgba(0, 0, 0, .7); white-space: nowrap; }
.center-msg small { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 6px; }

.offers { display: grid; gap: 10px; margin-top: 12px; }
.offer { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; text-align: left; padding: 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; transition: transform .1s, border-color .15s; }
.offer:hover, .offer:focus-visible { border-color: var(--accent); transform: translateY(-2px); outline: none; }
.offer .ic { grid-row: span 2; font-size: 34px; text-align: center; }
.offer strong { font-size: 16px; }
.offer strong em { font-style: normal; color: var(--accent); font-size: 13px; margin-left: 6px; }
.offer span { color: var(--muted); font-size: 13px; }
.offer kbd { justify-self: end; }
kbd { background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font: 12px/1.6 var(--font); color: var(--text); }
.big-score { font-size: 54px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; text-align: center; }
.breakdown div { background: var(--panel-2); border-radius: 12px; padding: 8px 4px; }
.breakdown b { display: block; font-size: 18px; }
.breakdown span { font-size: 11px; color: var(--muted); }
.status-line { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 14px; }
.buildline { font-size: 18px; letter-spacing: 2px; }
