@font-face {
  font-family: "Noto Serif SC";
  src: url("../assets/fonts/noto-serif-sc-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("../assets/fonts/noto-serif-sc-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/noto-sans-sc-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/noto-sans-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #07111f;
  --navy-2: #101c31;
  --ink: #162033;
  --gold: #d4b870;
  --gold-deep: #7a5a1e;
  --cream: #f4ead2;
  --cream-2: #efe4c8;
  --paper: #f7f1e4;
  --line: rgba(212, 184, 112, 0.45);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --latin: "Cormorant Garamond", "Palatino Linotype", serif;
  --max: 1024px;
  --header: 72px;
  --page-pad: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
  padding: 0 var(--page-pad);
  background: rgba(7, 17, 31, 0.92);
  border-bottom: 1px solid rgba(212, 184, 112, 0.22);
  backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.topnav a {
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topnav a:hover { color: var(--gold); }
.topnav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.top-cta {
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.top-cta:hover { background: var(--gold); color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--gold);
  color: #1c1408;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn:hover { background: #e4cc90; }
.btn:focus-visible, .top-cta:focus-visible, .text-btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-block { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: 36px var(--page-pad) 40px;
}
.eyebrow, .kicker {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 13px;
}
.hero h1 {
  font-size: clamp(50px, 7.2vw, 92px);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero h1 .latin, .bf-title span {
  font-family: var(--latin);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.subtitle {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.7vw, 28px);
  color: var(--cream);
}
.author-line {
  margin-top: 10px;
  letter-spacing: 0.22em;
  color: #efe2c4;
}
.blurb {
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}
.offer {
  margin-top: 32px;
  padding: 22px 24px 24px;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(122, 90, 30, 0.18);
  max-width: 420px;
}
.offer-kicker {
  color: var(--gold-deep);
  letter-spacing: 0.2em;
  font-size: 13px;
}
.price {
  font-family: var(--serif);
  font-size: 16px;
  margin: 4px 0 8px;
}
.price span {
  font-family: var(--latin);
  font-size: 64px;
  line-height: 0.9;
  font-weight: 600;
  margin-right: 6px;
}
.offer-meta { color: var(--ink); }
.offer .btn { margin-top: 18px; }

.book {
  margin: 0;
  justify-self: center;
  width: min(100%, 360px);
}
.book img {
  width: 100%;
  height: auto;
  border-radius: 2px 10px 10px 2px;
  box-shadow: var(--shadow), -14px 0 24px rgba(0, 0, 0, 0.25);
}
.book.is-missing img { display: none; }
.book-fallback {
  aspect-ratio: 720 / 1000;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(212, 184, 112, 0.16), transparent 55%),
    linear-gradient(#0c1c36, #07111f 42%, #0a1730);
  border: 1px solid var(--line);
  border-radius: 2px 10px 10px 2px;
  box-shadow: var(--shadow);
  padding: 12% 10% 8%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.book-fallback[hidden] { display: none; }
.bf-kicker { color: var(--gold); letter-spacing: 0.14em; font-size: 13px; }
.bf-title {
  margin-top: 18%;
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 500;
}
.bf-sub { margin-top: 16px; font-family: var(--serif); font-size: 18px; }
.bf-by { margin-top: 18px; letter-spacing: 0.2em; }
.bf-note {
  margin: 10px 0 0;
  color: #cbbfa6;
  font-size: 13px;
  text-align: center;
}
.reel.is-missing .reel-frame,
.reel.is-missing .reel-frame-wide,
.reel-vertical.is-missing .reel-frame {
  height: auto;
  min-height: 0;
}

.why, .route, .author {
  background: var(--paper);
  color: var(--ink);
}
.why .kicker, .route .kicker, .author .kicker {
  color: var(--gold-deep);
}
.why, .route, .author, .atlas, .reserve {
  padding: 40px var(--page-pad);
}
.section-head, .why-lead, .gain-grid, .path, .district-board, .lighthouse, .bio, .atlas-grid, .reel-horizontal, .reserve-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 { font-size: clamp(27px, 4vw, 40px); max-width: 16em; }
.section-head .lede, .why-lead p + p { margin-top: 10px; }
.why-lead { margin-top: 28px; font-size: 16px; max-width: 820px; }
.subhead {
  max-width: var(--max);
  margin: 56px auto 20px;
  font-size: 25px;
}
.gain-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.gain-grid li {
  background: #fffaf0;
  border: 1px solid rgba(22, 32, 51, 0.08);
  padding: 24px 24px 28px;
  min-height: 180px;
}
.gain-index {
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  font-family: var(--latin);
  font-size: 20px;
}
.gain-grid h4 { margin: 8px 0 10px; font-size: 22px; }
.path {
  list-style: none;
  padding: 8px 0 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.path li {
  background: var(--navy);
  color: var(--cream);
  padding: 18px 14px 16px;
  min-height: 148px;
  word-break: keep-all;
}
.path span { display: block; color: var(--gold); font-size: 13px; letter-spacing: 0.14em; }
.path strong { display: block; margin-top: 10px; font-family: var(--serif); font-size: 16px; font-weight: 600; word-break: keep-all; }
.path em { display: block; margin-top: 8px; font-style: normal; color: #cbbfa6; font-size: 13px; }
.gain-grid li, .gain-grid p, .why-lead { word-break: keep-all; }

.mid-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: 20px var(--page-pad);
}
.mid-kicker { color: var(--gold); letter-spacing: 0.18em; font-size: 13px; }
.mid-title { font-family: var(--serif); font-size: 28px; }
.mid-meta { color: #efe2c4; }

.atlas { background: var(--navy-2); }
.section-head.light h2, .section-head.light .lede { color: var(--cream); }
.section-head .lede { max-width: 40em; color: #d9d0bd; }
.town-line {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0;
}
.town-line li {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 15px;
}
.town-line a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.town-line a:hover { color: var(--gold); }
.map-walk {
  max-width: var(--max);
  margin: 12px auto 0;
  font-size: 14px;
}
.map-walk a,
.map-enter-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.map-walk a:hover,
.map-enter-link:hover { color: var(--cream); }
a.map-enter { display: block; height: 100%; color: inherit; text-decoration: none; }
.reel figcaption a,
.entrance figcaption a { color: inherit; text-decoration: none; }
.reel figcaption a:hover,
.entrance figcaption a:hover { color: var(--gold); }
.atlas-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.42fr);
  gap: 20px;
  align-items: start;
}
.atlas-grid.is-solo {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}
.reel, .entrance { margin: 0; }
.reel figcaption, .entrance figcaption { margin-bottom: 8px; }
.reel figcaption span, .entrance figcaption span {
  display: block;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 12px;
}
.reel figcaption strong, .entrance figcaption strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.reel-frame {
  position: relative;
  background: #050b14;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 200px;
}
.reel-vertical .reel-frame {
  height: min(42vh, 380px);
  --pan: min(42vh, 380px);
  container-type: size;
}
.reel-frame-video { aspect-ratio: 9 / 16; max-height: min(42vh, 380px); }
.reel-frame-wide {
  height: min(28vh, 224px);
  container-type: size;
}
.reel-video, .reel-still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050b14;
}
.reel-still-wrap {
  height: 100%;
  overflow: hidden;
}
.reel-vertical .reel-still, .reel-horizontal .reel-still {
  width: auto;
  max-width: none;
  height: auto;
  object-fit: unset;
}
.reel-vertical .reel-still { width: 100%; }
.reel-vertical.is-pan .reel-still {
  animation: pan-y 48s linear infinite alternate;
}
.reel.is-paused .reel-still { animation-play-state: paused; }
.reel-horizontal .reel-still { height: 100%; width: auto; max-width: none; }
.reel-horizontal.is-pan .reel-still-wrap { overflow: hidden; }
.reel-horizontal.is-pan .reel-still {
  animation: pan-x 42s linear infinite alternate;
}
.reel-horizontal .reel-frame { overflow: auto; }
.reel.is-video .reel-still-wrap,
.reel.is-still .reel-video,
.reel.is-missing .reel-still-wrap,
.reel.is-missing .reel-video,
.entrance.is-missing .reel-video { display: none; }
.reel-missing {
  margin: 0;
  padding: 28px;
  color: #cbbfa6;
}
.reel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  color: #cbbfa6;
  font-size: 14px;
}
.text-btn {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.hint { margin: 0; }
.reel-horizontal { margin-top: 16px; }
.reel-horizontal.is-video .reel-video { display: none; }
.reel-horizontal.is-video .reel-still-wrap { display: block; height: 100%; }

@keyframes pan-y {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% + var(--pan, 70vh))); }
}
@keyframes pan-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 100cqw)); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-vertical.is-pan .reel-still,
  .reel-horizontal.is-pan .reel-still { animation: none; }
  html { scroll-behavior: auto; }
}

.route { padding-top: 36px; }
.route .section-head .lede { color: #3d4a60; }
.district-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: start;
}
.district {
  border-top: 1px solid rgba(22, 32, 51, 0.12);
  padding: 16px 0 8px;
  min-width: 0;
}
.district header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
  margin-bottom: 6px;
  align-items: baseline;
}
.district-no {
  font-family: var(--latin);
  font-size: 24px;
  color: var(--gold-deep);
  margin: 0;
  line-height: 1;
}
.district h3 { font-size: 20px; margin: 0; }
.district header p { color: #3d4a60; margin: 2px 0 0; font-size: 13px; letter-spacing: 0.08em; }
.district ol {
  list-style: none;
  margin: 4px 0 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px 20px;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}
.district ol.station-row {
  grid-template-columns: 1fr 1fr;
}
.district li { padding-left: 0; }
.district-dark {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--cream);
  margin-top: 8px;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding: 18px max(var(--page-pad), calc((100% - var(--max)) / 2 + var(--page-pad))) 14px;
  border-top: 0;
}
.district-dark header p, .district-dark .risk-note { color: #d9d0bd; }
.district-dark .district-no { color: var(--gold); }
.district-dark ol { margin-left: 44px; }
.risk-note {
  margin: 8px 0 0 44px;
  max-width: 46em;
  font-size: 13px;
}
.lighthouse {
  margin-top: 4px;
  padding: 16px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
}

.author .titles {
  margin-top: 12px;
  letter-spacing: 0.06em;
  color: #3d4a60;
}
.bio {
  margin-top: 16px;
  max-width: 46em;
  font-size: 16px;
}

.reserve { background: var(--navy); }
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.reserve h2 { font-size: clamp(28px, 4.2vw, 44px); }
.reserve-lead { margin: 8px 0 14px; font-size: 15px; max-width: 28em; }
.specs { margin: 0; }
.specs div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 184, 112, 0.25);
}
.specs dt { color: var(--gold); }
.specs dd { margin: 0; }
.fine { margin-top: 18px; color: #cbbfa6; max-width: 36em; font-size: 14px; }

form {
  background: #0c1a2e;
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
}
form h3 { font-size: 24px; }
.form-lead { margin: 8px 0 18px; color: #d9d0bd; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; letter-spacing: 0.06em; }
.field label span { margin-left: 8px; color: #cbbfa6; letter-spacing: 0; }
input, textarea {
  width: 100%;
  background: rgba(244, 234, 210, 0.06);
  color: var(--cream);
  border: 1px solid rgba(212, 184, 112, 0.35);
  border-radius: 8px;
  padding: 12px 12px;
  font-size: 16px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #cbbfa6; opacity: 1; }
.form-error { color: #ffd0d0; margin: 0 0 12px; }
.intent-result { margin-top: 18px; }
.intent-result h4 { font-size: 20px; margin-bottom: 8px; }
.intent-result textarea {
  margin-top: 12px;
  min-height: 160px;
  background: #07111f;
}
.copy-status { min-height: 1.5em; color: var(--gold); margin-top: 8px; }


.entries {
  background: var(--navy);
  padding: 36px var(--page-pad) 48px;
}
.entries-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.entry {
  background:
    linear-gradient(180deg, rgba(212, 184, 112, 0.12), transparent 42%),
    #1a2c48;
  border: 1px solid var(--gold);
  padding: 40px 36px 44px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.entry-status {
  margin: 0 0 16px;
  text-align: center;
  color: #cbbfa6;
  letter-spacing: 0.2em;
  font-size: 14px;
}
.entry h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 52px);
  color: var(--cream);
  line-height: 1.15;
  word-break: keep-all;
}
.entry-lead {
  margin-top: 16px;
  color: #efe2c4;
  max-width: 22em;
  font-size: 18px;
}

.colophon {
  padding: 28px var(--page-pad) 16px;
  text-align: center;
  color: #cbbfa6;
  font-size: 13px;
}
.colophon p + p { margin-top: 4px; }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 17, 31, 0.96);
  border-top: 1px solid rgba(212, 184, 112, 0.28);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dock p { display: flex; flex-direction: column; line-height: 1.3; }
.dock strong { font-family: var(--serif); font-size: 20px; }
.dock span { color: #cbbfa6; font-size: 12px; }

@media (max-width: 980px) {
  :root { --header: 60px; --page-pad: 32px; }
  .topbar { gap: 14px; padding: 0 var(--page-pad); }
  .topnav { gap: 14px; font-size: 13px; }
  .hero { padding: 32px var(--page-pad) 36px; gap: 28px; }
  .hero h1 { font-size: clamp(42px, 6.4vw, 64px); }
  .price span { font-size: 50px; }
  .why, .route, .author, .atlas, .reserve { padding: 32px var(--page-pad); }
  .entries { padding: 32px var(--page-pad) 40px; }
}

@media (max-width: 720px) {
  :root { --header: 42px; --page-pad: 20px; }
  body { font-size: 12px; line-height: 1.55; padding-bottom: 0; }
  .topbar {
    gap: 6px;
    padding: 0 14px;
    min-height: var(--header);
  }
  .brand { font-size: 13px; letter-spacing: 0.06em; flex: 0 0 auto; }
  .topnav {
    display: flex;
    gap: 6px;
    margin-left: auto;
    padding-left: 6px;
    border-left: 1px solid rgba(212, 184, 112, 0.35);
    font-size: 10px;
    letter-spacing: 0.02em;
    flex-wrap: nowrap;
  }
  .topnav a { white-space: nowrap; color: #efe2c4; }
  .top-cta {
    display: inline-flex;
    font-size: 10px;
    padding: 4px 8px;
    letter-spacing: 0;
  }
  .dock { display: none; }
  .topbar, main, .hero, .atlas, .reel-horizontal, .mid-cta, .reserve, .entries, .route, .author {
    max-width: 100%;
  }
  .reel-horizontal .reel-frame,
  .reel-horizontal .reel-still-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .why, .route, .author, .atlas, .reserve, .entries, .hero, .mid-cta, .colophon {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }

  /* Same two-column composition as the desktop site, scaled down further. */
  .hero {
    grid-template-columns: minmax(0, 1fr) 114px;
    gap: 10px;
    align-items: center;
    padding: 12px var(--page-pad) 14px;
  }
  .hero-copy, .book { min-width: 0; }
  .book { order: 0; width: 114px; max-width: 114px; justify-self: end; }
  .eyebrow, .kicker { margin-bottom: 6px; font-size: 9px; letter-spacing: 0.14em; }
  .hero h1 { font-size: clamp(24px, 7vw, 28px); }
  .subtitle { font-size: 12px; margin-top: 3px; }
  .author-line { margin-top: 4px; letter-spacing: 0.1em; font-size: 11px; }
  .blurb { margin-top: 8px; font-size: 11px; padding-left: 8px; line-height: 1.5; }
  .intro-author {
  margin-top: 16px;
  max-width: 38em;
}
.intro-author .titles {
  margin: 0;
  letter-spacing: 0.06em;
  color: #cbbfa6;
  font-size: 13px;
}
.intro-author .bio {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #efe2c4;
  max-width: none;
}

.offer { margin-top: 8px; padding: 10px 12px 12px; max-width: none; }
  .offer-kicker { font-size: 9px; }
  .price { font-size: 11px; margin: 2px 0 3px; }
  .price span { font-size: 28px; margin-right: 4px; }
  .offer-meta { font-size: 11px; }
  .offer .btn, .btn { min-height: 32px; padding: 0 12px; font-size: 12px; }
  .offer .btn { margin-top: 8px; }

  .why, .route, .author, .atlas, .reserve { padding-top: 14px; padding-bottom: 14px; }
  .route { padding-top: 12px; }
  .section-head h2 { font-size: clamp(16px, 4.8vw, 19px); }
  .section-head .lede { font-size: 11px; margin-top: 4px; }
  .town-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    margin: 8px auto 0;
  }
  .town-line li { font-size: 10px; padding-top: 3px; line-height: 1.3; word-break: keep-all; }

  .atlas-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(80px, 0.38fr);
    gap: 8px;
    margin-top: 8px;
    align-items: start;
  }
  .reel figcaption, .entrance figcaption { margin-bottom: 3px; }
  .reel figcaption span, .entrance figcaption span { font-size: 9px; }
  .reel figcaption strong, .entrance figcaption strong { font-size: 12px; }
  .reel-vertical .reel-frame,
  .reel-frame-video {
    height: 148px;
    max-height: 148px;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    --pan: 148px;
  }
  .reel-frame-wide { height: 46px; width: 100%; max-width: 100%; min-height: 0; }
  .reel-horizontal { margin-top: 6px; }
  .reel-horizontal.is-video .reel-video { display: none; }
  .reel-horizontal.is-video .reel-still-wrap { display: block; height: 46px; overflow: auto; }
  .reel-horizontal .reel-still { height: 46px; width: auto; max-width: none; }
  .reel-controls { margin-top: 4px; font-size: 10px; gap: 6px; }
  .hint { font-size: 10px; }

  .district-board { column-gap: 10px; }
  .district { padding: 8px 0 3px; }
  .district header { grid-template-columns: 20px 1fr; gap: 4px; margin-bottom: 3px; }
  .district-no { font-size: 14px; }
  .district h3 { font-size: 12px; }
  .district header p { font-size: 9px; letter-spacing: 0.04em; }
  .district ol {
    grid-template-columns: 1fr;
    margin: 2px 0 0 0;
    gap: 1px 8px;
    font-size: 10px;
    line-height: 1.35;
    word-break: keep-all;
  }
  .district ol.station-dense,
  .district ol.station-row { grid-template-columns: 1fr; }
  .risk-note { margin: 4px 0 0 0; font-size: 10px; }
  .district-dark {
    width: auto;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding: 10px var(--page-pad) 8px;
  }
  .district-dark ol { margin-left: 0; }
  .lighthouse { font-size: 13px; padding-top: 8px; }

  .author .titles { font-size: 10px; margin-top: 6px; letter-spacing: 0.04em; }
  .bio { font-size: 12px; margin-top: 8px; }

  .mid-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px var(--page-pad);
  }
  .mid-cta .btn { width: auto; flex: 0 0 auto; }
  .mid-kicker { font-size: 9px; }
  .mid-title { font-size: 15px; }
  .mid-meta { font-size: 11px; }

  .reserve-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .reserve h2 { font-size: 19px; }
  .reserve-lead { margin: 4px 0 6px; font-size: 11px; }
  .specs div { grid-template-columns: 4.2em 1fr; gap: 5px; padding: 4px 0; font-size: 11px; }
  .fine { margin-top: 6px; font-size: 10px; }
  form { padding: 10px 10px 8px; }
  form h3 { font-size: 14px; }
  .form-lead { margin: 3px 0 6px; font-size: 10px; }
  .field { margin-bottom: 5px; gap: 2px; }
  .field label { font-size: 11px; }
  input, textarea { font-size: 16px; padding: 7px 9px; }
  textarea { min-height: 0; }
  .colophon { padding: 10px var(--page-pad) 6px; font-size: 10px; }

  .entries {
    grid-template-columns: 1fr 1fr;
    padding: 16px var(--page-pad) 20px;
  }
  .entries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .entry { padding: 16px 12px 18px; min-height: 150px; border-width: 1px; }
  .entry-status { font-size: 11px; margin-bottom: 8px; letter-spacing: 0.14em; }
  .entry h2 { font-size: 20px; word-break: keep-all; }
  .entry-lead { font-size: 13px; margin-top: 8px; }
}


/* —— Shared page chrome and the two inner pages —— */
#why, #route, #risk, #district-01, #district-02, #district-04, #district-05, #lighthouse, #reserve, #share, #map, #top {
  scroll-margin-top: calc(var(--header) + 12px);
}

.page-head {
  max-width: calc(var(--max) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: 48px var(--page-pad) 28px;
}
.page-head h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  max-width: 14em;
}
.subtoc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.subtoc a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.subtoc a:hover { color: var(--cream); }

/* Contents page: spacious reading rhythm, distinct from the short homepage */
.page-contents .why,
.page-contents .route {
  padding: 64px var(--page-pad);
}
.page-contents .why-lead {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.85;
  max-width: 820px;
}
.page-contents .why-lead p + p { margin-top: 16px; }
.page-contents .subhead {
  margin: 48px auto 24px;
  font-size: 23px;
}
.page-contents .gain-grid { gap: 22px; }
.page-contents .gain-grid li {
  padding: 28px 28px 30px;
  min-height: 0;
}
.page-contents .gain-index { font-size: 18px; }
.page-contents .gain-grid h4 { margin: 8px 0 10px; font-size: 20px; }
.page-contents .path {
  margin-top: 36px;
  gap: 14px;
}
.page-contents .path li {
  padding: 22px 16px 20px;
  min-height: 160px;
}
.page-contents .section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.page-contents .route .section-head .lede {
  color: #3d4a60;
  font-size: 16px;
  margin-top: 14px;
  line-height: 1.7;
}
.page-contents .district { padding: 22px 0 14px; }
.page-contents .district header { margin-bottom: 10px; }
.page-contents .district h3 { font-size: 22px; }
.page-contents .district ol {
  font-size: 15px;
  line-height: 1.7;
  gap: 6px 20px;
  word-break: keep-all;
}
.page-contents .district-dark {
  margin-top: 12px;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding: 24px max(var(--page-pad), calc((100% - var(--max)) / 2 + var(--page-pad))) 20px;
}
.page-contents .risk-note { font-size: 14px; margin-top: 12px; }
.page-contents .lighthouse { font-size: 23px; padding-top: 24px; }

/* Share / referral page — same system, no invented rates */
.share {
  padding: 56px var(--page-pad) 64px;
}
.share-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.share-copy h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  margin-top: 8px;
  word-break: keep-all;
}
.status-flag {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 13px;
}
.share-lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
  max-width: 28em;
  word-break: keep-all;
}
.share-body {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #efe2c4;
  max-width: 36em;
}
.tier-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  max-width: 28em;
}
.tier {
  background: var(--paper);
  color: var(--ink);
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
}
.tier-label {
  margin: 0;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  font-size: 13px;
}
.tier-rate {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.tier-rate span {
  font-family: var(--sans);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  margin-right: 2px;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.share-meta {
  margin-top: 22px;
  color: #cbbfa6;
  font-size: 13px;
}
.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.text-link:hover { color: var(--cream); }
.page-share form {
  /* form already styled globally */
}

.purchase-records {
  max-width: var(--max);
  margin: 48px auto 0;
}
.purchase-records h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.purchase-records-lead {
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #efe2c4;
  max-width: 36em;
}
.purchase-records-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(212, 184, 112, 0.28);
  background: #101c31;
}
.purchase-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.purchase-records-table th,
.purchase-records-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 184, 112, 0.16);
  vertical-align: top;
}
.purchase-records-table th {
  color: #cbbfa6;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 500;
}
.purchase-records-table td {
  color: var(--cream);
}
.purchase-records-table tbody tr:last-child td {
  border-bottom: 0;
}
.purchase-records-table .is-empty td {
  color: #cbbfa6;
  text-align: center;
  padding: 28px 16px;
}
.purchase-records-table .record-type,
.purchase-records-table .record-commission {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .purchase-records { margin-top: 28px; }
  .purchase-records h2 { font-size: 18px; }
  .purchase-records-lead { font-size: 13px; margin-bottom: 14px; }
  .purchase-records-table { font-size: 13px; }
  .purchase-records-table th,
  .purchase-records-table td { padding: 10px 12px; }
}

@media (max-width: 980px) {
  .page-head { padding: 36px var(--page-pad) 22px; }
  .page-contents .why,
  .page-contents .route { padding: 48px var(--page-pad); }
  .page-contents .path { grid-template-columns: repeat(3, 1fr); }
  .share { padding: 40px var(--page-pad) 48px; }
  .share-grid { gap: 32px; }
}

@media (max-width: 720px) {
  .intro-author { margin-top: 8px; }
  .intro-author .titles { font-size: 9px; letter-spacing: 0.04em; }
  .intro-author .bio { font-size: 11px; margin-top: 4px; line-height: 1.5; }
  .map-walk { margin-top: 8px; font-size: 11px; }
  .map-enter-link { font-size: 10px; }

  /* Contents: compact on a phone, without tightening the home or share pages */
  .page-contents { font-size: 13px; line-height: 1.55; }
  .page-contents .page-head { padding: 16px var(--page-pad) 10px; }
  .page-contents .page-head h1 { font-size: clamp(18px, 5.6vw, 24px); }
  .page-contents .subtoc { margin-top: 8px; font-size: 12px; gap: 6px 12px; }
  .page-contents .why,
  .page-contents .route {
    padding: 16px var(--page-pad);
  }
  .page-contents .section-head h2 { font-size: clamp(17px, 5.2vw, 20px); }
  .page-contents .section-head .lede,
  .page-contents .route .section-head .lede {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.5;
    color: #3d4a60;
  }
  .page-contents .kicker { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 4px; }
  .page-contents .why-lead { margin-top: 10px; font-size: 13px; line-height: 1.6; }
  .page-contents .why-lead p + p { margin-top: 8px; }
  .page-contents .subhead { margin: 16px auto 8px; font-size: 15px; }
  .page-contents .gain-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .page-contents .gain-grid li { padding: 10px 12px 10px; min-height: 0; }
  .page-contents .gain-index { font-size: 13px; }
  .page-contents .gain-grid h4 { font-size: 14px; margin: 2px 0 4px; }
  .page-contents .gain-grid p { font-size: 12px; line-height: 1.5; }
  .page-contents .path {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
    gap: 6px;
  }
  .page-contents .path li { min-height: 0; padding: 8px 10px; }
  .page-contents .path span { font-size: 10px; letter-spacing: 0.1em; }
  .page-contents .path strong { font-size: 13px; margin-top: 4px; }
  .page-contents .path em { font-size: 11px; margin-top: 2px; }
  .page-contents .district-board { grid-template-columns: 1fr; gap: 0; }
  .page-contents .district { padding: 10px 0 6px; }
  .page-contents .district header { grid-template-columns: 24px 1fr; gap: 6px; margin-bottom: 4px; }
  .page-contents .district-no { font-size: 16px; }
  .page-contents .district h3 { font-size: 16px; }
  .page-contents .district header p { font-size: 11px; letter-spacing: 0.06em; }
  .page-contents .district ol {
    grid-template-columns: 1fr;
    margin: 2px 0 0 0;
    gap: 2px;
    font-size: 12px;
    line-height: 1.45;
    word-break: keep-all;
  }
  .page-contents .district ol.station-dense,
  .page-contents .district ol.station-row { grid-template-columns: 1fr; }
  .page-contents .risk-note { margin: 6px 0 0 0; font-size: 11px; }
  .page-contents .district-dark {
    width: auto;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding: 10px var(--page-pad) 8px;
  }
  .page-contents .district-dark ol { margin-left: 0; }
  .page-contents .lighthouse { font-size: 15px; padding-top: 10px; }
  .page-contents .mid-cta { padding: 12px var(--page-pad); }
  .page-contents .mid-title { font-size: 17px; }
  .page-contents .mid-meta { font-size: 12px; }
  .page-contents .colophon { padding: 12px var(--page-pad) 16px; font-size: 11px; }

  /* Share page stays readable on mobile, stacked like reserve */
  .page-share { font-size: 14px; line-height: 1.7; }
  .share { padding: 24px var(--page-pad) 32px; }
  .share-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .share-copy h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .share-lead { font-size: 15px; margin-top: 14px; }
  .share-body { font-size: 13px; }
  .tier-board { margin-top: 18px; gap: 10px; max-width: none; }
  .tier { padding: 14px 14px 12px; }
  .tier-label { font-size: 11px; }
  .tier-rate span { font-size: 36px; }
  .share-meta { font-size: 12px; }
  .page-share form { padding: 16px 14px 14px; }
  .page-share form h3 { font-size: 16px; }
  .page-share .form-lead { font-size: 12px; }
  .page-share input,
  .page-share textarea { font-size: 16px; }
  .page-share .colophon { padding: 16px var(--page-pad) 20px; font-size: 12px; }
}

/* —— Phone-only tighter type and wider side padding for all three pages —— */
/* Desktop rules are left unchanged. These overrides only apply at max-width 720px. */
@media (max-width: 720px) {
  :root { --page-pad: 28px; }

  .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }
  .brand { font-size: 12px; }
  .topnav { font-size: 9px; gap: 5px; }
  .top-cta { font-size: 9px; padding: 4px 7px; }
  .kicker { font-size: 8px; }
  .btn { min-height: 30px; padding: 0 11px; font-size: 11px; }

  /* Home */
  body.page-home { font-size: 11px; line-height: 1.5; }
  body.page-home .hero {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 8px;
    padding: 12px 28px 14px;
  }
  body.page-home .book { width: 100px; max-width: 100px; }
  body.page-home .eyebrow { font-size: 8px; }
  body.page-home .hero h1 { font-size: clamp(21px, 6.2vw, 25px); }
  body.page-home .subtitle { font-size: 11px; }
  body.page-home .author-line { font-size: 10px; }
  body.page-home .blurb { font-size: 14px; font-weight: 700; line-height: 1.45; padding-left: 8px; }
  body.page-home .intro-author .titles { font-size: 8px; }
  body.page-home .intro-author .bio { font-size: 10px; line-height: 1.5; }
  body.page-home .offer-kicker { font-size: 8px; }
  body.page-home .price { font-size: 10px; }
  body.page-home .price span { font-size: 24px; }
  body.page-home .offer-meta { font-size: 10px; }
  body.page-home .section-head h2 { font-size: clamp(14px, 4.4vw, 17px); }
  body.page-home .section-head .lede { font-size: 10px; }
  body.page-home .town-line li { font-size: 9px; }
  body.page-home .map-walk { font-size: 10px; }
  body.page-home .map-enter-link { font-size: 9px; }
  body.page-home .reel figcaption span,
  body.page-home .entrance figcaption span { font-size: 8px; }
  body.page-home .reel figcaption strong,
  body.page-home .entrance figcaption strong { font-size: 11px; }
  body.page-home .reel-controls,
  body.page-home .hint { font-size: 9px; }
  body.page-home .reel-vertical .reel-frame,
  body.page-home .entrance .reel-frame,
  body.page-home .reel-frame-video {
    height: 237.6px;
    max-height: 237.6px;
    --pan: 237.6px;
  }
  body.page-home .reel-frame-wide { height: 42px; }
  body.page-home .reel-horizontal.is-video .reel-still-wrap { height: 42px; }
  body.page-home .reel-horizontal .reel-still { height: 42px; }
  body.page-home .mid-kicker { font-size: 8px; }
  body.page-home .mid-title { font-size: 13px; }
  body.page-home .mid-meta { font-size: 10px; }
  body.page-home .reserve h2 { font-size: 17px; }
  body.page-home .reserve-lead { font-size: 10px; }
  body.page-home .specs div { font-size: 10px; }
  body.page-home .fine { font-size: 9px; }
  body.page-home form h3 { font-size: 13px; }
  body.page-home .form-lead { font-size: 9px; }
  body.page-home .field label { font-size: 10px; }
  body.page-home input,
  body.page-home textarea { font-size: 16px; }
  body.page-home .colophon { font-size: 9px; }

  /* Contents: type and side pad only; copy and structure stay the same */
  body.page-contents { font-size: 12px; line-height: 1.5; }
  body.page-contents .page-head h1 { font-size: clamp(16px, 5.2vw, 22px); }
  body.page-contents .subtoc { font-size: 11px; }
  body.page-contents .kicker { font-size: 9px; }
  body.page-contents .section-head h2 { font-size: clamp(15px, 4.8vw, 18px); }
  body.page-contents .section-head .lede,
  body.page-contents .route .section-head .lede { font-size: 11px; }
  body.page-contents .why-lead { font-size: 12px; }
  body.page-contents .subhead { font-size: 14px; }
  body.page-contents .gain-index { font-size: 12px; }
  body.page-contents .gain-grid h4 { font-size: 13px; }
  body.page-contents .gain-grid p { font-size: 11px; }
  body.page-contents .path span { font-size: 9px; }
  body.page-contents .path strong { font-size: 12px; }
  body.page-contents .path em { font-size: 10px; }
  body.page-contents .district-no { font-size: 14px; }
  body.page-contents .district h3 { font-size: 14px; }
  body.page-contents .district header p { font-size: 10px; }
  body.page-contents .district ol {
    grid-template-columns: 1fr;
    font-size: 11px;
    word-break: keep-all;
  }
  body.page-contents .district ol.station-dense,
  body.page-contents .district ol.station-row { grid-template-columns: 1fr; }
  body.page-contents .risk-note { font-size: 10px; }
  body.page-contents .lighthouse { font-size: 13px; }
  body.page-contents .mid-kicker { font-size: 8px; }
  body.page-contents .mid-title { font-size: 15px; }
  body.page-contents .mid-meta { font-size: 11px; }
  body.page-contents .colophon { font-size: 10px; }

  /* Share */
  body.page-share { font-size: 13px; line-height: 1.65; }
  body.page-share .share-copy h1 { font-size: clamp(23px, 6.8vw, 28px); }
  body.page-share .share-lead { font-size: 13px; }
  body.page-share .share-body { font-size: 12px; }
  body.page-share .tier-label { font-size: 10px; }
  body.page-share .tier-rate span { font-size: 32px; }
  body.page-share .share-meta { font-size: 11px; }
  body.page-share form h3 { font-size: 14px; }
  body.page-share .form-lead { font-size: 11px; }
  body.page-share input,
  body.page-share textarea { font-size: 16px; }
  body.page-share .colophon { font-size: 11px; }
  body.page-share .purchase-records h2 { font-size: 16px; }
  body.page-share .purchase-records-lead { font-size: 12px; }
  body.page-share .purchase-records-table { font-size: 12px; }
}

/* ========================================================================
   Final-pass homepage media + shared topbar
   Desktop typography rhythm and mobile type stay scoped as noted.
   ======================================================================== */

/* Shared right-side nav: three items as one even group, away from the brand */
.topbar {
  justify-content: space-between;
  gap: 40px;
}
.topbar .brand {
  flex: 0 0 auto;
}
.topbar .topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 32px;
  padding-left: 0;
  border-left: none;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.topbar .topnav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.topbar .topnav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Horizontal panorama: play the 16:9 MP4; the right-side dark area at
   t≈1s is the scroll unrolling, not a persistent letterbox. After ~3s
   the map fills the full 1920×1080 frame, so the box stays 16:9. */
.reel-horizontal .reel-frame,
.reel-horizontal .reel-frame-wide {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: none;
  min-height: 0;
  overflow: hidden;
}
.reel-horizontal.is-video .reel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #140e0a;
}
.reel-horizontal.is-video .reel-still-wrap {
  display: none;
}

/* 9:16 frames hug the vertical map and the entrance video.
   Display height is unchanged; the frame width shrinks to the picture. */
.reel-vertical .reel-frame,
.entrance .reel-frame,
.reel-frame-video {
  width: auto;
  height: min(42vh, 380px);
  max-height: min(42vh, 380px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  min-height: 0;
  margin-inline: auto;
  --pan: min(42vh, 380px);
}
/* Homepage vertical map + entrance: 1.5× original 380px, then +20% (still 9:16). */
body.page-home .reel-vertical .reel-frame,
body.page-home .entrance .reel-frame,
body.page-home .reel-frame-video {
  width: auto;
  aspect-ratio: 9 / 16;
  height: min(75.6vh, 684px);
  max-height: min(75.6vh, 684px);
  --pan: min(75.6vh, 684px);
}
.reel-vertical .reel-video,
.entrance .reel-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Homepage desktop: text-block rhythm only. Cover and map sizes stay put. */
body.page-home .eyebrow { margin-bottom: 16px; }
body.page-home .subtitle { margin-top: 10px; }
body.page-home .author-line { margin-top: 12px; }
body.page-home .blurb { margin-top: 24px; font-size: 28px; font-weight: 700; line-height: 1.45; }
body.page-home .intro-author { margin-top: 22px; max-width: 38em; }
body.page-home .intro-author .titles {
  margin: 0;
  letter-spacing: 0.08em;
  color: #cbbfa6;
  font-size: 13px;
}
body.page-home .intro-author .bio {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #efe2c4;
}
body.page-home .offer { margin-top: 28px; padding: 20px 22px 22px; }
body.page-home .section-head .lede { margin-top: 12px; }
body.page-home .map-walk { margin-top: 16px; }
body.page-home .reel figcaption,
body.page-home .entrance figcaption { margin-bottom: 10px; }
body.page-home .reel-controls { margin-top: 12px; }
body.page-home .reserve-lead { margin: 10px 0 16px; }

@media (max-width: 720px) {
  /* Shared topbar on a phone: still one even group, no collision with brand */
  .topbar {
    gap: 16px;
    padding-left: 24px;
    padding-right: 24px;
    justify-content: space-between;
  }
  .topbar .brand { font-size: 13px; letter-spacing: 0.06em; }
  .topbar .topnav {
    gap: 14px;
    padding-left: 0;
    border-left: none;
    font-size: 11px;
    letter-spacing: 0.04em;
    flex-wrap: nowrap;
  }
  .topbar .topnav a {
    height: 28px;
    padding: 0 0 1px;
    letter-spacing: 0.04em;
  }

  /* Horizontal MP4 keeps a true 16:9 box on mobile; no 42px still-strip */
  .reel-horizontal .reel-frame,
  .reel-horizontal .reel-frame-wide,
  .reel-horizontal .reel-still-wrap {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  .reel-horizontal.is-video .reel-video { display: block; }
  .reel-horizontal.is-video .reel-still-wrap { display: none; height: auto; overflow: hidden; }
  body.page-home .reel-frame-wide {
    height: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }
  body.page-home .reel-horizontal.is-video .reel-still-wrap { display: none; height: auto; }
  body.page-home .reel-horizontal .reel-still { height: auto; }

  /* Default 9:16 frames stay 132px; homepage pair is 1.5× original then +20% (237.6px). */
  .reel-vertical .reel-frame,
  .reel-frame-video {
    width: auto;
    height: 132px;
    max-height: 132px;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    min-height: 0;
    --pan: 132px;
    margin-inline: auto;
  }
  body.page-home .reel-vertical .reel-frame,
  body.page-home .entrance .reel-frame,
  body.page-home .reel-frame-video {
    width: auto;
    height: 237.6px;
    max-height: 237.6px;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    min-height: 0;
    --pan: 237.6px;
    margin-inline: auto;
  }

  /* Homepage type one step smaller than the previous pass; images unchanged */
  body.page-home { font-size: 10px; line-height: 1.5; }
  body.page-home .hero {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 8px;
    padding: 12px 28px 14px;
  }
  body.page-home .book { width: 100px; max-width: 100px; }
  body.page-home .eyebrow { font-size: 7px; margin-bottom: 5px; }
  body.page-home .hero h1 { font-size: clamp(19px, 5.6vw, 23px); }
  body.page-home .subtitle { font-size: 10px; margin-top: 3px; }
  body.page-home .author-line { font-size: 9px; margin-top: 4px; }
  body.page-home .blurb { font-size: 14px; font-weight: 700; line-height: 1.45; padding-left: 8px; margin-top: 8px; }
  body.page-home .intro-author { margin-top: 8px; }
  body.page-home .intro-author .titles { font-size: 7px; }
  body.page-home .intro-author .bio { font-size: 9px; line-height: 1.5; margin-top: 4px; }
  body.page-home .offer { margin-top: 8px; padding: 10px 12px 12px; }
  body.page-home .offer-kicker { font-size: 7px; }
  body.page-home .price { font-size: 9px; }
  body.page-home .price span { font-size: 22px; }
  body.page-home .offer-meta { font-size: 9px; }
  body.page-home .section-head h2 { font-size: clamp(13px, 4vw, 16px); }
  body.page-home .section-head .lede { font-size: 9px; margin-top: 4px; }
  body.page-home .town-line li { font-size: 8px; }
  body.page-home .map-walk { font-size: 9px; margin-top: 8px; }
  body.page-home .map-enter-link { font-size: 8px; }
  body.page-home .reel figcaption,
  body.page-home .entrance figcaption { margin-bottom: 3px; }
  body.page-home .reel figcaption span,
  body.page-home .entrance figcaption span { font-size: 7px; }
  body.page-home .reel figcaption strong,
  body.page-home .entrance figcaption strong { font-size: 10px; }
  body.page-home .reel-controls,
  body.page-home .hint { font-size: 8px; margin-top: 4px; }
  body.page-home .mid-kicker { font-size: 7px; }
  body.page-home .mid-title { font-size: 12px; }
  body.page-home .mid-meta { font-size: 9px; }
  body.page-home .reserve h2 { font-size: 16px; }
  body.page-home .reserve-lead { font-size: 9px; }
  body.page-home .specs div { font-size: 9px; }
  body.page-home .fine { font-size: 8px; }
  body.page-home form h3 { font-size: 12px; }
  body.page-home .form-lead { font-size: 8px; }
  body.page-home .field label { font-size: 9px; }
  body.page-home input,
  body.page-home textarea { font-size: 16px; }
  body.page-home .colophon { font-size: 8px; }

  /* Center the homepage block as a whole; inner composition stays put */
  body.page-home .hero,
  body.page-home .atlas,
  body.page-home .mid-cta,
  body.page-home .reserve,
  body.page-home .colophon,
  body.page-home .section-head,
  body.page-home .town-line,
  body.page-home .map-walk,
  body.page-home .atlas-grid,
  body.page-home .reel-horizontal,
  body.page-home .entries,
  body.page-home .entries-grid,
  body.page-home .reserve-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Pair the two 9:16 figures so captions sit with the frames, centered as a group */
body.page-home .atlas-grid {
  grid-template-columns: max-content max-content;
  justify-content: center;
  justify-items: center;
  align-items: start;
  column-gap: 160px;
  width: 100%;
}
body.page-home .reel-vertical,
body.page-home .entrance {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.page-home .atlas-grid .reel figcaption,
body.page-home .atlas-grid .entrance figcaption {
  min-height: 3.2em;
  text-align: center;
}
@media (max-width: 720px) {
  body.page-home .atlas-grid {
    grid-template-columns: max-content max-content;
    justify-content: center;
    column-gap: 56px;
  }
}


/* Homepage reserve modal — cream panel, dark text, no blue leftover */
body.is-modal-open { overflow: hidden; }
.reserve-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
}
.reserve-modal[hidden] { display: none; }
.reserve-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.72);
}
.reserve-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  margin: auto;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(122, 90, 30, 0.22);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  max-height: none;
}
.reserve-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--gold-deep);
  border: 1px solid rgba(122, 90, 30, 0.35);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.reserve-modal-close:hover { background: rgba(122, 90, 30, 0.08); }
.reserve-dialog .mid-kicker { color: var(--gold-deep); }
.reserve-dialog .mid-title { color: var(--navy); margin-right: 72px; }
.reserve-dialog .mid-meta { color: var(--ink); margin-top: 4px; }
.reserve-dialog .reserve-lead {
  color: var(--ink);
  margin: 16px 0 8px;
  font-size: 15px;
  max-width: 36em;
}
.reserve-dialog .specs dt { color: var(--gold-deep); }
.reserve-dialog .specs dd { color: var(--navy); }
.reserve-dialog .specs div { border-top-color: rgba(122, 90, 30, 0.22); }
.reserve-dialog .fine { color: var(--ink); }
.reserve-dialog form {
  background: var(--cream-2);
  border: 1px solid rgba(122, 90, 30, 0.22);
  color: var(--navy);
  margin-top: 18px;
}
.reserve-dialog form h3 { color: var(--navy); }
.reserve-dialog .form-lead { color: var(--ink); }
.reserve-dialog input,
.reserve-dialog textarea {
  background: #fffaf0;
  color: var(--navy);
  border-color: rgba(122, 90, 30, 0.35);
}
.reserve-dialog input::placeholder,
.reserve-dialog textarea::placeholder { color: #7a5a1e; }
.reserve-dialog .form-error { color: #8a1f1f; }
.reserve-dialog .intent-result h4,
.reserve-dialog .intent-result p { color: var(--navy); }
.reserve-dialog .intent-result textarea {
  background: #fffaf0;
  color: var(--navy);
}
.reserve-dialog .text-btn { color: var(--gold-deep); }
/* pay-first subscribe flow */
#intent[hidden] { display: none; }
.reserve-dialog .usdt-pay {
  margin: 0 0 20px;
  padding: 0 72px 0 0;
  border-top: 0;
  max-width: none;
}
.reserve-dialog .usdt-pay h3 {
  color: var(--navy);
  font-size: 28px;
  margin: 0 0 12px;
}
.reserve-dialog #pay-send {
  display: block;
  width: 100%;
  min-height: 48px;
  font-size: 18px;
}
.reserve-dialog .mid-meta {
  font-size: 15px;
}
.reserve-dialog .usdt-pay p { color: var(--ink); }
.reserve-dialog .usdt-pay .contract code { color: var(--gold-deep); }
.reserve-dialog #pay-status[data-kind="ok"] { color: var(--gold-deep); }
.reserve-dialog #pay-status[data-kind="warn"],
.reserve-dialog #pay-status[data-kind="error"] { color: #8a1f1f; }
.reserve-dialog #pay-result a { color: var(--gold-deep); }
body.page-reserve .reserve-grid .usdt-pay {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
body.page-reserve #intent {
  margin-top: 28px;
}

.reserve-dialog .copy-status { color: var(--gold-deep); }
@media (max-width: 720px) {
  .reserve-modal { padding: 12px 10px; align-items: flex-start; }
  .reserve-dialog { padding: 20px 16px 16px; }
  .reserve-dialog .usdt-pay { padding-right: 64px; margin-bottom: 16px; }
  .reserve-dialog .usdt-pay h3 { font-size: 26px; }
  .reserve-dialog #pay-send { min-height: 44px; font-size: 16px; }
  .reserve-dialog .mid-title { font-size: 22px; margin-right: 64px; }
  .reserve-dialog .mid-meta { font-size: 14px; }
  .reserve-dialog form { margin-top: 12px; padding: 14px 12px 12px; }
  body.page-reserve .reserve-grid .usdt-pay { order: -1; }
}

/* Standalone reserve page: keep mid-cta / reserve / colophon look, just sit cleanly under the bar */
body.page-reserve .mid-cta { padding-top: 28px; }

/* Homepage mid-cta: same cream panel as the hero offer; title + button together; 18 USDT as large as will fit. */
body.page-home .mid-cta {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 28px var(--page-pad) 36px;
}
body.page-home .mid-cta-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 24px 24px;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(122, 90, 30, 0.18);
}
body.page-home .mid-cta .mid-kicker {
  color: var(--gold-deep);
  letter-spacing: 0.2em;
  font-size: 13px;
}
body.page-home .mid-cta .price {
  font-family: var(--serif);
  font-size: 20px;
  margin: 6px 0 8px;
  color: var(--navy);
}
body.page-home .mid-cta .price span {
  font-family: var(--latin);
  font-size: 96px;
  line-height: 0.9;
  font-weight: 600;
  margin-right: 8px;
}
body.page-home .mid-cta .offer-meta {
  color: var(--ink);
}
body.page-home .mid-cta-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
body.page-home .mid-cta .mid-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
body.page-home .mid-cta .btn {
  flex: 0 0 auto;
  margin: 0;
}
@media (max-width: 720px) {
  body.page-home .mid-cta {
    padding: 16px var(--page-pad) 20px;
  }
  body.page-home .mid-cta-card {
    padding: 14px 16px 16px;
    max-width: none;
  }
  body.page-home .mid-cta .mid-kicker { font-size: 8px; }
  body.page-home .mid-cta .price { font-size: 13px; margin: 4px 0 6px; }
  body.page-home .mid-cta .price span { font-size: 64px; margin-right: 6px; }
  body.page-home .mid-cta .offer-meta { font-size: 11px; }
  body.page-home .mid-cta-actions {
    margin-top: 12px;
    gap: 10px;
  }
  body.page-home .mid-cta .mid-title { font-size: 14px; }
}

/* Shell: wallet control and USDT payment. Original type and page layout stay above. */
.wallet-slot {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 0;
}
.wallet-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.wallet-btn:hover,
.wallet-btn[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.wallet-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(260px, 78vw);
  padding: 8px;
  background: #101c31;
  border: 1px solid rgba(212, 184, 112, 0.45);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.wallet-menu[hidden] { display: none; }
.menu-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--cream);
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.menu-btn:hover { background: rgba(212, 184, 112, 0.12); }
.wallet-msg { margin: 0; color: #cbbfa6; font-size: 13px; padding: 4px 12px 8px; }
.wallet-assets {
  margin: 0;
  padding: 6px 10px;
  min-width: 148px;
  background: #101c31;
  border: 1px solid rgba(212, 184, 112, 0.45);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.wallet-assets[hidden] { display: none; }
.wallet-assets p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 2px 0;
  color: var(--cream);
  font-size: 13px;
}
.wallet-assets span { color: #cbbfa6; letter-spacing: 0.06em; }
.wallet-assets strong {
  font-family: var(--latin, inherit);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold);
}
.no-balance-prompt {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -50%);
  min-width: 160px;
  padding: 22px 28px;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(122, 90, 30, 0.28);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.12em;
}
.no-balance-prompt.is-long {
  font-size: 16px;
  letter-spacing: 0.04em;
  min-width: 240px;
  white-space: nowrap;
}
.no-balance-prompt[hidden] { display: none; }

#reserve { scroll-margin-top: 84px; }
.usdt-pay {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 184, 112, 0.28);
  max-width: 720px;
}
.usdt-pay h3 { font-size: 28px; margin-bottom: 8px; }
.usdt-pay p { color: #efe2c4; }
.chain-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.chain-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(212, 184, 112, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.chain-card small { display: block; color: #cbbfa6; }
.chain-card:has(input:checked) { border-color: var(--gold); background: rgba(212, 184, 112, 0.1); }
.contract code { font-size: 12px; word-break: break-all; color: var(--gold); }
#pay-status[data-kind="warn"],
#pay-status[data-kind="error"] { color: #e7c98a; }
#pay-status[data-kind="ok"] { color: var(--gold); }
#pay-result a { color: var(--gold); }
#usdt-pay .btn { margin-top: 8px; }
@media (max-width: 720px) {
  .topbar { gap: 8px; }
  .topbar .topnav { gap: 8px; font-size: 11px; }
  .wallet-btn { min-height: 28px; padding: 0 8px; font-size: 11px; }
  .chain-pick { grid-template-columns: 1fr; }
}

/* Contents page only: subscribe button sits immediately after the price. */
body.page-contents .mid-cta {
  display: block;
  justify-content: flex-start;
}
body.page-contents .mid-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 14px;
}
body.page-contents .mid-price {
  font-family: var(--latin);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}
body.page-contents .mid-meta .btn {
  flex: 0 0 auto;
  margin: 0;
}

/* Shared header: brand left, the three links in the true center, wallet right. */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: stretch;
}
.topbar .brand {
  justify-self: start;
  margin-left: 0;
}
.topbar .topnav {
  margin-left: 0;
  margin-right: 0;
  justify-self: center;
  justify-content: center;
  flex: none;
}
.topbar .wallet-slot {
  justify-self: end;
}
@media (max-width: 720px) {
  .topbar .topnav {
    margin-left: 0;
    justify-self: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0;
    border-left: none;
    padding-left: 0;
  }
}

/* Homepage pair: one centered 9:16 couple, same height, left still clipped to the frame. */
body.page-home .atlas-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  justify-items: center;
  align-items: start;
  width: 100%;
  column-gap: 48px;
}
body.page-home .reel-vertical,
body.page-home .entrance {
  width: max-content;
  max-width: 100%;
  justify-self: center;
}
body.page-home .reel-vertical .reel-frame,
body.page-home .entrance .reel-frame,
body.page-home .atlas-grid .reel-frame-video {
  box-sizing: border-box;
  position: relative;
  width: auto;
  height: min(75.6vh, 684px);
  max-height: min(75.6vh, 684px);
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  max-width: 100%;
}
body.page-home .reel-vertical .reel-still-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body.page-home .reel-vertical .reel-still {
  width: 100%;
  height: auto;
  max-width: 100%;
}
body.page-home .reel-vertical.is-video [data-pause] {
  display: none;
}
@media (max-width: 720px) {
  body.page-home .atlas-grid {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: center;
    justify-items: center;
    align-items: start;
    width: 100%;
    column-gap: 24px;
    gap: 24px;
  }
  body.page-home .reel-vertical .reel-frame,
  body.page-home .entrance .reel-frame,
  body.page-home .atlas-grid .reel-frame-video {
    width: auto;
    height: 237.6px;
    max-height: 237.6px;
    min-height: 0;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    max-width: 100%;
  }
}

/* Winning header link spacing: centered group, wider gaps. */
.topbar .topnav {
  gap: 48px;
  justify-self: center;
  justify-content: center;
  margin-left: 0;
}
@media (max-width: 720px) {
  .topbar .topnav {
    gap: 16px;
    font-size: 12px;
    justify-self: center;
    justify-content: center;
    margin-left: 0;
  }
}

/* Homepage 9:16 pair: explicit equal width so the tall map cannot widen its box. */
body.page-home .atlas-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 88px;
  width: 100%;
}
body.page-home .reel-vertical,
body.page-home .entrance {
  min-width: 0;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
}
body.page-home .reel-vertical .reel-frame,
body.page-home .entrance .reel-frame,
body.page-home .atlas-grid .reel-frame-video {
  box-sizing: border-box;
  min-width: 0;
  width: calc(min(75.6vh, 684px) * 9 / 16);
  height: min(75.6vh, 684px);
  max-height: min(75.6vh, 684px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
body.page-home .reel-vertical .reel-still-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body.page-home .reel-vertical .reel-still,
body.page-home .reel-vertical .reel-video,
body.page-home .entrance .reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}
body.page-home .reel-vertical.is-video [data-pause] {
  display: none;
}
@media (max-width: 720px) {
  body.page-home .atlas-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 44px;
    width: 100%;
  }
  body.page-home .reel-vertical .reel-frame,
  body.page-home .entrance .reel-frame,
  body.page-home .atlas-grid .reel-frame-video {
    box-sizing: border-box;
    min-width: 0;
    width: calc(237.6px * 9 / 16);
    height: 237.6px;
    max-height: 237.6px;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
  }
}

/* Entrance still locks the character frame whenever the clip is not playing. */
body.page-home .entrance .reel-still-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
body.page-home .entrance .reel-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}
body.page-home .entrance.is-playing .reel-still-wrap {
  display: none;
}

#referral-link {
  display: block;
  width: 100%;
  min-height: 72px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  resize: none;
  word-break: break-all;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid rgba(122, 90, 30, 0.28);
  border-radius: 10px;
}
#copy-referral { margin-top: 0; }

.my-purchase-records { margin-bottom: 28px; }
.my-purchase-records .tx-link { color: var(--gold-deep); word-break: break-all; }


.commission-board {
  max-width: var(--max);
  margin: 48px auto 0;
}
.commission-board h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.commission-panel {
  border: 1px solid rgba(212, 184, 112, 0.28);
  background: #101c31;
  padding: 20px 22px 18px;
}
.commission-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 18px;
}
.commission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-left: auto;
}
.commission-total-label {
  width: 100%;
  margin: 0;
  color: #cbbfa6;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.commission-total {
  margin: 0;
  flex: 1;
  min-width: 8em;
  color: var(--gold, #d4b870);
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.commission-toggle {
  appearance: none;
  border: 1px solid rgba(212, 184, 112, 0.55);
  background: rgba(212, 184, 112, 0.12);
  color: var(--cream, #f4ead2);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  min-height: 44px;
}
.commission-toggle:hover,
.commission-toggle:focus-visible {
  background: rgba(212, 184, 112, 0.22);
  outline: 2px solid rgba(212, 184, 112, 0.7);
  outline-offset: 2px;
}
.commission-breakdown {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 184, 112, 0.16);
}
.commission-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--cream, #f4ead2);
  font-size: 15px;
}
.commission-row strong { font-weight: 600; color: var(--gold, #d4b870); }
.commission-count {
  margin: 8px 0 0;
  color: #cbbfa6;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .commission-board { margin-top: 28px; }
  .commission-board h2 { font-size: 18px; }
  .commission-panel { padding: 16px; }
  .commission-total { font-size: 26px; }
  .commission-toggle { font-size: 13px; }
  .commission-actions { gap: 8px; }
  .commission-row { font-size: 13px; }
}
@media (max-width: 640px) {
  body.page-share .commission-board h2 { font-size: 16px; }
  body.page-share .commission-total { font-size: 24px; }
  body.page-share .commission-toggle,
  body.page-share .commission-row,
  body.page-share .commission-count,
  body.page-share .commission-available,
  body.page-share .withdraw-lead,
  body.page-share .withdraw-verify-lead,
  body.page-share .withdraw-panel h3,
  body.page-share .withdraw-records h4 { font-size: 12px; }
}

.commission-available {
  margin: 8px 0 0;
  color: var(--gold, #d4b870);
  font-size: 13px;
  line-height: 1.6;
}
.withdraw-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 184, 112, 0.16);
}
.withdraw-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.withdraw-lead,
.withdraw-verify-lead {
  margin: 0 0 14px;
  color: #cbbfa6;
  font-size: 13px;
  line-height: 1.6;
}
.withdraw-panel .field { margin-bottom: 12px; }
.withdraw-panel .btn { margin-top: 4px; }
.withdraw-ok {
  color: var(--gold, #d4b870);
  margin: 0 0 12px;
}
.withdraw-records { margin-top: 22px; }
.withdraw-records h4 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.withdraw-records .record-status.is-pending { color: var(--gold, #d4b870); }
.withdraw-records .record-status.is-paid { color: #b8e0b8; }
.withdraw-records .record-status.is-rejected { color: #ffd0d0; }
@media (max-width: 720px) {
  .withdraw-panel h3 { font-size: 16px; }
  .withdraw-lead,
  .withdraw-verify-lead,
  .commission-available { font-size: 12px; }
}

.withdraw-available-line {
  margin: 0 0 14px;
  color: var(--gold, #d4b870);
  font-size: 14px;
  line-height: 1.6;
}
.withdraw-pending {
  margin: 0 0 18px;
  padding: 16px 0 4px;
}
.withdraw-pending-label {
  margin: 0;
  color: #cbbfa6;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.withdraw-pending-status {
  margin: 8px 0 0;
  color: var(--gold, #d4b870);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.withdraw-pending-meta {
  margin: 8px 0 0;
  color: #cbbfa6;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  body.page-share .withdraw-pending-status { font-size: 24px; }
  body.page-share .withdraw-available-line,
  body.page-share .withdraw-pending-label,
  body.page-share .withdraw-pending-meta { font-size: 12px; }
}


[data-open-reserve][hidden],
a[href="#usdt-pay"][hidden],
a[href="reserve.html#usdt-pay"][hidden],
a[data-purchase-entry][hidden],
.share-copy a[href="reserve.html"][hidden],
#usdt-pay[hidden],
.already-subscribed[hidden] {
  display: none !important;
}
body.has-purchased .already-subscribed {
  margin: 10px 0 0;
  color: var(--gold-deep, #b0893e);
  font-size: 14px;
}

.pay-qty { margin: 0 0 14px; }
.pay-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pay-qty-row label { margin: 0; font-weight: 600; }
.pay-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line, #d7c9a3);
  border-radius: 999px;
  overflow: hidden;
}
.pay-qty-stepper button {
  width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.pay-qty-stepper input {
  width: 56px;
  min-height: 40px;
  border: 0;
  border-left: 1px solid var(--line, #d7c9a3);
  border-right: 1px solid var(--line, #d7c9a3);
  background: transparent;
  text-align: center;
  font: inherit;
  -moz-appearance: textfield;
}
.pay-qty-stepper input::-webkit-outer-spin-button,
.pay-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-qty-rule {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
}
.pay-totals { margin: 8px 0 0; font-size: 15px; }
.pay-totals .pay-original {
  margin-right: 10px;
  color: var(--muted, #6d6558);
  text-decoration: line-through;
}
.pay-totals .pay-rule {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
}
.reserve-dialog .pay-qty-rule,
.reserve-dialog .pay-totals .pay-rule {
  font-weight: 700;
  color: #c2410c;
}
.reserve-dialog .pay-totals .pay-original { color: var(--muted, #6d6558); }
.reserve-dialog .pay-qty-stepper { border-color: #cbbfa6; }
.reserve-dialog .pay-qty-stepper input { border-color: #cbbfa6; }
