/* 템플릿 공통 뼈대 — 동작에 딸린 CSS 만. 생김새는 한 줄도 없다.
 *
 * 여기에 있는 것: 무JS 완성본을 만드는 분기, 접근성 최소선(초점 테두리·44px 터치),
 * 가로 넘침을 막는 장치, 모션 끔 대비, 서랍·토스트의 기계 장치.
 * 여기에 **없어야 하는 것**: 색·활자·간격·배치·그림자·모서리. 그건 벌마다 달라야 한다
 * (원자료 프롬프트가 「섹션 순서·이미지 비율을 다른 벌에서 복제 금지」를 명시한다).
 *
 * 쓰는 법: 벌의 styles.css 맨 위에 이 내용을 붙이고, 그 아래에 그 벌의 디자인을 쓴다.
 * 아래 값 중 색이 필요한 두 곳(스크림·초점 테두리)만 벌의 색으로 바꿔도 된다.
 */

/* ── 기본 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* 한국어는 낱말 가운데서 끊으면 읽기 힘들다 — 낱말 단위로 넘긴다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }

/* 이미지 드래그가 포인터를 가로채지 않게 — JS 쪽 dragstart 차단과 한 쌍이다(§4-C 7) */
img { -webkit-user-drag: none; user-select: none; }

/* `.frame` 을 span 으로 두면 inline 이라 aspect-ratio 가 무시된다(§4 함정 5) */
.frame { display: block; }

/* ── 초점 ─────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: Canvas; color: CanvasText;
}
.skip-link:focus { left: 0; }

/* ── 터치 영역 ─────────────────────────────────────────────────────
   검사기가 화면 좌표로 ±22px 을 찍어 44px 을 확인한다. 눈에 보이는 점이 작아도
   **단추 자체를 44×44 로 두고 시각 요소는 ::after 로** 그리면 둘 다 만족한다. */
@media (max-width: 767px) {
  .site-header a, .site-header button,
  .drawer a, .drawer button,
  .dots button, .pager button, .tab {
    min-width: 44px; min-height: 44px;
  }
}

/* ── 가로 넘침 ─────────────────────────────────────────────────────
   `overflow-x:auto` 상자가 `position:static` 이면 넘친 표가 문서 스크롤 폭을 밀어
   320·390px 에서 페이지 전체가 가로로 밀린다(§4-C 9). `overflow:hidden` 을 얹어도 안 고쳐진다. */
.scroll-x { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }

/* 넘침을 자를 때는 hidden 이 아니라 clip 을 쓴다.
   hidden 은 스크롤 컨테이너를 만들어 조상에 있으면 animation-timeline: view() 가
   얼어붙는다 — 스크롤해도 진행이 0 에서 안 움직이는데 콘솔은 조용하다(§4-C 13). */
.clip { overflow: clip; }

/* ── 무JS 완성본 ───────────────────────────────────────────────────
   JS 가 없으면 접힌 것이 전부 펼쳐지고, 등장 효과는 처음부터 보인다.
   `html.js` 는 kit.js 첫 줄이 붙인다. */
.acc-item .acc-panel { display: block; }          /* 무JS 기본값: 펼침 */
.js .acc-item .acc-panel { display: none; }
.js .acc-item.open .acc-panel { display: block; }

.js [role="tabpanel"][hidden] { display: none; }
[role="tabpanel"][hidden] { display: block; }      /* 무JS: 모든 탭 내용을 이어서 보여 준다 */

.reveal { opacity: 1; transform: none; }           /* 무JS 기본값: 이미 보임 */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* JS 로만 동작하는 조작기는 무JS 에서 감춘다 — 「눌러도 반응 없는 단추」를 남기지 않는다.
   **방향에 주의**: `.js-only{display:none}` + `.js .js-only{display:revert}` 로 짜면
   revert 가 UA 기본값(대개 block)으로 되돌려, 그 요소가 원래 갖고 있던 display 나
   미디어쿼리의 `display:none` 을 덮어쓴다(모바일 전용 구매 Dock 이 데스크톱에도 떴다).
   숨기는 쪽에만 규칙을 걸어 요소 자신의 display 를 건드리지 않는다. */
html:not(.js) .js-only { display: none !important; }

/* `hidden` 속성은 `display:grid`·`flex` 에 진다 — 골격 클래스를 단 요소는 안 숨는다(§4-C 18).
   무JS 탭 규칙(위의 `[role="tabpanel"][hidden] { display:block }`)은 살려 두어야 하므로 :not 이 필요하다. */
:where([hidden]):not([role="tabpanel"]) { display: none !important; }

/* ── 모션 끔 ───────────────────────────────────────────────────────
   검사기가 reducedMotion 문맥을 따로 열어 본문이 실제로 보이는지 잰다.
   연출을 끄는 데 그치지 말고 **최종 상태로 고정**해야 한다. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 모바일 서랍 ───────────────────────────────────────────────────
   햄버거는 **모바일 전용**이다(§4-C 11). 데스크톱에 남기면 검사기가 눌러
   서랍이 열리고 그 뒤 클릭을 전부 삼킨다. */
.menu-btn { display: none; }
@media (max-width: 767px) { .menu-btn { display: inline-flex; } }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 60; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgb(0 0 0 / .45);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) { .drawer, .scrim { display: none; } }

/* ── 토스트 ───────────────────────────────────────────────────────
   `pointer-events:none` 이 없으면 덮개가 아래 단추의 클릭을 삼켜
   전폭 제출 단추가 안 눌린다(§4 함정 2). 지우지 마라. */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0;
  z-index: 80; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* ── 폼 ───────────────────────────────────────────────────────────
   동의 체크박스는 input 을 label **밖에** 두고 형제 선택자로 그린다.
   label 이 input 을 감싸면서 for 까지 걸면 두 번 토글돼 영영 안 켜진다(§4 함정 4). */
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree input:focus-visible + label .box { outline: 2px solid currentColor; outline-offset: 2px; }

.spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: kit-spin .7s linear infinite;
}
@keyframes kit-spin { to { rotate: 360deg; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── 구획 리듬 ─────────────────────────────────────────────────────
   구획마다 위아래 절반씩 나눠 가지면 이웃한 구획 사이 간격이 겹치지 않는다.
   `--section` 값은 벌마다 정하라 — 이 파일은 규칙만 준다. */
.section { padding-block: calc(var(--section, 96px) / 2); }
.section-lead { padding-top: var(--section, 96px); }
.section-last { padding-bottom: var(--section, 96px); }

/* ════════════════════════════════════════════════════════════════════
   픽셀선반 PIXEL SHELF — 생김새
   토큰은 00-디자인보드.png 에서 그대로 읽었다.
   NEON CYAN #00F0FF · NEON MAGENTA #FF2D9A · PURPLE #8B5CF6
   BG/SURFACE #0B0F14 · TEXT #E6F1FF · 활자 Pretendard
   ════════════════════════════════════════════════════════════════════ */

:root {
  --cyan: #00F0FF;
  --magenta: #FF2D9A;
  --purple: #8B5CF6;
  --bg: #0B0F14;
  --text: #E6F1FF;

  /* 배경에서 파생한 층 — 보드의 SURFACE 한 칸을 3단으로 나눴다 */
  --surface: #111823;
  --surface-2: #16202D;
  --line: rgba(230, 241, 255, .13);
  --line-strong: rgba(230, 241, 255, .26);
  --muted: #8CA1B8;
  --dim: #5F7387;

  /* 의미 색 — 보드에 없어 파생. 색만으로 상태를 말하지 않고 항상 글자를 붙인다 */
  --ok: #00F0FF;
  --warn: #FFB020;
  --err: #FF4D6D;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --section: 92px;
  --gut: clamp(18px, 4vw, 44px);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 화면 전체에 깔리는 아주 옅은 격자 — 진열장의 유리면을 흉내낸다.
   z-index 를 -1 로 두어 본문 뒤에 깐다. 여기서 0 을 쓰고 본문에 position:relative 를
   덧대면 kit.css 의 `.drawer{position:fixed}` 까지 덮여 서랍이 흐름 안으로 나와
   320px 에서 문서 폭이 밀린다(실제로 밟았다). */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 240, 255, .045) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(to bottom, rgba(0, 240, 255, .045) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(120% 70% at 78% -8%, rgba(255, 45, 154, .10), transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0, #000 42%, transparent 88%);
}

/* 스프라이트를 쓰는 인라인 svg 는 크기를 안 주면 UA 기본 300×150 으로 잡힌다.
   단추 하나가 346px 짜리가 되어 320px 에서 페이지 전체를 가로로 밀었다.
   아래 기본값을 깔고, 도해용 svg 는 뒤에서 100% 로 되돌린다. */
svg { width: 1.15em; height: 1.15em; }

h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: var(--cyan); }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { width: min(980px, 100%); margin-inline: auto; padding-inline: var(--gut); }

/* 라벨·수치는 모노 — 보드의 데이터 표기 목소리 */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(0, 240, 255, .55), transparent); }
.eyebrow.is-magenta { color: var(--magenta); }
.eyebrow.is-magenta::after { background: linear-gradient(to right, rgba(255, 45, 154, .55), transparent); }

.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 12px; }
.sec-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; font-size: 15px; }

/* ── 헤더 ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, .84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { border-bottom-color: var(--line-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.header-inner {
  width: min(1240px, 100%); margin-inline: auto; padding: 10px var(--gut);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  font-size: 21px; font-weight: 800; letter-spacing: -.03em; text-decoration: none;
  color: var(--cyan); text-shadow: 0 0 18px rgba(0, 240, 255, .45);
  white-space: nowrap; flex: none;
}
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 9px 12px; border-radius: var(--r-s); text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(230, 241, 255, .06); }
.nav a[aria-current] { color: var(--text); background: rgba(0, 240, 255, .1); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .35); }

.header-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-s);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: none;
  position: relative;
}
.icon-btn:hover { color: var(--cyan); background: rgba(0, 240, 255, .08); }
.icon-btn svg { width: 21px; height: 21px; }
.dot-badge {
  position: absolute; top: 6px; right: 6px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--magenta); color: #0B0F14;
  font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}
.header-cta {
  flex: none; padding: 10px 16px; border-radius: var(--r-s);
  background: var(--cyan); color: #06222A; text-decoration: none;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 0 22px rgba(0, 240, 255, .3);
}
.header-cta:hover { background: #6BF7FF; }

.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: none; color: var(--text); align-items: center; justify-content: center; cursor: pointer;
}
.menu-bar, .menu-bar::before, .menu-bar::after {
  display: block; width: 17px; height: 1.6px; background: currentColor; border-radius: 2px;
}
.menu-bar { position: relative; }
.menu-bar::before, .menu-bar::after { content: ""; position: absolute; left: 0; }
.menu-bar::before { top: -5.5px; }
.menu-bar::after { top: 5.5px; }

/* ── 서랍 ─────────────────────────────────────────────────────────── */
.drawer { background: #0D131B; border-left: 1px solid var(--line-strong); padding: 16px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head .brand { font-size: 19px; }
.drawer-close {
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-s);
  color: var(--text); padding: 10px 14px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.drawer-nav { display: grid; gap: 2px; padding: 12px 0; }
.drawer-nav a {
  display: flex; align-items: center; padding: 12px 10px; border-radius: var(--r-s);
  text-decoration: none; font-size: 16px; font-weight: 600; color: var(--text);
}
.drawer-nav a:hover { background: rgba(0, 240, 255, .1); }
.drawer-cta {
  display: flex; align-items: center; justify-content: center; margin-top: 6px;
  padding: 14px; border-radius: var(--r-s); background: var(--cyan); color: #06222A;
  text-decoration: none; font-weight: 700;
}
.drawer-tel { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 14px; }
.drawer-tel a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ── 버튼 ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-s); border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  cursor: pointer; background: none; color: var(--text); line-height: 1.2;
}
.btn-primary { background: var(--cyan); color: #06222A; box-shadow: 0 0 26px rgba(0, 240, 255, .28); }
.btn-primary:hover { background: #6BF7FF; }
.btn-buy { background: var(--magenta); color: #fff; box-shadow: 0 0 26px rgba(255, 45, 154, .3); }
.btn-buy:hover { background: #FF5FB2; }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--cyan); }
.btn-sm { padding: 10px 14px; font-size: 13.5px; }
.btn-full { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* ── 배지 ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; border: 1px solid transparent; white-space: nowrap;
}
.badge-new { background: var(--cyan); color: #06222A; }
.badge-pre { background: rgba(139, 92, 246, .18); color: #C4B1FF; border-color: rgba(139, 92, 246, .55); }
.badge-ltd { color: var(--magenta); border-color: var(--magenta); }
.badge-out { color: var(--dim); border-color: var(--line-strong); }
.badge-restock { color: var(--warn); border-color: rgba(255, 176, 32, .5); }
.badge-live { color: var(--cyan); border-color: rgba(0, 240, 255, .45); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ── 구획 ─────────────────────────────────────────────────────────── */
.section { position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* ── 히어로 ───────────────────────────────────────────────────────── */
.hero { padding-top: 44px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.06; letter-spacing: -.045em; }
.hero h1 .glow { color: var(--magenta); text-shadow: 0 0 34px rgba(255, 45, 154, .5); display: block; }
.hero-lead { margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.hero-shot {
  position: relative; border-radius: var(--r-l); border: 1px solid var(--line-strong);
  overflow: clip; background: #06090D;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 60px rgba(0, 240, 255, .06);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 15, 20, .55), transparent 45%);
}
.hero-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ── 대시보드 3분할 ───────────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: clip; }
.dash-cell { background: var(--surface); padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.dash-cell h2 { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.lvl { display: flex; align-items: center; gap: 14px; }
.lvl-mark {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px;
  color: var(--cyan); background: rgba(0, 240, 255, .1); box-shadow: 0 0 0 1px rgba(0, 240, 255, .45), 0 0 22px rgba(0, 240, 255, .22);
}
.lvl-name { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lvl-role { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.exp { height: 7px; border-radius: 999px; background: rgba(230, 241, 255, .09); overflow: clip; }
.exp span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--purple), var(--cyan)); }
.exp-num { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: right; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin-top: auto; }
.stat-row > div { background: var(--surface); padding-top: 14px; }
.stat-row dt { font-size: 12px; color: var(--dim); }
.stat-row dd { margin: 2px 0 0; font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

.shelf-fig { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.shelf-fig svg { width: 100%; height: auto; }
.dims { display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dims > div { display: flex; align-items: baseline; gap: 12px; }
.dims dt { width: 12px; color: var(--dim); }
.dims dd { margin: 0; }
.dims b { color: var(--text); font-weight: 700; }
.dims small { color: var(--dim); }

.drop-list { display: grid; gap: 0; }
.drop-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.drop-row:last-child { border-bottom: 0; }
.drop-pip { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--cyan); margin-inline: auto; }
.drop-row:nth-child(2) .drop-pip { border-color: var(--magenta); }
.drop-row:nth-child(3) .drop-pip { border-color: var(--purple); }
.drop-when { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.drop-what { font-size: 14px; font-weight: 600; }
.drop-what a { text-decoration: none; }
.drop-what a:hover { color: var(--cyan); }
.dday {
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 10px;
  border-radius: var(--r-s); border: 1px solid var(--line-strong); color: var(--text);
}
.cell-foot { margin-top: auto; padding-top: 8px; }
.cell-foot a { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cell-foot a:hover { color: var(--cyan); }

/* ── 가로 스크롤 갤러리 ───────────────────────────────────────────── */
.snap-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 202px; gap: 14px;
  scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-color: var(--line-strong) transparent;
}
.snap-row > * { scroll-snap-align: start; }

/* ── 상품 카드 ────────────────────────────────────────────────────── */
.pcard {
  container-type: inline-size;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: clip; transition: border-color .18s ease, transform .18s ease;
}
.pcard:hover { border-color: rgba(0, 240, 255, .4); transform: translateY(-2px); }
.pcard-shot { position: relative; display: block; background: #080C11; }
.pcard-shot img { display: block; width: 100%; height: 176px; object-fit: cover; }
.pcard-shot .badge { position: absolute; top: 9px; left: 9px; }
.pcard-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-series { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.pcard-name { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.pcard-name a { text-decoration: none; }
.pcard-name a:hover { color: var(--cyan); }
.pcard-spec { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pcard-price { font-family: var(--mono); font-size: 17px; font-weight: 700; margin-top: 6px; }
.pcard-price small { font-family: Pretendard, sans-serif; font-size: 11px; color: var(--dim); font-weight: 400; margin-left: 4px; }
.pcard-foot { margin-top: 10px; display: flex; gap: 6px; }
.pcard-foot .btn { flex: 1; }
@container (max-width: 190px) {
  .pcard-shot img { height: 148px; }
  .pcard-name { font-size: 14px; }
  .pcard-foot { flex-direction: column; }
}

.state-line { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; margin-top: 4px; }
.state-live { color: var(--cyan); }
.state-pre { color: #C4B1FF; }
.state-out { color: var(--dim); }
.state-restock { color: var(--warn); }

/* ── 예약 고지 ────────────────────────────────────────────────────── */
.notice {
  border: 1px solid rgba(255, 176, 32, .35); border-radius: var(--r-m);
  background: rgba(255, 176, 32, .06); padding: 20px 22px;
}
.notice h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; color: var(--warn); }
.notice h3 svg { width: 18px; height: 18px; }
.notice ul { margin-top: 12px; display: grid; gap: 8px; }
.notice li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--muted); }
.notice li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--warn); }
.notice li b { color: var(--text); font-weight: 700; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.info-card h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.info-card h3 svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.info-card p { color: var(--muted); font-size: 14.5px; }
.info-card .mono { display: block; margin-top: 10px; font-size: 12px; color: var(--dim); }

/* ── 스케일 칩 ────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: 13px; color: var(--muted); background: none; cursor: pointer;
}
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 240, 255, .08); }
.chip b { color: var(--text); font-weight: 700; }
.chip:hover b, .chip[aria-pressed="true"] b { color: var(--cyan); }

/* ── 탐색 면 ──────────────────────────────────────────────────────── */
.explore-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 0 10px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 34px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .box {
  width: 17px; height: 17px; border-radius: 4px; border: 1px solid var(--line-strong); flex: none;
  display: grid; place-items: center; transition: .15s;
}
.opt .box::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--purple); opacity: 0; }
.opt input:checked + .box { border-color: var(--purple); background: rgba(139, 92, 246, .16); }
.opt input:checked + .box::after { opacity: 1; }
.opt input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.opt span:last-child { font-size: 14px; color: var(--muted); }
.opt input:checked ~ span:last-child { color: var(--text); }

.searchbar { display: flex; gap: 8px; margin-bottom: 18px; }
/* input 의 기본 고유 폭(size=20)이 flex 줄의 min-content 를 384px 까지 밀어 올려
   320px 에서 페이지 전체가 가로로 밀렸다. min-width:0 이 그 바닥을 푼다. */
.searchbar .control { flex: 1; min-width: 0; }
.control {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: var(--r-s);
  border: 1px solid var(--line-strong); background: #0A0E14; color: var(--text);
  font-family: inherit; font-size: 15px; min-height: 46px;
}
.control::placeholder { color: var(--dim); }
.control:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
select.control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }

/* 시안 06 의 칩 줄 — 좁은 폭에서 긴 조건 목록을 먼저 만나지 않게 한다 */
.quickbar { display: none; }
.results { min-width: 0; }

.result-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.result-count b { color: var(--cyan); }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 16px; }
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 44px 20px;
  text-align: center; color: var(--muted);
}
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); font-family: var(--mono); font-size: 13px; }

.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.legend li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
.legend p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ── 구성기 ───────────────────────────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.panel > h2, .panel > h3 { font-size: 16px; margin-bottom: 14px; }
.panel-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }

.stage { position: relative; border-radius: var(--r-m); overflow: clip; border: 1px solid var(--line); background: #06090D; }
.stage img { display: block; width: 100%; height: auto; }
.stage-cap { position: absolute; left: 12px; top: 12px; }

.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.slot {
  border: 1px dashed var(--line-strong); border-radius: var(--r-s); padding: 12px;
  min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
}
.slot.filled { border-style: solid; border-color: rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .05); }
.slot.over { border-style: solid; border-color: var(--err); background: rgba(255, 77, 109, .07); }
.slot-no { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.slot-name { font-size: 13.5px; font-weight: 600; }
.slot-msg { font-family: var(--mono); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.slot.filled .slot-msg { color: var(--cyan); }
.slot.over .slot-msg { color: var(--err); }
.slot-empty { font-size: 13px; color: var(--dim); }

.pick { display: grid; gap: 8px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.pick-item {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px; background: #0C1219;
}
.pick-item.on { border-color: rgba(0, 240, 255, .5); background: rgba(0, 240, 255, .06); }
.pick-item.bad { border-color: rgba(255, 77, 109, .5); }
.pick-item img { display: block; width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.pick-name { font-size: 14px; font-weight: 600; }
.pick-spec { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pick-fit { font-family: var(--mono); font-size: 11px; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.fit-ok { color: var(--cyan); }
.fit-no { color: var(--err); }
.pick-btn { width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: none; color: var(--text); font-family: var(--mono); font-size: 20px; cursor: pointer; }
.pick-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.summary { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.summary-row b { font-family: var(--mono); font-size: 16px; color: var(--text); }
.summary-total b { font-size: 22px; color: var(--cyan); }
.form-msg { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 10px 12px; border-radius: var(--r-s); }
.form-msg svg { width: 16px; height: 16px; flex: none; }
.msg-err { color: var(--err); background: rgba(255, 77, 109, .1); border: 1px solid rgba(255, 77, 109, .35); }
.msg-ok { color: var(--cyan); background: rgba(0, 240, 255, .08); border: 1px solid rgba(0, 240, 255, .3); }

/* ── 표 ───────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; min-width: 620px; }
.tbl th, .tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: middle; }
.tbl thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; background: var(--surface-2); }
.tbl tbody th { font-size: 13px; color: var(--muted); font-weight: 600; width: 118px; background: rgba(255, 255, 255, .015); }
.tbl td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl .hi { color: var(--cyan); }
.cmp-shot { display: block; width: 100%; max-width: 118px; height: 128px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); background: #080C11; }
.cmp-head { display: grid; gap: 8px; }
.cmp-head { text-transform: none; letter-spacing: normal; }
.cmp-title { font-size: 15px; font-weight: 700; font-family: Pretendard, sans-serif; }
.cmp-maker { font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: normal; }

/* ── 아코디언 ─────────────────────────────────────────────────────── */
.acc { border: 1px solid var(--line); border-radius: var(--r-m); overflow: clip; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; background: none; border: 0; color: var(--text);
  font-family: inherit; font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; min-height: 56px;
}
.acc-trigger:hover { color: var(--cyan); }
.acc-trigger .sign { width: 20px; height: 20px; flex: none; position: relative; }
.acc-trigger .sign::before, .acc-trigger .sign::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .2s ease;
}
.acc-trigger .sign::after { transform: rotate(90deg); }
.acc-item.open .acc-trigger .sign::after { transform: rotate(0); }
.acc-panel { padding: 0 20px 20px; color: var(--muted); font-size: 14.5px; }
.acc-panel p + p, .acc-panel ul { margin-top: 10px; }
.acc-panel li { position: relative; padding-left: 15px; margin-top: 6px; }
.acc-panel li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--cyan); }
.acc-panel b { color: var(--text); }

/* ── 스케일 도해 ──────────────────────────────────────────────────── */
.scale-fig { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 22px; overflow: clip; }
.scale-fig svg { width: 100%; height: auto; display: block; }

/* ── 인벤토리 ─────────────────────────────────────────────────────── */
.inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: clip; }
.inv-stats > div { background: var(--surface); padding: 18px 20px; }
.inv-stats dt { font-size: 12.5px; color: var(--dim); }
.inv-stats dd { margin: 4px 0 0; font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.inv-stats dd small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.tablist { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; position: relative; }
.tab {
  padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.inv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: clip; }
.inv-card img { display: block; width: 100%; height: 150px; object-fit: cover; background: #080C11; }
.inv-card .b { padding: 11px 13px 14px; }
.inv-name { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.inv-meta { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 3px; }
.inv-where { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.inv-where svg { width: 13px; height: 13px; color: var(--purple); flex: none; }

.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.status svg { width: 14px; height: 14px; flex: none; }
.s-ok { color: var(--cyan); }
.s-pay { color: var(--purple); }
.s-late { color: var(--warn); }
.s-return { color: var(--err); }

/* ── 폼 ───────────────────────────────────────────────────────────── */
.inquiry-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field .err, .agree .err { display: none; color: var(--err); font-size: 12.5px; }
.field.invalid .control { border-color: var(--err); }
.field.invalid .err, .agree.invalid .err { display: block; }
.counter { font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-align: right; }
.agree { position: relative; padding-top: 4px; }
.agree label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; min-height: 30px; }
.agree .box { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line-strong); flex: none; margin-top: 2px; display: grid; place-items: center; }
.agree .box::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--cyan); opacity: 0; }
.agree input:checked + label .box { border-color: var(--cyan); }
.agree input:checked + label .box::after { opacity: 1; }
.form-submit { width: 100%; padding: 15px; border: 0; border-radius: var(--r-s); background: var(--cyan); color: #06222A; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; min-height: 52px; }
.form-submit:hover { background: #6BF7FF; }
.form-note { font-size: 12.5px; color: var(--dim); }
.form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.pref { display: grid; gap: 4px; }
.pref .opt { min-height: 44px; }

/* ── 장바구니 서랍 ────────────────────────────────────────────────── */
.cart-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cart-scrim.open { opacity: 1; pointer-events: auto; }
.cart-panel {
  position: fixed; inset: 0 0 0 auto; width: min(92vw, 400px); z-index: 65;
  background: #0D131B; border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 17px; }
.cart-steps { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.cart-steps li { display: flex; align-items: center; gap: 6px; }
.cart-steps li + li::before { content: "—"; color: var(--line-strong); margin-right: 6px; }
.cart-steps .n { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 10px; }
.cart-steps .on { color: var(--cyan); }
.cart-steps .on .n { border-color: var(--cyan); background: rgba(0, 240, 255, .12); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; background: #080C11; }
.cart-name { font-size: 14px; font-weight: 700; }
.cart-sub { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 2px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-s); }
.qty button { width: 40px; height: 40px; background: none; border: 0; color: var(--text); font-family: var(--mono); font-size: 16px; cursor: pointer; }
.qty button:hover { color: var(--cyan); }
.qty span { min-width: 30px; text-align: center; font-family: var(--mono); font-size: 14px; }
.cart-price { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 12px; }
.coupon { display: flex; gap: 8px; }
.coupon .control { min-height: 44px; padding: 10px 12px; font-size: 14px; }
.cart-sum { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.cart-sum div { display: flex; justify-content: space-between; }
.cart-sum .tot { color: var(--text); font-size: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.cart-sum .tot b { font-family: var(--mono); font-size: 20px; color: var(--cyan); }

/* ── 모바일 하단 탭바 ─────────────────────────────────────────────── */
.tabbar { display: none; }
.buy-dock { display: none; }

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: #080C11; margin-top: 0; }
.footer-inner { width: min(1240px, 100%); margin-inline: auto; padding: 46px var(--gut) 40px; display: grid; gap: 18px; }
.footer-brand { font-size: 20px; font-weight: 800; color: var(--cyan); letter-spacing: -.03em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--cyan); }
.footer-biz { font-style: normal; font-size: 13px; color: var(--dim); line-height: 1.9; }
.footer-biz a { color: var(--muted); text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--cyan); }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ── 토스트 ───────────────────────────────────────────────────────── */
.toast { max-width: min(92vw, 460px); }
.toast-msg {
  display: block; padding: 13px 18px; border-radius: var(--r-s);
  background: #16202D; border: 1px solid rgba(0, 240, 255, .4); color: var(--text);
  font-size: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); text-align: center;
}

/* ── 시그니처 연출: 드롭 레일 ─────────────────────────────────────
   스크롤에 맞춰 세로 레일이 차오른다. animation-timeline 을 못 쓰는 곳에서는
   레일이 처음부터 가득 찬 상태로 보인다 — 정보가 사라지지 않는다. */
.rail { position: relative; padding-left: 30px; }
.rail::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.rail-fill {
  position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), var(--magenta));
  transform-origin: top center; scale: 1 1;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rail-fill { animation: rail-grow linear both; animation-timeline: view(); animation-range: entry 30% cover 65%; }
    @keyframes rail-grow { from { scale: 1 0; } to { scale: 1 1; } }
  }
}
.rail-item { position: relative; padding: 0 0 26px; }
.rail-item:last-child { padding-bottom: 0; }
.rail-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--cyan);
}
.rail-item:nth-child(2)::before { box-shadow: 0 0 0 2px var(--purple); }
.rail-item:nth-child(3)::before { box-shadow: 0 0 0 2px var(--magenta); }
.rail-when { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.rail-title { font-size: 16px; font-weight: 700; margin-top: 2px; }
.rail-desc { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── 반응형 ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .nav a { padding: 9px 9px; font-size: 14px; }
}
@media (max-width: 1024px) {
  :root { --section: 76px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .dash { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .filters { position: static; order: 2; }
  .results { order: 1; }
  .quickbar {
    display: flex; gap: 8px; overflow-x: auto; position: relative;
    padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch;
  }
  .quickbar .chip { flex: none; }
  .icon-btn.hide-narrow { display: none; }
}
@media (max-width: 767px) {
  :root { --section: 60px; --gut: 18px; }
  .nav { display: none; }
  .header-inner { padding: 8px var(--gut); gap: 8px; }
  .header-tools { margin-left: auto; }
  .brand { font-size: 19px; }
  .hero { padding-top: 26px; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .hero-lead { max-width: none; }
  .hero-cta .btn { flex: 1; }
  .info-grid { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .inv-grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 10px; }
  .form-cols { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr; }
  .pcard-shot img { height: 150px; }
  .stat-row dd { font-size: 22px; }
  .toast { bottom: 84px; }

  /* 시안 06 의 하단 탭바 — 모바일에서 「한 화면 한 과업」을 유지하는 길잡이 */
  body { padding-bottom: 68px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(10, 14, 20, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1; min-width: 0; min-height: 60px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--dim); font-size: 10.5px; font-weight: 600;
  }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a[aria-current] { color: var(--cyan); }

  /* 구매 Dock — 탭바 바로 위에 얹는다 */
  .buy-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 68px; z-index: 44;
    align-items: center; gap: 12px; padding: 10px var(--gut);
    background: rgba(13, 19, 27, .97); border-top: 1px solid var(--line-strong);
  }
  .buy-dock .d-sum { flex: 1; min-width: 0; }
  .buy-dock .d-label { font-size: 11px; color: var(--dim); }
  .buy-dock .d-price { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--cyan); }
  .buy-dock .btn { flex: none; }
  body.has-dock { padding-bottom: 136px; }
}
@media (max-width: 520px) {
  .cmp-shot { height: 96px; }
  .tbl th, .tbl td { padding: 11px 10px; font-size: 13px; }
  .snap-row { grid-auto-columns: 168px; }
}

/* 좁은 폭에서 누르는 면을 44px 로 — 눈에 보이는 크기는 그대로 둔다 */
@media (max-width: 767px) {
  .btn, .form-submit, .chip, .tab, .pick-btn, .qty button, .icon-btn, .acc-trigger,
  .drawer-close, .footer-legal a, .cart-close { min-height: 44px; }
  .icon-btn { width: 44px; }
  .btn-sm { padding: 12px 14px; }
}
