/* SPACE BOX 渋谷 — rental room brand: warm white paper, ink, one lime accent; stage-driven alterations turn the lime to red */
:root {
  --paper: #f7f7f3;
  --card: #ffffff;
  --ink: #1b1f1a;
  --muted: #697064;
  --line: #e3e5dd;
  --lime: #9ccc3c;
  --lime-deep: #557f0e;
  --lime-soft: #eef6dc;
  --night: #121512;
  --night-2: #1c201b;
  --alert: #b3121b;
  --alert-soft: #fbe9e9;
  --f-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-en: "Sora", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-hand: "Yomogi", "Klee One", cursive;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 10, .05), 0 8px 28px rgba(20, 30, 10, .07);
  color-scheme: light;
}
html[data-stage="2"], html[data-stage="3"], html[data-stage="4"] { --lime: #b8c94a; }
html[data-stage="3"], html[data-stage="4"] { --lime-soft: #f3efdc; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.nb { white-space: nowrap; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-ja); font-size: 15.5px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; }
.container { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.en { font-family: var(--f-en); letter-spacing: .02em; }
.mono { font-family: var(--f-mono); }

/* stage visibility helpers */
html[data-stage="0"] :is(.from-1, .from-2, .from-3, .from-4),
html[data-stage="1"] :is(.from-2, .from-3, .from-4),
html[data-stage="2"] :is(.from-3, .from-4),
html[data-stage="3"] .from-4,
html:is([data-stage="1"], [data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-1,
html:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-2,
html:is([data-stage="3"], [data-stage="4"]) .until-3 { display: none !important; }

/* top bar */
.topbar { background: var(--night); color: #d9ddd3; font-size: 12.5px; }
.topbar .container { display: flex; gap: 18px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar .sep { opacity: .35; }
.topbar .ticker { margin-left: auto; font-family: var(--f-mono); color: #ff8a8f; letter-spacing: .04em; animation: flick 3.2s steps(1) infinite; }
@keyframes flick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .2; } 95% { opacity: .9; } 96% { opacity: .1; } }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo .word { font-family: var(--f-en); font-weight: 700; font-size: 18px; letter-spacing: .08em; line-height: 1; }
.logo .word small { display: block; font-family: var(--f-ja); font-weight: 500; font-size: 10.5px; letter-spacing: .3em; color: var(--muted); margin-top: 4px; }
.logo .cell9 { fill: var(--lime); transition: fill .6s; }
html:is([data-stage="3"], [data-stage="4"]) .logo .cell9 { fill: var(--alert); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--lime); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.sm { padding: 8px 16px; font-size: 13.5px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* hero */
.hero { padding-block: 56px 40px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--lime-deep); text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.28; letter-spacing: .02em; margin: 16px 0 18px; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime-soft) 62%); }
.hero p.lead { color: var(--muted); font-size: 16.5px; max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); border-radius: 12px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.hero-photo .badge b { font-family: var(--f-en); font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 40px; }
.stat { background: var(--card); padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-family: var(--f-en); font-weight: 700; font-size: 26px; line-height: 1.3; }
.stat .v small { font-family: var(--f-ja); font-size: 13px; font-weight: 500; margin-left: 2px; }

/* live status strip */
.status { padding-block: 8px 56px; }
.status-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.status-box .now { font-family: var(--f-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; border-radius: 999px; padding: 4px 11px; border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; background: var(--paper); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.chip.busy::before { background: #c9cbc4; }
.chip.alert { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 35%, transparent); background: var(--alert-soft); }
.chip.alert::before { background: var(--alert); }

/* sections */
section.sec { padding-block: 72px; }
section.sec.alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 8px 0 0; line-height: 1.35; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); max-width: 32em; }

/* rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.room .ph { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--line); }
.room .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room:hover .ph img { transform: scale(1.04); }
.room .no { position: absolute; left: 12px; top: 12px; font-family: var(--f-en); font-weight: 700; font-size: 13px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 9px; letter-spacing: .06em; }
.room .body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.room h3 { margin: 0; font-size: 17px; }
.room .spec { font-size: 13px; color: var(--muted); }
.room .foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.room .price { font-family: var(--f-en); font-weight: 700; font-size: 20px; }
.room .price small { font-family: var(--f-ja); font-size: 12px; font-weight: 500; color: var(--muted); }
.room .tag { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--lime-soft); color: var(--lime-deep); font-weight: 700; }
.room .tag.red { background: var(--alert-soft); color: var(--alert); }
.room.r9 .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.25)); }

/* price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table.price { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.price th, table.price td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
table.price th { font-size: 12.5px; color: var(--muted); font-weight: 500; background: var(--paper); }
table.price td.num { font-family: var(--f-en); font-variant-numeric: tabular-nums; font-weight: 600; }
table.price tr:last-child td { border-bottom: 0; }
table.price .r9 td { background: color-mix(in srgb, var(--lime-soft) 60%, transparent); }
.note-red { color: var(--alert); font-size: 12.5px; font-weight: 700; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.flow li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; counter-increment: s; }
.flow li::before { content: "0" counter(s); font-family: var(--f-en); font-weight: 700; color: var(--lime-deep); font-size: 13px; letter-spacing: .1em; }
.flow h3 { margin: 6px 0 6px; font-size: 16.5px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); }
ol.flow { padding: 0; margin: 0; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; }
.review .stars { color: var(--lime-deep); letter-spacing: 2px; font-size: 13px; }
.review p { margin: 0; }
.review .who { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.review .av { width: 30px; height: 30px; border-radius: 50%; background: var(--lime-soft); color: var(--lime-deep); display: grid; place-items: center; font-weight: 700; font-family: var(--f-en); font-size: 12px; flex: none; }
.review .dates { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 2px; }
.review .dates .gap { color: var(--alert); font-weight: 500; }
.review.trigger { cursor: pointer; border-color: color-mix(in srgb, var(--alert) 30%, var(--line)); }
.review.trigger:hover { box-shadow: 0 0 0 3px var(--alert-soft); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; gap: 14px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-en); color: var(--lime-deep); }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--f-en); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px 46px; color: var(--muted); }
.faq details.new { border-color: color-mix(in srgb, var(--alert) 35%, var(--line)); }
.faq details.new summary::before { color: var(--alert); }

/* access */
.access { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
.map { position: relative; border-radius: var(--r); overflow: hidden; background: #eceee6; border: 1px solid var(--line); min-height: 320px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.addr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.addr dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; gap: 8px 12px; font-size: 14.5px; }
.addr dt { color: var(--muted); }
.addr dd { margin: 0; }

/* footer */
.site-footer { background: var(--night); color: #c9cdc3; padding-block: 56px 32px; margin-top: 0; font-size: 13.5px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo .word { color: #fff; }
.site-footer .logo .word small { color: #9aa094; }
.site-footer h4 { color: #fff; font-size: 13px; margin: 0 0 10px; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: #c9cdc3; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2c312a; padding-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 12px; color: #8b9186; }
.site-footer .legal button { background: none; border: 1px solid #3a4037; color: #8b9186; border-radius: 6px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.site-footer .r9status { color: #ff8a8f; font-family: var(--f-mono); font-size: 12px; }

/* page head (subpages) */
.page-head { padding-block: 40px 28px; }
.crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 6px; line-height: 1.3; }
.page-head p { margin: 0; color: var(--muted); }

/* room 9 */
.r9-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; padding-bottom: 72px; }
.r9-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1200 / 896; background: #ddd; }
.r9-photo > img { width: 100%; height: 100%; object-fit: cover; }
.clock { position: absolute; cursor: pointer; border-radius: 50%; }
.clock svg { width: 100%; height: 100%; display: block; overflow: visible; }
.clock:focus-visible { outline: 2px solid var(--alert); outline-offset: 2px; }
.note-hit { position: absolute; background: transparent; border: 0; cursor: zoom-in; border-radius: 4px; }
.note-hit:hover, .note-hit:focus-visible { box-shadow: 0 0 0 2px rgba(255, 80, 80, .75), 0 0 18px rgba(255, 80, 80, .35); outline: none; }
.cam-hint { margin: 10px 2px 0; font-size: 13px; color: var(--alert); font-weight: 700; }

/* CCTV zoom on the note */
.cctv { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 20px; }
.cctv-box { position: relative; width: min(1000px, 100%); aspect-ratio: 1200 / 896; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px #333; }
.cctv-box img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08) brightness(.95); animation: cctv-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cctv-in { from { transform: scale(1.35); filter: blur(6px) saturate(.6); } to { transform: none; } }
.cctv-box::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.cctv-ui { position: absolute; z-index: 3; left: 14px; right: 14px; top: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: #f3f3f3; text-shadow: 0 1px 2px #000; }
.cctv-ui .rec { display: inline-flex; gap: 6px; align-items: center; color: #ff5a5a; }
.cctv-ui .rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; animation: flick 1.4s steps(1) infinite; }
.cctv-close { position: absolute; z-index: 3; right: 14px; bottom: 14px; font-family: var(--f-mono); font-size: 12px; background: rgba(0,0,0,.6); color: #fff; border: 1px solid #555; border-radius: 6px; padding: 6px 12px; cursor: pointer; }

/* door lock (photo of the real keypad, keys are hotspots) */
.lock { background: #0f110f; border-radius: var(--r); padding: 18px; display: grid; gap: 12px; color: #dfe3da; }
.lock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.lock-state { font-family: var(--f-mono); font-size: 11.5px; color: #ff6b70; border: 1px solid #5a2326; border-radius: 4px; padding: 1px 8px; letter-spacing: .08em; }
.lock-state.open { color: #8dff8d; border-color: #2f5a26; }
.lock-photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 510 / 870; max-width: 340px; width: 100%; justify-self: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lock-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.lock-photo .key { position: absolute; width: 13%; height: 7.4%; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lock-photo .key::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(220, 240, 255, .75) 0, rgba(160, 200, 255, .28) 32%, transparent 68%); opacity: 0; transition: opacity .35s ease-out; mix-blend-mode: screen; }
.lock-photo .key.hit::after { opacity: 1; transition: none; }
.lock-photo .key:focus-visible { outline: 1px solid rgba(255,255,255,.6); }
.lock-led { position: absolute; left: 64.7%; top: 20.7%; width: 2.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #3a1a1a; }
.lock-led.red { background: #ff3030; box-shadow: 0 0 6px 2px rgba(255, 40, 40, .8), 0 0 18px 6px rgba(255, 40, 40, .35); }
.lock-led.green { background: #45ff6a; box-shadow: 0 0 6px 2px rgba(60, 255, 100, .85), 0 0 22px 8px rgba(60, 255, 100, .35); }
.lock-pins { position: absolute; left: 50%; top: 20.7%; transform: translate(-50%, -50%); display: flex; gap: 5px; }
.lock-pins i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.14); }
.lock-pins i.on { background: #eaf4ff; box-shadow: 0 0 5px rgba(200, 230, 255, .9); }
.lock-photo.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.lock-help { margin: 0; font-size: 12.5px; color: #a9afa3; }
.lock-help b { color: #fff; font-family: var(--f-en); }
.lock-msg { margin: 0; min-height: 1.5em; font-family: var(--f-mono); font-size: 12.5px; color: #ff8a8f; }
.lock-msg.ok { color: #8dff8d; }

/* door opening */
.unlock { position: fixed; inset: 0; z-index: 95; background: #000; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.unlock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: door-in 3.2s ease-out both; }
@keyframes door-in { from { opacity: 0; transform: scale(1.08); filter: brightness(.2); } to { opacity: 1; transform: scale(1); filter: brightness(1); } }
.unlock-cap { position: relative; text-align: center; color: #fff; font-size: clamp(22px, 3.6vw, 34px); font-weight: 700; letter-spacing: .14em; text-shadow: 0 2px 16px #000; animation: cap-in 1.2s 1.6s both; }
.unlock-cap span { display: block; font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em; color: #8dff8d; margin-bottom: 8px; }
.unlock-cap small { display: block; margin-top: 14px; font-size: 12.5px; letter-spacing: .2em; font-weight: 500; color: #ccc; }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.r9-side { display: grid; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel h2 { font-size: 17px; margin: 0 0 12px; }
dl.spec { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; gap: 8px 12px; font-size: 14.5px; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; }
ul.rules { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
ul.rules li.red { color: var(--alert); font-weight: 700; }
.price-big { font-family: var(--f-en); font-weight: 700; font-size: 40px; line-height: 1.1; }
.price-big small { font-family: var(--f-ja); font-size: 14px; color: var(--muted); font-weight: 500; }


/* booking */
.book { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select { font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.stepper button { background: none; border: 0; width: 46px; height: 46px; font-size: 20px; cursor: pointer; }
.stepper output { flex: 1; text-align: center; font-family: var(--f-en); font-weight: 600; }
.sim { position: sticky; top: 92px; }
.sim .line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.sim .line .num { font-family: var(--f-en); font-variant-numeric: tabular-nums; font-weight: 600; }
.sim .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.sim .total .num { font-family: var(--f-en); font-weight: 700; font-size: 34px; }
.sim .ext { margin-top: 12px; background: var(--alert-soft); color: var(--alert); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.sim .ext .num { font-family: var(--f-en); font-size: 24px; }
.sim .ext-note { font-size: 12px; color: var(--alert); margin: 6px 2px 0; }

.timeline { margin-top: 48px; }
.tl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.tl-grid { min-width: 760px; display: grid; grid-template-columns: 90px 1fr; }
.tl-hours { display: grid; grid-template-columns: repeat(16, 1fr); font-family: var(--f-mono); font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.tl-hours span { padding: 8px 0 6px 4px; border-left: 1px solid var(--line); }
.tl-name { font-family: var(--f-en); font-weight: 600; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tl-row { position: relative; border-bottom: 1px solid var(--line); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 16) 100%; min-height: 42px; }
.tl-bar { position: absolute; top: 8px; bottom: 8px; border-radius: 6px; background: #e7e9e2; font-size: 11.5px; color: var(--muted); padding: 2px 8px; overflow: hidden; white-space: nowrap; }
.tl-bar.r9 { background: var(--alert); color: #fff; font-weight: 700; cursor: pointer; left: 0; right: 0; border: 0; text-align: left; font-size: 12px; box-shadow: 0 0 0 3px var(--alert-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--alert-soft); } }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime-deep); z-index: 2; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 10, .55); display: grid; place-items: center; padding: 20px; }
.modal-box { background: var(--card); border-radius: 18px; max-width: 520px; width: 100%; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; }
.modal-box h3 { margin: 0 0 14px; font-size: 19px; }
.modal-box dl { margin: 0 0 18px; display: grid; grid-template-columns: 8em 1fr; gap: 8px 12px; font-size: 14.5px; }
.modal-box dt { color: var(--muted); }
.modal-box dd { margin: 0; }
.modal-box .warn { color: var(--alert); font-weight: 700; }
.modal-box .act { display: flex; justify-content: flex-end; gap: 10px; }

/* alteration overlay */
.alter { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; background: #000; }
.alter canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.alter .msg { position: relative; text-align: center; color: #fff; font-size: clamp(22px, 4vw, 40px); font-weight: 700; letter-spacing: .12em; text-shadow: 3px 0 #ff2a2a, -3px 0 #2affff; animation: jit .18s steps(2) infinite; }
.alter .msg small { display: block; margin-top: 18px; font-size: 13px; letter-spacing: .3em; text-shadow: none; color: #bbb; animation: none; }
@keyframes jit { 50% { transform: translate(2px, -1px); text-shadow: -3px 0 #ff2a2a, 3px 0 #2affff; } }

/* glitch on body when stage changes */
html.glitching body { animation: gl .45s steps(3); }
@keyframes gl { 33% { filter: hue-rotate(80deg) contrast(1.4); transform: translateX(3px); } 66% { filter: invert(1); transform: translateX(-3px); } }

@media (max-width: 960px) {
  .hero .container, .access, .r9-layout, .book { grid-template-columns: 1fr; }
  .rooms, .reviews { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .sim { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .site-header .hdr-cta { display: none; }
  .rooms, .reviews, .flow { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  section.sec { padding-block: 56px; }
  .topbar .ticker { margin-left: 0; }
}
