/* MOMEN 좌석 화면 공통 — 토큰, 캔버스, 버튼, 시트, 설정 컨트롤 */
:root {
  /* Charcoal (oklch 258°, 채도 ≤ .005) */
  --c-950: #090A0C; --c-900: #121314; --c-850: #1A1C1E; --c-800: #242528; --c-700: #36383B;
  --c-600: #515355; --c-500: #707274; --c-400: #919295; --c-300: #B3B4B7; --c-200: #D3D4D6; --c-50: #F4F5F6;
  /* Amber — 빛과 표시에만 */
  --a-200: #F8D6B2; --a-300: #EDBF91; --a-400: #E1A974; --a-500: #CE935E; --a-700: #8E603E;

  --text-1: var(--c-50); --text-2: var(--c-300); --text-3: var(--c-400);
  --glass: rgba(244, 245, 246, .06); --glass-strong: rgba(244, 245, 246, .1); --hairline: rgba(244, 245, 246, .09);

  /* 타입 — Pretendard. 크게 쓸수록 자간을 좁히고 행간을 줄인다 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --t-display: 700 120px/1 var(--font);    /* ls -0.045em */
  --t-hero: 600 72px/1.18 var(--font);     /* ls -0.035em */
  --t-title: 600 34px/1.24 var(--font);    /* ls -0.028em */
  --t-card: 600 24px/1.3 var(--font);      /* ls -0.022em */
  --t-body: 400 17px/1.55 var(--font);     /* ls -0.012em */
  --t-small: 500 16px/1.45 var(--font);    /* ls -0.008em */
  --t-caption: 500 15px/1.4 var(--font);
  --t-label: 600 13px/1.2 var(--font);     /* ls +0.09em, 대문자 라틴 */

  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #000; color: var(--text-1); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; display: grid; place-items: center; }
button, a { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: var(--hair, 1px) solid rgba(244, 245, 246, .55); outline-offset: 2px; }

/* 선택 상태 — 화면 배율과 상관없이 실제 1픽셀 앰버 테두리. 채움·그라디언트 없음 (--hair는 proto.js가 배율에 맞춰 넣는다) */
.stage { --sel: inset 0 0 0 var(--hair, 1px) rgba(244, 245, 246, .6); }
.stage { position: relative; width: 1920px; height: 1080px; flex: none; overflow: hidden; background: var(--c-950); isolation: isolate; transform-origin: center; }
.dim { position: absolute; inset: 0; z-index: 900; background: #000; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }

/* 공통 버튼 */
.pill {
  height: 44px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 var(--hair, 1px) var(--hairline);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  font: var(--t-small); letter-spacing: -0.008em; color: var(--text-1); transition: background .2s var(--ease);
}
button.pill:hover { background: var(--glass-strong); }
.pill svg { width: 18px; height: 18px; color: var(--text-2); }
.pill strong { font-weight: 600; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--glass); box-shadow: inset 0 0 0 var(--hair, 1px) var(--hairline); color: var(--text-1); transition: background .2s var(--ease);
}
.round-btn:hover { background: var(--glass-strong); }
.round-btn svg { width: 20px; height: 20px; }
.btn {
  height: 44px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-50); color: var(--c-950); }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: var(--glass-strong); color: var(--text-1); }
.btn--ghost:hover { background: rgba(244, 245, 246, .16); }
.btn--text { color: var(--text-3); padding: 0 8px; }
.btn--text:hover { color: var(--text-1); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }

/* 토스트 */
.toast {
  position: absolute; left: 50%; top: 112px; z-index: 950; transform: translate(-50%, -12px);
  padding: 13px 22px; border-radius: 999px; background: rgba(36, 37, 40, .92); box-shadow: inset 0 0 0 var(--hair, 1px) var(--hairline);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  font: var(--t-small); letter-spacing: -0.008em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 시트 */
.sheet-wrap { position: absolute; inset: 0; z-index: 800; display: grid; place-items: center; pointer-events: none; }
.sheet-wrap.is-open { pointer-events: auto; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-wrap.is-open .sheet-scrim { opacity: 1; }
.sheet {
  position: relative; width: 640px; max-height: 920px; overflow: auto;
  border-radius: 32px; background: rgba(26, 28, 30, .96); box-shadow: inset 0 0 0 var(--hair, 1px) var(--hairline), 0 40px 120px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  padding: 32px 36px 36px;
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.sheet.is-wide { width: 960px; }
.sheet-wrap.is-open .sheet { opacity: 1; transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sheet__title { font: 600 28px/1.25 var(--font); letter-spacing: -0.026em; }
.sheet__foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* 왼쪽 서랍 */
.sheet-wrap.is-side { place-items: stretch start; }
.is-side .sheet { width: 440px; max-height: none; height: 100%; border-radius: 0 32px 32px 0; transform: translateX(-40px); }
/* 전체 화면 */
.sheet-wrap.is-full .sheet { width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 0; background: var(--c-950); overflow: hidden; } /* 전체 화면은 시트 자체가 스크롤하지 않고, 안쪽(전체 보기)만 스크롤 */
.sheet-wrap.is-full .sheet__body { height: 100%; }

/* 설정 컨트롤 */
.field { padding: 20px 0; border-top: 1px solid var(--hairline); }
.field:first-child { border-top: 0; padding-top: 0; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__label { display: block; font: 600 17px/1.4 var(--font); letter-spacing: -0.012em; }
.field__desc { display: block; margin-top: 2px; font: var(--t-caption); color: var(--text-3); }
.field__value { font: var(--t-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
.field--toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin-top: 18px; border-radius: 6px; background: rgba(244, 245, 246, .14); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-50); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); cursor: pointer; }
.seg { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  height: 48px; padding: 0 20px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 var(--hair, 1px) var(--hairline);
  font: 500 16px/1 var(--font); letter-spacing: -0.008em; color: var(--text-2); transition: background .2s var(--ease), color .2s var(--ease);
}
.seg button[aria-pressed="true"] { box-shadow: var(--sel); background: transparent; color: var(--text-1); font-weight: 600; }
.switch { width: 52px; height: 32px; border-radius: 999px; background: rgba(244, 245, 246, .16); position: relative; flex: none; transition: background .25s var(--ease); }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--c-50); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--a-500); }
.switch[aria-checked="true"] i { transform: translateX(20px); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
