/* 모기 디펜스 3D 페이지 — 휴대폰 먼저(엄지로 아래 카드를 끌어 방에 놓는다), 넓은 화면은 아래 줄이 가운데 고정 폭 */
:root {
  /* 모기 처형장과 같은 색·글꼴(글꼴은 언어마다 i18n.js 가 바꾼다) */
  --bg: #070a10; --wall: #11171a; --tray-hi: #1f272b; --line: rgba(237, 229, 214, 0.12); --line-hi: rgba(237, 229, 214, 0.28);
  --paper: #ede5d6; --muted: #8e9995; --blood: #c8141e; --blood-ink: #ff6a6a; --lamp: #f0ab45; --gold: #f6c544; --lamp-tint: rgba(240, 171, 69, 0.14);
  --panel: rgba(17, 22, 25, 0.9); --panel2: rgba(20, 26, 29, 0.95);
  --text: var(--paper); --dim: var(--muted); --ok: #7cffa0; --bad: #ff6a6a; --accent: #9ad8f5;
  --f-display: "Black Han Sans", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; --f-display-w: 400;
  --f-body: "IBM Plex Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  /* 겹침 순서: 판 위 줄 → 고른 것·배너 → 알림 → 카드 스펙 창 → 처음 화면 → 창 */
  --z-hud: 5; --z-sheet: 6; --z-toast: 7; --z-tip: 8; --z-screen: 10; --z-modal: 40;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; color: var(--text); font: 14px/1.35 var(--f-body); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
#stage { position: fixed; inset: 0; }
[hidden] { display: none !important; }

/* 위 줄 */
#hud { position: fixed; top: calc(8px + var(--safe-t)); left: 8px; right: 8px; display: flex; gap: 6px; align-items: center; pointer-events: none; z-index: var(--z-hud); }
#hud > * { pointer-events: auto; }
.pill { display: flex; align-items: baseline; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; backdrop-filter: blur(6px); }
.pill b { font: 600 17px var(--f-mono); font-variant-numeric: tabular-nums; }
.pill small { color: var(--dim); font-size: 11px; }
.blood b { color: #ff7b85; }
.drop { width: 10px; height: 13px; background: var(--blood); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: translateY(1px); display: inline-block; }
.blood.flash { animation: flash 0.5s; }
@keyframes flash { 30% { background: rgba(226, 51, 63, 0.55); } }
.hpbox { flex: 0 1 170px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px 6px; }
.hplabel { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.hplabel b { color: var(--text); font-variant-numeric: tabular-nums; }
.hpbar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.hpbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #b3121f, #ff4a55); transition: width 0.2s; }
.hpbox.hurt { animation: hurt 0.6s infinite; }
.hpbox.tent .hpbar i { background: linear-gradient(90deg, #b8562a, #ffb36b); } /* 정원 텐트 사람 피(2.4) — 텐트 천 색 */
@keyframes hurt { 50% { border-color: rgba(255, 70, 80, 0.8); } }
.wavebox { margin: 0 auto; display: flex; flex-direction: column; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.wavebox b { font-family: var(--f-display); font-weight: var(--f-display-w); font-size: 17px; letter-spacing: 0.02em; }
.wavebox small { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.score b { color: var(--gold); }
.ib { width: 38px; height: 38px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 16px; backdrop-filter: blur(6px); }
.ib:active { transform: scale(0.94); }

#viewBtns { position: fixed; right: 8px; top: calc(60px + var(--safe-t)); display: flex; flex-direction: column; gap: 6px; z-index: var(--z-hud); }

#bossBar { position: fixed; left: 50%; top: calc(62px + var(--safe-t)); transform: translateX(-50%); width: min(420px, 64vw); pointer-events: none; z-index: var(--z-hud); text-align: center; }
#bossBar span { display: block; font-size: 12px; font-weight: 700; color: #ffb0a8; text-shadow: 0 1px 6px #000; margin-bottom: 3px; letter-spacing: 0.02em; }
#bossBar .bb { height: 8px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 120, 110, 0.45); border-radius: 5px; overflow: hidden; }
#bossBar .bb i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8e0f18, #ff5a4f); transition: width 0.15s; }
#banner { position: fixed; left: 50%; top: calc(18% + var(--safe-t)); transform: translateX(-50%); text-align: center; pointer-events: none; z-index: var(--z-sheet); animation: bin 0.35s ease-out; }
#banner b { display: block; font-family: var(--f-display); font-weight: var(--f-display-w); font-size: clamp(26px, 6vw, 46px); letter-spacing: 0.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8), 0 0 2px #000; }
#banner small { display: block; font-size: 14px; color: #f2d7a8; text-shadow: 0 1px 8px #000; margin-top: 2px; }
#banner.boss b { color: #ff6a6a; }
#banner.event b { color: #ffd27a; }
@keyframes bin { from { opacity: 0; transform: translate(-50%, -8px) scale(1.08); } }
#toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); background: rgba(40, 12, 14, 0.92); border: 1px solid rgba(255, 90, 100, 0.4); padding: 7px 14px; border-radius: 10px; z-index: var(--z-toast); pointer-events: none; font-size: 13px; }
#toast.ok { background: rgba(14, 36, 22, 0.92); border-color: rgba(120, 255, 160, 0.35); }
#hint { position: fixed; left: 50%; top: calc(62px + var(--safe-t)); transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 10px; z-index: var(--z-sheet); font-size: 13px; display: flex; gap: 8px; align-items: center; }
#hint button { background: rgba(255, 255, 255, 0.1); padding: 4px 10px; border-radius: 8px; }

/* 아래 줄: 카드 + 웨이브 단추 */
#dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 8px calc(8px + var(--safe-b)); z-index: var(--z-hud); background: linear-gradient(to top, rgba(7, 10, 16, 0.9), rgba(7, 10, 16, 0.55) 70%, rgba(7, 10, 16, 0)); }
.tabs { display: flex; gap: 4px; align-items: center; padding: 6px 2px; }
.tabs button { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; color: var(--dim); font-size: 12px; }
.tabs button.on { background: rgba(143, 208, 255, 0.16); color: var(--text); border-color: rgba(143, 208, 255, 0.4); }
#nextInfo { margin-left: auto; font-size: 11px; color: var(--dim); display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; }
#nextInfo .chip { background: rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 1px 6px; }
#nextInfo .chip.new { background: rgba(255, 180, 80, 0.2); color: #ffd28a; }
.row { display: flex; gap: 8px; align-items: stretch; }
#cards { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; touch-action: pan-x; }
#cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 auto; width: 74px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px 3px 5px; display: flex; flex-direction: column; align-items: center; position: relative; touch-action: none; }
.card img { width: 60px; height: 60px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.card .nm { font-size: 11px; line-height: 1.15; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .cost { font-size: 11px; color: #ff8a92; font-variant-numeric: tabular-nums; }
.card.poor { opacity: 0.45; }
.card.off { opacity: 0.3; filter: grayscale(1); }
.card.armed { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(124, 255, 160, 0.35); }
#bWave { flex: 0 0 96px; border-radius: 14px; background: var(--blood); display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 4px 18px rgba(200, 30, 40, 0.35); }
#bWave b { font-family: var(--f-display); font-weight: var(--f-display-w); font-size: 17px; letter-spacing: 0.02em; }
#bWave small { font-size: 11px; opacity: 0.8; font-variant-numeric: tabular-nums; }
#bWave:disabled { background: var(--panel); box-shadow: none; opacity: 0.8; }
#bWave.go { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 4px 26px rgba(255, 60, 70, 0.7); } }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }

/* ───── 처음 화면·창·설정·랭킹 — 모기 처형장(bzzkill) 스타일(2026-10-14 정민님 '처형장 스타일로 꾸며'): 두꺼운 제목 글꼴 + 고정폭 숫자,
   한지색 글자·피 빨강·램프 주황·금색, 어두운 패널·가는 선, 시상대(왕관·메달·단), 분할 탭 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--tray-hi); border: 1px solid var(--line-hi); color: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--blood); border-color: transparent; color: #fff; }
.btn.primary:hover { background: #dc1b26; }
.btn.warm { background: var(--lamp-tint); border-color: rgba(240, 171, 69, 0.45); color: var(--lamp); }
.screen { position: fixed; inset: 0; z-index: var(--z-screen); display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.title { background: radial-gradient(ellipse at 50% 40%, rgba(6, 8, 9, 0.2), rgba(6, 8, 9, 0.82) 70%); touch-action: pan-y; }
.title-in { width: min(680px, 100%); display: grid; gap: 20px; justify-items: center; text-align: center; animation: tin 0.5s ease-out; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.title .brand-sm { font: 600 12px/1 var(--f-mono); letter-spacing: 0.32em; color: var(--muted); }
.title h2 { margin: 0; font-family: var(--f-display); font-weight: var(--f-display-w); line-height: 0.95; font-size: clamp(50px, 11vw, 108px); letter-spacing: 0.01em; max-width: 100%; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.title h2 span, .title h2 b { display: block; white-space: nowrap; }
.title h2 b { color: var(--blood-ink); font-weight: inherit; }
/* 시각은 고정폭, 한글·일어 등 문장은 본문 글꼴로(고정폭 대체 글꼴이 글자 사이를 벌려 놓지 않게) */
.title .tag { margin: -6px 0 0; font: 500 13px/1.4 "IBM Plex Mono", var(--f-body); color: var(--muted); }
.load { width: min(320px, 80%); display: grid; gap: 6px; }
.load .bar { height: 4px; background: rgba(237, 229, 214, 0.1); border-radius: 2px; overflow: hidden; }
.load .bar i { display: block; height: 100%; width: 0; background: var(--blood-ink); transition: width 0.15s; }
.load span { font: 500 11px var(--f-mono); color: var(--muted); }
.modes { width: min(420px, 100%); display: grid; gap: 10px; }
.play { position: relative; display: grid; gap: 4px; justify-items: center; padding: 14px 10px 12px; border-radius: 14px; background: var(--blood); color: #fff; box-shadow: 0 10px 40px rgba(200, 20, 30, 0.45); font-family: var(--f-display); font-weight: var(--f-display-w); font-size: clamp(26px, 4.8vw, 36px); letter-spacing: 0.04em; transition: transform 0.1s, background-color 0.15s; }
.play b { font-weight: inherit; line-height: 1; }
.play small { font: 600 12px/1.25 var(--f-body); letter-spacing: 0; opacity: 0.85; word-break: keep-all; }
.play:hover { background: #dc1b26; }
.play:active { transform: scale(0.98); }
.play:disabled { opacity: 0.4; cursor: progress; box-shadow: none; }
.lvbar { width: min(420px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: -8px; }
.lvbar i { height: 6px; border-radius: 3px; background: rgba(237, 229, 214, 0.1); overflow: hidden; }
.lvbar i b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lamp), var(--gold)); transition: width 0.4s; }
.lvbar small { font: 500 11.5px var(--f-body); color: var(--muted); white-space: nowrap; }
.lv { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 5px; font: 700 10px/1.4 var(--f-mono); font-style: normal; vertical-align: 1px; border: 1px solid currentColor; }
.lv.t0 { color: #9aa3a8; } .lv.t1 { color: #c8814a; } .lv.t2 { color: #c9ced6; } .lv.t3 { color: var(--gold); } .lv.t4 { color: #9ad8f5; }
.title-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tstat { min-width: 140px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; }
.tstat span { display: block; font-size: 11.5px; color: var(--muted); }
.tstat strong { font: 600 22px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.tstat strong small { font: 500 11px var(--f-body); color: var(--muted); margin-left: 4px; }
.lang-quick { position: absolute; top: calc(14px + var(--safe-t)); right: 16px; display: flex; gap: 6px; align-items: center; }
.lang-quick select { min-height: 34px; padding: 4px 28px 4px 10px; border-radius: 8px; border: 1px solid var(--line); -webkit-appearance: none; appearance: none; color: var(--paper); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ede5d6' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px; font: 500 13px var(--f-body); } /* 아이폰(사파리·크롬)에서 흰 바탕에 흐린 글자로 보이던 것 */
.lang-quick .gear { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.lang-quick .gear:hover { color: var(--paper); border-color: var(--line-hi); }
.lang-quick .gear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 520px) { .title { padding-top: 62px; } }
/* 국기(Windows 는 국기 이모지를 글자로 보여 주므로 처형장의 Twemoji 국기 글꼴을 같이 쓴다) */
@font-face { font-family: "Twemoji Country Flags"; src: url("/bzzkill/fonts/TwemojiCountryFlags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F; font-display: swap; }
.flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; }
/* 오늘의 랭킹(처음 화면) */
.today { width: min(560px, 100%); display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; }
.today header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today h3 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.today h3 svg { width: 17px; height: 17px; fill: var(--gold); }
.link { background: none; border: 0; padding: 6px 2px; color: var(--lamp); font: 600 13px var(--f-body); white-space: nowrap; }
.today-me { margin: 0; font-size: 13px; color: var(--muted); text-align: center; word-break: keep-all; }
.today-me b { color: var(--lamp); }
.today-me .nickcta { margin-left: 6px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--lamp); background: transparent; color: var(--lamp); font: 600 12px var(--f-body); }
/* 시상대: 1위 가운데·가장 높게(왕관), 2위 왼쪽, 3위 오른쪽 */
@keyframes crownGlow { 50% { filter: drop-shadow(0 0 14px rgba(240, 171, 69, 0.85)); transform: translateY(-2px); } }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; padding: 6px 2px 0; }
.pod { min-width: 0; display: grid; justify-items: center; gap: 3px; text-align: center; }
.pod .crown { width: 30px; height: 30px; fill: var(--gold); stroke: #8a5a12; stroke-width: 1; filter: drop-shadow(0 0 8px rgba(240, 171, 69, 0.55)); animation: crownGlow 2.4s ease-in-out infinite; }
.pod .medal { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 700 13px/1 var(--f-mono); color: #1a1208; background: var(--mc); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.pod .pn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; }
.pod .pb { display: flex; gap: 3px; align-items: center; }
.pod .pb:empty { display: none; }
.pod .pv { font: 600 12px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pod .block { width: 100%; height: var(--h); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 55%, transparent), color-mix(in srgb, var(--mc) 12%, transparent)); border: 1px solid color-mix(in srgb, var(--mc) 70%, transparent); border-bottom: 0; display: grid; place-items: start center; padding-top: 6px; font: 700 18px var(--f-mono); font-style: normal; color: color-mix(in srgb, var(--mc) 90%, white); }
.pod.p1 { --mc: var(--gold); --h: 74px; } .pod.p2 { --mc: #c9ced6; --h: 52px; } .pod.p3 { --mc: #c8814a; --h: 38px; }
.pod.p1 .pn { font-size: 15px; color: var(--gold); }
.pod.p1 .pv { color: var(--paper); }
.pod.me .pn::after { content: " · " attr(data-you); color: var(--lamp); font-weight: 600; }
.pod.me .block { box-shadow: 0 0 0 2px var(--lamp) inset; }
.pod.empty .pn { color: var(--muted); font-weight: 500; font-size: 11px; white-space: normal; line-height: 1.25; }
.pod.empty .medal, .pod.empty .block { opacity: 0.45; }
.podium.compact { gap: 3px; padding: 0; }
.podium.compact .pod { gap: 2px; }
.podium.compact .crown { width: 22px; height: 22px; }
.podium.compact .medal { width: 20px; height: 20px; font-size: 11px; }
/* 시작 화면은 시상대 두 개가 반씩 나눠 칸이 좁다 — 처형장(index.html .podium.compact .pn)과 같이 한 줄 말줄임 대신 두 줄까지 줄바꿈해 닉네임을 보인다 */
.podium.compact .pn { font-size: 10.5px; letter-spacing: -0.02em; white-space: normal; overflow-wrap: anywhere; word-break: keep-all; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.podium.compact .pod.p1 .pn { font-size: 11.5px; }
.podium.compact .pod.empty .pn { font-size: 10px; }
.podium.compact .pv { font-size: 10.5px; }
.podium.compact .pod.p1 { --h: 44px; } .podium.compact .pod.p2 { --h: 32px; } .podium.compact .pod.p3 { --h: 24px; }
.podium.compact .block { font-size: 13px; padding-top: 3px; }
/* 창(설정·랭킹·결과·일시정지) */
.modal { background: rgba(6, 8, 9, 0.62); z-index: var(--z-modal); }
.sheet { width: min(520px, 100%); max-height: min(720px, 100%); overflow-y: auto; display: grid; gap: 14px; align-content: start; padding: 18px; background: #141a1d; border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); touch-action: pan-y; -webkit-user-select: text; user-select: text; }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet h3 { margin: 0; font-family: var(--f-display); font-weight: var(--f-display-w); font-size: 24px; }
.x { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; color: var(--muted); }
.x:hover { color: var(--paper); border-color: var(--muted); }
#mBody { display: grid; gap: 14px; color: var(--paper); }
#mBody table { width: 100%; border-collapse: collapse; font-size: 13px; }
#mBody td { padding: 6px 2px; border-top: 1px solid var(--line); }
#mBody td:last-child { text-align: right; font: 600 14px var(--f-mono); font-variant-numeric: tabular-nums; }
.run-score { display: grid; justify-items: center; gap: 2px; }
.run-score b { font: 700 46px/1 var(--f-mono); color: var(--gold); }
.run-score span { font-size: 12px; color: var(--muted); }
.run-score .new { margin-top: 6px; padding: 3px 7px; border-radius: 7px; font: 700 10.5px/1 var(--f-mono); color: #1a1208; background: var(--gold); }
.run-rank { margin: 0; text-align: center; font-size: 15px; font-weight: 700; color: var(--lamp); word-break: keep-all; }
.run-rank .btn { margin-left: 6px; min-height: 34px; padding: 6px 10px; font-size: 13px; }
.sheet-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1 1 auto; }
/* 분할 탭 */
.stabs { display: flex; gap: 4px; padding: 3px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 9px; }
.stabs button { flex: 1; min-width: 0; padding: 6px 8px; font-size: 12.5px; border-radius: 6px; background: transparent; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stabs button[aria-selected="true"] { background: var(--tray-hi); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-hi); }
/* 랭킹 창 */
.board-me { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--lamp-tint); border: 1px solid rgba(240, 171, 69, 0.35); font-size: 13px; }
.board-me b { font: 600 14px var(--f-mono); color: var(--lamp); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; }
.board-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 8px 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board-list li .r { font: 600 13px var(--f-mono); color: var(--muted); }
.board-list li .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.board-list li .n small { margin-left: 6px; color: var(--muted); font-size: 12px; }
.board-list li .v { font: 600 14px var(--f-mono); }
.board-list li.me { background: var(--lamp-tint); border-radius: 6px; }
.board-state { padding: 18px 4px; text-align: center; color: var(--muted); font-size: 13px; }
/* 설정 */
.set-sec { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.set-sec h4 { margin: 0; font: 600 12px/1.2 var(--f-body); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.field { display: grid; gap: 8px; }
.field > label { font-size: 12.5px; color: var(--muted); }
.field .row { display: flex; align-items: center; gap: 10px; }
.field .row > :first-child { flex: 1; }
.field output { font: 600 12px var(--f-mono); color: var(--paper); min-width: 3.5em; text-align: right; }
.field select, .field input[type="text"] { min-height: 42px; padding: 8px 10px; font-size: 16px; border-radius: 9px; border: 1px solid var(--line-hi); background: var(--tray-hi); color: var(--paper); font-family: var(--f-body); }
.field input[type="range"] { width: 100%; accent-color: var(--blood-ink); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.seg.seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 그래픽: 자동·높음·낮음 */
.seg button { display: grid; gap: 2px; padding: 9px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--tray-hi); text-align: left; }
.seg button b { font-size: 14px; }
.seg button span { font-size: 11px; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--blood-ink); box-shadow: inset 0 0 0 1px var(--blood-ink); }
.note { margin: 0; font-size: 12px; color: var(--muted); }
#loadbar { display: none; }

/* 넓은 화면: 아래 줄 가운데 */
@media (min-width: 900px) {
  #dock { left: 50%; right: auto; transform: translateX(-50%); width: min(980px, 96vw); background: none; }
  #dock .row, #dock .tabs { background: var(--panel); border-radius: 16px; padding: 6px 8px; border: 1px solid var(--line); }
  #dock .tabs { margin-bottom: 6px; }
  .card { width: 82px; }
  .card img { width: 66px; height: 66px; }
  #toast { bottom: 170px; }
}
@media (max-width: 480px) {
  #hud { gap: 4px; left: 6px; right: 6px; }
  .pill { padding: 4px 8px; } .pill b { font-size: 15px; }
  .hpbox { flex: 1 1 90px; padding: 3px 8px 5px; } .hplabel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; }
  .pill.score { display: none; }
  .wavebox { padding: 3px 8px; margin: 0; flex: 0 0 auto; } .wavebox b { font-size: 13px; white-space: nowrap; }
  .ib { width: 34px; height: 34px; border-radius: 10px; }
  #viewBtns { top: calc(54px + var(--safe-t)); }
  #banner b { font-size: 24px; } #banner small { font-size: 12px; max-width: 86vw; margin: 2px auto 0; }
  .card { width: 66px; } .card img { width: 52px; height: 52px; }
  #bWave { flex-basis: 80px; }
}

/* 새 소식(news.js): 새 항목이 있으면 점 · 창 안 목록 */
.gear.news { position: relative; }
.gear.news.new::after { content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--panel), 0 0 8px rgba(246, 197, 68, 0.6); animation: newsDot 1.8s ease-in-out infinite; }
.news-list { display: grid; gap: 16px; max-height: min(60vh, 520px); overflow: auto; text-align: left; }
.news-list .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-list time { font: 600 12px/1 ui-monospace, monospace; color: var(--muted); }
.news-list > section + section { padding-top: 16px; border-top: 1px solid var(--line); } /* 글과 글 사이 = 가는 선(글 안 주제 사이 16px 보다 넓게) */
.news-list .pt > h4 { margin-bottom: 12px; } /* 글 제목과 첫 주제 소제목 사이 */
.news-list .pb { display: grid; gap: 16px; } /* 패치노트 = 주제 소제목 + 문단, 글머리표 없음(2026-10-29 정민님 시안 A) */
.news-list .ps { display: grid; gap: 6px; }
.news-list .ps h5 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--lamp); }
.news-list .ps p { margin: 0; line-height: 1.6; color: rgba(237, 229, 214, 0.86); }
.news-list .bd { display: grid; gap: 8px; line-height: 1.6; } /* 공지 = 문단(2026-10-28 정민님 '일반 공지는 그냥 글') */
.news-list .bd p { margin: 0; }
.set-sec .row.links { gap: 8px; flex-wrap: wrap; }

/* 모드 둘(2026-10-19): 처음 화면 두 단추 · 점수 배율 · 입구 열기 창 · 순위 모드 고르기 */
.modes.two { width: min(560px, 100%); grid-template-columns: 1fr 1fr; }
.modes.two .play { font-size: clamp(22px, 4.2vw, 30px); padding: 13px 8px 11px; }
.play.endless { background: #3a2a63; box-shadow: 0 10px 36px rgba(110, 70, 200, 0.4); }
.play.endless:hover { background: #46337a; }
.mode-col { display: grid; gap: 8px; align-content: start; }
/* 이어하기(2.7.0): 모드 단추 바로 아래 · 채운 모드 단추보다 가벼운 선 단추(같은 모드 색) — 저장된 판이 있을 때만 */
.resume-run { display: grid; gap: 2px; justify-items: center; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(200, 20, 30, 0.6); background: rgba(200, 20, 30, 0.12); color: var(--paper); font: 600 15px/1.2 var(--f-body); }
.resume-run small { font: 400 12px/1.25 var(--f-body); color: var(--muted); word-break: keep-all; }
.resume-run:hover { background: rgba(200, 20, 30, 0.22); }
.resume-run:active { transform: scale(0.98); }
.mode-col.endless .resume-run { border-color: rgba(130, 96, 220, 0.7); background: rgba(110, 70, 200, 0.16); }
.mode-col.endless .resume-run:hover { background: rgba(110, 70, 200, 0.26); }
@media (max-width: 360px) { .modes.two { grid-template-columns: 1fr; } }
.pill.mul b { color: var(--lamp); }
.mul-s { display: none; color: var(--lamp); }
@media (max-width: 480px) { .pill.mul { display: none !important; } .mul-s { display: inline; } }
.tabs .door { display: inline-flex; gap: 4px; align-items: center; background: var(--lamp-tint); border-color: rgba(240, 171, 69, 0.4); color: #ffd28a; }
.tabs .door i { font-style: normal; font-size: 12px; }
.tabs .door.go { background: rgba(240, 171, 69, 0.3); color: #fff; box-shadow: 0 0 0 2px rgba(240, 171, 69, 0.25); animation: doorPulse 1.6s ease-in-out infinite; }
.tabs .door:disabled { opacity: 0.45; animation: none; }
@keyframes doorPulse { 50% { box-shadow: 0 0 0 5px rgba(240, 171, 69, 0.08); } }
#doors { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); background: var(--panel2); border: 1px solid rgba(240, 171, 69, 0.35); border-radius: 16px; padding: 10px; z-index: var(--z-sheet); max-width: 560px; margin: 0 auto; animation: up 0.18s ease-out; }
#doors header { display: flex; align-items: center; gap: 10px; }
#doors header > b { font-size: 16px; }
#doors .cur { margin-left: auto; color: var(--dim); font-size: 12px; } #doors .cur b { color: var(--lamp); font: 600 16px var(--f-mono); }
#doors .x { width: 32px; height: 32px; }
#doors .note { margin: 6px 0 8px; color: var(--dim); font-size: 12px; word-break: keep-all; }
#doors ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#doors li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
#doors li > div { flex: 1; min-width: 0; } #doors li > div b { display: block; font-size: 14px; } #doors li > div small { color: var(--dim); font-size: 11.5px; }
#doors li .mul { font: 600 15px var(--f-mono); color: var(--lamp); }
#doors li .btn { min-height: 40px; padding: 6px 12px; flex-direction: column; gap: 0; line-height: 1.1; }
#doors li .btn small { font-size: 11px; opacity: 0.85; }
#doors li .btn:disabled { opacity: 0.45; }
#doors li.open { opacity: 0.7; } #doors li .done { color: var(--ok); font-size: 12px; }
.stabs.mode { margin-bottom: 6px; } .stabs.mode button[aria-selected="true"] { box-shadow: inset 0 0 0 1px rgba(240, 171, 69, 0.55); color: #ffd28a; }
.today .stabs.mode { margin: 0; }
.run-score + table tr.doors td:last-child { line-height: 1.35; font-family: var(--f-body); letter-spacing: 0; } .run-score + table tr.doors small { color: var(--dim); }
/* ───── 상태 창 뼈대(2026-10-19 정민님 '폭 일정하게 네모 박스로 게임처럼'): 카드 스펙 창 .ctip · 고른 것 #sheet · 도감 칸이 같은 모양
   폭 고정 · 칸 격자 고정(이름 위 · 값 아래 · 강화 미리보기 ▲) · 단추는 꽉 찬 게임 단추. 테두리·색·막대·단추 겉모습은 ui-a/b/c.css 가 덮는다 */
.gp { --gp-w: 360px; --tc: 240, 171, 69; --pad: 12px; position: relative; width: min(var(--gp-w), calc(100vw - 16px)); display: grid; gap: 8px; padding: var(--pad); color: var(--paper); background: #12171a; border: 1px solid var(--line-hi); }
.gp-head { display: flex; gap: 10px; align-items: center; min-width: 0; }
.gp-thumb { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; }
.gp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gp-title { flex: 1; min-width: 0; display: grid; gap: 4px; }
.gp-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.gp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--dim); }
.gp-cost { flex: 0 0 auto; align-self: flex-start; padding: 4px 7px; font: 600 14px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--blood-ink); white-space: nowrap; }
.gp-cost small, .gb-c small { font-size: 10px; margin-left: 1px; }
.gp-x { flex: 0 0 auto; align-self: flex-start; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid var(--line-hi); color: var(--muted); }
.gp-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gp-x:hover { color: var(--paper); }
.gp-mounts { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mnt-l { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); }
/* 칸: 3열 고정 — 값이 몇 개든 칸 폭은 같다 */
.gp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.gp-cells:empty, .gp-tags:empty, .gp-desc:empty { display: none; }
.gp-st { position: relative; min-width: 0; min-height: 56px; display: grid; align-content: start; gap: 2px; padding: 6px 8px 10px; }
.gp-st > span { font-size: 11px; line-height: 1.2; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-st > b { font: 600 16px/1.1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-st[data-txt] > b { font-family: var(--f-body); font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gp-st > b small { margin-left: 1px; font-size: 10.5px; font-weight: 500; color: var(--dim); }
.gp-st .nx { display: inline-flex; align-items: center; gap: 3px; font: 600 11.5px/1 var(--f-mono); font-style: normal; color: var(--ok); white-space: nowrap; }
.gp-st .nx svg { width: 8px; height: 8px; fill: currentColor; }
.gp-st .nx.dn { color: var(--bad); } .gp-st .nx.dn svg { transform: rotate(180deg); }
.gp-st > i.m { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; background: rgba(237, 229, 214, 0.1); }
.gp-st > i.m::after { content: ""; display: block; height: 100%; width: calc(var(--v, 0) * 100%); background: rgb(var(--tc)); }
.gp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.gp-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 11.5px; line-height: 1.25; color: var(--paper); border: 1px solid var(--line-hi); }
.gp-tag.warn { color: #ffc98a; border-color: rgba(240, 171, 69, 0.45); }
.gp-tag .mnt { width: 16px; height: 16px; background: none; border: 0; } .gp-tag .mnt svg { width: 13px; height: 13px; }
.gp-desc { margin: 0; font-size: 12.5px; line-height: 1.45; color: #b9c1bd; word-break: keep-all; overflow-wrap: anywhere; }
.gp-br { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.gp-br b { color: var(--paper); }
/* 단계: 1~3단계 네모 + 갈래 글자 */
.gp-tier { display: inline-flex; align-items: center; gap: 2px; }
.gp-tier i { width: 9px; height: 9px; border: 1px solid var(--line-hi); }
.gp-tier i.on { background: rgb(var(--tc)); border-color: rgb(var(--tc)); }
.gp-tier i.brl { width: auto; min-width: 13px; height: 13px; padding: 0 2px; display: grid; place-items: center; margin-left: 2px; font: 700 9.5px/1 var(--f-mono); font-style: normal; color: #14100a; border-style: dashed; }
.gp-tier i.brl.on { border-style: solid; }
.gp-tier i.brl:not(.on) { color: transparent; }
.gp-tier b { margin-left: 3px; font: 700 11px var(--f-mono); color: var(--lamp); }
/* 게임 단추: [A/B] 이름·설명 · 값 */
.gp-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, auto); gap: 6px; }
.gp-acts.br2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-acts.br2 .sell { grid-column: 1 / -1; min-height: 40px; }
.gp-acts.fu3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gb { position: relative; min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; color: var(--paper); background: var(--tray-hi); border: 1px solid var(--line-hi); }
.gb-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gb-t b { font-size: 14px; line-height: 1.15; }
.gb-t small { font-size: 11px; line-height: 1.3; color: var(--dim); }
.gb-c { flex: 0 0 auto; font: 700 14px/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-l { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; font: 700 13px/1 var(--f-mono); font-style: normal; border: 1px solid currentColor; }
.gb.br { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; column-gap: 8px; row-gap: 6px; }
.gb.br .gb-t { grid-row: 1 / 3; } .gb.br .gb-c { grid-column: 1 / -1; justify-self: end; }
.gb.sell { justify-content: center; }
.gb.sell .gb-t { flex: 0 1 auto; }
.gp-acts.fu3 .gb { flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; text-align: center; }
.gp-acts.fu3 .gb .gb-t { flex: 0 0 auto; }
.gb:disabled { cursor: not-allowed; }
.gb:disabled > :not(.gb-c) { opacity: 0.5; }
.gb:disabled .gb-c { color: var(--bad); }
.gb:focus-visible, .gp-x:focus-visible, .tact:focus-visible, .hub-back:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
/* 설치 자리·가구 성질 배지(카드 왼쪽 위 · 스펙 창) */
.mnt { position: relative; flex: 0 0 auto; width: 20px; height: 20px; display: inline-grid; place-items: center; font-style: normal; color: var(--paper); background: rgba(7, 10, 16, 0.82); border: 1px solid var(--line-hi); }
.mnt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mnt svg .fi { fill: currentColor; stroke: none; }
.mnt em { position: absolute; right: -4px; bottom: -4px; min-width: 11px; padding: 1px 2px; font: 700 9px/1 var(--f-mono); font-style: normal; text-align: center; color: #1a1208; background: var(--lamp); }
.card .mts { position: absolute; top: 3px; left: 3px; display: flex; gap: 2px; pointer-events: none; }
.card .mts .mnt:has(em) { margin-right: 4px; }
.card .mts .mnt { width: 17px; height: 17px; border-color: rgba(237, 229, 214, 0.22); } .card .mts .mnt svg { width: 12px; height: 12px; }
.card img { margin-top: 6px; }

/* 고른 것(아래 가운데, 폭 고정) · 카드 스펙 창(카드 위) */
#sheet.gp { --gp-w: 400px; position: fixed; left: 0; right: 0; bottom: calc(8px + var(--safe-b)); margin: 0 auto; z-index: var(--z-sheet); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); animation: up 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.ctip.gp { --gp-w: 340px; position: fixed; z-index: var(--z-tip); pointer-events: none; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(6px); transition: opacity 0.16s ease-out, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.ctip.gp.on { opacity: 1; transform: none; }
/* 터치 화면: 놓을 칸을 가리지 않게 머리·칸·꼬리표 + 한 줄 설명(두 줄까지)만 — 갈래는 설치한 무기를 누르면 뜨는 창에
   (2026-10-27 건의 #16: 휴대폰은 놓기 전에 무기가 무슨 일을 하는지 볼 데가 없었다) */
@media (pointer: coarse) { .ctip.gp { --gp-w: 300px; --pad: 10px; gap: 6px; } .ctip.gp .gp-br { display: none; } .ctip.gp .gp-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ctip.gp .gp-st { min-height: 48px; } }
@media (max-width: 480px) { #sheet.gp { gap: 6px; --pad: 10px; } .gp-st { min-height: 50px; } }

/* 처음 화면: 게임 모음 단추(왼쪽 위) · 네모 칸 줄(처형장 .title-acts 와 같은 모양, 칸 폭 같게) */
.hub-back { position: absolute; top: calc(14px + var(--safe-t)); left: 16px; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 6px 12px 6px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); font-size: 13px; text-decoration: none; }
.hub-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hub-back:hover { border-color: var(--line-hi); background: var(--tray-hi); }
.title-acts { width: min(560px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: -8px; }
.tact { min-width: 0; min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--paper); font: 600 12.5px/1.25 var(--f-body); text-align: center; transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.tact svg { width: 22px; height: 22px; fill: none; stroke: var(--lamp); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tact:hover { border-color: var(--line-hi); background: var(--tray-hi); }
.tact:active { transform: scale(0.97); }
@media (max-width: 520px) { .title-in { gap: 16px; } .tact { min-height: 58px; padding: 8px 4px; } }
.ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 조작법 창 */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.how-i { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-hi); border-radius: 8px; background: var(--tray-hi); }
.how-i svg { width: 22px; height: 22px; fill: none; stroke: var(--lamp); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.how p { margin: 0; font-size: 13px; line-height: 1.5; color: #b9c1bd; word-break: keep-all; }
.how-keys { margin: 0; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; color: #b9c1bd; }
.how-keys b { color: var(--muted); font-weight: 600; }
.how-keys kbd { display: inline-block; min-width: 22px; padding: 2px 6px; margin-right: 2px; text-align: center; font: 600 11.5px/1.3 var(--f-mono); color: var(--paper); background: var(--tray-hi); border: 1px solid var(--line-hi); border-bottom-width: 2px; border-radius: 4px; }

/* 모기 도감 창(넓은 창 · 칸 2열, 휴대폰 1열) */
.sheet.wide { width: min(780px, 100%); max-height: min(860px, 100%); }
.dex-count { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.dex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.gp-dex { --gp-w: 100%; width: 100%; align-content: start; }
.gp-dex .gp-thumb { width: 64px; height: 64px; }
.gp.gp-dex .gp-thumb { background: radial-gradient(circle at 50% 45%, rgba(var(--tc), 0.22), rgba(0, 0, 0, 0.5) 72%); }
.gp-dex.unseen .gp-thumb img { filter: brightness(0); opacity: 0.55; }
.gp-dex.unseen .gp-name { color: var(--muted); letter-spacing: 0.1em; }
.dex-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vs { min-width: 0; display: grid; gap: 4px; align-content: start; }
.vs > span { font-size: 11px; font-weight: 700; }
.vs.good > span { color: var(--ok); } .vs.bad > span { color: var(--bad); }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.vs li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vs li img { flex: 0 0 auto; width: 26px; height: 26px; object-fit: contain; }
.vs li span { min-width: 0; display: grid; font-size: 12px; line-height: 1.2; }
.vs li small { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs p { margin: 0; font-size: 12px; color: var(--dim); }
@media (max-width: 520px) { .dex-list { grid-template-columns: 1fr; } }

/* 움직임 줄이기: 들어오는 움직임은 바로, 반복 깜빡임은 멈춤 */
@media (prefers-reduced-motion: reduce) {
  #sheet.gp, #doors, .title-in, #banner { animation: none; }
  #bWave.go, .tabs .door.go, .pod .crown, .hpbox.hurt, .blood.flash { animation: none; }
  .resume-run:active { transform: none; }
  .ctip.gp { transition: opacity 0.12s linear; transform: none; }
  .tact, .gb, .play { transition: none; }
}

/* 육각형 능력치(공통 여섯 축) + 축별 값 · 그 아래 고유 특성 칸 */
.gp-statblock { display: grid; gap: 8px; }
.gp-radar-row { display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 8px; align-items: center; }
.gp-radar { width: 100%; height: auto; overflow: visible; }
.gp-radar .rg { fill: none; stroke: rgba(237, 229, 214, 0.1); stroke-width: 1; }
.gp-radar .rg:last-of-type { stroke: rgba(237, 229, 214, 0.22); }
.gp-radar .sp { stroke: rgba(237, 229, 214, 0.1); stroke-width: 1; }
.gp-radar .cur { fill: rgba(var(--tc, 240, 171, 69), 0.34); stroke: rgb(var(--tc, 240, 171, 69)); stroke-width: 2; stroke-linejoin: round; }
.gp-radar .nx { fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linejoin: round; }
.gp-radar text { font: 600 11px/1 var(--f-body, system-ui); fill: var(--dim); }
.gd { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 3px; font: 800 11.5px/1 ui-monospace, monospace; }
.gd.gS { background: #f6c544; color: #1a1208; } .gd.gA { background: #e2873a; color: #1a1208; } .gd.gB { background: #3b4a45; color: var(--paper); } .gd.gC { background: #262e2b; color: var(--dim); } .gd.g– { color: var(--dim); }
.gp-uniq h5 { margin: 0 0 4px; font: 700 11px/1 var(--f-body, system-ui); color: var(--lamp); letter-spacing: 0.02em; }
@media (max-width: 480px) { .gp-radar-row { grid-template-columns: 150px 1fr; } .gp-radar text { font-size: 11.5px; } }
@media (pointer: coarse) { .ctip.gp .gp-uniq { display: none; } }

/* 바로가기: 새 소식 NEW 배지 · 홈 화면 추가 */
.tact.news { position: relative; }
.tact.news.new { border-color: rgba(246, 197, 68, 0.55); }
.tact.news.new::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #11171a, 0 0 10px rgba(246, 197, 68, 0.7); animation: newsDot 1.8s ease-in-out infinite; }
@keyframes newsDot { 50% { box-shadow: 0 0 0 2px #11171a, 0 0 2px rgba(246, 197, 68, 0.2); } }
.news-list .nk { padding: 2px 6px; border-radius: 4px; background: #e5615b; color: #fff; font: 700 10px/1.2 ui-monospace, monospace; vertical-align: 1px; } /* 공지(2026-10-27) */
.news-list h4 { margin: 0 0 6px; font-size: 15px; }
.news-list .nw { padding: 2px 6px; border-radius: 4px; background: var(--gold); color: #1a1208; font: 700 10px/1.2 ui-monospace, monospace; letter-spacing: 0.04em; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .tact.news.new::after, .tile.news.new::after, .gear.news.new::after { animation: none; } }
.tact.install { color: var(--lamp); border-color: rgba(240, 171, 69, 0.4); }
.how-steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; text-align: left; }
.how-steps li::marker { color: var(--lamp); font-weight: 700; }

/* 시작 화면 바로가기(2026-10-19 정민님): 큰 칸 = 패치 노트 · 건의·제보 / 그 아래 작은 아이콘 줄 = 도감 · 조작법 · 설정 · 홈 화면 추가 */
.title-mini { display: flex; justify-content: center; gap: 4px; width: min(420px, 100%); margin-top: -6px; }
.tmini { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 11.5px/1.2 var(--f-body); text-align: center; cursor: pointer; }
.tmini svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.tmini:hover { color: var(--paper); background: var(--tray-hi); }
.tmini:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.tmini.install { color: var(--lamp); }
.tmini[hidden] { display: none !important; }

/* 오늘의 랭킹: 30웨이브 · 무한 시상대 둘(처형장의 처형자·국가처럼) */
.pod-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pod-col { min-width: 0; padding: 6px 6px 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); overflow: hidden; }
.pod-col h4 { margin: 2px 0 6px; text-align: center; font: 700 12.5px/1.2 var(--f-body); color: var(--paper); }

/* 설정 창이 휴대폰 폭보다 넓어지던 것(2026-10-19): 그리드 칸·슬라이더·버튼이 최소 폭을 고집하지 않게 */
.sheet > *, .set-sec, .set-sec > *, .field, .field > * { min-width: 0; }
.seg button { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.field input[type="range"] { min-width: 0; width: 100%; }
.field .row output { flex: none; min-width: 3.2em; text-align: right; }
.set-sec .row.links > .btn { flex: 1 1 120px; min-width: 0; }
.field select, .field input[type="text"] { min-width: 0; width: 100%; }

/* 아이폰(사파리·크롬)은 꾸미지 않은 select 를 흰 바탕에 그렸다 — 모든 고르기 칸을 어두운 바탕·밝은 글자로 */
select, .field select, .lang-quick select { -webkit-appearance: none; appearance: none; color: var(--paper); background-color: var(--panel); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ede5d6' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px; padding-right: 28px; }

/* ───── 고른 무기 창 2판(2026-10-25 정민님: 팔기 단추가 강화 자리로 튀고 · 휴대폰에서 화면 반을 가려 사거리가 안 보이고 · 숫자 목록이 육각형과 겹친다)
   머리줄 = 단계 그림 · 이름 · 단계 칸 · 팔기(✕ 옆 고정) · ✕ / 육각형 옆 = 성질 꼬리표·한 줄 설명 / 아래 = 수치 칸 4열 / 테크 트리(줄기 · 두 길 3칸씩 · 과충전)
   칸 구성 ← BTD6 업그레이드 패널(길마다 칸, 칸마다 값 · 화면 가장자리) */
.gp-sell { flex: 0 0 auto; align-self: flex-start; height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; color: #ffc0bc; background: #3a1517; border: 1px solid #160607; }
.gp-sell b { font: 700 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.gp-sell b small { font-size: 9.5px; margin-left: 1px; }
.gp-sell:disabled { opacity: 0.45; cursor: not-allowed; }
.gp-sell:not(:disabled):hover { background: #4a1b1e; }
.gp-sell:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.gp-side { display: grid; gap: 6px; align-content: center; min-width: 0; }
.gp-side .gp-desc { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gp-radar text .g { font: 700 11px var(--f-mono); fill: var(--paper); }
.gp-radar text .gS { fill: var(--lamp); } .gp-radar text .g– { fill: var(--muted); }
.gp-radar text .up { fill: var(--ok); font-size: 8px; }
.gp-cells.gp-uniq { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.gp-uniq .gp-st { min-height: 40px; padding: 4px 6px 8px; }
.gp-uniq .gp-st > b { font-size: 14px; }
.gp-uniq .gp-st > span { font-size: 10.5px; }
/* 단계 칸: 줄기 · 두 길(왼길 무기 색 · 오른길 흰색) · 과충전 */
.gp-tier .ln { display: inline-flex; gap: 1px; margin-left: 4px; }
.gp-tier .ln i { width: 7px; height: 9px; }
.gp-tier .ln i.r.on { background: var(--paper); border-color: var(--paper); }
.gp-tier b.ov { padding: 1px 4px; color: #1a1208; background: var(--lamp); box-shadow: 0 0 8px rgba(240, 171, 69, 0.8); }
#sheet.gp.ov .gp-thumb { box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(240, 171, 69, 0.7), 0 0 14px rgba(240, 171, 69, 0.55); }
/* 테크 트리 */
.gp-tree { display: grid; gap: 5px; }
.gp-tree:empty { display: none; }
.tr-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 6px; row-gap: 2px; align-items: center; }
.tr-lab { font-size: 11.5px; font-weight: 600; color: var(--dim); overflow-wrap: anywhere; line-height: 1.15; }
.tr-row.l .tr-lab { color: rgb(var(--tc)); } .tr-row.r .tr-lab { color: var(--paper); }
.tr-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tr-row.stem .tr-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-note { grid-column: 2; margin: 0; font-size: 11px; line-height: 1.3; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-row.shut .tr-note { color: #ffc98a; }
.tn { position: relative; min-width: 0; min-height: 40px; display: grid; align-content: center; gap: 2px; padding: 4px 6px; text-align: left; color: var(--paper); background: #0d1110; border: 1px solid #2a312e; }
.tn b { font-size: 12px; font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn .c { font: 700 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--lamp); }
.tn .c small { font-size: 9px; margin-left: 1px; }
.tn .ck { position: absolute; right: 5px; top: 4px; font-style: normal; font-size: 11px; color: rgb(var(--tc)); }
.tn.own { background: rgba(var(--tc), 0.14); border-color: rgba(var(--tc), 0.45); color: var(--paper); box-shadow: none; } /* 산 칸 = 단추가 아니라 얻은 표시(누를 수 없어 보이게) */
.tr-row.r .tn.own { background: rgba(237, 229, 214, 0.1); border-color: rgba(237, 229, 214, 0.4); }
.tn.next { background: #2b3431; border-color: rgb(var(--tc)); box-shadow: 0 2px 0 #070909, inset 0 0 0 1px rgba(var(--tc), 0.35); cursor: pointer; }
.tn.next:not(:disabled):hover { background: #333d39; }
.tn.next:not(:disabled):active { transform: translateY(1px); }
.tn.next:disabled { cursor: not-allowed; } .tn.next:disabled .c { color: var(--bad); }
.tn.lock { opacity: 0.42; }
.tn.lock:disabled, .tn.own:disabled { cursor: default; }
.tn:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.gp-tree .gb.ov { min-height: 44px; }
.tr-hint { margin: 0; font-size: 11px; color: var(--muted); text-align: right; }
.gp-acts.fu2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-acts.fu2 .gb { justify-content: center; }
.gp-br.lock { color: #ffc98a; border-top: 0; padding-top: 0; }
/* 잠긴 카드(구역이 아직 안 열림) */
.card.lock img { filter: grayscale(1) brightness(0.45); }
.card.lock .cost { color: var(--muted); }
.card.lock .nm { color: var(--muted); }
/* 자리: PC 는 왼쪽 아래 가장자리(방 가운데와 사거리 원을 가리지 않게), 휴대폰은 아래에서 높이를 46% 로 막고 안에서 스크롤 */
#sheet.gp { max-height: calc(100vh - 96px - var(--safe-t)); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 900px) { #sheet.gp { --gp-w: 420px; left: 12px; right: auto; margin: 0; bottom: calc(12px + var(--safe-b)); } }
@media (max-width: 899px) {
  #sheet.gp { --gp-w: 520px; max-height: 46vh; max-height: 46dvh; gap: 6px; --pad: 10px; }
#sheet.gp .gp-radar-row { grid-template-columns: 128px minmax(0, 1fr); gap: 6px; }
#sheet.gp .gp-radar text { font-size: 12.5px; }
#sheet.gp .gp-side .gp-desc { -webkit-line-clamp: 3; font-size: 11.5px; }
#sheet.gp .gp-tag { padding: 2px 5px; font-size: 10.5px; }
  .tn { min-height: 38px; }
}
@media (max-height: 520px) and (orientation: landscape) { #sheet.gp { --gp-w: 400px; left: auto; right: 8px; margin: 0; top: 8px; bottom: 8px; max-height: none; } }
@media (prefers-reduced-motion: reduce) { .tn.next:not(:disabled):active { transform: none; } }
/* 카드 탭 셋(무기·도구·가구): 좁은 화면에서도 글자가 세로로 꺾이지 않게, 다음 웨이브 줄이 줄어든다 */
.tabs button { flex: 0 0 auto; white-space: nowrap; }
#nextInfo { min-width: 0; overflow: hidden; }

/* 테크 트리 칸에 올렸을 때 그림 = 다음 단계 모델 미리보기(2026-10-25) */
#sImg { transition: filter .18s ease-out, transform .18s ease-out; }
#sImg.pv { filter: drop-shadow(0 0 6px rgba(255, 214, 140, .55)); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { #sImg { transition: none; } #sImg.pv { transform: none; } }
/* 휴대폰 무기 창(2026-10-25 정민님): 육각형·수치 그대로 + 머리줄 '강화'(팔기 왼쪽) · 트리 숨김 · 두 갈래일 때만 특성 선택 화면 */
#sheet.gp.m1 #sActs { display: none; }
.gp-up { flex: 0 0 auto; align-self: flex-start; height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; font-weight: 600; color: #1a1208; background: var(--lamp); border: 1px solid #070909; box-shadow: 0 2px 0 #070909; }
.gp-up b { font: 700 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.gp-up b small { font-size: 9.5px; margin-left: 1px; }
.gp-up:disabled { color: var(--bad); background: #2b2420; box-shadow: none; }
.gp-up:not(:disabled):active { transform: translateY(1px); }
.gp-up:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.lp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.lp { display: grid; gap: 2px; min-height: 52px; padding: 6px 8px; text-align: left; color: var(--paper); background: #0d1110; border: 1px solid #2a312e; }
.lp small { font-size: 11px; color: var(--dim); } .lp.l small { color: rgb(var(--tc)); }
.lp b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp .c { font: 700 12px/1 var(--f-mono); color: var(--lamp); } .lp .c small { font-size: 9px; color: inherit; }
.lp.on { background: #2b3431; border-color: rgb(var(--tc)); box-shadow: inset 0 0 0 1px rgba(var(--tc), 0.35); }
.lp.r.on { border-color: var(--paper); }
.lp:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.lp-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 6px; margin-top: 6px; }
.lp-acts .gb { justify-content: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .gp-up:not(:disabled):active { transform: none; } }
.gp-info { display: none; }
/* 머리줄이 좁을 때 이름은 말줄임(단추가 이름을 덮지 않게) · 특성 선택 화면은 잠깐이라 더 높게, 강화 단추는 아래에 붙여 늘 보이게 */
#sheet.gp .gp-title { flex: 1 1 auto; min-width: 0; overflow: hidden; }
#sheet.gp .gp-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sheet.gp .gp-sub { flex-wrap: wrap; }
#sheet.gp .gp-up, #sheet.gp .gp-sell { padding: 0 8px; gap: 4px; }
@media (max-width: 899px) { #sheet.gp.pick { max-height: 62vh; max-height: 62dvh; } }
#sheet.gp.pick .lp-acts { position: sticky; bottom: calc(-1 * var(--pad, 10px)); padding: 6px 0 var(--pad, 10px); background: #12171a; z-index: 1; }
/* 머리줄 두 줄(2026-10-25 정민님 '글자를 가린다' · PC 도 같게): 1줄 = 그림·이름·✕, 2줄 = 강화·끝까지·특성·팔기 — 값이 길어도 이름을 밀지 않는다 */
#sheet.gp .gp-head { flex-wrap: wrap; row-gap: 8px; }
#sheet.gp .gp-thumb { width: 44px; height: 44px; }
#sheet.gp .gp-title { flex: 1 1 calc(100% - 110px); }
#sheet.gp .gp-x { order: 2; }
#sheet.gp .gp-up, #sheet.gp .gp-sell { order: 3; flex: 1 1 0; min-width: 0; justify-content: center; height: 40px; }
#sheet.gp .gp-up[hidden], #sheet.gp .gp-sell[hidden] { display: none; }
/* 휴대폰 강화 트리 화면(2026-10-25): 줄기 → 두 갈래 3마디 · 산 마디 ✓(길 색) · 다음 마디 깜빡임 · 잠김 흐림 · 고른 마디 테두리 */
.gp-up span small { display: block; font-size: 10px; font-weight: 400; opacity: 0.75; line-height: 1.1; }
.gp-up span { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.gp-up .tk-go { font-size: 18px; line-height: 1; }
.tk { margin-bottom: 6px; }
.tk-stem { display: flex; align-items: center; justify-content: center; gap: 4px; padding-bottom: 6px; position: relative; }
.tk-stem small { font-size: 11px; color: var(--dim); margin-right: 4px; }
.tk-stem i { display: grid; place-items: center; width: 20px; height: 20px; font: 700 10px/1 var(--f-mono); font-style: normal; color: var(--dim); border: 1px solid #3a423f; }
.tk-stem i.on { color: #1a1208; background: var(--lamp); border-color: var(--lamp); }
.tk-stem::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 6px; border: 1px solid #3a423f; border-bottom: 0; }
.tk-fork { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tk-lane { display: grid; gap: 6px; position: relative; --lc: rgb(var(--tc)); }
.tk-lane.r { --lc: var(--paper); }
.tk-h { font-size: 12px; font-weight: 600; color: var(--lc); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-lane.shut .tk-h::after { content: ' · 2'; color: var(--dim); font-weight: 400; }
.tk-n { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 40px; padding: 4px 8px 4px 6px; text-align: left; color: var(--paper); background: #0d1110; border: 1px solid #2a312e; }
.tk-n + .tk-n::before { content: ''; position: absolute; left: 16px; top: -7px; width: 2px; height: 6px; background: #2a312e; }
.tk-n.own + .tk-n::before { background: var(--lc); }
.tk-d { display: grid; place-items: center; width: 22px; height: 22px; font: 700 11px/1 var(--f-mono); font-style: normal; color: var(--dim); border: 1px solid #3a423f; border-radius: 50%; }
.tk-n b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-n .c { font: 700 11px/1 var(--f-mono); color: var(--lamp); } .tk-n .c small { font-size: 8.5px; }
.tk-n.own { background: #161c1a; } .tk-n.own .tk-d { color: #0d1110; background: var(--lc); border-color: var(--lc); }
.tk-n.next .tk-d { color: var(--lc); border-color: var(--lc); animation: tkPulse 1.6s ease-in-out infinite; }
.tk-n.lock { opacity: 0.5; } .tk-n.lock .c { color: var(--dim); }
.tk-n.on { opacity: 1; background: #2b3431; border-color: var(--lc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 35%, transparent); }
.tk-n:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.tk-why { margin-top: 4px; font-size: 11.5px; color: var(--bad); }
.tk-x { margin-top: 4px; font-size: 11.5px; color: #f0ab45; } /* 곁가지 안내(2026-10-27) */
@keyframes tkPulse { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tk-n.next .tk-d { animation: none; } }
#sheet.gp.pick .gp-sell { display: none; } /* 트리 화면에선 팔기를 숨겨 마디·수치 자리를 넓힌다 */
/* 빠른 강화(2026-10-25): [강화 Lv.N][끝까지 ×n][트리][팔기] — 끝까지는 강화와 같은 색 테두리 단추, 트리는 작은 회색 단추 */
.gp-max, .gp-tk { flex: 0 0 auto; align-self: flex-start; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.gp-max { color: var(--lamp); background: #2a2214; border: 1px solid var(--lamp); }
.gp-max b { font: 700 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; } .gp-max b small { font-size: 9px; }
.gp-max span { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; white-space: nowrap; } .gp-max span small { font: 400 10px/1.2 var(--f-mono); opacity: 0.85; }
.gp-tk { color: var(--paper); background: #1b2220; border: 1px solid #3a423f; }
.gp-max:not(:disabled):active, .gp-tk:active { transform: translateY(1px); }
.gp-max:focus-visible, .gp-tk:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
#sUp { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tk-lane.plan .tk-h::before { content: '★ '; }
#sheet.gp.pick .gp-max, #sheet.gp.pick .gp-tk { display: none; }
#sheet.gp .gp-max, #sheet.gp .gp-tk { order: 3; height: 40px; min-width: 0; }
#sheet.gp .gp-up { flex: 1.3 1 0; }
#sheet.gp .gp-max { flex: 1 1 0; }
#sheet.gp .gp-tk { flex: 0 0 auto; }
#sheet.gp .gp-sell { flex: 0.9 1 0; }
#sheet.gp .gp-max[hidden], #sheet.gp .gp-tk[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gp-max:not(:disabled):active, .gp-tk:active { transform: none; } }
#sheet.gp .gp-sell span, #sheet.gp .gp-up > span, #sheet.gp .gp-tk span { white-space: nowrap; } /* 네 단추가 한 줄에 서도 글자가 세로로 쪼개지지 않게 */
#sheet.gp .gp-sell { padding: 0 4px; gap: 3px; } #sheet.gp .gp-sell b { font-size: 12px; }
