/* =========================================================
   宵ノ森 YOINOMORI — design sample (fictional)
   ========================================================= */
:root {
  --forest-950: #09140e;
  --forest-900: #0e1d15;
  --forest-800: #16301f;
  --forest-700: #21442e;
  --forest-500: #3f6b4c;
  --moss: #8aa577;
  --night-950: #050a1f;
  --night-900: #0a1233;
  --night-800: #0e1640;
  --night-600: #26306b;
  --ember: #ee7a2e;
  --ember-deep: #c8561a;
  --ember-soft: #f6a55a;
  --flame: #ffd08a;
  --canvas: #efe6d2;
  --canvas-2: #e3d5b9;
  --paper: #f7f2e7;
  --ink: #1a1f1a;
  --ink-soft: #4b524a;
  --line: rgba(26, 31, 26, .14);
  --line-light: rgba(239, 230, 210, .18);

  --f-slab: "Zilla Slab", "Rockwell", Georgia, serif;
  --f-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;

  --gutter: 20px;
  --radius: 18px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: .02em;
  /* Fallback sky for no-JS / no-WebGL */
  background: linear-gradient(180deg, #8fb7d2 0, #cfdfe0 60vh, #f1e4c6 100vh, var(--night-900) 100vh) no-repeat, var(--night-900);
  overflow-x: hidden;
}
html.webgl-on body { background: var(--night-950); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: .04em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-only { display: none; }
:focus-visible { outline: 3px solid var(--ember-soft); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- fixed layers ---------- */
.bg3d {
  position: fixed; inset: 0 auto auto 0;
  width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; display: none;
}
html.webgl-on .bg3d { display: block; }
.fireflies {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 40; pointer-events: none;
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; letter-spacing: .08em; text-decoration: none; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s ease, background-color .25s, box-shadow .25s, color .25s;
}
.btn--ember { background: var(--ember); color: #fff; box-shadow: 0 10px 30px -10px rgba(238, 122, 46, .8); }
.btn--ember:hover { background: var(--ember-deep); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--forest-900); background: rgba(247, 242, 231, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(247, 242, 231, .8); }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  color: var(--forest-900);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.site-header.is-solid {
  background: rgba(9, 20, 14, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--canvas);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header__inner {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; fill: var(--ember); color: currentColor; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__ja { font-weight: 700; font-size: 19px; letter-spacing: .14em; }
.logo__en { font-family: var(--f-slab); font-weight: 700; font-size: 10.5px; letter-spacing: .28em; opacity: .75; }

.nav-toggle { display: none; }
.global-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.global-nav a { text-decoration: none; font-weight: 500; }

html.js .nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; cursor: pointer; color: inherit;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s, opacity .3s; position: relative;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

html.js .global-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: rgba(9, 20, 14, .96); color: var(--canvas);
  padding: 12px var(--gutter) 28px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
}
html.js .global-nav.is-open { opacity: 1; visibility: visible; transform: none; }
html.js .global-nav ul { flex-direction: column; gap: 0; font-size: 16px; }
html.js .global-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-light); }
.global-nav__cta a { color: var(--ember-soft); }
html.no-js .site-header { position: absolute; height: auto; padding: 10px 0; }
html.no-js .site-header__inner { flex-wrap: wrap; }

/* ---------- section common ---------- */
.section { position: relative; padding: 88px 0; }
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.sec-en {
  font-family: var(--f-slab); font-weight: 700; font-style: italic;
  font-size: 15px; letter-spacing: .12em; color: var(--ember);
  margin-bottom: 8px; display: inline-flex; align-items: center; gap: 10px;
}
.sec-en::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.sec-title { font-size: clamp(26px, 6.6vw, 42px); font-weight: 700; }
.sec-lead { margin-top: 16px; color: var(--ink-soft); }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  color: var(--forest-900);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 60% at 20% 40%, rgba(247, 242, 231, .5), rgba(247, 242, 231, 0) 70%);
}
.hero__fallback { position: absolute; inset: auto 0 0 0; height: 40%; }
.hero__fallback svg { width: 100%; height: 100%; }
html.webgl-on .hero__fallback { display: none; }
.hero__inner { position: relative; max-width: 1140px; width: 100%; margin: 0 auto; transform: translateY(-6vh); }
.hero__eyebrow {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-family: var(--f-slab); font-weight: 700; font-size: 12.5px; letter-spacing: .22em;
  margin-bottom: 18px;
}
.hero__eyebrow span + span { font-family: var(--f-sans); letter-spacing: .12em; font-weight: 500; padding-left: 14px; border-left: 1px solid currentColor; }
.hero__title { display: flex; flex-direction: column; gap: 14px; }
.hero__title-ja { font-size: clamp(40px, 11.5vw, 88px); font-weight: 700; letter-spacing: .08em; line-height: 1.22; }
.hero__title-en {
  font-family: var(--f-slab); font-weight: 500; font-style: italic;
  font-size: clamp(18px, 4.6vw, 28px); letter-spacing: .04em; color: var(--forest-700);
}
.hero__lead { margin: 22px 0 30px; font-size: 15.5px; max-width: 34em; font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--canvas); text-align: center;
}
.hero__scroll span { font-family: var(--f-slab); font-weight: 700; letter-spacing: .3em; font-size: 12px; text-transform: uppercase; }
.hero__scroll em { font-style: normal; font-size: 11.5px; opacity: .85; }
.hero__scroll::after {
  content: ""; width: 1.5px; height: 40px; background: linear-gradient(currentColor, transparent);
  animation: drip 2.2s ease-in-out infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html.js .hero__inner > * { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both; }
html.js .hero__inner > *:nth-child(2) { animation-delay: .15s; }
html.js .hero__inner > *:nth-child(3) { animation-delay: .3s; }
html.js .hero__inner > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- about ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; gap: 48px; }
.about__text > p { color: var(--ink-soft); }
.about__points { margin-top: 26px; display: grid; gap: 10px; }
.about__points li {
  position: relative; padding: 14px 16px 14px 48px; background: var(--canvas); border-radius: 12px; font-size: 15px;
}
.about__points li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--forest-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 33a16 16 0 0 1 32 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 33a16 16 0 0 1 32 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.about__points strong { color: var(--forest-800); }
.about__visual { display: grid; gap: 28px; justify-items: center; }
.about__illust { width: min(100%, 420px); height: auto; filter: drop-shadow(0 30px 40px rgba(14, 22, 64, .25)); }
.about__fire { transform-origin: 320px 330px; animation: flick 1.2s ease-in-out infinite alternate; }
@keyframes flick { 0% { transform: scale(1, 1); } 50% { transform: scale(.94, 1.08) skewX(2deg); } 100% { transform: scale(1.04, .96) skewX(-2deg); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 460px; margin: 0; }
.stats div { text-align: center; padding: 14px 6px; border-top: 2px solid var(--forest-800); }
.stats dt { font-size: 11.5px; color: var(--ink-soft); }
.stats dd { margin: 0; }
.stats b { font-family: var(--f-slab); font-weight: 700; font-size: clamp(28px, 8vw, 40px); line-height: 1.1; color: var(--forest-800); }
.stats span { font-size: 12px; margin-left: 2px; }

/* ---------- tents ---------- */
.tents { background: var(--forest-900); color: var(--canvas); overflow: hidden; }
.tents::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 60%, rgba(63, 107, 76, .35), transparent 70%);
  pointer-events: none;
}
.tents .sec-lead { color: rgba(239, 230, 210, .78); }
.tents__grid { position: relative; display: grid; gap: 32px; }
.tent-viewer { position: relative; }
.tent-viewer__stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #2a4a36 0, #14281c 55%, #0b170f 100%);
  box-shadow: inset 0 0 0 1px var(--line-light);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.tent-viewer__stage.is-dragging { cursor: grabbing; }
.tent-viewer__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.tent-viewer__fallback { position: absolute; inset: 10%; width: 80%; height: 80%; }
.tent-viewer.is-3d .tent-viewer__fallback { display: none; }
.tent-viewer__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0;
  display: none; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(9, 20, 14, .6); font-size: 12px; letter-spacing: .1em; pointer-events: none;
  transition: opacity .5s;
}
.tent-viewer.is-3d .tent-viewer__hint { display: inline-flex; }
.tent-viewer.is-touched .tent-viewer__hint { opacity: 0; }
.tent-viewer__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tent-viewer__ctrl { display: none; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tent-viewer.is-3d .tent-viewer__ctrl { display: flex; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-light); background: rgba(239, 230, 210, .06);
  color: var(--canvas); cursor: pointer; font-size: 13.5px; transition: background-color .25s, color .25s, border-color .25s;
}
.chip-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip-btn:hover { background: rgba(239, 230, 210, .14); }
.chip-btn[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }

.tent-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 14px; background: rgba(239, 230, 210, .07); margin-bottom: 26px; }
html.no-js .tent-tabs { display: none; }
.tent-tabs button {
  border: 0; background: transparent; color: var(--canvas); cursor: pointer; border-radius: 10px;
  padding: 10px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  transition: background-color .25s, color .25s;
}
.tent-tabs button span { font-family: var(--f-slab); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.tent-tabs button small { font-size: 11px; opacity: .7; }
.tent-tabs button[aria-selected="true"] { background: var(--canvas); color: var(--forest-900); }
html.js .tent-panel[hidden] { display: none; }
.tent-panel + .tent-panel { margin-top: 32px; }
html.js .tent-panel + .tent-panel { margin-top: 0; }
.tent-panel { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tent-panel__type { font-family: var(--f-slab); font-weight: 700; letter-spacing: .24em; font-size: 12px; color: var(--ember-soft); margin-bottom: 4px; }
.tent-panel h3 { font-size: 26px; margin-bottom: 14px; }
.tent-panel > p:not(.tent-panel__type) { color: rgba(239, 230, 210, .82); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border-radius: 12px; overflow: hidden; margin: 22px 0 0; }
.spec div { background: var(--forest-900); padding: 12px 14px; }
.spec dt { font-size: 11.5px; opacity: .65; }
.spec dd { margin: 0; font-weight: 700; font-size: 15px; }
.tent-info__common { margin-top: 20px; font-size: 13px; color: rgba(239, 230, 210, .65); }

/* ---------- interludes (windows onto the 3D forest) ---------- */
.interlude {
  min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px var(--gutter); color: #fff;
}
html.no-js .interlude, html:not(.webgl-on) .interlude { background: linear-gradient(180deg, #2c3a78, #e0835a); }
html:not(.webgl-on) .interlude--night { background: radial-gradient(ellipse at 50% 20%, #1c2552, var(--night-950)); }
.interlude__time { font-family: var(--f-slab); font-weight: 700; font-size: 14px; letter-spacing: .4em; margin-bottom: 14px; opacity: .85; }
.interlude__copy { font-size: clamp(26px, 7vw, 48px); font-weight: 700; letter-spacing: .12em; line-height: 1.6; margin: 0; text-shadow: 0 2px 30px rgba(5, 10, 31, .55); }
.interlude__sub { margin-top: 18px; font-size: 14px; opacity: .8; }

/* ---------- days ---------- */
.days { background: var(--canvas); }
.days__grid { display: grid; gap: 24px; }
.days__visual { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; align-self: start; }
.days__sticky { position: relative; }
html.no-js .days__visual { position: static; }
.days__svg { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 50px -30px rgba(14, 22, 64, .5); background: #0b1438; }
.days__clock {
  position: absolute; top: 12px; left: 12px; margin: 0; display: flex; align-items: baseline; gap: 8px;
  padding: 4px 14px; border-radius: 999px; background: rgba(9, 20, 14, .55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
html.no-js .days__clock { display: none; }
.days__clock span { font-family: var(--f-slab); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.days__clock em { font-style: normal; font-family: var(--f-slab); font-size: 11px; letter-spacing: .3em; opacity: .8; }
.days__steps { display: grid; gap: 16px; counter-reset: step; }
.day-step {
  position: relative; background: var(--paper); border-radius: 14px; padding: 22px 22px 18px 22px;
  border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s, transform .4s;
}
.day-step.is-active { border-color: var(--ember); box-shadow: 0 18px 40px -24px rgba(200, 86, 26, .6); }
.day-step__time { font-family: var(--f-slab); font-weight: 700; font-size: 22px; color: var(--ember); margin-bottom: 2px; }
.day-step h3 { font-size: 18px; margin-bottom: 8px; }
.day-step p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- dining ---------- */
.dining { background: linear-gradient(180deg, var(--night-900), var(--forest-950)); color: var(--canvas); }
.dining .sec-lead { color: rgba(239, 230, 210, .78); }
.dining__fire {
  position: relative; height: 340px; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(238, 122, 46, .55), transparent 70%), #07090f;
}
.dining__fire canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dining__fire-copy { position: absolute; left: 20px; top: 18px; max-width: 60%; }
.dining__fire-copy p:last-child { font-size: 15px; font-weight: 500; }
.menu-grid { display: grid; gap: 14px; }
.menu-card {
  padding: 24px; border-radius: 16px; background: rgba(239, 230, 210, .05);
  border: 1px solid var(--line-light);
}
.menu-card__label { font-family: var(--f-slab); font-weight: 700; letter-spacing: .3em; font-size: 11.5px; color: var(--ember-soft); margin-bottom: 4px; }
.menu-card h3 { font-size: 20px; margin-bottom: 14px; }
.menu-card li { padding: 8px 0 8px 18px; border-top: 1px dashed var(--line-light); font-size: 14.5px; position: relative; }
.menu-card li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.menu-card small { opacity: .7; }
.dining__note { margin: 20px 0 0; font-size: 13px; opacity: .7; }

/* ---------- activity ---------- */
.activity { background: var(--paper); }
.act-grid { display: grid; gap: 14px; }
.act-card {
  padding: 24px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start;
  transition: transform .35s, box-shadow .35s;
}
.act-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(14, 29, 21, .5); }
.act-card svg {
  grid-row: span 3; width: 56px; height: 56px; padding: 10px; border-radius: 14px;
  background: var(--forest-800); fill: none; stroke: var(--canvas); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.act-card h3 { font-size: 17px; margin-bottom: 4px; }
.act-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.act-card__meta { margin-top: 8px !important; font-family: var(--f-sans); font-weight: 700; color: var(--forest-700) !important; font-size: 13px !important; }

/* ---------- plan ---------- */
.plan { background: var(--canvas-2); }
.plan-cards { display: grid; gap: 14px; }
.plan-card {
  position: relative; padding: 26px 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
}
.plan-card--feature { background: var(--forest-800); color: var(--canvas); border-color: transparent; }
.plan-card__badge {
  position: absolute; top: -12px; right: 18px; margin: 0; padding: 2px 12px; border-radius: 999px;
  background: var(--ember); color: #fff; font-size: 12px; font-weight: 700;
}
.plan-card__name { font-family: var(--f-slab); font-weight: 700; font-style: italic; font-size: 14px; letter-spacing: .06em; color: var(--ember); margin-bottom: 0; }
.plan-card--feature .plan-card__name { color: var(--ember-soft); }
.plan-card h3 { font-size: 19px; margin-bottom: 8px; }
.plan-card__price { margin: 0; }
.plan-card__price b { font-family: var(--f-slab); font-size: 38px; font-weight: 700; letter-spacing: .01em; }
.plan-card__cap { margin: 4px 0 0; font-size: 13px; opacity: .75; }
.plan__rules { font-size: 13.5px; color: var(--ink-soft); margin: 18px 0 40px; }

.sim {
  border-radius: 22px; overflow: hidden; background: var(--night-800); color: var(--canvas);
  box-shadow: 0 40px 80px -40px rgba(10, 18, 51, .8);
}
.sim__head { padding: 26px 22px 0; }
.sim__head h3 { font-size: 22px; margin-bottom: 4px; }
.sim__head p { font-size: 14px; opacity: .75; margin: 0; }
.sim__body { display: grid; }
.sim__inputs { padding: 22px; display: grid; gap: 20px; }
.sim__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.sim__group legend { font-size: 13px; font-weight: 700; opacity: .8; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 6px 4px;
  border-radius: 12px; border: 1px solid rgba(239, 230, 210, .22); font-size: 13.5px; font-weight: 500; line-height: 1.3;
  transition: background-color .2s, color .2s, border-color .2s;
}
.seg input:checked + span { background: var(--canvas); color: var(--night-800); border-color: var(--canvas); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--ember-soft); outline-offset: 2px; }
.sim__steppers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper label { display: block; font-size: 13px; font-weight: 700; opacity: .8; margin-bottom: 8px; }
.stepper__ctrl { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; border: 1px solid rgba(239, 230, 210, .22); border-radius: 12px; overflow: hidden; }
.stepper__ctrl button { height: 46px; border: 0; background: rgba(239, 230, 210, .06); cursor: pointer; font-size: 18px; }
.stepper__ctrl button:hover { background: rgba(239, 230, 210, .16); }
.stepper__ctrl input {
  width: 100%; height: 46px; border: 0; background: transparent; text-align: center;
  font-family: var(--f-slab); font-weight: 700; font-size: 20px; -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.stepper__ctrl input::-webkit-outer-spin-button, .stepper__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ember); }
.sim__result {
  padding: 26px 22px; background: linear-gradient(160deg, rgba(238, 122, 46, .16), rgba(14, 22, 64, 0) 60%), var(--night-900);
  border-top: 1px solid var(--line-light);
}
.sim__label { font-size: 13px; opacity: .8; margin-bottom: 0; }
.sim__total { margin: 0; line-height: 1.1; display: flex; align-items: baseline; gap: 6px; }
.sim__total span { font-family: var(--f-slab); font-weight: 700; font-size: clamp(44px, 13vw, 64px); color: var(--flame); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sim__total small { font-size: 16px; }
.sim__per { font-size: 13.5px; opacity: .8; margin: 6px 0 16px; }
.sim__breakdown { font-size: 13.5px; margin-bottom: 18px; }
.sim__breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-light); }
.sim__breakdown li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim__breakdown li.is-discount span:last-child { color: #9fd49b; }
.sim__warn { font-size: 13px; background: rgba(238, 122, 46, .18); border-left: 3px solid var(--ember); padding: 8px 12px; border-radius: 6px; }
.sim__note { font-size: 12px; opacity: .7; margin: 14px 0 0; }

/* ---------- access ---------- */
.access { background: var(--paper); }
.access__grid { display: grid; gap: 36px; }
.access__list { margin: 0; }
.access__list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.access__list dt { font-weight: 700; font-size: 14px; color: var(--forest-700); }
.access__list dd { margin: 0; font-size: 15px; }
.access__note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.access__map { margin: 0; }
.access__map svg { width: 100%; height: auto; border-radius: var(--radius); }
.access__map figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; text-align: right; }

/* ---------- reserve ---------- */
.reserve { background: var(--forest-900); color: var(--canvas); }
.reserve .sec-lead { color: rgba(239, 230, 210, .78); }
.reserve__grid { display: grid; gap: 24px; }
.cal { background: rgba(239, 230, 210, .05); border: 1px solid var(--line-light); border-radius: 18px; padding: 18px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__title { margin: 0; font-family: var(--f-slab); font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.cal__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.cal__nav:disabled { opacity: .3; cursor: default; }
html.no-js .cal__nav { visibility: hidden; }
.cal__nojs { font-size: 14px; opacity: .8; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { font-size: 11px; opacity: .6; padding: 4px 0; }
.cal__dow:first-child { color: #f0a08a; }
.cal__dow:last-child { color: #a8b8f0; }
.cal__day {
  aspect-ratio: 1 / 1.05; border-radius: 10px; border: 1px solid transparent; background: rgba(239, 230, 210, .05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--f-slab); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; min-width: 0;
  transition: background-color .2s, border-color .2s;
}
.cal__day:hover:not(:disabled) { border-color: var(--ember-soft); }
.cal__day:disabled { opacity: .3; cursor: default; }
.cal__day.is-selected { background: var(--ember); color: #fff; }
.cal__day i { width: 6px; height: 6px; border-radius: 50%; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--ok, .cal__day i.ok { background: #9fd49b; }
.dot--few, .cal__day i.few { background: var(--ember-soft); }
.dot--full, .cal__day i.full { background: rgba(239, 230, 210, .3); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; opacity: .8; margin: 14px 0 0; }

.rform { display: grid; gap: 16px; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 24px 20px; }
.rform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; }
.rform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rform input, .rform select, .rform textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(26, 31, 26, .25);
  background: #fff; font-weight: 400; font-size: 16px;
}
.rform textarea { resize: vertical; }
.rform input:focus, .rform select:focus, .rform textarea:focus { outline: 2px solid var(--ember); outline-offset: 0; border-color: transparent; }
.rform__demo { font-size: 12.5px; color: var(--ink-soft); margin: 0; text-align: center; }
.rform__done { padding: 16px; border-radius: 12px; background: var(--forest-800); color: var(--canvas); font-size: 14px; }
.rform__done p:last-child { margin: 0; }
.rform__done-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer {
  padding: 120px 0 110px; color: var(--canvas);
  background: linear-gradient(180deg, var(--forest-900), rgba(5, 10, 31, .55) 60%, rgba(5, 10, 31, .3));
}
html:not(.webgl-on) .site-footer { background: var(--night-950); }
.site-footer__inner { display: grid; gap: 18px; justify-items: start; }
.logo--footer .logo__mark { width: 44px; height: 44px; }
.site-footer__addr { font-size: 13.5px; opacity: .8; margin: 0; }
.site-footer__copy { font-size: 12px; opacity: .6; margin: 0; }

/* ---------- sample badge ---------- */
.sample-badge {
  position: fixed; right: 10px; bottom: 10px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(9, 20, 14, .82); color: var(--canvas);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; line-height: 1.5; max-width: calc(100vw - 20px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.sample-badge a { color: var(--flame); font-weight: 700; text-decoration: none; }
.sample-badge a:hover { text-decoration: underline; }

/* =========================================================
   Tablet / PC
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .section { padding: 120px 0; }
  .pc-only { display: inline; }
  .about__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .tents__grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
  .days__grid { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
  .days__steps { gap: 28vh; padding: 12vh 0 24vh; }
  .dining__fire { height: 420px; }
  .dining__fire-copy { left: 36px; top: 30px; }
  .dining__fire-copy p:last-child { font-size: 20px; }
  .menu-grid, .plan-cards { grid-template-columns: repeat(3, 1fr); }
  .plan-card--feature { transform: translateY(-10px); }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .sim__body { grid-template-columns: 1.25fr 1fr; }
  .sim__head { padding: 34px 36px 0; }
  .sim__inputs { padding: 28px 36px 36px; }
  .sim__result { padding: 34px 32px; border-top: 0; border-left: 1px solid var(--line-light); }
  .access__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .reserve__grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .rform { padding: 32px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__copy { grid-column: 1 / -1; }
  .sample-badge { right: 16px; bottom: 16px; font-size: 12px; }
}
@media (min-width: 1024px) {
  html.js .nav-toggle { display: none; }
  html.js .global-nav {
    position: static; background: transparent; color: inherit; padding: 0;
    transform: none; opacity: 1; visibility: visible;
  }
  html.js .global-nav ul { flex-direction: row; align-items: center; gap: 26px; font-size: 14px; }
  html.js .global-nav li a { padding: 6px 0; border: 0; position: relative; }
  html.js .global-nav li:not(.global-nav__cta) a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .3s;
  }
  html.js .global-nav li a:hover::after { transform: scaleX(1); transform-origin: left; }
  html.js .global-nav__cta a { padding: 10px 22px !important; border-radius: 999px; background: var(--ember); color: #fff; font-weight: 700; }
  .act-grid { grid-template-columns: repeat(3, 1fr); }
  .act-card { grid-template-columns: 1fr; row-gap: 4px; padding: 28px; }
  .act-card svg { grid-row: auto; margin-bottom: 12px; }
  .hero__lead { font-size: 17px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .fireflies { display: none; }
}
