/* =========================================================
   One Dollar Drive — Garage
   ========================================================= */
:root {
  --bg: #050505;
  --surface: #0e0e10;
  --surface-2: #17171a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-dim: #a3a6ab;
  --accent: #ffcc00;
  --red: #e2232a;      /* 오류, 신고 배지 */
  --green: #3ddc84;    /* 완료, 승인 */
  --header-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 18px rgba(255, 255, 255, 0.28), 0 0 42px rgba(255, 255, 255, 0.12);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
          "Hiragino Sans", "Yu Gothic", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* hidden 속성이 버튼 등의 display 설정에 덮이지 않게 */
a { color: inherit; }
button { font: inherit; color: inherit; }

/* 사이트 양옆 어두운 그림자 */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  width: clamp(24px, 12vw, 220px);
  pointer-events: none;
  z-index: 50;
}
body::before { left: 0;  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0)); }
body::after  { right: 0; background: linear-gradient(to left,  rgba(0,0,0,0.85), rgba(0,0,0,0)); }

.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-link {
  position: absolute; left: 12px; top: -48px; z-index: 300;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 공통: 은은한 흰색 테두리 글로우 ---------- */
.glow {
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color .35s var(--ease), box-shadow .45s var(--ease),
              background-color .35s var(--ease), transform .35s var(--ease);
}
.glow:hover, .glow:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--glow);
  outline: none;
}

/* 기본 버튼 = 흰 버튼. 커서가 닿으면 흰 글로우 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  background: #fff; color: #000; border: 1px solid #fff;
  transition: border-color .35s var(--ease), box-shadow .45s var(--ease),
              background-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover, .btn:focus-visible { box-shadow: var(--glow); outline: none; }
.btn:disabled { background: var(--surface-2); border-color: var(--line); color: var(--text-dim); cursor: not-allowed; box-shadow: none; }
.btn-primary { background: #fff; color: #000; border-color: #fff; }
.btn-primary:hover { background: #f2f2f2; }
.btn-ghost { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.14); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: rgba(255,255,255,0.75); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.85rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header — 투명 바탕, 흰 글자 (차고 사진 위에 떠 있음)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
  transition: background-color .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
}
/* 차고 아래로 스크롤했을 때 / 모바일 메뉴가 열렸을 때만 어두운 배경 */
.site-header.is-solid, .site-header.menu-open {
  background: rgba(0,0,0,.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: #fff; color: #000; font-weight: 800; font-size: 0.85rem; letter-spacing: -0.03em;
}
.logo-text { font-weight: 800; letter-spacing: 0.16em; font-size: 0.9rem; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; text-decoration: none; color: #fff;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em;
  opacity: .82; transition: opacity .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a.is-soon { opacity: .5; }
.nav-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: .08em;
  padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #000;
}
.nav-tbd { font-size: 0.62rem; letter-spacing: .08em; color: var(--text-dim); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer; text-decoration: none;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .06em;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #fff; color: #000; font-size: 0.65rem; font-weight: 800;
  display: grid; place-items: center;
}

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 999px;
  background: transparent; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { width: 16px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #000; border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease);
    z-index: 99;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); }
  .main-nav ul { flex-direction: column; padding: 8px clamp(16px, 3vw, 40px) 20px; gap: 0; }
  .main-nav a { width: 100%; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { left: 4px; right: auto; width: 40px; bottom: -1px; }
}
@media (max-width: 420px) {
  .logo-text { font-size: 0.78rem; letter-spacing: 0.12em; }
  .header-actions { gap: 4px; }
  .lang-wrap { display: none; } /* 좁은 화면: 언어는 햄버거 메뉴 안에서 고름 */
}

/* ---------- 언어 메뉴 ---------- */
.lang-wrap { position: relative; }
.lang-menu, .acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  min-width: 168px; padding: 6px; display: grid;
  background: rgba(8, 8, 10, .96); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-shadow: none;
  animation: menuIn .25s var(--ease);
}
.lang-menu[hidden], .acct-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; translate: 0 -6px; } }
.lang-menu button, .acct-menu a, .acct-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: #fff;
  font: inherit; font-size: 0.88rem; text-align: left; text-decoration: none; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible,
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible {
  background: rgba(255,255,255,.08); outline: none;
}
.lang-menu button[aria-current="true"]::after { content: "✓"; font-size: .8rem; opacity: .8; }

/* 모바일 메뉴 안의 언어 목록 (넓은 화면에서는 숨김) */
.nav-lang { display: none; }
@media (max-width: 960px) {
  .nav-lang {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 4px clamp(16px, 3vw, 40px) 20px;
  }
  .nav-lang button {
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.18); font-size: 0.8rem;
  }
  .nav-lang button[aria-current="true"] { background: #fff; color: #000; border-color: #fff; }
}

/* ---------- 계정 (헤더) ---------- */
#accountArea { min-width: 40px; display: flex; justify-content: center; }
.acct { position: relative; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 4px; border-radius: 999px;
  background: rgba(0,0,0,.25); color: #fff; cursor: pointer;
  font-size: 0.82rem; font-weight: 600;
}
.acct-btn > svg:not(.av) { width: 20px; height: 20px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { min-width: 230px; }
.acct-meta { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .acct-btn { padding: 0 4px; }
  .acct-name { display: none; }
}

/* =========================================================
   Garage — 테마 사진 + 차량 윤곽선
   ========================================================= */
.garage { position: relative; background: #000; isolation: isolate; }
.garage-scroll { overflow: hidden; }
.stage {
  position: relative;
  /* 화면 높이에 맞춰 사진 전체가 보이도록 (사진 비율 1672:941) */
  width: min(100%, calc(100svh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  margin: 0 auto;
  overflow: hidden;
}
/* 사진 + 윤곽선 + 스티커를 함께 움직이는 층 (마우스 패럴랙스) */
.stage-inner { position: absolute; inset: 0; will-change: transform; }

/* ---------- 배경 사진 (테마 교체 시 크로스페이드) ---------- */
.photos { position: absolute; inset: 0; animation: photoIn 1.6s var(--ease) both; }
@keyframes photoIn {
  from { opacity: 0; scale: 1.04; filter: brightness(0.25); }
  to   { opacity: 1; scale: 1;    filter: brightness(1); }
}
.garage-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease);
}
.garage-photo.is-current { opacity: 1; }

/* 사진 가장자리를 검정으로 자연스럽게 */
.photo-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, #000 0%, rgba(0,0,0,0) 9%, rgba(0,0,0,0) 91%, #000 100%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 74%, #000 100%);
}
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 86%, rgba(0,0,0,.7) 100%);
}

/* ---------- 차량 윤곽선 (SVG) ---------- */
.outlines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
  animation: layerIn 1s var(--ease) 1.2s both;
}
@keyframes layerIn { from { opacity: 0; } to { opacity: 1; } }

.car-shape { outline: none; }
.shape-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.shape-line, .shape-glow, .shape-flow {
  fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round;
  pointer-events: none; opacity: 0;
  transition: opacity .5s var(--ease);
}
.shape-line { stroke-width: 2.4; }
.shape-glow { stroke-width: 12; }
.shape-flow { stroke-width: 3.5; stroke-dasharray: 140 860; }
/* 주변을 살짝 어둡게 (차 모양만 밝게 남김) */
.shape-dim { fill: rgba(0,0,0,.42); pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }

/* 커서가 닿으면: 차 윤곽을 따라 흰 빛이 계속 은은하게 숨쉬고, 빛 한 줄기가 테두리를 따라 돎 */
.car-shape:hover .shape-line, .car-shape:focus-visible .shape-line, .car-shape.is-active .shape-line { opacity: .95; }
.car-shape:hover .shape-glow, .car-shape:focus-visible .shape-glow, .car-shape.is-active .shape-glow {
  opacity: .6; animation: breathe 2.4s ease-in-out infinite;
}
.car-shape:hover .shape-flow, .car-shape:focus-visible .shape-flow, .car-shape.is-active .shape-flow {
  opacity: 1; animation: flow 3.2s linear infinite;
}
.car-shape:hover .shape-dim, .car-shape:focus-visible .shape-dim, .car-shape.is-active .shape-dim { opacity: 1; }
.outlines.has-active .car-shape:not(.is-active) .shape-dim { opacity: 0; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes flow { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* ---------- 점 · 이름표 · 스티커 층 ---------- */
.hotspots { position: absolute; inset: 0; pointer-events: none; animation: layerIn 1s var(--ease) 1.2s both; }

/* 차량 위 반짝이는 점: "눌러보세요" 표시 */
.hotspot-pin {
  position: absolute; width: 9px; height: 9px; translate: -50% -50%;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 2px #fff;
  opacity: .95;
  transition: opacity .35s var(--ease), scale .35s var(--ease);
}
.hotspot-pin::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  animation: ping 2.4s var(--ease) infinite;
  animation-delay: inherit;
}
@keyframes ping { 0% { scale: .3; opacity: 1; } 80%, 100% { scale: 1.6; opacity: 0; } }
.hotspot-pin.is-hidden { opacity: 0; scale: .4; }

.hotspot-label {
  position: absolute; translate: -50% -150%;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.hotspot-label.is-show { opacity: 1; transform: none; }
.hotspots.has-active .hotspot-label { opacity: 0; }

/* 터치 기기: hover가 없으므로 윤곽선과 이름을 미리 흐리게 보여줌 */
@media (hover: none) {
  .shape-line { opacity: .35; }
  .hotspot-label { opacity: .9; transform: none; }
  .sticker-hint { display: none; }
}

/* ---------- 블랙 스티커 (차량 제원) ---------- */
.sticker {
  position: absolute; z-index: 5; pointer-events: auto;
  width: 208px;
  translate: -50% -50%;
  padding: 12px 14px 14px;
  border-radius: 12px;
  background: rgba(6, 6, 7, 0.94);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 34px rgba(0,0,0,.65), 0 0 18px rgba(255,255,255,.08);
  color: #fff; text-align: left; font-size: 12px; line-height: 1.4;
  opacity: 0; transform: scale(.6) rotate(-8deg);
  transition: opacity .2s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.sticker.is-open { opacity: 1; transform: scale(1) rotate(-2deg); }
.sticker::after { /* 스티커 모서리가 살짝 들린 느낌 */
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0) 50%, #2a2a2d 50%);
  border-radius: 0 0 12px 0;
}
.sticker-head { display: flex; align-items: center; justify-content: space-between; }
.sticker-brand { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #9a9da2; }
.sticker-close {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  background: transparent; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .3s, box-shadow .3s;
}
.sticker-close:hover, .sticker-close:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,.4); }
.sticker-model { margin: 2px 0 8px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.sticker-stats { margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sticker-stats div { padding: 6px 4px; border-radius: 8px; background: rgba(255,255,255,.06); text-align: center; }
.sticker-stats dt { font-size: 9.5px; color: #9a9da2; }
.sticker-stats dd { margin: 1px 0 0; font-size: 15px; font-weight: 800; }
.sticker-stats dd small { margin-left: 1px; font-size: 9px; font-weight: 500; color: #9a9da2; }
.sticker-rows { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.sticker-rows dt { color: #9a9da2; }
.sticker-rows dd { margin: 0; }
.sticker-hint { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; color: #6f7278; }

/* ---------- 아래쪽 UI: 캡션 + 테마 선택 (왼쪽) / 차량 선택 (오른쪽) ---------- */
.garage-ui {
  position: absolute; z-index: 6;
  left: clamp(20px, 5vw, 72px); right: clamp(20px, 5vw, 72px); bottom: clamp(16px, 4vh, 40px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.garage-ui > * { pointer-events: auto; }
.garage-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.garage-caption {
  max-width: 460px; word-break: keep-all;
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
  animation: fadeUp 1s var(--ease) .8s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em; color: #c9ccd1; }
.garage-caption h1 { margin: 0 0 8px; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.hint { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #c9ccd1; }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: pulse 2s ease-in-out infinite; }
.hint-swipe { display: none; }
@keyframes pulse { 50% { opacity: .25; } }

/* 테마 선택 */
.theme-picker { display: flex; flex-wrap: wrap; gap: 6px; animation: fadeUp 1s var(--ease) 1.1s both; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px 0 6px; border-radius: 999px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; cursor: pointer; white-space: nowrap;
  font-size: 0.74rem; font-weight: 600; letter-spacing: .04em;
}
.theme-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.theme-btn[aria-checked="true"] { border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.14); }
.theme-btn[aria-checked="true"] .theme-swatch { box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; }

/* 차량 선택 */
.car-switch { display: flex; gap: 8px; flex-shrink: 0; animation: fadeUp 1s var(--ease) 1s both; }
.switch-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; cursor: pointer; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; letter-spacing: .04em;
}
.switch-no { font-size: 0.68rem; color: var(--text-dim); letter-spacing: .1em; transition: color .3s; }
.switch-btn[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.switch-btn[aria-pressed="true"] .switch-no { color: #555; }

/* 중간 폭: 버튼을 조금 줄임 */
@media (min-width: 721px) and (max-width: 1180px) {
  .switch-no { display: none; }
  .switch-btn { padding: 0 14px; height: 36px; font-size: 0.76rem; }
  .garage-caption h1 { font-size: 1.15rem; }
  .hint { display: none; }
}

/* ---------- 모바일: 세로로 쌓고, 사진은 좌우로 밀어서 둘러보기 ---------- */
@media (max-width: 720px) {
  .garage { display: flex; flex-direction: column; padding-top: var(--header-h); }
  .garage-ui, .garage-left { display: contents; }
  .garage-caption { order: 0; max-width: none; text-align: center; padding: 18px 20px 14px; text-shadow: none; }
  .garage-caption h1 { font-size: 1.25rem; }
  .hint { justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
  .hint-swipe { display: inline; }
  .garage-scroll {
    order: 1;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .garage-scroll::-webkit-scrollbar { display: none; }
  .stage { width: auto; height: min(60svh, 460px); }
  .photo-fade { background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, #000 100%); }
  .vignette { display: none; }
  .sticker { width: 196px; }
  .car-switch { order: 2; justify-content: center; gap: 6px; padding: 14px 16px 4px; }
  .switch-btn { height: 36px; padding: 0 12px; font-size: 0.74rem; letter-spacing: 0; }
  .switch-no { display: none; }
  .theme-picker {
    order: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding: 10px 16px 4px; justify-content: flex-start;
  }
  .theme-picker::-webkit-scrollbar { display: none; }
  .theme-btn { flex-shrink: 0; }
}

/* =========================================================
   How it works
   ========================================================= */
.how {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.section-title { margin: 0 0 48px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.section-title em { font-style: normal; color: var(--accent); }
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left;
}
.how-steps li {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .35s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease);
}
.how-steps li:hover { border-color: rgba(255,255,255,.6); box-shadow: var(--glow); transform: translateY(-3px); }
.how .eyebrow { color: var(--text-dim); margin-bottom: 12px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-no { font-size: 0.8rem; font-weight: 700; letter-spacing: .2em; color: var(--text-dim); }
.step-icon {
  width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
  transition: filter .4s var(--ease);
}
.how-steps li:hover .step-icon { filter: drop-shadow(0 0 6px rgba(255,255,255,.7)); }
.how-steps h3 { margin: 18px 0 6px; font-size: 1.2rem; }

/* 스크롤 등장 애니메이션 (JS가 켜져 있을 때만) */
.js .reveal {
  opacity: 0; translate: 0 24px;
  transition: opacity .8s var(--ease), translate .9s var(--ease),
              border-color .35s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s), calc(var(--i, 0) * 0.1s), 0s, 0s, 0s;
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.how-steps p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.how-cta { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }

/* =========================================================
   메인: 커뮤니티 최근 게시물 미리보기
   ========================================================= */
.cm-preview {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) clamp(64px, 10vw, 120px);
}
.cm-preview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cm-preview-head .eyebrow { color: var(--text-dim); margin-bottom: 12px; }
.cm-preview-head .section-title { margin: 0; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cmp-tile, .cmp-skel {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
}
.cmp-tile { text-decoration: none; color: #fff; }
.cmp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s var(--ease); }
.cmp-tile:hover img, .cmp-tile:focus-visible img { transform: scale(1.05); filter: brightness(1.08); }
.cmp-tile:hover, .cmp-tile:focus-visible { transform: translateY(-3px); }
.cmp-cap {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 8px; padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.cmp-plate {
  justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #111; background: linear-gradient(#fafafa, #dedede); border: 2px solid #111; outline: 1px solid #555;
  border-radius: 5px; padding: 2px 8px;
}
.cmp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; }
.cmp-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.cmp-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-revs { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cmp-revs svg { width: 16px; height: 16px; }
.cmp-skel { border: 1px solid var(--line); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: skel 1.6s linear infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.cmp-empty {
  grid-column: 1 / -1; display: grid; place-items: center; min-height: 180px; padding: 24px;
  border: 1px dashed rgba(255,255,255,.18); border-radius: var(--radius); color: var(--text-dim); text-align: center;
}
.cmp-empty p { margin: 0; }
@media (max-width: 760px) {
  .cm-preview-head { flex-direction: column; align-items: flex-start; }
  .cmp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cmp-cap { padding: 28px 10px 10px; }
  .cmp-who svg { display: none; }
}

/* =========================================================
   공통 부품 — 계정·커뮤니티·관리자 화면 (모달, 폼, 알림, 토스트)
   ========================================================= */
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.page-main { padding-top: calc(var(--header-h) + 32px); padding-bottom: 64px; min-height: 70vh; }
.muted { color: var(--text-dim); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.mono { font-variant-numeric: tabular-nums; }
.av { display: block; flex: none; }
.link-btn { background: none; border: 0; color: var(--text-dim); cursor: pointer; font: inherit; font-size: .85rem; padding: .4rem 0; }
.link-btn:hover, .link-btn:focus-visible { color: #fff; outline: none; text-decoration: underline; text-underline-offset: 3px; }

/* 폼 */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea, .stack > input, .stack textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .85rem; font: inherit;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus, .stack > input:focus, .stack textarea:focus {
  outline: none; border-color: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 14px rgba(255,255,255,.12);
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin-bottom: .8rem; }
.check input { margin-top: .3rem; accent-color: #fff; }
.notice { border-radius: 10px; padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1rem; }
.notice.ok { background: rgba(61, 220, 132, .1); color: var(--green); }
.notice.err { background: rgba(226, 35, 42, .12); color: #ff8a8e; }
.notice.info { background: rgba(255, 204, 0, .08); color: var(--accent); }

/* 모달 */
.no-scroll { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.8rem;
  background: var(--surface); border: 1px solid rgba(255,255,255,.14); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 30px rgba(255,255,255,.05);
  animation: pop .3s var(--ease);
}
.modal-sm { width: min(440px, 100%); }
.modal-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 .3rem; }
.modal-x { position: absolute; top: .6rem; right: .7rem; z-index: 2; background: none; border: 0; color: var(--text-dim); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-x:hover, .modal-x:focus-visible { color: #fff; outline: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* 로그인 · 프로필 모달 */
.stack { display: grid; gap: .8rem; margin-top: 1rem; }
.btn-google { background: #fff; border-color: #fff; color: #1f1f1f; margin-top: 1.2rem; width: 100%; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--text-dim); font-size: .8rem; margin: 1rem 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dob { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: .5rem; }
.avatar-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.avatar-pick label { display: grid; place-items: center; cursor: pointer; }
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick span { border-radius: 50%; padding: 3px; border: 2px solid transparent; transition: transform .2s var(--ease), border-color .2s, box-shadow .3s; }
.avatar-pick label:hover span { box-shadow: 0 0 14px rgba(255,255,255,.25); }
.avatar-pick input:checked + span { border-color: #fff; transform: scale(1.08); box-shadow: 0 0 16px rgba(255,255,255,.35); }
.avatar-pick input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* 토스트 알림 */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 210;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #000; font-weight: 700; padding: .7rem 1.2rem; border-radius: 999px;
  box-shadow: var(--glow);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: #000; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 40px) 48px;
  color: var(--text-dim); font-size: 0.82rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .16em; font-size: 0.85rem; }
.footer-brand .logo-mark { width: 26px; height: 26px; font-size: .7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 20px 0 14px; }
.footer-links a { color: #fff; text-decoration: none; opacity: .8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.biz-info { font-style: normal; line-height: 1.8; }
.copyright { margin: 14px 0 0; }

/* =========================================================
   모션 줄이기
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
