/* Kris Bradley | Midnight Church Aftermath | homepage
   Layout concept: one night-to-morning scroll. The house at midnight up top, dawn breaks into the
   new single, then the page alternates lamp-lit dark rooms with bright morning light.
   Single committed look (her brand), so every color is set explicitly. */

:root {
  /* color: pulled from the Aftermath Cards and the album */
  --night: #0F2433;      /* midnight blue, never black */
  --night-2: #14354A;    /* deeper teal night */
  --teal: #1E4D5C;       /* card frame teal */
  --ember: #D9692E;      /* card border orange */
  --porch: #F6B24A;      /* the porch light */
  --gold: #C9A253;       /* brass, stars */
  --cream: #F4E6C8;      /* card paper, text on dark */
  --paper: #FFFCF7;      /* morning light */
  --mist: #EDF3F2;       /* cool morning */
  --ink: #13212B;        /* text on light */
  --muted: #56646C;
  --wine: #6B1E2E;
  --line-dark: rgba(244, 230, 200, .18);
  --line-light: rgba(19, 33, 43, .12);

  /* type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --ease: cubic-bezier(.22, .8, .22, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--night);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--porch); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--porch); color: var(--night); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 15.5px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--porch { background: var(--porch); color: #2A1A06; box-shadow: 0 0 0 0 rgba(246, 178, 74, .5), 0 10px 30px -8px rgba(246, 178, 74, .65); }
.btn--porch:hover { box-shadow: 0 0 0 6px rgba(246, 178, 74, .18), 0 14px 36px -8px rgba(246, 178, 74, .8); }
.btn--ghost { color: var(--cream); border-color: rgba(244, 230, 200, .45); background: rgba(15, 36, 51, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(244, 230, 200, .08); }
.btn--ember { background: var(--ember); color: #FFF8EE; box-shadow: 0 12px 30px -10px rgba(217, 105, 46, .7); }
.btn--ember:hover { background: #E2793D; }
.btn--line { color: var(--ink); border-color: rgba(19, 33, 43, .3); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.textlink { color: var(--teal); font-weight: 600; text-underline-offset: 4px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ember); }
.eyebrow--light { color: var(--porch); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-solid { background: rgba(15, 36, 51, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.nav__inner {
  max-width: calc(var(--max) + 120px); margin: 0 auto; height: 72px;
  display: flex; align-items: center; gap: 28px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.nav__mark {
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .01em;
  color: var(--cream); text-decoration: none; margin-right: auto;
}
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: rgba(244, 230, 200, .82); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--porch); }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__menu span:first-child { top: 17px; }
.nav__menu span:last-child { top: 25px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet {
  display: grid; gap: 4px; padding: 8px var(--gutter-r) 22px var(--gutter);
  background: rgba(15, 36, 51, .97); border-top: 1px solid var(--line-dark);
}
.sheet a { color: var(--cream); text-decoration: none; font-family: var(--display); font-size: 26px; padding: 8px 0; }

/* ---------- hero: the house at night ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(660px, 100svh, 1040px);
  background:
    radial-gradient(ellipse 60% 40% at 64% 92%, rgba(246, 178, 74, .22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 82% 18%, rgba(255, 241, 207, .10), transparent 70%),
    linear-gradient(180deg, #0B1D2B 0%, #10304A 42%, #1D4E62 78%, #24596A 100%);
  color: var(--cream);
  isolation: isolate;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__copy, .hero__foot { transition: opacity .45s ease; }
.hero.is-zooming .hero__copy, .hero.is-zooming .hero__foot { opacity: 0; }
html.room-open #kbc { opacity: 0; pointer-events: none; }
.hero__copy {
  position: relative; z-index: 3;
  max-width: calc(var(--max) + 120px); margin: 0 auto;
  padding: 150px var(--gutter-r) 0 var(--gutter);
}
.hero__by { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--porch); margin-bottom: 14px; }
.hero__title {
  font-weight: 900; font-size: clamp(46px, 7vw, 104px); line-height: .96; letter-spacing: -.02em;
  color: var(--cream); max-width: 9.5em;
  text-shadow: 0 2px 30px rgba(11, 29, 43, .6);
}
.hero__title span { display: block; }
.hero__title span:last-child { font-style: italic; font-weight: 600; color: var(--ember); letter-spacing: -.01em; }
.hero__sub { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: rgba(244, 230, 200, .88); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.scene__pan { width: 100%; }
.house { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 50%; transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.house .layer { transition: transform .9s var(--ease); will-change: transform; }
.house.is-zoomed .layer { transition: transform .4s var(--ease); }

/* windows */
.win { cursor: pointer; outline: none; }
.win .pane { transition: filter .3s, stroke .3s; }
.win .glow { opacity: .85; animation: flicker 4.5s ease-in-out infinite; }
.win:nth-child(3n) .glow { animation-duration: 6s; animation-delay: -2s; }
.win:hover .pane, .win:focus-visible .pane { stroke: #FFF1CF; filter: brightness(1.18); }
.win.is-dark:hover .pane, .win.is-dark:focus-visible .pane { filter: brightness(1.5); }
.win:focus-visible .ring { opacity: 1; }
.win .ring { opacity: 0; transition: opacity .2s; }
.door { cursor: pointer; outline: none; }
.door:hover path:first-of-type, .door:focus-visible path:first-of-type { fill: #7D2638; }
.lantern circle { animation: flicker 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rose circle:first-child { animation: flicker 5s ease-in-out infinite; }
.finial { animation: twinkle 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.puff { animation: puff 9s ease-out infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 15% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--px, 18px), -120px) scale(2.2); } }
.fly { animation: drift var(--d, 9s) ease-in-out infinite; animation-delay: var(--delay, 0s); transform-box: fill-box; }
@keyframes flicker { 0%, 100% { opacity: .85; } 40% { opacity: .7; } 55% { opacity: .95; } 70% { opacity: .78; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.82); } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: .2; }
  25% { opacity: 1; }
  50% { transform: translate(var(--dx, 14px), var(--dy, -18px)); opacity: .35; }
  75% { opacity: .95; }
}

.tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: rgba(244, 230, 200, .97); color: var(--night);
  padding: 9px 14px; border-radius: 10px; font-size: 14px; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
}
.tip strong { display: block; font-family: var(--display); font-size: 17px; }
.tip:has(.tip__card) { display: flex; align-items: center; gap: 11px; padding: 8px 14px 8px 8px; }
.tip__card { width: 42px; height: 60px; flex: none; border-radius: 3px; background-image: url("../images/cards-atlas.jpg"); background-repeat: no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tip__card.is-dark { filter: brightness(.35) saturate(.4); }
.tip__text { display: block; }
.tip span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }

.zoomflash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--zx, 50%) var(--zy, 50%), rgba(255, 220, 150, .95), rgba(246, 178, 74, .6) 30%, rgba(15, 36, 51, 0) 70%);
  transition: opacity .5s ease;
}
.zoomflash.is-on { opacity: 1; transition: opacity .3s ease .4s; }

.hero__foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px;
  max-width: calc(var(--max) + 120px); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  pointer-events: none;
}
.count {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 18px 9px 12px; border-radius: 999px;
  background: rgba(11, 29, 43, .62); backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark);
  font-size: 14px; font-weight: 600; color: var(--cream);
}
.count__dots { display: inline-grid; grid-template-columns: repeat(13, 6px); gap: 3px; }
.count__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 230, 200, .22); }
.count__dots i.on { background: var(--porch); box-shadow: 0 0 8px var(--porch); }
.hero__hint { font-size: 14px; font-weight: 500; color: rgba(244, 230, 200, .72); padding-left: 12px; border-left: 1px solid var(--line-dark); }

/* ---------- now: walking contradiction ---------- */
.now {
  position: relative;
  background: linear-gradient(180deg, #0E2A2D 0px, #2C5A62 56px, #B99A78 112px, #F2DCBE 160px, #FBF2E6 210px, var(--paper) 300px, var(--paper) 100%);
  padding-top: 170px; padding-bottom: 90px;
}
.now__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.now__photo { margin-top: 64px !important; }
.now__photo { margin: 0; position: relative; }
.now__photo img {
  width: 100%; aspect-ratio: 2000 / 1573; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 40px 80px -30px rgba(19, 33, 43, .55), 0 0 0 10px #FFF6E8, 0 0 0 11px rgba(201, 162, 83, .55);
}
.now__stamp {
  position: absolute; right: -14px; bottom: -22px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--ember); color: #FFF8EE;
  font-family: var(--display); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.1;
  padding: 18px; transform: rotate(-8deg);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px rgba(217, 105, 46, .5), 0 18px 30px -10px rgba(19, 33, 43, .5);
}
.now__copy { display: grid; gap: 18px; max-width: 34em; min-width: 0; }
.now__title { font-size: clamp(44px, 5.6vw, 78px); font-weight: 900; color: var(--ink); line-height: .98; }
.now__lede { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2vw, 26px); color: var(--teal); line-height: 1.35; }
.now__copy > p:not(.eyebrow):not(.now__lede) { color: #33434C; }
.now__hook {
  margin: 6px 0 0; padding: 18px 0 18px 22px; border-left: 3px solid var(--ember);
  font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--ink);
}
.now__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.sounds { margin-top: 90px; }
.sounds__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sounds__head h3 { font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); }
.sounds__head p { color: var(--muted); }
.sounds__track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sounds__list { list-style: none; margin: 0; padding: 6px 0 18px; display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.sounds__track:hover .sounds__list { animation-play-state: paused; }
.sounds__list li {
  width: 330px; flex: none; display: grid; gap: 10px; align-content: start;
  padding: 22px 22px 20px; border-radius: 4px;
  background: #FFFFFF; border: 1px solid var(--line-light);
  box-shadow: 0 14px 30px -22px rgba(19, 33, 43, .5);
}
.sounds__list strong { font-family: var(--display); font-size: 21px; color: var(--teal); line-height: 1.2; }
.sounds__list strong::before { content: "Sounds like "; font-family: var(--body); font-size: 12.5px; font-weight: 600; color: var(--ember); display: block; letter-spacing: .04em; margin-bottom: 4px; }
.sounds__list q { quotes: none; color: #33434C; font-size: 15.5px; line-height: 1.55; }
.sounds__list span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- rooms: advent calendar ---------- */
.rooms { background: var(--mist); padding: 110px 0 100px; position: relative; }
.rooms::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 30% at 50% 0%, rgba(246, 178, 74, .16), transparent 70%);
}
.rooms__head { max-width: 760px; margin-bottom: 54px; position: relative; }
.rooms__head h2 { font-size: clamp(42px, 5.4vw, 74px); color: var(--ink); font-weight: 900; }
.rooms__head p { margin-top: 16px; color: #3B4B53; font-size: 18px; max-width: 34em; }
.act { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; margin-bottom: 46px; }
.act__label { position: sticky; top: 96px; }
.act__label h3 { font-size: 34px; color: var(--teal); font-weight: 900; }
.act__label p { margin-top: 6px; font-family: var(--display); font-style: italic; font-size: 19px; color: var(--ember); line-height: 1.3; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; min-width: 0; }

.tile {
  position: relative; aspect-ratio: 760 / 1085; max-width: 100%;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  perspective: 1300px; border-radius: 8px;
}
.tile__inside {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2B1D10, #120C07);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .4), inset 0 10px 30px rgba(0, 0, 0, .6);
}
.tile__inside img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile__inside .tile__dark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-style: italic; color: rgba(244, 230, 200, .55); font-size: 15px;
}
.tile__door {
  position: absolute; inset: 0; border-radius: 8px;
  transform-origin: 0% 50%; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.6, .05, .2, 1);
}
.tile__face, .tile__back {
  position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tile__face {
  background:
    radial-gradient(circle at 50% 18%, rgba(246, 178, 74, .16), transparent 46%),
    linear-gradient(160deg, #24586A, #173B4B 60%, #12303F);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .55), inset 0 0 0 6px #1A4152, inset 0 0 0 7px rgba(244, 230, 200, .35), 0 16px 26px -16px rgba(19, 33, 43, .7);
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center;
  color: var(--cream); padding: 12px;
}
.tile__star { width: 18px; height: 18px; color: var(--gold); align-self: end; }
.tile__num { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3vw, 42px); line-height: 1; font-variant-numeric: lining-nums; }
.tile__knob { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); position: absolute; right: 9px; top: 50%; box-shadow: 0 0 0 2px rgba(15, 36, 51, .5); }
.tile__label { align-self: start; font-size: 11.5px; letter-spacing: .08em; color: rgba(244, 230, 200, .6); font-weight: 600; margin-top: 4px; }
.tile__back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #0F2A36, #0B1E28);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .35);
}
.tile.is-open .tile__door { transform: rotateY(-97deg); }
.tile.is-open { z-index: 2; }
.tile.is-open:hover .tile__inside img { transform: scale(1.05); }
.tile.is-closed:hover .tile__door, .tile.is-closed:focus-visible .tile__door { transform: rotateY(-16deg); }
.tile.is-shake .tile__door { animation: rattle .5s; }
@keyframes rattle { 0%, 100% { transform: rotateY(0); } 20% { transform: rotateY(-10deg); } 40% { transform: rotateY(2deg); } 60% { transform: rotateY(-6deg); } 80% { transform: rotateY(1deg); } }
.tile.is-open::after {
  content: ""; position: absolute; inset: -6px; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(246, 178, 74, .0), 0 0 30px -4px rgba(246, 178, 74, .55);
  transition: box-shadow .3s;
}
.tile.is-open:hover::after { box-shadow: 0 0 0 2px rgba(246, 178, 74, .9), 0 0 36px 0 rgba(246, 178, 74, .6); }
.tile__name {
  position: absolute; left: -4px; right: -4px; top: calc(100% + 8px); text-align: center;
  font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile.is-closed .tile__name { color: var(--muted); font-weight: 500; }
.calendar { row-gap: 54px; }
.tile--act { cursor: default; }
.tile--act .tile__inside { box-shadow: 0 16px 30px -18px rgba(19, 33, 43, .7); }
.rooms__door { position: relative; margin-top: 20px; font-family: var(--display); font-style: italic; font-size: 21px; color: var(--teal); }
.rooms__door a { font-family: var(--body); font-style: normal; font-size: 15.5px; font-weight: 600; color: var(--ember); margin-left: 8px; text-underline-offset: 4px; }

/* ---------- section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(42px, 5.4vw, 72px); font-weight: 900; }
.section-head p { margin-top: 14px; font-size: 18px; }
.section-head--dark h2 { color: var(--cream); }
.section-head--dark p { color: rgba(244, 230, 200, .78); }

/* ---------- watch ---------- */
.watch {
  background:
    radial-gradient(ellipse 50% 50% at 15% 0%, rgba(217, 105, 46, .18), transparent 70%),
    linear-gradient(180deg, var(--night), #0C1F2D);
  padding: 110px 0;
}
.watch__grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.vid { margin: 0; display: grid; gap: 12px; min-width: 0; }
.vid--big { grid-row: span 2; grid-template-rows: 1fr auto; }
.vid__play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 6px; background: #081520; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(201, 162, 83, .35), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.vid--big .vid__play { aspect-ratio: auto; height: 100%; min-height: 0; }
.vid__play img, .vid__play video, .vid__play iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vid__play img { transition: transform .8s var(--ease), filter .4s; filter: saturate(1.05) brightness(.86); }
.vid__play:hover img { transform: scale(1.04); filter: saturate(1.1) brightness(.95); }
.vid__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(246, 178, 74, .95); box-shadow: 0 0 0 10px rgba(246, 178, 74, .22), 0 14px 40px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease);
}
.vid__btn svg { width: 32px; height: 32px; fill: #2A1A06; margin-left: 4px; }
.vid__btn--sm { width: 60px; height: 60px; box-shadow: 0 0 0 7px rgba(246, 178, 74, .22); }
.vid__btn--sm svg { width: 24px; height: 24px; }
.vid__play:hover .vid__btn { transform: translate(-50%, -50%) scale(1.08); }
.vid__play--soon { cursor: default; }
.vid__play--soon img { object-position: 50% 30%; filter: grayscale(.35) brightness(.55); }
.vid__soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg);
  font-family: var(--display); font-style: italic; font-size: 24px; color: var(--cream);
  padding: 8px 18px; border: 1.5px solid rgba(244, 230, 200, .6); border-radius: 4px; white-space: nowrap;
}
.vid figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--cream); }
.vid figcaption strong { font-family: var(--display); font-size: 21px; font-weight: 700; }
.vid figcaption span { font-size: 14.5px; color: rgba(244, 230, 200, .65); }
.watch__grid .vid:not(.vid--big) figcaption strong { font-size: 18px; }

/* ---------- story ---------- */
.story { background: var(--paper); padding: 120px 0; overflow: hidden; }
.story__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story__art { position: relative; padding: 0 0 60px 0; max-width: 520px; width: 100%; }
.story__frame {
  position: absolute; inset: 26px -22px 86px 26px;
  border: 2px solid var(--gold); border-radius: 260px 260px 6px 6px;
}
.story__portrait {
  position: relative; width: 100%; aspect-ratio: 1230 / 1350; object-fit: cover; object-position: 50% 20%;
  border-radius: 260px 260px 6px 6px;
  box-shadow: 0 40px 70px -34px rgba(19, 33, 43, .6);
}
.story__inset {
  position: absolute; margin: 0; left: -30px; bottom: 0; width: 46%;
  border: 8px solid var(--paper); border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 40px -18px rgba(19, 33, 43, .55);
  transform: rotate(-3deg);
}
.story__inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__badge {
  position: absolute; right: -8px; bottom: 70px;
  width: 150px; padding: 18px 16px; border-radius: 6px;
  background: var(--teal); color: var(--cream); text-align: center;
  box-shadow: 0 0 0 1px rgba(201, 162, 83, .6), 0 0 0 5px var(--teal), 0 0 0 6px rgba(201, 162, 83, .5), 0 20px 30px -14px rgba(19, 33, 43, .6);
}
.story__badge strong { display: block; font-family: var(--display); font-weight: 900; font-size: 50px; line-height: 1; color: var(--porch); }
.story__badge span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.story__copy { display: grid; gap: 18px; max-width: 33em; min-width: 0; }
.story__copy h2 { font-size: clamp(36px, 4.2vw, 58px); color: var(--ink); font-weight: 900; }
.story__pull { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.4; color: var(--ember); }
.story__copy > p:not(.story__pull):not(.story__sig) { color: #33434C; }
.story__sig { font-family: var(--display); font-style: italic; font-size: 34px; color: var(--teal); }

/* ---------- map ---------- */
.map {
  background:
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(246, 178, 74, .14), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
  padding: 110px 0;
}
/* the map board (js/map.js): pins, fog, a token on the newest room, zoom and pan */
.mapboard { position: relative; padding: 12px; border-radius: 12px; background: var(--ember); box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .25), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.mapboard__view { position: relative; aspect-ratio: 2400 / 1565; overflow: hidden; border-radius: 6px; background: #08141c; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mapboard.is-zoomed .mapboard__view { cursor: grab; }
.mapboard.is-zoomed .mapboard__view:active { cursor: grabbing; }
.mapboard__layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; --inv: 1; }
.mapboard__layer img { width: 100%; height: 100%; display: block; pointer-events: none; }
.mapboard__fog { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pin { position: absolute; z-index: 2; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.pin__dot {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--inv)); transition: box-shadow .25s, background .25s;
}
.pin.is-open .pin__dot { background: var(--porch); color: #3a2208; box-shadow: 0 0 0 4px rgba(246, 178, 74, .35), 0 0 26px 6px rgba(246, 178, 74, .55); animation: pinglow 2.4s ease-in-out infinite; }
.pin.is-open .pin__dot svg { width: 18px; height: 18px; }
.pin.is-dark .pin__dot { width: 20px; height: 20px; background: rgba(15, 36, 51, .85); box-shadow: 0 0 0 2px rgba(244, 230, 200, .35); }
.pin.is-dark:hover .pin__dot, .pin.is-dark:focus-visible .pin__dot { box-shadow: 0 0 0 2px var(--porch); }
.pin.is-open:hover .pin__dot, .pin.is-open:focus-visible .pin__dot { box-shadow: 0 0 0 6px rgba(246, 178, 74, .5), 0 0 34px 10px rgba(246, 178, 74, .7); }
.pin:focus-visible { outline: none; }
@keyframes pinglow { 50% { box-shadow: 0 0 0 9px rgba(246, 178, 74, .12), 0 0 18px 2px rgba(246, 178, 74, .4); } }
.mapboard__token { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.mapboard__token svg { position: absolute; left: -17px; top: -74px; width: 34px; height: 34px; color: #FFE3A3; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 10px rgba(246, 178, 74, .9)); transform: scale(var(--inv)); transform-origin: 50% 200%; animation: tokenhop 1.8s ease-in-out infinite; }
.mapboard__token em { position: absolute; left: 0; top: -104px; transform: translateX(-50%) scale(var(--inv)); transform-origin: 50% 300%; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #2A1A06; background: #FFE3A3; padding: 3px 9px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
@keyframes tokenhop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.mapboard__tip {
  position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 22px)); pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 10px; white-space: nowrap;
  background: var(--paper); color: var(--ink); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7);
}
.mapboard__tip b { display: block; font-family: var(--display); font-size: 17px; }
.mapboard__tip small { display: block; font-size: 12.5px; color: var(--muted); }
.mapboard__tipcard { width: 36px; height: 51px; border-radius: 4px; background-size: cover; background-position: center; flex: 0 0 auto; }
.mapboard__tipcard.is-dark { filter: brightness(.35) saturate(.4); }
.mapboard__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 4px 0; color: #FFF4E6; }
.mapboard__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 500; }
.mapboard__key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-left: 6px; vertical-align: -2px; }
.mapboard__key:first-child { margin-left: 0; }
.mapboard__key.is-open { background: var(--porch); box-shadow: 0 0 10px 2px rgba(246, 178, 74, .7); }
.mapboard__key.is-dark { background: #0F2433; box-shadow: 0 0 0 2px rgba(244, 230, 200, .5); }
.mapboard__hint { opacity: .8; margin-left: 10px; }
.mapboard__tools { display: flex; gap: 8px; }
.mapboard__tools button { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(15, 36, 51, .9); transition: background .2s; }
.mapboard__tools button:hover { background: var(--night); }
.mapboard__tools svg { width: 20px; height: 20px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.mapboard__tools [data-map-full].is-on svg { stroke: var(--porch); }
.mapboard.is-full { position: fixed; inset: 0; z-index: 75; border-radius: 0; padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; background: #0B1D2B; }
.mapboard.is-full .mapboard__view { flex: 1; aspect-ratio: auto; }
html.map-full { overflow: hidden; }
@media (max-width: 700px) {
  .mapboard { padding: 6px; }
  .mapboard__bar { flex-direction: column; align-items: flex-start; }
  .mapboard__hint { flex-basis: 100%; margin-left: 0; }
  .pin.is-open .pin__dot { width: 24px; height: 24px; }
  .pin.is-open .pin__dot svg { width: 13px; height: 13px; }
  .pin.is-dark .pin__dot { width: 13px; height: 13px; }
  .mapboard__token svg { width: 24px; height: 24px; left: -12px; top: -52px; }
  .mapboard__token em { top: -76px; font-size: 10.5px; }
}

/* ---------- own ---------- */
.own { background: var(--paper); padding: 120px 0; overflow: hidden; }
.own__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.own__stack { position: relative; aspect-ratio: 1.15 / 1; max-width: 100%; }
.own__stack img { position: absolute; border-radius: 6px; box-shadow: 0 30px 50px -24px rgba(19, 33, 43, .6); }
.own__book { left: 2%; top: 4%; width: 40%; transform: rotate(-6deg); }
.own__cd { left: 22%; top: 30%; width: 46%; transform: rotate(3deg); box-shadow: 0 0 0 6px #F3EDE3, 0 30px 60px -24px rgba(19, 33, 43, .7) !important; }
.own__card { width: 26%; top: 14%; transition: transform .5s var(--ease); }
.own__card--1 { left: 64%; transform: rotate(-10deg); }
.own__card--2 { left: 70%; top: 20%; transform: rotate(2deg); }
.own__card--3 { left: 75%; top: 28%; transform: rotate(13deg); }
.own__stack:hover .own__card--1 { transform: rotate(-14deg) translate(-10px, -6px); }
.own__stack:hover .own__card--3 { transform: rotate(18deg) translate(10px, 4px); }
.own__copy { display: grid; gap: 26px; min-width: 0; }
.own__copy h2 { font-size: clamp(40px, 5vw, 66px); color: var(--ink); font-weight: 900; }
.own__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.own__list li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.own__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: var(--ember); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.own__list strong { font-family: var(--display); font-size: 22px; color: var(--teal); }
.own__list span { color: #3B4B53; }
.own__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---------- porch signup ---------- */
.porch {
  position: relative; overflow: hidden; text-align: center; color: var(--cream);
  background: linear-gradient(180deg, #13324A, var(--night) 70%);
  padding: 120px 0 130px;
}
.porch__glow {
  position: absolute; left: 50%; top: -80px; width: min(1000px, 140vw); height: 640px; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(246, 178, 74, .40), rgba(246, 178, 74, .08) 45%, transparent 72%);
  pointer-events: none;
}
.porch__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.porch__lantern { width: 54px; height: 81px; color: var(--cream); filter: drop-shadow(0 0 18px rgba(246, 178, 74, .8)); animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.porch h2 { font-size: clamp(40px, 5.4vw, 70px); font-weight: 900; color: var(--cream); }
.porch p { font-size: 18px; color: rgba(244, 230, 200, .82); max-width: 32em; }
.signup { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 640px; }
.signup input:not(.hp) {
  flex: 1 1 180px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(244, 230, 200, .3); background: rgba(11, 29, 43, .55); color: var(--cream);
  font: inherit; font-size: 16px; outline: none; transition: border-color .2s, background .2s;
}
.signup input::placeholder { color: rgba(244, 230, 200, .55); }
.signup input:focus { border-color: var(--porch); background: rgba(11, 29, 43, .8); }
.signup input.is-bad { border-color: #F08A6A; }
.signup .btn { flex: 0 0 auto; }
.signup__msg { flex-basis: 100%; min-height: 1.5em; font-size: 15px; color: var(--porch); }
.signup--mini { justify-content: flex-start; max-width: 460px; }

/* ---------- footer ---------- */
.foot { background: #0B1D2B; color: rgba(244, 230, 200, .8); padding: 70px 0 30px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__mark { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--cream); }
.foot__line { margin-top: 6px; font-family: var(--display); font-style: italic; color: var(--porch); font-size: 19px; }
.foot__links { display: grid; gap: 8px; align-content: start; }
.foot__links a { text-decoration: none; font-size: 15px; transition: color .2s; }
.foot__links a:hover { color: var(--porch); }
.foot__base { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: rgba(244, 230, 200, .55); }
.foot__credit a { color: rgba(244, 230, 200, .75); text-underline-offset: 3px; }

/* ---------- room overlay ---------- */
.room { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter); }
.room__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 32, .82); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; }
.room.is-in .room__backdrop { opacity: 1; }
.room__panel {
  position: relative; width: 100%; max-width: 1040px; max-height: calc(100svh - 32px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center;
  padding: clamp(26px, 4vw, 54px);
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(246, 178, 74, .22), transparent 70%),
    linear-gradient(160deg, #183D4E, #0F2433);
  border-radius: 14px; color: var(--cream);
  box-shadow: 0 0 0 1px rgba(201, 162, 83, .45), 0 50px 120px -30px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s ease, transform .55s var(--ease);
}
.room.is-in .room__panel { opacity: 1; transform: none; }
.room__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(11, 29, 43, .5); cursor: pointer;
  display: grid; place-items: center;
}
.room__close svg { width: 20px; height: 20px; stroke: var(--cream); stroke-width: 2; fill: none; }
.room__close:hover { background: rgba(244, 230, 200, .12); }
.room__card { display: grid; justify-items: center; gap: 12px; }
.flip { width: 100%; max-width: 340px; aspect-ratio: 760 / 1085; border: 0; padding: 0; background: transparent; perspective: 1400px; cursor: pointer; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5, .1, .2, 1); }
.flip.is-turned .flip__inner { transform: rotateY(180deg); }
.flip__front, .flip__back, .flip__closed {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 40px -6px rgba(246, 178, 74, .35);
}
.flip__back { transform: rotateY(180deg); }
.flip__closed {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #24586A, #173B4B 60%, #12303F);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .55), inset 0 0 0 10px #1A4152, inset 0 0 0 11px rgba(244, 230, 200, .35), 0 30px 60px -20px rgba(0, 0, 0, .7);
  font-family: var(--display); color: var(--cream);
}
.flip__closed b { display: block; font-size: 84px; font-weight: 900; line-height: 1; }
.flip__closed small { display: block; margin-top: 10px; font-size: 18px; font-style: italic; color: rgba(244, 230, 200, .7); }
.room[data-state="closed"] .flip__front, .room[data-state="closed"] .flip__back { display: none; }
.room[data-state="dark"] .flip__back, .room[data-state="dark"] .flip__closed { display: none; }
.room[data-state="dark"] .flip__front { filter: brightness(.3) saturate(.45) contrast(1.05); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 30px -6px rgba(120, 170, 200, .3); }
.room[data-state="dark"] .flip { cursor: default; }
.room[data-state="open"] .flip__closed { display: none; }
.room__fliphint { font-size: 13.5px; color: rgba(244, 230, 200, .6); }
.room__info { display: grid; gap: 16px; align-content: center; min-width: 0; }
.room__title { font-size: clamp(38px, 5vw, 66px); font-weight: 900; color: var(--cream); line-height: 1; }
.room__lyric { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--porch); }
.room__lyric:empty { display: none; }
.room__blurb { color: rgba(244, 230, 200, .85); max-width: 32em; }
.room__listen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.room__listen .btn--line { color: var(--cream); border-color: rgba(244, 230, 200, .4); }
.room__listen .btn--line:hover { border-color: var(--cream); }
.room__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.room__step { border: 0; background: transparent; cursor: pointer; color: rgba(244, 230, 200, .75); font-size: 14.5px; font-weight: 600; padding: 6px 0; text-align: left; }
.room__step:last-child { text-align: right; }
.room__step:hover { color: var(--porch); }
.room__step[hidden] { display: none !important; }
.room .signup input:not(.hp) { background: rgba(11, 29, 43, .5); }



/* ---------- responsive ---------- */
/* ---------- the real 3D house ---------- */
.hero__3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity 1.4s ease; cursor: grab; }
.hero--3d .hero__3d { opacity: 1; }
.can3d .scene { display: none; }
.is-3d .hero__stars { display: none; }
.can3d .hero::after {
  content: ""; position: absolute; left: 50%; bottom: 8%; width: 60%; height: 40%; transform: translateX(-35%);
  background: radial-gradient(ellipse at 50% 70%, rgba(246, 178, 74, .18), transparent 70%); pointer-events: none; z-index: 0;
  transition: opacity 1s;
}
.hero--3d.hero::after { opacity: 0; }

@media (max-width: 1100px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__copy { padding-top: 130px; width: 100%; }
  .scene { position: relative; margin-top: 10px; }
  .hero__foot { position: relative; bottom: auto; padding-top: 14px; padding-bottom: 24px; background: #0E2A2D; margin: 0; max-width: none; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__cta { margin-left: auto; }
  .calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; row-gap: 40px; }
  .act { grid-template-columns: 1fr; gap: 16px; }
  .act__label { position: static; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .now__grid, .story__grid, .own__grid { grid-template-columns: 1fr; }
  .now { padding-top: 130px; }
  .now__photo { margin-top: 0 !important; }
  .story__art { margin: 0 auto 10px; }
  .watch__grid { grid-template-columns: 1fr 1fr; }
  .vid--big { grid-column: 1 / -1; grid-row: auto; }
  .vid--big .vid__play { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .room__panel { grid-template-columns: 1fr; text-align: left; }
  .flip { max-width: 250px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .nav__inner { height: 64px; gap: 10px; }
  .nav__mark { font-size: 21px; }
  .hero__copy { padding-top: 108px; }
  .hero__title { font-size: clamp(44px, 13vw, 64px); }
  .scene__pan { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .scene__pan::-webkit-scrollbar { display: none; }
  .scene__pan .house { width: 210vw; max-width: none; }
  .count { border-radius: 16px; gap: 6px 10px; font-size: 13px; padding: 8px 14px 8px 10px; }
  .hero__hint { width: 100%; padding-left: 0; border-left: 0; font-size: 12.5px; }
  .now { padding-top: 90px; }
  .now__stamp { width: 104px; height: 104px; font-size: 16px; right: -4px; bottom: -18px; padding: 12px; }
  .sounds { margin-top: 70px; }
  .sounds__list li { width: 280px; }
  .rooms { padding: 80px 0; }
  .calendar {
    display: flex; overflow-x: auto; gap: 12px; padding: 4px 4px 40px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-r));
    padding-left: var(--gutter); padding-right: var(--gutter-r);
  }
  .calendar::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 38vw; scroll-snap-align: start; }
  .watch, .story, .map, .own { padding: 84px 0; }
  .watch__grid { grid-template-columns: 1fr; }
  .story__frame { inset: 18px -10px 80px 18px; }
  .story__inset { left: -6px; width: 50%; }
  .story__badge { width: 124px; right: 0; bottom: 64px; }
  .story__badge strong { font-size: 40px; }
  .own__stack { margin-bottom: 10px; }
  .porch { padding: 90px 0 100px; }
  .signup { flex-direction: column; }
  .signup input:not(.hp), .signup .btn { flex: none; width: 100%; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .room { align-items: end; padding: 0; }
  .room__panel { border-radius: 18px 18px 0 0; max-height: 92svh; padding: 56px 22px calc(26px + env(safe-area-inset-bottom, 0px)); gap: 20px; }
  .flip { max-width: 200px; }
}

@media (max-width: 1100px) {
  .can3d .hero { min-height: clamp(660px, 100svh, 1000px); display: block; }
  .can3d .hero__foot { position: absolute; bottom: 18px; background: none; padding-top: 0; padding-bottom: 0; }
  .can3d .hero::after { transform: translateX(-50%); width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- your deck: the card-collecting game (js/deck.js), shared by every page ---------- */
.nav__deck {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px 0 11px; flex: 0 0 auto;
  border-radius: 999px; border: 1.5px solid rgba(244, 230, 200, .38); background: rgba(15, 36, 51, .35); backdrop-filter: blur(6px);
  color: var(--cream); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, transform .3s var(--ease);
}
.nav__deck:hover { border-color: var(--porch); }
.nav__deck b { color: var(--porch); font-weight: 700; }
.nav__deckicon { position: relative; width: 18px; height: 22px; }
.nav__deckicon i { position: absolute; inset: 0; border-radius: 3px; border: 1.5px solid var(--cream); background: var(--teal); }
.nav__deckicon i:nth-child(1) { transform: rotate(-14deg) translateX(-2px); opacity: .55; }
.nav__deckicon i:nth-child(2) { transform: rotate(-5deg); opacity: .8; }
.nav__deckicon i:nth-child(3) { transform: rotate(6deg) translateX(2px); background: linear-gradient(160deg, #D9692E, #8a2c1a); }
.nav__deck.has-gold .nav__deckicon i:nth-child(3) { background: linear-gradient(135deg, #f7e2a0, #C9A253 45%, #fff3c4 55%, #a8812f); }
.nav__deck.is-bump { animation: deckbump .9s var(--ease); }
@keyframes deckbump { 0% { transform: scale(1); } 30% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(246, 178, 74, .25); } 100% { transform: scale(1); } }

.deck { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter); }
.deck__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 32, .84); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.deck.is-in .deck__backdrop { opacity: 1; }
.deck__panel {
  position: relative; width: 100%; max-width: 1060px; max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px); border-radius: 16px; color: var(--cream);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(246, 178, 74, .18), transparent 70%), linear-gradient(170deg, #183D4E, #0F2433);
  box-shadow: 0 0 0 1px rgba(201, 162, 83, .45), 0 50px 120px -30px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s ease, transform .45s var(--ease);
}
.deck.is-in .deck__panel { opacity: 1; transform: none; }
.deck__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(11, 29, 43, .5); cursor: pointer; display: grid; place-items: center; }
.deck__close svg { width: 20px; height: 20px; stroke: var(--cream); stroke-width: 2; fill: none; }
.deck h2 { margin-top: 8px; font-size: clamp(36px, 4.4vw, 56px); font-weight: 900; color: var(--cream); }
.deck__sub { margin-top: 10px; color: rgba(244, 230, 200, .8); max-width: 40em; }
.deck__sub b { color: var(--porch); }
.deck__act { margin-top: 30px; }
.deck__actname { font-family: var(--display); font-weight: 700; font-size: 22px; display: flex; gap: 10px; align-items: baseline; }
.deck__actname span { font-style: italic; font-weight: 400; font-size: 16px; color: var(--porch); }
.deck__grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 10px; }
.dcard { display: grid; gap: 6px; text-decoration: none; color: var(--cream); }
.dcard__face { position: relative; display: block; aspect-ratio: 760 / 1085; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.dcard__face img { width: 100%; height: 100%; object-fit: cover; }
a.dcard:hover .dcard__face { transform: translateY(-4px) rotate(-1.5deg); }
.dcard__back { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 4px;
  background: repeating-linear-gradient(45deg, rgba(244, 230, 200, .05) 0 6px, transparent 6px 12px), linear-gradient(160deg, #1E4D5C, #0F2433);
  box-shadow: inset 0 0 0 2px rgba(201, 162, 83, .35); border-radius: 6px; }
.dcard__back svg { width: 22px; height: 22px; color: var(--porch); }
.dcard__back b { font-family: var(--display); font-size: 20px; color: rgba(244, 230, 200, .4); }
.dcard__back small { font-size: 10.5px; line-height: 1.2; color: rgba(244, 230, 200, .65); }
.dcard.is-ready .dcard__face { box-shadow: 0 0 0 2px rgba(246, 178, 74, .75), 0 0 18px -2px rgba(246, 178, 74, .55); animation: ready 2.4s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 2px rgba(246, 178, 74, .35), 0 0 6px -2px rgba(246, 178, 74, .3); } }
.dcard.is-dark .dcard__face { opacity: .55; }
.dcard__name { font-size: 11px; line-height: 1.25; text-align: center; color: rgba(244, 230, 200, .75); min-height: 2.5em; }
/* gold edition: a slow foil sheen across the card */
.is-gold .dcard__face, .is-gold .decktoast__card { box-shadow: 0 0 0 2px #E7C66E, 0 0 22px -2px rgba(231, 198, 110, .8); }
.is-gold .dcard__face::after, .is-gold .decktoast__card::after, .deck__goldcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 226, 150, .55) 42%, rgba(255, 255, 255, .8) 50%, rgba(255, 205, 110, .5) 58%, transparent 75%);
  background-size: 260% 100%; animation: foil 3.6s ease-in-out infinite;
}
@keyframes foil { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.deck__gold { margin-top: 34px; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 12px; background: rgba(201, 162, 83, .12); box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .45); }
.deck__gold p { flex: 1; font-size: 15px; color: rgba(244, 230, 200, .85); }
.deck__gold b { color: var(--cream); }
.deck__goldcard { position: relative; flex: 0 0 auto; width: 40px; height: 57px; border-radius: 5px; overflow: hidden; background: linear-gradient(135deg, #f7e2a0, #C9A253 45%, #fff3c4 55%, #a8812f); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
html.deck-open { overflow: hidden; }

.decktoast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 70; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; max-width: calc(100vw - 32px);
  border-radius: 16px; background: rgba(15, 36, 51, .94); backdrop-filter: blur(12px); color: var(--cream);
  box-shadow: 0 0 0 1px rgba(201, 162, 83, .5), 0 24px 60px -16px rgba(0, 0, 0, .7);
  transition: transform .6s var(--ease);
}
.decktoast.is-in { transform: translate(-50%, 0); }
.decktoast__card { position: relative; width: 44px; height: 63px; border-radius: 5px; overflow: hidden; flex: 0 0 auto; animation: dealt .8s var(--ease) both .2s; }
.decktoast__card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes dealt { 0% { transform: rotate(-30deg) translateY(-40px) scale(1.4); opacity: 0; } 100% { transform: rotate(-4deg); opacity: 1; } }
.decktoast__text { display: grid; gap: 2px; font-size: 14px; line-height: 1.3; }
.decktoast__text b { font-family: var(--display); font-size: 17px; }
.decktoast__text span { color: rgba(244, 230, 200, .7); }
.decktoast__btn { margin-left: 4px; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--porch); color: #2A1A06; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }

@media (max-width: 899px) {
  .deck__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .nav__deck { height: 38px; padding: 0 12px 0 9px; font-size: 13px; }
  .deck__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .deck__gold { flex-wrap: wrap; }
  .decktoast__btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-gold .dcard__face::after, .is-gold .decktoast__card::after, .deck__goldcard::after, .dcard.is-ready .dcard__face, .decktoast__card { animation: none; }
}
@media (max-width: 420px) {
  .nav__decktotal { display: none; }
  .nav__deck { padding: 0 11px 0 9px; gap: 7px; }
}
.closed__lantern { display: grid; justify-items: center; gap: 14px; }
.closed__lantern svg { width: 74px; height: 111px; color: var(--cream); filter: drop-shadow(0 0 22px rgba(246, 178, 74, .9)); animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
.closed__lantern small { font-family: var(--body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--porch); }
@media (max-width: 560px) {
  .decktoast { left: 12px; right: 12px; max-width: none; transform: translateY(160%); }
  .decktoast.is-in { transform: translateY(0); }
  .decktoast__text b { font-size: 16px; }
}

/* ---------- the hunt (guitar picks) inside the deck ---------- */
.deck__hunt { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 24px; align-items: center; padding: 22px; border-radius: 14px; background: rgba(244, 230, 200, .05); box-shadow: inset 0 0 0 1px var(--line-dark); }
.deck__huntcopy > p:not(.deck__actname) { margin-top: 8px; font-size: 15px; color: rgba(244, 230, 200, .8); max-width: 44em; }
.deck__picks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hpick { display: grid; justify-items: center; gap: 6px; width: 74px; text-align: center; font-size: 10.5px; line-height: 1.2; color: rgba(244, 230, 200, .5); }
.hpick svg { width: 30px; height: 33px; filter: grayscale(1) brightness(.35); opacity: .7; }
.hpick.is-found { color: var(--cream); }
.hpick.is-found svg { filter: drop-shadow(0 4px 10px rgba(217, 105, 46, .5)); opacity: 1; animation: pickin .7s var(--ease) both; }
@keyframes pickin { from { transform: rotate(-30deg) scale(.4); } }
.dcard--secret .dcard__face { box-shadow: 0 0 0 1px rgba(201, 162, 83, .5); }
.dcard--secret .dcard__back b { color: var(--porch); font-size: 30px; }
.decktoast.is-pick .decktoast__card { width: 44px; height: 48px; overflow: visible; display: grid; place-items: center; }
.decktoast.is-pick .decktoast__card svg { width: 40px; height: 44px; filter: drop-shadow(0 6px 12px rgba(217, 105, 46, .6)); }
.mappick { position: absolute; z-index: 2; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer; }
.mappick svg { position: absolute; left: -9px; top: -10px; width: 18px; height: 20px; transform: scale(var(--inv)) rotate(28deg); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: transform .3s var(--ease); }
.mappick::after { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; transform: scale(var(--inv)); background: radial-gradient(circle, rgba(255, 245, 220, .95) 0 8%, rgba(255, 230, 170, .35) 20%, transparent 60%); opacity: 0; animation: glint 4.6s ease-in-out infinite; pointer-events: none; }
.mappick:hover svg, .mappick:focus-visible svg { transform: scale(calc(var(--inv) * 1.35)) rotate(10deg); }
.mappick.is-gone { animation: pickaway .8s var(--ease) forwards; }
@keyframes pickaway { to { transform: translateY(-40px); opacity: 0; } }
@keyframes glint { 0%, 88%, 100% { opacity: 0; } 93% { opacity: 1; } }
@media (max-width: 699px) {
  .deck__hunt { grid-template-columns: minmax(0, 1fr); }
  .dcard--secret { max-width: 96px; }
}

/* ---------- the parlor: game tiles that pop up like a book ---------- */
.parlor { margin-top: 90px; position: relative; }
.parlor__head { max-width: 640px; }
.parlor__head h3 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 900; color: var(--ink); }
.parlor__head p { margin-top: 10px; font-size: 18px; color: var(--muted); }
.parlor__grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ptile {
  display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--line-light), 0 24px 50px -30px rgba(19, 33, 43, .55); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ptile:hover, .ptile:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(246, 178, 74, .8), 0 30px 60px -28px rgba(19, 33, 43, .6); }
.ptile__art { position: relative; height: 190px; perspective: 700px; display: block; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(246, 178, 74, .35), transparent 70%), linear-gradient(170deg, #1E4D5C, #0F2433); }
.ptile__text { display: grid; gap: 6px; padding: 20px 22px 24px; }
.ptile__text b { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.ptile__text > span { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.ptile__text strong { display: block; margin-top: 6px; color: var(--ember); font-size: 14px; }
.ptile__text em { display: block; margin-top: 4px; font-style: italic; color: var(--teal); }
/* pop-up: the pieces lie flat in the page and stand up when you open it */
.ptile__art > * { position: absolute; left: 50%; bottom: 18px; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.ptile--pull .ptile__art i { width: 74px; height: 106px; margin-left: -37px; border-radius: 7px; background: linear-gradient(160deg, #24586A, #12303F); box-shadow: inset 0 0 0 2px #C9A253, inset 0 0 0 6px #173B4B, inset 0 0 0 7px rgba(244, 230, 200, .4), 0 10px 20px -8px rgba(0, 0, 0, .6); }
.ptile--pull .ptile__art i::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--porch); font-size: 22px; }
.ptile--pull .ptile__art i:nth-child(1) { transform: rotateX(55deg) rotate(-24deg) translateX(-50px); }
.ptile--pull .ptile__art i:nth-child(2) { transform: rotateX(55deg) rotate(-12deg) translateX(-25px); }
.ptile--pull .ptile__art i:nth-child(3) { transform: rotateX(55deg); }
.ptile--pull .ptile__art i:nth-child(4) { transform: rotateX(55deg) rotate(12deg) translateX(25px); }
.ptile--pull .ptile__art i:nth-child(5) { transform: rotateX(55deg) rotate(24deg) translateX(50px); }
.ptile--pull.is-up .ptile__art i:nth-child(1), .ptile--pull:hover .ptile__art i:nth-child(1), .ptile--pull:focus-visible .ptile__art i:nth-child(1) { transform: rotate(-24deg) translateX(-50px); }
.ptile--pull.is-up .ptile__art i:nth-child(2), .ptile--pull:hover .ptile__art i:nth-child(2), .ptile--pull:focus-visible .ptile__art i:nth-child(2) { transform: rotate(-12deg) translateX(-25px); transition-delay: .04s; }
.ptile--pull.is-up .ptile__art i:nth-child(3), .ptile--pull:hover .ptile__art i:nth-child(3), .ptile--pull:focus-visible .ptile__art i:nth-child(3) { transform: translateY(-14px); transition-delay: .08s; }
.ptile--pull.is-up .ptile__art i:nth-child(4), .ptile--pull:hover .ptile__art i:nth-child(4), .ptile--pull:focus-visible .ptile__art i:nth-child(4) { transform: rotate(12deg) translateX(25px); transition-delay: .12s; }
.ptile--pull.is-up .ptile__art i:nth-child(5), .ptile--pull:hover .ptile__art i:nth-child(5), .ptile--pull:focus-visible .ptile__art i:nth-child(5) { transform: rotate(24deg) translateX(50px); transition-delay: .16s; }
.ptile--quiz .ptile__art img { width: 70px; margin-left: -35px; border-radius: 6px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); }
.ptile--quiz .ptile__art img:nth-child(1) { transform: rotateX(60deg) translateX(-84px); }
.ptile--quiz .ptile__art img:nth-child(2) { transform: rotateX(60deg) translateX(-28px); }
.ptile--quiz .ptile__art img:nth-child(3) { transform: rotateX(60deg) translateX(28px); }
.ptile--quiz .ptile__art img:nth-child(4) { transform: rotateX(60deg) translateX(84px); }
.ptile--quiz.is-up .ptile__art img:nth-child(1), .ptile--quiz:hover .ptile__art img:nth-child(1), .ptile--quiz:focus-visible .ptile__art img:nth-child(1) { transform: translateX(-84px) rotate(-6deg); }
.ptile--quiz.is-up .ptile__art img:nth-child(2), .ptile--quiz:hover .ptile__art img:nth-child(2), .ptile--quiz:focus-visible .ptile__art img:nth-child(2) { transform: translateX(-28px) translateY(-8px) rotate(-2deg); transition-delay: .05s; }
.ptile--quiz.is-up .ptile__art img:nth-child(3), .ptile--quiz:hover .ptile__art img:nth-child(3), .ptile--quiz:focus-visible .ptile__art img:nth-child(3) { transform: translateX(28px) translateY(-8px) rotate(2deg); transition-delay: .1s; }
.ptile--quiz.is-up .ptile__art img:nth-child(4), .ptile--quiz:hover .ptile__art img:nth-child(4), .ptile--quiz:focus-visible .ptile__art img:nth-child(4) { transform: translateX(84px) rotate(6deg); transition-delay: .15s; }
.ptile--hunt .ptile__art svg { width: 84px; height: 92px; margin-left: -42px; bottom: 44px; transform: rotateX(62deg) rotate(18deg); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.ptile--hunt.is-up .ptile__art svg, .ptile--hunt:hover .ptile__art svg, .ptile--hunt:focus-visible .ptile__art svg { transform: rotate(-8deg) translateY(-10px); }
.ptile--hunt .ptile__art::after { content: ""; position: absolute; left: 58%; top: 26%; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 248, 225, .95) 0 6%, rgba(255, 226, 160, .35) 20%, transparent 60%); animation: glint 3.8s ease-in-out infinite; transform: none; }
@media (max-width: 899px) { .parlor__grid { grid-template-columns: minmax(0, 1fr); } .ptile { grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: none; } .ptile__art { height: auto; min-height: 170px; } .ptile__art > * { scale: .78; } }
@media (max-width: 560px) { .ptile { grid-template-columns: minmax(0, 1fr); } .ptile__art { min-height: 170px; } .ptile__art > * { scale: 1; } }

/* ---------- game modals (Pull a Card, Which Room Are You?) ---------- */
.game { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter); }
.game__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 32, .86); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.game.is-in .game__backdrop { opacity: 1; }
.game__panel {
  position: relative; width: 100%; max-width: 920px; max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px); border-radius: 18px; color: var(--cream);
  background: radial-gradient(ellipse 60% 50% at 30% 30%, rgba(246, 178, 74, .2), transparent 70%), linear-gradient(170deg, #5A1A26, #2B0F18 70%);
  box-shadow: 0 0 0 1px rgba(201, 162, 83, .5), 0 50px 120px -30px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s ease, transform .45s var(--ease);
}
.game.is-in .game__panel { opacity: 1; transform: none; }
.game__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(0, 0, 0, .25); cursor: pointer; display: grid; place-items: center; }
.game__close svg { width: 20px; height: 20px; stroke: var(--cream); stroke-width: 2; fill: none; }
.game__title { margin-top: 8px; font-size: clamp(34px, 4vw, 52px); font-weight: 900; color: var(--cream); }
.cback { position: absolute; display: grid; place-items: center; border-radius: 9px; background: repeating-linear-gradient(45deg, rgba(244, 230, 200, .05) 0 6px, transparent 6px 12px), linear-gradient(160deg, #24586A, #12303F);
  box-shadow: inset 0 0 0 2px #C9A253, inset 0 0 0 8px #173B4B, inset 0 0 0 9px rgba(244, 230, 200, .4), 0 14px 26px -12px rgba(0, 0, 0, .7); }
.cback__star { width: 30%; color: var(--porch); filter: drop-shadow(0 0 10px rgba(246, 178, 74, .7)); }
.cback__star svg { width: 100%; display: block; }
.pull { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.pull__table { position: relative; height: 380px; perspective: 1200px; }
.pull__table > .cback { left: 50%; top: 50%; width: 170px; height: 243px; margin: -121px 0 0 -85px; transform: rotate(calc((var(--i) - 3) * 4deg)) translateY(calc(var(--i) * -2px)); transition: transform .5s var(--ease), opacity .5s; }
.game--pull.is-shuffling .pull__table > .cback { animation: riffle .5s ease-in-out 3; animation-delay: calc(var(--i) * 30ms); }
@keyframes riffle { 0%, 100% { transform: rotate(calc((var(--i) - 3) * 4deg)); } 35% { transform: translateX(calc((var(--i) - 3) * 30px)) rotate(calc((var(--i) - 3) * 9deg)) translateY(-12px); } 70% { transform: translateX(calc((3 - var(--i)) * 12px)) rotate(calc((3 - var(--i)) * 3deg)); } }
.game--pull.is-lifting .pull__table > .cback, .game--pull.is-drawn .pull__table > .cback { opacity: 0; transform: translateY(60px) rotate(calc((var(--i) - 3) * 6deg)) scale(.92); }
.pull__card { position: absolute; left: 50%; top: 50%; width: 220px; height: 314px; margin: -157px 0 0 -110px; opacity: 0; transform: translateY(40px) scale(.8); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1), opacity .4s; }
.game--pull.is-lifting .pull__card, .game--pull.is-drawn .pull__card, .quiz__reveal { opacity: 1; transform: none; }
.pull__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.5, .1, .2, 1); }
.pull__inner > * { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; }
.pull__front { transform: rotateY(180deg); object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 50px -6px rgba(246, 178, 74, .55); }
.pull__front.is-dark { filter: brightness(.45) saturate(.5); }
.game.is-drawn .pull__inner { transform: rotateY(180deg); }
.pull__hint { color: rgba(244, 230, 200, .7); font-style: italic; font-family: var(--display); font-size: 22px; }
.pull__read > * { animation: rise .7s var(--ease) both; }
.pull__read > :nth-child(2) { animation-delay: .08s; } .pull__read > :nth-child(3) { animation-delay: .16s; } .pull__read > :nth-child(4) { animation-delay: .24s; } .pull__read > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.pull__name { margin-top: 8px; font-size: clamp(32px, 3.6vw, 46px); color: var(--cream); }
.pull__line { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid rgba(246, 178, 74, .6); font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--porch); }
.pull__line--dark { color: rgba(244, 230, 200, .8); font-style: normal; font-family: var(--body); font-size: 16.5px; border-color: rgba(244, 230, 200, .3); }
.pull__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.pull__next { margin-top: 16px; font-size: 14px; color: rgba(244, 230, 200, .6); }
.quiz { margin-top: 22px; }
.quiz__dots { display: flex; gap: 8px; margin-bottom: 18px; }
.quiz__dots i { width: 28px; height: 4px; border-radius: 4px; background: rgba(244, 230, 200, .2); }
.quiz__dots i.is-done { background: var(--porch); }
.quiz__dots i.is-now { background: rgba(246, 178, 74, .55); }
.quiz__card { padding: clamp(22px, 3vw, 34px); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transform-origin: 50% 100%; animation: popup .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.quiz__card.is-out { animation: popdown .4s ease-in both; }
@keyframes popup { from { transform: perspective(900px) rotateX(70deg) translateY(20px); opacity: 0; } }
@keyframes popdown { to { transform: perspective(900px) rotateX(-60deg) translateY(-10px); opacity: 0; } }
.quiz__count { font-size: 13px; font-weight: 600; color: var(--ember); letter-spacing: .04em; }
.quiz__q { margin-top: 6px; font-size: clamp(26px, 3vw, 36px); color: var(--ink); }
.quiz__opts { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz__opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(19, 33, 43, .14); background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.quiz__opt:hover, .quiz__opt:focus-visible { border-color: var(--porch); transform: translateY(-2px); }
.quiz__opt.is-picked { background: #FFF3DC; border-color: var(--ember); }
.quiz__letter { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--night); color: var(--porch); font-size: 15px; }
.quiz__result { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.quiz__reveal { position: relative; width: 240px; height: 343px; perspective: 1200px; }
.quiz__read { margin-top: 14px; font-size: 17px; line-height: 1.6; color: rgba(244, 230, 200, .88); }
.quiz__again { margin-top: 14px; }
.quiz__again button { border: 0; background: none; color: rgba(244, 230, 200, .7); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 14px; padding: 0; }
@media (max-width: 760px) {
  .pull, .quiz__result { grid-template-columns: minmax(0, 1fr); }
  .pull__table { height: 300px; }
  .pull__table > .cback { width: 140px; height: 200px; margin: -100px 0 0 -70px; }
  .pull__card { width: 180px; height: 257px; margin: -128px 0 0 -90px; }
  .quiz__reveal { width: 180px; height: 257px; margin: 0 auto; }
  .quiz__opts { grid-template-columns: minmax(0, 1fr); }
}

.deck__play { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.deck__play > span { font-family: var(--display); font-style: italic; color: var(--porch); font-size: 17px; margin-right: 6px; }

/* the chat bubble steps aside while a game, the deck or the full-screen map is open */
html.deck-open #kbc, html.map-full #kbc { display: none !important; }
.dcard.is-dark .dcard__name { visibility: hidden; }

/* ---------- save your deck + the collector's gift ---------- */
.deck__save { margin-top: 22px; }
.dsave { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: rgba(246, 178, 74, .1); box-shadow: inset 0 0 0 1px rgba(246, 178, 74, .4); }
.dsave__icon svg, .dgift__seal svg { width: 22px; height: 22px; color: var(--porch); display: block; }
.dsave__icon, .dgift__seal { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 178, 74, .16); }
.dsave p { font-size: 15px; color: rgba(244, 230, 200, .85); max-width: 46em; }
.dsave b { color: var(--cream); }
.dsave__copy { flex: 1; min-width: 0; }
.dsave__form { margin-top: 12px; max-width: 620px; }
.dsave__form input:not(.hp) { min-height: 44px; font-size: 15px; }
.dsave.is-saved { align-items: center; flex-wrap: wrap; }
.dsave.is-saved > p { flex: 1 1 260px; }
.dsave__link { display: flex; gap: 8px; flex: 1 1 340px; }
.dsave__link input { flex: 1; min-width: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(244, 230, 200, .3); background: rgba(11, 29, 43, .55); color: var(--cream); font: inherit; font-size: 13.5px; }
.dsave__note { flex-basis: 100%; margin-top: 6px; font-size: 13.5px !important; color: var(--porch) !important; }
.deck__collector { margin-top: 30px; }
.dgift { padding: 22px; border-radius: 14px; background: linear-gradient(135deg, rgba(231, 198, 110, .16), rgba(201, 162, 83, .06)); box-shadow: inset 0 0 0 1px rgba(231, 198, 110, .55); }
.dgift.is-locked { display: flex; gap: 16px; align-items: center; background: rgba(244, 230, 200, .04); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dgift.is-locked p { font-size: 15px; color: rgba(244, 230, 200, .8); }
.dgift.is-locked b { color: var(--cream); }
.dgift__count { display: inline-block; margin-left: 4px; color: var(--porch); font-weight: 600; }
.dgift__head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dgift__head > div { flex: 1 1 300px; }
.dgift__head p:not(.deck__actname) { margin-top: 4px; font-size: 15px; color: rgba(244, 230, 200, .8); }
.dgift__walls { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; }
.dgift__wall { width: 100%; display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--cream); cursor: pointer; font-size: 11.5px; text-align: center; }
.dgift__wall img { width: 100%; aspect-ratio: 760 / 1085; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.dgift__wall:hover img, .dgift__wall:focus-visible img { transform: translateY(-4px) rotate(-1.5deg); }
.dgift__wall.is-gold img { box-shadow: 0 0 0 2px #E7C66E, 0 0 18px -2px rgba(231, 198, 110, .8); }
.decktoast.is-star .decktoast__card { width: 44px; height: 48px; overflow: visible; display: grid; place-items: center; color: #FFE3A3; }
.decktoast.is-star .decktoast__card svg { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(246, 178, 74, .9)); }
@media (max-width: 699px) {
  .dsave, .dgift.is-locked { flex-direction: column; }
  .dsave__link { flex-direction: column; }
}

/* ---------- the app-style bottom bar on phones (js/tabbar.js) ---------- */
.tabbar, .tabsheet { display: none; }
@media (max-width: 899px) {
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); z-index: 65;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 64px; padding: 0 4px 8px;
    border-radius: 22px; background: rgba(13, 32, 45, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: inset 0 1px 0 rgba(244, 230, 200, .14), 0 0 0 1px rgba(201, 162, 83, .32), 0 18px 40px -12px rgba(0, 0, 0, .7);
    transition: transform .35s var(--ease), opacity .3s;
  }
  .tabbar__item { position: relative; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: rgba(244, 230, 200, .7); text-decoration: none; font: 600 11px/1 var(--body); letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar__item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
  .tabbar__item.is-on { color: var(--porch); }
  .tabbar__item.is-on::after { content: ""; position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--porch); box-shadow: 0 0 8px 2px rgba(246, 178, 74, .7); }
  .tabbar__item:active svg { transform: scale(.88); }
  .tabbar__home { margin-top: -26px; }
  .tabbar__medal { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #2A1A06;
    background: radial-gradient(circle at 35% 30%, #FFE3A3, #F6B24A 45%, #C9A253 100%);
    box-shadow: 0 0 0 4px rgba(13, 32, 45, .9), 0 0 0 5px rgba(201, 162, 83, .55), 0 10px 24px -6px rgba(246, 178, 74, .75); }
  .tabbar__medal svg { width: 26px; height: 26px; }
  .tabbar__home.is-on::after { display: none; }
  .tabbar__home span { margin-top: 2px; }
  .tabbar__home.is-on .tabbar__medal { animation: medal 3s ease-in-out infinite; }
  @keyframes medal { 50% { box-shadow: 0 0 0 4px rgba(13, 32, 45, .9), 0 0 0 5px rgba(201, 162, 83, .75), 0 0 28px 2px rgba(246, 178, 74, .7); } }
  .tabsheet { position: fixed; inset: 0; z-index: 64; }
  .tabsheet:not([hidden]) { display: block; }
  .tabsheet__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 32, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s; }
  .tabsheet__panel { position: absolute; left: 10px; right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 76px); display: grid; padding: 10px 8px 12px; border-radius: 22px;
    background: rgba(15, 36, 51, .97); box-shadow: 0 0 0 1px rgba(201, 162, 83, .35), 0 30px 60px -20px rgba(0, 0, 0, .8); transform: translateY(24px); opacity: 0; transition: transform .32s var(--ease), opacity .25s; }
  .tabsheet.is-in .tabsheet__backdrop { opacity: 1; }
  .tabsheet.is-in .tabsheet__panel { transform: none; opacity: 1; }
  .tabsheet__grip { justify-self: center; width: 40px; height: 4px; border-radius: 4px; background: rgba(244, 230, 200, .25); margin-bottom: 6px; }
  .tabsheet__link { display: block; padding: 14px 16px; border: 0; border-radius: 12px; background: none; text-align: left; color: var(--cream); text-decoration: none; font-family: var(--display); font-size: 22px; cursor: pointer; }
  .tabsheet__link:active, .tabsheet__link:hover { background: rgba(244, 230, 200, .07); }
  /* make room for the bar, and tuck it away while anything is open on top */
  html.has-tabbar .foot { padding-bottom: calc(114px + env(safe-area-inset-bottom, 0px)); }
  html.tabsheet-open #kbc, html:has(.decktoast.is-in) #kbc { opacity: 0; pointer-events: none; transition: opacity .25s; }
  .tabbar.is-more .tabbar__item.is-on:not([data-tab="more"]):not(.tabbar__home) { color: rgba(244, 230, 200, .7); }
  .tabbar.is-more .tabbar__item.is-on:not([data-tab="more"])::after { display: none; }
  .tabsheet__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .tabsheet__count { font: 600 13px/1 var(--body); color: var(--porch); padding: 6px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .45); }
  html.has-tabbar .nav__menu, html.has-tabbar .sheet { display: none !important; }
  html.has-tabbar .decktoast { bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 78px); transition: transform .6s var(--ease), opacity .4s; }
  html.has-tabbar .decktoast:not(.is-in) { opacity: 0; pointer-events: none; }
  html.has-tabbar #kbc { bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 82px); }
  html.room-open .tabbar, html.deck-open .tabbar, html.map-full .tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .tabbar__home.is-on .tabbar__medal { animation: none; } }

/* ---------- the polaroids (js/polaroids.js): the shoebox on the house, one taped to every room's story ---------- */
.pola { --pw: 200px; --r: 0deg; --sway: 0deg; --lift: 0px; --sc: 1; position: relative; width: var(--pw); transform: translate3d(0, var(--lift), 0) rotate(calc(var(--r) + var(--sway))) scale(var(--sc)); transition: transform .45s var(--ease); -webkit-tap-highlight-color: transparent; }
.pola__card { display: block; perspective: 1400px; cursor: pointer; outline: none; border-radius: 3px; }
.pola__card:focus-visible { box-shadow: 0 0 0 3px var(--porch); }
.pola__inner { position: relative; display: block; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .75, .2, 1); }
.pola.is-flipped .pola__inner { transform: rotateY(180deg); }
.pola__face { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(60, 40, 20, .18), 0 10px 22px -8px rgba(45, 28, 12, .55); transition: box-shadow .35s var(--ease); }
.pola__front { transform: translateZ(.1px); padding: calc(var(--pw) * .065) calc(var(--pw) * .065) 0; background: #FBF8F1; background-image: radial-gradient(120% 80% at 20% 10%, #fff, transparent 60%), linear-gradient(180deg, rgba(0,0,0,0), rgba(120, 100, 70, .06)); }
.pola__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #2E3A40; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pola__img img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pola__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .07) 100%); }
.pola__chem { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 30% 25%, #77878A, transparent 70%), radial-gradient(80% 80% at 75% 80%, #4A5C63, transparent 70%), #5B6B70; }
.pola__cap { display: flex; align-items: center; justify-content: center; height: calc(var(--pw) * .25); padding: 0 6px; font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 600; font-size: calc(var(--pw) * .118); line-height: 1; color: #2C2A33; text-align: center; text-wrap: balance; transform: rotate(-1.5deg); }
.pola__back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; gap: calc(var(--pw) * .05); padding: calc(var(--pw) * .1);
  background: #1B262D; background-image: radial-gradient(100% 70% at 30% 20%, rgba(255, 255, 255, .06), transparent 65%); color: var(--cream); font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; }
.pola__line { font-size: calc(var(--pw) * .1); line-height: 1.12; font-weight: 500; }
.pola__sig { font-size: calc(var(--pw) * .1); color: var(--porch); text-align: right; }
.pola__where { font: 600 calc(var(--pw) * .052)/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 230, 200, .55); }
.pola__go { align-self: flex-start; font: 600 calc(var(--pw) * .1)/1 "Caveat", cursive; color: var(--porch); text-decoration: none; border-bottom: 1px solid rgba(246, 178, 74, .5); padding-bottom: 2px; }
.pola__go:hover, .pola__go:focus-visible { color: #FFD08A; }
/* developing: the picture comes up out of the blue-gray, like the real thing */
.pola.is-raw .pola__chem { opacity: 1; }
.pola.is-raw .pola__img img { filter: saturate(0) contrast(.25) brightness(.55) blur(2px); }
.pola.is-ghost .pola__chem { opacity: .58; }
.pola.is-ghost .pola__img img { filter: saturate(.15) contrast(.5) brightness(.8) blur(.8px); }
.pola.is-dev .pola__chem { opacity: 0; transition: opacity 4.8s cubic-bezier(.55, 0, .35, 1) .2s; }
.pola.is-dev .pola__img img { filter: none; transition: filter 6s cubic-bezier(.5, 0, .3, 1); }
.pola.no-anim .pola__chem, .pola.no-anim .pola__img img { transition: none !important; }
@media (hover: hover) {
  .pola:not(.is-lifted):hover { --lift: -6px; }
  .pola:not(.is-lifted):hover .pola__face { box-shadow: 0 1px 1px rgba(60, 40, 20, .18), 0 22px 34px -12px rgba(45, 28, 12, .6); }
}
.pola.is-lifted { --lift: -10px; --sc: 1.07; transition: transform .18s ease-out; cursor: grabbing; }
.pola.is-lifted .pola__face { box-shadow: 0 2px 2px rgba(60, 40, 20, .12), 0 42px 50px -16px rgba(30, 18, 8, .55); }

/* the shoebox: a cardboard lid of loose polaroids, under her story */
.shoebox { margin-top: clamp(70px, 9vw, 110px); scroll-margin-top: 96px; }
.shoebox__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.shoebox__head h3 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; color: var(--ink); }
.shoebox__head p { color: var(--muted); max-width: 40em; }
.shoebox__count { font: 600 26px/1 "Caveat", cursive; color: var(--wine) !important; }
.shoebox__lid { position: relative; height: 470px; border-radius: 18px; overflow: hidden;
  background-color: #A97F55;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .14 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(70% 90% at 50% 0%, rgba(255, 226, 170, .32), transparent 70%),
    linear-gradient(180deg, #B78D61, #9C7148);
  box-shadow: inset 0 0 0 10px rgba(80, 52, 28, .18), inset 0 0 60px rgba(60, 36, 16, .45), 0 30px 60px -34px rgba(40, 24, 10, .7); }
.shoebox__lid .pola { position: absolute; left: var(--px, calc((100% - var(--pw) - 40px) * var(--x) + 20px)); top: var(--y); }
.shoebox__hint { margin-top: 14px; font: 600 22px/1.2 "Caveat", cursive; color: var(--muted); text-align: center; }
@media (min-width: 760px) and (max-width: 1099px) { .shoebox__lid .pola { --pw: 172px; } .shoebox__lid { height: 430px; } }
@media (max-width: 759px) {
  .shoebox__lid { height: auto; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 34px 24px 40px; scrollbar-width: none; margin: 0 -8px; }
  .shoebox__lid::-webkit-scrollbar { display: none; }
  .shoebox__lid .pola { --pw: min(62vw, 250px); position: relative; left: auto; top: auto; flex: 0 0 auto; scroll-snap-align: center; }
  .shoebox__lid .pola:nth-child(odd) { margin-top: 10px; }
}

/* the one taped to a room's story */
.rstory__photo .pola { --pw: min(380px, 76vw); --r: -2.5deg; margin: 18px auto 0; }
.rstory__photo .pola img { border-radius: 0; box-shadow: none; }
.pola__tape { position: absolute; z-index: 3; left: 50%; top: -14px; width: 38%; height: 30px; transform: translateX(-50%) rotate(3deg); pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 236, 210, .78), rgba(232, 218, 186, .72)); box-shadow: 0 1px 2px rgba(60, 40, 20, .15);
  clip-path: polygon(2% 8%, 6% 0, 12% 6%, 20% 1%, 30% 7%, 42% 0, 55% 6%, 66% 1%, 78% 7%, 88% 0, 96% 6%, 100% 2%, 98% 92%, 93% 100%, 85% 94%, 74% 100%, 63% 94%, 50% 100%, 38% 93%, 27% 100%, 16% 94%, 7% 100%, 0 95%); }
.pola__note { margin-top: 20px; text-align: center; min-height: 30px; opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s var(--ease); }
.pola__note.is-in { opacity: 1; transform: none; }
.pola__note a { font: 600 24px/1 "Caveat", cursive; color: var(--wine); text-decoration: none; border-bottom: 1px solid rgba(107, 30, 46, .35); }
@media (prefers-reduced-motion: reduce) { .pola, .pola__inner { transition: none; } }

/* the shoebox in your deck */
.deck__shoebox { margin-top: 18px; }
.dshoe { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 14px; background: rgba(244, 230, 200, .05); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dshoe__row { display: flex; }
.dshoe__p { width: 38px; padding: 3px 3px 9px; background: #FBF8F1; border-radius: 2px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); margin-left: -10px; transform: rotate(var(--r, 0deg)); }
.dshoe__p:first-child { margin-left: 0; }
.dshoe__p img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.dshoe__p.is-ghost img { filter: saturate(.1) contrast(.5) brightness(.75) blur(.5px); opacity: .75; }
.dshoe p { font-size: 15px; color: rgba(244, 230, 200, .8); }
.dshoe p b { display: block; color: var(--cream); font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 699px) { .dshoe { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the hunt, a little harder: the map pick only shows up close, hidden picks give hints ---------- */
.mappick { opacity: 0; pointer-events: none; transition: opacity .6s; }
.mapboard.is-close .mappick { opacity: 1; pointer-events: auto; }
button.hpick { border: 0; padding: 4px 0; background: none; cursor: pointer; font-family: inherit; font-size: 10.5px; line-height: 1.2; color: rgba(244, 230, 200, .5); border-radius: 8px; }
button.hpick:hover svg, button.hpick.is-asked svg { filter: grayscale(.4) brightness(.7); opacity: 1; }
button.hpick:focus-visible { outline: 2px solid var(--porch); outline-offset: 2px; }
.deck__huntcopy > .deck__riddle { font-size: 21px; }
.deck__riddle { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: rgba(244, 230, 200, .06); font: 600 21px/1.25 "Caveat", cursive; color: var(--cream); max-width: 34em; }
.deck__riddle b { display: block; margin-bottom: 4px; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--porch); }

/* your lyric book */
.deck__lines { margin-top: 18px; }
.dlines { padding: 22px; border-radius: 14px; background: rgba(244, 230, 200, .05); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dlines__sub { margin-top: 8px; font-size: 15px; color: rgba(244, 230, 200, .8); }
.dlines__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lline { position: relative; padding: 16px 18px 14px; border-radius: 4px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  background: rgba(244, 230, 200, .06); box-shadow: inset 0 0 0 1px rgba(244, 230, 200, .12); color: rgba(244, 230, 200, .55); font-size: 13px; }
.lline a { color: rgba(244, 230, 200, .7); }
.lline__blank { display: block; height: 10px; width: 70%; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(244, 230, 200, .14) 0 14px, transparent 14px 22px); }
.lline.is-found { background: #F1E6CE; color: #2B2F3A; transform: rotate(-.6deg); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(70, 110, 150, .18) 27px 28px); }
.lline.is-found:nth-child(even) { transform: rotate(.7deg); }
.lline.is-found q { font: 600 22px/1.15 "Caveat", cursive; quotes: none; }
.lline.is-found span { font: 600 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }

/* ---------- easter eggs on the story map: a red thread between songs that talk to each other (map.js) ---------- */
.mapboard__threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.mapboard__thread { fill: none; stroke: #C8372D; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; transition: stroke-dashoffset 2.4s cubic-bezier(.4, 0, .2, 1) .1s; }
.mapboard__threadglow { fill: none; stroke: rgba(255, 120, 90, .35); stroke-width: 7; stroke-linecap: round; filter: blur(2px); opacity: 0; transition: opacity 1.2s 1.4s; }
.mapboard__eggthread.is-peek .mapboard__thread { stroke-dashoffset: 2940; transition-duration: .5s; }
.mapboard__eggthread.is-drawn .mapboard__thread { stroke-dashoffset: 0; transition-duration: 2.4s; }
.mapboard__eggthread.is-drawn .mapboard__threadglow { opacity: 1; }
.eggknot { position: absolute; z-index: 3; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.eggknot__egg { position: absolute; left: -11px; top: -14px; width: 22px; height: 28px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: scale(var(--inv)) rotate(-12deg); transition: transform .3s var(--ease);
  background: radial-gradient(circle at 34% 30%, #fff 0 12%, transparent 13%), radial-gradient(circle at 62% 58%, rgba(200, 55, 45, .9) 0 7%, transparent 8%), radial-gradient(circle at 40% 72%, rgba(200, 55, 45, .8) 0 5%, transparent 6%), radial-gradient(circle at 70% 30%, rgba(200, 55, 45, .7) 0 5%, transparent 6%), linear-gradient(160deg, #FFF6E2, #E9D3A8);
  box-shadow: 0 0 0 2px #C8372D, 0 4px 10px rgba(0, 0, 0, .45), 0 0 18px 4px rgba(255, 150, 110, .45); animation: eggbob 3.2s ease-in-out infinite; }
.eggknot:hover .eggknot__egg, .eggknot:focus-visible .eggknot__egg { transform: scale(calc(var(--inv) * 1.25)) rotate(4deg); }
.eggknot.is-found .eggknot__egg { box-shadow: 0 0 0 2px var(--porch), 0 4px 10px rgba(0, 0, 0, .45), 0 0 18px 4px rgba(246, 178, 74, .5); animation: none; }
@keyframes eggbob { 50% { translate: 0 -3px; } }
.mapboard__key.is-egg { width: 10px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #FFF0D4; box-shadow: 0 0 0 2px #C8372D; }
.eggnote { position: absolute; z-index: 6; width: min(300px, 86vw); transform: translate(-50%, calc(-100% - 22px)); padding: 16px 18px 14px; border-radius: 6px; background: #F1E6CE; color: #2B2F3A; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 55, 45, .4); }
.eggnote::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #F1E6CE; transform: translateX(-50%) rotate(45deg); }
.eggnote__x { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 22px; line-height: 1; color: #6b6b6b; cursor: pointer; padding: 4px 8px; }
.eggnote__eyebrow { font: 600 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #C8372D; }
.eggnote__songs { margin-top: 6px; font: 600 19px/1.15 var(--display); }
.eggnote__text { margin-top: 8px; font: 600 22px/1.15 "Caveat", cursive; }
.eggnote__status { margin-top: 8px; font-size: 12.5px; color: #5a5f66; }
.decktoast__egg { display: block; width: 26px; height: 34px; margin: 14px auto 0; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 60% 58%, #C8372D 0 8%, transparent 9%), radial-gradient(circle at 38% 72%, #C8372D 0 6%, transparent 7%), linear-gradient(160deg, #FFF6E2, #E9D3A8); box-shadow: 0 0 0 2px #C8372D; }
.dlines__eggs { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(244, 230, 200, .8); }
.dlines__eggs b { color: var(--cream); }
.dlines__eggs a { color: var(--porch); }
.dlines__egg { flex: 0 0 auto; width: 14px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #FFF0D4; box-shadow: 0 0 0 2px #C8372D; }
@media (prefers-reduced-motion: reduce) { .mapboard__thread, .mapboard__threadglow { transition: none; } .eggknot__egg { animation: none; } }
.eggnote.is-sheet { position: fixed; left: 16px; right: 16px; top: 84px; width: auto; transform: none; z-index: 80; }
.eggnote.is-sheet::after { display: none; }

/* ---------- release notes: more about the newest song (index.html #now, js/release.js) ---------- */
.release { margin-top: clamp(70px, 8vw, 110px); }
.release__head { margin-bottom: 22px; }
.release__head h3 { font-size: clamp(30px, 3.4vw, 44px); color: var(--ink); line-height: 1.05; margin-top: 6px; }
.release__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; align-items: stretch; }
.rnote { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 18px 36px -26px rgba(19, 33, 43, .55); color: #33434C; }
.rnote__label { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.rnote--kris { background: #FFF8EC; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(70, 110, 150, .12) 31px 32px); transform: rotate(-.6deg); }
.rnote__big { font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; color: var(--ink); }
.rnote__sig { margin-top: auto; font: 600 34px/1 "Caveat", cursive; color: var(--wine); }
.rmix { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rmix li { display: grid; gap: 2px; }
.rmix b { font-family: var(--display); font-size: 21px; line-height: 1.15; color: var(--teal); }
.rmix span { font-size: 13px; font-weight: 600; color: var(--muted); }
.rmix .rmix__join { font: 600 22px/1 "Caveat", cursive; color: var(--ember); padding: 2px 0; }
.rhelp { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: h; display: grid; gap: 10px; }
.rhelp li { counter-increment: h; display: grid; grid-template-columns: 30px 1fr; align-items: center; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rhelp li::before { content: counter(h); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #FFF8EE; font-size: 13px; }
.rnote__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rnote__small { font-size: 13.5px; color: var(--muted); margin-top: auto; }
.relflash { left: 50%; padding: 14px 20px; font-weight: 600; }

/* her P.S.: what two contradictory things make you you */
.twothings { margin-top: 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 18px; color: var(--cream);
  background: radial-gradient(120% 120% at 15% 0%, #1E4A5C, #0F2433 60%); box-shadow: 0 40px 80px -40px rgba(15, 36, 51, .8), inset 0 0 0 1px rgba(201, 162, 83, .3); }
.twothings h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; margin-top: 8px; color: var(--cream); }
.twothings__hers { margin-top: 12px; font: 600 26px/1.2 "Caveat", cursive; color: var(--porch); }
.twothings__form { margin-top: 22px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.twothings__form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 230, 200, .7); }
.twothings__form input, .twothings__send input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(244, 230, 200, .25); background: rgba(244, 230, 200, .07); color: var(--cream); font: 600 17px/1.2 var(--body); }
.twothings__form input::placeholder, .twothings__send input::placeholder { color: rgba(244, 230, 200, .4); }
.twothings__form input:focus, .twothings__send input:focus { outline: 2px solid var(--porch); outline-offset: 1px; }
.twothings__amp { font: 600 44px/1 "Caveat", cursive; color: var(--porch); padding-bottom: 6px; }
.twothings__form .btn { grid-column: 1 / -1; justify-self: start; }
.twothings__out { display: grid; justify-items: center; gap: 14px; }
.twothings__img { width: min(100%, 340px); height: auto; aspect-ratio: 1080 / 1350; object-fit: cover; border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); transform: rotate(2deg); transition: transform .6s var(--ease); background: #0B1D2A; }
.twothings__out:not(.is-made) .twothings__img { object-fit: contain; padding: 40px 60px; opacity: .9; }
.twothings__out.is-made .twothings__img { transform: rotate(-1.5deg); animation: dealt .8s var(--ease) both; }
.twothings__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.twothings__send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, 360px); }
.twothings__send .btn { grid-column: 1 / -1; }
.twothings__msg { grid-column: 1 / -1; font-size: 14px; color: rgba(244, 230, 200, .85); min-height: 1em; text-align: center; }
@media (max-width: 980px) { .release__grid { grid-template-columns: 1fr; } .rnote--kris { transform: none; } .twothings { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .twothings__form { grid-template-columns: 1fr; } .twothings__amp { padding: 0; text-align: center; } .twothings__form .btn { justify-self: stretch; } }

/* an easter egg tucked into the page (the shoebox, the porch): deck.js wires any [data-egg] */
.egg-inline { position: absolute; z-index: 5; width: 30px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(-14deg); transition: transform .3s var(--ease); }
.egg-inline::before { content: ""; position: absolute; inset: 4px 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 34% 30%, #fff 0 12%, transparent 13%), radial-gradient(circle at 62% 58%, rgba(200, 55, 45, .9) 0 7%, transparent 8%), radial-gradient(circle at 40% 72%, rgba(200, 55, 45, .8) 0 5%, transparent 6%), linear-gradient(160deg, #FFF6E2, #E9D3A8);
  box-shadow: 0 0 0 2px #C8372D, 0 4px 10px rgba(0, 0, 0, .35); }
.egg-inline:hover, .egg-inline:focus-visible { transform: rotate(6deg) scale(1.15); }
.egg-inline.is-found::before { box-shadow: 0 0 0 2px var(--porch), 0 4px 10px rgba(0, 0, 0, .35), 0 0 14px 3px rgba(246, 178, 74, .5); }
.shoebox__lid .egg-inline { right: 26px; bottom: 18px; }
.porch .egg-inline { left: calc(50% + 52px); top: 34px; width: 24px; height: 30px; opacity: .8; }
@media (max-width: 759px) { .shoebox__lid .egg-inline { right: auto; left: 12px; bottom: 8px; } }

/* a thread is half-lit until both of its rooms are open (Kris's handoff: a reason to come back) */
.mapboard__eggthread.is-half .mapboard__thread { stroke: rgba(200, 55, 45, .55); }
.mapboard__eggthread.is-half.is-drawn .mapboard__thread { stroke-dasharray: 10 9; stroke-dashoffset: 0; transition: none; animation: threadhalf 1.6s ease-out both; }
.mapboard__eggthread.is-half .mapboard__threadglow { opacity: 0 !important; }
@keyframes threadhalf { from { opacity: 0; } to { opacity: 1; } }
.map__eggline { margin-top: 10px; font: 600 22px/1.3 "Caveat", cursive; color: var(--porch); }

/* ===== from Kris's handoff (Nov 3) ===== */
/* form fields on dark sections: eggshell, aged paper, dark text (not black on black) */
.signup input:not(.hp), .room .signup input:not(.hp), .dsave__link input, .twothings__form input, .twothings__send input {
  background: #F3E9D2; color: #1E1A16; border: 1.5px solid rgba(201, 164, 106, .6);
  box-shadow: inset 0 1px 3px rgba(60, 40, 20, .14);
}
.signup input::placeholder, .dsave__link input::placeholder, .twothings__form input::placeholder, .twothings__send input::placeholder { color: rgba(30, 26, 22, .5); }
.signup input:not(.hp):focus, .room .signup input:not(.hp):focus, .dsave__link input:focus, .twothings__form input:focus, .twothings__send input:focus {
  background: #FBF5E8; border-color: var(--porch); outline: 2px solid rgba(246, 178, 74, .45); outline-offset: 1px;
}
.signup input.is-bad { border-color: #B4441E; background: #FBEDE4; }
.signup input:-webkit-autofill, .twothings__form input:-webkit-autofill, .twothings__send input:-webkit-autofill {
  -webkit-text-fill-color: #1E1A16; -webkit-box-shadow: 0 0 0 40px #F3E9D2 inset; caret-color: #1E1A16;
}

/* the song title on the house: Playfair italic, always one line; it shrinks rather than wraps */
.now__copy { container-type: inline-size; }
.now__title { font-style: italic; font-weight: 700; white-space: nowrap; letter-spacing: -.015em; font-size: clamp(22px, 8.6cqi, 78px); }

/* quiz: a result whose room is still dark */
.quiz__dark { margin-top: 16px; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--porch); }
.signup--quiz { justify-content: flex-start; margin-top: 12px; max-width: 560px; }
.signup--quiz input:not(.hp) { min-height: 46px; }
.signup--quiz .btn { min-height: 46px; }
@media (min-width: 701px) { .signup--quiz input:not(.hp) { flex: 1 1 140px; } .signup--quiz input[type="email"] { flex: 1.6 1 200px; } }
.signup--quiz .signup__msg { font-size: 14px; }
.quiz__result.is-dark .pull__actions { margin-top: 4px; }

/* the Octopus: her unlock line gets room to breathe */
.decktoast.is-long { max-width: min(460px, calc(100vw - 32px)); }
.decktoast.is-long .decktoast__text span { line-height: 1.4; }
.deck__unlock { font-size: 15px; line-height: 1.55; color: rgba(244, 230, 200, .9); }
.deck__unlock b { display: block; font-family: var(--display); font-size: 19px; color: var(--porch); margin-bottom: 2px; }

/* lit rooms wear a small brass chapter plaque: chapters are release order, rooms are album order */
.tile__plaque {
  position: absolute; z-index: 4; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 3px 8px 2px; border-radius: 3px; white-space: nowrap; pointer-events: none;
  font: 700 10.5px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #2B1A07;
  background: linear-gradient(180deg, #EBCB80, #C99A47 55%, #9C7030);
  box-shadow: 0 0 0 1px rgba(60, 36, 10, .55), inset 0 1px 0 rgba(255, 240, 200, .6), 0 4px 10px -4px rgba(0, 0, 0, .6);
}

/* ===== keepsakes: six objects at the bottom of the shoebox (Kris: objects only, no people, faces or hands) ===== */
.keeps { margin-top: 18px; padding: 20px clamp(16px, 2.4vw, 30px) 26px; border-radius: 18px;
  background-color: #8E6740;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #81603C, #9A7248 40%, #8A6440);
  box-shadow: inset 0 14px 30px -10px rgba(40, 22, 8, .65), inset 0 0 0 8px rgba(60, 36, 16, .2); }
.keeps__label { font: 600 22px/1.2 "Caveat", cursive; color: #FBEBD0; text-shadow: 0 1px 0 rgba(40, 22, 8, .5); margin-bottom: 10px; }
.keeps__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.keep { --kh: 232px; transform: rotate(var(--r, 0deg)); transition: transform .4s var(--ease); }
.keep:hover { transform: rotate(0deg) translateY(-4px); }
.keep__card { position: relative; height: var(--kh); perspective: 1000px; cursor: pointer; outline: none; border-radius: 12px; }
.keep__card:focus-visible { box-shadow: 0 0 0 3px var(--porch); }
.keep__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s var(--ease); }
.keep.is-flipped .keep__inner { transform: rotateY(180deg); }
.keep__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; }
.keep__front { justify-content: flex-start; gap: 6px; padding-top: 6px; }
.keep__art { width: 100%; max-width: 168px; aspect-ratio: 1; filter: drop-shadow(0 10px 8px rgba(40, 22, 8, .45)) drop-shadow(0 2px 2px rgba(40, 22, 8, .35)); transition: transform .4s var(--ease); }
.keep:hover .keep__art { transform: translateY(-3px) rotate(-2deg); }
.keep__art svg { display: block; width: 100%; height: 100%; }
.keep__name { font: 600 19px/1.1 "Caveat", cursive; color: #FFF3DC; text-align: center; text-shadow: 0 1px 0 rgba(40, 22, 8, .55); padding: 0 4px; }
.keep__back { transform: rotateY(180deg); justify-content: center; gap: 8px; padding: 34px 14px 16px; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, #F0D8A6, #E6C68C); border-radius: 6px;
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: inset 0 0 0 1px rgba(90, 60, 30, .35); }
.keep__hole { position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #8E6740; box-shadow: 0 0 0 3px #D9B577, 0 0 0 4px rgba(90, 60, 30, .5); }
.keep__line { font: italic 500 16px/1.32 var(--display); }
.keep__song { display: grid; gap: 2px; font: 700 11px/1.25 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #8A4A1E; }
.keep__song small { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: rgba(42, 26, 16, .6); }
.keep__go { font: 600 20px/1 "Caveat", cursive; color: #8A2E1E; text-decoration: none; border-bottom: 1px solid rgba(138, 46, 30, .45); padding-bottom: 1px; }
.keep__go:hover, .keep__go:focus-visible { color: #B5372A; }
@media (min-width: 760px) and (max-width: 1099px) { .keeps__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .keeps { margin-left: -8px; margin-right: -8px; padding-left: 0; padding-right: 0; }
  .keeps__label { padding: 0 20px; }
  .keeps__row { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 20px 6px; scrollbar-width: none; gap: 14px; }
  .keeps__row::-webkit-scrollbar { display: none; }
  .keep { flex: 0 0 auto; width: min(48vw, 190px); scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .keep__inner, .keep, .keep__art { transition: none; } }

/* KB tweaks Nov 6: one CTA in the hero, release dates */
.hero__drop{margin:.9rem 0 0;max-width:34rem;font-size:1.02rem;line-height:1.55;color:rgba(244,230,200,.8)}
.hero__drop strong{color:var(--porch);font-weight:600}
.hero__actions{flex-direction:column;align-items:flex-start;gap:.9rem}
.hero__textlink{font-size:.82rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--cream);text-decoration:none;border-bottom:1px solid rgba(244,230,200,.4);padding-bottom:.2rem}
.hero__textlink:hover{color:#E0B46E;border-color:#E0B46E}
/* KB: what you're hearing */
.story__facts{list-style:none;margin:1.4rem 0 0;padding:1.1rem 0 0;border-top:1px solid var(--line-light);display:grid;gap:.7rem}
.story__facts li{font-size:.95rem;line-height:1.55;color:var(--muted);padding-left:1.1rem;position:relative}
.story__facts li::before{content:"";position:absolute;left:0;top:.62em;width:.4rem;height:.4rem;border-radius:50%;background:var(--ember)}
.story__facts strong{color:var(--ink);font-weight:600}

/* phones: shorter house section, bigger headline, house higher in frame */
@media (max-width: 699px) {
  .can3d .hero { min-height: clamp(560px, 74svh, 680px); }
  .hero__lead { padding-top: 56px; }
  .hero__lead .eyebrow { font-size: 15px; }
  .hero__lead h2 { font-size: clamp(40px, 11.2vw, 52px); line-height: 1.04; max-width: 9.2em; }
  .can3d .hero__foot { bottom: 14px; }
}
