:root {
  color-scheme: dark;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --condensed: "Barlow Condensed", Impact, sans-serif;
  --title: var(--serif);
  --bg: #090f22;
  --mast: #0a1021;
  --panel: #101b31;
  --ink: #fff7e9;
  --muted: #c8d0e1;
  --gold: #f4cf8b;
  --on-accent: #211624;
  --line: #aabada42;
  --radius: 1.35rem;
  --wrap: min(82rem, calc(100% - 8vw));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.62 var(--sans); }
main { overflow: clip; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--on-accent); }
.wrap { width: var(--wrap); margin-inline: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--title); line-height: .96; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(4.6rem, 10.6vw, 10.4rem); letter-spacing: -.068em; }
h1 em { color: var(--gold); font-weight: 500; }
h2 { font-size: clamp(2.65rem, 5.3vw, 5rem); letter-spacing: -.052em; }
h3 { font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -.028em; }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--gold); font-size: .83rem; letter-spacing: .16em; font-weight: 700; line-height: 1.5; }
.hero-lead { max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.48vw, 1.23rem); }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.hero-note span { margin-inline: .3rem; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .68rem 1.22rem; border: 1px solid transparent; border-radius: .67rem; font-weight: 700; font-size: .93rem; line-height: 1.25; text-align: center; transition: transform .22s, background-color .22s, border-color .22s, box-shadow .22s; }
.button:hover { transform: translateY(-2px); }
.gold { color: var(--on-accent); background: var(--gold); border-color: var(--gold); }
.gold:hover { box-shadow: 0 .5rem 1.8rem color-mix(in srgb, var(--gold) 29%, transparent); }
.outline { background: color-mix(in srgb, var(--panel) 34%, transparent); border-color: var(--line); }
.outline:hover { border-color: var(--gold); }
.text-link, .quiet-link { display: inline-block; color: var(--gold); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.text-link:hover, .quiet-link:hover { text-decoration-thickness: 2px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 1rem; top: .5rem; z-index: 20; padding: .5rem .75rem; background: var(--mast); }

.mast { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--mast) 91%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.mast-inner { min-height: 4.65rem; width: var(--wrap); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.identity, .footer-brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.identity img, .footer-brand img { width: clamp(6rem, 9.8vw, 9rem); }
.identity span, .footer-brand span { padding-left: .75rem; max-width: 7.7rem; border-left: 1px solid var(--line); font: 700 clamp(1rem, 1.45vw, 1.3rem)/.98 var(--title); }
.mast nav, .footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(.55rem, 1.65vw, 1.5rem); }
.mast nav a, .footer-links a { color: var(--muted); font-size: .875rem; font-weight: 600; }
.mast nav a:hover, .mast nav a[aria-current], .footer-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .38em; }
.header-play { min-height: 2.6rem; white-space: nowrap; }
#menu-toggle { background: transparent; border: 1px solid var(--line); border-radius: .6rem; min-height: 2.65rem; padding: .35rem .62rem; font-weight: 700; }
.scroll-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--gold); transform: scaleX(var(--progress, 0)); transform-origin: left; opacity: .85; pointer-events: none; }

.section-head { margin-bottom: clamp(1.5rem, 3.2vw, 2.5rem); }
.section-head h2 { margin-top: .62rem; }
.section-head > p:not(.eyebrow) { max-width: 42rem; margin-top: .75rem; color: var(--muted); }
.section-pad, .chapter-list, .library-section { padding-block: clamp(3.4rem, 6.2vw, 6rem); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .95rem; }
.tile { position: relative; display: grid; align-items: end; min-height: clamp(13.5rem, 22vw, 19.5rem); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--panel); color: #fff9f0; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tile img { position: absolute; z-index: -2; inset: 0; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.3,1); }
.tile::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #050b18ed 0%, #050b1899 25%, transparent 73%); }
.tile:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 .7rem 2.2rem #070a203d; }
.tile:hover img { transform: scale(1.075); }
.tile-text { padding: 1.2rem 2.9rem 1.2rem 1rem; }
.tile-text h3 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
.tile-subtitle { display: block; color: #eee9f2; font-size: .88rem; margin-top: .35rem; line-height: 1.34; }
.tile-category { display: inline-block; margin-bottom: .5rem; padding: .15rem .45rem; background: #081722df; border: 1px solid #a0f7e366; border-radius: .3rem; color: #c2fdec; font-size: .76rem; letter-spacing: .07em; font-weight: 700; }
.tile-text i { position: absolute; right: .75rem; bottom: 1.1rem; display: grid; place-items: center; width: 1.78rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff72; color: #fff; font-style: normal; }

.switcher { min-width: 0; }
.switch-controls { display: flex; gap: .5rem; flex-wrap: wrap; padding: .48rem; width: fit-content; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: .9rem; margin-bottom: .8rem; }
.switch-controls button, .filters button { min-height: 2.7rem; border: 1px solid transparent; border-radius: .55rem; padding: .4rem .8rem; background: transparent; font-size: .875rem; font-weight: 700; transition: color .2s, background-color .2s, border-color .2s; }
.switch-controls button:hover, .filters button:hover { border-color: var(--gold); }
.switch-controls [aria-selected="true"], .filters [aria-pressed="true"] { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.switch-views { display: grid; gap: .85rem; }
.switch-view { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.switch-view img { width: 100%; height: clamp(18rem, 28vw, 26rem); object-fit: cover; }
.switch-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(1.3rem, 3.9vw, 3.35rem); }
.switch-copy h3 { margin-top: .45rem; }
.switch-copy > p:not(.eyebrow) { color: var(--muted); margin-block: .7rem .95rem; }
.switch-view.is-entering { animation: switch-in .42s cubic-bezier(.18,.64,.28,1) both; }
@keyframes switch-in { from { opacity: .68; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.question-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.1rem, 6vw, 6rem); align-items: start; padding-block: clamp(2.65rem, 6vw, 5.7rem); }
.question-section h2 { font-size: clamp(2.55rem, 4vw, 4rem); }
.question-list { display: grid; gap: .6rem; }
.question-list details { border: 1px solid var(--line); border-radius: .84rem; background: var(--panel); }
.question-list summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .65rem; padding: .9rem 1.1rem; font-weight: 700; cursor: pointer; list-style: none; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.question-list [open] summary::after { content: "−"; }
.question-list details p { color: var(--muted); padding: 0 1.1rem 1rem; }
.finale { color: #fff6e9; position: relative; isolation: isolate; display: grid; place-items: center; text-align: center; overflow: hidden; padding: clamp(3rem, 6.3vw, 5.5rem) 5vw; background: radial-gradient(ellipse at 50% 8%, var(--finale-light), transparent 80%), var(--finale-bg); border-top: 1px solid var(--line); }
.finale > div { z-index: 1; }
.finale p { margin: .75rem 0 1.25rem; color: #f2e7e4; }
.finale > img { position: absolute; right: 3vw; height: 115%; width: min(40vw, 26rem); object-fit: contain; opacity: .2; pointer-events: none; }
footer { background: var(--mast); border-top: 1px solid var(--line); }
.footer-inner { width: var(--wrap); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; padding-block: 1.3rem; }
.footer-inner small { color: var(--muted); font-size: .82rem; }

.sample-section { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(1.15rem, 4vw, 3.6rem); background: radial-gradient(ellipse at 65% 32%, #1d3b4d, transparent 80%), #121a2e; border: 1px solid var(--line); border-radius: var(--radius); }
.sample-section .section-head { margin-bottom: .9rem; }
.sample-game { padding: .8rem; border: 1px solid var(--line); background: #0a1220; border-radius: .8rem; }
.sample-top { min-height: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .6rem; }
.sample-top p { font-size: .88rem; color: var(--muted); }
.sample-top button { min-height: 2.6rem; padding: .4rem .65rem; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.memory-card { display: grid; place-items: center; background: radial-gradient(circle at 45% 0, #25404a, #142239 70%); border: 1px solid #7ca9b077; border-radius: .48rem; aspect-ratio: 1.18; color: #95bac9; font-size: clamp(1.45rem, 3vw, 2.45rem); line-height: 1; transition: background .2s, border-color .2s, transform .2s; }
.memory-card:hover { border-color: var(--gold); }
.memory-card[data-face="up"] { background: #183956; border-color: #82c5ef; color: #e6f9ff; animation: card-turn .25s ease-out; }
.memory-card[data-face="match"] { background: #194032; border-color: #94efd5; color: #d7fff4; }
@keyframes card-turn { from { transform: rotateY(65deg); } to { transform: rotateY(0); } }

/* Subpages */
.detail-stage { background: radial-gradient(ellipse at 74% 24%, #273853, transparent 76%), #111a32; border-bottom: 1px solid var(--line); }
.village .detail-stage { background: radial-gradient(ellipse at 85% 40%, #edc4a6, transparent 64%), #fff0e1; }
.games .detail-stage { background: radial-gradient(ellipse at 75% 27%, #233e63, transparent 70%), #101929; }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.7rem, 5vw, 5rem); align-items: center; min-height: 32rem; padding-block: clamp(2.8rem, 5.5vw, 5.6rem); }
.breadcrumbs { display: flex; align-items: center; gap: .28rem .55rem; flex-wrap: wrap; margin-bottom: 1.05rem; color: var(--muted); font-size: .875rem; }
.breadcrumbs a { color: var(--gold); text-decoration: underline; text-underline-offset: .25em; }
.detail h1, .games.detail h1 { font-size: clamp(3.62rem, 6vw, 6rem); margin-bottom: 1rem; }
.detail-hero .button { margin-top: 1.25rem; }
.detail-cover { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1rem 3rem #190d2a26; }
.detail-cover img { height: clamp(16rem, 29vw, 27rem); object-fit: cover; object-position: center 42%; animation: settle .95s ease-out both; }
.story { display: grid; gap: 1rem; padding-block: clamp(2.4rem, 5vw, 5rem); }
.field-note { padding: clamp(1.35rem, 3.8vw, 2.4rem); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: .85rem; background: var(--panel); }
.field-note h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); margin: .35rem 0 .65rem; }
.field-note p:not(.eyebrow) { max-width: 60rem; color: var(--muted); }
.story-row { min-height: 16rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.story-row:nth-of-type(even) .story-image { grid-column: 2; grid-row: 1; }
.story-row:nth-of-type(even) .story-copy { grid-column: 1; grid-row: 1; }
.story-image { position: relative; height: 100%; min-height: 16rem; }
.story-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.story-image.figure { background: radial-gradient(ellipse at 50% 50%, var(--finale-light), var(--finale-bg)); }
.story-image.figure img { object-fit: contain; padding: .9rem; }
.story-copy { padding: clamp(1.45rem, 4vw, 3.5rem); }
.story-copy h2 { font-size: clamp(2.3rem, 4vw, 3.75rem); margin-bottom: .65rem; }
.story-copy p { color: var(--muted); }
.guide-link { margin-top: .7rem; }
.related { padding-bottom: clamp(3rem, 6.5vw, 5.5rem); }
.related .tiles { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }


/* Seasonal materials and typography */
:root {
  --bg: #0a1423;
  --mast: #22101b;
  --panel: #142238;
  --ink: #fff5e4;
  --muted: #e0d7ce;
  --gold: #f4ce82;
  --on-accent: #2c1420;
  --line: #e6bb7855;
  --radius: .8rem;
  --finale-bg: #271327;
  --finale-light: #573044;
  --wrap: min(82.5rem, calc(100% - 8vw));
}
body.village { --bg: #240f1c; --panel: #3b1927; --finale-bg: #3e1123; --finale-light: #673124; }
body.games { --bg: #090f21; --panel: #171e39; --finale-bg: #19142d; --finale-light: #393969; }
.mast {
  background: linear-gradient(90deg,#210915b8,#3d1021b8,#210915b8), url('/assets/santaworlds-red-velvet.webp') center / 380px;
  border-bottom: 1px solid #e0b5749c;
  box-shadow: 0 6px 18px #0d0a1570;
}
.mast-inner { min-height: 4.85rem; }
.identity img { width: clamp(7.2rem,11vw,10.2rem); }
.identity span, .footer-brand span { border-left-color: #edca8273; font-size: clamp(1rem,1.38vw,1.25rem); }
.mast nav a { color: #fff4e0; }
.gold {
  background: linear-gradient(177deg,#fff0b8 0%,#f6d584 44%,#e3ad57 100%);
  border-color: #ffdea0;
  color: #301721;
  box-shadow: inset 0 0 0 2px #ffdf9580, 0 5px 0 #7f461d, 0 9px 21px #0c070a55;
}
.gold:hover { box-shadow: inset 0 0 0 2px #fff1b9b8, 0 6px 0 #9d5c25, 0 11px 27px #b68a3f5e; }
.button { min-height: 3.05rem; padding-inline: 1.17rem; }
.header-play { min-height: 2.5rem; }
.outline { background: #151026e0; border-color: #e9c28085; }
h1 { letter-spacing: -.055em; }
h2 { color: #fff1d9; }
h2, h3 { text-wrap: pretty; }
.section-head h2 { margin-block: .45rem .75rem; }
.section-head > p:not(.eyebrow) { margin-top: 0; max-width: 46rem; }
.eyebrow { letter-spacing: .14em; }
.hero-note { color: #f7e4cb; }
footer {
  background: linear-gradient(90deg,#240f1ce8,#321328eb,#240f1ce8), url('/assets/santaworlds-red-velvet.webp') center / 420px;
}

/* Illustrated hero stages */
.campaign-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: clamp(38rem, 51vw, 49rem);
  display: grid;
  align-items: center;
  background: #142839;
  border-bottom: 1px solid #efc17f5c;
}
.campaign-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(2rem, 4.2vw, 4rem);
  z-index: 4;
  pointer-events: none;
  background: url('/assets/santaworlds-gold-curtain.webp') center top / clamp(245px, 26vw, 410px) 100% repeat-x;
  opacity: .86;
}
.hero-back, .hero-veil, .hero-light, .hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-back { z-index: -5; transform: translate3d(var(--scene-x,0px),var(--scene-y,0px),0) scale(1.035); }
.hero-scenery { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-veil { z-index: -3; background: linear-gradient(90deg,#0c1329f9 0%,#0c1329e9 23%,#0c132990 48%,#0c132923 81%),linear-gradient(0deg,#0a1423 0%,transparent 28%); }
.hero-light { z-index: -4; inset: -12% 0 20%; background: radial-gradient(ellipse at 74% 29%,#7cf0eb65,transparent 54%); opacity: .46; mix-blend-mode: screen; animation: polar-light 11s ease-in-out infinite alternate; }
.hero-particles { z-index: 2; }
.hero-content { position: relative; z-index: 3; padding-block: clamp(5.9rem, 8.8vw, 8.4rem) clamp(3.1rem, 7vw, 6.4rem); }
.hero-copy { max-width: min(60%, 43rem); }
.hero-brand { display: inline-block; width: clamp(9rem, 16.7vw, 14rem); margin: 0 0 .55rem -.24rem; }
.hero-copy h1 { font-size: clamp(4.2rem,7.25vw,7.65rem); line-height: .87; text-shadow: 0 5px 26px #120e209c; margin-bottom: 1rem; }
.hero-copy h1 em { display: inline-block; font-weight: 700; color: #ffdfa0; }
.hero-copy .hero-lead { max-width: 35rem; color: #fff2e2; text-shadow: 0 2px 9px #120914e0; }
.hero-copy .actions { margin-top: 1.45rem; }
.hero-copy .button { min-height: 3.4rem; }
.hero-copy .hero-note { margin-top: 1.1rem; }
.santa-foreground, .workshop-frame, .duel-foreground { position: absolute; z-index: 0; transform: translate3d(var(--scene-x,0px),var(--scene-y,0px),0); pointer-events: none; }
.santa-foreground { inset: 11% 1% 6% auto; width: min(46vw,45rem); display: grid; align-items: end; justify-items: center; }
.hero-santa { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 1rem 1.3rem #0c121fc9); animation: santa-entrance .95s cubic-bezier(.16,.72,.25,1) both; }
.hero-north .hero-scenery { object-position: 55% 45%; }

.hero-workshop { background: #2c091c; }
.hero-workshop .hero-scenery { object-position: 70% 44%; }
.hero-workshop .hero-veil { background: linear-gradient(90deg,#250c1ffa,#250c1fe8 29%,#451b27b3 64%,#280c1da6 94%),linear-gradient(0deg,#230f1c,transparent 43%); }
.hero-workshop .hero-light { background: radial-gradient(ellipse at 74% 60%,#ffc37286,transparent 52%); animation-duration: 8s; }
.hero-workshop .hero-copy { max-width: min(53%, 40rem); }
.workshop-frame { inset: 50% 4.2vw auto auto; width: min(49vw,44rem); margin-top: -2rem; transform: translate3d(var(--scene-x,0px),calc(-50% + var(--scene-y,0px)),0); padding: .47rem; overflow: hidden; border: 1px solid #edca82d1; border-radius: .65rem; background: linear-gradient(135deg,#e3a964,#5a311d 32%,#edc78a 76%,#694024); box-shadow: 0 1.7rem 4rem #150818a8; }
.workshop-art { width: 100%; height: auto; object-fit: contain; border-radius: .3rem; }
.workshop-frame figcaption { position: absolute; inset: auto .85rem .8rem auto; padding: .39rem .61rem; border-radius: .25rem; color: #fff3d6; background: #21101bcc; font-size: .81rem; }

.hero-duel .hero-scenery { object-position: 50% 40%; }
.hero-duel .hero-veil { background: linear-gradient(90deg,#10162cfb,#11162cec 22%,#151e3978 50%,#1116321a 87%),linear-gradient(0deg,#090f21,transparent 40%); }
.hero-duel .hero-light { background: radial-gradient(ellipse at 79% 32%,#82d1f3be,transparent 51%); }
.duel-foreground { inset: 25% 5% 9% auto; width: min(47vw,44rem); display: flex; align-items: flex-end; justify-content: center; gap: 1%; }
.duel-foreground img { width: 49%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 .9rem .75rem #1b1830b3); }
.arena-player { animation: player-entrance .8s cubic-bezier(.18,.74,.22,1) both; }
.arena-freya { animation: freya-entrance .85s cubic-bezier(.18,.74,.22,1) both; }
@keyframes polar-light { to { transform: translate(-7%, 10%) scale(1.16); opacity: .83; } }
@keyframes santa-entrance { from { transform: translateY(22px) scale(.98); opacity: .65; } }
@keyframes player-entrance { from { transform: translateX(-24px); opacity: .42; } }
@keyframes freya-entrance { from { transform: translateX(24px); opacity: .42; } }
.effects-toggle { position: absolute; z-index: 4; right: 4vw; bottom: 1rem; background: #101326d9; border: 1px solid #ebcc8f8c; border-radius: .45rem; padding: .38rem .6rem; min-height: 2.5rem; font-size: .83rem; color: #fff2d7; }
.effects-toggle[aria-pressed="true"] { background: #f0ca86; color: #261424; }
.effects-paused .hero-light { animation-play-state: paused; }

/* Art is displayed within its original frame */
.framed-art {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: clip;
  background: radial-gradient(ellipse at 52% 48%,#5640585e,transparent 75%), #101629;
}
.village .framed-art { background: radial-gradient(ellipse at 45% 40%,#79473885,transparent 76%), #271725; }
.framed-art img { width: 100%; height: 100%; object-fit: contain; }
.tile {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-items: stretch;
  color: var(--ink);
  background: linear-gradient(180deg,var(--panel),color-mix(in srgb,var(--panel) 52%,var(--bg)));
  box-shadow: 0 9px 24px #0309143d;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tile::after { display: none; }
.tile .framed-art { aspect-ratio: 1.50; border-bottom: 1px solid var(--line); }
.tile .framed-art img { position: static; z-index: auto; height: 100%; max-height: 100%; object-fit: contain; }
.tile:hover .framed-art img { transform: none; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 36px #03091475; }
.tile-text { padding: 1rem 1.1rem 1.25rem; flex: 1; display: flex; align-items: flex-start; flex-direction: column; }
.tile-text p { margin: .55rem 0 .85rem; color: var(--muted); line-height: 1.53; }
.tile-link { font-size: .89rem; font-weight: 700; margin-top: auto; color: var(--gold); text-decoration: underline; text-underline-offset: .27em; }
.tile-category { border-color: var(--line); background: #17162c; color: var(--gold); font-size: .82rem; letter-spacing: 0; }
.games-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.games-tiles .activity, .games-tiles .tile { height: 100%; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.filters button { border-color: var(--line); background: var(--panel); }
.atlas-section, .visit-section { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 58% 34%,#27374a,transparent 80%),var(--bg); }
.visit-section { background: radial-gradient(ellipse at 55% 0%,#5b2635,transparent 75%),var(--bg); }
.atlas-panorama { overflow: hidden; border: 1px solid var(--line); border-radius: .72rem; box-shadow: 0 1rem 2rem #06091358; margin-bottom: .85rem; }
.atlas-panorama img { aspect-ratio: 3; object-fit: contain; }
.switch-controls { background: color-mix(in srgb,var(--panel) 67%,var(--bg)); margin-bottom: .7rem; }
.switch-view .framed-art { height: clamp(16rem,30vw,27rem); border-right: 1px solid var(--line); }
.switch-view .framed-art img { height: 100%; object-fit: contain; }
.switch-copy h3 { margin-bottom: .22rem; }
.switch-copy p:not(.eyebrow) { max-width: 35rem; }
.article-band { padding-block: clamp(3.2rem,6.2vw,6rem); border-block: 1px solid var(--line); background: linear-gradient(125deg,color-mix(in srgb,var(--panel) 95%,var(--bg)),var(--bg)); }
.article-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); align-items: start; gap: clamp(1.5rem,5vw,4.9rem); }
.article-media { position: sticky; top: 7rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 13px 40px #0a091570; }
.article-media img { height: auto; object-fit: contain; }
.article-body section + section { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.article-body h3 { font-size: clamp(1.8rem,2.7vw,2.8rem); margin-bottom: .32rem; }
.article-body section p { color: var(--muted); }
.sample-section { margin-block: clamp(3.2rem,6.2vw,5.7rem) 0; }
.question-section { border-top: 1px solid var(--line); }
.finale { background: radial-gradient(ellipse at 50% 8%,var(--finale-light),transparent 72%),linear-gradient(#27152bd4,#260e1afa),url('/assets/santaworlds-red-velvet.webp') center / 480px; }
.finale > img { opacity: .2; object-fit: contain; }

/* Long-form guides */
.detail-stage { background: radial-gradient(ellipse at 77% 38%,var(--panel),transparent 70%), var(--bg); }
.detail-cover .framed-art { border: 0; height: clamp(15rem,33vw,27.15rem); }
.detail-cover .framed-art img { width: 100%; height: 100%; object-fit: contain; animation: none; }
.story-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.story-nav a { padding: .43rem .71rem; border: 1px solid var(--line); border-radius: .42rem; background: var(--panel); font-size: .88rem; }
.story-nav a:hover { border-color: var(--gold); color: var(--gold); }
.story-row { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); }
.story-row:nth-of-type(even) { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); }
.story-image { display: flex; align-items: stretch; min-height: 0; border-right: 1px solid var(--line); }
.story-row:nth-of-type(even) .story-image { border-right: 0; border-left: 1px solid var(--line); }
.story-image .framed-art { min-height: 19rem; }
.story-image img { position: static; height: auto; max-height: 28rem; object-fit: contain; }
.story-copy p + p { margin-top: .75rem; }
.story-row, .story-nav, .field-note { scroll-margin-top: 1rem; }

[data-reveal].arriving { animation: arrive .59s cubic-bezier(.18,.67,.24,1) both; }
@keyframes arrive { from { opacity: .78; translate: 0 11px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 62rem) {
  .mast-inner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .55rem; min-height: 4.1rem; padding-block: .4rem; }
  .mast nav { grid-column: 1/-1; grid-row: 2; justify-content: start; padding-block: .3rem .4rem; }
  .mast nav a { padding: .3rem .14rem; }
  .header-play { grid-column: 3; grid-row: 1; }
  #menu-toggle { grid-column: 2; grid-row: 1; }
  .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 46rem) {
  :root { --wrap: calc(100% - 2rem); }
  .mast .identity span { display: none; }
  .mast .identity img { width: 7rem; }
  .header-play { min-height: 2.5rem; padding-inline: .61rem; font-size: .82rem; }
  .campaign-hero { min-height: 43rem; align-items: end; }
  .hero-content { padding-block: 19.1rem 3.3rem; }
  .hero-copy, .hero-workshop .hero-copy { max-width: none; }
  .hero-brand { display: none; }
  .hero-copy h1 { font-size: clamp(3.65rem,14vw,5.65rem); line-height: .9; }
  .hero-copy .button { min-height: 3.05rem; padding-inline: .78rem; }
  .hero-copy .actions { margin-top: 1.1rem; gap: .5rem; }
  .hero-copy .hero-note { margin-top: .85rem; }
  .hero-north .hero-veil, .hero-duel .hero-veil { background: linear-gradient(0deg,#0b1429 0%,#0b1429f4 32%,#0b1429b8 56%,#0a183524 76%); }
  .hero-workshop .hero-veil { background: linear-gradient(0deg,#2b1023 14%,#2b1023f7 31%,#46253fc9 59%,#260e2390); }
  .santa-foreground { inset: 3.8rem 4vw auto auto; width: min(66vw,19rem); height: 15.1rem; }
  .duel-foreground { inset: 3.45rem 3vw auto; width: auto; height: 15rem; }
  .workshop-frame { inset: 3.1rem 5vw auto; width: auto; max-width: 25rem; margin: 0 auto; transform: none; }
  .workshop-frame figcaption { padding: .22rem .38rem; font-size: .72rem; }
  .hero-workshop .hero-content { padding-top: clamp(15rem,calc(51vw + 3.6rem),20rem); }
  .effects-toggle { min-height: 2.35rem; bottom: .42rem; right: 1rem; }
  .article-grid, .question-section, .sample-section, .detail-hero { grid-template-columns: 1fr; }
  .article-media { position: static; }
  .switch-controls { width: 100%; }
  .switch-view { grid-template-columns: 1fr; }
  .switch-view .framed-art { height: 13.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .tiles, .games-tiles, .related .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .tile-text { padding: .7rem .65rem .85rem; }
  .tile-text h3 { font-size: clamp(1.65rem,6vw,2.35rem); }
  .tile-text p { font-size: .9rem; }
  .detail h1, .games.detail h1 { font-size: clamp(3.25rem,11.5vw,5rem); }
  .detail-cover .framed-art { height: min(62vw,22rem); }
  .story-row { display: flex; flex-direction: column; align-items: stretch; }
  .story-row .story-image, .story-row:nth-of-type(even) .story-image { border: 0; border-bottom: 1px solid var(--line); }
  .story-image .framed-art { min-height: 0; height: 13.5rem; }
  .story-image img { height: 100%; max-height: none; }
  .footer-links { justify-content: flex-start; }
  .footer-inner small { flex-basis: 100%; }
}
@media (max-width: 26rem) {
  .hero-copy h1 { font-size: clamp(3.35rem,14vw,4.1rem); }
  .hero-copy .actions { align-items: start; }
  .tiles, .games-tiles, .related .tiles { grid-template-columns: 1fr; }
  .tile .framed-art { aspect-ratio: 1.72; }
  .tile-text p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .hero-particles { display: none; }
}
