:root {
  color-scheme: dark;
  --ink: #0b1d19;
  --pine: #102823;
  --pine-light: #16342c;
  --gold: #dfb87a;
  --gold-light: #f4d69b;
  --cream: #f8ebd3;
  --muted: #c4c9b6;
  --line: #8d7652;
  --line-soft: #574c36;
  --mint: #b8d8bc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --shell: min(100% - 112px, 1376px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font: 1rem/1.55 var(--sans);
  background:
    radial-gradient(ellipse at 72% 22%, #1a392e 0, #102721 38%, transparent 66%),
    radial-gradient(ellipse at 11% 74%, #172a21 0, transparent 44%),
    var(--ink);
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold-light); text-underline-offset: .23em; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
h1:focus, main:focus { outline: none; }
.icon { inline-size: 1.35em; block-size: 1.35em; flex: none; vertical-align: middle; }
.layout, .topbar, .footer { width: var(--shell); margin-inline: auto; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar {
  min-height: 82px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand span { font: 1.36rem var(--serif); letter-spacing: -.03em; }
.topbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 16px; }
.text-button { padding: 0; color: var(--gold-light); border: 0; background: none; text-align: left; }
.guest-button { min-height: 30px; font-size: .86rem; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.help-button { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.help-button > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: .78rem;
}
.footer {
  min-height: 68px;
  margin-top: 48px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .88rem;
}
.footer-brand { color: var(--muted); text-decoration: none; }
.footer .text-button { color: var(--muted); }
.loading { margin: 7rem auto; padding: 0 20px; color: var(--gold-light); text-align: center; }
.eyebrow {
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}
.lead { max-width: 36ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.muted { color: var(--muted); }
.starline { display: flex; align-items: center; gap: 8px; width: 104px; color: var(--gold); }
.starline > span { flex: 1; height: 1px; background: var(--line); }
.starline .icon { width: 15px; height: 15px; fill: var(--gold); stroke-width: .65; }
.frame { position: relative; border: 1px solid var(--line); }
.frame::after {
  position: absolute;
  inset: 5px;
  pointer-events: none;
  content: "";
  z-index: 2;
  --corner: #e4c28b;
  background:
    linear-gradient(var(--corner), var(--corner)) left top / 20px 1px,
    linear-gradient(var(--corner), var(--corner)) left top / 1px 20px,
    linear-gradient(var(--corner), var(--corner)) right top / 20px 1px,
    linear-gradient(var(--corner), var(--corner)) right top / 1px 20px,
    linear-gradient(var(--corner), var(--corner)) left bottom / 20px 1px,
    linear-gradient(var(--corner), var(--corner)) left bottom / 1px 20px,
    linear-gradient(var(--corner), var(--corner)) right bottom / 20px 1px,
    linear-gradient(var(--corner), var(--corner)) right bottom / 1px 20px;
  background-repeat: no-repeat;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 10px 18px;
  border: 1px solid transparent;
  color: var(--cream);
  background: transparent;
  line-height: 1.22;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.primary {
  padding-inline: 24px;
  color: #21170e;
  background: linear-gradient(108deg,#e6bc7e,#f5d69a 59%,#deae71);
  box-shadow: inset 0 0 0 2px #efc68c, inset 0 0 0 3px #976b4677;
}
.primary:hover { background: #f5d69a; }
.secondary { border-color: var(--line); color: var(--gold-light); background: #102923; }
.secondary:hover, .secondary[aria-pressed="true"] { border-color: var(--gold); background: #294034; }
.back { justify-self: start; padding-inline: 0 10px; color: var(--gold-light); font-size: .95rem; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.button:disabled { cursor: default; opacity: .48; }

.home-full {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 112px 0 44px;
  overflow: hidden;
}
body:has(.home-full) .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  border-color: #eed4a37a;
}
.home-full::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #091a16f5 0%, #0b201cd9 21%, #0b201c75 42%, #0b201c00 67%),
              linear-gradient(180deg, #071612b5 0, #07161200 23%, #07161200 76%, #07161268 100%);
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 570px; padding: 20px 0 28px; }
.home-full .hero { pointer-events: none; }
.hero-copy .button { pointer-events: auto; }
.hero-copy .starline { margin-bottom: 26px; }
.hero-copy h1 { font-size: clamp(3.3rem, 6.55vw, 6.9rem); line-height: .99; margin: 14px 0 24px; }
.hero-copy em { display: block; color: var(--gold-light); font-weight: 400; padding-right: .1em; }
.hero-copy .lead { margin-bottom: 29px; color: var(--cream); text-shadow: 0 1px 8px #091a16; }
.hero-copy .primary { min-width: 176px; min-height: 52px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hero-copy .tree-note { margin-top: 16px; color: var(--cream); }
.hero-art { position: absolute; inset: 0; z-index: -2; container-type: size; }
.hero-tree {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 150cqh);
  translate: -50% -50%;
}

.join {
  display: grid;
  grid-template-columns: 1.33fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  max-width: 1160px;
  margin-top: clamp(32px, 5vw, 78px);
}
.join-art { padding: 8px; }
.join-panel .starline { margin-top: 9px; margin-bottom: 18px; }
.join-panel h1 { font-size: clamp(2.5rem, 4.55vw, 4.85rem); }
.join-panel > .muted { margin: 12px 0 22px; }
.join-panel form { display: grid; gap: 15px; }
.join-panel form > .button { justify-self: start; }
.join-panel label, .upload-label { display: grid; gap: 5px; font-size: .94rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input:not([type=radio], [type=checkbox], [type=file]) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 7px 12px;
  color: var(--cream);
  background: #10251f;
  border-radius: 0;
  font-size: 1rem;
}
.consent label { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .9rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
.consent input { flex: none; margin: 0; }
.consent .text-button { margin-left: 20px; font-size: .88rem; }
.status { color: var(--gold-light); font-size: .93rem; }
.status:empty { display: none; }
.info-dialog {
  width: min(calc(100% - 32px), 560px);
  max-height: calc(100% - 32px);
  padding: 29px;
  background: var(--pine);
  color: var(--cream);
}
.info-dialog::backdrop { background: #050e0bd9; }
.info-dialog h2, .info-dialog p { margin-bottom: 16px; }

.map-layout, .finale, .task-layout { margin-top: clamp(27px, 4.4vw, 63px); }
.section-heading, .task-top { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
.section-heading h1 { margin-top: 7px; }
.progress { width: min(237px, 100%); padding-bottom: 2px; }
.progress p { color: var(--muted); font-size: .96rem; margin-bottom: 7px; }
.progress strong { color: var(--gold-light); font-weight: 650; }
.progress-track { display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; }
.progress-track span { height: 4px; border-radius: 3px; background: #547062; }
.progress-track .filled { background: var(--gold); box-shadow: 0 0 9px #e9bf7566; }
.map-layout, .finale, .tree-gallery { width: min(calc(100% - 36px), 1750px); }
.tree-gallery { margin-top: clamp(16px, 3vw, 42px); }
.tree-zoom { display: flex; align-items: center; gap: 8px; }
.tree-zoom .button { min-width: 44px; padding-inline: 8px; font-size: 1.2rem; }
.tree-zoom output { min-width: 4ch; color: var(--gold-light); text-align: center; }
.tree-viewport {
  height: clamp(280px, 70svh, 860px);
  overflow: auto;
  container-type: size;
  border: 1px solid var(--line-soft);
  background: #081814;
}
.tree-viewport.is-zoomed { cursor: grab; overscroll-behavior: contain; }
.tree-viewport.is-panning, .tree-viewport.is-panning button { cursor: grabbing; }
.tree-surface {
  width: calc(min(100cqw, 150cqh) * var(--tree-zoom, 1));
  margin-inline: auto;
}
.map-grid, .final-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.3vw, 37px); }
.map-heading-actions { display: flex; align-items: end; gap: 18px; }
.map-heading-actions .progress { min-width: min(210px, 34vw); }
.map-heading-actions .button { white-space: nowrap; }
.tree { aspect-ratio: 3/2; background: var(--pine); }
.tree > img { width: 100%; }
.tree-note { margin: 9px 0 0; color: var(--muted); font-size: .91rem; }
.tree-ornament, .lock-node, .found-marker, .picture-cursor { position: absolute; top: var(--y); left: var(--x); translate: -50% -50%; }
.ornaments { position: absolute; inset: 0; pointer-events: none; }
.tree-ornament {
  width: clamp(14px, 2.7vw, 31px);
  height: clamp(14px, 2.7vw, 31px);
  display: grid;
  place-items: center;
  color: var(--gem);
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  transform: scale(var(--size));
  pointer-events: auto;
  z-index: 1;
  transition: transform .16s ease;
}
.tree-ornament:hover, .tree-ornament:focus-visible { z-index: 4; }
.tree-ornament:hover { transform: scale(calc(var(--size) * 1.12)); }
.tree-ornament .icon { width: 78%; height: 78%; }
.tree-ornament.flake-ornament, .tree-ornament.picture-ornament, .tree-ornament.decorated-ornament {
  width: clamp(24px, 3.9vw, 50px); height: auto; aspect-ratio: 1;
}
.flake-ornament { border: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 0 4px #a2edffaa); }
.picture-ornament { border: 0; background: transparent; box-shadow: none; }
.ornament-dialog { text-align: center; }
.ornament-dialog p { margin-bottom: 6px; }
.ornament-dialog form { margin-top: 14px; }
.ornament-detail-art {
  width: min(54vw, 225px);
  aspect-ratio: 1;
  margin: 4px auto 15px;
  display: grid;
  place-items: center;
}
.ornament-detail-art > .icon { width: 80%; height: 80%; color: var(--gem); }
.ornament-detail-art > .glass-ball { width: 89%; }
.lantern-halo {
  position: absolute; top: var(--y); left: var(--x);
  translate: -50% -50%;
  width: clamp(100px, 18%, 275px);
  aspect-ratio: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--gem-light) 82%, transparent) 0%,
    color-mix(in srgb, var(--gem) 42%, transparent) 20%,
    color-mix(in srgb, var(--gem) 13%, transparent) 52%, transparent 72%);
  animation: lantern-breathe 5s var(--phase) ease-in-out infinite alternate;
}
@keyframes lantern-breathe { from { opacity: .65; scale: .87; } to { opacity: 1; scale: 1.04; } }
.tree-tooltip {
  position: fixed; z-index: 30; pointer-events: none;
  display: grid; gap: 3px;
  min-width: 155px;
  max-width: min(260px, calc(100vw - 16px));
  padding: 9px 13px;
  background: #091c17f7;
  border: 1px solid var(--gold);
  color: var(--cream);
  box-shadow: 0 6px 22px #0009;
  font-size: .85rem;
  line-height: 1.4;
}
.tree-tooltip strong { color: var(--gold-light); }
.tree-tooltip time { color: var(--muted); font-size: .8rem; }
.craft-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.lock-node {
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(31px, 5vw, 55px);
  aspect-ratio: 1;
  border: 1px solid #a99062;
  border-radius: 50%;
  color: var(--gold-light);
  background: #132821ee;
  box-shadow: 0 2px 12px #0008, inset 0 0 0 3px #142720, inset 0 0 0 4px #a9906266;
}
.lock-node .icon { width: 49%; height: 49%; }
.lock-node span {
  position: absolute;
  bottom: -6px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 1.45em;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  background: var(--pine);
  font-size: .73rem;
  line-height: 1;
}
.lock-node.current {
  background: #f0c989;
  color: #261b0d;
  border-color: #fbe3ad;
  box-shadow: 0 0 0 4px #eac47c4c, 0 0 24px #e7a64c, inset 0 0 0 3px #f3d292, inset 0 0 0 4px #a37d49;
}
.lock-node.current:hover { background: #ffe4a8; }
.lock-node.current::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.lock-node.opened { color: #d3f2c5; border-color: #a1b889; box-shadow: 0 0 18px #aacca45c; }
.lock-node.closed { color: #d8c6a5; }
.quest-panel, .final-message { padding: clamp(19px, 2.3vw, 35px); background: #10261fe8; }
.quest-panel h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin: 7px 0 10px; }
.quest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 15px; margin-top: 15px; padding: 11px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.quest-list li { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .91rem; color: var(--muted); }
.quest-list li.next { color: var(--gold-light); font-weight: 650; }
.quest-list li.done .list-state { color: var(--mint); }
.list-state { display: grid; width: 24px; flex: none; place-items: center; color: var(--gold); }
.list-state .icon { width: 17px; height: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.task-layout { max-width: 1100px; }
.task-top { align-items: center; }
.task-heading { margin-bottom: 23px; }
.task-heading h1 { margin: 7px 0 8px; font-size: clamp(2.2rem, 5vw, 4.55rem); }
.task-heading .lead { max-width: none; }
.task-content { padding: clamp(14px, 3.3vw, 39px); background: #10261fdf; }
.task-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 20px; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 19px; }
.quiz fieldset + fieldset { margin-top: 24px; }
.quiz legend { margin-bottom: 10px; font: 1.22rem/1.35 var(--serif); }
.quiz legend span { color: var(--gold); font: 700 .83rem var(--sans); padding-right: 5px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  background: #142d25;
}
.choice:has(input:checked) { border-color: var(--gold-light); background: #2c3a28; }
.choice input { flex: none; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; color: var(--muted); }
.game-counter { color: var(--gold-light); font-weight: 650; flex: none; }
.target-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 15px; }
.target-list li { display: flex; align-items: center; gap: 5px; }
.target-list li.found { color: var(--mint); text-decoration: line-through; }
.target-list .icon { color: var(--gold); }
.scene { position: relative; max-width: 880px; margin-inline: auto; overflow: hidden; aspect-ratio: 3/2; outline: 1px solid var(--line); background: #132a24; cursor: crosshair; touch-action: manipulation; }
.scene img { width: 100%; user-select: none; }
.scene img.scene-variant { position: absolute; inset: 0; height: 100%; mask-image: var(--scene-mask); pointer-events: none; }
.found-marker {
  width: var(--marker-w); height: var(--marker-h);
  border: 2px solid #e8fbd1; border-radius: 50%;
  box-shadow: 0 0 0 1px #123025, 0 0 12px #173a15aa;
  pointer-events: none;
}
.picture-cursor { display: none; width: 15px; height: 15px; border: 2px solid white; outline: 1px solid #15221b; pointer-events: none; }
.scene:focus-visible .picture-cursor { display: block; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.comparison figcaption { color: var(--gold-light); margin-bottom: 5px; font-size: .88rem; }
.pattern { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 5vw, 70px); flex-wrap: wrap; }
.pattern-art {
  display: grid;
  place-items: center;
  flex: 0 1 400px;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  position: relative;
  border: 1px solid #799f98;
  border-radius: 11px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  background:
    radial-gradient(circle, #e0f5e984 0 2px, transparent 3px),
    repeating-conic-gradient(from -0.15deg, #a7c9c73e 0deg .3deg, transparent .3deg 45deg),
    radial-gradient(circle, #244943, #0c2729 75%);
}
.drawn-flake {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: #e0faff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flake-ornament .drawn-flake { stroke-width: 18; }
.pattern-instructions { flex: 1 1 260px; max-width: 365px; }
.draw-tools, .draw-actions, .photo-options { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.draw-tools { margin: 17px 0; }
.draw-actions { margin-top: 17px; }
.draw-actions .text-button { min-height: 44px; }
.photo-options { margin-bottom: 17px; }
.toy-studio { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(150px, 1fr); align-items: center; gap: 22px; }
.toy-preview { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: .88rem; }
.toy-preview > div { width: min(155px, 100%); }
.toy-visibility { margin-top: 12px; color: var(--muted); font-size: .91rem; }
.glass-ball {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid #e8c982;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 22%, #a8d2ba, #3d7b65 34%, #132c27 78%);
  box-shadow: 0 0 12px #fed27f42;
}
.glass-ball::before { content: ""; position: absolute; width: 23%; height: 12%; top: -10%; left: 38.5%; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, #8b622e, #f1cd84, #ad793c); }
.glass-ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse at 28% 21%, #fff7d688, transparent 37%), radial-gradient(ellipse at 49% 42%, transparent 43%, #1a120fb3 100%); }
.glass-ball img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.picture-ornament .glass-ball { border-width: 1px; }
.card-grid, .ornament-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card-option, .ornament-choice { display: grid; position: relative; cursor: pointer; }
.card-option > span, .ornament-choice > span {
  display: grid;
  align-content: start;
  gap: 9px;
  height: 100%;
  padding: 7px 7px 10px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--cream);
  background: #142c25;
}
.card-option img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-option input, .ornament-choice input { position: absolute; top: 10px; left: 10px; }
.card-option:has(input:checked) > span, .ornament-choice:has(input:checked) > span { border-color: var(--gold-light); background: #3a432b; box-shadow: inset 0 0 0 1px var(--gold); }
.card-option:has(input:focus-visible), .ornament-choice:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.upload-area { display: grid; justify-items: start; gap: 12px; padding: 17px; border: 1px dashed var(--line); }
.upload-label { max-width: 100%; }
.upload-label input { max-width: 100%; }
.ornament-grid { grid-template-columns: repeat(3, 1fr); }
.ornament-choice > span { justify-items: center; align-content: center; min-height: 158px; padding: 13px 8px; }
.ornament-choice small { color: var(--muted); font-size: .83rem; }
.ornament-sample {
  width: min(70px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}
.decoration-art {
  display: grid;
  width: 84%;
  height: 84%;
  place-items: center;
  position: relative;
  color: var(--gem);
}
.decoration-art .icon { position: relative; z-index: 1; width: 100%; height: 100%; }
.decoration-art.is-lantern::before {
  content: ""; position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gem-light), var(--gem) 36%, transparent 72%);
  filter: blur(3px);
  animation: lantern-breathe 3.8s var(--phase, 0s) ease-in-out infinite alternate;
}
.decoration-art.is-lantern .icon { stroke: var(--gem-light); filter: drop-shadow(0 0 3px var(--gem-dark)); }
.decoration-art.is-bauble {
  width: 75%; height: auto; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 23%, var(--gem-light), var(--gem) 32%, var(--gem-dark) 84%);
  box-shadow: inset 0 0 0 1px #ffd2a36b;
}
.decoration-art.is-bauble::before {
  content: ""; position: absolute; inset: -9% 37% auto;
  height: 12%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #80531f, #ffe0a1, #97652c);
}
.decoration-art.is-bauble::after {
  content: ""; position: absolute; inset: 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 28% 25%, #fff9dfeb 0%, transparent 23%);
  animation: glass-glint 5.3s var(--phase, 0s) ease-in-out infinite alternate;
}
@keyframes glass-glint { from { opacity: .23; rotate: -14deg; } to { opacity: .92; rotate: 17deg; } }
.decoration-art.is-ribbon { animation: satin-shift 4.6s var(--phase, 0s) ease-in-out infinite alternate; }
.decoration-art.is-ribbon .icon path {
  fill: var(--gem);
  stroke: var(--gem-light);
  stroke-width: 1.05;
  filter: drop-shadow(0 2px 2px var(--gem-dark));
}
@keyframes satin-shift { from { filter: brightness(.57) saturate(.9); } to { filter: brightness(1.36) saturate(1.16); } }
.tone-field { margin: 18px 0 0; }
.tone-field legend { margin-bottom: 7px; color: var(--gold-light); font-size: .94rem; }
.tone-options { display: flex; flex-wrap: wrap; gap: 7px; }
.tone-option { position: relative; cursor: pointer; }
.tone-option input { position: absolute; opacity: 0; }
.tone-option span { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line-soft); }
.tone-option input:checked + span { background: #3a432b; border-color: var(--gold-light); }
.tone-option input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.tone-option i { display: block; width: 20px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #fff6; background: linear-gradient(135deg, var(--gem-light), var(--gem), var(--gem-dark)); }

.final-message { width: min(100%, 770px); justify-self: center; }
.final-message h2 { margin: 13px 0; }
.final-message blockquote { font: clamp(1.12rem, 1.9vw, 1.42rem)/1.5 var(--serif); }
.prize { display: flex; gap: 13px; align-items: start; border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 14px; }
.prize .icon { color: var(--gold); width: 26px; height: 26px; margin-top: 4px; }
.prize h3 { margin: 6px 0 5px; font-size: 1.35rem; }
.prize p:not(.eyebrow) { color: var(--muted); font-size: .92rem; }
.card-strip { margin-top: 22px; padding: 18px 0; border-block: 1px solid var(--line-soft); display: flex; gap: 17px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.card-strip h2 { font-size: 1.75rem; margin-top: 4px; }
.share-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-actions .status { flex-basis: 100%; }
.share-link { max-width: 400px; }
.postcard { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(28px, 6vw, 83px); margin-top: 50px; max-width: 1120px; }
.postcard .starline, .postcard .lead { margin-bottom: 20px; }
.postcard h1 { margin: 9px 0 12px; }
.postcard > div > p:last-child { margin-top: 16px; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 68px, 1376px); }
}
@media (max-width: 850px) {
  :root { --shell: min(100% - 38px, 1376px); }
  .topbar { min-height: 65px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 7.45vw, 5.4rem); }
  .hero-copy .starline { margin-bottom: 17px; }
  .quest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
}
@media (max-width: 630px) {
  .home-full { align-items: end; padding: 90px 0 32px; }
  .home-full::before { background: linear-gradient(0deg, #091a16 0%, #091a16e6 24%, #091a1630 62%, #091a1600 76%, #091a16a6 100%); }
  .hero-tree { translate: -54% -50%; }
  .join, .postcard { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { padding: 2px 0 0; }
  .hero-copy h1 { font-size: clamp(3.55rem, 12.8vw, 5.5rem); margin: 11px 0 16px; }
  .hero-copy .lead { margin-bottom: 18px; }
  .footer { margin-top: 27px; min-height: 57px; }
  .join { margin-top: 14px; }
  .join-art { grid-row: 2; }
  .join-panel .starline { margin-top: 4px; }
  .section-heading { flex-direction: column; align-items: start; gap: 13px; }
  .map-heading-actions { width: 100%; flex-wrap: wrap; align-items: center; gap: 10px; }
  .task-top .progress { max-width: 150px; }
  .task-heading h1 { font-size: clamp(2rem, 8.8vw, 3.55rem); }
  .choices { grid-template-columns: 1fr; }
  .game-toolbar { flex-wrap: wrap; }
  .comparison { grid-template-columns: 1fr; }
  .card-grid { gap: 7px; }
  .card-option > span { padding: 4px 4px 7px; font-size: .86rem; }
  .card-option input { top: 6px; left: 5px; }
  .ornament-choice > span { min-height: 125px; padding: 10px 4px; font-size: .9rem; }
  .ornament-choice small { font-size: .75rem; }
  .ornament-sample { width: 43px; }
  .pattern-instructions { max-width: none; }
  .toy-studio { grid-template-columns: 1fr; }
  .toy-preview > div { width: 115px; }
}
@media (max-width: 400px) {
  :root { --shell: calc(100% - 32px); }
  .quest-list { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3rem, 13vw, 4.25rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .lantern-halo, .decoration-art, .decoration-art::before, .decoration-art::after { animation: none; }
}
