/* BLOCK ZERO v2 — 화면 UI. 폰 우선: 확대 · 스크롤 · 길게 누르기 메뉴 막기, 노치 · 홈 표시줄 피하기 */
:root {
  --bg: #03050b; --panel: rgba(10, 18, 40, .92); --line: #2b4a82; --text: #e6eeff; --muted: #93a7cc;
  --btc: #f7931a; --cyan: #5fd4ff; --ok: #5dff9c; --bad: #ff5a5a;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 15px/1.5 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
#game { position: fixed; inset: 0; }
#game canvas { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--btc); outline-offset: 2px; }

/* HUD */
#hud { position: fixed; left: 0; right: 0; top: 0; z-index: 10; pointer-events: none; padding: calc(var(--st) + 6px) calc(var(--sr) + 10px) 0 calc(var(--sl) + 10px); }
#xpbar { position: relative; height: 14px; background: rgba(10, 18, 40, .8); border: 1px solid #2b4a82; border-radius: 7px; overflow: hidden; }
#xpbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #3b8cff, #5fd4ff); transition: width .12s; }
#xpbar b { position: absolute; right: 8px; top: -1px; font: 800 11px Orbitron, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
#hud-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
#hp { position: relative; width: min(200px, 38vw); height: 14px; background: rgba(40, 8, 8, .8); border: 1px solid #7a2a2a; border-radius: 7px; overflow: hidden; }
#hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff4a4a, #ff9a7a); }
#hp span { position: absolute; inset: 0; text-align: center; font: 700 10px/14px Orbitron, sans-serif; text-shadow: 0 1px 2px #000; }
#timer { flex: 1; text-align: center; font: 800 18px Orbitron, sans-serif; letter-spacing: .08em; text-shadow: 0 2px 4px #000; }
#kills { font: 700 13px Orbitron, sans-serif; color: var(--muted); min-width: 56px; text-align: right; }
#pause-btn { pointer-events: auto; width: 38px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font: 900 13px Orbitron, sans-serif; }
#slots { position: fixed; left: calc(var(--sl) + 10px); bottom: calc(var(--sb) + 10px); display: grid; gap: 5px; pointer-events: none; }
#slots > div { display: flex; gap: 4px; }
.slot { position: relative; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: rgba(8, 14, 32, .75); overflow: hidden; }
.slot img { width: 100%; height: 100%; display: block; }
.slot b { position: absolute; right: 1px; bottom: 0; font: 800 9px Orbitron, sans-serif; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.slot.empty { opacity: .35; }
#wslots .slot { border-color: #b87a2a; }
#wslots .slot.order { border: 2px solid #3a9bff; background: rgba(16, 60, 140, .8); box-shadow: 0 0 6px rgba(58, 155, 255, .6); }
#wslots .slot.entropy { border: 2px solid #ff8a2a; background: rgba(120, 50, 8, .8); box-shadow: 0 0 6px rgba(255, 138, 42, .6); }
#wslots .slot.evo.order { border-color: #9fd0ff !important; box-shadow: 0 0 10px rgba(80, 170, 255, .9); }
#wslots .slot.evo.entropy { border-color: #ffc27a !important; box-shadow: 0 0 10px rgba(255, 150, 60, .9); }
.fac-order { color: #5fb4ff; font-weight: 900; } .fac-entropy { color: #ff9a3c; font-weight: 900; }
.slot.evo { border-color: #ffd27a !important; box-shadow: 0 0 8px rgba(255, 210, 122, .7); }
#bossbar { margin: 6px auto 0; width: min(520px, 92%); text-align: center; }
#bossbar b { font: 800 12px Orbitron, 'Noto Sans KR', sans-serif; color: #ff8a7a; letter-spacing: .1em; text-shadow: 0 1px 3px #000; }
#bossbar div { height: 10px; margin-top: 2px; border-radius: 5px; background: rgba(40, 8, 8, .85); border: 1px solid #ff5a5a; overflow: hidden; }
#bossbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3a3a, #ff9a5a); transition: width .15s; }
#banner { position: fixed; left: 0; right: 0; top: 34%; z-index: 12; text-align: center; font: 900 clamp(22px, 6vw, 40px) Orbitron, 'Noto Sans KR', sans-serif; letter-spacing: .08em; text-shadow: 0 0 18px currentColor, 0 3px 6px #000; pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
#banner.on { opacity: 1; transform: scale(1); }

/* 가상 조이스틱 */
#joy { position: fixed; z-index: 9; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); pointer-events: none; opacity: 0; transition: opacity .12s; }
#joy.on { opacity: 1; }
#joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; border-radius: 50%; background: rgba(247, 147, 26, .55); border: 2px solid rgba(255, 210, 154, .8); transform: translate(-50%, -50%); }

/* 공용 오버레이 */
#cards, #pause, #result, #start, #chest, #choice { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(var(--st) + 16px) calc(var(--sr) + 16px) calc(var(--sb) + 16px) calc(var(--sl) + 16px); background: rgba(3, 5, 11, .72); backdrop-filter: blur(3px); }
[hidden] { display: none !important; }
h1, h2 { margin: 0; font-family: Orbitron, 'Noto Sans KR', sans-serif; letter-spacing: .1em; text-align: center; }
#start h1 { font-size: clamp(34px, 9vw, 64px); color: var(--btc); text-shadow: 0 0 24px rgba(247, 147, 26, .5); }
#start p { margin: 0; text-align: center; color: var(--muted); }
.big { min-width: 200px; padding: 13px 26px; border-radius: 10px; border: 2px solid var(--btc); background: #7a4a10; font-weight: 800; font-size: 17px; }
.big.ghost { background: transparent; border-color: var(--line); font-size: 15px; }

/* 레벨업 카드 */
#cards h2 { color: var(--cyan); font-size: 26px; text-shadow: 0 0 18px rgba(95, 212, 255, .6); }
#cards .list { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; width: 100%; justify-content: center; }
.card { position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; gap: 2px 12px; text-align: left; padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); animation: cardIn .22s ease-out both; }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }
@keyframes cardIn { from { transform: translateY(14px); opacity: 0; } }
.card:hover, .card:focus-visible { border-color: var(--btc); }
.card.weapon { border-color: #b87a2a; } .card.passive { border-color: #3b6fb8; }
.card img { grid-row: 1 / 4; width: 56px; height: 56px; border-radius: 8px; }
.card .nm { font-weight: 800; font-size: 17px; }
.card .lvl { font: 700 12px Orbitron, sans-serif; color: var(--muted); }
.card .lvl em { font-style: normal; color: var(--ok); }
.card .ty { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 800; color: var(--muted); }
.card .ds { grid-column: 1 / 3; margin-top: 8px; font-size: 14px; color: #cfe0ff; }
.card .key { position: absolute; left: 6px; top: 4px; font: 800 10px Orbitron, sans-serif; color: var(--muted); }
@media (max-width: 700px), (orientation: portrait) {
  #cards .list { grid-template-columns: minmax(0, 420px); }
  .card { grid-template-rows: auto auto; } .card img { grid-row: 1 / 3; width: 48px; height: 48px; } .card .ds { grid-column: 2; margin-top: 2px; }
  .card .key { display: none; }
}

/* 코어 상자 */
#chest h2 { font-size: 30px; color: #ffd27a; } #chest h2.evo { font-size: 40px; color: #ffd27a; text-shadow: 0 0 24px rgba(255, 210, 122, .8); }
.evo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.evo-card { display: grid; justify-items: center; gap: 6px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); font-weight: 800; }
.evo-card img { width: 64px; height: 64px; border-radius: 10px; } .evo-card.gold { border-color: #ffd27a; box-shadow: 0 0 20px rgba(255, 210, 122, .5); color: #ffd27a; }
.evo-row .arrow { font-size: 28px; color: #ffd27a; }
#chest p { margin: 0; color: #cfe0ff; text-align: center; }
#chest .got { display: grid; gap: 6px; min-width: 260px; }
#chest .hint { max-width: 460px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
#chest .hint b { color: #ffd27a; }
/* 일시정지 · 결과 */
#pause-build { display: grid; gap: 6px; min-width: 240px; }
.bs { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.bs img { width: 28px; height: 28px; border-radius: 5px; } .bs span { flex: 1; } .bs b { font: 700 12px Orbitron, sans-serif; color: var(--muted); }
#result h2 { font-size: clamp(30px, 8vw, 48px); color: var(--bad); } #result h2.win { color: var(--ok); }
#result .stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#result .stats div { min-width: 96px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
#result .stats b { display: block; font: 800 22px Orbitron, sans-serif; } #result .stats span { font-size: 12px; color: var(--muted); }
#result .dmg { display: grid; gap: 6px; min-width: 260px; }
#result .dmg div { display: flex; align-items: center; gap: 10px; } #result .dmg img { width: 26px; height: 26px; border-radius: 5px; } #result .dmg span { flex: 1; } #result .dmg b { font: 700 13px Orbitron, sans-serif; color: var(--btc); }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* M4 — 타이틀 · 격납고 · 사토시 */
#hsats { font: 700 13px Orbitron, sans-serif; color: var(--btc); min-width: 52px; }
#start { gap: 12px; }
.title-ship { display: grid; justify-items: center; gap: 2px; } .title-ship img { width: 92px; height: 92px; filter: drop-shadow(0 0 12px rgba(127, 232, 255, .6)); } .title-ship span { font-weight: 800; color: var(--cyan); }
.sats-pill { padding: 4px 14px; border-radius: 99px; border: 1px solid var(--btc); color: var(--btc); font: 800 14px Orbitron, 'Noto Sans KR', sans-serif; }
#hangar { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: rgba(3, 5, 11, .96);
  padding: calc(var(--st) + 12px) calc(var(--sr) + 14px) calc(var(--sb) + 12px) calc(var(--sl) + 14px); touch-action: pan-y; }
.hg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto 8px; }
.hg-head h2 { color: var(--btc); font-size: 24px; }
.hg-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: 760px; width: 100%; margin: 0 auto; }
.hg-body h3 { margin: 12px 0 8px; font-size: 14px; color: var(--muted); letter-spacing: .1em; }
.ships { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ship { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); text-align: center; }
.ship > img { width: 54px; height: 54px; } .ship b { font-size: 15px; } .ship small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.ship .sw { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #ffd29a; } .ship .sw img { width: 16px; height: 16px; border-radius: 3px; }
.ship.sel { border-color: var(--cyan); box-shadow: 0 0 14px rgba(95, 212, 255, .45); }
.ship.locked { cursor: default; } .ship.locked > img { filter: brightness(0) drop-shadow(0 0 1px #56688f); } .ship.locked b { color: var(--muted); }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.up { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.up > img { width: 38px; height: 38px; border-radius: 7px; } .ut { flex: 1; display: grid; min-width: 0; } .ut b { font-size: 14px; } .ut small { font-size: 12px; color: var(--muted); }
.pips { display: flex; gap: 3px; margin: 2px 0; } .pips i { width: 14px; height: 5px; border-radius: 2px; background: #22345c; } .pips i.on { background: var(--btc); }
.buy { min-width: 76px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--btc); background: #5a3608; font: 800 13px Orbitron, 'Noto Sans KR', sans-serif; }
.buy:disabled { opacity: .4; cursor: default; }
.hg-rec { margin: 14px 0 6px; font-size: 12px; color: var(--muted); text-align: center; }
.link { background: none; border: 0; padding: 0; color: #ff9a8a; text-decoration: underline; font-size: 12px; }
.hg-foot { display: flex; gap: 10px; justify-content: center; padding-top: 10px; } .hg-foot .big { min-width: 0; flex: 1; max-width: 220px; }
/* 카드 리롤 · 밴 */
.card-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; min-height: 0; }
.tool { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; font-size: 14px; }
#cards.banning .card { border-color: #ff5a5a; } #cards.banning .card.extra { opacity: .4; }
/* 결과 — 사토시 · 해금 */
#result { overflow-y: auto; justify-content: safe center; }
#result .earn { display: grid; gap: 3px; min-width: 260px; font-size: 13px; }
#result .earn div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); } #result .earn b { font: 700 13px Orbitron, sans-serif; color: var(--btc); }
#result .earn .tot { border-top: 1px solid var(--line); padding-top: 4px; color: var(--text); } #result .earn .tot b { font-size: 16px; }
.unlock { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 12px; border: 2px solid #ffd27a; background: rgba(60, 40, 8, .85); box-shadow: 0 0 20px rgba(255, 210, 122, .4); }
.unlock img { width: 52px; height: 52px; } .unlock b { color: #ffd27a; } .unlock small { color: var(--muted); }
.row-btn { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .row-btn .big { min-width: 150px; }

/* M5 — 소리 설정 · 기록 */
.snd-set { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; min-width: 260px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; }
.snd-row { display: flex; align-items: center; gap: 10px; } .snd-row span { width: 60px; text-align: left; color: var(--muted); }
.snd-row input[type=range] { flex: 1; accent-color: var(--btc); } .snd-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--btc); }
.snd-row b { width: 28px; text-align: right; font: 700 12px Orbitron, sans-serif; color: var(--btc); }
.snd-toggle { font-size: 14px; color: var(--muted); }
#pause, #result { overflow-y: auto; justify-content: safe center; touch-action: pan-y; }
.newbest { margin-top: -8px; padding: 3px 14px; border-radius: 99px; background: #7a4a10; border: 1px solid #ffd27a; color: #ffd27a; font-weight: 800; font-size: 13px; animation: cardIn .3s ease-out both; }

/* 2026-09-27 — 미니맵 · 진화 카드 */
#minimap { position: fixed; right: calc(var(--sr) + 10px); bottom: calc(var(--sb) + 10px); width: 100px; height: 100px; pointer-events: none; opacity: .92; }
.card.evo { border-color: #ffd27a; box-shadow: 0 0 18px rgba(255, 210, 122, .45); background: linear-gradient(135deg, rgba(60, 40, 8, .95), var(--panel)); }
.card.evo .nm { color: #ffd27a; } .card .lvl em.gold { color: #ffd27a; }
.card .pairs { display: flex; gap: 8px; margin-top: 5px; }
.card .pairs i { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 5px; border: 1px solid rgba(255, 210, 122, .45); background: rgba(40, 28, 8, .6); font-style: normal; }
.card .pairs img { width: 18px; height: 18px; border-radius: 3px; grid-row: auto; } .card .pairs em { font-style: normal; font-size: 10px; color: #c9a86a; }

/* 개발자맵 (dev.html) */
#devpanel { position: fixed; left: calc(var(--sl) + 8px); top: calc(var(--st) + 62px); z-index: 15; display: grid; gap: 4px; padding: 6px; border-radius: 10px; background: rgba(8, 14, 32, .82); border: 1px dashed #ff5aa8; }
.dv-title { font: 800 10px Orbitron, 'Noto Sans KR', sans-serif; color: #ff8ac0; letter-spacing: .1em; }
.dv-grid { display: grid; grid-template-columns: repeat(5, 38px); gap: 4px; }
.dv { position: relative; width: 38px; height: 38px; padding: 0; border-radius: 7px; border: 1px solid #b87a2a; background: #0c1630; overflow: hidden; }
.dv img { width: 100%; height: 100%; display: block; } .dv span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 8px; line-height: 1.2; background: rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.dv.evo { border-color: #ffd27a; box-shadow: 0 0 6px rgba(255, 210, 122, .6); } .dv.evo span { color: #ffd27a; }
.dv:active { transform: scale(.94); }
.dv-row { display: flex; gap: 4px; } .dv-sm { flex: 1; padding: 4px 0; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); font-size: 11px; font-weight: 800; } .dv-sm.on { border-color: #5dff9c; color: #5dff9c; }
.dev-badge { color: #ff8ac0 !important; font: 800 13px Orbitron, "Noto Sans KR", sans-serif; letter-spacing: .12em; }
.dv.pas { border-color: #3b6fb8; } .dv.pas span { color: #bcd6ff; }

/* 2026-09-29 함선 (허브) — 아이폰 한 화면: 위 기체 · 가운데 2×2 메뉴 · 아래 출격 */
#hub, #mapsel { position: fixed; inset: 0; z-index: 20; background: radial-gradient(120% 80% at 50% 0%, #10204a 0%, #050814 55%, #02030a 100%); }
#hub { display: flex; flex-direction: column; gap: 12px; padding: calc(var(--st) + 10px) calc(var(--sr) + 14px) calc(var(--sb) + 14px) calc(var(--sl) + 14px); max-width: 560px; margin: 0 auto; }
.hub-top { display: flex; align-items: center; gap: 10px; }
.hub-logo { flex: 1; font: 900 18px Orbitron, sans-serif; color: var(--btc); letter-spacing: .08em; text-shadow: 0 0 14px rgba(247, 147, 26, .5); }
.hub-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 18px; line-height: 1; }
.hub-ship { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(40, 80, 160, .35), rgba(10, 18, 40, .6)); border: 1px solid #2b4a82; }
.hub-ship img { width: 64px; height: 64px; filter: drop-shadow(0 0 10px rgba(127, 196, 255, .6)); }
.hub-ship small { display: block; font-size: 11px; color: var(--muted); } .hub-ship b { font-size: 18px; }
.hub-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; min-height: 0; }
.hub-tile { position: relative; padding: 0; border-radius: 16px; border: 1px solid #2b4a82; background: #081026; overflow: hidden; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.hub-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-tile .ht-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(3, 5, 11, .92)); display: grid; }
.hub-tile b { font-size: 20px; font-weight: 900; } .hub-tile small { font-size: 12px; color: #bcd0f0; }
.hub-tile:active { transform: scale(.97); }
.ht-badge { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .6); border: 1px solid #ffd27a; color: #ffd27a; font-size: 11px; font-style: normal; font-weight: 800; }
.hub-go { width: 100%; min-width: 0; }

/* 성간 지도 (맵 선택): 행성을 눌러 아래 카드에서 출격 */
#starmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(var(--st) + 10px) calc(var(--sr) + 14px) 10px calc(var(--sl) + 14px); background: linear-gradient(rgba(3, 5, 11, .85), transparent); }
.ms-top b { flex: 1; font: 900 16px Orbitron, 'Noto Sans KR', sans-serif; letter-spacing: .06em; }
.ms-nodes { position: absolute; inset: 0 0 38% 0; }
.ms-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; }
.ms-node img { width: 72px; height: 72px; border-radius: 50%; filter: drop-shadow(0 0 10px var(--c)); transition: transform .15s; }
.ms-node span { font-size: 12px; font-weight: 800; text-align: center; text-shadow: 0 1px 4px #000, 0 0 2px #000; line-height: 1.15; white-space: nowrap; }
.ms-node small { display: block; font: 800 9px Orbitron, sans-serif; color: var(--c); letter-spacing: .08em; }
.ms-node.sel img { transform: scale(1.18); filter: drop-shadow(0 0 16px var(--c)) drop-shadow(0 0 4px #fff); }
.ms-node.sel::after { content: ''; position: absolute; top: 36px; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 2px dashed var(--c); animation: spin 8s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ms-node.locked img { filter: grayscale(1) brightness(.45); } .ms-node.locked span { color: var(--muted); }
.ms-node .lock { position: absolute; top: 24px; font-style: normal; font-size: 20px; }
.ms-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-width: 560px; margin: 0 auto; padding: 14px 16px calc(var(--sb) + 14px); border-radius: 18px 18px 0 0; background: rgba(8, 14, 32, .96); border-top: 1px solid #2b4a82; box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); display: grid; gap: 10px; }
.sh-head { display: flex; gap: 12px; align-items: center; } .sh-head img { width: 64px; height: 64px; flex: none; }
.sh-head small { font: 800 10px Orbitron, sans-serif; color: var(--muted); letter-spacing: .08em; } .sh-head b { display: block; font-size: 20px; } .sh-head span { display: block; font-size: 12px; color: #bcd0f0; line-height: 1.45; }
.sh-rows { display: grid; gap: 4px; font-size: 13px; } .sh-rows div { display: flex; align-items: center; gap: 10px; } .sh-rows em { width: 34px; font-style: normal; color: var(--muted); font-size: 12px; }
.sh-icons { display: flex; gap: 4px; flex-wrap: wrap; } .sh-icons img { width: 28px; height: 28px; } .sh-icons img.boss { width: 34px; height: 34px; filter: drop-shadow(0 0 4px #ff5a5a); }
.ms-sheet .big { width: 100%; min-width: 0; } .sh-lock { text-align: center; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); color: var(--muted); font-weight: 800; }
@media (min-height: 700px) { .ms-node img { width: 84px; height: 84px; } .ms-node.sel::after { top: 42px; width: 104px; height: 104px; margin: -52px 0 0 -52px; } }

/* 2026-09-29 격납고 개편 — 기체 줄 · 기체 카드(스텝 · 소켓) · 글리프 가방 · 영구 강화(접힘) */
#hangar .hg-head { align-items: center; } #hangar .hg-head h2 { flex: 1; text-align: left; margin-left: 4px; }
.hs-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; max-width: 760px; width: 100%; margin: 0 auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hs-strip::-webkit-scrollbar { display: none; }
.hs-ship { flex: none; width: 68px; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.hs-ship img { width: 44px; height: 44px; } .hs-ship small { font-size: 10px; font-weight: 800; white-space: nowrap; }
.hs-ship.on { border-color: var(--cyan); box-shadow: 0 0 12px rgba(95, 212, 255, .45); }
.hs-ship.ride small { color: var(--cyan); }
.hs-ship.locked img { filter: brightness(0) drop-shadow(0 0 1px #56688f); } .hs-ship.locked small { color: var(--muted); }
.hs-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(40, 80, 160, .35), rgba(10, 18, 40, .8)); border: 1px solid #2b4a82; }
.hs-big { width: 110px; height: 110px; filter: drop-shadow(0 0 14px rgba(127, 196, 255, .55)); }
.hs-card.locked .hs-big { filter: brightness(0) drop-shadow(0 0 2px #56688f); }
.hs-info { display: grid; gap: 3px; } .hs-info b { font-size: 19px; } .hs-info small { font-size: 12px; color: #bcd0f0; line-height: 1.35; }
.ride-tag { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: #1c3a6e; color: var(--cyan); vertical-align: middle; }
.hs-info .sw { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #ffd29a; } .hs-info .sw img { width: 16px; height: 16px; border-radius: 3px; }
.hs-step { display: flex; align-items: center; gap: 8px; font: 800 12px Orbitron, 'Noto Sans KR', sans-serif; color: var(--btc); }
.pips.wide i { width: 20px; height: 7px; }
.hs-ult { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; padding: 7px 9px; border-radius: 10px; background: rgba(255, 210, 122, 0.08); border: 1px solid rgba(255, 210, 122, 0.35); }
.hs-ult > span { display: flex; flex-direction: column; gap: 2px; flex: none; } .hs-ult img { width: 20px; height: 20px; }
.hs-ult b { display: block; font-size: 13px; color: #ffd27a; } .hs-ult small { font-size: 11.5px !important; }
.hs-bonus { color: var(--ok) !important; }
.hs-btns { grid-column: 1 / 3; display: flex; gap: 8px; } .hs-btns .big { flex: 1; min-width: 0; padding: 10px; font-size: 15px; } .hs-btns .big:disabled { opacity: .45; }
.hs-max { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--btc); color: var(--btc); font-weight: 900; }
.hs-socks { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sock { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px dashed #4a6aa8; background: rgba(0, 0, 0, .25); }
.sock span { font-size: 22px; line-height: 44px; height: 44px; color: #7fa4e0; } .sock img { width: 44px; height: 44px; } .sock small { font-size: 10px; color: var(--muted); }
.sock.full { border-style: solid; border-color: #6a8ad0; } .sock.pick { border-color: var(--btc); box-shadow: 0 0 12px rgba(247, 147, 26, .5); } .sock.locked { opacity: .5; }
.hs-hint { grid-column: 1 / 3; margin: 0; font-size: 12px; color: var(--btc); text-align: center; }
.bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.bag-g { position: relative; display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); text-align: left; }
.bag-g img { width: 36px; height: 36px; flex: none; } .bag-g b { position: absolute; left: 30px; top: 2px; font: 800 10px Orbitron, sans-serif; color: #fff; text-shadow: 0 0 3px #000; }
.bag-g span { font-size: 11px; color: #bcd0f0; line-height: 1.3; } .bag-g em { display: block; font-style: normal; font-weight: 800; color: #fff; font-size: 12px; }
.bag-g .g-opt { display: block; font-style: normal; color: #ffd27a; font-weight: 700; margin-top: 1px; } .bag-g.opt { border-color: #7a6030; }
.ty-boost { font-style: normal; color: #ffd27a; }
.bag-g.can { border-color: var(--btc); box-shadow: 0 0 8px rgba(247, 147, 26, .35); }
.bag-empty { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); text-align: center; padding: 10px; }
.hg-ups { margin-top: 14px; } .hg-ups summary { cursor: pointer; font-size: 14px; color: var(--muted); letter-spacing: .06em; padding: 8px 0; }
.got-glyphs { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; border: 1px solid #6a8ad0; background: rgba(20, 30, 70, .8); } .got-glyphs span { font-size: 12px; font-weight: 800; margin-right: 4px; } .got-glyphs img { width: 36px; height: 36px; }

/* 2026-09-29 BSL (퀘스트 게시판) */
#bsl, #casino, #achv, #forge, #buy, #opts { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 0%, #3a2a0a 0%, #120c04 50%, #05040a 100%);
  padding: calc(var(--st) + 12px) calc(var(--sr) + 14px) calc(var(--sb) + 12px) calc(var(--sl) + 14px); touch-action: pan-y; }
#bsl .hg-head, #casino .hg-head { display: flex; align-items: center; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
#bsl .hg-head h2, #casino .hg-head h2 { flex: 1; text-align: left; color: #ffd27a; font-size: 22px; }
.bsl-sub { margin: 4px auto 10px; max-width: 760px; width: 100%; font-size: 12px; color: #c9a87a; }
.bsl-menu { display: grid; gap: 12px; max-width: 520px; width: 100%; margin: 8px auto 0; }
.bsl-menu-btn { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 16px; border: 2px solid #c9a87a; background: linear-gradient(135deg, rgba(90, 58, 18, .85), rgba(30, 20, 8, .85)); color: #fff; text-align: left; }
.bsl-menu-btn i { font-style: normal; font-size: 30px; } .bsl-menu-btn span { flex: 1; display: grid; gap: 2px; } .bsl-menu-btn b { font-size: 19px; } .bsl-menu-btn small { font-size: 12px; color: #d9c4a0; }
.bsl-menu-btn em { font-style: normal; font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 8px; background: var(--btc); color: #1a0e00; }
.bsl-menu-btn.soon { border-color: #5a5048; background: rgba(30, 26, 22, .8); opacity: .75; } .bsl-menu-btn em.soon { background: #3a342e; color: #bbb; }
.bsl-soon-msg { text-align: center; color: #c9a87a; font-size: 13px; margin-top: 12px; }
.bsl-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: 8px; align-content: start; max-width: 760px; width: 100%; margin: 0 auto; }
.qcard { padding: 10px 12px; border-radius: 12px; background: rgba(20, 14, 6, .85); border: 1px solid #5a4420; display: grid; gap: 6px; }
.qcard.ready { border-color: #ffd27a; box-shadow: 0 0 14px rgba(255, 210, 122, .35); } .qcard.claimed { opacity: .5; }
.q-top { display: flex; align-items: baseline; gap: 8px; } .q-top b { font-size: 16px; } .q-who { font-size: 11px; font-weight: 800; }
.qcard p { margin: 0; font-size: 12px; color: #e8dcc0; line-height: 1.45; }
.q-bar { position: relative; height: 16px; border-radius: 8px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.q-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b8781a, #ffd27a); } .q-bar span { position: absolute; inset: 0; text-align: center; font: 700 10px/16px Orbitron, sans-serif; text-shadow: 0 1px 2px #000; }
.q-foot { display: flex; align-items: center; gap: 8px; } .q-rw { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.rw { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .4); border: 1px solid #6a5a3a; font-size: 12px; font-weight: 800; }
.rw img { width: 20px; height: 20px; } .rw.sats { color: var(--btc); border-color: #8a5a14; } .rw.unlock { color: #8fffbc; border-color: #2a8a5a; }
.q-claim { padding: 8px 14px; border-radius: 10px; border: 2px solid var(--btc); background: #7a4a10; font-weight: 900; font-size: 14px; animation: cardIn .3s ease-out both; }
.q-done { color: var(--ok); font-weight: 900; font-size: 13px; }
.q-note { padding: 6px 14px; border-radius: 10px; border: 1px solid #ffd27a; color: #ffd27a; font-size: 13px; font-weight: 800; background: rgba(60, 40, 8, .7); }
.hs-wing { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-weight: 800; font-size: 14px; }
.hs-wing img { width: 32px; height: 32px; } .hs-wing small { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 400; } .hs-wing.on { border-color: var(--cyan); color: var(--cyan); }

/* 2026-09-29 도박장 (알트코인) */
#casino { background: radial-gradient(120% 70% at 50% 0%, #0c3a22 0%, #04140c 50%, #02060a 100%); }
#casino .hg-head h2 { color: #3ae08a; }
.cs-body { flex: 1; overflow-y: auto; display: grid; gap: 10px; align-content: start; max-width: 560px; width: 100%; margin: 0 auto; }
.cs-coins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cs-coin { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 1px solid #1e4a34; background: rgba(4, 20, 12, .85); }
.cs-coin i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 900 16px Orbitron, sans-serif; font-style: normal; background: var(--c); color: #06110b; box-shadow: 0 0 10px var(--c); }
.cs-coin b { font-size: 12px; } .cs-coin small { font: 700 9px Orbitron, sans-serif; color: var(--muted); }
.cs-coin.on { border-color: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }
.cs-chart { position: relative; height: 210px; border-radius: 14px; background: rgba(2, 10, 6, .85); border: 1px solid #1e4a34; overflow: hidden; }
.cs-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-tag { position: absolute; left: 10px; top: 8px; display: grid; } .cs-tag b { font-size: 14px; } .cs-tag small { font-size: 11px; color: var(--muted); }
.cs-res { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 10px; display: grid; gap: 3px; background: rgba(0, 0, 0, .75); animation: cardIn .25s ease-out both; }
.cs-res b { font-size: 17px; } .cs-res small { font-size: 12px; opacity: .8; } .cs-res span { font-size: 12px; } .cs-res em { font-style: normal; font-size: 11px; color: #ffd27a; }
.cs-res.lose { border: 1px solid #ff5a5a; } .cs-res.lose b { color: #ff6a6a; } .cs-res.win { border: 1px solid #3ae08a; } .cs-res.win b { color: #3ae08a; }
.cs-bet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cs-bet span { font-size: 12px; color: var(--muted); } .cs-bet b { font: 800 18px Orbitron, sans-serif; color: var(--btc); }
.cs-chips { margin-left: auto; display: flex; gap: 6px; } .cs-chips button { padding: 6px 10px; border-radius: 99px; border: 1px solid #2a6a4a; background: rgba(4, 20, 12, .9); font-size: 12px; font-weight: 800; }
.cs-buy { width: 100%; min-width: 0; border-color: #3ae08a; background: #0e5a32; } .cs-buy:disabled { opacity: .45; }
.cs-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .cs-stats b.neg { color: #ff6a6a; } .cs-stats b.pos { color: #3ae08a; }
.cs-warn { margin: 0; font-size: 11px; color: #ffd27a; text-align: center; line-height: 1.5; }
#hub { background-size: cover; background-position: center; }
/* 긴 맵 이름(무한 소행성 고리)도 출격 버튼 한 줄에 */
#hg-go, .hub-go { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hg-go { min-width: min(86vw, 360px); }

/* 스크립트 (글리프 3개 순서 조합) */
.hs-script { grid-column: 1 / 3; margin-top: 0; padding: 7px 10px; border-radius: 10px; border: 1px dashed #3a4a70; } .hs-script small { font-size: 11.5px; color: var(--muted); }
.hs-script.on { border: 1px solid var(--c); background: rgba(255, 255, 255, .05); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }
.hs-script.on b { display: block; color: var(--c); font-size: 14px; } .hs-script.on small { color: #e6eeff; }
.hg-scripts { margin: 12px 0 4px; } .hg-scripts summary { cursor: pointer; font-size: 14px; color: var(--muted); letter-spacing: .05em; }
.scr-list { display: grid; gap: 6px; margin-top: 8px; }
.scr { display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.scr.on { border-color: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); }
.scr-seq { display: flex; align-items: center; gap: 2px; flex: none; } .scr-seq img { width: 30px; height: 30px; } .scr-seq i { font-style: normal; color: var(--muted); font-size: 11px; }
.scr b { display: block; font-size: 13px; color: var(--c); } .scr small { font-size: 11.5px; color: #bcd0f0; }

/* 글리프 희귀도 (2026-09-29) */
.bag-g.r1 { border-color: #2a6ab0; } .bag-g.r2 { border-color: #c07a1a; box-shadow: 0 0 10px rgba(255, 176, 58, .35); }
.bag-g em u { text-decoration: none; font-size: 10.5px; font-weight: 900; }
.bag-g.r3 { border-color: #ff2a2a; background: linear-gradient(135deg, rgba(90, 10, 10, .85), rgba(30, 6, 6, .85)); box-shadow: 0 0 14px rgba(255, 42, 42, .55); }
/* 2026-09-29 사용자: 격납고 '스크립트 6종' · '영구 강화' 를 빛나는 박스로 — 눈에 잘 띄게 (스크립트 = 보라 · 영구 강화 = 비트코인 주황) */
.hg-scripts, .hg-ups { position: relative; margin: 14px 0 6px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--gc); background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 14%, rgba(8, 14, 32, .9)), rgba(8, 14, 32, .9)); box-shadow: 0 0 14px color-mix(in srgb, var(--gc) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--gc) 18%, transparent); animation: hgGlow 2.4s ease-in-out infinite; }
.hg-scripts { --gc: #b98aff; } .hg-ups { --gc: #f7931a; }
.hg-scripts summary, .hg-ups summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 2px; font-size: 15px; font-weight: 900; letter-spacing: .04em; color: #fff; text-shadow: 0 0 8px var(--gc); }
.hg-scripts summary::-webkit-details-marker, .hg-ups summary::-webkit-details-marker { display: none; }
.hg-scripts summary::before, .hg-ups summary::before { content: ''; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--gc); border-bottom: 2.5px solid var(--gc); transform: rotate(-45deg); transition: transform .2s; }
.hg-scripts[open] summary::before, .hg-ups[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.hg-scripts summary::after, .hg-ups summary::after { content: '열기'; margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--gc); color: #0a0612; text-shadow: none; }
.hg-scripts[open] summary::after, .hg-ups[open] summary::after { content: '접기'; }
.hg-scripts[open], .hg-ups[open] { padding-bottom: 10px; animation: none; }
@keyframes hgGlow { 0%, 100% { box-shadow: 0 0 10px color-mix(in srgb, var(--gc) 35%, transparent), inset 0 0 10px color-mix(in srgb, var(--gc) 14%, transparent); } 50% { box-shadow: 0 0 22px color-mix(in srgb, var(--gc) 70%, transparent), inset 0 0 16px color-mix(in srgb, var(--gc) 26%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hg-scripts, .hg-ups { animation: none; } }

/* 레벨업 카드 계열 색 (2026-09-29 사용자) */
.card.c-order, .card.c-entropy, .card.c-white { border-color: var(--cc); background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 16%, var(--panel)), var(--panel) 70%); box-shadow: 0 0 12px color-mix(in srgb, var(--cc) 35%, transparent); }
.card.c-order { --cc: #3a9bff; } .card.c-entropy { --cc: #ff8a2a; } .card.c-white { --cc: #e8eef8; }
.card.c-order .ty, .card.c-entropy .ty, .card.c-white .ty { color: var(--cc); }
.card.c-order:hover, .card.c-entropy:hover, .card.c-white:hover, .card.c-order:focus-visible, .card.c-entropy:focus-visible, .card.c-white:focus-visible { border-color: var(--cc); box-shadow: 0 0 22px color-mix(in srgb, var(--cc) 65%, transparent); }

/* BSL 퀘스트 탭 (2026-09-29) */
.q-tabs { display: flex; gap: 6px; overflow-x: auto; max-width: 760px; width: 100%; margin: 0 auto 8px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.q-tab { position: relative; flex: none; display: grid; justify-items: center; gap: 0; padding: 6px 12px; border-radius: 10px; border: 1px solid #5a4a30; background: rgba(30, 20, 8, .75); color: #e8d6b8; font-weight: 800; font-size: 13px; }
.q-tab small { font: 700 10px Orbitron, sans-serif; color: #b8a07a; } .q-tab.on { border-color: var(--btc); background: #5a3a10; color: #fff; box-shadow: 0 0 10px rgba(247, 147, 26, .4); }
.q-tab em { position: absolute; top: -6px; right: -4px; min-width: 18px; padding: 1px 5px; border-radius: 99px; background: var(--btc); color: #1a0e00; font: 900 10px/14px Orbitron, sans-serif; font-style: normal; }
.rw img { vertical-align: middle; }

/* 진홍 성운 클리어 선택 (2026-09-29) */
#choice { background: rgba(3, 5, 11, .82); padding: 20px 16px; }
#choice .ch-sub { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
#choice .ch-btns { display: grid; gap: 12px; width: min(420px, 100%); }
#choice .ch-btns button { display: grid; gap: 4px; text-align: center; padding: 16px 14px; }
#choice .ch-btns b { font-size: 20px; } #choice .ch-btns small { font-size: 12px; font-weight: 600; opacity: .85; line-height: 1.35; }
#choice .ch-go { box-shadow: 0 0 18px rgba(247, 147, 26, .55); }

/* 2026-09-30: 성간 지도 위쪽 바의 빈 곳은 터치가 아래(행성)로 지나가게 — 버튼만 눌린다 */
.ms-top { pointer-events: none; } .ms-top > button, .ms-top > .sats-pill { pointer-events: auto; }

/* 개발자맵: 성간 지도 '곰들렌 출연 100%' 토글 */
.dev-gom { padding: 5px 10px; border-radius: 99px; border: 1px solid #6a5a30; background: rgba(40, 30, 10, .8); color: #d8c08a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dev-gom.on { border-color: #ffd24a; background: #6a4a10; color: #fff; box-shadow: 0 0 10px rgba(255, 210, 74, .5); }

/* 도박장 코인 확률 · 수익 (2026-09-30) */
.cs-tag .cs-odds { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #ffd27a; }

/* 성간 지도 설명 창: 항목 이름(글리프 · 보상)이 두 줄로 꺾이지 않게 · 제목 '성간 지도' 한 줄 */
.sh-rows em { white-space: nowrap; flex: none; } .ms-top b { white-space: nowrap; }
.sats-pill { white-space: nowrap; }

/* 글리프 가방도 빛나는 접이식 박스 (2026-09-30) — 스크립트 · 영구 강화와 같은 모양, 하늘색 */
.hg-bag { position: relative; margin: 14px 0 6px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--gc); background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 14%, rgba(8, 14, 32, .9)), rgba(8, 14, 32, .9)); box-shadow: 0 0 14px color-mix(in srgb, var(--gc) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--gc) 18%, transparent); animation: hgGlow 2.4s ease-in-out infinite; --gc: #5fd4ff; }
.hg-bag summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 2px; font-size: 15px; font-weight: 900; letter-spacing: .04em; color: #fff; text-shadow: 0 0 8px var(--gc); cursor: pointer; }
.hg-bag summary::-webkit-details-marker { display: none; }
.hg-bag summary::before { content: ''; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--gc); border-bottom: 2.5px solid var(--gc); transform: rotate(-45deg); transition: transform .2s; }
.hg-bag[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.hg-bag summary::after { content: '열기'; margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--gc); color: #0a0612; text-shadow: none; }
.hg-bag[open] summary::after { content: '접기'; }
.hg-bag[open] { padding-bottom: 10px; animation: none; }
@media (prefers-reduced-motion: reduce) { .hg-bag { animation: none; } }

/* BSL 우편 (2026-09-30) */
.mail-all { max-width: 760px; width: 100%; margin: 0 auto 8px; }
.qcard.mail .mail-until { color: var(--muted); font-size: 11px; }

/* 도박장 메뉴 · 홀짝 퀴즈쇼 · 틱틱 트레이딩 (2026-10-01) */
.cs-menu-btn { border-color: #b8781a; background: linear-gradient(135deg, rgba(90, 50, 10, .85), rgba(30, 16, 6, .85)); }
#casino .cs-stats { max-width: 520px; width: 100%; margin: 12px auto 0; }
.qz-stages { display: grid; gap: 10px; max-width: 520px; width: 100%; margin: 6px auto 0; }
.qz-stage { display: grid; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid #5a7ad0; background: linear-gradient(135deg, rgba(20, 40, 90, .9), rgba(8, 14, 32, .9)); color: #fff; }
.qz-stage b { font-size: 18px; } .qz-stage span { font-size: 13px; color: #cfe0ff; } .qz-stage em { font-style: normal; font-weight: 900; color: #ffb04a; } .qz-stage em.win { color: #8fffbc; }
.qz-stage:disabled { opacity: .45; } .qz-note { text-align: center; }
.qz-box { max-width: 560px; width: 100%; margin: 0 auto; display: grid; gap: 10px; }
.qz-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 800; } #qz-left { color: #ffd27a; font-family: Orbitron, sans-serif; }
.qz-timer { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; } .qz-timer i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a5a, #ffd27a, #8fffbc); }
.qz-q { margin: 6px 0; font-size: 19px; font-weight: 900; line-height: 1.4; color: #fff; }
.qz-choices { display: grid; gap: 8px; }
.qz-c { display: flex; gap: 10px; align-items: center; text-align: left; padding: 13px 14px; border-radius: 12px; border: 2px solid #3b5a9a; background: rgba(12, 22, 48, .95); color: #fff; font-size: 15px; font-weight: 700; }
.qz-c i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #1e3a70; font: 900 13px Orbitron, sans-serif; }
.qz-c.right { border-color: #3ae08a; background: rgba(20, 90, 50, .9); } .qz-c.wrong { border-color: #ff5a5a; background: rgba(110, 20, 20, .9); }
.qz-prize { text-align: center; color: #8fffbc; font-weight: 800; font-size: 13px; }
.qz-done { max-width: 560px; width: 100%; margin: 10px auto 0; display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); }
.qz-done.win { border-color: #3ae08a; } .qz-done.lose { border-color: #ff5a5a; } .qz-done > b { font-size: 18px; }
.qz-exp { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); } .qz-exp small { color: var(--muted); } .qz-exp em { font-style: normal; color: #8fffbc; font-weight: 900; } .qz-exp p { margin: 0; font-size: 13px; color: #cfe0ff; }
.tr-body { max-width: 620px; width: 100%; margin: 0 auto; display: grid; gap: 10px; }
.tr-chart { position: relative; height: 230px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 8, 20, .9); overflow: hidden; }
.tr-chart canvas { width: 100%; height: 100%; display: block; }
.tr-news { position: absolute; left: 8px; top: 8px; right: 70px; display: grid; gap: 3px; pointer-events: none; }
.tr-news div { font-size: 11.5px; color: #e6eeff; background: rgba(8, 14, 32, .75); padding: 2px 7px; border-radius: 6px; width: fit-content; max-width: 100%; }
.tr-news b { color: #ffd27a; margin-right: 4px; }
.tr-levs, .tr-go { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .tr-go { grid-template-columns: 1fr 1fr; }
.tr-levs button { padding: 10px; border-radius: 10px; border: 2px solid #3b5a9a; background: rgba(12, 22, 48, .95); color: #cfe0ff; font: 900 15px Orbitron, sans-serif; } .tr-levs button.on { border-color: #f7931a; color: #fff; background: #5a3a10; }
.tr-long { background: #1c6a3e !important; border-color: #3ae08a !important; } .tr-short { background: #7a1c1c !important; border-color: #ff5a5a !important; }
.tr-pos { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); } .tr-pos.long { border-color: #3ae08a; } .tr-pos.short { border-color: #ff5a5a; }
.tr-pos #tr-pnl { font: 900 20px Orbitron, sans-serif; } .tr-pos #tr-pnl.pos { color: #3ae08a; } .tr-pos #tr-pnl.neg { color: #ff5a5a; }
.tr-hold { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .5); overflow: hidden; } .tr-hold i { display: block; height: 100%; width: 0; background: #f7931a; }

.tr-res { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); }
.tr-res.win { border-color: #3ae08a; } .tr-res.lose { border-color: #ff5a5a; }
.tr-res b { font-size: 17px; } .tr-res.win b { color: #3ae08a; } .tr-res.lose b { color: #ff7a7a; } .tr-res small { color: #cfe0ff; font-weight: 600; font-size: 12px; } .tr-res em { font-style: normal; font-size: 12.5px; color: #ffd27a; }
.tr-body { grid-template-columns: minmax(0, 1fr); } .tr-body .cs-bet { flex-wrap: wrap; row-gap: 6px; } .tr-body .cs-chips { margin-left: auto; }
.qz-box, .qz-stages, .qz-done { grid-template-columns: minmax(0, 1fr); }
.tr-go .big { min-width: 0; width: 100%; padding-left: 8px; padding-right: 8px; } .tr-go { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.qz-stage small { font-size: 11.5px; color: var(--muted); } .qz-stage.done { border-color: #3a8a5a; } .qz-clear { font-style: normal; font-size: 12px; color: #8fffbc; margin-left: 6px; }
.qz-stage em.leg { color: #ffb03a; }
.qz-bonus { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffb03a; background: rgba(90, 60, 10, .6); } .qz-bonus img { width: 44px; height: 44px; } .qz-bonus em { font-style: normal; color: #ffb03a; font-weight: 900; }
.qz-stage.locked { opacity: .5; border-style: dashed; } .qz-lock { font-style: normal; font-size: 11.5px; color: #ffb04a; margin-left: 6px; }

/* 업적 · 궁극 기체 제작 (2026-10-01) */
#achv { background: radial-gradient(120% 70% at 50% 0%, #2a1a4a 0%, #0c0818 50%, #04030a 100%); }
#forge { background: radial-gradient(120% 70% at 50% 0%, #4a2a0a 0%, #140a04 50%, #05040a 100%); }
.hub-grid { grid-template-rows: repeat(3, 1fr); }
.ac-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 760px; width: 100%; margin: 4px auto 6px; }
.ac-tab { position: relative; padding: 11px 8px; border-radius: 12px; border: 2px solid #4a3a7a; background: rgba(20, 14, 40, .85); color: #d8cff0; font-weight: 900; font-size: 15px; }
.ac-tab.on { border-color: #b98aff; color: #fff; background: #3a2a6a; box-shadow: 0 0 12px rgba(185, 138, 255, .45); } .ac-tab small { font: 700 11px Orbitron, sans-serif; color: #b8a8e0; }
.ac-tab em { position: absolute; top: -7px; right: -4px; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--btc); color: #1a0e00; font: 900 11px/16px Orbitron, sans-serif; font-style: normal; }
.ac-body { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: 760px; width: 100%; margin: 0 auto; }
.ac-body .bsl-list { flex: 1; }
.cx-reward { display: grid; gap: 6px; justify-items: start; margin: 0 0 8px; font-size: 13px; color: #d8cff0; } .cx-reward small { color: var(--muted); }
.cx-grid { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; align-content: start; }
.cx-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid #4a3a7a; background: rgba(16, 12, 34, .9); }
.cx-card img { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: contain; } .cx-card b { font-size: 14px; } .cx-card p { margin: 2px 0 0; font-size: 12.5px; color: #cfc4ea; line-height: 1.4; }
.cx-card.lock { opacity: .55; } .cx-card.lock span { width: 44px; height: 44px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #1a1430; color: #6a5a9a; font: 900 20px Orbitron, sans-serif; }
/* 궁극 기체 제작 = 커스텀 기체 빌더 (2026-10-01) */
.fg-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: 760px; width: 100%; margin: 0 auto; display: grid; gap: 10px; align-content: start; padding-bottom: 8px; }
.fg-new { width: 100%; }
.fg-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.fg-card { --g: #ffb43a; display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 2px solid var(--g); background: linear-gradient(135deg, rgba(60, 36, 8, .9), rgba(14, 10, 6, .9)); box-shadow: 0 0 12px color-mix(in srgb, var(--g) 35%, transparent); }
.fg-top { display: flex; gap: 10px; align-items: center; } .fg-ship { width: 58px; height: 58px; object-fit: contain; } .fg-top b { font-size: 17px; display: block; } .fg-top small { font-size: 12px; color: #e0c8a0; }
.fg-grade { font-style: normal; font-weight: 900; color: var(--g); }
.fg-line { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #ffe2b0; } .fg-line img { width: 22px; height: 22px; } .fg-line small { color: #b89a70; }
.fg-wings { display: flex; gap: 6px; flex-wrap: wrap; } .fg-wings span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid #6a4a1a; font-size: 12px; } .fg-wings img { width: 24px; height: 24px; object-fit: contain; } .fg-wings .empty { color: #8a7a60; padding-left: 8px; }
.fg-acts { display: flex; gap: 6px; align-items: center; } .fg-acts .big { flex: 1; min-width: 0; padding: 9px 6px; font-size: 14px; } .fg-del { color: #ff8a7a; font-size: 12px; }
.fg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fg-steps .ac-tab { font-size: 13px; padding: 9px 4px; border-color: #7a5a2a; background: rgba(40, 24, 6, .85); } .fg-steps .ac-tab.on { border-color: #ffb43a; background: #5a3a0a; box-shadow: 0 0 12px rgba(255, 180, 58, .4); } .fg-steps .ac-tab:disabled { opacity: .35; }
.fg-name { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 2px solid #ffb43a; background: rgba(60, 36, 8, .85); } .fg-name b { font-size: 14px; color: #ffd27a; }
.fg-name input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid #7a5a2a; background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: 17px; font-weight: 800; } .fg-name input:focus { outline: none; border-color: #ffd27a; box-shadow: 0 0 10px rgba(255, 210, 122, .4); } .fg-name small { font-size: 11px; color: #b89a70; }
.fg-grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fg-gr { --g: #fff; display: grid; gap: 2px; align-content: start; text-align: left; padding: 8px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--g) 40%, transparent); background: rgba(0, 0, 0, .35); color: #eee; }
.fg-gr b { color: var(--g); font-size: 15px; } .fg-gr span { font: 800 11px Orbitron, sans-serif; color: #ffd27a; } .fg-gr small { font-size: 10.5px; color: #c8b89a; line-height: 1.3; }
.fg-gr.on { border-color: var(--g); box-shadow: 0 0 12px color-mix(in srgb, var(--g) 50%, transparent); background: rgba(40, 26, 8, .9); }
.fg-warn { margin: 0; color: #ff7a6a; font-size: 12.5px; }
.fg-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.fg-ds { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; border: 1px solid #5a3a1a; background: rgba(0, 0, 0, .35); color: #e0c8a0; } .fg-ds img { width: 56px; height: 56px; object-fit: contain; } .fg-ds small { font-size: 10.5px; line-height: 1.2; text-align: center; }
.fg-ds.on { border: 2px solid #ffb43a; background: rgba(70, 44, 10, .9); color: #fff; box-shadow: 0 0 10px rgba(255, 180, 58, .45); }
.fg-h { margin: 6px 0 0; font-size: 13px; color: #ffd27a; }
.fg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px; }
.fg-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid #5a3a1a; background: rgba(0, 0, 0, .35); color: #eee; }
.fg-opt img { grid-row: 1 / 3; width: 34px; height: 34px; object-fit: contain; } .fg-opt b { grid-column: 2; font-size: 14px; } .fg-opt small { grid-column: 2; font-size: 11.5px; color: #b8a888; } .fg-opt span { grid-column: 3; grid-row: 1 / 3; font: 800 12px Orbitron, sans-serif; color: #ffd27a; }
.fg-opt:not(.w) b, .fg-opt:not(.w) small { grid-column: 1 / 3; }
.fg-opt.up b { color: #ffd27a; } .fg-opt.w.order { border-left: 4px solid #4f8bff; } .fg-opt.w.entropy { border-left: 4px solid #ff8a3a; }
.fg-opt.on { border-color: #ffb43a; background: rgba(70, 44, 10, .92); box-shadow: 0 0 10px rgba(255, 180, 58, .45); }
.fg-wslots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fg-wslot { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 2px dashed #6a4a1a; background: rgba(0, 0, 0, .35); color: #e0c8a0; } .fg-wslot img { width: 52px; height: 52px; object-fit: contain; } .fg-wslot small { font-size: 11px; color: #a08a68; }
.fg-wslot.on { border-style: solid; border-color: #ffb43a; box-shadow: 0 0 10px rgba(255, 180, 58, .4); }
.fg-foot { display: flex; align-items: center; gap: 10px; max-width: 760px; width: 100%; margin: 6px auto 0; padding: 8px 10px; border-radius: 14px; background: rgba(30, 18, 6, .95); border: 1px solid #7a5a2a; }
.fg-foot img { width: 46px; height: 46px; object-fit: contain; flex: none; } .fg-foot div { flex: 1; min-width: 0; display: grid; } .fg-foot b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fg-foot small { font-size: 11.5px; color: #c8b89a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-foot .big { flex: none; padding: 10px 14px; font-size: 14px; } .fg-foot .big:disabled { opacity: .35; filter: grayscale(1); }
.hs-grade { --g: #fff; font-style: normal; font-weight: 900; font-size: 12px; color: var(--g); border: 1px solid var(--g); border-radius: 99px; padding: 0 8px; }
.hs-wings { grid-column: 1 / 3; display: flex; gap: 6px; flex-wrap: wrap; } .hs-wings span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 3px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid #3a4a6a; font-size: 12.5px; } .hs-wings img { width: 26px; height: 26px; object-fit: contain; } .hs-wings small { color: var(--muted); }
.hs-info .hs-grade { justify-self: start; }
.hs-step span:first-child { white-space: nowrap; } .hs-step .pips.wide { flex: 1; min-width: 0; } .hs-step .pips.wide i { flex: 1; min-width: 0; max-width: 20px; }
.hs-socks:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hs-info { min-width: 0; } .hs-info small { overflow-wrap: anywhere; } .hs-step .pips.wide i { width: auto; }
.hs-strip2 { margin-top: -4px; align-items: stretch; } .hs-strip2 .hs-ship { border-color: #7a5a2a; background: rgba(40, 24, 6, .85); } .hs-strip2 .hs-ship.on { border-color: #ffb43a; box-shadow: 0 0 12px rgba(255, 180, 58, .45); }
.hs-strip-tag { flex: none; writing-mode: vertical-rl; display: grid; place-items: center; padding: 0 3px; border-radius: 8px; background: #5a3a0a; color: #ffd27a; font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.fg-new:disabled { opacity: .5; font-size: 13px; }
.scr[data-scr] { cursor: pointer; } .scr[data-scr]:active { transform: scale(.98); } .scr-tip { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.hs-unscr { margin-top: 6px; justify-self: start; padding: 5px 12px; border-radius: 99px; border: 1px solid #ff8a7a; background: rgba(60, 10, 10, .5); color: #ffb0a4; font-size: 12px; font-weight: 800; }
.hs-script { display: grid; } .hs-effects { grid-column: 1 / 3; display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.hs-effects b { font-size: 12.5px; color: #bcd0f0; } .hs-effects span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #e8f0ff; }
.hs-effects i { font-style: normal; width: 20px; text-align: center; font: 700 15px 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--c); } .hs-effects em { font-style: normal; font-size: 10.5px; font-weight: 900; color: #1a0e00; background: #ffb43a; border-radius: 6px; padding: 0 5px; }
.hs-effects small { font-size: 11px; color: var(--muted); }

/* 체험판 · 정식판 구매 (2026-10-01) */
#buy { background: radial-gradient(120% 70% at 50% 0%, #3a2a06 0%, #120c04 50%, #05040a 100%); }
.buy-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: 560px; width: 100%; margin: 0 auto; display: grid; gap: 10px; align-content: start; padding-bottom: 12px; }
.buy-card { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 16px; border: 2px solid var(--btc); background: linear-gradient(135deg, rgba(90, 56, 8, .9), rgba(20, 12, 4, .9)); box-shadow: 0 0 18px rgba(247, 147, 26, .35); }
.buy-card small { font-size: 12px; color: #ffd29a; } .buy-card b { font: 900 34px Orbitron, sans-serif; color: var(--btc); } .buy-card span { font-size: 11.5px; color: #c8b08a; }
.buy-card.owned b { font-size: 20px; color: #8fffbc; } .buy-card.owned { border-color: #3ae08a; box-shadow: 0 0 14px rgba(58, 224, 138, .3); }
.buy-jeni { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(20, 40, 70, .6); border: 1px solid #2b4a82; font-size: 13.5px; line-height: 1.5; color: #dce8ff; }
.buy-jeni b { display: block; color: #8fe8ff; font-size: 12px; } .buy-jeni em { font-style: normal; color: var(--btc); font-weight: 900; }
.buy-list { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid #5a4a2a; } .buy-list b { font-size: 13px; color: #ffd27a; } .buy-list span { font-size: 12.5px; color: #e8dcc0; } .buy-list span::before { content: '· '; color: var(--btc); }
.buy-list.gift { border-color: #7a5aa8; } .buy-list.gift b { color: #c9a8ff; }
.buy-go { font-size: 17px; }
.buy-note { margin: 0; font-size: 12.5px; color: #bcd0f0; text-align: center; } .buy-note.warn { color: #ffb0a4; }
.buy-enter summary { cursor: pointer; font-size: 13px; color: #bcd0f0; padding: 4px 0; } .buy-enter { display: grid; gap: 6px; }
.buy-code { width: 100%; box-sizing: border-box; min-height: 64px; padding: 8px 10px; border-radius: 10px; border: 1px solid #5a4a2a; background: rgba(0, 0, 0, .45); color: #fff; font: 12px/1.35 ui-monospace, Menlo, monospace; word-break: break-all; resize: vertical; }
.buy-enter .big, .buy-body > .big { width: 100%; }
.buy-qr { justify-self: center; padding: 10px; border-radius: 12px; background: #fff; } .buy-qr img, .buy-qr canvas { display: block; }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .buy-row a.big { text-align: center; text-decoration: none; }
.buy-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.buy-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid #6a4a1a; background: rgba(40, 24, 6, .85); color: #fff; }
.buy-pick img { grid-row: 1 / 3; width: 40px; height: 40px; } .buy-pick b { color: var(--c); font-size: 14px; } .buy-pick small { font-size: 11px; color: #d8c8a8; line-height: 1.3; }
.hub-buy { margin-left: auto; margin-right: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--btc); background: rgba(90, 56, 8, .85); color: #ffd27a; font-size: 12px; font-weight: 900; white-space: nowrap; }
.buy-mini { width: 100%; margin-top: 4px; font-size: 13px; padding: 8px 10px; }
.trial-end { display: grid; gap: 4px; justify-items: center; padding: 12px; border-radius: 14px; border: 2px solid var(--btc); background: rgba(60, 36, 8, .85); text-align: center; } .trial-end b { font-size: 17px; color: #ffd27a; } .trial-end small { font-size: 12px; color: #e8d8b8; }
.ch-go.locked { opacity: .55; }
.buy-body { grid-template-columns: minmax(0, 1fr); } .buy-body > * { min-width: 0; } .buy-code { overflow-wrap: anywhere; }
.buy-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .buy-row > * { min-width: 0; width: 100%; box-sizing: border-box; display: grid; place-items: center; }
.hub-logo { white-space: nowrap; min-width: 0; overflow: hidden; } @media (max-width: 420px) { .hub-logo { font-size: 16px; } .hub-buy { padding: 5px 8px; } }

/* 타이틀 (2026-10-01): 우주 배경 · 버튼 셋 */
#start.title-space { background-color: #03050b; background-size: cover; background-position: center; backdrop-filter: none; }
.title-btns { display: grid; gap: 10px; width: min(300px, 100%); } .title-btns .big { width: 100%; }
.title-btns .title-buy { border-color: var(--btc); color: #ffd27a; }
.title-snd { width: min(340px, 100%); padding: 12px; border-radius: 14px; background: rgba(8, 14, 30, .92); border: 1px solid var(--line); } .title-snd > b { display: block; margin-bottom: 6px; color: #bcd0f0; font-size: 13px; }
@media (max-width: 420px) { .hub-logo { font-size: 14px; letter-spacing: .04em; } .hub-buy { font-size: 11px; padding: 5px 8px; margin-right: 4px; } }

/* 계정 · 랭킹 (2026-10-01) */
#acct { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 5, 11, .78); }
.acct-box { width: min(360px, 100%); display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: #0b1428; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.acct-box > b { font-size: 18px; color: #8fe8ff; } .acct-box p { margin: 0; font-size: 13px; color: #bcd0f0; } .acct-box .acct-err { color: #ff8a7a; min-height: 1em; }
.acct-box input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: #fff; font: inherit; font-size: 17px; font-weight: 800; }
.acct-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; } .acct-pick { display: grid; gap: 2px; text-align: left; } .acct-pick small { font-size: 12px; font-weight: 400; opacity: .85; }
.acct-bar { display: grid; gap: 8px; width: min(300px, 100%); } .acct-bar p { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.acct-btn { padding: 11px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 800; cursor: pointer; } .acct-btn.discord { background: #5865f2; color: #fff; } .acct-btn.kakao { background: #fee500; color: #191919; }
.acct-bar.in { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; font-size: 14px; color: #dce8ff; } .acct-bar.in b { color: #8fe8ff; }
.buy-body .acct-bar { width: 100%; }
.rk-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: 560px; width: 100%; margin: 8px auto 0; display: grid; gap: 6px; align-content: start; }
.rk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.rk-row i { grid-row: 1 / 3; font-style: normal; font: 900 16px Orbitron, sans-serif; color: #ffd27a; text-align: center; } .rk-row b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-row span { grid-row: 1 / 3; grid-column: 3; font: 900 18px Orbitron, sans-serif; color: var(--btc); } .rk-row small { font-size: 11.5px; color: var(--muted); }
.rk-row.me { border-color: #8fe8ff; box-shadow: 0 0 10px rgba(143, 232, 255, .3); } .rk-sep { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
#bsl > .acct-bar { margin: 6px auto 0; }
.acct-row { display: flex; gap: 8px; } .acct-row > * { flex: 1 1 0; min-width: 0; width: auto; }

/* 대화방 (2026-10-01) */
.chat-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: 640px; width: 100%; margin: 6px auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.chat-m { padding: 7px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); max-width: 92%; align-self: flex-start; }
.chat-m.me { align-self: flex-end; border-color: #2b6a8a; background: rgba(20, 60, 90, .6); }
.chat-h { display: flex; align-items: center; gap: 5px; font-size: 12px; } .chat-h b { color: #8fe8ff; font-size: 13px; } .chat-h i { font-style: normal; } .chat-h i.adm { font-size: 10px; font-weight: 900; color: #1a0e00; background: #ffb43a; border-radius: 6px; padding: 0 5px; }
.chat-h small { color: var(--muted); margin-left: 2px; } .chat-more { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; }
.chat-m p { margin: 2px 0 0; font-size: 14px; color: #e8f0ff; word-break: break-word; overflow-wrap: anywhere; }
.chat-in { display: flex; gap: 8px; max-width: 640px; width: 100%; margin: 0 auto; } .chat-in input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: 15px; }
.chat-in .big { flex: none; width: auto; padding: 10px 16px; }
.acct-col { display: grid; gap: 8px; }

/* 옵션 화면 (2026-10-01) */
.op-body { flex: 1; min-height: 0; overflow-y: auto; max-width: 520px; width: 100%; margin: 8px auto 0; display: grid; gap: 12px; align-content: start; }
.op-sec { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); } .op-sec h3 { margin: 0; font-size: 14px; color: #8fe8ff; letter-spacing: .05em; }
.op-row { display: flex; align-items: center; gap: 10px; } .op-row span { flex: 1; min-width: 0; display: grid; } .op-row b { font-size: 16px; } .op-row small { font-size: 11.5px; color: var(--muted); } .op-row .big { flex: none; width: auto; padding: 9px 14px; font-size: 14px; }
.op-sec .acct-bar { width: 100%; } .op-out { width: 100%; border-color: #ff8a7a; color: #ffb0a4; } .op-note { margin: 0; font-size: 12px; color: var(--muted); }
