:root {
  --ground: #f3eee2;
  --paper: #fdfbf5;
  --ink: #221f1b;
  --muted: #6b6156;
  --line: #e3dac9;
  --accent: #8c2230;
  --accent-deep: #6f1826;

  --display: "LXGW WenKai TC", "Songti TC", "Noto Serif TC", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Hiragino Sans TC",
          "Microsoft JhengHei", "Noto Sans TC", sans-serif;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.1rem, 1.03rem + 0.32vw, 1.26rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.1rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--step-0)/1.75 var(--body);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); }

/* topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.15rem, 5vw, 2rem) 0;
}
.topbar__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.topbar__live {
  font-size: var(--step--1);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7a9464;
  box-shadow: 0 0 0 3px rgba(122, 148, 100, 0.18);
}

main { display: block; }

/* hero */

.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.4rem) clamp(1.15rem, 5vw, 2rem) clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
}
.hero > * { animation: rise 0.8s var(--ease-out) backwards; }
.hero > :nth-child(1) { animation-delay: 0.02s; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.15s; }
.hero > :nth-child(4) { animation-delay: 0.22s; }
.hero > :nth-child(5) { animation-delay: 0.3s; }
.hero > :nth-child(6) { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.hero__kicker {
  display: inline-block;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
}
h1 {
  font-size: var(--step-3);
  margin-top: 0.9rem;
  line-height: 1.22;
}

.hero__lead {
  margin: 1.1rem auto 0;
  max-width: 26em;
  color: var(--muted);
}

/* polaroid */

.polaroid {
  position: relative;
  margin: clamp(1.6rem, 4vw, 2.2rem) auto 0;
  max-width: 21rem;
  background: #fffdf7;
  padding: 0.7rem 0.7rem 2.4rem;
  box-shadow: 0 22px 40px -28px rgba(34, 31, 27, 0.75);
  transform: rotate(-1.2deg);
  border: 1px solid #eee7d8;
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.96) contrast(1.02);
}
.polaroid::before,
.polaroid::after {
  content: "";
  position: absolute;
  width: 5.2rem;
  height: 1.45rem;
  background: rgba(214, 199, 160, 0.55);
  box-shadow: 0 1px 2px rgba(34, 31, 27, 0.12);
}
.polaroid::before { top: -0.7rem; left: -0.9rem; transform: rotate(-24deg); }
.polaroid::after { bottom: 0.4rem; right: -1rem; transform: rotate(-18deg); }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 58px;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), background-color 0.22s;
}
.btn--primary {
  background: var(--accent);
  color: #fdf6ef;
  box-shadow: 0 16px 30px -20px rgba(34, 31, 27, 0.9);
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn--ghost:hover { background: #f6efe1; }
.btn--light { background: #fdf7ec; color: var(--accent); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--wide { width: 100%; max-width: 26rem; margin-top: 1.5rem; }
.btn--compact { min-height: 46px; padding: 0 1.3rem; font-size: var(--step--1); }

.hero__fine {
  margin: 0.75rem auto 0;
  max-width: 24em;
  font-size: var(--step--1);
  color: var(--muted);
}

/* share */

.share {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.1rem;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.share:hover { background: #fbf6ea; border-color: var(--accent); }
.share__icon { display: inline-flex; color: var(--accent); }

/* sections */

.band, .steps-wrap, .info, .faq, .final {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2.1rem, 5vw, 3rem) clamp(1.15rem, 5vw, 2rem);
}
.band h2, .steps-wrap h2, .info h2, .faq h2 { font-size: var(--step-2); }

.reasons {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.reasons li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.reasons b { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 0.1rem; }

.steps-wrap {
  background: #ece3d2;
  border-radius: 22px;
  margin-inline: clamp(0.6rem, 2vw, 1.5rem);
  max-width: none;
  padding-inline: clamp(1.25rem, 6vw, 2.5rem);
}
.steps-wrap > * { max-width: 640px; margin-inline: auto; }
.steps { list-style: none; margin: 1.4rem auto 0; padding: 0; }
.steps li { position: relative; padding: 0 0 1.35rem 2.9rem; }
.steps li:last-child { padding-bottom: 0; }
.steps span {
  position: absolute; left: 0; top: 0.1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
}
.steps b { display: block; font-family: var(--display); font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.93rem; margin-top: 0.15rem; }

/* info list */

.info__list { margin: 1.3rem 0 0; border-top: 1px solid var(--line); }
.info__list > div {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.info__list dt { flex: 0 0 3.6em; color: var(--muted); font-size: 0.9rem; }
.info__list dd { margin: 0; font-size: 0.95rem; }

/* faq */

.faq { border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 0.4rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  position: relative;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.15rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.2rem; color: var(--muted); font-size: 0.95rem; }

.todo {
  color: #8a5a1e;
  background: #f6ecd8;
  border-radius: 3px;
  padding: 0 0.25em;
  font-size: 0.9em;
}

/* final */

.final {
  background: var(--accent);
  color: #fdf6ef;
  border-radius: 22px;
  margin: 1rem clamp(0.6rem, 2vw, 1.5rem) 0;
  max-width: none;
  padding: clamp(2.4rem, 6vw, 3.25rem) clamp(1.25rem, 6vw, 2.5rem);
  text-align: center;
}
.final > * { max-width: 32rem; margin-inline: auto; }
.final h2 { font-size: var(--step-2); }
.final p { margin-top: 0.85rem; color: #ecd3cf; }
.final .btn { margin-top: 1.5rem; }

/* footer */

.footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem clamp(1.15rem, 5vw, 2rem) 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.footer__brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.footer__meta { margin-top: 0.35rem; opacity: 0.85; }

/* sticky */

.sticky {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(253, 251, 245, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.sticky__text { font-size: 0.8rem; color: var(--muted); }

/* sheet */

.sheet {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: end center;
  background: rgba(30, 24, 20, 0.45);
  padding: 1rem;
  animation: fade 0.2s ease-out;
}
.sheet[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.sheet__panel {
  width: 100%;
  max-width: 26rem;
  background: var(--paper);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
  animation: up 0.28s var(--ease-out);
}
@keyframes up { from { transform: translateY(16px); opacity: 0; } }

.sheet__state {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: #f4e6e2;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.sheet h2 { font-size: 1.25rem; margin-top: 0.7rem; }
.sheet p { margin-top: 0.55rem; color: var(--muted); font-size: 0.9rem; }
.sheet__actions { display: grid; gap: 0.6rem; margin-top: 1.15rem; }
.sheet__actions .btn { width: 100%; min-height: 52px; }
.sheet__fine { font-size: 0.72rem; opacity: 0.8; word-break: break-all; }

/* toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.4rem;
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: #f8f3e8;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 50;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
body.is-locked { overflow: hidden; }

@media (max-width: 767px) {
  body { padding-bottom: 4.4rem; }
  .sticky { display: flex; }
  .polaroid { max-width: 18rem; }
  .steps-wrap, .final { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *, .sheet, .sheet__panel { animation: none; }
  .btn, .toast, .share { transition: none; }
}

/* 文字型備援連結 */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  cursor: pointer;
}

/* 小編 ID */
.sheet__id {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: #f7f1e4;
  border: 1px dashed #d9c9ac;
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.sheet__id-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.sheet__id strong {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* 場次摘要 */
.hero__when {
  margin: 0.9rem auto 0;
  max-width: 26em;
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
