:root {
  --ground: #F6F0E6;      /* ivory */
  --surface: #EDE4D6;     /* one tone step down */
  --ink: #2B1E15;         /* coffee */
  --ink-2: #6E5B4B;       /* secondary text */
  --brand: #513A26;       /* logo brown */
  --line: #DDD1BF;
  --dark: #2B1E15;
  --on-dark: #F6F0E6;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #1d140e; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img, video { display: block; max-width: 100%; }

.app { position: relative; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  background: var(--ground); overflow-x: hidden; padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
.screen { display: none; }
.screen.on { display: block; }

/* hero */
.hero { position: relative; height: min(150vw, 680px); background: var(--dark); color: var(--on-dark); }
.hero img, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero .scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,17,11,.55) 0%, rgba(25,17,11,.25) 30%, rgba(25,17,11,0) 45%, rgba(25,17,11,0) 75%, rgba(25,17,11,.45) 100%); }
.hero .top { position: absolute; top: calc(var(--safe-t) + 14px); left: 20px; right: 20px; display: flex; }
.hero .top img { position: static; width: 52px; height: 52px; object-fit: contain; }
.hero .copy { position: absolute; left: 20px; right: 20px; top: calc(var(--safe-t) + 88px); }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; max-width: 12ch; }
.hero p { margin: 12px 0 0; font-size: 17px; line-height: 1.35; max-width: 26ch; color: rgba(246,240,230,.9); }
.hero .cta { position: absolute; left: 20px; bottom: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px;
  border-radius: 999px; font-size: 17px; font-weight: 600; background: var(--brand); color: var(--on-dark);
  transition: transform .12s, opacity .12s; }
.btn:active { transform: scale(.97); opacity: .9; }
.btn.light { background: var(--on-dark); color: var(--ink); }
.btn.block { display: flex; width: 100%; }

.large-title { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.section { padding: 28px 20px 8px; }
.section .sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }

/* menu list */
.list { padding: 8px 20px 24px; display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px;
  background: var(--surface); border-radius: 20px; text-align: left; width: 100%; cursor: pointer; }
.row img { width: 112px; height: 112px; object-fit: cover; border-radius: 14px; background: var(--line); }
.row h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.row p { margin: 4px 0 0; font-size: 14px; line-height: 1.35; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .meta { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 600; }
.price.ask { font-weight: 500; color: var(--ink-2); }
.add { width: 36px; height: 36px; border-radius: 999px; background: var(--brand); color: var(--on-dark); display: grid; place-items: center; flex: none; }
.add svg { width: 18px; height: 18px; }
.thumb { position: relative; }
.thumb .play { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(18,12,8,.6); display: grid; place-items: center; }
.thumb .play::after { content: ""; margin-left: 3px; border-left: 9px solid #F6F0E6; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* category chips */
.chips { display: flex; gap: 8px; padding: 14px 20px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink-2); flex: none; }
.chips button.on { background: var(--ink); color: var(--on-dark); }

/* shock intro */
.splash { position: fixed; z-index: 50; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 440px; background: #120c08; color: var(--on-dark); overflow: hidden; }
.splash[hidden] { display: none; }
.splash video, .splash .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash .scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,12,8,.85) 0%, rgba(18,12,8,.35) 40%, rgba(18,12,8,0) 60%, rgba(18,12,8,.75) 100%); }
.splash .logo { position: absolute; top: calc(var(--safe-t) + 18px); left: 20px; width: 56px; height: 56px; object-fit: contain; }
.splash h1 { position: absolute; left: 20px; right: 20px; top: calc(var(--safe-t) + 104px); margin: 0;
  font-size: 54px; line-height: .96; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.splash p { position: absolute; left: 20px; right: 20px; top: calc(var(--safe-t) + 280px); margin: 0; font-size: 19px; color: rgba(246,240,230,.9); }
.splash .go { position: absolute; left: 20px; right: 20px; bottom: calc(var(--safe-b) + 34px); }
.splash.out { opacity: 0; transition: opacity .35s; }

/* tap to break */
.break { position: relative; aspect-ratio: 9/14; background: #120c08; color: var(--on-dark); overflow: hidden; cursor: pointer; }
.break video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.break .scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,12,8,.8) 0%, rgba(18,12,8,.2) 34%, rgba(18,12,8,0) 55%, rgba(18,12,8,.7) 100%); }
.break h2 { position: absolute; left: 20px; right: 20px; top: 26px; margin: 0; font-size: 44px; line-height: .98; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.break p { position: absolute; left: 20px; right: 20px; top: 84px; margin: 0; font-size: 17px; color: rgba(246,240,230,.9); }
.break .act { position: absolute; left: 20px; bottom: 22px; }
.break .act[hidden] { display: none; }
.tap { position: absolute; left: 50%; top: 58%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 999px;
  border: 2px solid rgba(246,240,230,.9); display: grid; place-items: center; animation: pulse 1.6s ease-out infinite; }
.tap::after { content: ""; width: 22px; height: 22px; border-radius: 999px; background: var(--on-dark); }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.break.played .tap { display: none; }

/* real footage reel */
.reel-head { padding: 34px 20px 6px; }
.reel-head h2 { margin: 0; font-size: 34px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
.reel-head p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.reel { display: flex; gap: 12px; padding: 14px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.clip { flex: none; width: 62%; scroll-snap-align: start; text-align: left; }
.clip video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 20px; background: var(--dark); }
.clip span { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; }

/* gift */
.gift { margin-top: 30px; background: var(--dark); color: var(--on-dark); }
.gift img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gift .txt { padding: 24px 20px 30px; }
.gift h2 { margin: 0; font-size: 38px; line-height: 1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.gift p { margin: 10px 0 20px; font-size: 17px; color: rgba(246,240,230,.85); }

/* closing line */
.closer { padding: 44px 20px 40px; }
.closer h2 { margin: 0 0 20px; font-size: 44px; line-height: .98; letter-spacing: -0.035em; font-weight: 800; }

/* detail */
.detail .photo { position: relative; aspect-ratio: 4/5; background: var(--dark); }
.detail .photo img, .detail .photo video { width: 100%; height: 100%; object-fit: cover; }
.back { position: absolute; top: calc(var(--safe-t) + 12px); left: 14px; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(43,30,21,.55); color: var(--on-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center; }
.back svg { width: 20px; height: 20px; }
.detail .body { padding: 22px 20px 28px; }
.detail h2 { margin: 0; font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; }
.detail .desc { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.detail .price { display: block; margin-top: 14px; font-size: 20px; }
.buy { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.stepper { display: inline-flex; align-items: center; height: 50px; border-radius: 999px; background: var(--surface); }
.stepper button { width: 46px; height: 50px; display: grid; place-items: center; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 26px; text-align: center; font-size: 17px; font-weight: 600; }
.stepper.sm { height: 36px; }
.stepper.sm button { width: 36px; height: 36px; }
.stepper.sm output { min-width: 20px; font-size: 15px; }

/* bag */
.bag-list { padding: 8px 20px 0; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.line-item h4 { margin: 0; font-size: 16px; font-weight: 600; }
.line-item small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-2); font-size: 17px; }
.empty .btn { margin-top: 18px; }
.form { padding: 22px 20px 8px; display: grid; gap: 12px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: grid; gap: 6px; }
.form input, .form textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
  border: 0; border-radius: 14px; padding: 13px 14px; width: 100%; outline: none; }
.form input:focus, .form textarea:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.form textarea { resize: none; min-height: 76px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 999px; padding: 3px; }
.seg button { height: 40px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--ground); color: var(--ink); }
.total { display: flex; justify-content: space-between; padding: 14px 20px 0; font-size: 17px; font-weight: 600; }
.send { padding: 16px 20px 28px; }
.note { padding: 0 20px 24px; margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* visit */
.visit-head { background: var(--dark); color: var(--on-dark); padding: calc(var(--safe-t) + 40px) 20px 32px; }
.visit-head img { width: 96px; height: 96px; object-fit: contain; }
.visit-head h2 { margin: 18px 0 0; font-size: 34px; letter-spacing: -0.025em; line-height: 1.1; }
.visit-head p { margin: 8px 0 0; font-size: 17px; color: rgba(246,240,230,.85); line-height: 1.4; }
.cells { margin: 20px; background: var(--surface); border-radius: 20px; overflow: hidden; }
.cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; width: 100%;
  text-align: left; font-size: 17px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.cell:last-child { border-bottom: 0; }
.cell span { color: var(--ink-2); font-size: 15px; }

/* tab bar (iOS style) */
.tabs { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(246,240,230,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line); }
.tabs button { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: #9A8A7B; position: relative; }
.tabs button svg { width: 26px; height: 26px; }
.tabs button.on { color: var(--brand); }
.badge { position: absolute; top: 7px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #C8102E; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.badge[hidden] { display: none; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  opacity: 0; pointer-events: none; transition: .25s; background: var(--ink); color: var(--on-dark); padding: 12px 18px;
  border-radius: 999px; font-size: 15px; max-width: 400px; width: max-content; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 480px) { .app { box-shadow: 0 0 0 1px #000; } }
@media (prefers-reduced-motion: reduce) { .toast, .splash.out { transition: none; } .tap { animation: none; } }
