:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --ink: #1d2320;
  --muted: #6b726e;
  --line: #e7e2da;
  --accent: #2f5d50;
  --accent-soft: #e5eee9;
  --warn: #9a5b13;
  --warn-soft: #fbf1e3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 35, 32, .05), 0 4px 16px rgba(29, 35, 32, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Fraunces, Georgia, "PingFang SC", "Noto Serif SC", serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; font-family: Inter, sans-serif; font-weight: 600; }

#app { max-width: 560px; margin: 0 auto; padding-bottom: 96px; }
.loading { padding: 48px 16px; color: var(--muted); }

/* hero */
.hero { position: relative; height: 300px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%);
}
.hero-top, .hero-text { position: absolute; left: 16px; right: 16px; z-index: 1; color: #fff; }
.hero-top { top: 16px; font-family: Fraunces, serif; font-size: 1.1rem; letter-spacing: .02em; }
.hero-text { bottom: 20px; }
.hero-text p { margin: 0 0 4px; opacity: .9; font-size: .9rem; }
.hero-text h1 { font-size: 2rem; line-height: 1.15; }

/* quick facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  margin: -1px 16px 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 2; }
.facts div { background: var(--card); padding: 12px 8px; text-align: center; }
.facts small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.facts strong { font-size: 1rem; }

/* sticky directory */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247, 244, 239, .92); backdrop-filter: blur(8px);
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; margin-top: 16px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

section { padding: 24px 16px 4px; }
section > h2 { margin-bottom: 12px; }
.lead { color: var(--muted); margin: -4px 0 14px; font-size: .95rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }

/* status / codes */
.status { border: 1px solid var(--line); }
.status.locked { background: var(--card); }
.status .row { display: flex; align-items: center; gap: 12px; }
.status .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none; }
.status p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.code { background: var(--bg); border-radius: 12px; padding: 12px; }
.code small { color: var(--muted); font-size: .75rem; display: block; }
.code strong { font-size: 1.15rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.code.wide { grid-column: 1 / -1; }
.alert { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 12px; padding: 14px 16px; font: 600 1rem Inter, sans-serif; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none; margin-top: 14px; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns .btn { margin-top: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; }
.steps > li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: .85rem; display: grid; place-items: center; }
.steps > li.card { padding-left: 56px; }
.steps ul { margin: 6px 0 0; padding-left: 18px; color: #3a413d; }
.steps ul li { margin: 4px 0; }
.steps img, .shot { border-radius: 10px; margin-top: 12px; border: 1px solid var(--line); }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-title { font-weight: 500; margin: 10px 0 0; font-size: .95rem; }

/* collapsible */
details.card { padding: 0; }
details summary { list-style: none; padding: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details .inner { padding: 0 16px 16px; }
.rule { padding: 10px 0; border-top: 1px solid var(--line); }
.rule strong { display: block; }
.rule span { color: var(--muted); font-size: .92rem; }

/* nearby */
.chips { display: flex; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font: 500 .88rem Inter, sans-serif; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.place { display: flex; gap: 12px; align-items: flex-start; }
.place .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.place p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.place.sample { border: 1px dashed var(--line); box-shadow: none; background: transparent; }

/* checklist */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-of-type { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 1px 0 0; }

/* help bar */
.helpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247,244,239,0), var(--bg) 30%); }
.helpbar a { max-width: 528px; margin: 0 auto; display: flex; background: var(--ink); color: #fff; }

/* sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { margin-bottom: 6px; }
.sheet p { color: var(--muted); margin: 0 0 14px; }
.sheet input[type=tel] { width: 100%; font: 600 1.4rem Inter, sans-serif; letter-spacing: .3em; text-align: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.preview { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .8rem; padding: 6px 16px; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 32px 16px 0; }

/* v2: language switch, fewer nav buttons, stronger key info */
b { font-weight: 700; color: var(--ink); }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.lang { display: flex; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: #fff; font: 600 .8rem Inter, "PingFang SC", sans-serif; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: #fff; color: var(--ink); }
.unitno { white-space: nowrap; }
.facts strong { font-size: 1.1rem; font-weight: 700; }
.nav a { flex: 1 0 auto; text-align: center; }
.subhead { font-family: Fraunces, Georgia, "PingFang SC", serif; font-size: 1.2rem; margin: 22px 0 12px; }
.code strong { font-size: 1.35rem; font-weight: 800; }
.code.key { background: var(--ink); color: #fff; }
.code.key small { color: rgba(255,255,255,.7); }
.code.key strong { font-size: 1.7rem; letter-spacing: .06em; }
.alert { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; border: 1px solid #efd9b8; }
.alert svg { flex: none; margin-top: 2px; }
.alert b { color: var(--warn); font-weight: 800; }
.kv strong.big { font-size: 1.3rem; font-weight: 800; }
.rule strong, details summary { font-weight: 700; }
.steps b { color: var(--ink); }
.nav { gap: 6px; padding: 12px; }
.nav a { padding: 6px 10px; font-size: .84rem; }
.nowrap { white-space: nowrap; }
.steps b, .rule b { white-space: nowrap; }
.nav { gap: 4px; } .nav a { padding: 6px 9px; }

/* v3: KYC and deposit gate, write-down note, contact behind a link */
#app { padding-bottom: 32px; }
.gate { list-style: none; margin: 0; padding: 0; }
.gate li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gate li:last-child { border-bottom: 0; }
.gate .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: #fff; }
.gate .dot svg { width: 14px; height: 14px; }
.gate li.done .dot { background: var(--accent); border-color: var(--accent); }
.gate li.done strong { color: var(--muted); text-decoration: line-through; }
.gate p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.note { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 10px 12px; margin-top: 14px; font-size: .9rem; }
.note svg { flex: none; margin-top: 2px; }
.note b { color: var(--accent); }
.field { display: block; font-weight: 600; font-size: .9rem; margin-top: 12px; }
.field input { display: block; width: 100%; margin-top: 6px; }
.field input[type=file] { font: inherit; font-weight: 400; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); }
.sheet { max-height: 90vh; overflow-y: auto; }
.faq { display: block; width: 100%; text-align: left; background: var(--bg); border: 0; border-radius: 12px; padding: 12px 14px; margin-top: 8px; font: 500 .95rem Inter, "PingFang SC", sans-serif; color: var(--ink); cursor: pointer; }
.faq::after { content: "→"; float: right; color: var(--muted); }
.sheet .btns .btn { margin-top: 0; }
footer .link { background: none; border: 0; color: var(--accent); font: 600 .9rem Inter, "PingFang SC", sans-serif; text-decoration: underline; cursor: pointer; padding: 8px; }
footer p { margin: 4px 0 0; }

/* v4: DuitNow QR deposit */
.qr { width: 200px; height: 200px; margin: 4px auto 0; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.qr.placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 600; background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, #fff 10px, #fff 20px); }
.sheet .amount { text-align: center; font-size: 1.8rem; font-weight: 800; color: var(--ink); margin: 10px 0 2px; }
.gate li.wait .dot { border-color: var(--warn); background: var(--warn-soft); }
.gate li.wait p { color: var(--warn); font-weight: 600; }

/* "No KYC, no passcode": guests skip KYC and then chase CS for codes, so this must be loud */
.nokyc { background: #b3261e; color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.nokyc strong { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.nokyc p { margin: 6px 0 0; font-size: .92rem; color: #fff; opacity: .95; }

.bank { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: center; margin: 10px 0; font-size: .9rem; }
.bank p { margin: 0 0 6px; }
.bank .acct { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; user-select: all; }
.bank span { font-size: .8rem; color: var(--muted, #666); }
img.qr { width: 260px; height: auto; display: block; border: 0; }

.early { font-size: .85rem; color: var(--muted, #666); margin: 12px 0 0; }
.early .link { background: none; border: 0; color: var(--accent); font: 600 .85rem Inter, "PingFang SC", sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }
