/* 디자인 계획: 숯의 검정 위에 정육점 네온을 크게 한 번 터뜨린다. 세로 스크롤을 굽는 시간처럼 쓴다.
   강조 색상 neon, ember, spark는 config.js의 THEME 값이 덮어쓴다. 나머지 색상과 글꼴은 여기서 바꾼다. */
:root {
  --char: #0b0807;
  --char-2: #171110;
  --char-3: #241b18;
  --line: #3a2f2b;
  --fat: #fff3e6;
  --smoke: #b9ada4;
  --neon: #ff1f45;
  --neon-rgb: 255 31 69;
  --ember: #ff6b1a;
  --ember-rgb: 255 107 26;
  --spark: #ffc24b;
  --spark-rgb: 255 194 75;
  --display: 'Gasoek One', 'Black Han Sans', 'Malgun Gothic', sans-serif;
  --body: 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --num: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --cut: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--char); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--char);
  color: var(--fat);
  font: 500 16px/1.65 var(--body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h2, h3 { text-wrap: balance; }

#progress {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--neon));
  transform: scaleX(0); transform-origin: left;
}

/* 버튼: 정육 라벨처럼 모서리를 자른다 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border: 0;
  font: 800 16px/1.2 var(--body); text-align: center; text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline-offset: -6px; }
.btn-neon { background: var(--neon); color: var(--char); }
.btn-neon:hover { background: var(--spark); }
.btn-line { background: rgba(255, 243, 230, .12); color: var(--fat); box-shadow: inset 0 0 0 2px var(--fat); }
.btn-line:hover { background: var(--fat); color: var(--char); }
.btn-dark { background: var(--char); color: var(--fat); }
.btn-dark:hover { background: var(--char-3); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* 상단 메뉴 */
.nav {
  position: fixed; inset: 3px 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--pad); transition: background-color .25s ease;
}
.nav.is-solid { background: rgba(11, 8, 7, .92); backdrop-filter: blur(10px); }
.logo { font: 400 26px/1 var(--display); text-decoration: none; }
.logo small { margin-left: 8px; padding: 2px 7px; font: 700 11px/1.4 var(--body); vertical-align: 4px; background: var(--fat); color: var(--char); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; padding: 8px 0; }
.nav-links a:hover { color: var(--spark); }
.seg { display: inline-flex; background: rgba(255, 243, 230, .12); }
.seg button { min-height: 40px; padding: 0 14px; background: none; border: 0; font-size: 14px; font-weight: 800; }
.seg button[aria-pressed="true"] { background: var(--fat); color: var(--char); }

/* 히어로 */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 88svh; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11, 8, 7, .78) 0%, rgba(11, 8, 7, .1) 62%), linear-gradient(0deg, rgba(11, 8, 7, .85), transparent 40%); }
.hero-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { padding: 110px var(--pad) 28px; }
.kicker { margin-bottom: 14px; font-weight: 700; color: var(--spark); }
.hero h1 { font: 400 clamp(62px, 12.4vw, 200px)/1.02 var(--display); letter-spacing: -.01em; }
.hero h1 span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 i { display: block; font-style: normal; }
.hero h1 span:nth-child(2) { filter: drop-shadow(0 0 26px rgb(var(--neon-rgb) / .55)); }
.hero h1 span:nth-child(2) i { color: var(--neon); }
.hero-sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ticker { overflow: hidden; background: var(--neon); color: var(--char); white-space: nowrap; font: 700 clamp(18px, 2vw, 26px)/1 var(--num); }
.ticker-move { display: inline-flex; animation: ticker 44s linear infinite; }
.ticker span { padding: 12px 28px; }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* 스크롤로 굽기 */
.scrub { position: relative; height: 420vh; background: var(--char); }
.scrub-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scrubCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 7, .85), rgba(11, 8, 7, 0) 58%); }
.stages { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(46vw, 620px); height: 44vh; }
.stage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .45s ease; }
.stage.is-active { opacity: 1; transform: none; }
.stage h2 { font: 400 clamp(38px, 5.6vw, 92px)/1.08 var(--display); }
.stage p { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; }
.meter { position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.meter-num { font: 700 clamp(72px, 12vw, 190px)/.85 var(--num); font-variant-numeric: tabular-nums; color: var(--spark); text-shadow: 0 0 30px rgb(var(--ember-rgb) / .55); }
.meter-num small { font-size: .42em; margin-left: 4px; }
.rail { display: flex; gap: 8px; font-weight: 800; font-size: 14px; }
.rail li { padding: 7px 12px; background: rgba(11, 8, 7, .7); color: var(--smoke); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s; }
.rail li.is-active { background: var(--neon); color: var(--char); box-shadow: none; }
.scrub-flash { position: absolute; inset: 0; background: var(--neon); clip-path: circle(0% at 68% 55%); }

/* 시세판 */
.board { position: relative; background: var(--neon); color: var(--char); padding: 84px var(--pad) 70px; overflow: hidden; }
.board-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.board-title { font: 400 clamp(60px, 13vw, 212px)/.98 var(--display); transform-origin: left bottom; }
.board-meta { display: grid; gap: 10px; justify-items: end; font-weight: 800; }
.board-meta b { font: 400 22px var(--display); margin-right: 6px; }
.btn-dark[aria-pressed="true"] { background: var(--fat); color: var(--char); }
.board-bulk { display: none; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; background: rgba(11, 8, 7, .12); font-weight: 800; }
.board-bulk p { margin-right: auto; }
.is-owner .board-bulk { display: flex; }
.rows { margin-top: 26px; border-bottom: 4px solid var(--char); }
.row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(190px, .8fr); align-items: center; gap: 12px 32px; padding: 14px 0; border-top: 4px solid var(--char); }
.row-name { display: grid; gap: 2px; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.25; }
.row-name strong { font-weight: 800; }
.row-name span { font-weight: 700; }
.row-price { display: flex; align-items: flex-end; gap: 8px; }
.row-unit, .row-won { font-weight: 800; font-size: clamp(14px, 1.4vw, 20px); padding-bottom: .55em; }
.roller { display: inline-flex; height: 1em; overflow: hidden; font: 700 clamp(64px, 8.6vw, 136px)/1 var(--num); font-variant-numeric: tabular-nums; }
.d { display: block; height: 1em; overflow: hidden; width: .5em; }
.col { display: block; transition: transform .75s cubic-bezier(.2, .9, .2, 1); }
.col span { display: block; height: 1em; line-height: 1em; text-align: center; }
.comma { width: .22em; text-align: center; }
.row-side { display: grid; gap: 8px; justify-items: end; font-weight: 800; text-align: right; }
.row-edit { display: none; gap: 6px; }
.is-owner .row-edit { display: inline-flex; }
.step { width: 44px; height: 44px; background: var(--char); color: var(--fat); border: 0; font-size: 22px; font-weight: 800; line-height: 1; transition: background-color .15s; }
.step:hover { background: var(--char-3); }
.board-note { margin-top: 16px; font-size: 14px; font-weight: 700; }

/* 가로 메뉴 */
.menu-pin { position: relative; background: var(--char); }
.menu-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; display: flex; align-items: center; }
.menu-ghost { position: absolute; left: 0; bottom: 3vh; white-space: nowrap; font: 400 24vh/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 243, 230, .16); pointer-events: none; }
.menu-track { position: relative; display: flex; align-items: stretch; gap: 26px; padding: 70px var(--pad) 24px; width: max-content; }
.menu-intro { width: min(36vw, 520px); align-self: center; }
.menu-intro h2 { font: 400 clamp(56px, 8vw, 128px)/1.03 var(--display); }
.menu-intro p { margin-top: 16px; font-weight: 700; color: var(--smoke); max-width: 22em; }
.menu-card { position: relative; width: min(30vw, 440px); height: min(76vh, 600px); overflow: hidden; background: var(--char-2); box-shadow: 0 0 0 1px var(--line); }
.menu-card:hover { box-shadow: 0 0 0 2px var(--neon), 0 0 50px rgb(var(--neon-rgb) / .4); }
.menu-photo { position: absolute; inset: 0; overflow: hidden; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-text { position: absolute; inset: auto 0 0 0; padding: 70px 20px 18px; background: linear-gradient(0deg, rgba(11, 8, 7, .96) 45%, transparent); }
.menu-line { font-size: 14px; color: var(--smoke); font-weight: 700; }
.menu-text h3, .menu-origin { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; font-weight: 800; }
.menu-price { margin-top: 8px; font-weight: 800; }
.menu-price b { font: 700 42px/1 var(--num); color: var(--spark); font-variant-numeric: tabular-nums; }
.menu-end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; width: min(30vw, 440px); padding: 28px; background: var(--neon); color: var(--char); }
.menu-end h3 { font: 400 clamp(40px, 4.6vw, 70px)/1.08 var(--display); }
.menu-end .btn-neon { background: var(--char); color: var(--fat); }

/* 띠 문구 */
.strip-wrap { overflow: hidden; padding: 28px 0 0; position: relative; z-index: 2; }
.strip { overflow: hidden; background: var(--spark); color: var(--char); transform: rotate(-1.6deg) scale(1.04); }
.strip-text { white-space: nowrap; font: 400 clamp(26px, 4vw, 56px)/1 var(--display); padding: 14px 0; width: max-content; }

/* 릴스 */
.reels { padding: 90px var(--pad) 150px; overflow: hidden; }
.reels-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 56px; }
.reels-head h2 { font: 400 clamp(44px, 7.4vw, 118px)/1.05 var(--display); }
.reels-head p { max-width: 24em; font-weight: 700; color: var(--smoke); }
.reel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); max-width: 1120px; margin: 0 auto; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--char-2); box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgb(var(--neon-rgb) / .16); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-info { position: absolute; inset: auto 0 0 0; display: grid; gap: 8px; padding: 50px 14px 14px; background: linear-gradient(0deg, rgba(11, 8, 7, .92), transparent); }
.reel-info h3 { font: 400 clamp(18px, 2vw, 28px)/1.15 var(--display); }
.reel-copy { min-height: 40px; padding: 4px 10px; background: var(--fat); color: var(--char); border: 0; font-size: 13px; font-weight: 800; }
.reel-copy:hover { background: var(--spark); }

/* 매장 */
.stores { position: relative; height: 300vh; }
.stores-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.store { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.store-one { z-index: 0; }
.store-two { z-index: 1; }
.store img { width: 100%; height: 100%; object-fit: cover; }
.store::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 7, .86), rgba(11, 8, 7, 0) 62%); }
.store-two { clip-path: inset(100% 0 0 0); }
.store-card { position: absolute; z-index: 1; left: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; justify-items: start; width: min(90vw, 460px); }
.store-tag { font-weight: 800; color: var(--spark); }
.store-card h2 { font: 400 clamp(46px, 6.6vw, 104px)/1.06 var(--display); }
.store-card dl { display: grid; gap: 4px; }
.store-card dl div { display: flex; gap: 12px; }
.store-card dt { color: var(--smoke); font-weight: 700; width: 3em; flex: none; }
.store-card dd { font-weight: 700; }

/* 공통 섹션 머리 */
.section-head { margin-bottom: 24px; }
.section-head h2, .invite-copy h2, .admin-copy h2 { font: 400 clamp(44px, 7.4vw, 118px)/1.06 var(--display); }
.section-head > p:last-child:not(.eyebrow) { margin-top: 12px; font-weight: 700; color: var(--smoke); }
.eyebrow { margin-bottom: 10px; font-weight: 800; color: var(--neon); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 800; color: var(--smoke); padding: 0; margin-bottom: 0; }
fieldset.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 50px; padding: 0 14px; background: var(--char-2); border: 1px solid var(--line); color: var(--fat); border-radius: 0;
}
.field input::placeholder { color: #8d817a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 6px 14px; background: var(--char-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; transition: background-color .15s, color .15s; }
.chip:hover:not(:disabled) { border-color: var(--fat); }
.chip[aria-pressed="true"] { background: var(--fat); color: var(--char); border-color: var(--fat); }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.chip small { display: block; font-size: 11px; font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 700; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--neon); }
.msg { min-height: 1.4em; font-size: 14px; font-weight: 800; }
.msg[data-tone="error"] { color: var(--spark); }
.msg[data-tone="ok"] { color: #7ee2b0; }
.demo-note { font-size: 13px; color: var(--smoke); }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--spark); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* 단체 예약 */
.reserve { padding: 84px var(--pad) 100px; background: var(--char); position: relative; z-index: 1; }
.reserve-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(24px, 4vw, 60px); align-items: start; }
.reserve-main { display: grid; gap: 20px; min-width: 0; }
.controls { display: grid; gap: 14px; }
.party { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.party output { font: 700 56px/1 var(--num); color: var(--spark); min-width: 1.1em; font-variant-numeric: tabular-nums; }
.party span { font-weight: 800; margin-right: 18px; }
.party input { flex: 1 1 220px; height: 28px; margin: 0; appearance: none; background: transparent; --fill: 11%; }
.party input::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--neon) var(--fill), var(--char-3) var(--fill)); }
.party input::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; margin-top: -9px; background: var(--fat); border: 0; clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%); cursor: grab; }
.party input::-moz-range-track { height: 8px; background: var(--char-3); }
.party input::-moz-range-progress { height: 8px; background: var(--neon); }
.party input::-moz-range-thumb { width: 26px; height: 26px; background: var(--fat); border: 0; border-radius: 0; }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.plan-head h3 { font-size: 18px; font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 700; color: var(--smoke); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--fat); }
.legend li[data-k="taken"]::before { border-color: #5a4b45; background: repeating-linear-gradient(45deg, #5a4b45 0 3px, transparent 3px 6px); }
.legend li[data-k="portal"]::before { border: 2px dashed var(--spark); }
.plan { position: relative; aspect-ratio: 16 / 9; background: var(--char-2); box-shadow: inset 0 0 0 1px var(--line); }
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; background: rgba(255, 243, 230, .04); border: 2px solid var(--fat); line-height: 1.3; text-align: center; transition: background-color .2s, box-shadow .2s, transform .2s; }
.seat b { font-size: clamp(14px, 1.6vw, 20px); font-weight: 800; }
.seat small { font-size: 12px; color: var(--smoke); }
.seat em { font-size: 12px; font-style: normal; font-weight: 700; }
.seat[data-status="available"]:hover { background: rgb(var(--neon-rgb) / .22); transform: scale(1.015); }
.seat.is-selected { background: var(--neon); border-color: var(--neon); color: var(--char); box-shadow: 0 0 40px rgb(var(--neon-rgb) / .7); }
.seat.is-selected small { color: var(--char); }
.seat:disabled { cursor: not-allowed; }
.seat[data-status="taken"] { background: repeating-linear-gradient(45deg, #2a211e 0 7px, #1b1412 7px 14px); border-color: #5a4b45; color: var(--smoke); }
.seat[data-status="portal"] { border: 2px dashed var(--spark); color: var(--spark); background: rgb(var(--spark-rgb) / .06); }
.seat[data-status="portal"] small { color: var(--spark); }
.seat[data-status="too-small"], .seat[data-status="too-large"] { border-color: #5a4b45; color: var(--smoke); background: transparent; }
.seat.is-rejected { animation: reject .55s; }
@keyframes reject { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.form { display: grid; gap: 14px; }
.summary { padding: 12px 14px; background: var(--char-2); border-left: 4px solid var(--neon); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reserve-side { position: sticky; top: 76px; }

/* 휴대폰 */
.phone { width: min(100%, 340px); margin-inline: auto; padding: 18px 14px; background: #0f0a09; border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 0 0 6px var(--char-2), 0 34px 80px rgba(0, 0, 0, .65), 0 0 70px rgb(var(--neon-rgb) / .13); display: grid; gap: 12px; }
.phone-head { padding-bottom: 8px; text-align: center; font-size: 14px; font-weight: 800; border-bottom: 1px solid var(--line); }
.thread { display: flex; flex-direction: column; gap: 10px; height: 360px; overflow-y: auto; }
.thread-empty { padding: 4px 8px; text-align: center; color: var(--smoke); font-size: 13px; }
.bubble.is-sample { opacity: .78; animation: none; }
.bubble { padding: 12px 14px; background: var(--fat); color: var(--char); font-size: 14px; line-height: 1.55; white-space: pre-line; border-radius: 4px 14px 14px 14px; animation: pop .35s ease-out; }
.bubble b { display: block; }
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: .3; } }

/* 초대장 */
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding: 110px var(--pad); background: linear-gradient(180deg, var(--char), #1d0a0d 50%, var(--char)); overflow: hidden; }
.invite-copy { display: grid; gap: 16px; justify-items: start; }
.invite-copy > p:not(.eyebrow):not(.msg):not(.demo-note) { max-width: 30em; font-weight: 700; color: var(--smoke); }
.invite-copy .field { width: min(100%, 360px); }
.invite-copy .eyebrow { margin-bottom: 0; }
.invite-scene { perspective: 1100px; }
.invite-stage { width: min(100%, 440px); margin-inline: auto; transform-style: preserve-3d; }
.invite-card { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: clamp(18px, 2.4vw, 30px); overflow: hidden; background: var(--char) url('../assets/img/embers.webp') center / cover; box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgb(var(--neon-rgb) / .32); transition: transform .25s ease-out; --glow-x: 50%; --glow-y: 30%; }
.invite-glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgb(var(--spark-rgb) / .25), transparent 45%), linear-gradient(0deg, rgba(11, 8, 7, .35), rgba(11, 8, 7, .55)); pointer-events: none; }
.invite-card > *:not(.invite-glow) { position: relative; }
.invite-dday { align-self: flex-end; font: 700 clamp(46px, 6vw, 84px)/.9 var(--num); color: var(--spark); }
.invite-label { font-weight: 800; color: var(--spark); }
.invite-title { margin: 4px 0 14px; font: 400 clamp(30px, 3.8vw, 52px)/1.12 var(--display); }
.invite-info { display: grid; gap: 4px; }
.invite-info div { display: flex; gap: 12px; }
.invite-info dt { width: 2.6em; flex: none; color: var(--smoke); font-weight: 700; }
.invite-info dd { font-weight: 800; }
.invite-more { align-self: flex-start; padding: 8px 12px; background: var(--neon); color: var(--char); font-size: 14px; font-weight: 800; text-decoration: none; }

/* 포장 */
.takeout { padding: 100px var(--pad); background: var(--char-2); }
.takeout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(24px, 4vw, 60px); align-items: start; }
.takeout-main { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; min-width: 0; }
.takeout-photo img { width: 100%; height: auto; box-shadow: 0 0 0 1px var(--line); }
.to-list { display: grid; }
.to-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.to-name { display: grid; font-size: 17px; line-height: 1.35; }
.to-name strong { font-weight: 800; }
.to-name span { font-weight: 500; color: var(--fat); }
.to-price { font-weight: 700; text-align: right; white-space: nowrap; }
.to-price span { color: var(--smoke); font-size: 14px; }
.to-price b { font: 700 28px/1 var(--num); font-variant-numeric: tabular-nums; color: var(--spark); }
.to-qty { display: inline-flex; align-items: center; gap: 4px; }
.to-qty output { min-width: 28px; text-align: center; font: 700 24px/1 var(--num); }
.to-qty .step { background: var(--char-3); }
.to-qty .step:hover { background: var(--neon); color: var(--char); }
.receipt { position: sticky; top: 76px; display: grid; gap: 14px; padding: 24px 22px 28px; background: var(--fat); color: var(--char); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 7px, var(--fat) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 7px, var(--fat) 0) 0 0 / 14px 10px repeat-x; }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px dashed var(--char); font-weight: 700; }
.receipt-head b { font: 400 22px var(--display); }
.receipt-empty { color: #594b45; font-weight: 700; }
.receipt-lines { display: grid; gap: 6px; }
.receipt-lines li { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.receipt-lines b { font-variant-numeric: tabular-nums; }
.receipt-lines li.is-new { animation: print .4s ease-out; }
@keyframes print { from { transform: translateY(-10px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 2px dashed var(--char); font-weight: 800; }
.receipt-total b { font: 700 40px/1 var(--num); font-variant-numeric: tabular-nums; }
.receipt .field label, .receipt .field legend { color: #4a3d38; }
.receipt .field input[type="text"], .receipt .field input[type="tel"] { background: #fff; border-color: #b8a99d; color: var(--char); }
.receipt .field input::placeholder { color: #6f625b; }
.receipt .chip { background: #fff; border-color: #b8a99d; color: var(--char); }
.receipt .chip[aria-pressed="true"] { background: var(--char); color: var(--fat); border-color: var(--char); }
.receipt .check input { accent-color: var(--char); }
.receipt .msg[data-tone="error"] { color: #a10f2a; }
.receipt .msg[data-tone="ok"] { color: #0a6b45; }
.tracker { display: grid; gap: 10px; padding-top: 12px; border-top: 2px dashed var(--char); }
.tracker ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; font-weight: 800; text-align: center; }
.tracker li { padding: 6px 2px; background: #e5d6c8; color: #5a4c45; }
.tracker li.is-done { background: var(--char); color: var(--fat); }
.tracker p { font-weight: 800; font-size: 14px; }
.tracker .bubble { background: var(--char); color: var(--fat); font-weight: 500; }

/* 관리자 */
.admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: center; gap: clamp(24px, 5vw, 80px); padding: 110px var(--pad); background: var(--char); overflow: hidden; }
.admin-scene { perspective: 1200px; }
.admin-points { display: grid; gap: 14px; margin-top: 22px; max-width: 34em; }
.admin-points li { display: grid; padding-top: 12px; border-top: 2px solid var(--line); }
.admin-points b { font-size: 19px; font-weight: 800; }
.admin-points span { color: var(--smoke); font-weight: 500; }
.adm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.adm-tabs button { min-height: 42px; background: var(--char-3); border: 0; font-size: 14px; font-weight: 800; }
.adm-tabs button[aria-pressed="true"] { background: var(--neon); color: var(--char); }
.adm-body { display: grid; align-content: start; gap: 12px; min-height: 370px; font-size: 14px; }
.adm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.adm-stats p { padding: 10px; background: var(--char-2); font-weight: 800; text-align: center; }
.adm-list { display: grid; gap: 6px; }
.adm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; background: var(--char-2); }
.adm-row b { font: 700 19px/1 var(--num); color: var(--spark); }
.adm-row em { padding: 1px 6px; font-size: 12px; font-style: normal; font-weight: 800; background: var(--char-3); }
.adm-row[data-source="포털"] em { background: var(--spark); color: var(--char); }
.adm-row[data-source="자사"] em { background: var(--neon); color: var(--char); }
.adm-caption, .adm-legend { color: var(--smoke); font-size: 13px; }
.adm-grid { display: grid; grid-template-columns: 62px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; align-items: center; }
.adm-head { font: 700 14px/1 var(--num); text-align: center; color: var(--smoke); }
.adm-seat { font-size: 12px; font-weight: 800; }
.adm-cell { height: 34px; background: var(--char-3); }
.adm-cell[data-source="own"] { background: var(--neon); }
.adm-cell[data-source="taken"] { background: #6d5f58; }
.adm-cell[data-source="portal"] { background: var(--spark); }
.adm-price { display: grid; grid-template-columns: minmax(0, 1fr) 40px 58px 40px; align-items: center; gap: 4px; padding: 6px 8px; background: var(--char-2); font-weight: 700; }
.adm-price b { font: 700 20px/1 var(--num); text-align: center; font-variant-numeric: tabular-nums; }
.adm-price .step { width: 40px; height: 40px; background: var(--char-3); font-size: 18px; }

/* 하단 */
.foot { padding: 60px var(--pad) 40px; background: var(--neon); color: var(--char); overflow: hidden; }
.foot-mark { font: 400 clamp(110px, 26vw, 400px)/.9 var(--display); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; font-size: 14px; font-weight: 700; }
.foot-grid h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.dock { display: none; }
.noscript { position: fixed; inset: auto 0 0 0; padding: 12px; background: var(--fat); color: var(--char); text-align: center; }

/* 태블릿·모바일 */
@media (max-width: 899px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .seg { margin-left: auto; }
  .hero { min-height: 84svh; }
  .hero-video { object-position: 78% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(11, 8, 7, .95) 12%, rgba(11, 8, 7, .35) 62%, rgba(11, 8, 7, .35)); }
  .hero-cta { display: none; }
  .stages { top: 84px; transform: none; width: auto; right: var(--pad); height: 30vh; }
  .stage { justify-content: flex-start; }
  .scrub-shade { background: linear-gradient(180deg, rgba(11, 8, 7, .85) 8%, rgba(11, 8, 7, 0) 50%, rgba(11, 8, 7, .6)); }
  .meter { bottom: 78px; align-items: flex-end; }
  .rail { flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row-side { justify-items: start; text-align: left; }
  .row-edit { position: absolute; }
  .row { position: relative; }
  .row-edit { right: 0; top: 14px; }
  .board-meta { justify-items: start; }
  .menu-pin { height: auto !important; padding: 80px 0 40px; }
  .menu-stick { position: static; height: auto; overflow: visible; display: block; }
  .menu-ghost { display: none; }
  .menu-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 14px; gap: 14px; transform: none !important; align-items: stretch; }
  .menu-intro { flex: 0 0 74vw; width: 74vw; scroll-snap-align: start; }
  .menu-card, .menu-end { flex: 0 0 78vw; width: 78vw; height: 112vw; max-height: 72vh; scroll-snap-align: center; }
  .reels { padding-bottom: 90px; }
  .reel-row { grid-template-columns: repeat(3, 66vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 14px; max-width: none; }
  .reel { scroll-snap-align: center; transform: none !important; }
  .store::after { background: linear-gradient(0deg, rgba(11, 8, 7, .95) 30%, rgba(11, 8, 7, .1) 75%); }
  .store-card { top: auto; bottom: 86px; transform: none; }
  .reserve, .takeout { padding-block: 70px; padding-bottom: 90px; }
  .reserve-grid, .takeout-grid, .invite, .admin { grid-template-columns: minmax(0, 1fr); }
  .reserve-side, .receipt { position: relative; top: 0; }
  .plan { aspect-ratio: 1 / 1; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .takeout-main { grid-template-columns: minmax(0, 1fr); }
  .takeout-photo img { max-height: 300px; width: 100%; object-fit: cover; }
  .to-item { grid-template-columns: minmax(0, 1fr) auto; }
  .to-qty { grid-column: 2; justify-self: end; }
  .foot { padding-bottom: 96px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .dock { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 8, 7, .94); }
  .dock .btn { min-height: 48px; padding: 0 8px; }
  .dock { transition: transform .25s ease; }
  .dock.is-hidden { transform: translateY(110%); pointer-events: none; }
}

/* 움직임 줄이기 또는 스크립트 라이브러리를 못 불러온 경우 */
.no-motion .scrub { height: auto; }
.no-motion .scrub-stick { position: relative; height: auto; }
.no-motion #scrubCanvas { position: relative; height: 60vh; object-fit: cover; }
.no-motion .scrub-shade, .no-motion .scrub-flash { display: none; }
.no-motion .stages { position: relative; inset: auto; transform: none; width: auto; height: auto; padding: 24px var(--pad); display: grid; gap: 22px; }
.no-motion .stage { position: relative; opacity: 1; transform: none; }
.no-motion .meter { display: none; }
.no-motion .menu-pin { height: auto; }
.no-motion .menu-stick { position: static; height: auto; overflow: visible; display: block; }
.no-motion .menu-ghost { display: none; }
.no-motion .menu-track { width: auto; overflow-x: auto; }
.no-motion .menu-intro, .no-motion .menu-card, .no-motion .menu-end { flex: none; }
.no-motion .nav { background: rgba(11, 8, 7, .92); }
.no-motion .stores { height: auto; }
.no-motion .stores-stick { position: static; height: auto; }
.no-motion .store { position: relative; inset: auto; height: 80vh; clip-path: none; }
.no-motion .store-two { clip-path: none; }
.no-motion .ticker-move { animation: none; }

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