:root {
  --ink: #18221e;
  --ink-soft: #365044;
  --sky: #dcebf3;
  --sky-deep: #4f8fb3;
  --snow: #fbfaf4;
  --snow-soft: #f3efe4;
  --grass: #6f9160;
  --jade: #4f7665;
  --pine: #294b3d;
  --sun: #f2c85b;
  --sun-soft: #ffe7a8;
  --orange: #e58645;
  --red: #c7553d;
  --line: rgba(31, 63, 71, .16);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --shadow: 0 22px 70px rgba(30, 59, 66, .16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 200, 91, .28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(79, 143, 179, .24), transparent 34%),
    linear-gradient(180deg, #edf6f8 0%, #fbfaf4 34%, #eef4ec 72%, #f7efe4 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 75, 61, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 75, 61, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #1d342d;
  background: rgba(251, 250, 244, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 10px 36px rgba(35, 67, 76, .08);
  backdrop-filter: blur(20px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 210px;
}

.brand-seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff9e6;
  background:
    radial-gradient(circle at 32% 26%, #f7d879, transparent 28%),
    linear-gradient(145deg, #d55d3b, #9d3427);
  border: 1px solid rgba(255, 245, 200, .85);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(169, 63, 43, .24);
  font-family: Georgia, "Songti SC", serif;
  font-weight: 800;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--jade);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 24px;
  color: #315148;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a,
.footer-nav a,
.socials span {
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--red);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
}

.header-cta {
  padding: 0 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, #d95f3d, #efad4d);
  box-shadow: 0 12px 28px rgba(210, 91, 61, .18);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 110px clamp(20px, 7vw, 100px) 48px;
  background: #b6d4df;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 42, 45, .68), rgba(13, 42, 45, .06) 58%, rgba(12, 30, 32, .22)),
    url("images/hero-guilin.jpg") center / cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 231, 168, .48), transparent 25%),
    linear-gradient(180deg, rgba(89, 157, 191, .06), rgba(15, 51, 55, .16) 52%, rgba(25, 43, 38, .66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-bottom: 110px;
  text-shadow: 0 14px 44px rgba(13, 35, 38, .52);
}

.eyebrow {
  margin: 0 0 14px;
  color: #b43f2e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero .eyebrow,
.draw-copy .eyebrow {
  color: #ffe6a6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  letter-spacing: 0;
}

.hero h1 {
  color: #fff4cf;
  font-size: clamp(72px, 12vw, 156px);
  line-height: .86;
  font-weight: 900;
}

.hero-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: #fff8dc;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.35;
  font-family: "Songti SC", "STSong", serif;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  padding: 0 22px;
}

.btn-primary {
  color: #1b352e;
  background: linear-gradient(135deg, #ffe7a8, #f0b653 58%, #e68245);
  box-shadow: 0 16px 44px rgba(221, 132, 63, .24);
}

.btn-ghost {
  color: #fff5d1;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 248, 220, .54);
  backdrop-filter: blur(14px);
}

.hero-dock {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 7vw, 100px);
  bottom: 42px;
  left: clamp(20px, 7vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  color: #23483f;
  background: rgba(251, 250, 244, .72);
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(17, 47, 52, .18);
  backdrop-filter: blur(18px);
}

.hero-dock span {
  min-height: 54px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(79, 118, 101, .15);
  border-radius: 6px;
  font-weight: 900;
}

.intro-band,
.section {
  padding: 86px clamp(20px, 6vw, 86px);
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(220, 235, 243, .78), rgba(255, 247, 226, .76) 52%, rgba(232, 243, 226, .78));
  border-block: 1px solid rgba(255, 255, 255, .76);
}

.intro-band h2,
.section-heading h2 {
  color: #1f453c;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}

.intro-band p,
.section-heading p,
.draw-copy p {
  color: #4c635a;
  line-height: 1.8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  max-width: 520px;
  margin: 0;
}

.section-heading.compact {
  display: block;
  max-width: 900px;
}

.section-heading.compact p:last-child {
  margin-top: 16px;
}

.realm-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-color: var(--orange) rgba(79, 118, 101, .12);
}

.realm-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: var(--radius);
  background: #dbe7df;
  box-shadow: var(--shadow);
}

.realm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--realm-image) center / cover;
  transition: transform .7s ease;
}

.realm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 222, .08), rgba(17, 55, 61, .16) 32%, rgba(13, 35, 34, .82));
}

.realm-card:hover::before {
  transform: scale(1.06);
}

.realm-card > * {
  position: relative;
  z-index: 1;
}

.realm-card .index {
  color: #ffe7a8;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 900;
}

.realm-card h3 {
  margin-top: 10px;
  color: #fff0ba;
  font-size: 34px;
}

.realm-card p {
  color: #fff7d9;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.result-meta span,
.destination-tags span,
.guide-cities span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #245044;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.realm-card .tag-row span {
  color: #fff6d1;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 248, 220, .26);
}

.quiz-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(229, 134, 69, .16), transparent 26%),
    linear-gradient(135deg, rgba(111, 145, 96, .16), transparent 36%);
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr);
  gap: 22px;
  align-items: stretch;
}

.quiz-card,
.recommendation-panel,
.destination-card,
.guide-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quiz-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
}

.question {
  display: grid;
  gap: 10px;
}

.question label {
  color: #284d43;
  font-weight: 900;
}

.question select {
  width: 100%;
  min-height: 48px;
  color: #203e37;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(79, 118, 101, .18);
  border-radius: var(--radius);
  padding: 0 12px;
}

.quiz-submit {
  grid-column: 1 / -1;
  width: 100%;
}

.recommendation-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 247, 226, .72), rgba(43, 77, 65, .78)),
    url("images/quiz-bg.jpg") center / cover;
}

.panel-kicker {
  margin: 0;
  color: #9e3428;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.result-card {
  animation: rise .28s ease both;
}

.result-card h3 {
  color: #fff0b0;
  font-size: clamp(30px, 4vw, 48px);
  text-shadow: 0 8px 24px rgba(18, 46, 42, .3);
}

.result-card p {
  color: #fff9e9;
  line-height: 1.75;
  text-shadow: 0 6px 18px rgba(18, 46, 42, .32);
}

.result-detail {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #fff6d9;
  font-size: 14px;
  text-shadow: 0 6px 18px rgba(18, 46, 42, .32);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== China Travel Lot ===== */
.lot-section {
  display: block;
  min-height: 660px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20, 52, 49, .8), rgba(20, 52, 49, .58)),
    url("images/draw-bg.jpg") center / cover fixed;
}

.lot-step[hidden] {
  display: none;
}

.lot-step {
  max-width: 1040px;
  margin: 0 auto;
  animation: rise .4s ease both;
}

.lot-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lot-section .eyebrow {
  color: #ffe7a8;
}

.lot-section h2 {
  color: #fff2bd;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  text-shadow: 0 12px 32px rgba(14, 38, 36, .4);
}

.lot-sub {
  margin: 0 auto;
  color: #fff8dc;
  line-height: 1.7;
  text-shadow: 0 10px 24px rgba(14, 38, 36, .4);
}

/* Lotus fortune lamp */
.lotus-lamp {
  position: relative;
  width: clamp(150px, 22vw, 210px);
  height: clamp(150px, 22vw, 210px);
  margin: 26px 0 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.lotus-lamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 231, 168, .65);
  box-shadow: 0 18px 40px rgba(120, 30, 15, .55), 0 0 60px rgba(242, 200, 91, .35);
  animation: lampFloat 4.5s ease-in-out infinite;
}

.lotus-lamp:hover img {
  animation-play-state: paused;
  transform: scale(1.05);
}

.lotus-ripple {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 60%;
  aspect-ratio: 1;
  transform: translate(-50%, 50%) scale(.4);
  border: 1px solid rgba(255, 231, 168, .5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ripple 4.5s ease-out infinite;
}

.lotus-ripple:nth-child(3) {
  animation-delay: 2.2s;
}

@keyframes lampFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ripple {
  0% { opacity: .55; transform: translate(-50%, 50%) scale(.4); }
  70% { opacity: 0; transform: translate(-50%, 50%) scale(1.7); }
  100% { opacity: 0; }
}

.lot-token-label {
  margin: 8px 0 16px;
  color: #fdeec4;
  font-weight: 700;
  text-shadow: 0 8px 20px rgba(14, 38, 36, .4);
}

.lot-token-label em {
  color: #ffe7a8;
  font-style: normal;
  font-weight: 500;
  opacity: .85;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 116px;
  padding: 12px 8px 10px;
  color: #fff8dc;
  background: rgba(255, 252, 239, .08);
  border: 1px solid rgba(255, 231, 168, .28);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, border-color .25s ease;
}

.token:hover {
  transform: translateY(-4px);
  background: rgba(255, 252, 239, .16);
}

.token.is-active {
  background: linear-gradient(180deg, rgba(255, 231, 168, .28), rgba(213, 93, 59, .3));
  border-color: #ffe7a8;
  box-shadow: 0 12px 28px rgba(120, 40, 20, .35);
}

.token-img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  border: 2px solid rgba(255, 231, 168, .55);
}

.token-name {
  font-family: "Songti SC", Georgia, serif;
  font-size: 17px;
  font-weight: 800;
}

.token-mood {
  font-size: 11px;
  letter-spacing: .04em;
  opacity: .82;
}

.token-tip {
  min-height: 20px;
  margin: 0 0 18px;
  color: #ffe7a8;
  font-size: 14px;
  text-shadow: 0 6px 16px rgba(14, 38, 36, .4);
}

.lot-draw-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Step 2: mystery sign */
.lot-mystery {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
}

.sign-tube {
  display: flex;
  gap: 7px;
  height: 96px;
  margin-bottom: 22px;
  align-items: flex-end;
}

.sign-tube i {
  width: 14px;
  height: 88px;
  background: linear-gradient(180deg, #fff0b1, #bb7b2f);
  border: 1px solid rgba(86, 44, 14, .25);
  border-radius: 99px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, .25);
  transform-origin: bottom center;
  animation: shake 1.1s ease-in-out infinite;
}

.sign-tube i:nth-child(2) { animation-delay: .15s; height: 96px; }
.sign-tube i:nth-child(3) { animation-delay: .3s; }

@keyframes shake {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.mystery-label {
  margin: 0;
  color: #ffe7a8;
  letter-spacing: .3em;
  font-size: 13px;
}

.mystery-poem {
  max-width: 680px;
  margin: 14px auto 26px;
  color: #fff7e0;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.6;
  text-shadow: 0 12px 30px rgba(14, 38, 36, .45);
}

.lot-link {
  margin-top: 14px;
  color: #ffe7a8;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 231, 168, .5);
  padding-bottom: 2px;
  font-size: 14px;
}

/* Step 3: photo + sign */
.lot-result {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  text-align: left;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lot-photo {
  position: relative;
  min-height: 560px;
  background:
    radial-gradient(circle at 70% 30%, rgba(242, 200, 91, .14), transparent 55%),
    linear-gradient(120deg, rgba(13, 42, 45, .42), transparent 50%),
    var(--image, none) center / cover no-repeat,
    linear-gradient(135deg, #cd4d37, #f2c85b);
}

.lot-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 30px rgba(40, 18, 8, .4);
  pointer-events: none;
}

.sign-paper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 30px 26px;
  color: #4a3320;
  background:
    repeating-linear-gradient(0deg, rgba(120, 70, 30, .035), rgba(120, 70, 30, .035) 2px, transparent 2px, transparent 7px),
    linear-gradient(180deg, #fbf4e2, #f3e7cb);
  border-left: 3px solid #c7553d;
}

.sign-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(157, 52, 39, .4);
}

.sign-brand {
  font-size: 11px;
  letter-spacing: .12em;
  color: #9d3427;
  font-weight: 700;
}

.sign-no {
  font-family: "Songti SC", Georgia, serif;
  font-size: 15px;
  color: #7a2c1d;
}

.sign-name {
  margin: 2px 0 0;
  color: #7a2c1d;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
}

.sign-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sign-type {
  padding: 3px 12px;
  font-size: 12px;
  color: #fff7e6;
  background: linear-gradient(135deg, #d55d3b, #9d3427);
  border-radius: 999px;
}

.sign-city {
  font-weight: 900;
  color: #1e463d;
  letter-spacing: .03em;
}

.sign-persona {
  padding: 10px 14px;
  background: rgba(199, 85, 61, .1);
  border-radius: 6px;
}

.persona-label,
.yiji-label,
.task-label,
.reward-label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: #9d3427;
  font-weight: 800;
  margin-bottom: 3px;
}

.sign-persona strong {
  font-size: 19px;
  color: #29483f;
}

.sign-persona em {
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
  color: #6a5238;
  opacity: .8;
}

.sign-poem {
  margin: 2px 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
  color: #3a2a18;
}

.sign-yiji {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sign-yiji p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4a3320;
}

.sign-yiji .ji .yiji-label {
  color: #4f7665;
}

.sign-task,
.sign-rewards {
  padding-top: 10px;
  border-top: 1px dashed rgba(157, 52, 39, .3);
}

.sign-task p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a3320;
}

.task-accept {
  padding: 6px 16px;
  font-size: 13px;
  color: #7a2c1d;
  background: linear-gradient(135deg, #ffe7a8, #f2c85b);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.task-accept.is-done {
  background: #cdebd9;
  color: #2c6b4a;
  cursor: default;
}

.sign-rewards ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sign-rewards li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: #4a3320;
}

.sign-rewards li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #d55d3b;
}

.sign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.sign-actions .btn {
  min-height: 42px;
  padding: 0 18px;
}

.sign-actions .btn-ghost {
  color: #7a2c1d;
  border-color: rgba(157, 52, 39, .5);
}

.sign-actions .redraw {
  color: #9d3427;
  border-bottom-color: rgba(157, 52, 39, .5);
}

/* Share poster modal */
.poster-modal[hidden] {
  display: none;
}

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 24, .72);
  backdrop-filter: blur(6px);
}

.poster-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 90vh;
  padding: 20px;
  background: var(--snow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.poster-ratios {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.poster-ratios button {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--snow-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.poster-ratios button.is-active {
  color: #fff7e6;
  background: linear-gradient(135deg, #d55d3b, #9d3427);
  border-color: transparent;
}

.poster-canvas-wrap {
  display: grid;
  place-items: center;
  overflow: auto;
}

#posterCanvas {
  max-width: 100%;
  max-height: 62vh;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(20, 40, 30, .3);
}

.poster-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.destination-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.destination-card,
.guide-card {
  overflow: hidden;
  color: var(--ink);
}

.destination-image,
.guide-image {
  min-height: 240px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(23, 64, 63, .14)),
    var(--image) center / cover;
}

.destination-body,
.guide-body {
  padding: 20px;
}

.destination-card h3,
.guide-card h3 {
  color: #1f463d;
  font-size: 30px;
}

.destination-card p,
.guide-card p {
  color: #536a60;
  line-height: 1.7;
}

.destination-tags,
.guide-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.card-bottom,
.guide-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.days,
.price {
  color: #b3472f;
  font-weight: 950;
}

.small-btn {
  min-height: 38px;
  padding: 0 14px;
  color: #284c43;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(79, 118, 101, .22);
  border-radius: var(--radius);
  font-weight: 900;
}

.small-btn:hover,
.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.guide-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 134, 69, .16), transparent 26%),
    linear-gradient(135deg, rgba(220, 235, 243, .58), rgba(255, 248, 226, .62) 48%, rgba(232, 243, 226, .74));
}

.guide-card {
  display: flex;
  flex-direction: column;
}

.guide-card .guide-image {
  min-height: 260px;
}

.guide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-bottom {
  margin-top: auto;
}

.guide-actions {
  display: flex;
  gap: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 44px clamp(20px, 6vw, 86px);
  color: #dcebdd;
  background:
    linear-gradient(135deg, #1d3d35, #20312e 56%, #58302a);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-brand p {
  margin: 8px 0 0;
  color: #b9d3c3;
}

.footer-nav,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.socials span {
  color: #fff1bd;
  border-bottom: 1px solid rgba(255, 231, 168, .38);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  0% {
    opacity: .65;
    transform: translateY(10px) scale(.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
  }

  .main-nav {
    gap: 14px;
    font-size: 13px;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar { display: none; }

  .brand {
    min-width: 0;
  }

  .brand small { display: none; }

  .intro-band,
  .quiz-shell,
  .lot-result,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .lot-photo {
    min-height: 300px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p:last-child {
    margin-top: 16px;
  }

  .hero-dock {
    grid-template-columns: repeat(4, 1fr);
  }

  .destination-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 16px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    padding: 96px 18px 34px;
  }

  .hero-content {
    padding-bottom: 230px;
  }

  .hero h1 {
    font-size: clamp(64px, 22vw, 92px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-dock {
    right: 18px;
    left: 18px;
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-band,
  .section {
    padding: 58px 18px;
  }

  .realm-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .realm-card {
    min-height: 420px;
  }

  .quiz-card,
  .destination-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .lot-section {
    min-height: auto;
  }

  .token {
    width: 92px;
  }

  .token-img {
    width: 60px;
    height: 60px;
  }

  .sign-yiji,
  .sign-rewards ul {
    grid-template-columns: 1fr;
  }

  .card-bottom,
  .guide-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-actions {
    width: 100%;
    flex-direction: column;
  }

  .small-btn {
    width: 100%;
  }
}

/* ===== City detail ===== */
.city-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  margin-top: 74px;
  padding: clamp(28px, 5vw, 60px);
  color: #fff7e6;
  background:
    linear-gradient(180deg, rgba(15, 35, 33, .25), rgba(13, 30, 28, .82)),
    var(--image, none) center / cover no-repeat,
    linear-gradient(135deg, #294b3d, #4f7665);
}

.city-hero.hub {
  align-items: center;
  text-align: center;
}

.city-hero-inner {
  max-width: 760px;
}

.city-hero.hub .city-hero-inner {
  margin: 0 auto;
}

.city-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #ffe7a8;
  font-size: 14px;
}

.city-hero .eyebrow {
  color: #ffe7a8;
}

.city-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .95;
  text-shadow: 0 14px 36px rgba(10, 28, 26, .5);
}

.city-hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 247, 220, .82);
}

.city-tagline {
  max-width: 620px;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  text-shadow: 0 10px 24px rgba(10, 28, 26, .5);
}

.city-facts {
  display: flex;
  gap: 28px;
  margin-top: 20px;
}

.city-facts span {
  font-size: 15px;
}

.city-facts b {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  color: #ffe7a8;
  font-weight: 700;
}

.city-intro {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 40px) 8px;
}

.city-intro p {
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.9;
  color: var(--ink);
}

.city-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(18px, 4vw, 40px);
}

.attraction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.attraction-card {
  position: relative;
  padding: 24px 26px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(30, 59, 66, .08);
}

.attraction-no {
  font-family: "Songti SC", Georgia, serif;
  font-size: 20px;
  color: var(--red);
  font-weight: 800;
}

.attraction-card h3 {
  margin: 4px 0 8px;
  color: #1f463d;
  font-size: 22px;
}

.attraction-card h3 span {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #6a8478;
}

.attraction-card p {
  margin: 0;
  color: #4b6359;
  line-height: 1.75;
}

/* Travel packs */
.pack-section {
  background: linear-gradient(180deg, #f7efe2, #eef4ec);
  max-width: none;
  padding: clamp(44px, 6vw, 72px) clamp(18px, 4vw, 40px);
}

.pack-section .section-heading {
  max-width: 1120px;
  margin: 0 auto 26px;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.pack-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pack-card.featured {
  position: relative;
  border: 2px solid var(--red);
}

.pack-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  font-size: 12px;
  color: #fff7e6;
  background: linear-gradient(135deg, #d55d3b, #9d3427);
  border-radius: 999px;
}

.pack-kicker {
  font-weight: 800;
  color: #1f463d;
}

.pack-price {
  margin: 6px 0 2px;
  font-size: 34px;
  font-weight: 900;
  color: var(--red);
  font-family: "Songti SC", Georgia, serif;
}

.pack-for {
  font-size: 13px;
  color: #6a8478;
  margin-bottom: 12px;
}

.pack-card ul {
  flex: 1;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.pack-card li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 14px;
  color: #4b6359;
}

.pack-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #d55d3b;
}

.pack-buy {
  width: 100%;
}

.custom-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.custom-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #6a8478;
}

.custom-form select {
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.custom-form .btn-primary {
  margin-top: 4px;
}

.custom-result:empty {
  display: none;
}

.custom-result {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(199, 85, 61, .08);
  border-radius: 8px;
}

.custom-line {
  margin: 0 0 6px;
  font-size: 13px;
  color: #4b6359;
}

.custom-summary {
  margin: 0 0 10px;
  font-weight: 800;
  color: #9d3427;
}

.pack-note {
  max-width: 1120px;
  margin: 18px auto 0;
  font-size: 13px;
  color: #8a7a63;
  text-align: center;
}

.city-cta {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 18px;
  background:
    linear-gradient(180deg, rgba(20, 52, 49, .9), rgba(20, 52, 49, .9)),
    url("images/draw-bg.jpg") center / cover;
  color: #fff7e6;
}

.city-cta h2 {
  color: #fff2bd;
  font-size: clamp(30px, 5vw, 56px);
}

.city-cta p {
  color: #fff8dc;
  margin-bottom: 20px;
}

.city-cta .btn {
  margin: 0 6px;
}

/* Destinations hub */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff7e6;
  background:
    linear-gradient(180deg, rgba(15, 35, 33, .1), rgba(13, 30, 28, .85)),
    var(--image, none) center / cover no-repeat,
    linear-gradient(135deg, #294b3d, #4f7665);
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}

.hub-card:hover {
  transform: translateY(-5px);
}

.hub-card-body {
  padding: 22px;
}

.hub-region {
  font-size: 12px;
  letter-spacing: .12em;
  color: #ffe7a8;
}

.hub-card h3 {
  margin: 4px 0 6px;
  font-size: 30px;
}

.hub-card h3 span {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(255, 247, 220, .82);
}

.hub-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 247, 220, .9);
}

@media (max-width: 860px) {
  .attraction-grid,
  .pack-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Home layout + essentials ===== */
main#top {
  display: flex;
  flex-direction: column;
}
main#top .hero { order: 1; }
main#top .intro-band { order: 2; }
main#top #draw { order: 3; }
main#top #destinations { order: 4; }
main#top #realms { order: 5; }
main#top #quiz { order: 6; }
main#top #guides { order: 7; }
main#top #essentials-band { order: 8; }

.essentials-band {
  background:
    linear-gradient(120deg, rgba(157, 52, 39, .92), rgba(199, 85, 61, .82)),
    url("images/draw-bg.jpg") center / cover;
  color: #fff7e6;
}

.essentials-inner {
  max-width: 760px;
}

.essentials-band .eyebrow {
  color: #ffe7a8;
}

.essentials-band h2 {
  color: #fff2bd;
  font-size: clamp(34px, 5vw, 64px);
}

.essentials-band p {
  color: #fff3da;
  line-height: 1.8;
  max-width: 620px;
}

.essentials-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.essentials-tags span {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff7e6;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 231, 168, .4);
  border-radius: 999px;
}

/* Essentials page grid */
.ess-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ess-grid .attraction-card h3 span {
  display: block;
  margin: 2px 0 0;
}

@media (max-width: 860px) {
  .ess-grid {
    grid-template-columns: 1fr;
  }
}

.essentials-band { text-align: center; }
.essentials-inner { margin: 0 auto; }
.essentials-band p { margin-left: auto; margin-right: auto; }
.essentials-tags { justify-content: center; }

/* Attraction card images (convention: images/attractions/{key}-{idx}.jpg; missing images fall back to a text card) */
.attraction-card.has-img {
  padding: 0;
  overflow: hidden;
}
.attraction-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.attraction-card.has-img .attraction-text {
  padding: 20px 24px 24px;
}

/* ===== Pack pricing tiers ===== */
.free-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 18px 24px;
  background: #fffdf6;
  border: 1px dashed rgba(157, 52, 39, .45);
  border-radius: var(--radius);
}
.free-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #2c6b4a;
  background: #cdebd9;
  border-radius: 999px;
}
.free-banner p { margin: 0; color: #4b6359; }
.free-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.free-actions .btn-ghost { color: #7a2c1d; border-color: rgba(157, 52, 39, .5); background: transparent; }

.pack-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
}
.pack-card .pack-price { font-size: 30px; }
.pack-card li.incl {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #8a7a63;
  font-size: 13px;
}
.pack-card li.incl::before { content: "↑"; }
.pack-card.premium { border-color: #9d3427; }

.custom-panel {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 24px 26px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.custom-panel h3 { color: #7a2c1d; font-size: 24px; }
.custom-panel > p { color: #4b6359; margin: 4px 0 14px; }
.custom-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
.custom-form-row .btn-primary { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .free-banner { flex-direction: column; align-items: flex-start; }
}

/* ===== Breadcrumb / Don't Miss / Pack store ===== */
.crumb {
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 247, 220, .85);
}
.crumb a { color: #ffe7a8; }
.crumb span { margin: 0 8px; opacity: .6; }
.crumb b { font-weight: 700; }

.dont-miss {
  margin-top: 28px;
  padding: 22px 26px;
  background: rgba(199, 85, 61, .07);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.dont-miss h2 {
  font-size: 20px;
  color: #9d3427;
  margin-bottom: 10px;
}
.dont-miss ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dont-miss li {
  position: relative;
  padding-left: 22px;
  color: #3a2a18;
  line-height: 1.6;
}
.dont-miss li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #d55d3b;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #9d3427;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--snow-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip.is-active {
  color: #fff7e6;
  background: linear-gradient(135deg, #d55d3b, #9d3427);
  border-color: transparent;
}
.filter-reset {
  margin-left: auto;
  align-self: center;
  padding: 8px 16px;
  font-size: 13px;
  color: #9d3427;
  background: none;
  border: 1px solid rgba(157, 52, 39, .4);
  border-radius: 999px;
}
.filter-count { margin: 0 0 16px; color: #6a8478; font-size: 14px; }
.pack-empty { color: #8a7a63; }

.pack-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(30, 59, 66, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shop-img {
  position: relative;
  min-height: 170px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(13,30,28,.32)),
    var(--image, none) center / cover no-repeat,
    linear-gradient(135deg, #294b3d, #4f7665);
}
.shop-theme {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff7e6;
  background: rgba(157, 52, 39, .9);
  border-radius: 999px;
}
.shop-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.shop-region { font-size: 12px; letter-spacing: .06em; color: #9d3427; font-weight: 700; }
.shop-body h3 { color: #1f463d; font-size: 24px; }
.shop-body h3 span { margin-left: 6px; font-size: 12px; font-weight: 500; color: #6a8478; }
.shop-pack { margin: 0; color: #4b6359; }
.shop-meta { display: flex; gap: 14px; font-size: 13px; color: #6a8478; }
.shop-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.shop-price { font-weight: 900; color: var(--red); font-size: 18px; }
.shop-go { color: #9d3427; font-weight: 700; font-size: 14px; }

@media (max-width: 680px) {
  .dont-miss ul { grid-template-columns: 1fr; }
  .filter-reset { margin-left: 0; }
}

.guide-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.guide-pills span {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #9d3427;
  background: rgba(199, 85, 61, .1);
  border: 1px solid rgba(157, 52, 39, .25);
  border-radius: 999px;
}
.guide-shop-btn { color: #1b352e; }

/* Editorial: center and narrow the home content for magazine-like whitespace */
.section-heading,
main#top .realm-grid,
main#top .destination-grid,
main#top .guide-pills,
main#top #guides .btn {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
main#top .intro-band {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* Header logo */
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}
.brand { min-width: 0; }
@media (max-width: 680px) {
  .brand-logo { height: 38px; }
}

.pack-grid-6 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.pack-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tiers-section .pack-card { padding: 20px 18px; }
.tiers-section .pack-card .pack-price { font-size: 26px; margin: 4px 0 10px; }
