:root {
  --bg-night: #0C231D;
  --bg-deep: #081814;
  --bg-surface: #13332A;
  --bg-card: #183E33;
  --ink: #FBF7EF;
  --gold: #E8C067;
  --crimson: #C42E3B;
  --pine: #2B7A54;
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.narrow-container {
  width: min(820px, 100% - 32px);
  margin-inline: auto;
}

.site-header {
  background: var(--bg-deep);
  border-bottom: 2px solid var(--crimson);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-link img,
.brand-link svg {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(251, 247, 239, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-balance {
  background: rgba(232, 192, 103, 0.16);
  border: 1px solid rgba(232, 192, 103, 0.42);
  color: var(--gold) !important;
  padding: 5px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), opacity 160ms var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-crimson,
.btn-accent {
  background: var(--crimson);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(214, 59, 72, 0.32);
}

.btn-crimson:hover:not(:disabled),
.btn-accent:hover:not(:disabled) {
  background: var(--crimson);
  color: var(--ink);
  filter: brightness(1.09);
}

.btn-pine,
.btn-primary {
  background: var(--pine);
  color: var(--ink);
}

.btn-pine:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  color: var(--ink);
  filter: brightness(1.1);
}

.btn-ghost,
.btn-secondary {
  background: rgba(251, 247, 239, 0.08);
  border-color: rgba(251, 247, 239, 0.2);
  color: var(--ink);
}

.btn-ghost:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background: rgba(251, 247, 239, 0.14);
  border-color: rgba(232, 192, 103, 0.5);
  color: var(--ink);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

.text-btn,
.btn-link {
  background: none;
  border: none;
  padding: 4px 2px;
  color: rgba(251, 247, 239, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-btn:hover,
.btn-link:hover {
  color: var(--ink);
}

.text-btn-gold {
  color: var(--gold);
}

.text-btn-danger,
.danger-link {
  color: var(--crimson);
}

.play-hero {
  position: relative;
  background: radial-gradient(ellipse 85% 65% at 50% 34%, var(--bg-card) 0%, var(--bg-night) 65%, var(--bg-deep) 100%);
  padding: 10px 0 22px;
  border-bottom: 1px solid rgba(251, 247, 239, 0.08);
  overflow: hidden;
}

.snow-drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(251, 247, 239, 0.55) 50%, transparent 100%),
    radial-gradient(2px 2px at 28% 64%, rgba(251, 247, 239, 0.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 26%, rgba(251, 247, 239, 0.45) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 66% 14%, rgba(251, 247, 239, 0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 81% 42%, rgba(251, 247, 239, 0.45) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 72%, rgba(251, 247, 239, 0.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 18% 82%, rgba(251, 247, 239, 0.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 74% 88%, rgba(251, 247, 239, 0.42) 50%, transparent 100%);
  animation: snowFloat 18s linear infinite;
}

@keyframes snowFloat {
  0% { transform: translateY(-16px); opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: translateY(22px); opacity: 0.7; }
}

.play-shell {
  position: relative;
  z-index: 2;
}

.play-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.play-title-group h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.play-subtitle {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: rgba(251, 247, 239, 0.76);
}

.play-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.stage-stat {
  color: rgba(251, 247, 239, 0.84);
  font-weight: 600;
}

.stage-stat-gold {
  color: var(--gold);
}

.stage-sep {
  color: rgba(251, 247, 239, 0.35);
}

.top-trees-jump {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

.status-banner {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(43, 122, 84, 0.3);
  border: 1px solid rgba(232, 192, 103, 0.4);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.status-banner.is-error {
  background: rgba(214, 59, 72, 0.25);
  border-color: rgba(214, 59, 72, 0.6);
}

.tree-stage-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 192, 103, 0.24);
  background: radial-gradient(ellipse 75% 65% at 50% 42%, var(--bg-card) 0%, var(--bg-night) 72%, var(--bg-deep) 100%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.tree-canvas-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 12px 2px;
  min-height: 360px;
}

.tree-svg {
  width: min(410px, 100%);
  max-height: 49vh;
  min-height: 330px;
  height: auto;
  cursor: crosshair;
  user-select: none;
  touch-action: manipulation;
}

.tree-stage-frame[data-mode="owner"] .tree-svg {
  cursor: default;
}

.tree-stage-frame.is-remove-mode .tree-svg {
  cursor: pointer;
}

.tree-boughs .bough {
  fill: url(#pineGrad);
  transition: fill 220ms var(--ease);
}

.tree-stage-frame[data-style="snowy-fir"] .tree-boughs .bough {
  fill: url(#snowyGrad);
}

.tree-stage-frame[data-style="snowy-fir"] .snow-caps {
  opacity: 0.88;
}

.tree-stage-frame[data-style="blush-frost"] .tree-boughs .bough {
  fill: url(#blushGrad);
}

.tree-stage-frame[data-style="golden-glow"] .tree-boughs .bough {
  fill: url(#goldenGrad);
}

.tree-stage-frame[data-style="midnight-frost"] .tree-boughs .bough {
  fill: url(#midnightGrad);
}

.tree-stage-frame[data-lights="off"] .fairy-lights {
  opacity: 0;
}

.fairy-lights {
  transition: opacity 220ms var(--ease);
}

.bokeh {
  animation: twinkle 3.2s ease-in-out infinite;
}

.bokeh.b2 {
  animation-delay: 1.1s;
}

.bokeh.b3 {
  animation-delay: 2.2s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 1; }
}

.deco-node,
.ornament-node {
  cursor: pointer;
  outline: none;
}

.deco-node.is-pop,
.ornament-node.is-fresh {
  animation: popIn 240ms var(--ease);
}

@keyframes popIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.ornament-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--bg-deep);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.stage-pager {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8, 24, 20, 0.72);
  border: 1px solid rgba(251, 247, 239, 0.14);
  font-size: 0.84rem;
}

.pager-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.studio-dock {
  background: var(--bg-deep);
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  padding: 12px 16px 14px;
}

.dock-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.dock-tab {
  background: rgba(251, 247, 239, 0.08);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(251, 247, 239, 0.85);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.dock-tab:hover {
  background: rgba(251, 247, 239, 0.14);
}

.dock-tab.is-active {
  background: var(--gold);
  color: var(--bg-deep);
}

.ornament-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
}

.orn-tile {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(251, 247, 239, 0.07);
  border: 2px solid rgba(251, 247, 239, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease), background-color 150ms var(--ease);
}

.orn-tile:hover {
  border-color: rgba(232, 192, 103, 0.65);
  transform: translateY(-2px);
}

.orn-tile.is-active {
  border-color: var(--gold);
  background: rgba(232, 192, 103, 0.16);
}

.orn-tile svg {
  width: 36px;
  height: 36px;
}

.orn-lock {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 12px;
  line-height: 1;
}

.orn-tile-remove {
  width: auto;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.orn-tile-remove.is-active {
  border-color: var(--crimson);
  background: rgba(214, 59, 72, 0.25);
}

.style-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
}

.style-pill {
  background: rgba(251, 247, 239, 0.08);
  border: 1.5px solid rgba(251, 247, 239, 0.16);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.style-pill:hover {
  border-color: var(--gold);
}

.style-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}

.style-pill.lights-pill {
  margin-left: auto;
}

.dock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(251, 247, 239, 0.08);
}

.dock-hint {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.8);
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.owner-share-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.owner-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.owner-head-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-dock-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.owner-code-chip {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: rgba(232, 192, 103, 0.14);
  border: 1px solid rgba(232, 192, 103, 0.36);
  padding: 2px 9px;
  border-radius: 999px;
}

.owner-rank-inline {
  font-size: 0.86rem;
  color: var(--gold);
  font-weight: 600;
}

.share-link-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.2);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}

.share-pill-input {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  text-overflow: ellipsis;
}

.share-pill-copy {
  flex-shrink: 0;
  padding: 8px 18px;
}

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

.owner-primary-grid .btn {
  width: 100%;
  padding: 11px 12px;
  font-size: 0.9rem;
}

.btn-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.social-share-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.social-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 4px;
  border-radius: 12px;
  background: rgba(251, 247, 239, 0.06);
  border: 1px solid rgba(251, 247, 239, 0.14);
  color: var(--ink);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), transform 150ms var(--ease);
}

.social-chip-ig {
  border-color: rgba(232, 192, 103, 0.42);
  background: rgba(196, 46, 59, 0.22);
}

.social-chip:hover {
  border-color: var(--gold);
  background: rgba(232, 192, 103, 0.14);
  color: var(--gold);
  transform: translateY(-1px);
}

.social-chip svg {
  width: 18px;
  height: 18px;
}

.owner-back-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232, 192, 103, 0.1);
  border: 1px solid rgba(232, 192, 103, 0.32);
}

.owner-back-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
}

.owner-back-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.owner-back-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: filter 150ms var(--ease), transform 150ms var(--ease);
}

.owner-back-pill:hover {
  color: var(--ink);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.owner-dock-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(251, 247, 239, 0.08);
}

.inline-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.inline-switch input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.owner-dock-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.post-hang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  background: rgba(43, 122, 84, 0.25);
  border: 1px solid rgba(232, 192, 103, 0.35);
}

.post-hang-bar p {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.friend-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.below-stage-bar {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.saved-trees-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.saved-tree-pill {
  text-decoration: none;
  background: rgba(251, 247, 239, 0.09);
  border: 1px solid rgba(232, 192, 103, 0.32);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.saved-tree-pill:hover {
  background: rgba(232, 192, 103, 0.18);
  color: var(--gold);
}

.find-tree-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.78);
}

.recovery-open-form {
  display: flex;
  gap: 8px;
  width: min(520px, 100%);
}

.recovery-open-form input {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid rgba(251, 247, 239, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
}


.content-band,
.ledger-band,
.faq-band,
.cta-band,
.talk-band,
.page-band,
.countdown-hero {
  padding: 52px 0;
}

.countdown-hero {
  padding: 36px 0 20px;
}

.countdown-hero + .page-band {
  padding-top: 16px;
}

.content-band {
  background: var(--bg-night);
}

.how-band {
  background: var(--bg-deep);
  border-top: 1px solid rgba(251, 247, 239, 0.08);
  border-bottom: 1px solid rgba(251, 247, 239, 0.08);
}

.feats-band {
  background: var(--bg-night);
}

.ledger-band {
  background: var(--bg-deep);
  border-top: 1px solid rgba(251, 247, 239, 0.08);
  border-bottom: 1px solid rgba(251, 247, 239, 0.08);
}

.faq-band {
  background: var(--bg-night);
}

.cta-band {
  background: var(--bg-deep);
  border-top: 1px solid rgba(251, 247, 239, 0.08);
  border-bottom: 1px solid rgba(251, 247, 239, 0.08);
}

.talk-band {
  background: var(--bg-night);
}

h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.section-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.section-row-head h2 {
  margin: 0;
}

.meta-caption {
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.7);
}

.section-sub {
  margin: 0 0 28px;
  color: rgba(251, 247, 239, 0.8);
  max-width: 64ch;
}

.tops-section {
  margin-top: 48px;
}

.top-trees-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.1);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.top-tree-row:hover {
  border-color: rgba(232, 192, 103, 0.55);
  background: var(--bg-card);
}

.top-tree-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.top-rank-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(232, 192, 103, 0.16);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-tree-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.top-tree-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.78);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.top-tree-cta {
  color: var(--gold);
  font-weight: 700;
}

.how-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  padding: 12px 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-visual {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.22);
}

.step-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.step-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 4px 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(232, 192, 103, 0.16);
  border: 1px solid rgba(232, 192, 103, 0.42);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.step-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(251, 247, 239, 0.82);
}

.stack-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 380px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(232, 192, 103, 0.28);
}

.stack-copy h2 {
  margin-bottom: 10px;
}

.stack-lede {
  margin: 0 0 20px;
  color: rgba(251, 247, 239, 0.84);
  font-size: 0.96rem;
  max-width: 52ch;
}

.stack-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stack-stat {
  background: var(--bg-deep);
  border: 1px solid rgba(251, 247, 239, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.stack-stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(251, 247, 239, 0.7);
  margin-bottom: 2px;
}

.stack-stat-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stack-stat-gold {
  color: var(--gold);
}

.stack-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.stack-hint {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(251, 247, 239, 0.72);
}

.stack-board-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.32);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

#gift-stack-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.stack-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 20, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  gap: 10px;
}

.stack-overlay-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.stack-overlay h3 {
  margin: 0;
  font-size: 1.3rem;
}

.stack-overlay p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(251, 247, 239, 0.84);
  max-width: 28ch;
}

.stack-overlay-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.feats-wrap {
  margin-top: 52px;
}

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

.feat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.1);
}

.feat-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feat-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(251, 247, 239, 0.8);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ledger-col {
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}

.ledger-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251, 247, 239, 0.1);
}

.ledger-col-head h2,
.ledger-col-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.ledger-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.ledger-price-note,
.no-sub-pill {
  font-size: 0.84rem;
  color: var(--gold);
  font-weight: 600;
}

.ledger-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: rgba(251, 247, 239, 0.86);
  font-size: 0.94rem;
}

.sku-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.sku-ledger li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sku-ledger li > .btn {
  flex-shrink: 0;
}

.sku-ledger strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 2px;
}

.sku-ledger p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.78);
}

.pricing-col-cta {
  margin-top: 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.1);
  border-radius: var(--radius-md);
  padding: 4px 18px;
}

.faq-item summary {
  padding: 14px 0;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}

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

.faq-answer p {
  margin: 0 0 16px;
  color: rgba(251, 247, 239, 0.84);
  font-size: 0.95rem;
}

.cta-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 90% 80% at 50% 0%, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(232, 192, 103, 0.3);
}

.cta-card h2 {
  margin-bottom: 10px;
}

.cta-sub {
  margin: 0 auto 22px;
  max-width: 52ch;
  color: rgba(251, 247, 239, 0.84);
  font-size: 0.98rem;
}

.cta-micro {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: rgba(251, 247, 239, 0.72);
}

.talk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.talk-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.talk-count {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.talk-count:empty {
  display: none;
}

.like-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.18);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease);
}

.like-pill svg {
  width: 17px;
  height: 17px;
}

.like-pill:hover,
.like-pill[data-gf-liked] {
  border-color: var(--crimson);
  background: rgba(196, 46, 59, 0.2);
  color: var(--ink);
}

.like-pill[data-gf-liked] svg {
  color: var(--crimson);
}

.talk-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

[data-gf-comment-form]:not([data-gf-replying]) .talk-replying {
  display: none;
}

.talk-replying {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(232, 192, 103, 0.12);
  border: 1px solid rgba(232, 192, 103, 0.3);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.talk-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.talk-msg {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
}

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

.talk-list[data-gf-empty]::before {
  content: attr(data-empty-text);
  display: block;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(251, 247, 239, 0.04);
  border: 1px dashed rgba(251, 247, 239, 0.16);
  color: rgba(251, 247, 239, 0.72);
  font-size: 0.92rem;
  text-align: center;
}

.comment-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid rgba(251, 247, 239, 0.1);
}

.comment-item[data-gf-owner] {
  border-color: rgba(232, 192, 103, 0.45);
  background: var(--bg-card);
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-author {
  font-size: 0.94rem;
  color: var(--ink);
}

.comment-owner-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
}

.comment-owner-badge:empty,
.comment-item:not([data-gf-owner]) .comment-owner-badge {
  display: none;
}

.comment-time {
  font-size: 0.8rem;
  color: rgba(251, 247, 239, 0.66);
}

.comment-body {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: rgba(251, 247, 239, 0.88);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.comment-to {
  color: var(--gold);
  font-weight: 600;
}

.comment-to:empty {
  display: none;
}

.comment-reply-btn {
  font-size: 0.84rem;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(232, 192, 103, 0.25);
  display: grid;
  gap: 10px;
}

.comment-replies:empty {
  display: none;
}

.dmt-dialog {
  padding: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  width: min(430px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  overflow: hidden;
  color: var(--ink);
}

.dmt-dialog::backdrop {
  background: rgba(4, 12, 10, 0.74);
  backdrop-filter: blur(4px);
}

.dialog-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid rgba(232, 192, 103, 0.34);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.dialog-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.dialog-head h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.dialog-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.76);
}

.dialog-ornament-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dialog-ornament-badge svg {
  width: 36px;
  height: 36px;
}

.dialog-close {
  background: rgba(251, 247, 239, 0.1);
  border: none;
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dialog-close:hover {
  background: rgba(251, 247, 239, 0.18);
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.dialog-body .btn,
.btn-block {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding: 12px 16px;
  max-width: 100%;
}

.dialog-body p {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(251, 247, 239, 0.86);
  overflow-wrap: break-word;
}

.dialog-more {
  border-radius: var(--radius-sm);
  background: rgba(251, 247, 239, 0.04);
  border: 1px solid rgba(251, 247, 239, 0.12);
  padding: 10px 12px;
}

.dialog-more summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  list-style: none;
}

.dialog-more summary::-webkit-details-marker {
  display: none;
}

.dialog-more-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group label {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opt-tag,
.char-count {
  font-weight: 500;
  color: rgba(251, 247, 239, 0.62);
  font-size: 0.82rem;
}

.field-group input,
.field-group textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid rgba(251, 247, 239, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--ink);
}

.field-group input:focus,
.field-group textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.86);
  cursor: pointer;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.field-note,
.micro-note,
.extra-status-note {
  font-size: 0.84rem !important;
  color: rgba(251, 247, 239, 0.72) !important;
}

.extra-status-note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.28);
  color: var(--gold) !important;
}

.note-paper,
.locked-note-box {
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.26);
  border-radius: var(--radius-md);
  padding: 16px;
}

.note-text {
  font-size: 1.02rem !important;
  color: var(--ink) !important;
  white-space: pre-wrap;
}

.note-song {
  margin-top: 10px !important;
  color: var(--gold) !important;
  font-weight: 700;
}

.locked-headline {
  font-family: var(--font-display);
  font-size: 1.08rem !important;
  color: var(--gold) !important;
  margin-bottom: 6px !important;
}

.locked-clue {
  margin: 10px 0 12px !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 247, 239, 0.1);
}

.btn-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
}

.editorial-card,
.keepsake-card {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 192, 103, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.editorial-card h1,
.pricing-hero h1,
.countdown-inner h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.page-lead,
.countdown-lead {
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: rgba(251, 247, 239, 0.84);
  max-width: 64ch;
}

.prose h2 {
  margin-top: 28px;
}

.prose p,
.prose li {
  color: rgba(251, 247, 239, 0.88);
  font-size: 0.98rem;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.page-back-cta,
.convert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pricing-hero {
  margin-bottom: 28px;
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pricing-prose-wrap {
  margin-top: 32px;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.clock-unit {
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  text-align: center;
}

.clock-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.clock-label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(251, 247, 239, 0.75);
}

.countdown-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.3);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
}

.countdown-cta-bar,
.countdown-convert-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  border: 1px solid rgba(251, 247, 239, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.countdown-convert-box {
  display: block;
}

.countdown-cta-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.countdown-cta-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: rgba(251, 247, 239, 0.78);
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(251, 247, 239, 0.1);
  padding: 36px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(251, 247, 239, 0.08);
}

.footer-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-note {
  margin: 0;
  max-width: 44ch;
  font-size: 0.9rem;
  color: rgba(251, 247, 239, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(251, 247, 239, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.footer-bottom {
  padding-top: 18px;
  font-size: 0.86rem;
  color: rgba(251, 247, 239, 0.66);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 960px) {
  .how-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .header-inner {
    min-height: 46px;
  }

  .site-nav {
    gap: 12px;
  }

  .play-hero {
    padding: 4px 0 12px;
  }

  .play-topbar {
    margin-bottom: 4px;
    align-items: center;
    gap: 2px 10px;
  }

  .play-title-group h1 {
    font-size: 1.12rem;
    line-height: 1.2;
  }

  .play-subtitle {
    display: none;
  }

  .play-meta-right {
    font-size: 0.8rem;
    gap: 6px;
  }

  .tree-stage-frame {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .tree-canvas-wrap {
    min-height: 0;
    height: clamp(230px, 41dvh, 330px);
    padding: 0 4px;
  }

  .tree-svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }

  .studio-dock {
    padding: 8px 12px 10px;
  }

  .dock-tabs {
    gap: 6px;
    margin-bottom: 6px;
  }

  .dock-tab {
    padding: 6px 8px;
    font-size: 0.84rem;
  }

  .ornament-strip {
    padding: 2px 0 4px;
  }

  .orn-tile {
    width: 44px;
    height: 44px;
  }

  .dock-footer {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
  }

  .dock-hint {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .dock-actions {
    gap: 6px;
  }

  .dock-actions .btn {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.86rem;
  }

  .below-stage-bar {
    margin-top: 8px;
    gap: 6px;
  }

  .stack-showcase {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 20px;
  }

  .how-steps-grid,
  .feats-grid,
  .ledger-grid {
    grid-template-columns: 1fr;
  }

  .sku-ledger li {
    align-items: flex-start;
  }

  .clock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-card,
  .keepsake-card {
    padding: 20px;
  }

  .style-pill.lights-pill {
    margin-left: 0;
  }
}

.dialog-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.dialog-nav-count {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(251, 247, 239, 0.78);
  font-variant-numeric: tabular-nums;
}

.share-card-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  border: 1px solid rgba(232, 192, 103, 0.24);
}

#share-card-img {
  display: block;
  max-height: 300px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.share-caption-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-caption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.share-caption-head label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(251, 247, 239, 0.8);
}

#share-card-caption {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(251, 247, 239, 0.16);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 9px 11px;
  resize: none;
}

.code-jump-card {
  margin: 22px 0 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid rgba(232, 192, 103, 0.34);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-jump-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.code-jump-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 247, 239, 0.22);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.code-jump-err {
  margin: 0;
  font-size: 0.88rem;
  color: #F4A3A8;
}

.share-card-tip {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(251, 247, 239, 0.82);
  text-align: center;
}

.share-card-sub-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-card-sub-actions .btn {
  flex: 1 1 140px;
}

.owner-inbox-modal {
  max-width: 540px;
}

.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 247, 239, 0.06);
  border: 1px solid rgba(232, 192, 103, 0.22);
}

.inbox-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 2px;
}

.inbox-card {
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid rgba(251, 247, 239, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inbox-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inbox-orn-mini {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(251, 247, 239, 0.08);
}

.inbox-orn-mini svg {
  width: 26px;
  height: 26px;
}

.inbox-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.inbox-from {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}

.inbox-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(251, 247, 239, 0.68);
}

.inbox-note-body {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FBF7EF;
  color: #1A1614;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.inbox-song {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}

.inbox-sealed {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(251, 247, 239, 0.78);
}

.inbox-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-empty {
  text-align: center;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(251, 247, 239, 0.82);
}

@media (max-width: 540px) {
  .brand-link {
    font-size: 1rem;
    gap: 7px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .site-nav a[href="/#how-heading"] {
    display: none;
  }

  .social-share-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .social-chip {
    padding: 8px 4px;
    font-size: 0.76rem;
  }

  .owner-primary-grid .btn {
    padding: 11px 8px;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow-drift,
  .bokeh,
  .deco-node.is-pop,
  .ornament-node.is-fresh {
    animation: none;
  }
}
