:root {
  color-scheme: light;
  --paper: #f3f1ec;
  --surface: #fff;
  --ink: #252722;
  --muted: #74766f;
  --line: #d8d6cf;
  --soft: #e9e7e1;
  --accent: #b24831;
  --accent-dark: #8e3523;
  --success: #2f7457;
  --danger: #b33d35;
  --shadow: 0 18px 48px rgba(37, 39, 34, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #dedbd4;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #dedbd4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-variant-east-asian: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

button,
input,
h1,
h2,
h3,
p,
li,
strong,
small,
label {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  touch-action: manipulation;
}

button {
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 0;
  margin: 0 auto;
  background: transparent;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#screen {
  min-height: 0;
  outline: none;
}

.view-counter {
  position: fixed;
  z-index: 30;
  top: calc(12px + env(safe-area-inset-top));
  right: max(12px, calc((100vw - 760px) / 2 + 12px));
  display: flex;
  align-items: baseline;
  gap: 3px;
  max-width: calc(100vw - 24px);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(93, 44, 27, 0.34);
  box-shadow: 0 4px 14px rgba(89, 34, 18, 0.16);
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(72, 31, 17, 0.42);
  pointer-events: none;
}

.view-counter[hidden] {
  display: none;
}

.view-counter span {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.view-counter small {
  font-size: 11px;
  font-weight: 600;
}

.screen {
  min-height: 0;
  padding-bottom: 0;
  animation: screen-in 180ms ease-out both;
}

.screen-home {
  padding: 0;
  background: #ffb284;
}

.p1-design {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.p1-design > img {
  display: block;
  width: 100%;
  height: auto;
}

.p1-hotspot {
  will-change: transform;
  position: absolute;
  z-index: 4;
  left: 26.5%;
  width: 47%;
  height: 6.15%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 50%;
  animation: p1-button-breathe 1.25s ease-in-out infinite;
}

.p1-hotspot > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p1-hotspot::after {
  position: absolute;
  right: 3.5%;
  bottom: 4%;
  width: 12%;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: p1-tap-ring 2.4s ease-out infinite;
}

.p1-hotspot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.p1-hotspot-tour {
  top: 22.25%;
}

.p1-hotspot-prize {
  top: 29.2%;
  animation-delay: 0.45s;
}

.p1-hotspot-prize::after {
  animation-delay: 1.2s;
}

.p1-petals {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 24.75%;
  overflow: hidden;
  pointer-events: none;
}

.p1-petals-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.92;
  transform-origin: 50% 45%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  filter: saturate(1.18) drop-shadow(0 3px 3px rgba(255, 96, 42, 0.24));
  animation: p1-petals-fall 2.6s linear infinite;
}

@keyframes p1-petals-fall {
  0% {
    opacity: 0;
    transform: translate3d(-1.8%, -10%, 0) rotate(-1.5deg) scale(1.03);
  }
  6% {
    opacity: 1;
  }
  82% {
    opacity: 1;
    transform: translate3d(1.8%, 20%, 0) rotate(2deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(2.5%, 29%, 0) rotate(3deg) scale(1.1);
  }
}

.p2-design {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 2290;
  line-height: 0;
  overflow: hidden;
  background: #ffa17f;
}

.p2-design-background {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 93.886%;
}

.p2-design-background-top { top: 0; clip-path: inset(0 0 83.256% 0); }
.p2-design-background-bottom { top: 6.114%; clip-path: inset(16.744% 0 0 0); }

.p2-gallery-entry {
  position: absolute;
  z-index: 8;
  top: 16.35%;
  left: 6%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.2%;
  width: 88%;
  padding: 1% 3.2%;
  border: 2px solid rgba(255, 242, 153, 0.96);
  border-radius: 18px;
  color: #9c351f;
  background: rgba(255, 250, 227, 0.95);
  box-shadow: 0 7px 18px rgba(146, 62, 32, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  will-change: transform;
  animation: p2-gallery-entry-breathe 1.45s ease-in-out infinite;
}

.p2-gallery-entry-icon { display: grid; width: clamp(32px, 9vw, 58px); aspect-ratio: 1; place-items: center; border-radius: 50%; background: linear-gradient(150deg, #ffcf61, #ff643f); font-size: clamp(17px, 5vw, 30px); }
.p2-gallery-entry strong, .p2-gallery-entry small { display: block; line-height: 1.35; }
.p2-gallery-entry strong { font-size: clamp(11px, 3vw, 21px); white-space: nowrap; }
.p2-gallery-entry small { color: #c46a43; font-size: clamp(9px, 2.55vw, 17px); }
.p2-gallery-entry-arrow { font-size: clamp(25px, 7vw, 44px); line-height: 1; }
.p2-gallery-entry:active { transform: scale(0.97); }

@keyframes p2-gallery-entry-breathe {
  0%, 100% { transform: translateZ(0) scale(0.985); }
  50% { transform: translateZ(0) scale(1.012); }
}

.p2-gallery-modal { position: fixed; z-index: 150; inset: 0; display: grid; padding: 0; place-items: stretch; visibility: hidden; opacity: 0; background: rgba(71, 29, 20, 0.76); transition: opacity 180ms ease, visibility 180ms ease; }
.p2-gallery-modal.show { visibility: visible; opacity: 1; }
.p2-gallery-dialog { position: relative; width: 100%; height: 100%; max-height: none; padding: 26px 18px 18px; border: 0; border-radius: 0; background: linear-gradient(180deg, #fff9df, #ffd5b0); box-shadow: 0 22px 60px rgba(46, 15, 10, 0.34); line-height: 1.4; overflow-y: auto; overscroll-behavior: contain; }
.p2-gallery-dialog h2 { margin: 0 38px 16px 2px; color: #9e351f; font-size: clamp(22px, 5.8vw, 32px); }
.p2-gallery-close { position: absolute; top: 9px; right: 11px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; background: #d94c2d; font-size: 25px; line-height: 1; cursor: pointer; }
.p2-gallery-list { display: grid; gap: 14px; padding: 2px; }
.p2-gallery-photo { display: block; width: 100%; min-height: 0; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.92); border-radius: 14px; background: #f9dfbf; box-shadow: 0 4px 10px rgba(132, 52, 29, 0.16); cursor: zoom-in; }
.p2-gallery-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p2-gallery-photo-placeholder { display: grid; place-items: center; border: 3px dashed rgba(190, 79, 42, 0.45); color: #a5472d; background: linear-gradient(145deg, #ffe5bd, #fff9e4 52%, #ffc99f); }
.p2-gallery-photo-placeholder span { font-size: clamp(16px, 4.2vw, 23px); font-weight: 700; opacity: 0.58; }
.p2-photo-lightbox { position: fixed; z-index: 160; inset: 0; display: grid; padding: 20px; place-items: center; visibility: hidden; opacity: 0; background: rgba(27, 12, 8, 0.94); transition: opacity 160ms ease, visibility 160ms ease; }
.p2-photo-lightbox.show { visibility: visible; opacity: 1; }
.p2-photo-lightbox-close { position: absolute; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, 0.46); font-size: 30px; line-height: 1; cursor: pointer; }
.p2-photo-lightbox-image { display: grid; width: min(100%, 90vw); max-height: 90vh; aspect-ratio: auto; place-items: center; border-radius: 18px; color: #a5472d; background: linear-gradient(145deg, #ffe5bd, #fff9e4 52%, #ffc99f); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.p2-photo-lightbox-image span { font-size: clamp(20px, 5vw, 30px); font-weight: 800; }
.p2-photo-lightbox-image > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.p2-spot-buttons {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.p2-clouds {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.p2-cloud {
  position: absolute;
  width: 20%;
  height: 0.9%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 18% 62%, rgba(255, 249, 222, 0.15) 0 18%, transparent 20%),
    radial-gradient(ellipse at 42% 38%, rgba(255, 249, 222, 0.48) 0 25%, transparent 27%),
    radial-gradient(ellipse at 68% 58%, rgba(255, 249, 222, 0.38) 0 24%, transparent 26%),
    radial-gradient(ellipse at 88% 46%, rgba(255, 249, 222, 0.16) 0 17%, transparent 19%);
  box-shadow:
    20px -4px 10px -5px rgba(255, 248, 218, 0.22),
    -16px 3px 9px -5px rgba(255, 248, 218, 0.18);
  filter: blur(0.45px);
  opacity: 0.72;
  will-change: transform;
  backface-visibility: hidden;
  animation: p2-cloud-drift 12s ease-in-out infinite alternate;
}

.p2-cloud-1 { top: 12.2%; left: -6%; width: 24%; }
.p2-cloud-2 { top: 29.1%; right: -5%; width: 18%; animation-delay: -3s; animation-duration: 14s; }
.p2-cloud-3 { top: 45.5%; left: -8%; width: 22%; animation-delay: -7s; animation-duration: 13s; }
.p2-cloud-4 { top: 61.5%; right: -7%; width: 20%; animation-delay: -5s; animation-duration: 15s; }
.p2-cloud-5 { top: 77.5%; left: -5%; width: 18%; animation-delay: -9s; animation-duration: 13.5s; }
.p2-cloud-6 { top: 92.5%; right: -8%; width: 24%; animation-delay: -4s; animation-duration: 16s; }

@keyframes p2-cloud-drift {
  0% { transform: translate3d(-7%, -1px, 0) scaleX(0.98); }
  100% { transform: translate3d(24%, 1px, 0) scaleX(1.02); }
}

.p2-spot-button {
  will-change: transform;
  position: absolute;
  width: 34.17%;
  height: 3.7%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: p2-button-pulse 4.5s ease-in-out infinite;
}

.p2-spot-button > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p2-spot-button:nth-child(even) { left: 57.73%; }
.p2-spot-button:nth-child(odd) { left: 8.93%; }
.p2-spot-button-1, .p2-spot-button-2 { top: 35.81%; }
.p2-spot-button-3, .p2-spot-button-4 { top: 54.67%; }
.p2-spot-button-5, .p2-spot-button-6 { top: 73.58%; }
.p2-spot-button-7, .p2-spot-button-8 { top: 91.44%; }

.p2-spot-button:nth-child(2n) { animation-delay: 0.35s; }
.p2-spot-button:nth-child(3n) { animation-delay: 0.7s; }

.p2-spot-button:active {
  transform: scale(0.94);
}

@keyframes p2-button-pulse {
  0%, 72%, 100% { transform: scale(1); }
  82% { transform: scale(0.97); }
  90% { transform: scale(1.03); }
}

@keyframes p1-button-breathe {
  0%, 100% {
    transform: scale(0.975);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes p1-tap-ring {
  0%, 70% { opacity: 0; transform: scale(0.55); }
  78% { opacity: 0.9; }
  92%, 100% { opacity: 0; transform: scale(1.65); }
}

.wireframe-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-copy {
  padding: 24px 2px 20px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero-copy > p:last-child,
.page-intro,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.asset-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px dashed #aaa79f;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(151, 148, 140, 0.24) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(151, 148, 140, 0.24) 50%, transparent 50.3%),
    #e7e4dd;
  overflow: hidden;
}

.asset-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-slot img[hidden] {
  display: none;
}

.asset-label {
  position: relative;
  z-index: 1;
  max-width: 78%;
  padding: 9px 12px;
  border: 1px solid rgba(140, 137, 130, 0.4);
  border-radius: 9px;
  color: #77746d;
  background: rgba(243, 241, 236, 0.84);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.home-art {
  flex: 1;
  min-height: 260px;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.activity-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.activity-panel h2,
.activity-panel h3 {
  margin-bottom: 10px;
}

.activity-panel h3 {
  margin-top: 18px;
  font-size: 15px;
}

.activity-panel ol {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

.activity-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.activity-panel h2,
.activity-panel h3,
.activity-panel li,
.activity-panel p {
  letter-spacing: 0;
  text-align: left;
}

.activity-panel li {
  padding-left: 4px;
}

.prize-extra {
  margin-top: 18px !important;
  color: var(--accent) !important;
  font-weight: 700;
  text-align: center !important;
}

.prize-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.prize-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
}

.entry-card {
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 8px 22px rgba(37, 39, 34, 0.05);
  cursor: pointer;
}

.entry-card:active,
.spot-card:active,
.choice-card:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.985);
}

.entry-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.entry-card strong,
.entry-card small {
  display: block;
}

.entry-card strong {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.3;
}

.entry-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  border-bottom: 1px solid rgba(216, 214, 207, 0.8);
  background: rgba(243, 241, 236, 0.92);
}

.page-header h2 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.page-count {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.page-body {
  padding: 24px 20px;
}

.page-title {
  margin-bottom: 10px;
  font-size: clamp(28px, 7.2vw, 42px);
}

.overview-art {
  min-height: 180px;
  margin: 22px 0;
}

.route-chips {
  display: flex;
  gap: 8px;
  margin: 0 -20px 20px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.route-chips::-webkit-scrollbar {
  display: none;
}

.route-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}

.route-chip.active {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spot-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.spot-card .asset-slot {
  min-height: 122px;
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
}

.spot-card-copy {
  display: block;
  min-height: 58px;
  padding: 16px 12px;
  text-align: center;
}

.spot-keyword {
  float: right;
  color: var(--accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
}

.spot-card strong,
.spot-card small {
  display: block;
}

.spot-card strong {
  padding-top: 3px;
  font-size: 16px;
}

.spot-card small {
  clear: both;
  padding-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.detail-hero {
  min-height: min(54vh, 440px);
  border-radius: 0;
  border-right: 0;
  border-left: 0;
}

.detail-title-wrap {
  position: relative;
  margin-top: 0;
  padding: 0 20px;
}

.detail-page-name {
  margin: 0;
  padding: max(28px, env(safe-area-inset-top)) 20px 18px;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
}

.detail-title-card {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-title-card h1 {
  margin-bottom: 7px;
}

.detail-title-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  text-align: justify;
  text-justify: inter-ideograph;
}

.keyword-seal {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
}

.content-stack {
  display: grid;
  gap: 14px;
  padding: 24px 20px;
}

.content-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.content-card h3 {
  margin-bottom: 9px;
  font-size: 17px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  text-align: justify;
  text-justify: inter-ideograph;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 0;
  padding-left: 20px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}

.detail-actions .primary-button {
  width: 100%;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent);
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(178, 72, 49, 0.2);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.text-button {
  padding: 6px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.prize-art {
  min-height: 220px;
  margin: 18px 0 22px;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.step-item > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.step-item strong,
.step-item small {
  display: block;
}

.step-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.choice-heading {
  margin: 30px 0 14px;
}

.choice-heading h2 {
  margin-bottom: 7px;
}

.choice-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.choice-list {
  display: grid;
  gap: 12px;
}

.choice-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 176px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
}

.choice-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  font-size: 23px;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.45;
  letter-spacing: 0;
}

.choice-card small {
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.weight-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #f5ddd5;
  font-size: 11px;
  font-weight: 700;
}

.rules-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.65;
}

.form-art {
  min-height: 150px;
  margin-bottom: 20px;
}

.selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.selected-summary small,
.selected-summary strong {
  display: block;
}

.selected-summary small {
  margin-bottom: 3px;
  color: var(--muted);
}

.form-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.field-label small {
  color: var(--muted);
  font-weight: 400;
}

.required {
  color: var(--danger);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #faf9f6;
  font-size: 16px;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178, 72, 49, 0.1);
}

.field-error {
  min-height: 18px;
  margin: 6px 2px 0;
  color: var(--danger);
  font-size: 12px;
}

.upload-zone {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed #aaa79f;
  border-radius: 16px;
  background: #f5f3ef;
  cursor: pointer;
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--success);
  background: #eef6f1;
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: var(--muted);
  background: white;
  font-size: 26px;
}

.upload-copy strong,
.upload-copy small {
  display: block;
}

.upload-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}

.consent-row input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.submit-button {
  width: 100%;
}

.status-banner {
  display: none;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.55;
}

.status-banner.show {
  display: block;
}

.status-banner.error,
.status-banner.limit {
  color: #7e2721;
  background: #fae3df;
}

.success-screen {
  display: grid;
  min-height: calc(100dvh - 60px);
  padding: 28px 20px calc(32px + env(safe-area-inset-bottom));
  place-items: center;
  text-align: center;
}

.success-card {
  width: 100%;
  padding: 34px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--success);
  font-size: 38px;
}

.success-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.success-code {
  display: block;
  margin: 22px 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  word-break: break-all;
}

.success-actions {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: min(86vw, 560px);
  padding: 11px 15px;
  border-radius: 999px;
  color: white;
  background: rgba(37, 39, 34, 0.92);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.submit-mask {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  padding: 24px;
  place-items: center;
  background: rgba(27, 28, 25, 0.58);
}

.submit-mask.show {
  display: grid;
}

.submit-mask-card {
  width: min(290px, 88vw);
  padding: 28px;
  border-radius: 20px;
  background: white;
  text-align: center;
}

.submit-mask-card strong,
.submit-mask-card p {
  display: block;
}

.success-modal {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: none;
  padding: 24px;
  place-items: center;
  background: rgba(27, 28, 25, 0.62);
}

.success-modal.show {
  display: grid;
}

body.modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: none;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  place-items: center;
  background: rgba(45, 28, 18, 0.68);
}

.privacy-modal.show {
  display: grid;
}

.privacy-modal-card {
  display: flex;
  width: min(430px, 100%);
  max-height: min(88dvh, 760px);
  flex-direction: column;
  border: 2px solid #ffc14d;
  border-radius: 20px;
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(70, 30, 12, 0.34);
  overflow: hidden;
  animation: success-modal-in 180ms ease-out both;
}

.privacy-modal-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 15px 14px 13px 18px;
  border-bottom: 1px solid #f0d9b8;
  background: linear-gradient(180deg, #fff8df, #fff4dc);
}

.privacy-modal-header h2 {
  margin: 0;
  color: #a83f19;
  font-size: 20px;
  line-height: 1.3;
}

.privacy-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #9b5b39;
  background: rgba(255, 255, 255, 0.72);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal-content {
  flex: 1 1 auto;
  padding: 16px 18px 18px;
  color: #4d382c;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.privacy-modal-content h3 {
  margin: 17px 0 7px;
  color: #a83f19;
  font-size: 15px;
  line-height: 1.45;
}

.privacy-modal-content h3:first-of-type {
  margin-top: 14px;
}

.privacy-modal-content p {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.72;
  text-align: justify;
  text-justify: inter-ideograph;
}

.privacy-modal-content a {
  color: #a83f19;
  overflow-wrap: anywhere;
}

.privacy-modal-consent {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  padding: 13px 18px;
  border-top: 1px solid #f0d9b8;
  color: #713a21;
  background: #fff3d9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-modal-consent input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #bd4824;
}

.privacy-modal-actions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 9px;
  padding: 12px 18px 16px;
  background: #fffaf0;
}

.privacy-modal-actions .primary-button,
.privacy-modal-actions .secondary-button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.privacy-modal-actions .primary-button:disabled {
  filter: grayscale(0.45);
  opacity: 0.5;
}

.success-modal-card {
  width: min(360px, 90vw);
  padding: 30px 24px 24px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  text-align: center;
  animation: success-modal-in 180ms ease-out both;
}

.success-modal-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.success-modal-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.success-modal-actions {
  display: grid;
  gap: 10px;
}

.secondary-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

@keyframes success-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.submit-mask-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border: 4px solid var(--soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.loading-screen {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  background: var(--paper);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.loading-screen.hide {
  visibility: hidden;
  opacity: 0;
}

.loading-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: var(--accent);
  font-size: 30px;
}

.loading-screen p {
  font-size: 13px;
}

noscript {
  display: block;
  padding: 30px;
  text-align: center;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen.screen-leaving {
  pointer-events: none;
  animation: screen-out 150ms ease-in both;
}

@keyframes screen-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.992);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 八个景点详情页：1080×2721效果图统一坐标 */
.spot-detail-screen {
  min-height: 0;
  padding: 0;
  background: #ffa482;
}

.spot-detail-design {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.spot-detail-background {
  display: block;
  width: 100%;
  height: auto;
  content-visibility: auto;
  contain-intrinsic-size: auto 1612px;
}

.spot-detail-back,
.spot-detail-navigation,
.spot-detail-checkin {
  position: absolute;
  z-index: 8;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;
}

.spot-detail-navigation {
  top: 36.15%;
  right: 0.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 18.5%;
  height: 3.25%;
  border: 2px solid rgba(255, 248, 211, 0.96);
  border-radius: 999px;
  color: #ae1e16;
  background: rgba(255, 250, 226, 0.94);
  box-shadow: 0 5px 14px rgba(136, 48, 24, 0.22);
  font-size: clamp(11px, 3vw, 19px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.spot-detail-navigation-icon {
  display: inline-block;
  font-size: 0.9em;
  transform: rotate(-35deg);
}

.spot-detail-back {
  top: 4.59%;
  left: -0.75%;
  width: 19.26%;
  height: 4.08%;
}

.spot-detail-checkin {
  top: 88.83%;
  left: 22.69%;
  width: 54.63%;
  height: 6.25%;
  animation: spot-checkin-breathe 2.2s ease-in-out infinite;
}

.spot-detail-back img,
.spot-detail-checkin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.spot-detail-checkin::after {
  position: absolute;
  inset: 7% 4%;
  border: 2px solid rgba(255, 244, 159, 0.82);
  border-radius: 999px;
  content: "";
  pointer-events: none;
  animation: spot-checkin-ring 2.2s ease-out infinite;
}

.spot-detail-back:active,
.spot-detail-navigation:active,
.spot-detail-checkin:active {
  animation-play-state: paused;
  transform: scale(0.91);
  filter: brightness(0.91);
}

.spot-detail-back:focus-visible,
.spot-detail-navigation:focus-visible,
.spot-detail-checkin:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@keyframes spot-checkin-breathe {
  0%, 100% {
    transform: translateZ(0) scale(0.97);
  }
  50% {
    transform: translateZ(0) scale(1.045);
  }
}

@keyframes spot-checkin-ring {
  0% { opacity: 0.8; transform: scale(0.96); }
  75%, 100% { opacity: 0; transform: scale(1.12); }
}

/* 抽大奖页面：1080×1920 底图坐标映射 */
.prize-screen,
.form-screen {
  min-height: 0;
  padding: 0;
  background: #ffa17f;
}

.design-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  line-height: 0;
  overflow: hidden;
}

/* 抽大奖页：画布自适应视口高度（背景 cover 填满），避免微信内被裁剪显示不全 */
.design-canvas.prize-canvas {
  aspect-ratio: auto;
  height: 100dvh;
  min-height: 560px;
  max-height: 1000px;
}

@supports not (height: 100dvh) {
  .design-canvas.prize-canvas {
    height: 100vh;
  }
}

.design-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-back {
  position: absolute;
  z-index: 8;
  top: 6.65%;
  left: -3.4%;
  width: 22%;
  height: 5.1%;
  padding: 0 1% 0 3%;
  border: 2px solid #fff4a4;
  border-radius: 0 999px 999px 0;
  color: #fff;
  background: linear-gradient(180deg, #ffe57e 0%, #ff9c37 48%, #f04420 100%);
  box-shadow: 0 2px 0 #c9421b, 0 5px 10px rgba(156, 54, 20, 0.3);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 2px rgba(121, 45, 18, 0.45);
  cursor: pointer;
  animation: design-button-breathe 0.92s ease-in-out infinite;
}

.prize-choice,
.design-submit {
  position: absolute;
  z-index: 7;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 50%;
  animation: design-button-breathe 0.88s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.prize-choice img,
.design-submit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.prize-choice-photo {
  top: 44.53125%;
  left: 19.074074%;
  width: 64.444444%;
  height: 8.958333%;
}

.prize-choice-social {
  top: 68.125%;
  left: 19.074074%;
  width: 67.592593%;
  height: 8.958333%;
  animation-delay: -0.34s;
}

.design-button-breathe-placeholder {
  display: none;
}

@keyframes design-button-breathe {
  0%, 100% {
    transform: translateZ(0) scale(0.975);
    box-shadow: 0 2px 3px rgba(164, 59, 24, 0.22);
  }
  50% {
    transform: translateZ(0) scale(1.035);
    box-shadow: 0 6px 8px rgba(164, 59, 24, 0.38);
  }
}

.prize-choice:active,
.design-submit:active,
.design-back:active {
  animation-play-state: paused;
  transform: scale(0.9);
  filter: brightness(0.9);
}

.prize-choice:focus-visible,
.design-submit:focus-visible,
.design-back:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.design-form {
  position: absolute;
  z-index: 6;
  inset: 0;
}

.design-upload-wrap {
  position: absolute;
  top: 24.791667%;
  left: 14.62963%;
  width: 70.740741%;
  height: 29.84375%;
}

.design-upload {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 8%;
  place-items: center;
  border-radius: 2px;
  cursor: pointer;
}

.design-upload-selected {
  display: block;
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 10px;
  color: #b84616;
  background: rgba(255, 252, 221, 0.94);
  font-size: clamp(12px, 3.6vw, 17px);
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  box-shadow: 0 4px 14px rgba(168, 71, 24, 0.12);
}

.design-upload.has-file .design-upload-selected {
  opacity: 1;
}

.design-upload-selected strong,
.design-upload-selected small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-field {
  position: absolute;
  left: 16.48%;
  width: 67.04%;
  height: 5.15%;
}

.design-field-name { top: 59.583333%; }
.design-field-phone { top: 69.53125%; }

.design-field input {
  width: 100%;
  height: 100%;
  padding: 0 4%;
  border: 0;
  border-radius: 12px;
  outline: none;
  color: #a63e18;
  background: transparent;
  font-size: clamp(16px, 4.3vw, 21px);
  line-height: 1;
}

.design-field input:focus {
  box-shadow: 0 0 0 3px rgba(255, 162, 40, 0.35);
}

.design-consent {
  position: absolute;
  top: 78.2%;
  left: 16.5%;
  width: 67%;
  min-height: 2.2%;
}

.design-consent .consent-row {
  grid-template-columns: 17px 1fr;
  gap: 6px;
  color: #a9401c;
  font-size: clamp(8px, 2.2vw, 10px);
  line-height: 1.25;
}

.design-consent .consent-row input {
  width: 16px;
  height: 16px;
  margin-top: 0;
}

.design-submit {
  top: 83.05%;
  left: 33.148148%;
  width: 33.888889%;
  height: 6.09375%;
  animation-delay: -0.18s;
}

.design-canvas .field-error {
  position: absolute;
  top: calc(100% + 2px);
  left: 2px;
  min-height: 0;
  margin: 0;
  color: #b52416;
  font-size: clamp(9px, 2.6vw, 12px);
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 246, 215, 0.9);
}

.form-canvas .status-banner {
  position: absolute;
  z-index: 10;
  top: 18.8%;
  left: 12%;
  width: 76%;
  margin: 0;
  text-align: center;
}

/* 750px 设计稿按 2 倍图映射到 375px 手机逻辑宽度 */
.app-shell {
  max-width: 375px;
}

.page-body {
  padding-right: 20px;
  padding-left: 20px;
}

[data-screen="overview"] .page-body {
  min-height: 1000px;
}

.spot-grid {
  grid-template-columns: repeat(2, 162.5px);
  gap: 10px;
}

.spot-card {
  width: 162.5px;
  height: 120px;
  min-height: 120px;
}

.spot-card .asset-slot {
  min-height: 80px;
}

.spot-card-copy {
  min-height: 40px;
  padding: 10px 8px;
  text-align: center;
}

.spot-card strong {
  font-size: 14px;
}

.detail-actions .primary-button,
.submit-button {
  width: 335px;
  min-height: 52px;
}

.form-card .submit-button {
  margin-left: -21px;
}

[data-screen="entry"] .page-body {
  min-height: 812px;
}

.choice-list {
  gap: 16px;
}

.choice-card {
  width: 335px;
  min-height: 80px;
  padding: 14px 20px;
}

.choice-card strong {
  font-size: 20px;
  line-height: 1.35;
}

.form-art {
  min-height: 210px;
  max-height: 210px;
}

@media (min-width: 620px) {
  .page-body,
  .content-stack {
    padding-right: 20px;
    padding-left: 20px;
  }

  .detail-title-wrap,
  .detail-actions {
    padding-right: 20px;
    padding-left: 20px;
  }

  .spot-grid {
    grid-template-columns: repeat(2, 162.5px);
  }
}

@media (max-width: 360px) {
  .home-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .home-art {
    min-height: 210px;
  }

  .entry-card {
    min-height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p1-petals {
    display: none;
  }

  .p1-hotspot {
    animation: none !important;
  }

  .p1-hotspot::after {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
