/* JCI Tai Ping Shan 50th — 點石成金. One dark, gold look; no light theme. */
:root {
  --ink: #0b0b0f;
  --navy: #0e1424;
  --gold-1: #f5d98b;
  --gold-2: #c99a3e;
  --gold-3: #8a6420;
  --ivory: #efe8dc;
  --muted: rgba(239, 232, 220, .68);
  --line: rgba(201, 154, 62, .38);
  --glass: rgba(18, 18, 24, .42);
  --pending: #ffa53d;
  --gold-text: linear-gradient(170deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  --font-serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --font-latin: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  /* Where the K1 roof's top edge sits on screen; main.js measures it exactly. */
  --roof-top: 36.6vh;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }
.latin { font-family: var(--font-latin); letter-spacing: .08em; }
/* Keep short Chinese phrases together; the surrounding copy can still wrap. */
.phrase { display: inline-block; }

/* Placeholder markers (config.js entries with ready:false). */
.tbd {
  display: inline-block;
  margin-left: .45em;
  padding: 0 .55em;
  border: 1px solid var(--pending);
  border-radius: 999px;
  color: var(--pending);
  font: 500 .72rem/1.6 var(--font-sans);
  letter-spacing: .05em;
  vertical-align: .15em;
  white-space: nowrap;
}

/* ───────── STAGE ───────── */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}
.stage__still, .stage__still img, .stage__scene, .stage__film, .stage__opening, .roof, .roof img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage__still img, .stage__scene, .stage__film, .stage__opening, .roof img {
  object-fit: cover;
  object-position: 50% 50%;
}
/* The scroll film (js/film.js). Its first frame is K1, so it can sit over the
   K1 still from the start; it shows only once it can scrub. Until then — and
   for good if it cannot — the scene stills crossfade at the same anchors. */
.stage__scene { opacity: 0; transition: opacity .9s ease; }
.stage__scene.is-active { opacity: 1; }
.stage__film { opacity: 0; transition: opacity .4s ease; }
.has-film .stage__film { opacity: 1; }
.has-film .stage__scene { opacity: 0; }
.stage__k0 { transition: opacity 1.4s ease; }
.is-golden .stage__k0 { opacity: 0; }
.stage__opening { opacity: 0; transition: opacity .6s ease; }
.stage__opening.is-playing { opacity: 1; }
.stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 15, .55) 0%, rgba(11, 11, 15, 0) 22%),
    linear-gradient(0deg, rgba(11, 11, 15, .65) 0%, rgba(11, 11, 15, 0) 30%);
  pointer-events: none;
}

.roof {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.is-open .roof { opacity: var(--roof-opacity, 1); transition: none; }

/* ───────── 0 · GATE ───────── */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  /* iOS long-press: no callout, no selection, no scroll/zoom gesture. */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .6s ease;
}
.gate img { -webkit-user-drag: none; }
.is-open .gate { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }

.gate__hint {
  position: absolute;
  left: var(--gutter-l);
  right: var(--gutter-r);
  bottom: calc(14vh + env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  font: 900 clamp(1.6rem, 5vw, 2.6rem)/1.3 var(--font-serif);
  letter-spacing: .12em;
  color: var(--ivory);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
  animation: breathe 2.6s ease-in-out infinite;
}
.gate__hint-sub {
  display: block;
  margin-top: .6rem;
  font: 400 .85rem/1.5 var(--font-sans);
  letter-spacing: .1em;
  color: var(--muted);
}
.gate__hint-tap { display: none; }
@media (hover: none) { .gate__hint-sub { display: none; } }
.is-reduced .gate__hint-hold { display: none; }
.is-reduced .gate__hint-tap { display: inline; }
.is-pressing .gate__hint { animation: none; opacity: .35; transition: opacity .3s; }
.is-done .gate__hint, .is-done .gate__skip { animation: none; opacity: 0; transition: opacity .4s; }
@keyframes breathe { 50% { opacity: .55; } }

.gate__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  transform: translate(var(--ring-x, 50vw), var(--ring-y, 50vh)) rotate(-90deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.gate__ring.is-visible { opacity: 1; }
.gate__ring circle { fill: none; stroke-width: 4; }
.gate__ring-track { stroke: rgba(239, 232, 220, .25); }
.gate__ring-fill {
  stroke: url(#gold);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p, 0));
}
.gate__ring.is-visible { filter: drop-shadow(0 0 6px rgba(245, 217, 139, .7)); }

.gate__skip {
  position: absolute;
  right: calc(var(--gutter-r) + 4px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding: .45rem 1.1rem;
  border: 1px solid rgba(239, 232, 220, .45);
  border-radius: 999px;
  background: rgba(11, 11, 15, .45);
  color: var(--ivory);
  font: 500 .9rem/1 var(--font-sans);
  letter-spacing: .2em;
  cursor: pointer;
}

/* ───────── NAV ───────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease .2s, background-color .3s ease, box-shadow .3s ease;
}
.is-open .nav { opacity: 1; pointer-events: auto; }
/* Past the hero the nav gets a dark frosted bar so it never sits bare over copy. */
.nav.is-solid {
  background: rgba(11, 11, 15, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brands { display: flex; align-items: center; gap: 12px; }
.nav__brand { display: block; width: 128px; }
.nav__brand img { width: 100%; height: auto; display: block; }
.nav__fifty { display: block; width: 76px; height: auto; }
.nav__controls { display: flex; justify-content: center; align-items: center; gap: 12px; min-width: 0; }
.nav__links { display: flex; gap: 8px; }
.nav__links a, .nav__cta {
  padding: .5rem 1.15rem;
  border: 1px solid rgba(239, 232, 220, .7);
  border-radius: 999px;
  font: 500 .95rem/1.2 var(--font-sans);
  text-decoration: none;
  letter-spacing: .06em;
  background: rgba(11, 11, 15, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav__links a.is-current { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.nav__cta {
  border: 0;
  background: var(--gold-text);
  color: var(--ink);
  font-weight: 700;
}
.nav__cta-short { display: none; }

/* ───────── 1 · HERO ───────── */
.hero {
  /* The giant title's size, shared so the intro can stay clear of it. */
  --title-size: min(15vw, 25vh);
  position: relative;
  height: 100vh;
  height: 100lvh;
  min-height: 560px;
}
/* Hidden until the gate opens; each child fades on its own so the hero itself
   never becomes a stacking context (the roof must sit between title and UI). */
.hero > * { opacity: 0; transition: opacity 1s ease; }
.is-open .hero > * { opacity: 1; }
.is-open .hero__title { transition-delay: 0s; }
.is-open .hero__intro { transition-delay: .25s; }
.is-open .hero__cards { transition-delay: .45s; }
.is-open .pill-cta { transition-delay: .6s; }

.hero__intro {
  position: absolute;
  z-index: 3;
  top: calc(128px + env(safe-area-inset-top, 0px));
  left: var(--gutter-l);
  /* Room left of the title (right: 3vw, ~4.08 × its size wide) with a 32px gap. */
  --intro-w: calc(97vw - 4.08 * var(--title-size) - var(--gutter-l) - 32px);
  max-width: min(46vw, 620px, var(--intro-w));
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}
.hero__lead {
  margin: 0;
  font: 900 clamp(1.35rem, min(2.6vw, var(--intro-w) / 15), 2.5rem)/1.3 var(--font-serif);
  letter-spacing: .04em;
}
.hero__sub {
  margin: .5rem 0 0;
  font: 500 clamp(.95rem, 1.3vw, 1.2rem)/1.5 var(--font-sans);
  letter-spacing: .12em;
  color: var(--muted);
}

/* The giant title. Its bottom edge sits just under the roof's top edge, so the
   roof (z 2) passes in front of the lower part of the letters. */
.hero__title {
  --size: var(--title-size);
  position: absolute;
  z-index: 1;
  right: 3vw;
  top: calc(var(--roof-top) + .2 * var(--size));
  translate: 0 -100%;
  margin: 0;
  display: flex;
  font: 900 var(--size)/1 var(--font-serif);
  letter-spacing: .02em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .45));
  white-space: nowrap;
}
.hero__title span { display: block; }

.hero__cards {
  position: absolute;
  z-index: 3;
  right: var(--gutter-r);
  bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 14px;
}
.glass {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 236px;
  min-height: 132px;
  padding: 16px 20px 18px;
  border: 1px solid rgba(239, 232, 220, .22);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .35);
}
.glass__num {
  font: 400 clamp(2.6rem, 4vw, 3.4rem)/1 var(--font-latin);
  color: var(--ivory);
}
.glass { position: relative; }
.glass__num .tbd { position: absolute; top: 12px; right: 12px; margin: 0; font-size: .7rem; }
.glass__label { margin-top: 10px; font-size: .9rem; color: var(--muted); text-wrap: balance; }

.pill-cta {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - var(--gutter-l) - var(--gutter-r));
  gap: 28px;
  padding: 7px 7px 7px 34px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font: 700 1.25rem/1 var(--font-sans);
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.pill-cta__arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
}
.pill-cta__arrow svg { width: 22px; height: 22px; }
.pill-cta:hover .pill-cta__arrow { background: var(--gold-3); }

.hero__corner {
  position: absolute;
  z-index: 3;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  font-size: .72rem;
  color: var(--muted);
}
.hero__corner--left { left: var(--gutter-l); }
.hero__corner--right { right: var(--gutter-r); font-size: .62rem; }

/* ───────── SECTIONS 2–7 ───────── */
main { position: relative; }
.section {
  position: relative;
  z-index: 3;
  padding-block: clamp(64px, 12vh, 120px);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(11, 11, 15, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* The one Greek-key line: above the first section after the hero. */
#theme::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 14px;
  opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13H6V3H18V9H11V6H14' fill='none' stroke='%23c99a3e' stroke-width='1.4'/%3E%3Cpath d='M14 13H28' fill='none' stroke='%23c99a3e' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 14px;
}
.eyebrow {
  margin: 0 0 .4rem;
  font: 500 .85rem/1.4 var(--font-sans);
  letter-spacing: .35em;
  color: var(--gold-2);
}
.section__title {
  margin: 0 0 1rem;
  font: 900 clamp(2rem, 5vw, 3.4rem)/1.2 var(--font-serif);
  letter-spacing: .06em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.section__title .tbd { -webkit-text-fill-color: var(--pending); }
.section__lede { max-width: 40em; margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

/* 2 · 主題 — the card scrolls away and leaves a clear window over the film,
   still inside #theme, where leg 2 lands: the stone cracks and the golden statue
   stands (js/film.js reaches leg 2's end as #dress-code's top crosses mid-screen). */
#theme { padding-bottom: 60vh; }
/* 2 · 主題 */
.triad {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}
.triad__item {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(14, 20, 36, .55);
}
.triad__item p { margin: .6rem 0 0; color: var(--muted); text-wrap: pretty; }
.triad__char {
  font: 900 3rem/1 var(--font-serif);
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 3 · 服飾指引 */
.inspiration { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
.inspiration caption { text-align: left; margin-bottom: .8rem; font-weight: 700; color: var(--gold-1); }
.inspiration th, .inspiration td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.inspiration thead { color: var(--gold-1); }
.inspiration tbody td { color: var(--muted); }

/* 4 · 晚宴資料 */
.facts { margin: 0 0 2rem; }
.facts__row {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201, 154, 62, .2);
}
.facts dt { color: var(--gold-2); letter-spacing: .15em; }
.facts dd { margin: 0; }
.facts__map { margin-left: .6em; color: var(--gold-1); }
.subhead { margin: 0 0 .8rem; font: 900 1.25rem/1.4 var(--font-serif); }
/* 6 · 報名 */
.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.steps li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.steps strong { font: 900 1.1rem/1.4 var(--font-serif); color: var(--gold-1); }
.steps span { color: var(--muted); text-wrap: pretty; }

/* Registration Stage 2 is the sole price display. */
.rates { padding: 18px; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 18px; }
.rate-choices { display: grid; gap: 10px; }
.rate-choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rate-choice input { flex: 0 0 auto; margin-top: .4em; accent-color: var(--gold-2); }
.rate-choice span { min-width: 0; }
.rate-choice strong { display: block; color: var(--gold-1); }
.rate-choice:has(input:checked) { border-color: var(--gold-1); background: rgba(201,154,62,.08); }
.confirm-rate { margin-top: 14px; }
.rates .fineprint { text-align: left; margin-bottom: 0; }

/* 6 · 報名 — the three panels */
/* A step change scrolls to the panels: keep their top clear of the fixed nav. */
.reg { scroll-margin-top: calc(120px + env(safe-area-inset-top, 0px)); }
/* `hidden` must beat the display rules below (the 所屬分會 field, the panels). */
.reg [hidden] { display: none !important; }
.reg__panel { max-width: 560px; margin: 0 auto; }
.reg__title { margin: 0 0 1.2rem; font: 900 1.35rem/1.4 var(--font-serif); color: var(--gold-1); }
.field { display: block; margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin: 0 0 .35rem; padding: 0; font-weight: 500; }
.field__label b { color: var(--gold-2); font-weight: 500; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field select {
  width: 100%;
  min-height: 48px;
  padding: .6rem .9rem;
  border: 1px solid rgba(239, 232, 220, .3);
  border-radius: 12px;
  background: rgba(11, 11, 15, .6);
  color: var(--ivory);
  font: 400 16px/1.4 var(--font-sans); /* 16px: iOS zooms into anything smaller */
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--pending); }
.field__error, .form-error { display: block; color: var(--pending); font-size: .9rem; }
.field__error:empty, .form-error:empty { display: none; }
.form-error { margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices, .pay-methods { display: grid; gap: 10px; }
.choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice, .pay-method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(239, 232, 220, .3);
  border-radius: 14px;
  background: rgba(11, 11, 15, .5);
  cursor: pointer;
}
.choice:has(input:checked), .pay-method:has(input:checked) { border-color: var(--gold-1); background: rgba(201, 154, 62, .16); }
.choice input, .pay-method input { accent-color: var(--gold-2); width: 18px; height: 18px; margin: 0; }
.choice__name { font-weight: 700; }
.pay-method { flex-direction: column; align-items: stretch; }
.pay-method__head { display: flex; align-items: center; gap: 10px; }
.pay-method__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-method__label { color: var(--muted); min-width: 5.5em; }
.pay-method__value { font-weight: 700; user-select: all; overflow-wrap: anywhere; min-width: 0; }
.pay-method__qr { width: 200px; max-width: 100%; border-radius: 12px; background: #fff; padding: 8px; }
.copy-btn, .proof-preview__clear, .restart {
  padding: .3rem .9rem;
  border: 1px solid rgba(239, 232, 220, .45);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font: 500 .85rem/1.4 var(--font-sans);
  cursor: pointer;
}
.restart { display: block; margin: 1rem auto 0; border: 0; text-decoration: underline; color: var(--muted); }
.restart.is-urgent { color: var(--pending); }

.reg__ok, .reg__amount { margin: 0 0 .6rem; }
.reg__id { font-family: var(--font-latin); letter-spacing: .08em; color: var(--gold-1); user-select: all; }
.reg__amount strong { font-size: 1.3rem; color: var(--gold-1); }
.reg__amount strong.is-pending { font-size: 1rem; color: var(--pending); }

.proof-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 16px;
  border: 1px dashed var(--gold-2);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
}
.proof-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.proof-pick__cta { font-weight: 700; color: var(--gold-1); }
.proof-pick small { color: var(--muted); }
.proof-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.proof-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.proof-preview__name { flex: 1 1 10em; min-width: 0; overflow-wrap: anywhere; color: var(--muted); }

.btn {
  position: relative;
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-text);
  color: var(--ink);
  font: 700 1.1rem/1 var(--font-sans);
  letter-spacing: .12em;
  cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn__spin {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-busy .btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fineprint { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

.reg__done { text-align: center; }
.medal { display: block; width: min(100%, 360px); height: auto; aspect-ratio: 1080 / 1350; margin: 0 auto 1rem; border-radius: 18px; }
.reg__nopass, .reg__warning, .reg__unpaid { color: var(--pending); }
.reg__note { color: var(--muted); }
.save-pass { max-width: 360px; margin: 0 auto 1rem; }

/* 7 · 常見問題 */
.faq__item { border-bottom: 1px solid rgba(201, 154, 62, .2); }
.faq__item summary { padding: 16px 0; cursor: pointer; font-weight: 500; }
.faq__item p { margin: 0 0 16px; color: var(--muted); }
.contact { margin: 2rem 0 0; color: var(--muted); }
.contact__num { color: var(--ivory); user-select: all; }

/* ───────── 8 · FOOTER ───────── */
.footer {
  position: relative;
  z-index: 3;
  padding: 56px var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer__inner { max-width: 1040px; margin: 0 auto; text-align: center; }
.footer__logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__jci { width: 148px; height: auto; }
.footer__fifty { width: 112px; height: auto; }
.footer__legal { margin: 0; font-size: .8rem; color: var(--muted); }

/* ───────── PHONES ───────── */
@media (max-width: 767px) {
  :root { --roof-top: 54vh; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .nav__brands { gap: 8px; }
  .nav__brand { width: 96px; }
  .nav__fifty { width: 64px; }
  .nav__cta { padding: 8px 12px; font-size: .875rem; white-space: nowrap; }

  .hero__intro {
    top: calc(128px + env(safe-area-inset-top, 0px));
    right: var(--gutter-r);
    max-width: none;
  }
  .hero__lead { font-size: clamp(1.25rem, 5.6vw, 1.6rem); }
  .hero__title {
    --size: min(33vw, 15.5vh);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    line-height: .98;
    top: calc(var(--roof-top) + .16 * var(--size));
  }
  .hero__cards {
    left: var(--gutter-l);
    right: var(--gutter-r);
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .glass { flex: 1 1 0; width: auto; min-width: 0; min-height: 0; padding: 12px 14px; border-radius: 18px; }
  .glass__num { font-size: 2rem; }
  .glass__label { margin-top: 6px; font-size: .78rem; }
  .pill-cta { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 1.1rem; gap: 20px; padding-left: 28px; }
  .pill-cta__arrow { width: 46px; height: 46px; }
  .hero__corner { display: none; }

  .section__inner { padding: 24px; }
  .section__title { font-size: 1.875rem; }
  .facts__row { grid-template-columns: 3em minmax(0, 1fr); }
  .facts dd[data-config="date"], .facts dd[data-config="time"] {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero__sub { display: none; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .nav__controls { flex-direction: column; gap: 8px; }
  .nav__links a { padding: .45rem .8rem; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gate__hint { animation: none; }
}
