/* Cybeerpunk — "Neon Hive" 디자인 시스템 (자세한 규칙: docs/DESIGN.md)
 * Cybeerpunk = cyberpunk + bee. 꿀색(노랑)·포도색(보라)이 주인공인 개인 인디웹 느낌 — 맹의 게임 방.
 * 어두운 화면(밤의 벌집)이 기본, 밝은 화면(꿀 종이)은 테마 버튼으로. 두 화면 모두 글자 대비 WCAG AA(4.5:1) 이상 — 직접 계산.
 * 색 역할: 꿀색=누르는 것·강조·맹 / 포도색=브랜드·할인·새 소식 / 하늘=정보(한국어) / 라임=좋은 평가 / 주황=주의 / 장미=나쁨
 * 글꼴: 본문=설치된 한글 글꼴 · 큰 제목=Do Hyeon · 맹의 손글씨(한줄평·메모)=Nanum Pen Script · 라벨=직접 그린 5×7 픽셀 글자(SVG)
 * 일반 화면(body[data-mode=user])과 개발자 모드(body[data-mode=dev])가 같은 토큰을 씁니다.
 */
:root {
  color-scheme: dark;
  /* 바탕 (밤의 벌집) */
  --bg: #140b24;
  --surface: #1d1233;
  --surface-2: #251841;
  --surface-3: #2f2052;
  --line: #3d2b66;
  --line-2: #54408a;
  /* 글자 */
  --ink: #fbf7ff;
  --ink-2: #d6c9f0;
  --ink-3: #a797cf;
  /* 역할 */
  --accent: #ffd23f;
  --accent-ink: #ffd84d;
  --accent-soft: #3a2d0e;
  --brand: #b77bff;
  --brand-ink: #caa2ff;
  --brand-soft: #2d1852;
  --info: #6fe3ff;
  --info-soft: #10304a;
  --series-1: #ffd23f;
  --series-1-soft: rgba(255, 210, 63, 0.14);
  --deemph: #4a3a78;
  --good: #a6f25c;
  --good-ink: #b5f57a;
  --warn: #ffb03a;
  --warn-ink: #ffc46b;
  --serious: #ff8a4c;
  --bad: #ff5d8f;
  --bad-ink: #ff8fb0;
  --grid: #2a1d49;
  --axis: #54408a;
  --ring: #1d1233;
  --tip-bg: #fbf7ff;
  --tip-ink: #170a2c;
  --tip-sub: #4b3a70;
  --demo: #3a2d0e;
  --demo-ink: #ffd84d;
  --primary: #ffd23f;
  --primary-hover: #ffe27a;
  --primary-ink: #170a2c;
  --on-brand: #170a2c;
  /* 맹타크리틱 등급 색 (글자는 --mc-ink) */
  --mc-s: #ffd23f;
  --mc-a: #b77bff;
  --mc-b: #6fe3ff;
  --mc-c: #a797cf;
  --mc-d: #ff7a9c;
  --mc-ink: #170a2c;
  /* 맹의 메모지 */
  --note-bg: #fff3b0;
  --note-ink: #3a2466;
  --tape: rgba(183, 123, 255, 0.55);
  /* 모양 */
  --radius: 10px;
  --card-radius: 14px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  /* 그림자·빛 */
  --shadow: none;
  --card-shadow: none;
  --card-shadow-hover: 0 0 0 1px rgba(255, 210, 63, 0.65), 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 210, 63, 0.16);
  --glow-accent: 0 0 0 1px rgba(255, 210, 63, 0.7), 0 0 22px rgba(255, 210, 63, 0.3);
  --glow-brand: 0 0 0 1px rgba(183, 123, 255, 0.7), 0 0 22px rgba(183, 123, 255, 0.35);
  --glow-text: 0 0 14px rgba(255, 210, 63, 0.5);
  --neon-line: linear-gradient(90deg, #ffd23f, #b77bff 55%, #ff7ac8);
  --hazard: repeating-linear-gradient(-45deg, #ffd23f 0 7px, #2d1852 7px 14px);
  --scan: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
  --grid-bg: linear-gradient(rgba(255, 210, 63, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 210, 63, 0.06) 1px, transparent 1px);
  /* 벌집 무늬 (육각형 타일) */
  --hive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31zM28 63v34M0 96.5 28 81l28 15.5' fill='none' stroke='%23ffd23f' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E");
  --hero-ink: #ffffff;
  --scrim: rgba(12, 6, 24, 0.74);
  --logo-body: #ffd23f;
  --logo-stripe: #a36bff;
  --logo-wing: #e9e0ff;
  --logo-eye: #1a0f2e;
  --wm-1: #fbf7ff;
  --wm-2: #ffd23f;
  --b88-ink: #fbf7ff;
  --b88-honey: #ffd23f;
  --b88-grape: #caa2ff;
  /* 글꼴 */
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Do Hyeon", var(--font);
  --hand: "Nanum Pen Script", "Gaegu", var(--font);
}
:root[data-theme="light"] {
  color-scheme: light;
  /* 꿀 종이 */
  --bg: #fff8e7;
  --surface: #ffffff;
  --surface-2: #fff4d6;
  --surface-3: #fbebbd;
  --line: #efdcae;
  --line-2: #dcc27a;
  --ink: #1f1238;
  --ink-2: #4b3a70;
  --ink-3: #6a5a8f;
  --accent: #6b2fd1;
  --accent-ink: #5a24c7;
  --accent-soft: #efe6ff;
  --brand: #7a3be8;
  --brand-ink: #5a24c7;
  --brand-soft: #efe6ff;
  --info: #006d8a;
  --info-soft: #dff5fb;
  --series-1: #6b2fd1;
  --series-1-soft: rgba(107, 47, 209, 0.1);
  --deemph: #dcc27a;
  --good: #2c9a00;
  --good-ink: #1f7a00;
  --warn: #d98200;
  --warn-ink: #8a4b00;
  --serious: #d9602b;
  --bad: #d61f57;
  --bad-ink: #b3124a;
  --grid: #f5e7c2;
  --axis: #dcc27a;
  --ring: #ffffff;
  --tip-bg: #1f1238;
  --tip-ink: #ffffff;
  --tip-sub: #d6c9f0;
  --demo: #fff0c2;
  --demo-ink: #6b4a00;
  --primary: #ffcf1a;
  --primary-hover: #ffc000;
  --primary-ink: #1f1238;
  --on-brand: #ffffff;
  --mc-s: #ffcf1a;
  --mc-a: #b77bff;
  --mc-b: #6fe3ff;
  --mc-c: #cfc3ea;
  --mc-d: #ff9ab5;
  --mc-ink: #170a2c;
  --tape: rgba(122, 59, 232, 0.35);
  --shadow: 0 1px 2px rgba(60, 30, 0, 0.05);
  --card-shadow: 0 1px 2px rgba(60, 30, 0, 0.06), 0 4px 14px rgba(60, 30, 0, 0.05);
  --card-shadow-hover: 0 0 0 2px #ffcf1a, 0 12px 28px rgba(60, 30, 0, 0.14);
  --glow-accent: 0 0 0 2px rgba(107, 47, 209, 0.45), 0 6px 18px rgba(107, 47, 209, 0.15);
  --glow-brand: 0 0 0 2px rgba(122, 59, 232, 0.4), 0 6px 18px rgba(122, 59, 232, 0.14);
  --glow-text: none;
  --neon-line: linear-gradient(90deg, #ffcf1a, #7a3be8 55%, #d61f8a);
  --hazard: repeating-linear-gradient(-45deg, #ffcf1a 0 7px, #1f1238 7px 14px);
  --scan: none;
  --grid-bg: linear-gradient(rgba(107, 47, 209, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(107, 47, 209, 0.06) 1px, transparent 1px);
  --hive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31zM28 63v34M0 96.5 28 81l28 15.5' fill='none' stroke='%23c99a00' stroke-opacity='.12' stroke-width='1.2'/%3E%3C/svg%3E");
  --scrim: rgba(20, 8, 40, 0.66);
  --logo-body: #f2b705;
  --logo-stripe: #6b2fd1;
  --logo-wing: #b79cff;
  --logo-eye: #1f1238;
  --wm-1: #1f1238;
  --wm-2: #d99a00;
  --b88-ink: #fbf7ff;
  --b88-honey: #ffd23f;
  --b88-grape: #caa2ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; } /* #devlog 같은 주소로 올 때 제목이 상단 바에 가리지 않게 */
body {
  margin: 0;
  /* 밤의 벌집: 위쪽 포도색 빛 + 옅은 육각형 무늬 */
  background:
    radial-gradient(1100px 520px at 50% -200px, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    var(--hive) 0 0 / 56px 97px,
    var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; box-shadow: var(--card-shadow-hover); }
.skip:focus { top: 8px; }

/* ------------------------------------------------------------ 상단 바 */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px max(16px, calc((100vw - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
}
/* 상단 바 아래 벌 줄무늬 (꿀색 · 포도색 사선) */
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hazard); opacity: 0.9; pointer-events: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  flex: none;
  min-height: 36px;
}
.brand svg { display: block; }
.brand .logo { width: 30px; height: auto; filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.45)); }
:root[data-theme="light"] .brand .logo { filter: none; }
.brand .wordmark { height: 14px; width: auto; }
.brand:hover .wordmark { filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.55)); }
.brand:hover .logo { transform: rotate(-8deg) translateY(-1px); }
.brand .logo { transition: transform 0.2s; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 16px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 650; }
/* JRPG 메뉴 커서 ▶ (픽셀) — 개발자 모드 */
body[data-mode="dev"] .nav a.on::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 6px;
  height: 8px;
  margin-top: -4px;
  background: var(--accent);
  clip-path: polygon(0 0, 33% 0, 33% 12.5%, 66% 12.5%, 66% 25%, 100% 25%, 100% 75%, 66% 75%, 66% 87.5%, 33% 87.5%, 33% 100%, 0 100%);
}
.search { position: relative; width: 240px; }
.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a797cf' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10.5 4a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13zM15.5 15.5l5 5'/%3E%3C/svg%3E") 11px 50% / 16px no-repeat;
  color: var(--ink);
  font: inherit;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-accent); }
.qres {
  position: absolute;
  right: 0;
  top: 40px;
  width: min(380px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  padding: 6px;
}
.qres .grp { padding: 6px 8px 2px; font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.qres a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 6px;
  text-decoration: none;
}
.qres a:hover, .qres a.sel { background: var(--surface-3); }
.qres .qn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qres .qm { color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }

.banner {
  padding: 8px max(16px, calc((100vw - 1200px) / 2));
  background: var(--demo);
  color: var(--demo-ink);
  font-size: 13px;
  font-weight: 500;
}

/* ------------------------------------------------------------ 본문 */
main {
  max-width: 1232px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 24px 48px;
  outline: none;
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.page-head .sub { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.head-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); }

section.block { margin-top: 32px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.block-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.block-head .hint { color: var(--ink-3); font-size: 13px; }
.more { display: inline-block; padding: 6px 0; font-size: 13px; color: var(--accent-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.more:hover { text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel.pad { padding: 16px; }

/* ------------------------------------------------------------ 숫자 타일 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--surface); padding: 14px 16px 15px; min-width: 0; }
.kpi .k { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }
.kpi .v.name { font-size: 17px; line-height: 1.35; }
.kpi .s { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.kpi.radar .k::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--brand); margin-right: 6px; vertical-align: 1px; }

/* ------------------------------------------------------------ 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-3);
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--ink); }
table.data th.sorted { color: var(--ink); }
table.data th.sorted::after { content: " ↓"; }
table.data th.sorted.asc::after { content: " ↑"; }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data .num { text-align: right; white-space: nowrap; }
table.data .rank { width: 1%; text-align: right; color: var(--ink-3); font-weight: 600; }
table.data.compact td, table.data.compact th { padding: 6px 10px; }
.panel > .table-wrap:first-child table.data th:first-child { border-top-left-radius: var(--radius); }
.panel > .table-wrap:first-child table.data th:last-child { border-top-right-radius: var(--radius); }
tr.go { cursor: pointer; }
.cell-game { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.cell-game .nm { min-width: 0; }
.cell-game .t1 { font-weight: 600; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.cell-game a.t1:hover { text-decoration: underline; }
.cell-game .t2 { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.thumb {
  width: 64px;
  height: 24px;
  border-radius: 4px;
  flex: none;
  object-fit: cover;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  overflow: hidden;
}
.thumb.icon { width: 32px; height: 32px; border-radius: 8px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.faint { opacity: 0.6; }
.empty { color: var(--ink-3); padding: 24px 16px; text-align: center; }
.empty.small { padding: 12px; font-size: 13px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }

/* ------------------------------------------------------------ 작은 부품 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
}
a.chip:hover, button.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.radar { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; font-weight: 600; }
.chip.lg { font-size: 13.5px; padding: 10px 14px; }
.chip .pct { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.badge i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.badge.good i { background: var(--good); }
.badge.warn i { background: var(--warn); }
.badge.bad i { background: var(--bad); }
.badge.none i { background: var(--deemph); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--ink-2);
  text-decoration: none;
}
.pill.ok::before { content: "●"; color: var(--good); font-size: 10px; }
.pill.warn::before { content: "▲"; color: var(--warn); font-size: 10px; }
.pill.demo { background: var(--demo); color: var(--demo-ink); }
.tagline { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.flag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.delta { font-size: 12px; font-weight: 600; white-space: nowrap; }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--bad-ink); }
.delta.new { color: var(--accent-ink); }
.delta.same { color: var(--ink-3); font-weight: 400; }
.plus { color: var(--good-ink); font-weight: 600; }

.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface-3); flex-wrap: wrap; }
.tabs button, .tabs a {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.filters label { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
select, .field {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.field { width: 200px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------ 세그먼트 카드 */
.seg-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.seg-card h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.seg-card h3::before { content: ""; width: 8px; height: 8px; background: var(--brand); flex: none; }
.seg-card h3 a { text-decoration: none; }
.seg-card h3 a:hover { text-decoration: underline; }
.seg-def { font-size: 12.5px; color: var(--ink-3); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-stats div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.mini-stats b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.mini-stats span { font-size: 11.5px; color: var(--ink-3); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list a:hover { text-decoration: underline; }
.mini-list .num { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------ 게임 상세 */
.game-hero { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.game-hero img.hdr { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: var(--radius); background: var(--surface-3); display: block; }
.game-hero .ph { width: 100%; aspect-ratio: 460 / 215; border-radius: var(--radius); background: var(--surface-3); display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--ink-3); }
.game-hero h1 { margin: 0; font-size: 26px; letter-spacing: -0.025em; line-height: 1.25; }
.game-hero .alt { color: var(--ink-3); margin-top: 2px; }
.game-hero .facts { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; }
.game-hero .facts dt { color: var(--ink-3); }
.game-hero .facts dd { margin: 0; }
.desc { color: var(--ink-2); max-width: 70ch; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ------------------------------------------------------------ 차트 */
figure.chart { margin: 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.chart-title { font-weight: 650; font-size: 14.5px; }
.chart-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.chart-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.chart-body { width: 100%; min-height: 40px; }
.chart-table { max-height: 360px; overflow: auto; }
svg.viz { display: block; overflow: visible; font-family: var(--font); }
svg.viz text { fill: var(--ink-2); font-size: 12px; }
svg.viz text.tick { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.viz text.val { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
svg.viz text.val.small { font-size: 11px; font-weight: 500; fill: var(--ink-2); }
svg.viz text.lab { fill: var(--ink-2); }
svg.viz text.small { font-size: 11.5px; }
svg.viz text.strong { fill: var(--ink); font-weight: 650; }
svg.viz text.faint { opacity: 0.75; }
svg.viz .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
svg.viz .axis { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
svg.viz .guide { stroke: var(--line-2); stroke-width: 1; }
svg.viz .hit { fill: transparent; }
svg.viz .clickable, svg.viz .clickable * { cursor: pointer; }
svg.viz .fill-1 { fill: var(--series-1); }
svg.viz .fill-emph { fill: var(--brand); }
svg.viz .fill-deemph { fill: var(--deemph); }
svg.viz .partial { opacity: 0.45; }
svg.viz g.on .fill-1, svg.viz g.on .fill-emph, svg.viz g.on .fill-deemph { filter: brightness(1.12); }
svg.viz g:focus { outline: none; }
svg.viz g:focus-visible .hit { stroke: var(--accent); stroke-width: 1.5; }
svg.viz g.on .hit { fill: var(--surface-2); }
svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg .line.thin { stroke-width: 1.5; }
svg .line.s1 { stroke: var(--series-1); }
svg .line.s2 { stroke: var(--brand); }
svg .area.s1 { fill: var(--series-1-soft); }
svg .area.s2 { fill: color-mix(in srgb, var(--brand) 12%, transparent); }
svg .dot { stroke: var(--ring); stroke-width: 2; }
svg .dot.s1 { fill: var(--series-1); }
svg .dot.s2 { fill: var(--brand); }
svg.viz .pt { stroke: var(--ring); stroke-width: 2; }
svg.viz .ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
svg.viz .cross { stroke: var(--ink-3); stroke-width: 1; }
svg.spark { display: block; }

.tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--tip-bg);
  color: var(--tip-ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 300px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.tip-title { font-weight: 650; margin-bottom: 3px; }
.tip-row { display: flex; align-items: center; gap: 7px; }
.tip-val { font-variant-numeric: tabular-nums; }
.tip-lab { color: var(--tip-sub); }
.tip-key { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tip-key.line { width: 12px; height: 2px; border-radius: 1px; }

/* ------------------------------------------------------------ 안내 */
.prose { max-width: 72ch; }
.prose h3 { font-size: 16px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.defs { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 10px 20px; margin: 0; }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--ink-2); }

.foot {
  max-width: 1232px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: var(--ink-3);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
}
.loading { color: var(--ink-3); padding: 40px 0; }

/* ------------------------------------------------------------ 좁은 화면 */
@media (max-width: 980px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .game-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 8px 10px; padding-block: 8px; }
  .brand { order: 1; }
  .search { order: 2; flex: 1; width: auto; min-width: 120px; }
  .icon-btn { order: 3; }
  .nav { order: 4; flex-basis: 100%; margin-inline: -6px; }
  .grid-halves { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 23px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 20px; }
  .mini-stats b { font-size: 15px; }
  .field { width: 100%; }
  .defs { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .defs dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ================================================================
 * 머리: 개발자 모드 스위치 · 메뉴 아이콘 · 검색 제안
 * ================================================================ */
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.mode-switch:hover { color: var(--ink); background: var(--surface-3); }
.mode-switch .track { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); transition: background 0.15s; flex: none; }
.mode-switch .knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.mode-switch[aria-checked="true"] { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-soft); }
.mode-switch[aria-checked="true"] .track { background: var(--brand); }
.mode-switch[aria-checked="true"] .knob { transform: translateX(12px); }
.nav .ico { width: 17px; height: 17px; }
.nav .count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
body[data-mode="user"] .nav a { padding: 7px 12px; }
body[data-mode="dev"] .nav a { padding: 7px 8px 7px 15px; }
.mode-switch .lbl-s { display: none; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; }
body[data-mode="user"] .nav a.on { background: transparent; color: var(--accent-ink); text-shadow: var(--glow-text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
body[data-mode="dev"] .brand::after {
  content: "DEV";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 5px;
}
.qres .qi { display: inline-grid; place-items: center; width: 24px; color: var(--accent-ink); }
.qres a { align-items: center; }
.qres a .qn { flex: 1; min-width: 0; }
.qres .cover.xs { width: 46px; flex: none; border-radius: 4px; }
/* 화면 이동 중 표시 */
body.busy::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 40%;
  z-index: 60;
  background: var(--neon-line);
  animation: busy 1.1s ease-in-out infinite;
}
@keyframes busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ================================================================
 * 일반 화면 공통
 * ================================================================ */
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 750; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); box-shadow: var(--glow-accent); }
.btn.ghost { background: transparent; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.btn.xl { height: 52px; padding: 0 28px; font-size: 17px; border-radius: 14px; gap: 10px; }
.btn.wide { min-width: 200px; justify-content: center; }
.btn.danger { border-color: var(--bad); color: var(--bad-ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.chip.on { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 650; }
button.chip { cursor: pointer; font: inherit; font-size: 13px; }
.chips.center { justify-content: center; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.more-row { display: flex; justify-content: center; margin-top: 18px; }
.u-lab { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; margin-right: 4px; white-space: nowrap; }

.u-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 4px 0 22px; }
.u-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; }
.u-head p { margin: 6px 0 0; color: var(--ink-2); }
.u-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sect { margin-top: 40px; }
.sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sect-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.005em; display: flex; align-items: center; gap: 10px; }
/* 섹션 제목 앞 작은 벌집 칸 */
.sect-head h2::before, .hx {
  content: "";
  display: inline-block;
  width: 14px;
  height: 16px;
  flex: none;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 12px var(--accent);
}
.sect-head p { margin: 3px 0 0; color: var(--ink-3); font-size: 13px; }

/* 표지 (Steam 가로 이미지 460×215, 없으면 만든 표지) */
/* height:auto — <img width height> 속성이 있어도 비율(460:215)을 지켜서, 이미지가 늦게 떠도 화면이 밀리지 않게(CLS) */
.cover { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; background: var(--surface-3); border: 0; }
.cover.gen {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8% 10%;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(135deg, hsl(var(--h1) 58% 46%), hsl(var(--h2) 62% 26%));
}
.cover.gen span {
  font-family: var(--display);
  font-size: clamp(15px, 1.7vw, 23px);
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.cover.gen.lg span { font-size: clamp(22px, 3vw, 40px); }
.cover.gen.xs { padding: 0; }
.cover.gen.xs span { font-size: 8px; -webkit-line-clamp: 2; font-family: var(--font); font-weight: 700; }
.backdrop.gen, .gtop-bg.gen, .mood-bg.gen { background: linear-gradient(135deg, hsl(var(--h1) 58% 42%), hsl(var(--h2) 62% 24%)); }

/* 평가 · 가격 · 기기 */
.rate { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.rate i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rate.good i { background: var(--good); }
.rate.warn i { background: var(--warn); }
.rate.bad i { background: var(--bad); }
.rate.none { color: var(--ink-3); font-weight: 500; }
.rate.lg { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: inherit; }
.ptag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptag s { color: var(--ink-3); font-weight: 500; font-size: 11.5px; }
.ptag .off { background: var(--brand); color: var(--on-brand); padding: 2px 5px; border-radius: 5px; font-size: 11.5px; }
.ptag.free { color: var(--good-ink); }
.ptag.lg { font-size: 15px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.ptag.lg s { color: inherit; opacity: 0.7; }
.ptag.lg.free { color: inherit; }
.plats { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.plat { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.plat.deck.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good-ink); }
.plat.deck.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn-ink); }
.plat.deck.none { color: var(--ink-3); }
.plat.ko.good { background: var(--info-soft); color: var(--info); }
.plat.ko.none { color: var(--ink-3); }

/* 게임 카드 */
.gcard {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gcard:hover, .gcard:focus-within { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.gcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.gcard-link:focus-visible { outline-offset: -3px; }
.gcard-media { position: relative; }
.gcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.gcard-title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gcard-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
/* 카드는 좁아서 원래 가격(취소선)은 빼고 할인율·지금 가격만 */
.gcard .ptag s { display: none; }
.gcard-tags, .gcard-reason { margin: 0; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard-reason { color: var(--accent-ink); font-weight: 600; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gcard .cover.gen { place-items: end start; text-align: left; padding: 10px 12px; }
.gcard .cover.gen span { font-size: clamp(15px, 1.5vw, 20px); max-width: 100%; }
.gbadge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-xs); background: var(--brand); color: var(--on-brand); }
.gcard.wide .gcard-title { font-size: 16.5px; }
.like {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
}
.like.on { color: var(--brand); }
.like.on .ico { fill: currentColor; }
.like.overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 10, 36, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  opacity: 0.92;
}
.like.overlay:hover { background: rgba(20, 10, 36, 0.78); }
.like.overlay.on { color: #ff8fc8; }
.like.btn { display: inline-flex; gap: 6px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* 가로 선반 */
.shelf-ctl { display: flex; align-items: center; gap: 6px; }
.shelf-ctl .more { margin-right: 6px; }
.rail-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  padding-bottom: 2px;
}
.rail-btn:hover:not(:disabled) { background: var(--surface-3); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 10px;
  margin: -2px -2px 0;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }

/* 오늘의 게임 */
.gtop-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.35);
  transform: scale(1.1);
}
.gtop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--scrim) 30%, rgba(20, 8, 40, 0.4));
}
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.gtop .plat { background: rgba(255, 255, 255, 0.14); color: #fff; }
.gtop .plat.deck.good { background: rgba(110, 227, 110, 0.22); color: #c9ffc9; }
.gtop .plat.deck.warn { background: rgba(250, 178, 25, 0.24); color: #ffe2a6; }
.gtop .plat.deck.none { color: rgba(255, 255, 255, 0.7); }
.gtop .plat.ko.good { background: rgba(170, 150, 255, 0.26); color: #e4dcff; }
.gtop .plat.ko.none { color: rgba(255, 255, 255, 0.7); }

/* 말로 찾기 */
.qband { margin-top: 28px; }
.qband.big {
  padding: 30px 28px 26px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--series-1) 14%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
}
.qband-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; }
.qband-head p { margin: 6px 0 18px; color: var(--ink-2); }
.qband-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 6px 6px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qband:not(.big) .qband-form { max-width: none; margin: 0 0 18px; }
.qband-form:focus-within { border-color: var(--accent); box-shadow: var(--glow-accent); }
.qband-form .ico { color: var(--ink-3); }
.qband-input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 16.5px; }
.qband-input::placeholder { color: var(--ink-3); }
.qband-form .btn { height: 44px; padding: 0 22px; border-radius: 10px; font-size: 15px; }
.qband-ex { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

/* 오늘의 추천 3 */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.trio-label { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.trio-label::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.trio-item .gcard { flex: 1; }

/* 기분별 모음 */
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mood {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 118px;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background: #22163c;
}
.mood-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 0.3s ease; }
.mood::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 36, 0.1) 10%, rgba(20, 10, 36, 0.82)); }
.mood:hover .mood-bg { transform: scale(1.06); }
.mood:hover, .mood:focus-visible { box-shadow: var(--glow-brand); }
.mood-txt { display: flex; flex-direction: column; gap: 2px; }
.mood-txt b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.mood-txt small { font-size: 12px; opacity: 0.86; }

/* 바로가기 · 탐색 */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.quick-item:hover { border-color: var(--accent); }
.quick-item b { font-size: 15px; }
.quick-item small { color: var(--ink-3); font-size: 12px; }
.genre-group { margin-top: 12px; }
.genre-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); font-weight: 700; }

/* 모바일 순위 */
.mob-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mob-col { padding: 14px 14px 8px; }
.mob-col h3 { margin: 0 0 6px; font-size: 15px; }
.applist { list-style: none; margin: 0; padding: 0; }
.applist li + li { border-top: 1px solid var(--line); }
.applist .app { display: flex; align-items: center; gap: 12px; padding: 9px 4px; text-decoration: none; color: inherit; border-radius: 10px; }
.applist a.app:hover { background: var(--surface-2); }
.applist .rk { width: 22px; text-align: right; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.applist .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.applist .nm b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.applist .nm small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.applist .mv { font-size: 12px; font-weight: 700; color: var(--ink-3); min-width: 34px; text-align: right; flex: none; }
.applist .mv.up { color: var(--good-ink); }
.applist .mv.down { color: var(--bad-ink); }
.applist .mv.new { color: var(--accent-ink); }
.applist.big { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 4px 10px; }
.thumb.icon.md { width: 44px; height: 44px; border-radius: 11px; }

/* 스마트 검색 결과 */
.understood, .addf, .maybe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.chip.cond { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; padding: 6px 8px 6px 11px; }
.chip.cond .x { font-size: 14px; opacity: 0.6; margin-left: 2px; }
.chip.cond:hover .x { opacity: 1; }
.chip.cond.exclude { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad-ink); }
.chip.unk { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-3); }
.chip.add { background: transparent; border: 1px solid var(--line); }
.chip.add:hover { border-color: var(--accent); color: var(--accent-ink); }
.maybe { margin: 6px 0 4px; }
.maybe-list { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.maybe-item { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; min-width: 0; max-width: 100%; }
.maybe-item:hover { border-color: var(--accent); }
.maybe-item .cover { width: 84px; border-radius: 7px; flex: none; }
.maybe-item span { display: flex; flex-direction: column; min-width: 0; }
.maybe-item b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maybe-item small { font-size: 12px; color: var(--ink-3); }
.res-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin: 22px 0 14px; }
.res-head .sect-head { margin: 0; }
.empty-state { text-align: center; padding: 40px 16px 20px; }
.es-art { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.empty-state h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; }
.empty-state p { margin: 6px 0 0; color: var(--ink-2); }
.es-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* 게임 화면 */
.gtop { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); color: var(--hero-ink); background: #140b24; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.22); }
.gtop::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--scan); }
.gtop-in { position: relative; z-index: 1; }
.gtop-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; padding: 28px; align-items: center; }
.gtop-media { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.gtop-info h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; overflow-wrap: anywhere; }
.gtop-info .alt { opacity: 0.75; margin-top: 4px; }
.gtop-info .by { opacity: 0.8; font-size: 13.5px; margin-top: 6px; }
.score { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.score > b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); }
.score.good > b { color: #8ff08f; }
.score.warn > b { color: #ffd166; }
.score.bad > b { color: #ff9a9a; }
.score span { display: flex; flex-direction: column; }
.score strong { font-size: 16px; }
.score small { opacity: 0.75; font-size: 12.5px; }
.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.price-big { display: flex; align-items: center; gap: 10px; }
.price-big .off { background: var(--brand); color: var(--on-brand); font-size: 16px; padding: 6px 9px; border-radius: 8px; }
.price-big span { display: flex; flex-direction: column; line-height: 1.2; }
.price-big s { opacity: 0.65; font-size: 12.5px; }
.price-big strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.gtop-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gtop .btn:not(.primary) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.gtop .btn:not(.primary):hover { background: rgba(255, 255, 255, 0.22); }
.gtop .like.on { color: #ff8fc8; }
.gtop .plats { margin-top: 14px; }
.gcols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 28px; align-items: start; }
.gsec + .gsec { margin-top: 28px; }
.gsec h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 23px; }
.lead { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.checks li::before { content: "✓"; color: var(--good-ink); font-weight: 800; }
.gfacts h2 { margin: 0 0 10px; font-size: 16px; }
.gfacts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
.gfacts dt { color: var(--ink-3); white-space: nowrap; }
.gfacts dd { margin: 0; }
.dev-link { display: flex; align-items: center; gap: 12px; margin-top: 12px; text-decoration: none; }
.dev-link:hover { border-color: var(--accent); }
.dev-link .ico { color: var(--accent-ink); }
.dev-link span { display: flex; flex-direction: column; }
.dev-link small { color: var(--ink-3); font-size: 12px; }
.sim-slot { margin-top: 8px; }

/* 취향 찾기 */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: var(--primary); transition: width 0.25s; }
.quiz-step { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.quiz-q { margin: 4px 0 18px; font-family: var(--display); font-weight: 400; font-size: 32px; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.quiz-opt {
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.12s, background 0.12s;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); box-shadow: var(--glow-accent); }
.quiz-done { margin: 4px 0 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quiz-best { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.quiz-sub { margin: 26px 0 12px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* 랜덤 뽑기 */
.lucky { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.lucky-go { display: flex; justify-content: center; }
.lucky-stage { min-height: 220px; display: grid; place-items: center; }
.lucky-empty { text-align: center; color: var(--ink-3); }
.lucky-empty .ico { width: 56px; height: 56px; }
.lucky-flash { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lucky-flash .cover { border-radius: 14px; filter: saturate(1.2); }
.lucky-flash b { font-size: 16px; }
.lucky-result { width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.lucky-result .quiz-actions { justify-content: center; margin-top: 6px; }

/* 알림 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--tip-bg);
  color: var(--tip-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot p { margin: 0 0 6px; }

/* ------------------------------------------------------------ 일반 화면: 좁은 화면 */
@media (max-width: 1100px) {
  .moods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 980px) {
  .gtop-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .gcols { grid-template-columns: minmax(0, 1fr); }
  .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mode-switch { order: 3; padding: 0 9px 0 6px; }
  .mode-switch .lbl { font-size: 11.5px; }
  .u-head h1 { font-size: 28px; }
  .sect { margin-top: 32px; }
  .sect-head h2 { font-size: 22px; }
  .gtop { border-radius: 18px; }
  .gtop-in { padding: 16px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .rail-track { grid-auto-columns: 72%; gap: 12px; }
  .rail-btn { display: none; }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mood { min-height: 96px; }
  .mood-txt b { font-size: 18px; }
  .mob-cols { grid-template-columns: minmax(0, 1fr); }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ggrid .gcard-body { padding: 8px 10px 10px; }
  .ggrid .gcard-title { font-size: 13.5px; }
  .ggrid .gcard-meta { flex-wrap: wrap; gap: 2px 8px; }
  .qband.big { padding: 22px 14px 18px; border-radius: 16px; }
  .qband-head h2 { font-size: 24px; }
  .qband-form { padding-left: 12px; }
  .qband-form .btn { padding: 0 14px; }
  .qband-input { font-size: 16px; }
  .quiz-q { font-size: 26px; }
  .quiz-opts { grid-template-columns: minmax(0, 1fr); }
  .score > b { font-size: 32px; }
  /* 일반 화면: 아래쪽 탭 메뉴 */
  body[data-mode="user"] { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body[data-mode="user"] .top { backdrop-filter: none; background: var(--bg); }
  body[data-mode="user"] .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  }
  body[data-mode="user"] .nav a { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; border-radius: 10px; }
  body[data-mode="user"] .nav a.on { background: none; box-shadow: none; color: var(--accent-ink); }
  body[data-mode="user"] .nav a.on .ico { filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.6)); }
  body[data-mode="user"] .nav .ico { width: 22px; height: 22px; }
  body[data-mode="user"] .nav .count { position: absolute; top: 0; left: calc(50% + 5px); }
  body[data-mode="user"] .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .mode-switch .lbl { display: none; }
  .mode-switch .lbl-s { display: inline; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gcard, .gcard:hover, .mood-bg, .quiz-opt { transition: none; transform: none; }
  body.busy::after { animation: none; width: 100%; opacity: 0.5; }
}

/* ================================================================
 * 검색엔진용 정적 페이지 (게임·장르·모음·목록)
 * ================================================================ */
a.mode-switch { text-decoration: none; }
nav.crumbs { margin: 0 0 12px; }
nav.crumbs [aria-current] { color: var(--ink-2); }
.hub-head { margin-bottom: 18px; }
.hub-head p { max-width: 72ch; }
.hub-head .hub-date { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 184px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.rank-item .rk { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank-item:nth-child(-n+3) .rk { color: var(--accent-ink); }
/* 장르 페이지의 '좁혀 보기' (무료·협동·한글 지원…) */
.narrow { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; margin: 2px 0 18px; }
.narrow > b { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.narrow .chips { gap: 6px; }
/* 오늘의 게임 기록: 순위 대신 날짜 */
.day-list .rank-item { grid-template-columns: 52px 184px minmax(0, 1fr) auto; }
.rank-item .rk.rk-day { font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--ink-2); }
.rank-item .rk.rk-day small { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.day-list .rank-item:nth-child(n+2) .rk.rk-day { color: var(--ink-3); }
.ri-media, .gtop-media { text-decoration: none; }
.ri-media { display: block; border-radius: 9px; overflow: hidden; }
.ri-media .cover.gen { place-items: end start; text-align: left; padding: 8px 10px; }
.ri-media .cover.gen span { font-size: 14px; }
.ri-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ri-body h3 { margin: 0; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ri-body h3 a { text-decoration: none; }
.ri-body h3 a:hover { text-decoration: underline; }
.ri-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ri-tags { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.ri-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.ri-why li::before { content: "· "; color: var(--ink-3); }
.rank-item .like { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); }
.rank-item .like:hover { background: var(--surface-3); }
.hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hub-grid a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; min-width: 0; }
.hub-grid a:hover { border-color: var(--accent); }
.hub-grid b { font-size: 15px; }
.hub-grid small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-more { margin-top: 16px; }
.mob-col h2 { margin: 0 0 6px; font-size: 15px; }
.about { max-width: 76ch; }
.about h2 { font-size: 17px; margin: 22px 0 6px; }
.about h2:first-child { margin-top: 0; }
.about p, .about li { color: var(--ink-2); }
.about ul { padding-left: 18px; margin: 0; }
.about li + li { margin-top: 6px; }
.about-snip > p { margin-top: 12px; }
.foot-links a { color: var(--ink-2); }
@media (max-width: 760px) {
  .rank-item { grid-template-columns: 22px 104px minmax(0, 1fr); gap: 10px; padding: 10px 44px 10px 8px; align-items: start; }
  .day-list .rank-item { grid-template-columns: 38px 104px minmax(0, 1fr); }
  .rank-item .rk.rk-day { font-size: 13px; }
  .rank-item .rk { font-size: 18px; padding-top: 4px; }
  .rank-item .like { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
  .ri-body h3 { font-size: 15px; }
  .ri-why { display: none; }
  .ri-media .cover.gen span { font-size: 11px; }
}

/* ================================================================
 * Neon Night 새 부품 — 픽셀 라벨 · 홈 첫 화면(검색 콘솔 + 오늘의 게임) · '할 게임 없을 때' · 스튜디오
 * ================================================================ */
.kicker { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: var(--accent); line-height: 0; }
.kicker svg { height: 14px; width: auto; display: block; }
.kicker::before { content: ""; width: 14px; height: 2px; background: currentColor; box-shadow: 0 0 8px currentColor; }
:root[data-theme="light"] .kicker::before { box-shadow: none; }

/* 홈 첫 화면: 왼쪽 검색 콘솔 · 오른쪽 오늘의 게임 */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.home-hero.solo { grid-template-columns: minmax(0, 1fr); }
.console {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 34px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    var(--surface);
}
/* 뒤에 깔리는 네온 격자 + 주사선 */
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scan), var(--grid-bg);
  background-size: auto, 28px 28px, 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, #000);
  mask-image: linear-gradient(180deg, transparent, #000 45%, #000);
  pointer-events: none;
}
.console-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.console-title em { font-style: normal; color: var(--accent); text-shadow: var(--glow-text); }
.console-sub { margin: 10px 0 20px; color: var(--ink-2); font-size: 15px; }
.console .qband-form { max-width: none; margin: 0; padding: 7px 7px 7px 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: var(--bg); }
.console .qband-form .ico { color: var(--accent); }
.console .qband-input { height: 48px; font-size: 17px; }
.console .qband-form .btn { height: 48px; padding: 0 24px; font-size: 16px; }
.console .qband-ex { justify-content: flex-start; margin-top: 14px; }

.today {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.today:hover, .today:focus-within { box-shadow: var(--card-shadow-hover); border-color: transparent; }
.today-media { display: block; position: relative; text-decoration: none; }
.today-media::after { content: ""; position: absolute; inset: 0; background: var(--scan); pointer-events: none; }
.today-media .cover.gen span { font-size: clamp(20px, 2.2vw, 30px); }
.today-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.today .eyebrow { align-self: flex-start; margin: 0; background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; padding: 4px 10px; }
.today-title { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; overflow-wrap: anywhere; }
.today-title a { text-decoration: none; }
.today-title a:hover { color: var(--accent-ink); }
.today-why { margin: 0; color: var(--ink-2); font-size: 14px; }
.today-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.today-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.today-cta .btn { flex: 1 1 auto; }
.today-more { align-self: flex-start; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.today-more:hover { color: var(--accent-ink); text-decoration: underline; }

/* 할 게임이 없을 때: 바로가기 세 개 */
.idle-wrap { margin-top: 22px; }
.idle-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em; }
.idle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.idle-tile {
  --tone: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.idle-tile.idle-lucky { --tone: var(--brand); }
.idle-tile.idle-moods { --tone: var(--info); }
.idle-tile:hover, .idle-tile:focus-visible { border-color: var(--tone); box-shadow: 0 0 0 1px var(--tone), 0 0 24px color-mix(in srgb, var(--tone) 30%, transparent); transform: translateY(-1px); }
.idle-ico { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 40%, transparent); }
.idle-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.idle-txt b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.idle-txt small { color: var(--ink-2); font-size: 13px; }
.idle-go { font-size: 22px; color: var(--tone); line-height: 1; }

/* 더 둘러보기 */
.more-shelves .chips { gap: 8px; }

/* ---------------------------------------------------------------- 스튜디오 */
.st-badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 12px; font-weight: 750; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px; color: var(--brand-ink); background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.st-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); animation: st-pulse 1.8s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: 0.35; } }
/* 홈 띠 */
.st-band { padding: 22px 22px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%), var(--surface); }
.st-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scan); pointer-events: none; }
.st-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.st-band-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.2; }
.st-band-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.st-band .kicker { color: var(--brand); }
.st-minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.st-mini { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.15s, transform 0.15s; }
.st-mini img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.st-mini-txt { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; padding: 10px 12px 12px; }
.st-mini-txt b { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.15; letter-spacing: 0.02em; }
.st-mini-txt small { font-size: 12px; color: var(--brand-ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.st-mini:hover, .st-mini:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px hsl(var(--st-h, 300) 100% 64%), 0 0 26px hsl(var(--st-h, 300) 100% 60% / 0.45); }
/* 스튜디오 첫 화면 */
.st-hero { position: relative; padding: 34px 32px 30px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(90% 140% at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--surface); }
.st-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scan), var(--grid-bg); background-size: auto, 28px 28px, 28px 28px; pointer-events: none; opacity: 0.8; }
.st-hero .kicker { color: var(--brand); }
.st-hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
.st-lead { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.st-prose { max-width: 70ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.st-prose > :first-child { margin-top: 0; }
.st-hero .st-prose { margin-top: 16px; }
.st-prose h2 { margin: 28px 0 8px; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.25; }
.st-prose h3, .st-prose h4 { margin: 22px 0 6px; color: var(--ink); font-size: 17px; }
.st-prose a { color: var(--accent-ink); }
.st-prose strong { color: var(--ink); }
.st-prose code { font-family: var(--mono); font-size: 13px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.st-prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--brand); color: var(--ink); }
.st-prose hr { border: 0; height: 1px; background: var(--neon-line); opacity: 0.6; margin: 24px 0; }
.st-prose figure { margin: 18px 0; }
.st-prose figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.st-prose figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.st-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.st-grid.small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 0; }
.st-card { min-width: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.st-card:hover, .st-card:focus-within { transform: translateY(-3px); border-color: transparent;
  box-shadow: 0 0 0 1px hsl(var(--st-h, 300) 100% 64%), 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 34px hsl(var(--st-h, 300) 100% 60% / 0.35); }
.st-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.st-card-link:focus-visible { outline-offset: -3px; }
.st-card-media { position: relative; background: #140b24; }
.st-card-media::after { content: ""; position: absolute; inset: 0; background: var(--scan); pointer-events: none; }
.st-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* 한쪽 모서리를 잘라 낸 카트리지 모양 */
.st-card-media .st-art { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.st-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.st-card-title { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: 0.02em; }
.st-card-tag { margin: 0; color: var(--ink-2); font-size: 14px; }
.st-more { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
/* 게임 한 개 화면 */
.st-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px;
  border-radius: var(--r-lg); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(100% 140% at 100% 0%, hsl(var(--st-h, 300) 100% 60% / 0.16), transparent 60%), var(--surface); }
.st-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scan); pointer-events: none; }
.st-top-media { border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px hsl(var(--st-h, 300) 100% 64% / 0.6), 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 40px hsl(var(--st-h, 300) 100% 60% / 0.25); }
.st-top-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-top-info h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: 0.03em; overflow-wrap: anywhere;
  text-shadow: 0 0 22px hsl(var(--st-h, 300) 100% 60% / 0.55); }
:root[data-theme="light"] .st-top-info h1 { text-shadow: none; }
.st-top-info .st-lead { margin: 0; }
.st-top-info .st-links { margin-top: 6px; }
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 28px; align-items: start; }
.st-side { padding: 16px 18px; }
.st-side h2 { margin: 0 0 10px; font-size: 16px; }
.st-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.st-side dt { color: var(--ink-3); white-space: nowrap; }
.st-side dd { margin: 0; }
.st-shots { margin-top: 28px; }
.st-shots h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.st-shots ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.st-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.st-shots a:hover img, .st-shots a:focus-visible img { border-color: var(--accent); box-shadow: var(--glow-accent); }
.studio-view { display: block; }
/* 홈 스튜디오 띠 맨 아래 '최근 소식' 한 줄 */
.st-news { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; }
.st-news-k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--brand-ink); }
.st-news a:not(.more) { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 700; text-decoration: none; }
.st-news a:not(.more):hover, .st-news a:not(.more):focus-visible { color: var(--accent-ink); text-decoration: underline; }
.st-news time { color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; }
.st-news .more { margin-left: auto; }

/* 개발일지 — 글 목록 */
.dl-list { display: grid; gap: 14px; margin-top: 22px; }
.dl-list.compact { margin-top: 0; gap: 10px; }
.dl-item { min-width: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.dl-item:hover, .dl-item:focus-within { transform: translateY(-2px); border-color: transparent; box-shadow: var(--card-shadow-hover); }
.dl-link { display: grid; grid-template-columns: 240px minmax(0, 1fr); height: 100%; text-decoration: none; color: inherit; }
.dl-list.compact .dl-link { grid-template-columns: 176px minmax(0, 1fr); }
.dl-item.no-media .dl-link { grid-template-columns: minmax(0, 1fr); }
.dl-link:focus-visible { outline-offset: -3px; }
.dl-media { position: relative; min-height: 100%; background: #140b24; }
.dl-media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dl-media::after { content: ""; position: absolute; inset: 0; background: var(--scan); pointer-events: none; }
.dl-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; min-width: 0; }
.dl-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.dl-meta time { font-family: var(--mono); letter-spacing: 0.02em; }
.dl-game { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; letter-spacing: 0.02em; text-decoration: none;
  color: hsl(var(--st-h, 300) 100% 80%); background: hsl(var(--st-h, 300) 90% 55% / 0.14); box-shadow: inset 0 0 0 1px hsl(var(--st-h, 300) 100% 64% / 0.45); }
a.dl-game:hover, a.dl-game:focus-visible { background: hsl(var(--st-h, 300) 90% 55% / 0.26); }
:root[data-theme="light"] .dl-game { color: hsl(var(--st-h, 300) 70% 30%); background: hsl(var(--st-h, 300) 80% 50% / 0.1); }
.dl-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.dl-sum { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-hero .st-links .chip { gap: 6px; }
/* 개발일지 — 글 한 편 */
.dl-post { max-width: 760px; margin: 0 auto; }
.dl-head { padding: 6px 0 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.dl-head .kicker { color: var(--brand); }
.dl-head h1 { margin: 10px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
.dl-head .st-lead { margin-top: 12px; }
.dl-cover { margin: 0 0 22px; }
.dl-cover img { display: block; max-width: 100%; max-height: min(70vh, 560px); width: auto; height: auto; margin: 0 auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.dl-prose { max-width: none; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.dl-nav { max-width: 760px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl-nav a { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.dl-nav a:hover, .dl-nav a:focus-visible { border-color: var(--accent); box-shadow: var(--glow-accent); }
.dl-nav small { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.dl-nav b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-next { text-align: right; }
.dl-post + .dl-nav + .dl-sect, .dl-post + .dl-sect { max-width: 760px; margin-inline: auto; }
/* 아래쪽 '만든 사람' */
.made-by { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-2); }
.made-by .logo { width: 16px; height: auto; }
.made-by a { color: var(--accent-ink); display: inline-block; padding: 4px 0; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .idle { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-top, .st-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .console { padding: 22px 16px 18px; }
  .console-sub { font-size: 14px; margin-bottom: 16px; }
  .console .qband-form { padding: 5px 5px 5px 12px; }
  .console .qband-input { height: 44px; font-size: 16px; }
  .console .qband-form .btn { height: 44px; padding: 0 16px; font-size: 15px; }
  .console .qband-ex { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .console .qband-ex::-webkit-scrollbar { display: none; }
  .idle-tile { padding: 12px 14px; }
  .idle-ico { width: 40px; height: 40px; }
  .idle-txt b { font-size: 18px; }
  .st-band { padding: 16px 14px; }
  .st-minis { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .st-minis::-webkit-scrollbar { display: none; }
  .st-minis li { scroll-snap-align: start; }
  .st-hero { padding: 22px 16px; }
  .st-top { padding: 14px; gap: 16px; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-link, .dl-list.compact .dl-link { grid-template-columns: minmax(0, 1fr); }
  .dl-media img { height: auto; }
  .dl-title { font-size: 20px; }
  .dl-nav { grid-template-columns: minmax(0, 1fr); }
  .dl-nav > span:empty { display: none; }
  .dl-next { text-align: left; }
  .st-news .more { margin-left: 0; }
}
@media (max-width: 520px) {
  .brand .wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-badge i { animation: none; }
  .idle-tile, .idle-tile:hover, .st-card, .st-card:hover, .st-mini, .st-mini:hover, .dl-item, .dl-item:hover { transition: none; transform: none; }
}

/* ================================================================
 * Neon Hive — 맹 부품: 소식 줄 · 인사 메모 · 맹타크리틱 · 숫자로 본 이 게임 · 취향 · 맹챠 · 88×31 버튼
 * ================================================================ */
/* 누르는 버튼은 스티커처럼 살짝 두툼하게 */
.btn.primary { box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 55%, #000); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 55%, #000); }
.gcard:hover, .gcard:focus-within { transform: translateY(-3px) rotate(-0.35deg); }
.console::before { background: var(--hive) 0 0 / 56px 97px, var(--scan); }
.idle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.idle-tile.idle-lucky { --tone: var(--accent); }
.idle-tile.idle-quiz { --tone: var(--brand); }
.idle-tile.idle-styles { --tone: #ff7ac8; }
:root[data-theme="light"] .idle-tile.idle-styles { --tone: #c2186b; }
.mood.style::after { background: linear-gradient(180deg, rgba(20, 10, 36, 0.05) 10%, rgba(45, 24, 82, 0.88)); }

/* 소식 줄 (머리 아래 흐르는 글 — 올리면 멈춤, 움직임 줄이기 설정이면 멈춘 채 옆으로 넘겨 보기) */
.ticker { position: relative; overflow: hidden; background: color-mix(in srgb, var(--surface) 90%, transparent); border-bottom: 1px solid var(--line); font-size: 13px; }
.ticker-track { display: flex; width: max-content; animation: tick 52s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tk-run { display: flex; gap: 36px; padding: 7px 18px; flex: none; }
.tk-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-2); }
.tk-k { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 4px; background: var(--accent); color: var(--primary-ink); line-height: 0; }
:root[data-theme="light"] .tk-k { background: var(--primary); }
.tk-k svg { height: 7px; width: auto; }
.tk-item a { color: var(--ink); text-decoration: none; font-weight: 650; }
.tk-item a:hover, .tk-item a:focus-visible { color: var(--accent-ink); text-decoration: underline; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 홈 인사 */
.hello-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.hello-title em { font-style: normal; color: var(--accent); text-shadow: var(--glow-text); }
:root[data-theme="light"] .hello-title em { color: var(--ink); background: linear-gradient(transparent 55%, #ffe066 55%, #ffe066 92%, transparent 92%); }
/* 맹의 메모지 (손글씨 · 테이프) */
.note { position: relative; align-self: flex-start; max-width: 470px; margin: 2px 0 18px 4px; padding: 18px 22px 12px; background: var(--note-bg); color: var(--note-ink);
  border-radius: 3px 3px 14px 3px; transform: rotate(-1.2deg); font-family: var(--hand); font-size: 24px; line-height: 1.22;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 -20px 30px -26px rgba(90, 60, 0, 0.4); }
.note-tape { position: absolute; top: -10px; left: 50%; width: 88px; height: 22px; margin-left: -44px; background: var(--tape); transform: rotate(3deg); }
.note-body p { margin: 0 0 4px; }
.note-body a { color: inherit; }
.note-sign { margin: 2px 0 0; text-align: right; font-size: 20px; opacity: 0.8; }
/* 지금 맹은 */
.now { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin: 0 0 16px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: var(--brand-soft); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.now-k { display: inline-flex; align-items: center; gap: 6px; line-height: 0; padding: 5px 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.now-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a6f25c; box-shadow: 0 0 6px #a6f25c; animation: st-pulse 1.6s ease-in-out infinite; }
.now-k svg { height: 7px; width: auto; }
a.now:hover, a.now:focus-visible { box-shadow: var(--glow-brand); }
.pick { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--primary-ink); font-size: 11.5px; font-weight: 800; letter-spacing: 0; }
:root[data-theme="light"] .pick { background: var(--primary); }
.today-line { margin: 0; font-family: var(--hand); font-size: 25px; line-height: 1.15; color: var(--accent-ink); }
.today-line span { display: block; font-size: 18px; color: var(--ink-3); }

/* 맹타크리틱 점수 배지 (육각형 — 등급 색: S 꿀 · A 포도 · B 하늘 · C 라일락 · D 장미) */
.mc-s { --mc: var(--mc-s); }
.mc-a { --mc: var(--mc-a); }
.mc-b { --mc: var(--mc-b); }
.mc-c { --mc: var(--mc-c); }
.mc-d { --mc: var(--mc-d); }
.mc-none { --mc: var(--line-2); }
.mc { display: inline-grid; place-items: center; width: 44px; height: 50px; flex: none; background: var(--mc, var(--mc-c)); color: var(--mc-ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-family: var(--display); line-height: 1; }
.mc b { font-weight: 400; font-size: 19px; letter-spacing: -0.02em; }
.mc.md { width: 50px; height: 57px; }
.mc.md b { font-size: 22px; }
.mc.lg { width: 80px; height: 92px; }
.mc.lg b { font-size: 35px; }
.mc.mc-s { filter: drop-shadow(0 0 10px rgba(255, 210, 63, 0.55)); }
/* 카드 모서리 스티커 */
.mc-stk { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--mc, var(--mc-c)); color: var(--mc-ink);
  font-weight: 800; line-height: 1; transform: rotate(-4deg); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); white-space: nowrap; }
.mc-stk i { display: inline-grid; place-items: center; width: 20px; height: 22px; font-style: normal; font-size: 11px; font-weight: 900; background: var(--mc-ink); color: var(--mc, var(--mc-c));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mc-stk b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.gcard-media .mc-stk, .today-media .mc-stk { position: absolute; left: 8px; bottom: 8px; z-index: 1; }
.today-media .mc-stk { left: 12px; bottom: 12px; transform: rotate(-4deg) scale(1.15); transform-origin: left bottom; }
.gcard.rated { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

/* 게임 화면: 맹타크리틱 상자 (게임 윗부분 — 늘 어두운 바탕) */
.mbox { margin-top: 16px; padding: 12px 16px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc, #ffd23f) 55%, transparent); }
.mbox .kicker { margin: 0 0 4px; color: var(--mc, #ffd23f); }
.mbox .kicker::before { display: none; }
.mb-score { display: flex; align-items: center; gap: 14px; }
.mb-v { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-v strong { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--mc, #ffd23f); }
.mb-v small, .mb-score > small { opacity: 0.78; font-size: 12.5px; }
.mb-line { margin: 10px 0 0; font-family: var(--hand); font-size: 27px; line-height: 1.18; color: #fff3b0; }
.mb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.mb-st, .mb-h, .mb-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); white-space: nowrap; }
.mbox .mb-st { background: var(--mc, #ffd23f); color: var(--mc-ink); }
.mb-more { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.mb-more a { color: #ffe27a; font-weight: 700; }
.mbox.none { padding: 10px 16px; background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.mbox.none .kicker { color: rgba(255, 255, 255, 0.6); }
.mb-none { margin: 0; font-family: var(--hand); font-size: 23px; opacity: 0.85; }
/* 맹의 리뷰 · 개발자 노트 · 플레이 영상 */
.maeng-sec { padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.maeng-sec h2, .insight h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.maeng-sec h2 small, .insight h2 small { font-family: var(--font); font-size: 13px; color: var(--ink-3); font-weight: 600; }
.maeng-sec.dev { border: 1px dashed color-mix(in srgb, var(--brand) 60%, var(--line));
  background: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--brand) 9%, transparent) 27px 28px), var(--surface); }
.maeng-sec.dev .hx { background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.maeng-sec .prose { max-width: 70ch; font-size: 15.5px; line-height: 1.8; }
.maeng-sec .prose > :first-child { margin-top: 0; }
.maeng-sec .prose > :last-child { margin-bottom: 0; }
.maeng-sec .prose h2 { margin: 22px 0 6px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--ink); }
.maeng-sec .prose h3, .maeng-sec .prose h4 { margin: 20px 0 6px; font-size: 16.5px; color: var(--accent-ink); }
.maeng-sec .prose strong { color: var(--ink); }
.maeng-sec .prose a { color: var(--accent-ink); }
.maeng-sec .prose blockquote { margin: 14px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); color: var(--ink); }
.maeng-sec .prose figure { margin: 16px 0; }
.maeng-sec .prose figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.maeng-sec .prose figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.maeng-secs > .gsec + .gsec, .maeng-secs + .gsec, .gmain > .gsec + .ins-slot:not(:empty), .ins-slot + .gsec { margin-top: 28px; }
.yt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.yt { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.15s, transform 0.25s; }
.yt:hover img, .yt:focus-visible img { opacity: 1; transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 46px; margin: -23px 0 0 -33px; border-radius: 14px; background: #ffd23f; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 16px solid #170a2c; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }

/* 숫자로 본 이 게임 */
.insight { padding: 18px 20px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ins { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ins li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
.ins-k { font-size: 13px; font-weight: 750; color: var(--ink-3); }
.ins-v { display: flex; flex-direction: column; min-width: 0; }
.ins-v b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; color: var(--accent-ink); }
.ins-v small { font-size: 12.5px; color: var(--ink-3); }
.ins-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.ins-bar.none { background: none; }

/* 맹 취향 적중률 · 취향 궁합 */
.taste { margin-top: 12px; }
.taste h2 { margin: 0 0 6px; font-size: 16px; }
.taste-v, .qm-v { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.taste-v b, .qm-v b { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; color: var(--accent-ink); }
.taste-v span, .qm-v span { font-family: var(--hand); font-size: 23px; color: var(--ink-2); }
.meter { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.meter i { display: block; height: 100%; background: var(--hazard); }
.quiz-match { margin: 0 0 18px; max-width: 520px; }
.qm-k { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }

/* 홈: 맹타크리틱 카드 */
.maeng-home { padding: 22px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%), var(--surface); }
.maeng-home .sect-head { margin-bottom: 16px; }
.maeng-home .kicker { margin-bottom: 6px; }
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard { min-width: 0; }
.mcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--bg); border-radius: var(--card-radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.mcard-link:hover, .mcard-link:focus-visible { transform: translateY(-2px) rotate(-0.4deg); box-shadow: 0 0 0 2px var(--mc, var(--accent)), 0 12px 30px rgba(0, 0, 0, 0.4); }
.mcard-link:focus-visible { outline-offset: -3px; }
.mcard-media { position: relative; }
.mcard-media .mc { position: absolute; right: 10px; top: 10px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.mcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.mcard-body h3 { margin: 0; font-size: 15.5px; font-weight: 750; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-line { margin: 0; font-family: var(--hand); font-size: 23px; line-height: 1.15; color: var(--accent-ink); }
.mcard-meta { margin: auto 0 0; padding-top: 4px; font-size: 12px; color: var(--ink-3); font-weight: 650; }

/* 맹타크리틱 페이지: 점수 보는 법 · 티어표 · 목록 */
.mc-scale { margin-bottom: 8px; }
.mc-scale .kicker { margin-bottom: 8px; }
.mc-scale ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mc-scale li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.mc-scale .tier-l { display: grid; place-items: center; width: 30px; height: 34px; flex: none; background: var(--mc); color: var(--mc-ink); font-family: var(--display); font-size: 18px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mc-scale b { font-size: 14px; }
.mc-scale small { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.tierlist { display: grid; gap: 8px; }
.tier-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tier-row > .tier-l { display: grid; place-items: center; background: var(--mc); color: var(--mc-ink); font-family: var(--display); font-size: 34px; }
.tier-body { padding: 10px 12px; min-width: 0; }
.tier-name { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.tier-games { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-g { display: block; text-decoration: none; width: 120px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.tier-g:hover, .tier-g:focus-visible { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 2px var(--mc); }
.tier-g .cover.gen { padding: 4px 6px; }
.tier-g .cover.gen span { font-size: 11px; font-family: var(--font); font-weight: 700; }
.tier-empty { font-size: 13px; color: var(--ink-3); padding: 6px 0; }
.mc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mc-item { display: grid; grid-template-columns: 170px minmax(0, 1fr) 88px; gap: 16px; align-items: center; padding: 12px 12px 12px 12px; background: var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--mc, var(--line-2)); border-radius: var(--card-radius); }
.mci-media { display: block; border-radius: 9px; overflow: hidden; text-decoration: none; }
.mci-media .cover.gen span { font-size: 13px; }
.mci-body { min-width: 0; }
.mci-body h3 { margin: 0; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.mci-body h3 a { text-decoration: none; }
.mci-body h3 a:hover { text-decoration: underline; }
.mci-line { margin: 2px 0 0; font-family: var(--hand); font-size: 24px; line-height: 1.15; color: var(--accent-ink); }
.mci-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.mci-meta time { font-family: var(--mono); }
.mc-item .mb-st, .mc-item .mb-h, .mc-item .mb-tag { font-size: 11.5px; padding: 2px 9px; background: var(--surface-3); color: var(--ink-2); }
.mc-item .mb-st { background: color-mix(in srgb, var(--mc, var(--line-2)) 26%, transparent); color: var(--ink); }
.mci-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mci-score small { font-size: 12px; font-weight: 750; color: var(--ink-2); text-align: center; }
.mci-score.none small { color: var(--ink-3); }
.ri-line { margin: 0; font-family: var(--hand); font-size: 21px; line-height: 1.15; color: var(--accent-ink); }
.rank-item .rk.rk-day small.pick { display: inline-block; margin: 3px 0 0; color: var(--primary-ink); }
.link-us-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.link-us-in code { flex: 1; min-width: 220px; font-family: var(--mono); font-size: 12px; background: var(--surface-3); padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.pixelated { image-rendering: pixelated; }

/* 맹챠 (캡슐 뽑기) */
.lucky { max-width: 980px; }
.gacha-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.gacha { width: 260px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4)); }
.gacha-top { height: 34px; border-radius: 18px 18px 0 0; background: var(--brand); display: grid; place-items: center; color: var(--on-brand); line-height: 0; }
.gacha-top svg { height: 14px; width: auto; }
.gacha-globe { position: relative; height: 210px; overflow: hidden; border: 5px solid var(--brand); border-top: 0; border-bottom: 0;
  background: radial-gradient(60% 45% at 30% 25%, rgba(255, 255, 255, 0.4), transparent 60%), color-mix(in srgb, var(--info) 16%, var(--surface)); }
.gacha-globe i { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, var(--c) 50%, #fbf7ff 50%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.3); transform: rotate(calc(var(--i) * 37deg)); }
.gacha-globe i:nth-child(1) { left: 12px; bottom: 6px; }
.gacha-globe i:nth-child(2) { left: 58px; bottom: 2px; }
.gacha-globe i:nth-child(3) { left: 104px; bottom: 8px; }
.gacha-globe i:nth-child(4) { left: 150px; bottom: 4px; }
.gacha-globe i:nth-child(5) { left: 192px; bottom: 12px; }
.gacha-globe i:nth-child(6) { left: 34px; bottom: 48px; }
.gacha-globe i:nth-child(7) { left: 82px; bottom: 46px; }
.gacha-globe i:nth-child(8) { left: 130px; bottom: 50px; }
.gacha-globe i:nth-child(9) { left: 172px; bottom: 56px; }
.gacha.spin .gacha-globe i { animation: jiggle 0.22s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -45ms); }
@keyframes jiggle { from { transform: translate(-3px, 2px) rotate(-20deg); } to { transform: translate(3px, -8px) rotate(24deg); } }
.gacha-base { display: flex; align-items: center; justify-content: space-between; height: 112px; padding: 0 22px; border-radius: 0 0 22px 22px; background: var(--brand);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.18); }
.gacha-knob { width: 78px; height: 78px; border: 0; border-radius: 50%; cursor: pointer; background: #ffd23f; color: #170a2c; font-family: var(--display); font-size: 17px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 5px rgba(255, 255, 255, 0.2); transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.15s; }
.gacha-knob span { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.gacha-knob span::before { content: ""; position: absolute; width: 62px; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, 0.16); }
.gacha-knob:hover, .gacha-knob:focus-visible { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 5px rgba(255, 255, 255, 0.2), 0 0 24px #ffd23f; }
.gacha-knob[disabled] { cursor: default; }
.gacha.spin .gacha-knob { transform: rotate(360deg); }
.gacha-chute { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.45); }
.cap { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, var(--cap, #a797cf) 50%, #fbf7ff 50%); animation: cap-drop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.cap.rar-ssr { --cap: #ffd23f; box-shadow: 0 0 18px #ffd23f; }
.cap.rar-sr { --cap: #b77bff; }
.cap.rar-r { --cap: #6fe3ff; }
@keyframes cap-drop { from { transform: translateY(-70px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.gacha-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gacha-side .lucky-stage { min-height: 200px; }
.rar-banner { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 12px; font-family: var(--display); font-size: 20px; background: var(--surface-3); color: var(--ink); }
.rar-banner b { font-weight: 400; font-size: 30px; letter-spacing: 0.04em; }
.lucky-result.rar-ssr .rar-banner { background: var(--mc-s); color: var(--mc-ink); box-shadow: 0 0 30px rgba(255, 210, 63, 0.5); animation: shine 1.2s ease-out; }
.lucky-result.rar-sr .rar-banner { background: var(--mc-a); color: var(--mc-ink); }
.lucky-result.rar-r .rar-banner { background: var(--mc-b); color: var(--mc-ink); }
@keyframes shine { from { filter: brightness(1.7); transform: scale(1.05); } to { filter: none; transform: none; } }
.gacha-stats { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.gacha-odds summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 4px 0; }
.gacha-odds ul { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.gacha-odds li + li { margin-top: 3px; }
.gacha-odds .rar-ssr b { color: var(--accent-ink); }
.gacha-odds .rar-sr b { color: var(--brand-ink); }
.gacha-odds .rar-r b { color: var(--info); }

/* 아래쪽: 벌집 줄무늬 · 어제 다녀간 벌 · 88×31 버튼 */
.foot { border-top: 0; position: relative; padding-top: 30px; }
.foot::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 3px; background: var(--hazard); opacity: 0.75; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: start; }
.foot-hi b { color: var(--ink); }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bees { margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.bees b { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.bee-ico { line-height: 0; }
.bee-ico .logo, .empty-state.lost .logo { width: 20px; height: auto; animation: buzz 2.4s ease-in-out infinite; }
@keyframes buzz { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(1px, -2px) rotate(-7deg); } 50% { transform: translate(-1px, 1px) rotate(5deg); } 75% { transform: translate(1px, -1px) rotate(-3deg); } }
.b88s { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 290px; }
.b88 { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 88px; height: 31px; flex: none; overflow: hidden; line-height: 0; text-decoration: none;
  background: #1f1238; color: #fbf7ff; border: 1px solid #ffd23f; box-shadow: inset 0 0 0 1px #2d1852, 2px 2px 0 rgba(0, 0, 0, 0.35); }
.b88 .logo { width: 16px; height: auto; flex: none; }
.b88-2 { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.b88-maeng { background: #2d1852; }
.b88-rss { background: #3a1d0e; border-color: #ffb03a; }
.b88-devlog { background: #10304a; border-color: #6fe3ff; }
.b88-happy { background: repeating-linear-gradient(-45deg, #1f1238 0 6px, #2d1852 6px 12px); }
a.b88:hover, a.b88:focus-visible { transform: translate(-1px, -1px); box-shadow: inset 0 0 0 1px #2d1852, 3px 3px 0 #ffd23f; }
.made-by .logo { width: 18px; }
.empty-state.lost .es-art { width: auto; height: auto; background: none; }
.empty-state.lost .logo { width: 72px; }

@media (max-width: 1100px) {
  .idle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-scale ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gacha-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .idle { grid-template-columns: minmax(0, 1fr); }
  .note { font-size: 22px; padding: 16px 18px 10px; }
  .mcards { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mcards::-webkit-scrollbar { display: none; }
  .mcard { scroll-snap-align: start; }
  .maeng-home { padding: 16px 14px; }
  .mc-scale ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-row { grid-template-columns: 44px minmax(0, 1fr); }
  .tier-row > .tier-l { font-size: 26px; }
  .tier-g { width: 86px; }
  .mc-item { grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 10px; padding: 10px; }
  .mc-item .mc.md { width: 44px; height: 50px; }
  .mc-item .mc.md b { font-size: 19px; }
  .mci-line { font-size: 21px; }
  .mci-score small { display: none; }
  .ins li { grid-template-columns: 62px minmax(0, 1fr); gap: 4px 10px; }
  .ins-bar { grid-column: 2; }
  .ins-bar.none { display: none; }
  .maeng-sec { padding: 16px 14px; }
  .mb-line { font-size: 24px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-side { align-items: flex-start; }
  .b88s { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .tk-run[aria-hidden] { display: none; }
  .gacha.spin .gacha-globe i, .cap, .bee-ico .logo, .empty-state.lost .logo, .now-k::before, .lucky-result.rar-ssr .rar-banner { animation: none; }
  .gacha-knob, .mcard-link, .tier-g, .brand .logo { transition: none; }
  .gcard:hover, .gcard:focus-within, .mcard-link:hover { transform: none; }
}
