/* The library photograph's shelves across the top of the page,
   fading into the dark below; Cal's wooden frame and panel borders in front. */
@import url("fonts.css");
:root { --veil: 0.56; --brass: #d7ad5c; --brass-hi: #f0d595; --brass-lo: #8a6324; --ink: #eee0c2; --ink-soft: #cdb894; --lamp: 0.30; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: #120a05; }
body {
  margin: 0; color: var(--ink); font: 18px/1.6 "Source Sans 3", system-ui, sans-serif;
  background: #140b06; min-height: 100vh; position: relative; overflow-x: hidden; display: flex; flex-direction: column;
}
/* the room: the photograph sits behind the top of the page and fades out below */
.room { position: absolute; top: 0; left: 0; right: 0; height: var(--room-h, clamp(560px, 60vw, 900px)); z-index: 0; pointer-events: none;
  background: url("/img/room/shelves.jpg") center 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 48%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 48%, transparent 100%); }
.room::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 40% at 16% 19%, rgba(12,7,3,0.86), rgba(12,7,3,0.55) 55%, transparent 80%),
    linear-gradient(180deg, rgba(12,7,3,0.55), rgba(12,7,3,0) 260px),
    radial-gradient(ellipse 60% 40% at 50% 6%, rgba(255, 170, 80, var(--lamp)), transparent 70%),
    linear-gradient(180deg, rgba(14,8,4,0.22), rgba(14,8,4,0.30) 34%, rgba(14,8,4,0.62) 62%, rgba(14,8,4,0.85)); }
body > *:not(.room) { position: relative; z-index: 1; }
a { color: var(--brass); } a:hover, a:focus-visible { color: var(--brass-hi); }
img { display: block; max-width: 100%; }
.sample-ribbon { background: rgba(40,26,10,0.92); color: var(--brass-hi); text-align: center; font: 600 13px/1.4 "League Spartan", sans-serif; letter-spacing: 0.08em; padding: 6px 16px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding: 18px clamp(16px, 4vw, 52px) 6px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tagline { margin: 0; font: 600 15px/1.3 "League Spartan", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 2px #000, 0 2px 8px #000; text-align: center; }
.logo img { width: min(330px, 72vw); height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.85)); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
/* a thin brass rule between menu items (Cal, round 6) */
nav li { display: flex; align-items: center; }
nav li + li::before { content: ""; width: 1px; height: 15px; margin-right: 22px; background: rgba(215,173,92,0.55); box-shadow: 1px 0 0 rgba(0,0,0,0.6); }
nav a { font: 700 16px/1 "League Spartan", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--brass); padding: 10px 0 8px; display: inline-block; text-shadow: 0 2px 4px #000; }
main { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 16px 40px; flex: 1 0 auto; }
/* text panels: Cal's pick, B (EvilSystem's Warforge pack, CraftPix licence), a pixel-art nine-patch
   at its own size; its sides are rebuilt from one clean line of its own pixels. */
.panel { border-style: solid; border-width: 12px; border-image: url("/img/ui/panel_b.png") 12 fill / 12px stretch; image-rendering: pixelated; filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)); }
.panel * { image-rendering: auto; }
.menu { padding: 2px 16px; }

/* the lead game in Cal's carved wooden frame (Screaming Brain Studios' Frame_C-Wood_02, CC0),
   a nine-patch: corners as drawn, sides repeated; the pink middle is never drawn.
   The whole screenshot shows inside it, never a crop (Cal, round 6). */
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(270px, 2fr); gap: 34px; align-items: center; margin-top: clamp(30px, 9vw, 150px); }
.frame { border-style: solid; border-width: clamp(30px, 3.6vw, 50px); border-image: url("/img/ui/frame_wood.png") 44 round; filter: drop-shadow(0 18px 22px rgba(0,0,0,0.75)); }
.frame > img.pic { width: 100%; height: auto; box-shadow: 0 0 0 1px #000; }
.plaque { padding: 24px 26px; }
.status { font: 600 13px/1 "League Spartan", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.plaque h1 { font: 800 clamp(30px, 4vw, 44px)/1.05 "League Spartan", sans-serif; color: var(--brass); margin: 10px 0 0; -webkit-text-stroke: 1px #24150a; paint-order: stroke fill; text-shadow: 0 3px 3px #000; }
.plaque p { margin: 12px 0 20px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font: 700 16px/1 "League Spartan", sans-serif; letter-spacing: 0.05em; padding: 13px 18px 11px; border-radius: 5px;
  color: #24150a; background: var(--brass); border: 1px solid #5e3f11; box-shadow: inset 0 1px 0 rgba(255,240,200,0.6), 0 3px 0 #4a3210, 0 8px 16px rgba(0,0,0,0.5); }
.btn:hover, .btn:focus-visible { background: var(--brass-hi); color: #1a0f03; }
.btn.quiet { background: transparent; color: var(--brass); box-shadow: none; border-color: rgba(215,173,92,0.6); }

/* promises */
.promises { margin-top: 56px; padding: 22px 16px 26px; text-align: center; }
h2.rule { font: 700 15px/1 "League Spartan", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); display: flex; align-items: center; gap: 14px; justify-content: center; margin: 0 0 22px; }
h2.rule::before, h2.rule::after { content: ""; height: 2px; flex: 0 1 140px; background: linear-gradient(90deg, transparent, var(--brass-lo)); }
h2.rule::after { transform: scaleX(-1); }
.medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; list-style: none; margin: 0; padding: 0; }
.medal { position: relative; width: 128px; outline: none; }
.medal svg { width: 104px; height: 104px; filter: drop-shadow(0 6px 6px rgba(0,0,0,0.7)); transition: transform 0.2s; }
.medal:hover svg, .medal:focus svg { transform: translateY(-3px) rotate(-4deg); }
.medal span { display: block; margin-top: 6px; font: 700 13px/1.2 "League Spartan", sans-serif; letter-spacing: 0.08em; }
.medal .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 240px; z-index: 3; background: #2b1d10; border: 1px solid var(--brass-lo); border-radius: 6px; padding: 10px 12px; font: 400 15px/1.45 "Source Sans 3", sans-serif; text-align: left; box-shadow: 0 10px 24px rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.medal:hover .tip, .medal:focus .tip { opacity: 1; }

/* the shelf: a matched set of leather bindings (British Library, CC0), each with its own title label */
.shelf { margin-top: 56px; }
.books { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0 10px 0 4px; position: relative; }
.ledge { height: 22px; margin: 4px 0 0; position: relative; z-index: 1; border-radius: 3px; background: linear-gradient(#5a371b, #3a220f 45%, #24150a); box-shadow: 0 14px 24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,220,160,0.25); }
.book { perspective: 1100px; }
.book a { display: block; text-decoration: none; color: inherit; }
.cover { position: relative; aspect-ratio: 520 / 668; transform-style: preserve-3d; transform: rotateY(-24deg); transform-origin: left center; transition: transform 0.3s; box-shadow: 14px 16px 22px rgba(0,0,0,0.65); border-radius: 2px 5px 5px 2px; }
.book a:hover .cover, .book a:focus-visible .cover { transform: rotateY(-8deg); }
.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px 5px 5px 2px; }
.cover::before { /* the spine's rounded edge */ content: ""; position: absolute; inset: 0 auto 0 0; width: 8%; background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(255,255,255,0.08) 60%, transparent); border-radius: 2px 0 0 2px; }
.cover::after { /* the page block, seen from the side */ content: ""; position: absolute; top: 2.5%; bottom: 2.5%; right: 0; width: 16px; transform-origin: right center; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #efe3c4 0 1px, #cdbb93 1px 2px); }
.label { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 64%; min-height: 34%; display: grid; place-items: center; padding: 10px 6px; text-align: center; background: linear-gradient(#2e1709, #1e0f05); border: 1px solid #b68f43; box-shadow: 0 0 0 3px #1e0f05, 0 0 0 4px #b68f43, 0 2px 6px rgba(0,0,0,0.8); }
.label b { display: block; font: 800 clamp(13px, 1.5vw, 17px)/1.15 "League Spartan", sans-serif; color: #e6c06e; letter-spacing: 0.04em; text-transform: uppercase; }
.blurbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 14px 0 0; padding: 0 10px 0 4px; }
.blurb { font-size: 15px; line-height: 1.4; color: var(--ink); text-shadow: 0 1px 3px #000; }
.blurb .status { display: block; margin-top: 6px; font-size: 11px; }
.book .under { display: none; margin-top: 18px; font-size: 15px; line-height: 1.4; color: var(--ink); text-shadow: 0 1px 3px #000; }
.book .under .status { display: block; margin-top: 6px; font-size: 11px; }

.footnote { margin: 50px auto 0; max-width: 640px; display: flex; gap: 14px; align-items: center; padding: 12px 16px; font-size: 16px; color: var(--ink-soft); }
.footnote img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
footer { margin-top: 56px; padding: 22px 16px 30px; text-align: center; color: var(--ink-soft); font-size: 15px; background: rgba(10,6,3,0.85); border-top: 1px solid rgba(215,173,92,0.35); }
footer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 8px; padding: 0; }
.credit { font-size: 12px; opacity: 0.75; margin-top: 8px; }
@media (max-width: 820px) {
  .menu { padding: 0 6px; } nav ul { gap: 2px 14px; justify-content: center; } nav li + li::before { margin-right: 14px; } nav a { font-size: 15px; letter-spacing: 0.1em; }
  .hero { grid-template-columns: 1fr; }
  header { justify-content: center; text-align: center; } nav ul { justify-content: center; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .blurbs { display: none; }
  .book .under { display: block; }
  .ledge { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* done-ness tiers: the name, and what it means on hover or focus */
.tier { position: relative; display: inline-block; border-bottom: 1px dotted currentColor; cursor: help; outline: none; }
.tier .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 220px; z-index: 4; background: #2b1d10; border: 1px solid var(--brass-lo); border-radius: 6px; padding: 9px 11px; font: 400 15px/1.4 "Source Sans 3", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); text-align: left; box-shadow: 0 10px 24px rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.tier:hover .tip, .tier:focus .tip { opacity: 1; }

/* links that are headings or pictures keep their own colours */
a.frame { display: block; }
h2.rule a { color: inherit; text-decoration: none; }
.soon { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; }

/* a game's page: its picture (or its book) and its plaque, then the words, pictures and facts */
.game-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(270px, 2fr); gap: 34px; align-items: center; margin-top: clamp(30px, 6vw, 110px); }
.game-head h1 { font: 800 clamp(30px, 4vw, 44px)/1.05 "League Spartan", sans-serif; color: var(--brass); margin: 10px 0 0; -webkit-text-stroke: 1px #24150a; paint-order: stroke fill; text-shadow: 0 3px 3px #000; }
.pitch { font-size: 20px; margin: 12px 0 0; }
.bookplate { position: relative; width: min(300px, 70%); margin: 0 auto; aspect-ratio: 520 / 668; box-shadow: 18px 20px 30px rgba(0,0,0,0.7); border-radius: 2px 6px 6px 2px; }
.bookplate img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px 6px 6px 2px; }
.bookplate .label { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 64%; min-height: 34%; display: grid; place-items: center; padding: 12px 8px; text-align: center; background: linear-gradient(#2e1709, #1e0f05); border: 1px solid #b68f43; box-shadow: 0 0 0 3px #1e0f05, 0 0 0 4px #b68f43, 0 2px 6px rgba(0,0,0,0.8); }
.bookplate .label b { font: 800 clamp(16px, 2vw, 22px)/1.15 "League Spartan", sans-serif; color: #e6c06e; letter-spacing: 0.04em; text-transform: uppercase; }
.prose { margin: 46px auto 0; max-width: 760px; padding: 18px 30px; font-size: 19px; line-height: 1.65; }
.prose p { margin: 0.9em 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 46px auto 0; max-width: 980px; }
.gallery figure { margin: 0; }
.gallery .frame { border-width: clamp(22px, 2.4vw, 34px); }
.gallery figcaption { margin-top: 10px; text-align: center; color: var(--ink-soft); font-size: 16px; text-shadow: 0 1px 3px #000; }
.facts { margin: 46px auto 0; max-width: 760px; padding: 14px 30px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.facts dt { font: 700 13px/1.9 "League Spartan", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.facts dd { margin: 0; }
.back { text-align: center; margin: 34px 0 0; font: 700 15px/1 "League Spartan", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 820px) {
  .game-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .prose { padding: 10px 18px; font-size: 18px; }
  .facts { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; } .facts dd { margin-bottom: 10px; }
}
.stub { margin-top: clamp(30px, 6vw, 110px); }
.stub h1 { font: 800 clamp(28px, 3.6vw, 40px)/1.1 "League Spartan", sans-serif; color: var(--brass); margin: 10px 0 0; }

/* show, don't tell: a few words beside each picture or clip, alternating sides */
.lede { max-width: 760px; margin: 46px auto 0; text-align: center; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; text-shadow: 0 2px 6px #000; }
.lede.hush { font-style: italic; color: var(--ink-soft); letter-spacing: 0.02em; }
.beat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 34px; align-items: center; margin: 50px auto 0; max-width: 1040px; }
.beat:nth-of-type(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.beat:nth-of-type(even) .beat-words { order: 2; }
.beat.wide { grid-template-columns: 1fr; max-width: 860px; text-align: center; }
.beat-words h2 { font: 800 clamp(24px, 2.8vw, 32px)/1.1 "League Spartan", sans-serif; color: var(--brass); margin: 0 0 8px; text-shadow: 0 2px 3px #000; }
.beat-words p { margin: 0; font-size: 20px; line-height: 1.55; text-shadow: 0 2px 6px #000; }
.shot { margin: 0; }
.shot .frame { border-width: clamp(22px, 2.6vw, 38px); }
.shot .pic { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; text-align: center; color: var(--ink-soft); font-size: 16px; text-shadow: 0 1px 3px #000; }
.slot { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; text-align: center; background: repeating-linear-gradient(135deg, #1c130b 0 14px, #20160d 14px 28px); color: var(--ink-soft); font-size: 16px; box-shadow: inset 0 0 0 2px rgba(215,173,92,0.35); }
.gallery { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.teachers h2 { font: 800 22px/1.2 "League Spartan", sans-serif; color: var(--brass); margin: 6px 0 0; }
@media (max-width: 820px) {
  .beat, .beat:nth-of-type(even) { grid-template-columns: 1fr; gap: 16px; }
  .beat:nth-of-type(even) .beat-words { order: 0; }
  .beat-words p { font-size: 18px; }
}

/* About, the FAQ, the promises and the privacy page */
.prose h1 { font: 800 clamp(28px, 3.6vw, 40px)/1.1 "League Spartan", sans-serif; color: var(--brass); margin: 10px 0 4px; }
.prose h2 { font: 700 20px/1.3 "League Spartan", sans-serif; color: var(--brass); margin: 1.4em 0 0.2em; }
.prose h2 + p { margin-top: 0.2em; }
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 960px; margin: clamp(30px, 6vw, 110px) auto 0; }
.about .prose { margin: 0; max-width: none; }
.team { margin: 0; text-align: center; }
.team img { width: 200px; height: auto; margin: 0 auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.7)); }
.team figcaption { margin-top: 12px; font-size: 16px; color: var(--ink-soft); text-shadow: 0 1px 3px #000; }
.faq, .privacy, .promises-page { margin-top: clamp(30px, 6vw, 110px); }
.promise-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.promise { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; }
.promise svg { width: 96px; height: 96px; filter: drop-shadow(0 6px 6px rgba(0,0,0,0.7)); }
.promise h2 { margin: 0; } .promise p { margin: 4px 0 0; }
.promises-page h2.rule { margin-top: 34px; font-size: 15px; }
.links { padding-left: 1.2em; } .links li { margin: 0.5em 0; }
.privacy .big { font-size: 22px; line-height: 1.5; }
.updated { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 20px; }
  .promise { grid-template-columns: 72px 1fr; gap: 14px; } .promise svg { width: 72px; height: 72px; }
}
.shot.tall { max-width: 340px; margin: 0 auto; }
.beat-words .hush { font-style: italic; color: var(--ink-soft); font-size: 22px; }

/* the press kit */
.press-head, .press-game { margin-top: 40px; max-width: 980px; }
.press-head { margin-top: clamp(30px, 6vw, 110px); }
.press-game h2 { font-size: 26px; margin-top: 6px; } .press-game h2 a { color: inherit; text-decoration: none; }
.facts-inline { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin: 14px 0; }
.facts-inline dt { font: 700 13px/1.9 "League Spartan", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.facts-inline dd { margin: 0; }
.press-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 18px 0; }
.press-logo img { width: 260px; height: auto; }
.press-shots { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.press-shots a { display: block; text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.press-shots img { width: 100%; height: 130px; object-fit: contain; background: #0c0805; box-shadow: 0 0 0 1px rgba(215,173,92,0.35); margin-bottom: 6px; }
.press-shots small { opacity: 0.75; }
.clips { font-size: 16px; }
@media (max-width: 820px) { .facts-inline { grid-template-columns: 1fr; gap: 0; } .facts-inline dd { margin-bottom: 8px; } }

/* Dressing by date (season.js sets html[data-occasion]). Each occasion's decorations hang on
   elements every page has: the logo, the menu panel, the lead picture's frame. */
.logo { position: relative; display: inline-block; }
html[data-occasion="christmas"] .logo::after { content: ""; position: absolute; left: 1%; top: -12%; width: 20%; aspect-ratio: 410 / 285; background: url("/img/dress/santa_hat.svg") center / contain no-repeat; transform: rotate(-14deg); filter: drop-shadow(0 3px 3px rgba(0,0,0,0.6)); pointer-events: none; }
html[data-occasion="christmas"] .menu { position: relative; }
html[data-occasion="christmas"] .menu::before { content: ""; position: absolute; left: -58px; top: -34px; width: 66px; aspect-ratio: 200 / 196; background: url("/img/dress/holly.svg") center / contain no-repeat; transform: scaleX(-1) rotate(8deg); filter: drop-shadow(0 3px 3px rgba(0,0,0,0.7)); pointer-events: none; }
html[data-occasion="christmas"] .hero .frame, html[data-occasion="christmas"] .game-head .frame { position: relative; }
html[data-occasion="christmas"] .hero .frame::after, html[data-occasion="christmas"] .game-head .frame::after { content: ""; position: absolute; right: -40px; top: -44px; width: 88px; aspect-ratio: 200 / 196; background: url("/img/dress/holly.svg") center / contain no-repeat; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.7)); pointer-events: none; }
@media (max-width: 820px) { html[data-occasion="christmas"] .menu::before { display: none; } }

/* the lines under the logo that change by date */
.tagline .t { display: none; } .tagline .t-default { display: inline; }
html[data-occasion="groundhog"] .t-default, html[data-occasion="valentine"] .t-default { display: none; }
html[data-occasion="groundhog"] .t-groundhog, html[data-occasion="valentine"] .t-valentine { display: inline; }
.occasion-line { display: none; margin: 6px 0 0; max-width: 340px; text-align: center; font-size: 14px; line-height: 1.35; color: var(--ink); text-shadow: 0 1px 2px #000, 0 2px 8px #000; }
html[data-occasion="mothers"] .ol-mothers { display: block; }

/* things beside or on the logo, one occasion at a time (the hat is Christmas's, above) */
html[data-occasion="groundhog"] .logo::after, html[data-occasion="valentine"] .logo::after, html[data-occasion="flag"] .logo::after,
html[data-occasion="halloween"] .logo::after, html[data-occasion="newyear"] .logo::after, html[data-occasion="fathers"] .logo::after {
  content: ""; position: absolute; pointer-events: none; background: center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.65)); }
html[data-occasion="groundhog"] .logo::after { left: 101%; bottom: 2%; width: 24%; aspect-ratio: 160 / 150; background-image: url("/img/dress/toaster.svg"); }
html[data-occasion="valentine"] .logo::after { left: 100%; top: 4%; width: 20%; aspect-ratio: 352 / 480; background-image: url("/img/dress/valentine.jpg"); transform: rotate(8deg); box-shadow: 0 6px 12px rgba(0,0,0,0.6); }
html[data-occasion="flag"] .logo::after { left: 101%; top: 6%; width: 26%; aspect-ratio: 190 / 100; background-image: url("/img/dress/flag_us.svg"); transform: rotate(-4deg); }
html[data-occasion="halloween"] .logo::after { right: -7%; top: -2%; width: 17%; aspect-ratio: 140 / 130; background-image: url("/img/dress/pumpkin.svg"); }
html[data-occasion="newyear"] .logo::after { left: -9%; bottom: 0%; width: 32%; aspect-ratio: 170 / 90; background-image: url("/img/dress/horn.svg"); transform: rotate(-12deg); }
html[data-occasion="fathers"] .logo::after { left: 21%; top: 70%; width: 31%; aspect-ratio: 200 / 70; background-image: url("/img/dress/moustache.svg"); }

/* things on the menu panel: the groundhog peeks over its top; the flowers sit at its left end, like the holly */
html[data-occasion="groundhog"] .menu, html[data-occasion="thanksgiving"] .menu, html[data-occasion="spring"] .menu,
html[data-occasion="mothers"] .menu, html[data-occasion="memorial"] .menu { position: relative; }
html[data-occasion="groundhog"] .menu::before { content: ""; position: absolute; right: 14px; bottom: calc(100% - 4px); width: 124px; aspect-ratio: 300 / 145; background: url("/img/dress/woodchuck.png") center bottom / contain no-repeat; pointer-events: none; }
html[data-occasion="thanksgiving"] .menu::before, html[data-occasion="spring"] .menu::before,
html[data-occasion="mothers"] .menu::before, html[data-occasion="memorial"] .menu::before {
  content: ""; position: absolute; pointer-events: none; background: center / contain no-repeat; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.7)); }
html[data-occasion="thanksgiving"] .menu::before { left: -104px; top: -22px; width: 104px; aspect-ratio: 200 / 130; background-image: url("/img/dress/cornucopia.svg"); }
html[data-occasion="spring"] .menu::before { left: -112px; top: -26px; width: 116px; aspect-ratio: 180 / 110; background-image: url("/img/dress/blossom.svg"); }
html[data-occasion="mothers"] .menu::before { left: -52px; top: -30px; width: 50px; aspect-ratio: 100 / 130; background-image: url("/img/dress/carnation.svg"); transform: rotate(-12deg); }
html[data-occasion="memorial"] .menu::before { left: -48px; top: -24px; width: 46px; aspect-ratio: 100 / 120; background-image: url("/img/dress/poppy.svg"); transform: rotate(-10deg); }
@media (max-width: 820px) {
  html[data-occasion="thanksgiving"] .menu::before, html[data-occasion="spring"] .menu::before,
  html[data-occasion="mothers"] .menu::before, html[data-occasion="memorial"] .menu::before { display: none; }
  html[data-occasion="groundhog"] .logo::after, html[data-occasion="valentine"] .logo::after, html[data-occasion="flag"] .logo::after { left: auto; right: -20%; width: 18%; }
}

/* Halloween: the lamps burn low and a little green, and cobwebs hang in the frames' top-left corners */
html[data-occasion="halloween"] .room::after { background:
    radial-gradient(ellipse 30% 40% at 16% 19%, rgba(8,10,4,0.86), rgba(8,10,4,0.55) 55%, transparent 80%),
    linear-gradient(180deg, rgba(8,10,4,0.62), rgba(8,10,4,0) 260px),
    radial-gradient(ellipse 60% 40% at 50% 6%, rgba(150, 200, 90, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(10,12,6,0.42), rgba(10,12,6,0.48) 34%, rgba(10,10,6,0.72) 62%, rgba(10,8,5,0.9)); }
html[data-occasion="halloween"] .frame { position: relative; }
html[data-occasion="halloween"] .frame::before { content: ""; position: absolute; left: 0; top: 0; width: min(34%, 150px); aspect-ratio: 1; background: url("/img/dress/cobweb.svg") left top / contain no-repeat; pointer-events: none; z-index: 2; }

/* falling leaves (autumn, Thanksgiving) and confetti (New Year's), made by season.js */
body > .fall.fall { position: absolute; left: 0; right: 0; top: 0; height: 900px; overflow: hidden; pointer-events: none; z-index: 5; }
.fall i { position: absolute; top: -60px; display: block; background: center / contain no-repeat; animation: drop var(--dur) linear var(--delay) both; }
.fall i.leaf { width: 34px; height: 38px; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.5)); }
.fall i.bit { width: 7px; height: 12px; border-radius: 1px; }
@keyframes drop { 0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  25% { transform: translate(var(--sway), 220px) rotate(calc(var(--spin) * 0.3)); }
  50% { transform: translate(0, 440px) rotate(calc(var(--spin) * 0.6)); }
  75% { transform: translate(var(--sway), 660px) rotate(calc(var(--spin) * 0.85)); opacity: 1; }
  100% { transform: translate(0, 880px) rotate(var(--spin)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fall i { animation: none; opacity: 0.9; } }

/* Easter: a painted egg hidden on every page; click it and it rolls off into a secret passage */
.egg { position: absolute; z-index: 6; width: 30px; height: 38px; padding: 0; border: 0; background: url("/img/dress/egg.svg") center / contain no-repeat; cursor: pointer; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.6)); }
.egg.rolling { animation: roll 1.4s cubic-bezier(.4,0,.8,.6) forwards; }
@keyframes roll { to { transform: translateX(var(--to)) rotate(900deg); opacity: 0.2; } }
.passage { position: absolute; z-index: 5; width: 46px; height: 62px; border-radius: 23px 23px 0 0; background: radial-gradient(ellipse at 50% 70%, #000, #0b0604 70%); box-shadow: 0 0 0 4px #5a371b, 0 0 0 6px #24150a, 0 6px 12px rgba(0,0,0,0.6); transform-origin: bottom; animation: door 2.6s ease forwards; }
@keyframes door { 0% { transform: scaleY(0); } 20%, 75% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.credit-occ { display: none; } html[data-occasion="groundhog"] .co-groundhog { display: inline; }

/* Round 15 (Cal, 2026-11-21) */
/* under "Not out yet": follow on itch.io to hear when it's out */
.follow { margin: 8px 0 0; font-size: 16px; }
.follow a { font-weight: 600; }
/* each game page opens with the game itself, in the frame, as The Ancient Games' does */
.game-head .shot .frame { border-width: clamp(30px, 3.6vw, 50px); }
.frame > video.pic { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px #000; }
/* each game's app icon on its book, under the title; a game without one yet keeps the space (Cal, round 16) */
/* the plate stays over the binding's own lettering (28% to 62% down); the icon sits on the ornament below */
.cover .face { position: absolute; left: 0; right: 0; top: 28%; bottom: 3%; display: flex; flex-direction: column; align-items: center; gap: 5%; }
.cover .face .label { position: static; transform: none; flex: none; min-height: 49%; }
.cover .app-icon { flex: none; display: block; width: 27%; height: auto; aspect-ratio: 1; border-radius: 16%; box-shadow: 0 0 0 2px #1e0f05, 0 0 0 3px #b68f43, 0 2px 6px rgba(0,0,0,0.8); }
.cover .app-icon.none { visibility: hidden; }
/* a picture opens full size when clicked */
.zoomable { cursor: zoom-in; }
body > .zoom-view { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,4,2,0.94); cursor: zoom-out; outline: none; }
.zoom-view img, .zoom-view video { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 0 1px #000, 0 20px 40px rgba(0,0,0,0.8); }
/* the not-found page */
.not-found { max-width: 640px; margin: clamp(40px, 8vw, 120px) auto 0; text-align: center; }
.not-found h1 { font: 800 clamp(28px, 4vw, 40px)/1.1 "League Spartan", sans-serif; color: var(--brass); margin: 0 0 14px; text-shadow: 0 3px 3px #000; }
