/* ===== Wrigley & Turner: night-sky theme ===== */
@font-face { font-family: "Luckiest Guy"; src: url(/fonts/luckiest-guy.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Andika"; src: url(/fonts/andika-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url(/fonts/andika-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night-0: #06031c;
  --night-1: #120939;
  --night-2: #25105f;
  --plum: #3a1a7e;
  --blue: #0d3fa6;
  --gold: #ffd23f;
  --gold-deep: #f0a500;
  --lime: #c6f432;
  --ink: #f6f2ff;
  --muted: #cfc6f5;
  --card: rgba(30, 16, 82, .72);
  --card-edge: rgba(198, 244, 50, .28);
  --radius: 22px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --head: "Luckiest Guy", "Comic Sans MS", system-ui, sans-serif;
  --body: "Andika", "Trebuchet MS", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 400 1.125rem/1.6 var(--body);
  background: radial-gradient(120% 80% at 70% 0%, #2c1470 0%, var(--night-1) 45%, var(--night-0) 100%) fixed, var(--night-0);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--lime); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px dashed var(--lime); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night-1); padding: .5rem 1rem; border-radius: 99px; font-weight: 700; }
.skip:focus { left: 12px; }

h1, h2, h3, .h { font-family: var(--head); font-weight: 400; line-height: 1.05; letter-spacing: .02em; margin: 0 0 .5em; }
.glow-title {
  color: var(--gold);
  text-shadow: 0 3px 0 #7a3d00, 0 6px 0 var(--night-1), 0 0 22px rgba(255, 210, 63, .55), 0 0 60px rgba(198, 244, 50, .25);
}
.lime { color: var(--lime); }
.gold { color: var(--gold); }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon { position: absolute; top: 5vh; right: 6vw; width: clamp(70px, 11vw, 150px); filter: drop-shadow(0 0 18px rgba(255, 220, 110, .85)) drop-shadow(0 0 60px rgba(255, 210, 63, .35)); animation: moon-bob 9s ease-in-out infinite; }
@keyframes moon-bob { 50% { transform: translateY(8px) rotate(-3deg); } }
.fog { position: absolute; left: -50%; width: 200%; height: 38vh; bottom: -8vh; opacity: .22;
  background: radial-gradient(closest-side, rgba(210, 200, 255, .9), transparent) 0 0 / 50% 100% repeat-x;
  filter: blur(18px); animation: drift 60s linear infinite; }
.fog-2 { bottom: -14vh; opacity: .16; animation-duration: 95s; animation-direction: reverse; background-size: 38% 100%; }
.fog-3 { bottom: 20vh; height: 22vh; opacity: .07; animation-duration: 140s; }
@keyframes drift { to { transform: translateX(25%); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .6rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(10, 5, 38, .92), rgba(10, 5, 38, .7)); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(198, 244, 50, .15); }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--gold); font-family: var(--head); font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.logo small { display: block; font-size: .62rem; letter-spacing: .12em; color: var(--lime); margin-top: .2rem; }
.logo .amp { color: var(--lime); }
.logo-paw svg { width: 34px; height: 34px; fill: var(--gold); transform: rotate(-18deg); filter: drop-shadow(0 0 6px rgba(255, 210, 63, .7)); }
.top-nav { display: flex; gap: .25rem; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .45rem .8rem; border-radius: 99px; font-size: 1rem; }
.top-nav a:hover, .top-nav a[aria-current] { background: rgba(198, 244, 50, .14); color: var(--lime); }
.map-btn { font: inherit; font-family: var(--head); font-size: 1rem; letter-spacing: .04em; cursor: pointer; border: 2px solid var(--lime); color: var(--lime); background: rgba(198, 244, 50, .08); padding: .45rem .9rem; border-radius: 99px; white-space: nowrap; }
.map-btn:hover { background: var(--lime); color: var(--night-1); }
.top-nav a { white-space: nowrap; }
/* six top links fit on one line from 1100px up; below that the Case Map button holds everything */
@media (max-width: 1100px) { .top-nav { display: none; } .map-btn { margin-left: auto; } }
@media (max-width: 420px) { .logo { font-size: 1.1rem; } .logo-paw svg { width: 26px; height: 26px; } }

.case-map { position: fixed; inset: 0; z-index: 50; background: rgba(5, 9, 18, .88); backdrop-filter: blur(10px); overflow-y: auto; padding: 1rem; }
.case-map[hidden] { display: none; }
.case-map-inner { max-width: 960px; margin: 4vh auto; position: relative; text-align: center; }
.case-map h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--gold); }
.map-close { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); background: none; color: var(--gold); font-size: 1.3rem; cursor: pointer; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.map-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .6rem; border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 700;
  background: linear-gradient(160deg, rgba(27, 40, 64, .95), rgba(10, 16, 30, .95)); border: 2px solid rgba(226, 168, 69, .25); transition: transform .2s, border-color .2s; }
.map-card:hover, .map-card[aria-current] { transform: translateY(-4px) rotate(-1deg); border-color: var(--lime); color: var(--lime); }
.map-icon { font-size: 2rem; }

/* ---------- layout ---------- */
main { display: block; }
.wrap { width: min(1150px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.section-head h1, .section-head h2 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); }
.section-head p { color: var(--muted); font-size: 1.2rem; }
.kicker { display: inline-block; font-family: var(--head); color: var(--lime); letter-spacing: .14em; font-size: .95rem; margin-bottom: .6rem; }
.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-family: var(--head); font-size: 1.15rem; letter-spacing: .04em; line-height: 1.1;
  color: var(--night-1); background: linear-gradient(180deg, #f2c776, var(--gold) 55%, var(--gold-deep)); border: 0; border-radius: 99px; padding: .8rem 1.5rem; min-height: 52px;
  text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 #6b4410, 0 10px 24px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { color: var(--night-1); transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 7px 0 #6b4410, 0 0 28px rgba(226, 168, 69, .6); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #6b4410; }
.btn-lime { background: linear-gradient(180deg, #eef4fb, var(--lime) 55%, #8eaed3); box-shadow: 0 5px 0 #3c5577, 0 10px 24px rgba(0, 0, 0, .35); }
.btn-lime:hover { box-shadow: 0 7px 0 #3c5577, 0 0 28px rgba(185, 211, 240, .6); }
.btn-ghost { background: transparent; color: var(--gold); border: 2px solid var(--gold); box-shadow: none; }
.btn-ghost:hover { background: rgba(226, 168, 69, .12); color: var(--gold); box-shadow: 0 0 22px rgba(226, 168, 69, .35); }
.btn-soon { cursor: help; background: rgba(255, 255, 255, .06); color: var(--muted); border: 2px dashed rgba(207, 198, 245, .5); box-shadow: none; }
.btn-soon:hover { transform: none; filter: none; box-shadow: none; color: var(--muted); }
.btn small { font-family: var(--body); font-size: .72rem; letter-spacing: 0; font-weight: 700; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* ---------- home: full-screen flashlight night scene ---------- */
.night-scene { position: relative; height: calc(100svh - var(--hdr, 62px)); min-height: 460px; overflow: hidden; background: #05030f; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scene { position: absolute; left: 0; top: 0; width: var(--S, 100vw); height: var(--S, 100vw); will-change: transform; --lx: 50%; --ly: 55%; --r: 190px; }
.scene-art, .scene-tree { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.scene-tree { clip-path: polygon(0 0, 66% 0, 66% 6%, 52% 22%, 44% 27%, 30% 25%, 18% 30%, 0 34%); transform-origin: 16% 28%; }
.night-scene.lit-tree .scene-tree { animation: rustle 1.6s ease-in-out; }
@keyframes rustle { 20% { transform: rotate(.7deg); } 45% { transform: rotate(-.6deg); } 70% { transform: rotate(.35deg); } }

.fx { position: absolute; pointer-events: none; opacity: 0; transition: opacity .5s; }
.fx-window, .fx-door { mix-blend-mode: screen; border-radius: 3px; background: radial-gradient(closest-side, rgba(255, 200, 90, .95), rgba(255, 150, 40, .55) 60%, transparent); }
.fx-door { background: radial-gradient(closest-side, rgba(255, 190, 80, .55), rgba(255, 140, 30, .2) 70%, transparent); }
.lit-house .fx-window { opacity: 1; animation: candle 1.4s infinite alternate; }
.lit-house .fx-door { opacity: 1; animation: candle 1.9s .3s infinite alternate; }
@keyframes candle { 0% { filter: brightness(1); } 40% { filter: brightness(.75); } 60% { filter: brightness(1.15); } 100% { filter: brightness(.9); } }
.fx-moon { border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 246, 200, .9), rgba(255, 210, 63, .35) 45%, transparent); }
.lit-moon .fx-moon { opacity: 1; animation: moon-pulse 2s ease-in-out infinite; }
@keyframes moon-pulse { 50% { transform: scale(1.25); } }
.fx-eye { width: 1.25%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: 1; }
.fx-eye::before { content: ""; position: absolute; inset: -120%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 63, .85), transparent); mix-blend-mode: screen; opacity: 0; transition: opacity .4s; }
.fx-eye::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: #3e3d45; transform: scaleY(0); transform-origin: top; }
.lit-owl .fx-eye::before { opacity: 1; }
.lit-owl .fx-eye::after { animation: lid 1.6s ease-in-out .2s; }
@keyframes lid { 0%, 100% { transform: scaleY(0); } 12%, 22% { transform: scaleY(1); } 34% { transform: scaleY(0); } 52%, 60% { transform: scaleY(1); } 72% { transform: scaleY(0); } }
.fx-sparkles, .fx-leaves { opacity: 1; }
.fx-sparkles i, .fx-leaves i { position: absolute; display: block; }
.fx-sparkles i { width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; filter: drop-shadow(0 0 6px var(--gold)); }
.lit-boys .fx-sparkles i { animation: sparkle 1.4s ease-in-out infinite; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.fx-leaves i { width: 12px; height: 7px; border-radius: 0 100% 0 100%; background: #6f8f2a; opacity: 0; }
.lit-tree .fx-leaves i { animation: leaf-fall 2.6s ease-in forwards; }
@keyframes leaf-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx, 30px), 26vmin) rotate(540deg); } }

.darkness { position: absolute; inset: 0; pointer-events: none; background: rgba(4, 2, 18, .9);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), transparent 0 38%, rgba(0, 0, 0, .55) 70%, #000 100%), radial-gradient(ellipse 36% 30% at 30% 67%, rgba(0, 0, 0, .14) 0 50%, #000 100%);
  mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), transparent 0 38%, rgba(0, 0, 0, .55) 70%, #000 100%), radial-gradient(ellipse 36% 30% at 30% 67%, rgba(0, 0, 0, .14) 0 50%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.glow-beam { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle calc(var(--r) * .9) at var(--lx) var(--ly), rgba(255, 222, 140, .22), rgba(255, 210, 63, .06) 55%, transparent 75%); }

.scene-paws { position: absolute; inset: 0; pointer-events: none; }
.scene-paw { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 210, 63, .95)) drop-shadow(0 0 14px rgba(198, 244, 50, .6)); animation: scene-paw 3.2s ease-out forwards; }
@keyframes scene-paw { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }

.hotspot { position: absolute; display: block; border-radius: 40%; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hotspot-quiet { pointer-events: none; }
.hs-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.7); opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.2, .9, .3, 1.4);
  font-family: var(--head); font-size: clamp(1rem, 2.4vmin + .3rem, 1.5rem); letter-spacing: .03em; white-space: nowrap; color: var(--night-1);
  background: linear-gradient(180deg, #ffe680, var(--gold)); padding: .45rem 1rem .3rem; border-radius: 99px; box-shadow: 0 0 0 3px rgba(6, 3, 28, .6), 0 0 26px rgba(255, 210, 63, .8); }
.hs-label em { display: block; font-style: normal; font-size: .7em; color: #5a2a00; text-align: center; }
.hotspot[data-spot="owl"] .hs-label { top: 112%; }
.hotspot[data-spot="moon"] .hs-label { top: 118%; left: 30%; }
.hotspot[data-spot="boys"] .hs-label { top: 12%; }
.hotspot.lit .hs-label, .hotspot:focus-visible .hs-label { opacity: 1; transform: translate(calc(-50% + var(--nudge, 0px)), -50%) scale(1); }
.hotspot:focus-visible { outline: 3px dashed var(--lime); }

.scene-title { position: absolute; right: clamp(1rem, 4vw, 3.5rem); bottom: clamp(1.2rem, 6vh, 4rem); text-align: right; pointer-events: none; max-width: min(560px, 92%); text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.scene-title h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin: 0; }
.scene-sub { font-family: var(--head); color: var(--lime); font-size: clamp(1.1rem, 2.4vw, 1.7rem); margin: .2rem 0 .3rem; text-shadow: 0 0 16px rgba(198, 244, 50, .55), 0 2px 10px #000; }
.scene-tagline { margin: 0; font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.scene-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; z-index: 2; pointer-events: none; background: rgba(6, 3, 28, .78); color: var(--lime); font-weight: 700; font-size: .95rem; padding: .4rem 1rem; border-radius: 99px; border: 1px solid rgba(198, 244, 50, .4); transition: opacity .6s; width: max-content; max-width: calc(100% - 2rem); text-align: center; }
.night-scene.touched .scene-hint { opacity: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: var(--gold); text-decoration: none; font-size: 1.4rem; animation: cue 1.6s ease-in-out infinite; text-shadow: 0 0 10px var(--gold); }
@keyframes cue { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 700px) {
  .scene-title { left: 0; right: 0; top: 0; bottom: auto; max-width: none; text-align: center; padding: 3.2rem 1rem 2.5rem; background: linear-gradient(180deg, rgba(5, 3, 15, .85), transparent); }
  .scene-hint { top: auto; bottom: 44px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .darkness { opacity: .35; } .hs-label { opacity: 1; transform: translate(-50%, -50%) scale(.85); } }

/* home teasers */
.teaser { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; transition: transform .25s, border-color .25s; }
.teaser:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--gold); color: var(--ink); }
.teaser img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.teaser .teaser-body { padding: 1.2rem 1.4rem 1.5rem; }
.teaser h3 { font-size: 1.7rem; color: var(--gold); }
.teaser p { margin: 0; color: var(--muted); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  background: linear-gradient(110deg, rgba(185, 211, 240, .16), rgba(226, 168, 69, .12)); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 1.4rem clamp(1.2rem, 3vw, 2.2rem); }
.banner h3 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); color: var(--gold); margin: 0 0 .2rem; }
.banner p { margin: 0; }

.game-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; text-decoration: none; color: var(--ink); border: 2px solid var(--lime); transition: transform .25s; }
.game-cta:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--ink); }
.game-cta img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.color-cta { margin-top: clamp(1.2rem, 3vw, 2rem); border-color: var(--gold); }
.color-cta img { background: #fff; }
.game-cta h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
@media (max-width: 760px) { .game-cta { grid-template-columns: 1fr; text-align: center; } }

/* ---------- books ---------- */
.book { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.book + .book { margin-top: clamp(3.5rem, 8vw, 6rem); }
.book:nth-of-type(even) { grid-template-columns: 1fr minmax(240px, 380px); }
.book:nth-of-type(even) .book-flip { order: 2; }
@media (max-width: 760px) { .book, .book:nth-of-type(even) { grid-template-columns: 1fr; } .book:nth-of-type(even) .book-flip { order: 0; } .book-flip { max-width: 330px; margin-inline: auto; } }
.book h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.book-num { font-family: var(--head); color: var(--lime); letter-spacing: .12em; }
.book .blurb { font-size: 1.18rem; }

.flip { perspective: 1400px; background: none; border: 0; padding: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; display: block; }
.flip-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .7, .2, 1.15); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: var(--shadow), 0 0 40px rgba(226, 168, 69, .2); }
.flip-back { transform: rotateY(180deg); }
.book-flip .flip-face { aspect-ratio: 2 / 3; }
.book-flip .flip-face img { width: 100%; height: 100%; object-fit: cover; }
.book-flip .flip-front::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent); z-index: 1; }
.flip-tip { display: block; text-align: center; margin-top: .9rem; color: var(--lime); font-weight: 700; font-size: .98rem; }

/* ---------- meet the detectives ---------- */
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.pet { display: flex; flex-direction: column; }
.pet .flip-face { aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; border: 4px solid var(--edge, var(--gold)); }
.pet .flip-face img { width: 100%; height: 100%; object-fit: cover; }
.pet-tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; font-family: var(--head); font-size: 1.6rem; letter-spacing: .04em; padding: .3rem 1.1rem .15rem; border-radius: 99px; white-space: nowrap;
  background: var(--edge, var(--gold)); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.pet-label { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgba(5, 9, 18, .75); color: var(--lime); font-weight: 700; font-size: .85rem; padding: .2rem .7rem; border-radius: 99px; }
.pet-bio { margin-top: 1rem; flex: 1; }
.pet-bio h3 { font-size: 1.7rem; color: var(--edge, var(--gold)); margin-bottom: .2rem; filter: brightness(1.35); }
.pet-bio .role { font-weight: 700; color: var(--lime); margin: 0 0 .6rem; }
.pet-bio p { margin: 0 0 .7rem; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: 1rem; }
.stats li { display: flex; gap: .5rem; }
.stats b { color: var(--gold); white-space: nowrap; }
.edge-blue { --edge: #2f7cff; }
.edge-red { --edge: #e8383d; }
.edge-pyr { --edge: #b9a6ff; }
.edge-orange { --edge: #ff8a1f; }
.edge-calico { --edge: #38c7f0; }

/* ---------- trailers ---------- */
.theater { position: relative; padding: clamp(.6rem, 1.6vw, 1rem); border-radius: 26px;
  background: linear-gradient(180deg, #1b2840, #0b1222); border: 3px solid rgba(226, 168, 69, .5); box-shadow: var(--shadow), 0 0 60px rgba(185, 211, 240, .15); }
.theater::before { content: ""; position: absolute; inset: -10px; border-radius: 32px; pointer-events: none;
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px) 0 0 / 26px 26px; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 6px; opacity: .7; animation: bulbs 1.2s steps(2) infinite; }
@keyframes bulbs { 50% { opacity: .35; } }
.theater video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.trailer + .trailer { margin-top: clamp(3rem, 7vw, 5rem); }
.trailer h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-align: center; }
.trailer p { text-align: center; color: var(--muted); }

/* ---------- footer + owl ---------- */
.site-footer { position: relative; text-align: center; padding: 2rem 1rem 2.5rem; margin-top: 3rem; background: linear-gradient(180deg, transparent, rgba(5, 9, 18, .85) 40%); }
.footer-tree { width: min(360px, 90%); margin: 0 auto -.5rem; }
.signoff { font-family: var(--head); font-size: clamp(1.5rem, 4.4vw, 2.4rem); color: var(--gold); margin: .3rem 0 .8rem; text-shadow: 0 0 22px rgba(226, 168, 69, .5); }
.small { font-size: .92rem; color: var(--muted); margin: .25rem 0; }

.owl { position: relative; display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.owl svg { width: 100%; overflow: visible; }
.bark { fill: #141d2e; stroke: #2c3a55; stroke-width: 2; }
.bark-line, .twig { fill: none; stroke: #2c3a55; stroke-width: 3; stroke-linecap: round; }
.leaf { fill: #4f6b2a; }
.owl-shape, .owl-tuft { fill: #6b4a2e; }
.owl-wing { fill: #4f3420; }
.owl-belly { fill: #c9a26e; }
.owl-feather { fill: none; stroke: #8a6640; stroke-width: 2; stroke-linecap: round; }
.owl-eye-ring { fill: #e8d3a8; }
.owl-eye { fill: var(--gold); }
.owl-pupil { fill: #1a0d06; transition: transform .2s; }
.owl-shine { fill: #fff; }
.owl-beak { fill: var(--gold-deep); }
.owl-feet { stroke: var(--gold-deep); stroke-width: 3; stroke-linecap: round; }
.owl-lids ellipse { fill: #6b4a2e; transform-box: fill-box; transform-origin: center top; transform: scaleY(0); animation: blink 6s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.owl-body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s; }
.owl:hover .owl-body, .owl.hooting .owl-body { animation: hoot-bob .45s ease-in-out 3; }
@keyframes hoot-bob { 50% { transform: translateY(-5px) scale(1.04, .97); } }
.owl-bubble { position: absolute; top: -6%; left: 58%; font-family: var(--head); font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--night-1); background: var(--ink); padding: .35rem .9rem .2rem; border-radius: 18px;
  opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; box-shadow: 0 0 20px rgba(255, 255, 255, .35); }
.owl-bubble::after { content: ""; position: absolute; left: 18px; bottom: -10px; border: 6px solid transparent; border-top: 8px solid var(--ink); border-left-color: var(--ink); }
.owl:hover .owl-bubble, .owl.hooting .owl-bubble { opacity: 1; transform: none; }

/* ---------- paw trail + secret paws ---------- */
.trail-paw { position: fixed; z-index: 60; width: 18px; height: 18px; pointer-events: none; fill: var(--gold); opacity: .8; animation: trail-fade 1.3s ease-out forwards; filter: drop-shadow(0 0 4px rgba(226, 168, 69, .8)); }
@keyframes trail-fade { to { opacity: 0; transform: var(--t) scale(.6); } }
.secret-paw { display: inline-block; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; vertical-align: middle; opacity: .55; transition: opacity .2s, transform .2s; }
.secret-paw svg { width: 100%; height: 100%; fill: var(--gold); transform: rotate(20deg); }
.secret-paw:hover { opacity: 1; transform: scale(1.3); }
.secret-paw.found { opacity: 1; animation: found 0.8s ease-out; }
.secret-paw.found svg { fill: var(--lime); }
@keyframes found { 40% { transform: scale(2.2) rotate(30deg); } }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translate(-50%, 140%); background: var(--gold); color: var(--night-1); font-weight: 700; padding: .8rem 1.4rem; border-radius: 99px; box-shadow: var(--shadow); visibility: hidden; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), visibility 0s .35s; max-width: calc(100% - 2rem); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.toast a { color: var(--night-1); }

/* ---------- calm page (In Memory of Joseph) ---------- */
body.calm { background: linear-gradient(180deg, #1d1650 0%, #3b2d7a 45%, #8d6aa8 80%, #e3b48f 100%) fixed; }
body.calm .fog, body.calm .footer-tree, body.calm .stars { display: none; }
body.calm .moon { animation: none; opacity: .75; }
body.calm .site-footer { background: none; }
body.calm .signoff { color: #fff7e6; text-shadow: 0 0 20px rgba(255, 240, 210, .5); }
body.calm .small { color: #4a2f55; }
.memorial { max-width: 860px; margin-inline: auto; text-align: center; }
.memorial h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); color: #fff7e6; text-shadow: 0 0 30px rgba(255, 240, 210, .45); }
.memorial .lead { font-size: clamp(1.2rem, 2.6vw, 1.45rem); line-height: 1.75; color: #fff7e6; }
.memorial-photo { width: min(380px, 80%); margin: 2rem auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 6px solid rgba(255, 247, 230, .7); box-shadow: 0 0 60px rgba(255, 230, 190, .45); }
.memorial-covers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; margin: 3rem 0; }
.memorial-covers figure { margin: 0; }
.memorial-covers img { border-radius: 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.memorial-covers figcaption { margin-top: .8rem; color: #fff7e6; font-style: italic; }
.memorial blockquote { margin: 2.5rem auto; padding: 1.6rem 2rem; max-width: 680px; border-radius: 20px; background: rgba(255, 247, 230, .1); border: 1px solid rgba(255, 247, 230, .3); font-size: 1.3rem; font-style: italic; color: #fff7e6; }

/* ---------- The Case of the Missing Leash ---------- */
.case-progress { list-style: none; display: flex; justify-content: center; gap: clamp(.4rem, 2vw, 1rem); padding: 0; margin: 0 0 1.6rem; }
.case-progress li { width: clamp(38px, 9vw, 52px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-family: var(--head); font-size: 1.2rem;
  background: rgba(255, 255, 255, .06); border: 2px dashed rgba(207, 198, 245, .4); color: var(--muted); }
.case-progress li.now { border: 3px solid var(--gold); color: var(--gold); box-shadow: 0 0 18px rgba(226, 168, 69, .5); animation: now-pulse 1.6s ease-in-out infinite; }
.case-progress li.done { background: var(--lime); border-color: var(--lime); color: var(--night-1); }
@keyframes now-pulse { 50% { transform: scale(1.08); } }
.case-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
@media (max-width: 960px) { .case-layout { grid-template-columns: 1fr; } }
.case-title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold); }
.case-picture { position: relative; border-radius: 16px; overflow: hidden; border: 4px solid rgba(226, 168, 69, .5);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='15' cy='15' r='11' fill='rgba(255,255,255,.25)' stroke='%23ffd23f' stroke-width='4'/%3E%3Cpath d='M23 23 L36 36' stroke='%23ffd23f' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") 15 15, zoom-in; }
.case-img { width: 100%; aspect-ratio: 1456 / 816; object-fit: cover; }
.case-picture.revealing .case-img { animation: reveal-in 1.4s ease-out; }
@keyframes reveal-in { 0% { filter: brightness(0) blur(6px); transform: scale(1.12); } 60% { filter: brightness(.6); } 100% { filter: none; transform: none; } }
.case-spots { position: absolute; inset: 0; }
.clue-spot { position: absolute; padding: 0; border: 0; background: transparent; cursor: inherit; }
.clue-spot:focus-visible { outline: 3px dashed var(--lime); outline-offset: 0; }
.clue-spot.found::after, .clue-spot.hint::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(90px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 5px solid var(--lime); box-shadow: 0 0 0 4px rgba(5, 9, 18, .5), 0 0 22px var(--lime), inset 0 0 16px rgba(185, 211, 240, .5); }
.clue-spot.found::before { content: "✔"; position: absolute; right: 50%; top: 50%; transform: translate(calc(50% + min(45px, 50%)), -150%); z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--night-1); font-weight: 700; font-size: .9rem; }
.clue-spot.pop::after { animation: clue-pop .5s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes clue-pop { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } }
/* hint: a glowing gold ring that keeps pulsing until the clue is found, plus a bouncing paw */
.clue-spot.hint:not(.found)::after { width: min(110px, 120%); border-width: 6px; border-color: var(--gold); background: rgba(226, 168, 69, .22);
  box-shadow: 0 0 0 4px rgba(5, 9, 18, .55), 0 0 30px 6px var(--gold), inset 0 0 22px rgba(226, 168, 69, .7); animation: hint-pulse 1s ease-in-out infinite; }
.clue-spot.hint:not(.found)::before { content: "👇"; position: absolute; left: 50%; top: 50%; z-index: 2; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1;
  transform: translate(-50%, calc(-50% - 64px)); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); animation: hint-point .8s ease-in-out infinite; }
.clue-spot.hint-below:not(.found)::before { content: "👆"; transform: translate(-50%, calc(-50% + 64px)); animation-name: hint-point-up; }
@keyframes hint-point-up { 50% { transform: translate(-50%, calc(-50% + 64px - 10px)); } }
@keyframes hint-pulse { 50% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 4px rgba(5, 9, 18, .55), 0 0 46px 14px var(--gold), inset 0 0 22px rgba(226, 168, 69, .7); } }
@keyframes hint-point { 50% { transform: translate(-50%, calc(-50% - 64px + 10px)); } }
.case-poof { position: absolute; pointer-events: none; transform: translate(-50%, -120%); background: rgba(5, 9, 18, .85); color: var(--ink); font-weight: 700; font-size: .95rem; padding: .3rem .8rem; border-radius: 99px; opacity: 0; white-space: nowrap; }
.case-poof.show { animation: poof 1.3s ease-out; }
@keyframes poof { 10%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%); } }
.case-talk { display: grid; gap: .6rem; margin: 1.1rem 0; min-height: 4.5rem; }
.say { display: flex; align-items: center; gap: .8rem; margin: 0; padding: .7rem 1rem; border-radius: 18px; background: rgba(255, 255, 255, .07); border-left: 6px solid; animation: say-in .4s ease-out backwards; }
.say img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; border: 3px solid; background: #f4ead2; }
.say-w { border-color: #2f7cff; } .say-w img { border-color: #2f7cff; } .say-w b { color: #7fb0ff; }
.say-t { border-color: #e8383d; } .say-t img { border-color: #e8383d; } .say-t b { color: #ff8a8d; }
@keyframes say-in { from { opacity: 0; transform: translateY(8px); } }
.case-quiz { text-align: center; padding: 1rem; border: 2px dashed var(--gold); border-radius: 18px; margin-bottom: 1rem; }
.case-quiz { margin: 1.1rem 0 0; }
.case-quiz .btn:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; transform: none; box-shadow: none; }
.quiz-q { font-family: var(--head); font-size: 1.4rem; color: var(--gold); margin: 0 0 .8rem; }
.case-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.case-controls .case-next { margin-left: auto; }
.case-controls [hidden] { display: none; }
.case-hint.nudge { animation: nudge 1.4s ease-in-out infinite; border-color: var(--lime); color: var(--lime); }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-4deg) scale(1.06); } 80% { transform: rotate(4deg) scale(1.06); } 90% { transform: rotate(-2deg); } }
.case-count { font-weight: 700; color: var(--lime); }
.case-next:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); transform: none; }
.case-next.ready { animation: ready 1.2s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 5px 0 #6b4410, 0 0 34px rgba(226, 168, 69, .9); } }

.notebook { color: #2b2140; padding: 1.4rem 1.2rem 1rem 2.6rem; border-radius: 8px 18px 18px 8px; box-shadow: var(--shadow); transform: rotate(.6deg);
  background: repeating-linear-gradient(#fffbe9 0 31px, #b9d3f2 31px 32px), #fffbe9; background-position: 0 14px; position: relative; }
.notebook::before { content: ""; position: absolute; left: 1.6rem; top: 0; bottom: 0; width: 2px; background: #f08a8a; }
.notebook h2 { font-size: 1.5rem; color: #2b2418; margin-bottom: .6rem; }
.notebook-list { margin: 0; padding-left: 1.2rem; line-height: 32px; font-size: 1rem; }
.notebook-list li { animation: say-in .4s ease-out; }
.notebook-empty, .notebook-foot { margin: .4rem 0; font-size: .95rem; color: #5a4d3a; line-height: 32px; }
@media (max-width: 960px) { .notebook { position: relative; top: 0; transform: none; } }

.badge-maker { margin-top: 2.5rem; text-align: center; border-color: var(--gold); }
.badge-maker h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.badge-form label { display: block; font-weight: 700; margin-bottom: .4rem; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.badge-row input { font: inherit; font-size: 1.3rem; padding: .7rem 1.1rem; border-radius: 99px; border: 3px solid var(--lime); background: #fffbe9; color: var(--night-1); width: min(320px, 100%); text-align: center; }
.badge-wrap { margin-top: 2.5rem; text-align: center; }
.badge { width: min(440px, 100%); margin: 0 auto 1.5rem; padding: 1.2rem; border-radius: 26px; background: #fffbe9; color: #2b2418; box-shadow: var(--shadow), 0 0 50px rgba(226, 168, 69, .35); }
.badge-svg { width: 100%; height: auto; }
.badge-sign { margin: .4rem 0 0; font-size: 1.1rem; }
.sig-w { color: #1f5fd6; } .sig-t { color: #c42228; }
@media print {
  body.has-badge main > *:not(.case-page), body.has-badge .site-footer { display: none !important; }
  body.has-badge .badge-wrap { margin: 0; }
  body.has-badge .badge { box-shadow: none; width: 5in; border: 2px dashed #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Color the Doodles ---------- */
.page-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.5rem, 2vw, 1rem); margin-bottom: 1.4rem; }
.pick { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .06); border: 3px solid rgba(207, 198, 245, .3); border-radius: 16px; padding: .4rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; align-items: center; transition: transform .2s, border-color .2s; }
@media (max-width: 640px) { .page-picker { grid-template-columns: repeat(2, 1fr); } }
.pick small { color: var(--lime); font-size: .78rem; font-weight: 700; margin-top: -.2rem; }
.studio-after { text-align: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.show-art { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.studio-after > .small { max-width: 560px; margin: .7rem auto 0; }
.pick img { width: 100%; border-radius: 10px; background: #fff; }
.pick span { font-weight: 700; font-size: clamp(.8rem, 2.4vw, 1rem); }
.pick:hover { transform: translateY(-3px); }
.pick[aria-pressed="true"] { border-color: var(--lime); box-shadow: 0 0 18px rgba(185, 211, 240, .45); }
.color-studio { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1rem, 2.5vw, 1.8rem); align-items: start; }
@media (max-width: 960px) { .color-studio { grid-template-columns: 1fr; } }
.canvas-title { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--gold); text-align: center; margin: 0 0 .6rem; }
.print-title { display: none; }
.canvas-frame { position: relative; background: #fff; border-radius: 18px; padding: 8px; border: 5px solid var(--gold); box-shadow: var(--shadow), 0 0 40px rgba(226, 168, 69, .25); }
.color-canvas { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M6 30 L10 20 L26 4 L32 10 L16 26 Z' fill='%23ffd23f' stroke='%232a0e6b' stroke-width='2.5' stroke-linejoin='round'/%3E%3Cpath d='M6 30 L10 20 L16 26 Z' fill='%232a0e6b'/%3E%3C/svg%3E") 4 32, crosshair; border-radius: 10px; }
.canvas-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #2b2418; font-weight: 700; background: rgba(255, 255, 255, .85); border-radius: 12px; }
.canvas-loading[hidden] { display: none; }
.studio-tools { display: flex; flex-direction: column; gap: 1rem; }
.now-color { display: flex; align-items: center; gap: .7rem; font-size: 1.1rem; }
.now-swatch { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--night-1), 0 0 16px rgba(255, 255, 255, .3); flex: none; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
@media (max-width: 960px) { .palette { grid-template-columns: repeat(10, 1fr); max-width: 720px; } }
@media (max-width: 560px) { .palette { grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 360px; margin-inline: auto; } }
.swatch { aspect-ratio: 1; min-width: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .85); background: var(--c); cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transition: transform .15s; padding: 0; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { transform: scale(1.15); border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime), 0 0 18px var(--lime); }
.swatch-eraser { background: #fff repeating-linear-gradient(45deg, transparent 0 6px, #dfe3ea 6px 9px); position: relative; }
.swatch-eraser::after { content: "🧽"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tool-row .btn { font-size: 1rem; padding: .7rem .6rem; }
.tool-reset.armed { background: #e23b3b; color: #fff; border-color: #e23b3b; }
.send-gallery { font-weight: 700; color: var(--lime); }
.book-cta { margin-top: clamp(2.5rem, 6vw, 4rem); }
.book-cta .btn-soon { cursor: default; color: var(--night-1); border: 0; background: linear-gradient(180deg, #f2c776, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 6px 0 #6b4410, 0 0 40px rgba(226, 168, 69, .45); animation: ready 2.4s ease-in-out infinite; }
.book-cta .btn-soon small { font-size: .95rem; background: var(--night-1); color: var(--lime); padding: .1rem .7rem; border-radius: 99px; margin-top: .3rem; }
.btn-big { font-size: clamp(1.3rem, 3.6vw, 1.9rem); padding: 1rem 2rem; }
.coloring-print { display: none; }
@media print {
  body.printing-coloring main > *:not(.coloring-page), body.printing-coloring .site-footer { display: none !important; }
  body.printing-coloring .coloring-print { display: block; text-align: center; }
  body.printing-coloring .coloring-print img { width: 100%; max-width: 10in; margin: 0 auto; }
  body.printing-coloring .coloring-print p { font-size: 11pt; color: #555; }
  body.printing-coloring .print-title { display: block; font-family: var(--head); color: #2b2418; font-size: 24pt; margin: 0 0 .2in; }
  @page { margin: .4in; }
}

/* ---------- Doodle Art Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.art-card { margin: 0; background: #fffbe9; color: #2b2418; padding: .7rem .7rem 1rem; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(var(--tilt, -1deg)); }
.art-card:nth-child(even) { --tilt: 1.2deg; }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.art-card figcaption { display: flex; flex-direction: column; margin-top: .6rem; text-align: center; }
.gallery-empty { text-align: center; font-size: 1.3rem; color: var(--muted); padding: 2rem; border: 2px dashed rgba(207, 198, 245, .4); border-radius: var(--radius); }
.art-form-card { max-width: 760px; margin: 0 auto; }
.art-form h2, .art-sent h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 700; }
.field input, .field select { font: inherit; padding: .7rem .9rem; border-radius: 14px; border: 2px solid rgba(185, 211, 240, .5); background: #fffbe9; color: var(--night-1); width: 100%; }
.field input[type="file"] { background: rgba(255, 255, 255, .08); color: var(--ink); }
.field[hidden], .attached-art[hidden], .form-setup[hidden] { display: none; }
.permission { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 14px; background: rgba(185, 211, 240, .1); border: 2px solid var(--lime); margin-bottom: .6rem; cursor: pointer; }
.permission input { width: 26px; height: 26px; flex: none; accent-color: var(--lime); margin-top: .1rem; }
.attached-art { text-align: center; margin-bottom: 1rem; }
.attached-art img { margin: 0 auto .4rem; border-radius: 10px; border: 4px solid var(--lime); width: min(280px, 100%); height: auto; }
.attached-art p { color: var(--lime); font-weight: 700; margin: 0; }
.form-setup { background: rgba(226, 168, 69, .15); border: 2px dashed var(--gold); border-radius: 12px; padding: .7rem 1rem; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.art-form button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- print + motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sky, .site-header, .case-map, .site-footer .footer-tree, .toast, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Top Secret Case File ---------- */
.dossier { max-width: 900px; margin: 0 auto; }
.folder {
  display: block; position: relative; width: min(440px, 100%); aspect-ratio: 4 / 3; margin: 1.5rem auto 0;
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #3b2a12; perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
}
.folder-back, .folder-front { position: absolute; inset: 0; border-radius: 6px 16px 16px 16px; }
.folder-back { background: #c9a35b; box-shadow: var(--shadow); }
.folder-tab {
  position: absolute; left: 0; top: -1.7rem; height: 1.9rem; padding: .25rem 1rem; border-radius: 10px 10px 0 0;
  background: #c9a35b; font-family: var(--head); font-size: .85rem; letter-spacing: .08em; color: #5a4320;
}
.folder-paper { position: absolute; inset: 8% 6% 4%; background: #f4ecd8; border-radius: 4px; transform: translateY(0); transition: transform .45s ease; }
.folder-front {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(160deg, #e7c47c, #d3a959); border-radius: 6px 16px 16px 16px;
  transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.3, .9, .4, 1.1), box-shadow .3s;
  box-shadow: inset 0 0 0 2px rgba(90, 67, 32, .25);
}
.folder-label { font-family: var(--head); font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.05; text-align: center; }
.folder-label small { display: block; font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.folder-hint { font-weight: 700; font-size: 1rem; color: #5a4320; animation: secret-pulse 1.8s ease-in-out infinite; }
.folder:hover .folder-front, .folder:focus-visible .folder-front { transform: rotateX(14deg); }
.folder:hover .folder-paper, .folder:focus-visible .folder-paper { transform: translateY(-14px); }
.folder:focus-visible { outline: 3px solid var(--lime); outline-offset: 8px; border-radius: 12px; }
.dossier.open .folder-front { transform: rotateX(72deg); box-shadow: 0 -10px 30px rgba(0, 0, 0, .4); }
.dossier.open .folder-paper { transform: translateY(-34px); }
.dossier.open .folder-hint { visibility: hidden; }
@keyframes secret-pulse { 50% { opacity: .55; } }

.stamp {
  display: inline-block; font-family: var(--head); letter-spacing: .1em; color: #d8322e; border: 4px solid #d8322e;
  border-radius: 8px; padding: .2rem .8rem .05rem; text-transform: uppercase; line-height: 1;
  mix-blend-mode: multiply;
}
.stamp-top { font-size: clamp(1.3rem, 5vw, 1.8rem); transform: rotate(-8deg); }

.file-contents { margin-top: 2.2rem; scroll-margin-top: 90px; }
.memo {
  max-width: 640px; margin: 0 auto 2rem; padding: .9rem 1.2rem; background: #f4ecd8; color: #3b2a12;
  border-radius: 6px; font-family: "Courier New", monospace; font-size: 1.02rem; box-shadow: var(--shadow); transform: rotate(-.6deg);
}
.secret-covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 3rem); margin-bottom: 2rem; }
.secret-cover { margin: 0; text-align: center; opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.secret-cover:nth-child(2) { transition-delay: .15s; }
.revealed .secret-cover { opacity: 1; transform: none; }
.cover-frame { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px rgba(226, 168, 69, .35), var(--shadow); background: #120a33; }
.cover-frame img { display: block; width: 100%; height: auto; }
.stamp-classified {
  position: absolute; left: 50%; top: 46%; font-size: clamp(1.5rem, 6.5vw, 3rem); padding: .3rem 1rem .1rem;
  border-width: 6px; color: #e8302b; border-color: #e8302b; background: rgba(255, 245, 240, .14);
  mix-blend-mode: normal; text-shadow: 0 0 2px rgba(0, 0, 0, .25); box-shadow: 0 0 0 2px rgba(232, 48, 43, .25) inset;
  transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 0;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 61%, #000 75%);
          mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 61%, #000 75%);
}
.secret-cover:nth-child(2) .stamp-classified { transform: translate(-50%, -50%) rotate(9deg); }
.revealed .stamp-classified { animation: stamp-slam .42s cubic-bezier(.2, .9, .3, 1.25) .7s both; }
.revealed .secret-cover:nth-child(2) .stamp-classified { animation-name: stamp-slam-2; animation-delay: 1.2s; }
.revealed .cover-frame { animation: stamp-shake .3s ease 1.02s; }
.revealed .secret-cover:nth-child(2) .cover-frame { animation-delay: 1.52s; }
@keyframes stamp-slam {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(2.6); }
  70% { opacity: 1; transform: translate(-50%, -50%) rotate(-13deg) scale(.94); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}
@keyframes stamp-slam-2 {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(20deg) scale(2.6); }
  70% { opacity: 1; transform: translate(-50%, -50%) rotate(8deg) scale(.94); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(9deg) scale(1); }
}
@keyframes stamp-shake { 25% { transform: translate(2px, 3px); } 50% { transform: translate(-2px, -1px); } 75% { transform: translate(1px, 2px); } }
.secret-cover figcaption { margin-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.secret-cover figcaption b { font-family: var(--head); font-weight: 400; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--gold); line-height: 1.1; }
.coming {
  display: inline-block; padding: .3rem 1rem; border-radius: 999px; background: var(--lime); color: #1b0f44;
  font-family: var(--head); letter-spacing: .08em; font-size: 1rem; box-shadow: 0 0 18px rgba(185, 211, 240, .45);
}
.attic-note { margin: .8rem 0 0; font-style: italic; color: var(--muted); }
@media (max-width: 640px) {
  .secret-covers { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .stamp-classified { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .folder-front, .folder-paper, .secret-cover { transition: none; }
  .folder-hint { animation: none; }
  .revealed .stamp-classified, .revealed .secret-cover:nth-child(2) .stamp-classified { animation: none; opacity: 1; }
  .revealed .cover-frame { animation: none; }
}

/* =====================================================================
   Case-file theme for everything below the hero.
   The hero scene and the header keep their own look (rules above).
   ===================================================================== */
@font-face { font-family: "Mystery Quest"; src: url(/fonts/mystery-quest.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Creepster"; src: url(/fonts/creepster.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Special Elite"; src: url(/fonts/special-elite.woff2) format("woff2"); font-display: swap; }
:root {
  --spooky: "Mystery Quest", Georgia, serif;
  --creep: "Creepster", "Mystery Quest", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  --paper: #e6dabd;
  --paper-ink: #2b2418;
  --stamp: #c4433a;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paw-trail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='44' viewBox='0 0 150 44'%3E%3Cg fill='%23e2a845'%3E%3Cg transform='translate(22 30) rotate(90) scale(.3) translate(-32 -32)'%3E%3Cellipse cx='32' cy='42' rx='14' ry='12'/%3E%3Cellipse cx='14' cy='26' rx='6' ry='8'/%3E%3Cellipse cx='26' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='38' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='50' cy='26' rx='6' ry='8'/%3E%3C/g%3E%3Cg transform='translate(97 14) rotate(90) scale(.3) translate(-32 -32)'%3E%3Cellipse cx='32' cy='42' rx='14' ry='12'/%3E%3Cellipse cx='14' cy='26' rx='6' ry='8'/%3E%3Cellipse cx='26' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='38' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='50' cy='26' rx='6' ry='8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* night palette: deep night blue, moonlight, warm ochre */
.section, .site-footer, .case-map, .home-bar {
  --gold: #e2a845;
  --gold-deep: #a86f1c;
  --lime: #b9d3f0;
  --ink: #e7ecf4;
  --muted: #a9b5c8;
  --night-1: #0c1424;
  --card: rgba(16, 25, 43, .86);
  --card-edge: rgba(226, 168, 69, .24);
  --radius: 8px;
  --head: var(--spooky); /* anything that used the bubbly face below the hero now gets the storybook one */
  color: var(--ink);
}
body { background: radial-gradient(120% 75% at 70% 0%, #1c2b48 0%, #0d1628 45%, #060a14 100%) fixed, #060a14; }
/* the header on the hero page sits over the original sky, so the hero looks exactly as before */
.home .site-header { background: linear-gradient(180deg, rgba(10, 5, 38, .92), rgba(10, 5, 38, .7)), radial-gradient(120% 80% at 70% 0%, #2c1470 0%, #120939 45%, #06031c 100%) fixed; }
.fog { background: radial-gradient(closest-side, rgba(200, 214, 235, .9), transparent) 0 0 / 50% 100% repeat-x; }
.fog-2 { background-size: 38% 100%; }

/* type */
.section h1, .section h2, .section h3, .section .h, .case-map h2 { font-family: var(--spooky); letter-spacing: .01em; line-height: 1.08; }
.section h1, .section h2 { font-family: var(--creep); letter-spacing: .03em; font-weight: 400; }
/* Mystery Quest is a thin face; a hairline stroke gives it storybook weight */
.section h3, .section .btn, .site-footer .signoff, .case-map h2, .map-card, .section .pet-tag { -webkit-text-stroke: .04em currentColor; paint-order: stroke fill; }
.section .glow-title, .section h1 { color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .75), 0 0 24px rgba(226, 168, 69, .35); }
.section-head h1 { font-size: clamp(2.6rem, 7.5vw, 4.8rem); }
.section-head p { color: var(--muted); }
.section .kicker, .case-map .kicker {
  font-family: var(--type); color: var(--stamp); letter-spacing: .16em; text-transform: uppercase; font-size: .9rem;
  border: 2px solid currentColor; border-radius: 4px; padding: .2rem .7rem .1rem; transform: rotate(-2.5deg);
  background: rgba(196, 67, 58, .08); text-shadow: none; filter: brightness(1.25);
}
.section .small { color: var(--muted); }
@media (max-width: 560px) { .section .kicker { letter-spacing: .05em; font-size: .78rem; padding: .2rem .5rem .1rem; } }
.section .stamp { font-family: var(--type); letter-spacing: .14em; -webkit-text-stroke: .03em currentColor; }
.stamp-inline { display: inline-block; transform: rotate(-4deg); font-size: 1.3rem; color: #e8302b; border-color: #e8302b; mix-blend-mode: normal; }
.section .quiz-q, .section .folder-label, .section .coming, .section .secret-cover figcaption b, .section .case-progress li { -webkit-text-stroke: .04em currentColor; paint-order: stroke fill; }

/* HOME button at the top of every page and every home section */
.home-bar { padding-top: 1rem; position: relative; z-index: 2; }
.home-bar + .section { padding-top: clamp(1.4rem, 4vw, 2.8rem); }
.home-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .45rem 1.1rem .4rem;
  font-family: var(--type); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--paper-ink); background: var(--grain), linear-gradient(180deg, #ecdcb4, #d4b97f);
  border-radius: 10px 10px 4px 4px; box-shadow: 0 4px 0 #7d5a24, 0 8px 18px rgba(0, 0, 0, .45); transition: transform .15s, box-shadow .15s;
}
.home-btn:hover { color: var(--paper-ink); transform: translateY(-2px); box-shadow: 0 6px 0 #7d5a24, 0 0 22px rgba(226, 168, 69, .55); }
.home-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #7d5a24; }
.section > .wrap > .home-btn { margin-bottom: 1.4rem; }

/* paw-print trail between sections */
.section + .section::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 44px; transform: translate(-50%, -50%);
  background: var(--paw-trail) center / auto 100% repeat-x; opacity: .3; pointer-events: none;
}

/* case-file cards: grainy dark folders with tape */
.section .card {
  position: relative; background: var(--grain), linear-gradient(170deg, rgba(26, 38, 62, .95), rgba(12, 19, 34, .95));
  border: 1px solid var(--card-edge); border-radius: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.section .card::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 118px; height: 26px; transform: translateX(-50%) rotate(-3deg); z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 216, 170, .72), rgba(205, 184, 132, .66));
  clip-path: polygon(0 12%, 5% 0, 30% 6%, 55% 0, 80% 7%, 100% 0, 97% 50%, 100% 100%, 75% 92%, 50% 100%, 25% 93%, 3% 100%, 0 88%, 3% 50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.section .card:nth-child(even)::before { transform: translateX(-50%) rotate(2.5deg); }

/* buttons: brass and moonlight, less bubbly */
.section .btn, .site-footer .btn { font-family: var(--spooky); font-size: 1.22rem; letter-spacing: .02em; border-radius: 10px; color: #1b1206;
  background: linear-gradient(180deg, #f2c776, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 4px 0 #6b4410, 0 10px 24px rgba(0, 0, 0, .45); }
.section .btn:hover { color: #1b1206; box-shadow: 0 6px 0 #6b4410, 0 0 26px rgba(226, 168, 69, .55); }
.section .btn-lime { background: linear-gradient(180deg, #eef4fb, var(--lime) 55%, #8eaed3); box-shadow: 0 4px 0 #3c5577, 0 10px 24px rgba(0, 0, 0, .45); }
.section .btn-lime:hover { box-shadow: 0 6px 0 #3c5577, 0 0 26px rgba(185, 211, 240, .6); }
.section .btn-ghost { background: transparent; color: var(--gold); box-shadow: none; }
.section .btn-ghost:hover { color: var(--gold); background: rgba(226, 168, 69, .12); }
.section .btn-soon { background: rgba(255, 255, 255, .05); color: var(--muted); box-shadow: none; }
.section .btn small { font-family: var(--body); }

/* flashlight that follows the cursor below the hero */
.torch { position: fixed; inset: 0; z-index: 25; pointer-events: none; mix-blend-mode: screen; transition: opacity .35s;
  background: radial-gradient(circle 230px at var(--tx, -999px) var(--ty, -999px), rgba(255, 224, 160, .14), rgba(255, 205, 120, .05) 50%, transparent 72%); }
.torch.off { opacity: 0; }

/* home sections */
.section .teaser { overflow: visible; }
.section .teaser img { margin: 12px 12px 0; width: calc(100% - 24px); border: 6px solid #d9cfb8; border-bottom-width: 18px; border-radius: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transform: rotate(-1.2deg); filter: saturate(.9); }
.section .teaser:nth-child(2) img { transform: rotate(1deg); }
.section .teaser h3 { font-size: 1.8rem; }
.section .teaser:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(226, 168, 69, .25); }
.section .game-cta { border: 1px solid rgba(185, 211, 240, .35); }
.section .color-cta { border-color: rgba(226, 168, 69, .4); }
.section .game-cta img { border-radius: 4px; border: 6px solid #d9cfb8; }
.section .banner { background: var(--grain), linear-gradient(110deg, rgba(226, 168, 69, .14), rgba(185, 211, 240, .08)); border: 2px dashed rgba(226, 168, 69, .7); border-radius: 8px; }
.section .banner h3 { font-family: var(--spooky); }

/* books, detectives, trailers */
.section .book-num { font-family: var(--type); color: var(--stamp); letter-spacing: .14em; filter: brightness(1.25); }
.section .flip-tip { color: var(--lime); }
.section .pet .flip-face { border-radius: 8px; border-width: 5px; }
.section .pet-tag { font-family: var(--spooky); border-radius: 6px; font-size: 1.55rem; }
.section .pet-label { font-family: var(--type); letter-spacing: .06em; border-radius: 4px; }
.section .pet-bio h3 { font-size: 1.9rem; }
.section .theater { border-radius: 12px; border-color: rgba(226, 168, 69, .5); background: var(--grain), linear-gradient(180deg, #1b2840, #0b1222); }
.section .theater video { border-radius: 6px; }
.section .theater::before { border-radius: 18px; }

/* the mystery game and coloring keep their behavior; only colors and shapes change */
.section .case-progress li { font-family: var(--spooky); }
.section .case-progress li.done { background: var(--gold); border-color: var(--gold); }
.section .notebook h2, .section .notebook-list { color: var(--paper-ink); }
.section .pick { border-radius: 8px; background: var(--grain), rgba(255, 255, 255, .04); }
.section .canvas-frame { border-radius: 8px; border-color: #c99a3e; }
.section .now-name { color: var(--gold); }
.section .say { border-radius: 8px; }
.section .badge-row input { border-radius: 10px; }

/* gallery + forms */
.section .gallery-empty { border-radius: 8px; border-color: rgba(226, 168, 69, .45); background: var(--grain); }
.section .field input, .section .field select { border-radius: 8px; border-color: rgba(185, 211, 240, .5); }
.section .permission { border-radius: 8px; }

/* Case Map overlay */
.case-map { background: rgba(5, 9, 18, .93); }
.case-map h2 { color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .7), 0 0 24px rgba(226, 168, 69, .35); }
.map-card { border-radius: 6px 12px 8px 8px; background: var(--grain), linear-gradient(170deg, rgba(27, 40, 64, .97), rgba(10, 16, 30, .97)); border: 1px solid rgba(226, 168, 69, .3); border-top: 4px solid rgba(226, 168, 69, .7); font-family: var(--spooky); font-weight: 400; font-size: 1.2rem; }
.map-card:hover, .map-card[aria-current] { border-color: var(--lime); color: var(--lime); }

/* footer */
.site-footer { background: linear-gradient(180deg, transparent, rgba(5, 9, 18, .9) 40%); }
.site-footer .signoff { font-family: var(--spooky); color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .7), 0 0 24px rgba(226, 168, 69, .45); }
.site-footer .small { color: var(--muted); }

/* In Memory of Joseph: still calm, no effects; night fading to dawn */
body.calm { background: linear-gradient(180deg, #0f1a2e 0%, #26375a 40%, #6f6688 75%, #d6a67c 100%) fixed; }
body.calm .section h1 { font-family: var(--spooky); color: #fff7e6; text-shadow: 0 0 30px rgba(255, 240, 210, .45); letter-spacing: .01em; }
body.calm .section .kicker { color: #fff7e6; border-color: rgba(255, 247, 230, .6); background: none; transform: none; filter: none; }
body.calm .section .card::before, body.calm .section + .section::before { display: none; }
body.calm .site-footer .signoff { color: #fff7e6; text-shadow: 0 0 20px rgba(255, 240, 210, .5); }
body.calm .site-footer .small { color: #3d2f2a; }

/* "case opening soon" landing pages */
.soon-file { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 4vw, 2.8rem); align-items: center; }
.soon-file.no-art { grid-template-columns: 1fr; text-align: center; max-width: 720px; }
@media (max-width: 760px) { .soon-file { grid-template-columns: 1fr; text-align: center; } }
.soon-art { position: relative; }
.soon-art img { width: 100%; border: 8px solid #d9cfb8; border-bottom-width: 22px; border-radius: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, .55); transform: rotate(-2deg); }
.soon-file .stamp { font-size: clamp(1.3rem, 4vw, 2rem); background: rgba(255, 245, 240, .1); color: #e8302b; border-color: #e8302b; border-width: 5px; mix-blend-mode: normal; white-space: nowrap; }
.soon-art .stamp { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) rotate(-12deg); background: rgba(255, 246, 236, .62); -webkit-text-stroke: .06em currentColor; }
.soon-file.no-art .stamp { display: inline-block; transform: rotate(-6deg); margin: .2rem 0 1.4rem; }
.soon-body .stamp { display: inline-block; transform: rotate(-5deg); margin-bottom: 1rem; }
.soon-note { font-size: 1.15rem; }
.soon-file .memo { margin: 1.2rem 0; transform: rotate(.5deg); text-align: left; }
.soon-file .btn-row { margin-top: 1.4rem; }
@media (max-width: 760px) { .soon-file .btn-row { justify-content: center; } }
.event-card { max-width: 760px; margin: 0 auto; text-align: center; }
.event-date { font-family: var(--type); color: var(--stamp); letter-spacing: .14em; text-transform: uppercase; filter: brightness(1.3); margin: 0 0 .4rem; }
.event-card h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.event-where { font-size: 1.2rem; margin: .2rem 0 1rem; }

/* ---------- hero: hidden objects for every section ----------
   Invisible until the flashlight finds them, so the scene looks the same at rest. */
.prop { position: absolute; pointer-events: none; opacity: 0; transition: opacity .45s, filter .45s; }
.prop svg { width: 100%; height: 100%; overflow: visible; }
.lit-poster .prop-poster, .lit-flyer .prop-flyer, .lit-crayons .prop-crayons,
.lit-window .prop-drawing, .lit-tracks .prop-tracks {
  opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 214, 140, .8)) drop-shadow(0 0 14px rgba(255, 190, 90, .45));
}
.prop-poster svg { transform: rotate(-3deg); }
.prop-flyer svg { transform: rotate(4deg); }
.lit-window .fx-window { opacity: 1; animation: candle 1.4s infinite alternate; }
.lit-tracks .prop-tracks { animation: candle 1.6s infinite alternate; }
.fx-tracks { border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 200, 110, .35), transparent); }
.lit-tracks .fx-tracks { opacity: 1; }
.fx-fogeye { width: 1.1%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 250, 190, 1), rgba(255, 220, 90, .6) 45%, transparent); }
.lit-eyes .fx-fogeye { opacity: 1; animation: fog-eyes 1.6s ease-in-out infinite; }
@keyframes fog-eyes { 50% { transform: translate(-50%, -50%) scale(2.2); } }
.hotspot.hs-small .hs-label { top: -42%; }
.hotspot[data-spot="tracks"] .hs-label { top: -18%; }
.hotspot[data-spot="poster"] .hs-label, .hotspot[data-spot="flyer"] .hs-label { top: 122%; }
/* with reduced motion the four big labels stay visible; the small ones still wait for the light */
@media (prefers-reduced-motion: reduce) { .hotspot.hs-small .hs-label { opacity: 0; } .hotspot.hs-small.lit .hs-label, .hotspot.hs-small:focus-visible .hs-label { opacity: 1; } }
.flip-hint { position: absolute; top: 12px; left: 12px; z-index: 1; padding: .2rem .7rem; border-radius: 4px; font-weight: 700; font-size: .85rem;
  background: rgba(5, 9, 18, .78); color: var(--gold); border: 1px solid rgba(226, 168, 69, .55); animation: hint-glow 2.4s ease-in-out infinite; }
@keyframes hint-glow { 50% { box-shadow: 0 0 14px rgba(226, 168, 69, .6); } }

/* ---------- hero on phones: a still scene with every spot showing ----------
   Same query as scene.js. Tablets and desktops keep the flashlight hero above. */
.hs-short, .scene-buttons { display: none; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .night-scene { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; touch-action: auto; user-select: auto; -webkit-user-select: auto; }
  .night-scene .scene { position: relative; order: 1; width: 100%; height: auto; aspect-ratio: 1; transform: none !important; will-change: auto; }
  .night-scene .scene-title { position: static; order: 0; max-width: none; text-align: center; padding: 1.4rem 1rem 1rem; background: none; }
  .night-scene .scene-hint, .night-scene .scroll-cue, .night-scene .glow-beam, .night-scene .scene-paws { display: none; }
  /* a soft even dusk instead of the flashlight's dark mask */
  .night-scene .darkness { background: rgba(4, 2, 18, .3); -webkit-mask-image: none; mask-image: none; }
  .night-scene .fx-window, .night-scene .fx-door, .night-scene .fx-moon, .night-scene .fx-fogeye { opacity: .85; }
  .night-scene .fx-fogeye { animation: fog-eyes 2.4s ease-in-out infinite; }
  .night-scene .prop-poster, .night-scene .prop-crayons, .night-scene .prop-tracks {
    opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 214, 140, .8)) drop-shadow(0 0 10px rgba(255, 190, 90, .45)); }
  /* only the seven phone spots; the rest of the site is in the buttons and the Case Map */
  .night-scene .hotspot[data-spot="owl"], .night-scene .hotspot[data-spot="flyer"], .night-scene .hotspot[data-spot="window"] { display: none; }
  .night-scene .hs-label { display: none; }
  .night-scene .hs-short {
    display: block; position: absolute; left: var(--sx, 50%); top: var(--sy, 50%); transform: translate(-50%, -50%);
    font-family: var(--head); font-size: .68rem; letter-spacing: .03em; white-space: nowrap; color: var(--night-1);
    background: linear-gradient(180deg, #ffe680, var(--gold)); padding: .34rem .6rem .22rem; border-radius: 99px;
    box-shadow: 0 0 0 2px rgba(6, 3, 28, .55), 0 0 14px rgba(255, 210, 63, .7); animation: short-glow 2.6s ease-in-out infinite;
  }
  .night-scene .hotspot:active .hs-short { transform: translate(-50%, -50%) scale(.94); }
  /* invisible padding so each label is a finger-sized target (about 46px tall) */
  .night-scene .hs-short::after { content: ""; position: absolute; inset: -10px -6px; }
  .hotspot[data-spot="boys"] .hs-short { --sx: 46%; --sy: 66%; }
  .hotspot[data-spot="house"] .hs-short { --sx: 54%; --sy: 78%; }
  .hotspot[data-spot="moon"] .hs-short { --sx: 38%; --sy: 121%; }
  .hotspot[data-spot="tracks"] .hs-short { --sx: 50%; --sy: 29%; }
  .hotspot[data-spot="crayons"] .hs-short { --sx: 65%; --sy: -41%; }
  .hotspot[data-spot="poster"] .hs-short { --sx: 47%; --sy: 123%; }
  .hotspot[data-spot="eyes"] .hs-short { --sx: 50%; --sy: -33%; }
  /* big buttons under the picture as a backup */
  .scene-buttons { display: grid; order: 2; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem 1rem 1.4rem; background: linear-gradient(180deg, #05030f, rgba(5, 3, 15, 0)); }
  .scene-buttons a {
    display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 56px; padding: .5rem .6rem .35rem; text-align: center;
    font-family: var(--head); font-size: 1rem; letter-spacing: .03em; line-height: 1.1; text-decoration: none; color: var(--night-1);
    background: linear-gradient(180deg, #ffe680, var(--gold) 55%, var(--gold-deep)); border-radius: 16px; box-shadow: 0 4px 0 #9a5a00, 0 8px 18px rgba(0, 0, 0, .4);
  }
  .scene-buttons a:active { transform: translateY(3px); box-shadow: 0 1px 0 #9a5a00; }
  .scene-buttons a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@keyframes short-glow { 50% { box-shadow: 0 0 0 2px rgba(6, 3, 28, .55), 0 0 22px rgba(255, 210, 63, .95); } }

/* ---------- hero on tablets (set by scene.js as data-tablet="pan") ----------
   A finger drags the picture instead of the page; "Let's Follow the Clues" lets the page scroll. */
.follow-clues { display: none; }
html.hero-lock, html.hero-lock body { overflow: hidden; overscroll-behavior: none; }
.night-scene[data-tablet] { touch-action: none; }
.night-scene[data-tablet] .scroll-cue { display: none; }
.night-scene[data-tablet] .scene-title { bottom: 96px; }
.night-scene[data-tablet] .follow-clues {
  display: inline-flex; align-items: center; gap: .5rem; position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%);
  min-height: 56px; padding: .7rem 1.6rem .55rem; white-space: nowrap; text-decoration: none;
  font-family: var(--head); font-size: 1.3rem; letter-spacing: .04em; color: var(--night-1);
  background: linear-gradient(180deg, #ffe680, var(--gold) 55%, var(--gold-deep)); border-radius: 99px;
  box-shadow: 0 5px 0 #9a5a00, 0 0 0 3px rgba(6, 3, 28, .55), 0 0 26px rgba(255, 210, 63, .75); animation: clue-glow 2s ease-in-out infinite;
}
.night-scene[data-tablet] .follow-clues:active { transform: translate(-50%, 3px); box-shadow: 0 2px 0 #9a5a00, 0 0 18px rgba(255, 210, 63, .6); }
@keyframes clue-glow { 50% { box-shadow: 0 5px 0 #9a5a00, 0 0 0 3px rgba(6, 3, 28, .55), 0 0 42px rgba(255, 210, 63, 1); } }
