/* ==========================================================================
   PineNote (松语心愿树) — Midnight Observatory & Warm Brass Postcard System
   Original aesthetic system designed for Christmas & New Year wish trees.
   ========================================================================== */

:root {
  --bg-deep: #091220;
  --bg-mid: #101f33;
  --bg-elevated: rgba(16, 30, 50, 0.78);
  --bg-glass: rgba(14, 26, 44, 0.62);
  --border-subtle: rgba(236, 200, 130, 0.16);
  --border-strong: rgba(236, 200, 130, 0.36);

  --gold: #eab864;
  --gold-bright: #f8dca0;
  --gold-deep: #b87e28;
  --berry: #cf464f;
  --berry-hover: #df565f;
  --emerald: #2c7a5f;
  --parchment: #fbf5e8;
  --ink-dark: #281e16;

  --text: #f6f1e7;
  --text-muted: #b7c4d6;
  --text-dim: #8192ab;

  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', 'Long Cang', cursive;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px rgba(3, 8, 18, 0.45);
  --shadow-glow: 0 0 36px rgba(234, 184, 100, 0.18);
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #162b47 0%, #0b1526 52%, #070e1a 100%);
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Subtle celestial grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: radial-gradient(#ffffff 0.7px, transparent 0.7px);
  background-size: 24px 24px;
}

/* Full-screen gentle snow canvas */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Scene-specific rich winter backdrops */
body.scene-observatory {
  background: radial-gradient(circle at 65% 18%, #1d3659 0%, #0d1a2e 48%, #070f1c 100%);
}
body.scene-aurora {
  background:
    radial-gradient(ellipse at 25% 15%, rgba(44, 178, 149, 0.32), transparent 55%),
    radial-gradient(ellipse at 78% 22%, rgba(124, 92, 196, 0.28), transparent 52%),
    linear-gradient(175deg, #091722 0%, #0f2b36 55%, #091421 100%);
}
body.scene-hearth {
  background:
    radial-gradient(circle at 50% 65%, rgba(186, 86, 44, 0.36), transparent 58%),
    radial-gradient(circle at 20% 15%, rgba(128, 48, 35, 0.28), transparent 50%),
    linear-gradient(180deg, #1d0f0d 0%, #2b1612 52%, #140a09 100%);
}
body.scene-snow-village {
  background:
    radial-gradient(circle at 75% 16%, rgba(214, 232, 255, 0.22), transparent 36%),
    linear-gradient(180deg, #12243d 0%, #1d385c 55%, #101e33 100%);
}
body.scene-starlight {
  background:
    radial-gradient(circle at 30% 20%, rgba(84, 90, 168, 0.32), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(234, 184, 100, 0.12), transparent 46%),
    linear-gradient(180deg, #090d1b 0%, #111730 55%, #070a14 100%);
}
body.scene-crimson-eve {
  background:
    radial-gradient(circle at 50% 18%, rgba(176, 44, 58, 0.42), transparent 56%),
    radial-gradient(circle at 80% 78%, rgba(234, 184, 100, 0.16), transparent 45%),
    linear-gradient(180deg, #210b10 0%, #361119 52%, #17080c 100%);
}

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

button, input, textarea, select {
  font-family: inherit;
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 18, 32, 0.72);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(234, 184, 100, 0.2), rgba(44, 122, 95, 0.25));
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--text);
  background: rgba(234, 184, 100, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.icon-pill:hover {
  border-color: var(--border-strong);
  background: rgba(234, 184, 100, 0.14);
}

.icon-pill.is-playing {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(234, 184, 100, 0.18);
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: flex-end;
}

.mobile-drawer.is-open {
  display: flex;
}

.drawer-panel {
  width: min(320px, 86vw);
  height: 100%;
  background: #0d192b;
  border-left: 1px solid var(--border-subtle);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-section-label {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  font-size: 0.94rem;
}

.drawer-link:hover {
  border-color: var(--border-subtle);
  background: rgba(234, 184, 100, 0.1);
}

/* ==========================================================================
   Buttons & Inputs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: linear-gradient(135deg, #f3cd7e 0%, #df9f3e 100%);
  color: #1c1308;
  box-shadow: 0 10px 28px rgba(234, 184, 100, 0.28);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fae0a2 0%, #eaad4c 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(234, 184, 100, 0.38);
}

.btn-berry {
  background: linear-gradient(135deg, #d84c55 0%, #b5323c 100%);
  color: #fff9f5;
  box-shadow: 0 10px 26px rgba(207, 70, 79, 0.3);
}

.btn-berry:hover {
  background: linear-gradient(135deg, #e55b64 0%, #c73c46 100%);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(234, 184, 100, 0.14);
  border-color: var(--gold);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.input, .textarea, .select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(7, 15, 28, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234, 184, 100, 0.16);
}

.textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.6;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-bright);
}

/* ==========================================================================
   Hero Section — Asymmetric Editorial Observatory Layout
   ========================================================================== */
.hero-section {
  padding: 46px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(234, 184, 100, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.season-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-title-accent {
  color: var(--gold-bright);
  font-style: italic;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 26px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.code-jump-form {
  display: flex;
  gap: 8px;
  max-width: 410px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(9, 18, 32, 0.65);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.code-jump-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.9rem;
  outline: none;
}

.code-jump-form input::placeholder {
  color: var(--text-dim);
}

.hero-countdown-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 14px;
  background: rgba(16, 30, 50, 0.68);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.mini-countdown-pill strong {
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Archway Observatory Tree Showcase */
.arch-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 26px 22px 20px;
  border-radius: 220px 220px 28px 28px;
  background:
    radial-gradient(circle at 50% 34%, rgba(36, 68, 108, 0.55) 0%, rgba(10, 20, 36, 0.92) 72%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.arch-stage::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 212px 212px 20px 20px;
  border: 1px dashed rgba(234, 184, 100, 0.24);
  pointer-events: none;
}

.arch-top-controls {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.arch-controls-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(11, 21, 37, 0.78);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 26px rgba(4, 9, 18, 0.32);
}

.arch-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 16, 28, 0.72);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.arch-chip.is-active, .arch-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(234, 184, 100, 0.16);
}

.tree-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 450;
  max-height: 490px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.pinenote-tree-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.tree-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.tree-3d-canvas:active {
  cursor: grabbing;
}

.arch-caption {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gold-bright);
  margin-top: 6px;
}

/* Tree SVG micro-animations */
.light-twinkle {
  animation: lightTwinkle 2.8s ease-in-out infinite;
}

@keyframes lightTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.ornament-sway {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: ornamentSway 4.6s ease-in-out infinite;
}

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

.tree-ornament.is-clickable {
  cursor: pointer;
}

.tree-ornament.is-clickable:hover .ornament-halo {
  opacity: 0.42;
}

.tree-ornament.is-clickable:hover .ornament-sway {
  filter: drop-shadow(0 0 8px rgba(248, 220, 160, 0.65));
}

.tree-empty-slot {
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0.72;
}

.tree-empty-slot:hover {
  opacity: 1;
}

/* ==========================================================================
   Section Layout & Editorial Cards
   ========================================================================== */
.section {
  padding: 72px 0;
  position: relative;
}

.section-compact {
  padding: 40px 0;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}

.section-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card, .glass-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(4, 10, 22, 0.28);
  transition: border-color 0.2s, transform 0.2s;
}

.highlight-card:hover, .glass-card.is-hoverable:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.highlight-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--gold-bright);
}

.highlight-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 4-Step Story Rituals */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  background: linear-gradient(170deg, rgba(20, 38, 64, 0.8), rgba(11, 21, 37, 0.88));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 24 Ornament Showcase with Category Filter */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.is-active, .filter-tab:hover {
  background: rgba(234, 184, 100, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.ornament-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ornament-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 29, 49, 0.72);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s, border-color 0.2s, background 0.2s;
}

.ornament-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(24, 44, 72, 0.85);
}

.ornament-tile.is-hidden {
  display: none;
}

.ornament-tile-name {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.ornament-tile-meaning {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Holiday Studio Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(20, 38, 63, 0.82), rgba(11, 21, 37, 0.92));
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.badge-gold {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(234, 184, 100, 0.16);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tool-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  margin: 10px 0 8px;
}

.tool-feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.inline-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--gold-bright);
  font-size: 0.92rem;
}

/* Public Tree Plaza Grid */
.plaza-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tree-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 29, 49, 0.8);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s, border-color 0.2s;
}

.tree-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.tree-card-visual {
  height: 215px;
  display: grid;
  place-items: center;
  padding: 12px;
  position: relative;
}

.tree-card-visual svg {
  height: 190px;
  width: auto;
}

.tree-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(8, 16, 28, 0.78);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
}

.tree-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.tree-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.tree-card-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tree-card-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gold-bright);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(15, 29, 49, 0.74);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s, border-color 0.2s;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.guide-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(15, 29, 49, 0.74);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* Postcard Closing Banner */
.postcard-cta {
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 184, 100, 0.22), transparent 62%),
    linear-gradient(155deg, #162c4a 0%, #0d1a2e 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  position: relative;
}

.postcard-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 12px;
}

.postcard-cta p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--text-muted);
}

/* ==========================================================================
   Creator Wizard Page (/create)
   ========================================================================== */
.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
  padding: 36px 0 64px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.wizard-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s;
}

.wizard-bar.is-done, .wizard-bar.is-active {
  background: var(--gold);
}

.wizard-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.is-active {
  display: block;
}

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

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

.choice-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(9, 18, 32, 0.62);
  border: 1.5px solid var(--border-subtle);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}

.option-card:hover {
  border-color: var(--border-strong);
}

.option-card.is-selected {
  border-color: var(--gold);
  background: rgba(234, 184, 100, 0.14);
  box-shadow: 0 0 0 2px rgba(234, 184, 100, 0.2);
}

.swatch-bar {
  width: 100%;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Individual Tree Page (/t/:slug)
   ========================================================================== */
.tree-page-wrap {
  padding: 28px 0 64px;
}

.tree-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.tree-stage-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(9, 18, 32, 0.56);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.tree-title-block {
  text-align: center;
  margin-bottom: 14px;
}

.tree-title-block h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 6px;
}

.tree-title-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.tree-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--gold-bright);
}

.tree-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.tree-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-key-banner {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(234, 184, 100, 0.18), rgba(184, 126, 40, 0.08));
  border: 1px solid var(--gold);
}

.access-key-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(7, 15, 28, 0.72);
  margin: 10px 0;
  text-align: center;
}

/* ==========================================================================
   Modals & Wax-Sealed Letter Postcard
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0f1d32;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  animation: modalPop 0.22s ease-out;
}

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

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Wax-sealed letter presentation */
.letter-sheet {
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  border: 1.5px solid rgba(184, 125, 50, 0.35);
  box-shadow: inset 0 0 0 6px rgba(184, 125, 50, 0.07);
}

.letter-sheet.paper-parchment {
  background: #fbf5e8;
  color: #2b2118;
}
.letter-sheet.paper-evergreen {
  background: #132d25;
  color: #f4efe2;
}
.letter-sheet.paper-midnight {
  background: #131f38;
  color: #eef3ff;
}
.letter-sheet.paper-crimson {
  background: #4f161e;
  color: #fff5e6;
}

.letter-body {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 16px 0 22px;
}

.letter-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.85;
  border-top: 1px dashed currentColor;
  padding-top: 12px;
}

.ornament-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding: 4px;
}

.ornament-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.7);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.68rem;
  cursor: pointer;
}

.ornament-pick-btn.is-selected {
  border-color: var(--gold);
  background: rgba(234, 184, 100, 0.18);
  color: var(--gold-bright);
}

/* ==========================================================================
   Tools Pages (Countdown / Santa Hat / Postcard / Secret Santa)
   ========================================================================== */
.tool-hero {
  padding: 36px 0 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.tool-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.6vw, 2.9rem);
  margin: 0 0 12px;
}

.tool-hero p {
  margin: 0;
  color: var(--text-muted);
}

.countdown-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 36px;
}

.countdown-panel {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(20, 39, 64, 0.86), rgba(10, 20, 35, 0.94));
  border: 1px solid var(--border-strong);
  text-align: center;
}

.countdown-digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.digit-box {
  padding: 16px 8px;
  border-radius: 14px;
  background: rgba(7, 15, 28, 0.72);
  border: 1px solid var(--border-subtle);
}

.digit-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--gold-bright);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.digit-label {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
  margin: 24px 0 48px;
}

.canvas-preview-frame {
  background: rgba(7, 15, 28, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.canvas-preview-frame canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 14px;
  background: #0d1829;
  display: block;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.range-row label {
  width: 96px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

/* Secret Santa Cards */
.santa-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.santa-reveal-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(11, 22, 38, 0.82);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.santa-secret-box {
  padding: 12px;
  border-radius: 10px;
  background: rgba(234, 184, 100, 0.12);
  border: 1px dashed var(--gold);
  text-align: center;
  font-weight: 700;
  color: var(--gold-bright);
}

/* Article / Legal Prose */
.prose-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 0 72px;
}

.prose-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.22;
  margin: 12px 0 14px;
}

.prose-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  color: var(--gold-bright);
  margin: 34px 0 12px;
}

.prose-wrap p, .prose-wrap li {
  color: var(--text-muted);
  font-size: 1.01rem;
  line-height: 1.8;
}

.prose-wrap ul {
  padding-left: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

/* ==========================================================================
   Footer & Toast & Language Banner
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 12, 22, 0.85);
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 34px;
}

.footer-about {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 310px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Non-intrusive Language Suggestion Floating Card (bottom-right) */
.lang-suggest-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 55;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13, 25, 43, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  width: min(340px, calc(100vw - 32px));
  font-size: 0.85rem;
  line-height: 1.5;
}

.lang-suggest-bar.is-visible {
  display: flex;
}

/* Toast Notification */
.toast-root {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 31, 52, 0.96);
  border: 1px solid var(--gold);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  animation: modalPop 0.2s ease-out;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .creator-layout, .tree-page-grid, .studio-split {
    grid-template-columns: 1fr;
  }
  .highlights-grid, .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ornament-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .plaza-grid, .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .highlights-grid, .steps-grid, .tools-grid, .plaza-grid, .guides-grid, .countdown-cards, .santa-results-grid {
    grid-template-columns: 1fr;
  }
  .ornament-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ornament-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .choice-grid-3, .choice-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .lang-suggest-bar {
    right: 16px;
    left: 16px;
    width: auto;
  }
}
