/* Danger Damsel. The rules are the game's (docs/wiki/UI/UI style.md): black and white, one red for blood and lipstick;
   paper-white words with an ink edge; one job per font; the diamond is the mark.
   And the site's own (docs/wiki/Direction/Website research.md, the redesign of 7.11): one idea per screen; five fonts;
   nothing bigger than the logo; every picture from the game in one frame, one shape, one light, its words under it.
   One exception: the row of posters in the story (IzzI 7.11), a shot then a title card as a silent film has them: 4:5, their words on them.
   Never on this site: flicker of the picture, wobble, fog, stepped light, full-height film scratches. */

@font-face { font-family: Limelight; src: url(/assets/fonts/limelight.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Old Standard"; src: url(/assets/fonts/oldstandard.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Courier Prime"; font-weight: 700; src: url(/assets/fonts/courier.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "League Gothic"; src: url(/assets/fonts/league.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nothing You Could Do"; src: url(/assets/fonts/hand.woff2) format("woff2"); font-display: swap; }

:root {
  --black: #050505;
  --paper: #edebe0;
  --ink: #e6decc;
  --dim: #a7a294;
  --blood: #8c0812;
  --pen: #1a2868;
  --edge: 0 2px 0 rgba(0,0,0,.9), 2px 0 0 rgba(0,0,0,.9), 0 -2px 0 rgba(0,0,0,.9), -2px 0 0 rgba(0,0,0,.9),
          1.5px 1.5px 0 rgba(0,0,0,.9), -1.5px 1.5px 0 rgba(0,0,0,.9), 1.5px -1.5px 0 rgba(0,0,0,.9), -1.5px -1.5px 0 rgba(0,0,0,.9);
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--black);
  font: 400 clamp(18px, 1.3vw, 21px)/1.5 "Old Standard", Georgia, serif;
  overflow-x: hidden;
}
@media (hover: hover) and (pointer: fine) {
  html, a, button { cursor: url(/assets/img/cursor.png) 12 12, auto; }
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 12px; z-index: 60; background: var(--black); padding: 8px 12px; }
.skip:focus { left: 12px; }

/* ---- the title screen */
/* (a little short of the screen: the next picture's edge shows there is more) */
.title { position: relative; min-height: 93svh; overflow: hidden; display: grid; grid-template-columns: 62fr 38fr; align-items: center; background: var(--black); }
.street { position: absolute; inset: 0; }
.street picture { display: contents; }
.street img { width: 100%; height: 100%; object-fit: cover; object-position: 92% 0; }
/* the sign and the marquee stay; the sky at the right goes dark for the title */
.street::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 50%, rgba(5,5,5,.66) 63%, rgba(5,5,5,.78) 100%),
  linear-gradient(0deg, var(--black) 0, transparent 14%),
  linear-gradient(180deg, var(--black) 0, transparent 4%); }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.title-col { position: relative; grid-column: 2; z-index: 2; padding: clamp(20px, 5vh, 56px) var(--gutter) clamp(20px, 5vh, 56px) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.billing { margin: 0; font: 400 clamp(21px, 1.7vw, 44px)/1.1 "Old Standard", serif; letter-spacing: .03em; color: var(--ink); }
.billing span { display: block; margin-top: .3em; font: 400 .55em/1 "Old Standard", serif; letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
.logo { position: relative; margin: .25em 0 0; font: 400 clamp(64px, 7.8vw, 220px)/.98 Limelight, serif; color: var(--blood); }
.word { display: block; white-space: nowrap; }
.word .base { display: inline-block; width: 0; height: 0; }
.drips { position: absolute; left: -10%; top: 0; width: 120%; height: 150%; pointer-events: none; }
.rule { width: min(100%, 460px); margin: clamp(10px, 2vh, 22px) 0 clamp(8px, 1.6vh, 18px); display: flex; align-items: center; justify-content: center; position: relative; }
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 7px; margin-top: -3px;
  background: linear-gradient(90deg, transparent, var(--ink) 18%, var(--ink) 42%, transparent 42%, transparent 58%, var(--ink) 58%, var(--ink) 82%, transparent);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px); mask: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px); opacity: .7; }
.rule img { position: relative; width: 56px; height: auto; }
.pitch { text-wrap: balance; margin: 0 0 clamp(10px, 2.2vh, 24px); max-width: 20em; font-size: clamp(19px, 1.5vw, 36px); line-height: 1.3; color: var(--paper); text-shadow: var(--edge); }
.status { margin: 0 0 clamp(10px, 2vh, 22px); font-size: clamp(16px, 1.1vw, 26px); line-height: 1.2; letter-spacing: .04em; color: var(--dim); text-shadow: var(--edge); }

/* the game's menu: League Gothic, the chosen one with a diamond and a line */
.menu { display: flex; flex-direction: column; align-items: center; gap: clamp(0px, .5vh, 6px); }
.row { position: relative; display: inline-block; padding: 2px 6px; font: 400 clamp(29px, 2.6vw, 64px)/1.16 "League Gothic", Impact, sans-serif; letter-spacing: .035em; text-transform: uppercase; text-decoration: none; color: var(--paper); text-align: center; }
.row.dim { color: var(--dim); }
.row.small { font-size: clamp(23px, 1.9vw, 46px); }
.row span { position: relative; display: inline-block; }
.row span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .1s; }
.row span::before { content: ""; position: absolute; left: -.62em; top: 50%; width: .24em; height: .24em; margin-top: -.12em; background: var(--blood); transform: rotate(45deg) scale(0); transition: transform .1s; }
.row.chosen, .row:focus-visible { color: var(--paper); }
.row.chosen span::after, .row:focus-visible span::after { transform: none; }
.row.chosen span::before, .row:focus-visible span::before { transform: rotate(45deg) scale(1); }
@media (hover: hover) {
  .row:hover { color: var(--paper); }
  .row:hover span::after { transform: none; }
  .row:hover span::before { transform: rotate(45deg) scale(1); }
  .menu:hover .row.chosen:not(:hover) span::after, .menu:hover .row.chosen:not(:hover) span::before { transform: scaleX(0); }
}
.menu:focus-within .row.chosen:not(:focus-visible) span::after, .menu:focus-within .row.chosen:not(:focus-visible) span::before { transform: scaleX(0); }

/* a row she can't press yet: struck in red, as the game's own cards */
.row.struck { color: var(--dim); }
.row.struck span::after { top: 34%; bottom: auto; left: -.1em; right: -.1em; height: .34em; background: url(/assets/img/strike.webp) center / 100% 100% no-repeat; transform: none !important; }
.row.struck span::before { display: none; }
.row.struck.tried { animation: refuse .22s linear; }
/* the game's accounts: one line of the menu's type, a red diamond between them */
.accounts { margin-top: clamp(8px, 1.8vh, 20px); display: flex; flex-direction: column; align-items: center; }
.accounts-word { margin: 0; font-size: clamp(13px, .9vw, 20px); line-height: 1.4; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--dim); text-shadow: var(--edge); }
.accounts-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: clamp(16px, 1.3vw, 28px); }
.accounts .row { padding: 2px 0; font-size: clamp(23px, 1.75vw, 42px); color: var(--paper); text-shadow: var(--edge); }
.accounts .row + .row::before { content: ""; position: absolute; left: calc(clamp(16px, 1.3vw, 28px) / -2 - .1em); top: 50%; width: .2em; height: .2em; margin-top: -.1em; background: var(--blood); transform: rotate(45deg); }
.accounts .row span::before { display: none; }

@media (max-width: 899px) and (orientation: portrait) {
  .title { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; }
  .street { position: relative; inset: auto; width: 100%; height: 34svh; flex: none; }
  .street::after { background: linear-gradient(0deg, var(--black) 0, transparent 34%), linear-gradient(180deg, rgba(5,5,5,.6) 0, transparent 12%); }
  .street img { object-position: 50% 0; }
  .rule::before { background: linear-gradient(90deg, transparent, var(--ink) 18%, var(--ink) 40%, transparent 40%, transparent 60%, var(--ink) 60%, var(--ink) 82%, transparent); }
  .title-col { margin: -13vw 0 0; padding: 0 var(--gutter) 14px; width: 100%; }
  .billing { font-size: 18px; }
  .billing span { display: inline; margin: 0 0 0 .4em; font-size: .72em; letter-spacing: .22em; }
  .logo { font-size: min(20.5vw, 112px); margin-top: .16em; }
  .rule { margin: 4px 0 4px; }
  .pitch { margin-bottom: 6px; }
  .status { margin: 0 0 6px; }
  .row { font-size: 34px; line-height: 1.22; min-height: 44px; }
  .row.small { font-size: 27px; min-height: 44px; line-height: 44px; padding-block: 0; }
  .accounts-row { column-gap: min(3.6vw, 18px); flex-wrap: nowrap; }
  .accounts .row { font-size: min(5.7vw, 30px); min-height: 44px; line-height: 44px; padding-block: 0; }
  .accounts .row + .row::before { left: calc(min(3.6vw, 18px) / -2 - .1em); }
}
/* wide windows: there is little to crop, so the street slides left to leave the sky to the title */
@media (min-aspect-ratio: 19/10) { .street img { width: 114%; max-width: none; margin-left: -14%; } }
@media (min-width: 600px) and (max-width: 899px) and (orientation: portrait) {
  .title-col { margin-top: -3vw; }
  .street::after { background: linear-gradient(0deg, var(--black) 0, transparent 46%), linear-gradient(180deg, rgba(5,5,5,.6) 0, transparent 12%); }
}
/* short windows, phones on their side included */
@media (orientation: landscape) and (max-height: 620px) {
  .title { min-height: 100svh; }
  .logo { font-size: min(15vh, 8vw); }
  .row { font-size: 26px; } .row.small { font-size: 21px; }
  .pitch { font-size: 17px; margin-bottom: 6px; }
  .title-col { padding-block: 12px; }
}
@media (orientation: landscape) and (max-height: 430px) {
  .billing, .rule, .accounts-word { display: none; }
  .accounts { margin-top: 2px; } .accounts .row { font-size: 20px; }
  .status { margin-bottom: 4px; font-size: 15px; }
  .row { font-size: 24px; min-height: 0; } .row.small { font-size: 20px; }
  .pitch { font-size: 15px; margin-top: 10px; }
}

/* ---- a screen: one idea */
.screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(28px, 5svh, 64px) var(--gutter); }

/* every picture from the game: one shape, one thin line, its words under it, never on it */
.frame { margin: 0; aspect-ratio: 1.37; width: 100%; border-radius: clamp(6px, .7vw, 12px); overflow: hidden; box-shadow: 0 0 0 1px rgba(230,222,204,.26); background: #000; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.big { width: min(100%, calc(76svh * 1.37)); }
.first-look { padding-top: 2svh; flex-direction: row; gap: clamp(16px, 2.4vw, 56px); }
.wall { display: none; }
@media (min-width: 1500px) and (min-aspect-ratio: 3/2) {
  .wall { display: block; flex: 0 1 auto; width: min(15vw, 44svh); height: auto; min-width: 0; filter: brightness(.82) drop-shadow(0 10px 18px rgba(0,0,0,.8)); }
  .wall.left { transform: rotate(-1.6deg); }
  .wall.right { transform: rotate(1.2deg); }
}
@media (orientation: portrait) { .first-look { padding-block: 8px 24px; } }

.sub, .toast { font: 700 clamp(17px, 1.3vw, 30px)/1.3 "Courier Prime", "Courier New", monospace; color: var(--paper); text-align: center; }
.toast span { padding: .15em .6em; background: rgba(5,5,5,.88); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sub b { font-weight: 700; }
.sub[tabindex="-1"]:focus { outline: none; }
.sub { margin: 0; text-wrap: balance; }

/* ---- the story */
.card-num { margin: 0 0 .5em; font-size: clamp(15px, 1.1vw, 18px); line-height: 1; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); text-align: center; }
.card-name { margin: 0; font: 400 clamp(30px, 3.2vw, 76px)/1.05 Limelight, serif; color: var(--paper); text-align: center; }
.lead { text-wrap: balance; margin: clamp(10px, 2svh, 22px) 0 clamp(16px, 3svh, 32px); max-width: 32em; font-size: clamp(20px, 1.9vw, 44px); line-height: 1.3; color: var(--paper); text-align: center; }
.story { padding-inline: 0; }
.story .lead, .story .card-name, .story .card-num { padding-inline: var(--gutter); }
/* the row of posters: the next one cut by the edge, so it plainly goes on */
.strip-wrap { position: relative; width: 100%; }
.strip { display: flex; gap: clamp(8px, 1vw, 16px); overflow-x: auto; padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.post { flex: none; margin: 0; height: clamp(300px, 42svh, 500px); aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: clamp(6px, .7vw, 12px); overflow: hidden; box-shadow: 0 0 0 1px rgba(230,222,204,.26); background: #000; }
.post img { width: 100%; height: 100%; object-fit: cover; }
.strip-go { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(5,5,5,.86); box-shadow: 0 0 0 1px rgba(230,222,204,.4); transition: opacity .15s; }
.strip-go::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border: solid var(--paper); border-width: 2px 2px 0 0; }
.strip-go.back { left: calc(var(--gutter) - 10px); } .strip-go.back::after { transform: translate(-30%, -50%) rotate(-135deg); }
.strip-go.on { right: calc(var(--gutter) - 10px); } .strip-go.on::after { transform: translate(-70%, -50%) rotate(45deg); }
.strip-go.none { opacity: 0; pointer-events: none; }
.strip-go[hidden] { display: none; }
@media (max-width: 899px) and (orientation: portrait) {
  .strip { gap: 10px; padding-inline: 16px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; }
  .post { height: auto; width: 78vw; }
}

/* ---- what you do: her hand, her pockets */
.pockets { flex-direction: row; gap: clamp(20px, 3vw, 56px); }
.pockets > .frame { flex: 0 1 auto; width: min(52%, calc(70svh * 1.37)); }
.pockets-words { flex: 0 1 34em; min-width: 0; color: var(--paper); font-size: clamp(19px, 1.5vw, 36px); line-height: 1.32; }
.pockets-words p { margin: 0 0 .7em; text-wrap: pretty; }
.items-page { margin-top: clamp(12px, 2svh, 24px); padding: clamp(30px, 3.6vw, 52px) clamp(40px, 5.4vw, 86px); background: url(/assets/img/book_page_r.webp) center / 100% 100% no-repeat; color: #1a1711; filter: drop-shadow(0 8px 20px rgba(0,0,0,.8)); }
.items-page h2 { margin: 0 0 .3em; font: 400 clamp(24px, 2vw, 34px)/1 Limelight, serif; color: #1a1711; text-align: center; }
.items-page ul { list-style: none; margin: 0; padding: 0; }
.items-page li { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); padding: 3px 0; border-bottom: 1px dashed rgba(26,23,17,.3); }
.items-page li:last-child { border: 0; }
.items-page img { width: clamp(40px, 3.8vw, 92px); height: auto; flex: none; }
.items-page b { display: block; font: 700 clamp(14px, 1vw, 25px)/1.2 "Courier Prime", "Courier New", monospace; color: #1a1711; }
.note { display: block; margin-top: 1px; font: 400 clamp(19px, 1.5vw, 38px)/1.12 "Nothing You Could Do", cursive; color: var(--pen); }
@media (max-width: 899px) {
  .pockets { flex-direction: column; }
  .pockets > .frame { width: 100%; }
  .pockets-words { flex: none; width: 100%; margin-top: 4px; text-align: center; }
  .items-page { text-align: left; }
}

/* ---- one wide picture, edge to edge, once */
.band { margin: clamp(10px, 2svh, 24px) 0; }
.band img { width: 100%; height: auto; }
@media (max-width: 699px) { .band img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 0 50%; } }

/* ---- the people */
/* all the same height, each as wide as their drawing: nobody's giant, nobody's tiny */
.bill ul { --h: min(58svh, 660px, calc((100vw - 20px - 2 * var(--gutter) - 70px) / 3.36)); list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; gap: 14px; }
.bill li { flex: none; width: calc(var(--ar) * var(--h)); min-width: 0; }
.bill li.br { display: none; }
.bill button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 8px 2px; }
.bill img { width: 100%; height: var(--h); transition: transform .16s; transform-origin: bottom center; }
.bill button:hover img, .bill button:focus-visible img, .bill .playing img { transform: translateY(-6px); }
.bill strong { margin-top: 12px; font: 400 clamp(19px, 1.6vw, 40px)/1.1 Limelight, serif; color: var(--paper); text-wrap: balance; }
.bill em { margin-top: 3px; font-size: clamp(14px, 1vw, 24px); line-height: 1.3; font-style: normal; letter-spacing: .03em; color: var(--dim); }
.bill .playing em::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .45em; vertical-align: .08em; background: var(--paper); transform: rotate(45deg); }
.bill-line { min-height: 2.7em; max-width: 46em; margin-top: clamp(12px, 2svh, 24px); padding: .25em .9em; background: rgba(5,5,5,.9); }
@media (max-width: 899px) {
  .bill ul { --h: min(28svh, calc((100vw - 2 * var(--gutter) - 2 * 14px - 2px) / 1.75)); flex-wrap: wrap; row-gap: 12px; }
  .bill li { flex: none; }
  .bill li.br { display: block; width: 100%; height: 0; margin-top: -16px; }
  .bill strong { font-size: 17px; min-height: 2.2em; display: flex; align-items: flex-end; }
  .bill-line { min-height: 4em; order: -1; margin: 0 0 12px; }
  .bill em { font-size: 13px; min-height: 2.6em; }
}

/* ---- "No." */
.no-screen { flex-direction: row; gap: clamp(20px, 3vw, 56px); }
.no-screen > .frame { flex: 0 1 auto; width: min(58%, calc(74svh * 1.37)); }
.no-words { flex: 0 1 28em; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.no-betty { width: auto; height: clamp(180px, 36svh, 480px); margin-bottom: clamp(8px, 1.6svh, 18px); }
.no-words .row.no { margin-top: clamp(4px, 1svh, 12px); font: 400 clamp(72px, 7vw, 170px)/1 Limelight, serif; letter-spacing: 0; text-transform: none; }
.no-hint { min-height: 1.4em; margin: 2px 0 clamp(6px, 1.4svh, 16px); font-size: 17px; line-height: 1.4; color: var(--dim); }
.no-words .sub { min-height: 2.6em; }
.no span::after { top: 40%; bottom: auto; left: -.14em; right: -.14em; height: .26em; background: url(/assets/img/strike.webp) center / 100% 100% no-repeat; transform: scaleX(var(--strike, 1)) !important; transform-origin: right; transition: transform .4s; }
.no span::before { display: none; }
.no.tried { animation: refuse .22s linear; }
@keyframes refuse { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.no:not(.free) { color: var(--dim); }
.no.free { color: var(--paper); }
@media (max-width: 899px) {
  .no-screen { flex-direction: column; min-height: 0; }
  .no-screen > .frame { width: 100%; }
  .no-words { flex: none; width: 100%; margin-top: 10px; }
  .no-betty { height: 130px; margin-bottom: 8px; }
  .no-hint { margin-bottom: 8px; }
  .no-words .sub { min-height: 2.8em; }
}

/* ---- the end of the page: one small line */
.foot { padding: clamp(16px, 3svh, 32px) var(--gutter) calc(clamp(56px, 8svh, 80px) + env(safe-area-inset-bottom)); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(18px, 3vw, 40px); margin-bottom: 6px; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.9; }
.foot nav a { display: inline-block; min-height: 44px; line-height: 36px; padding: 4px 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fine a { display: inline-block; padding: 14px 2px; margin: -14px 0; }
.fine { margin: 0 auto; max-width: 52em; font-size: 15px; line-height: 1.45; color: var(--dim); text-wrap: balance; }

/* the dial, always in reach */
.radio { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px; background: rgba(5,5,5,.8); border-radius: 20px; font-size: 15px; line-height: 1; letter-spacing: .02em; color: var(--dim); transition: opacity .2s; }
.radio.away:not(:focus-visible) { opacity: 0; pointer-events: none; }
.radio-icon { position: relative; display: block; width: 20px; height: 20px; flex: none; }
.radio img { display: block; width: 20px; height: 20px; opacity: .65; }
/* off: a line through the note. On: the note lit and a ring round the dial. Plain to see at any size. */
.radio[aria-pressed="false"] .radio-icon::after { content: ""; position: absolute; left: -2px; right: -2px; top: 9px; height: 2px; background: var(--paper); box-shadow: 0 0 0 1px var(--black); transform: rotate(-45deg); }
@media (max-width: 999px) { .radio { min-width: 44px; min-height: 44px; padding: 0 12px; justify-content: center; bottom: max(10px, env(safe-area-inset-bottom)); right: 10px; } .radio:not(.fresh):not(.told) .radio-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.radio[aria-pressed="true"] { color: var(--paper); box-shadow: 0 0 0 1px var(--paper); }
.radio[aria-pressed="true"] img { opacity: 1; }

/* a remark at the bottom of the screen, when she's left standing */
.toast { position: fixed; left: 50%; bottom: max(70px, calc(env(safe-area-inset-bottom) + 66px)); z-index: 28; width: min(92vw, 44em); margin: 0; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.on { opacity: 1; }
.radio.told { background: var(--black); }

/* the prompt beside what you're pointing at, as the game's */
.prompt { position: fixed; left: 0; top: 0; z-index: 40; display: none; align-items: center; gap: 6px; pointer-events: none; }
.prompt.on { display: flex; }
.prompt.paper span { color: #1a1711; text-shadow: none; }
.prompt img { width: 34px; height: 34px; }
.prompt span { font: 400 19px/1.1 "League Gothic", Impact, sans-serif; letter-spacing: .03em; color: var(--paper); text-shadow: var(--edge); white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .prompt { display: none !important; } }

/* the film: grain over everything. No flicker, no vignette on the window. */
.film { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.grain { position: absolute; inset: -160px; background: url(/assets/img/grain.png); opacity: .1; will-change: transform; animation: grain 1.1s steps(11) infinite; }
@keyframes grain {
  0% { transform: translate(0,0); } 10% { transform: translate(-37px,23px); } 20% { transform: translate(61px,-41px); }
  30% { transform: translate(-83px,-13px); } 40% { transform: translate(29px,71px); } 50% { transform: translate(-53px,47px); }
  60% { transform: translate(97px,11px); } 70% { transform: translate(-19px,-89px); } 80% { transform: translate(43px,-67px); }
  90% { transform: translate(-71px,31px); } 100% { transform: translate(0,0); }
}

/* the iris: a hole in the black */
.iris { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; opacity: 0; }
.iris.on { opacity: 1; }
.iris i { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--d, 300vmax); height: var(--d, 300vmax); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 300vmax #000; transition: width var(--t, .5s) cubic-bezier(.5,.05,.4,1), height var(--t, .5s) cubic-bezier(.5,.05,.4,1); }

/* the opening, once a visit: black from the first paint, so the title never flashes before it */
.open-black body::before { content: ""; position: fixed; inset: 0; z-index: 44; background: #000; animation: open-gone 0s 4.5s forwards; }
@keyframes open-gone { to { visibility: hidden; } }
.opening { position: fixed; inset: 0; z-index: 45; background: #000; overflow: hidden; }
.opening canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.opening-name { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font: 400 clamp(26px, 3vw, 52px)/1 Limelight, serif; color: var(--ink); }
.opening-presents { position: absolute; left: 50%; top: calc(40% + clamp(30px, 3.4vw, 60px)); width: clamp(84px, 9vw, 150px); height: auto; transform: translateX(-50%); clip-path: inset(0 100% 0 0); filter: brightness(.92); }
.opening-bolt { position: absolute; left: 50%; top: 0; height: 66%; aspect-ratio: 1 / 2; transform: translateX(10%); background: url(/assets/img/lightning.webp) 0 0 / 400% 200% no-repeat; opacity: 0; }
.opening-drop { position: absolute; left: 50%; top: calc(40% + clamp(60px, 6vw, 96px)); width: 10px; height: 16px; margin-left: -5px; background: var(--blood); border-radius: 50% 50% 50% 50% / 62% 62% 42% 42%; opacity: 0; }
.opening-skip { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; font-size: 15px; line-height: 1; color: rgba(167,162,148,.75); }

/* ---- the wrong door (404) */
.wrong { min-height: 100svh; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.wrong > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wrong .row { text-shadow: var(--edge); }
.wrong-words { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter) clamp(52px, 11vh, 110px); }
.wrong .sub { margin: 0 0 .6em; font-size: clamp(22px, 3vw, 46px); text-shadow: var(--edge); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  * { transition-duration: .01ms !important; }
}
html:not(.js) .film .grain { animation: none; }
