/* Self-hosted fonts (SIL Open Font License): Fraunces, Newsreader, IBM Plex Mono. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/fraunces-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/fraunces-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/fraunces-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 600; src: url("/fonts/fraunces-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 600; src: url("/fonts/fraunces-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 600; src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 700; src: url("/fonts/fraunces-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 700; src: url("/fonts/fraunces-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 700; src: url("/fonts/fraunces-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/newsreader-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/newsreader-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 400; src: url("/fonts/newsreader-vietnamese-400-italic.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 400; src: url("/fonts/newsreader-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 400; src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 600; src: url("/fonts/newsreader-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 600; src: url("/fonts/newsreader-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 600; src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/ibm-plex-mono-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/ibm-plex-mono-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Old Tricks: the room. Tokens come from the brotobro and books sites. */
:root {
  --ink-0: #100409;
  --ink-1: #1a0710;
  --maroon: #43101f;
  --maroon-2: #6b1526;
  --red: #c0384a;
  --red-soft: #e0687a;
  --gold: #c9a227;
  --silver: #b9b4aa;
  --bronze: #a8673a;
  --paper: #f4ebdc;
  --paper-2: #ece0cd;
  --paper-3: #e2d3ba;
  --ink: #2b1a19;
  --ink-mid: #6d5348;
  --ink-thin: rgba(43, 26, 25, .14);
  --on-dark: #f4ebdc;
  --on-dark-mute: rgba(244, 235, 220, .74);
  --on-dark-faint: rgba(244, 235, 220, .56);
  --on-dark-line: rgba(244, 235, 220, .18);
  --good: #2f6b3f;
  --shadow: 0 34px 70px -28px rgba(0, 0, 0, .85), 0 6px 18px -8px rgba(0, 0, 0, .6);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-body: clamp(16px, 1.05vw + 13px, 19px);
  --t-title: clamp(26px, 3.4vw + 12px, 46px);
  --t-mono: clamp(12px, .3vw + 11px, 13px);
  --rule: clamp(28px, 1.2vw + 23px, 32px);
  --wrap: 640px;
  --radius: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -3;
  background:
    radial-gradient(70% 48% at 50% 0%, rgba(150, 30, 55, .40) 0%, transparent 62%),
    radial-gradient(52% 42% at 84% 22%, rgba(105, 21, 38, .34) 0%, transparent 60%),
    radial-gradient(60% 50% at 12% 70%, rgba(67, 16, 31, .40) 0%, transparent 64%),
    linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 55%, #0b0307 100%);
}
body::after { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--ink-0); }
img, svg { max-width: 100%; }
a { color: var(--red-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }
.note :focus-visible, .paper :focus-visible { outline-color: var(--red); }
main:focus { outline: none; }
code { font-family: var(--mono); font-size: .88em; background: rgba(244, 235, 220, .1); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .06em; color: var(--on-dark-faint); }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-family: var(--mono); font-size: var(--t-mono); }
.skip-link:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

/* the ghost notes and the grain */
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.drift { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ghost { position: absolute; width: clamp(110px, 14vw, 190px); aspect-ratio: 3 / 4; border-radius: 4px;
  background: linear-gradient(180deg, rgba(244, 235, 220, .08), rgba(244, 235, 220, .025)), repeating-linear-gradient(180deg, transparent 0 13px, rgba(244, 235, 220, .05) 13px 14px);
  border: 1px solid rgba(244, 235, 220, .09); transform: rotate(var(--rot, 0deg)); animation: float 26s ease-in-out infinite alternate; }
.ghost::before { content: ""; position: absolute; left: 12%; right: 42%; top: 12%; height: 3px; border-radius: 2px; background: rgba(224, 104, 122, .28); }
.g1 { left: 4%; top: 18%; --rot: -8deg; }
.g2 { right: 6%; top: 9%; --rot: 6deg; animation-delay: -6s; }
.g3 { left: 9%; top: 64%; --rot: 5deg; animation-delay: -12s; }
.g4 { right: 3%; top: 58%; --rot: -4deg; animation-delay: -3s; }
@keyframes float { from { translate: 0 0; } to { translate: 0 -38px; } }
@keyframes arrive { from { transform: translateY(14px) scale(.985); opacity: .4; } to { transform: none; opacity: 1; } }

/* the top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: linear-gradient(180deg, rgba(16, 4, 9, .95), rgba(16, 4, 9, .6) 75%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; white-space: nowrap; font-family: var(--display); font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 600; min-height: 44px; }
.mark { width: 12px; height: 15px; border-radius: 2px; background: var(--paper); box-shadow: 3px 3px 0 0 var(--red); flex: none; }
.bar-nav { display: flex; gap: clamp(2px, 1.6vw, 18px); flex-wrap: wrap; justify-content: center; }
.bar-nav a { color: var(--on-dark-mute); text-decoration: none; padding: 12px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: #fff; }
.bar-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red-soft); text-underline-offset: 8px; }
.streak { color: var(--on-dark-mute); text-decoration: none; white-space: nowrap; padding: 12px 4px; }
.streak-n { color: var(--gold); font-weight: 500; }
@media (max-width: 560px) { .bar { gap: 6px; letter-spacing: .08em; } .brand span:last-child { font-size: 15px; } .bar-nav a { padding-inline: 5px; } }

/* page frame */
main { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px 72px; display: grid; gap: 32px; }
.is-embed main { padding-block: 0; max-width: none; gap: 16px; }
.site-foot { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--on-dark-line);
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .04em; line-height: 1.7; color: var(--on-dark-faint); }
.site-foot p { margin: 12px 0 0; max-width: 72ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { padding: 8px 0; display: inline-block; }

.hero { text-align: center; padding-top: 24px; display: grid; gap: 12px; justify-items: center; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-faint); }
.eyebrow span { color: var(--red-soft); }
.hero-title, .page-head h1 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1; color: #fbf4e8; text-wrap: balance; text-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.hero-title { font-size: clamp(48px, 9vw + 10px, 88px); }
.page-head { display: grid; gap: 12px; padding-top: 28px; }
.page-head h1 { font-size: clamp(32px, 4vw + 14px, 52px); line-height: 1.04; }
.hero-sub, .lede { margin: 0; max-width: 40ch; color: var(--on-dark-mute); font-size: clamp(18px, 1vw + 14px, 22px); text-wrap: balance; }
.lede { max-width: 56ch; }
.prose { display: grid; gap: 14px; max-width: 64ch; }
.prose h2 { margin: 18px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 1.6vw + 14px, 30px); line-height: 1.15; color: #fbf4e8; }
.prose p, .prose ul { margin: 0; color: var(--on-dark-mute); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--on-dark); font-weight: 600; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.plain-list a { font-family: var(--display); font-size: 19px; }
.notice { margin: 0; padding: 12px 16px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); color: var(--on-dark-mute); }
.loading { margin: 0; text-align: center; color: var(--on-dark-faint); font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; padding: 40px 0; }

/* buttons */
.btn { appearance: none; cursor: pointer; white-space: nowrap; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; touch-action: manipulation; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-ink { background: var(--maroon); color: var(--paper); }
.btn-ink:hover { background: var(--maroon-2); color: var(--paper); }
.btn-line { background: transparent; color: var(--maroon); border-color: rgba(67, 16, 31, .45); }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.btn-dark { background: transparent; color: var(--on-dark-mute); border-color: var(--on-dark-line); }
.btn-dark:hover { border-color: var(--red-soft); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.linkish { appearance: none; background: none; border: 0; padding: 8px 0; min-height: 36px; cursor: pointer; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); border-bottom: 1px solid rgba(67, 16, 31, .35); }
.linkish:hover { color: var(--red); border-color: var(--red); }
.linkish.skip { color: var(--ink-mid); }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 520px); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 16px; }

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

/* The note and everything on it */
.note {
  position: relative; color: var(--ink); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid rgba(43, 26, 25, .16); box-shadow: var(--shadow);
  padding: clamp(22px, 4.4vw, 42px) clamp(18px, 4.4vw, 42px) clamp(20px, 3vw, 30px) clamp(26px, 5.6vw, 54px);
  animation: arrive .5s cubic-bezier(.2, .7, .2, 1);
}
.is-embed .note { animation: none; box-shadow: none; }
.note::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(12px, 2.4vw, 24px); width: 1px; background: rgba(192, 56, 74, .3); pointer-events: none; }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .12em; color: var(--ink-mid); margin-bottom: 14px; }
.note-title { margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: var(--t-title); line-height: 1.04; letter-spacing: -.018em; color: #23110f; text-wrap: balance; }
.story { background: repeating-linear-gradient(180deg, transparent 0 calc(var(--rule) - 1px), var(--ink-thin) calc(var(--rule) - 1px) var(--rule)); line-height: var(--rule); }
.story p { margin: 0 0 var(--rule); color: #33201d; max-width: 62ch; }
.story p:first-child::first-letter { font-family: var(--display); font-size: calc(var(--rule) * 1.9); font-weight: 600; line-height: 1; float: left; margin: 0 .08em 0 0; color: var(--maroon); }
.question { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1vw + 15px, 23px); line-height: 1.3; color: #23110f; text-wrap: balance; }
.how { margin: 0 0 18px; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .04em; color: var(--ink-mid); }
.plate { margin: 4px 0 18px; }
.plate img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 0 0 1px rgba(43, 26, 25, .2); }
.plate figcaption { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; color: var(--ink-mid); margin-top: 6px; }

/* the stamp */
.result { position: relative; }
.stamp { position: absolute; right: 14px; top: 16px; transform: rotate(-9deg); border: 3px solid var(--red); color: var(--red); padding: 4px 12px; border-radius: 4px;
  font-family: var(--mono); font-weight: 500; letter-spacing: .24em; font-size: 15px; text-transform: uppercase; opacity: .82; pointer-events: none; mix-blend-mode: multiply; animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stamp { from { transform: rotate(-9deg) scale(1.8); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .82; } }

/* the answer box */
.play { margin: 8px 0 14px; }
.answer { display: grid; gap: 12px; }
.answer-fields { display: grid; gap: 10px; }
.answer-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.field { display: grid; gap: 4px; flex: 1 1 200px; min-width: 0; }
.field > label, .field > .legend { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); }
.answer-field { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid rgba(43, 26, 25, .55); background: rgba(255, 250, 241, .55); padding: 0 8px 0 12px; min-width: 0; border-radius: 4px 4px 0 0; min-height: 48px; }
.answer-field:focus-within { border-bottom-color: var(--maroon-2); background: #fffaf1; box-shadow: 0 0 0 3px rgba(107, 21, 38, .16); }
.answer-field .unit { font-family: var(--mono); font-size: 15px; color: var(--ink-mid); white-space: nowrap; }
.answer-field input { appearance: none; border: 0; background: transparent; font-family: var(--mono); font-size: 19px; color: var(--ink); padding: 10px 4px; width: 100%; min-width: 0; outline: none; }
.choices { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid rgba(43, 26, 25, .25); border-radius: var(--radius); background: rgba(255, 250, 241, .5); cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--maroon-2); flex: none; }
.choice:has(input:checked) { border-color: var(--maroon-2); background: #fffaf1; }
.feedback { min-height: 1.6em; margin: 10px 0 0; font-family: var(--mono); font-size: calc(var(--t-mono) + 1px); letter-spacing: .02em; color: var(--maroon-2); line-height: 1.5; }
.feedback.good { color: var(--good); }
.feedback.nudge { color: #4a2a1f; border-left: 3px solid var(--red); padding-left: 10px; }

/* helpers */
.helper { margin: 8px 0 14px; padding: 12px 14px; border: 1px dashed rgba(43, 26, 25, .35); border-radius: var(--radius); background: rgba(255, 250, 241, .45); display: grid; gap: 10px; }
.helper h2 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: var(--t-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.pad { display: flex; flex-wrap: wrap; gap: 6px 4px; font-family: var(--mono); }
.pad-word { display: inline-flex; gap: 2px; margin-right: 10px; margin-bottom: 8px; }
.pad-cell { display: grid; text-align: center; gap: 2px; width: 28px; }
.pad-cell .c { font-size: 17px; color: var(--ink); line-height: 1.2; }
.pad-cell input { width: 100%; min-height: 32px; text-align: center; font-family: var(--mono); font-size: 16px; text-transform: uppercase; border: 1px solid rgba(43, 26, 25, .4); border-radius: 3px; background: #fffaf1; color: var(--maroon-2); padding: 2px 0; }
.pad-punct { align-self: end; font-size: 17px; padding-bottom: 6px; }
.pad-counts { font-family: var(--mono); font-size: var(--t-mono); color: var(--ink-mid); overflow-wrap: anywhere; }
.wheel-line { font-family: var(--mono); font-size: 16px; letter-spacing: .12em; overflow-wrap: anywhere; color: var(--ink); background: rgba(255, 250, 241, .7); padding: 8px 10px; border-radius: 4px; word-break: break-all; }
.wheel-range { width: 100%; accent-color: var(--maroon-2); min-height: 32px; }
.try-all { max-height: 16em; overflow: auto; font-family: var(--mono); font-size: 13px; margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.try-all li { display: grid; grid-template-columns: 3ch 1fr; gap: 10px; }
.try-all li.hit { color: var(--good); font-weight: 500; }

/* hints and the help row */
.tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(43, 26, 25, .16); padding-top: 14px; margin-top: 18px; }
.tools .group { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.timer { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.hints { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.hints li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: rgba(201, 162, 39, .12); border: 1px solid rgba(201, 162, 39, .4); border-radius: 3px 6px 5px 4px; padding: 10px 12px; color: #3a2a1f; font-style: italic; transform: rotate(-.3deg); animation: arrive .35s ease; }
.hints li:nth-child(even) { transform: rotate(.35deg); }
.hints li b { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: #6b4d0c; padding-top: 3px; white-space: nowrap; }
.panel { margin-top: 14px; border: 1px solid rgba(43, 26, 25, .2); border-radius: var(--radius); padding: 14px 16px; background: rgba(255, 250, 241, .6); }
.panel h2 { margin: 0 0 8px; font-family: var(--mono); font-weight: 500; font-size: var(--t-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.panel p { margin: 0 0 10px; }
.walk-progress { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); }
.walk-step { display: grid; gap: 10px; }
.walk-shown { margin: 0; padding: 8px 10px; background: rgba(201, 162, 39, .14); border-left: 3px solid var(--gold); font-style: italic; }
.walk-list { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; color: var(--ink-mid); font-size: .92em; }
.walk-list li.done { color: var(--good); }
.rate { margin: 10px 0 0; font-family: var(--mono); font-size: var(--t-mono); color: var(--maroon-2); }

/* the solved screen */
.result { margin-top: 18px; border-radius: var(--radius); padding: 18px; background: #fffaf1; border: 1px solid rgba(43, 26, 25, .2); display: grid; gap: 16px; animation: arrive .45s cubic-bezier(.2, .7, .2, 1); }
.result-top { display: flex; gap: 16px; align-items: center; }
.result-top h2, .result-top h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 1.4vw + 16px, 28px); line-height: 1.1; color: #23110f; }
.result-top p { margin: 4px 0 0; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .06em; color: var(--ink-mid); }
.flagcode { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flagcode button.flag-btn { appearance: none; cursor: pointer; border: 0; text-align: left; font-family: var(--mono); font-size: 15px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; overflow-wrap: anywhere; min-height: 44px; }
.letter { margin: 0; font-family: var(--mono); letter-spacing: .1em; color: var(--ink-mid); font-size: var(--t-mono); }
.letter b { font-size: 22px; color: var(--maroon); letter-spacing: .04em; }
.reveal-text { margin: 0; }
.trick-panel { background: var(--paper-2); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--ink-thin); display: grid; gap: 8px; }
.trick-panel h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; color: #23110f; }
.trick-panel p { margin: 0; }
.trick-panel ul { margin: 0; padding-left: 1.2em; font-size: .92em; }
.trick-panel a, .original a { color: var(--maroon-2); }
.original { display: grid; gap: 8px; border-top: 1px solid var(--ink-thin); padding-top: 14px; }
.original h3 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: var(--t-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.original p { margin: 0; }
.original blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--paper-3); font-style: italic; }
.original .src { font-family: var(--mono); font-size: var(--t-mono); color: var(--ink-mid); }
.share { display: grid; gap: 8px; }
.share textarea { width: 100%; min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--paper-2); border: 1px solid var(--ink-thin); border-radius: 4px; padding: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.offer { padding: 12px 14px; border: 1px dashed rgba(43, 26, 25, .3); border-radius: var(--radius); display: grid; gap: 2px; }
.offer a { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--maroon-2); }
.offer p { margin: 0; font-size: .92em; color: var(--ink-mid); }

/* pennants */
.pennant-svg { width: 54px; height: 54px; flex: none; color: var(--ink); }
.pennant-svg .pole { fill: currentColor; }
.pennant-svg .pf { stroke: rgba(0, 0, 0, .3); stroke-width: 1; }
.pennant-svg[data-tier="gold"] .pf { fill: var(--gold); }
.pennant-svg[data-tier="silver"] .pf { fill: var(--silver); }
.pennant-svg[data-tier="bronze"] .pf { fill: var(--bronze); }
.pennant-svg[data-tier="ghost"] .pf, .pennant-svg[data-tier="none"] .pf, .pennant-svg[data-tier="locked"] .pf { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 3 3; opacity: .6; }

/* banners and modes */
.mode-banner { margin: 0 0 14px; padding: 8px 12px; background: rgba(201, 162, 39, .16); border: 1px solid rgba(201, 162, 39, .5); border-radius: 4px; font-family: var(--mono); font-size: var(--t-mono); color: #5c4208; letter-spacing: .04em; }
.preview-ribbon { text-align: center; background: var(--gold); color: #2b1a19; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .12em; padding: 4px 8px; }
.locked-note { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 24px 8px; }
.locked-note h2 { margin: 0; font-family: var(--display); font-size: 28px; color: #23110f; }
.countdown { font-family: var(--mono); font-size: 28px; letter-spacing: .08em; color: var(--maroon); font-variant-numeric: tabular-nums; }
.after-note { display: grid; gap: 10px; }
.day-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; }
.day-links a { padding: 10px 4px; }

body.projector { --t-body: clamp(24px, 1.6vw + 16px, 34px); --t-mono: clamp(16px, .8vw + 12px, 22px); --wrap: 1100px; --rule: clamp(40px, 2vw + 28px, 52px); --t-title: clamp(40px, 4vw + 20px, 76px); }
body.projector .bar-nav, body.projector .streak { display: none; }
body.projector .btn { min-height: 56px; font-size: calc(var(--t-mono) + 2px); }

.walk-done summary { cursor: pointer; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; color: var(--ink-mid); padding: 6px 0; min-height: 32px; }

/* Archive, flag wall, forms on the dark ground */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 8px; }
.filters label { display: grid; gap: 4px; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-faint); }
select { font: inherit; font-family: var(--mono); font-size: 15px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); background: var(--ink-1); color: var(--on-dark); border: 1px solid var(--on-dark-line); }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.archive-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "p t s" "p m m"; gap: 2px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); background: rgba(244, 235, 220, .035); }
.archive-item .pennant-svg { grid-area: p; width: 40px; height: 40px; color: var(--on-dark); }
.archive-title { grid-area: t; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--on-dark); text-decoration: none; padding: 6px 0; }
.archive-title:hover { color: #fff; text-decoration: underline; }
.archive-item .mono:not(.archive-tier) { grid-area: m; }
.archive-tier { grid-area: s; }

.flagwall { display: grid; gap: 36px; }
.fw-block { display: grid; gap: 14px; }
.fw-block h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2vw + 14px, 34px); color: #fbf4e8; }
.fw-block p { margin: 0; }
.fw-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .06em; color: var(--on-dark-mute); }
.fw-stat b { font-size: 26px; color: var(--gold); font-weight: 500; margin-right: 6px; font-family: var(--display); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pennant-card { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 14px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); background: rgba(244, 235, 220, .035); color: var(--on-dark); text-decoration: none; }
a.pennant-card:hover { border-color: var(--red-soft); color: #fff; }
.pennant-card .pennant-svg { width: 44px; height: 44px; color: var(--on-dark); }
.pennant-card.is-locked { border-style: dashed; }
.p-no { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-faint); }
.p-name { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.p-tier { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .06em; color: var(--on-dark-mute); }
.p-flag { font-family: var(--mono); font-size: 12px; color: var(--on-dark-faint); overflow-wrap: anywhere; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
.strip li { text-align: center; font-family: var(--mono); font-size: clamp(13px, 2.4vw, 20px); padding: 6px 0; border: 1px solid var(--on-dark-line); border-radius: 3px; background: rgba(244, 235, 220, .04); min-width: 0; }
.strip li.got { color: var(--gold); border-color: rgba(201, 162, 39, .6); background: rgba(201, 162, 39, .1); }
.strip li.gap { color: var(--on-dark-faint); }
.code { width: 100%; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--on-dark); background: var(--ink-1); border: 1px solid var(--on-dark-line); border-radius: var(--radius); padding: 10px; resize: vertical; overflow-wrap: anywhere; }
.visitors { margin-top: 24px; }
@media (max-width: 560px) { .strip { grid-template-columns: repeat(10, minmax(0, 1fr)); } .archive-item { grid-template-columns: auto 1fr; grid-template-areas: "p t" "p m" "p s"; } }

/* the footer counter (markup from visitors.js) */
.visitors { --brand: var(--red-soft); margin: 0; padding: 26px 0 4px; text-align: center; line-height: 1.5; }
.hc-vc-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0; }
.hc-vc-label { font-family: var(--mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mute); }
.hc-vc-odo { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--red-soft); border-radius: 5px; background: rgba(244, 235, 220, .04); }
.hc-vc-odo i { font-family: var(--mono); font-style: normal; font-weight: 700; font-size: 1.02rem; line-height: 1; color: var(--red-soft); background: rgba(0, 0, 0, .35); padding: 7px 6px; border-radius: 2px; min-width: 1ch; text-align: center; }
.hc-vc-from { font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-mute); margin: 22px 0 10px; font-weight: 400; }
.hc-vc-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; margin: 0; padding: 0; list-style: none; }
.hc-vc-flags li { font-family: var(--mono); font-size: .8rem; color: var(--on-dark-mute); white-space: nowrap; }
.hc-vc-flags b { color: var(--red-soft); font-weight: 700; }
.hc-vc-flags .hc-fl { font-size: .95rem; vertical-align: -1px; margin-right: 3px; }
.hc-vc-foot { font-size: .8rem; color: var(--on-dark-mute); margin: 16px 0 0; }
@media (max-width: 560px) { .hc-vc-odo i { font-size: .94rem; padding: 6px 5px; } .hc-vc-flags { gap: 6px 11px; } }

/* printing a puzzle: the note, without the room around it */
@media print {
  body, body::before { background: #fff !important; color: #000; }
  body::before, body::after, .drift, .grain, .bar, .site-foot, .tools, .hints, .walk, .skip-link, .preview-ribbon, .toast, .day-links, .engine-tools, .helper, .stamp, .mode-banner { display: none !important; }
  main { max-width: none; padding: 0; }
  .note { box-shadow: none; border: 0; background: #fff; padding: 0 0 0 14px; animation: none; }
  .note::after { background: #999; }
  .story p, .note-title, .question { color: #000; }
}

/* /admin/ */
.admin { display: grid; gap: 18px; }
.lock { display: grid; gap: 8px; max-width: 420px; }
.lock label, .adm-filters span { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mute); }
.lock .row { display: flex; gap: 8px; }
.lock input, .adm-filters input, .adm-filters select { font: inherit; font-family: var(--mono); font-size: 16px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); background: var(--ink-1); color: var(--on-dark); border: 1px solid var(--on-dark-line); min-width: 0; }
.lock input { flex: 1; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.adm-summary { margin: 0; color: var(--on-dark-mute); max-width: 70ch; }
.adm-summary b { color: #fbf4e8; }
.adm-cal summary, .adm-card > summary { cursor: pointer; }
.adm-cal summary { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; color: var(--on-dark-mute); padding: 8px 0; min-height: 44px; }
.adm-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.adm-days li { display: grid; grid-template-columns: 8.5em 5em 1fr auto; gap: 10px; align-items: baseline; padding: 4px 8px; border-radius: 4px; }
.adm-days li.now { background: rgba(201, 162, 39, .14); outline: 1px solid rgba(201, 162, 39, .5); }
.adm-filters { align-items: end; }
.adm-list { display: grid; gap: 8px; }
.adm-card { border: 1px solid var(--on-dark-line); border-radius: var(--radius); background: rgba(244, 235, 220, .04); }
.adm-card[hidden] { display: none; }
.adm-card > summary { display: grid; grid-template-columns: 4.5em minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 14px; list-style: none; min-height: 44px; }
.adm-card > summary::-webkit-details-marker { display: none; }
.adm-card > summary:hover { background: rgba(244, 235, 220, .05); }
.adm-no { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; color: var(--on-dark-mute); }
.adm-title { font-family: var(--display); font-weight: 600; font-size: 18px; color: #fbf4e8; }
.adm-answer { color: var(--gold); overflow-wrap: anywhere; }
.adm-meta { grid-column: 2 / -1; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--on-dark-line); white-space: nowrap; color: var(--on-dark-mute); }
.chip-live { color: #8fd19e; border-color: #3f7d4f; }
.chip-queued { color: var(--gold); border-color: rgba(201, 162, 39, .6); }
.chip-draft, .chip-extra { color: var(--on-dark-mute); }
.adm-body { padding: 4px 14px 18px; display: grid; gap: 14px; background: var(--paper); color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); }
.adm-sec { border-top: 1px solid var(--ink-thin); padding-top: 12px; display: grid; gap: 6px; }
.adm-sec h3, .adm-sec > summary { margin: 0; font-family: var(--mono); font-weight: 500; font-size: var(--t-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.adm-sec p, .adm-sec ul, .adm-sec ol, .adm-sec blockquote { margin: 0; }
.adm-sec ul, .adm-sec ol { padding-left: 1.3em; display: grid; gap: 6px; }
.adm-sec code { background: rgba(43, 26, 25, .08); color: var(--ink); }
.adm-sec a { color: var(--maroon-2); }
.adm-sec pre { margin: 6px 0 0; padding: 10px; background: var(--paper-2); border-radius: 4px; overflow: auto; max-height: 22em; font-size: 12px; }
.adm-big { font-family: var(--display); font-weight: 600; font-size: 24px; color: #23110f; }
.adm-q { font-family: var(--display); font-weight: 600; }
.adm-step b { color: var(--maroon); }
.adm-shows { color: var(--ink-mid); font-style: italic; }
.adm-try .note { margin-top: 8px; box-shadow: none; border: 1px solid var(--ink-thin); animation: none; }
@media (max-width: 640px) {
  .adm-card > summary { grid-template-columns: auto 1fr; }
  .adm-answer, .adm-meta { grid-column: 1 / -1; }
  .adm-days li { grid-template-columns: 1fr auto; }
  .adm-days li .mono:first-child { grid-column: 1 / -1; }
}

/* Engines */
.engine { display: grid; gap: 10px; }
.engine-tools { margin-top: 4px; }
.engine-msg { min-height: 1.5em; margin: 2px 0 0; font-family: var(--mono); font-size: calc(var(--t-mono) + 1px); color: var(--maroon-2); line-height: 1.5; }
.engine-msg:empty { display: none; }
.engine .loading { padding: 20px 0; color: var(--ink-mid); }

/* tap-select: the can stall */
.stall { display: grid; justify-items: center; padding: 14px 8px 0; border-radius: var(--radius); background: linear-gradient(180deg, rgba(107, 21, 38, .10), rgba(107, 21, 38, .03)); border: 1px solid var(--ink-thin); }
.shelf { display: flex; gap: clamp(6px, 1.6vw, 14px); justify-content: center; padding: 0 10px 8px; border-bottom: 6px solid #8a5a44; border-radius: 0 0 3px 3px; margin-bottom: 14px; min-width: 0; flex-wrap: nowrap; }
.can { appearance: none; cursor: pointer; border: 0; padding: 0; background: none; touch-action: manipulation; width: clamp(44px, 9vw, 62px); aspect-ratio: 3 / 4; position: relative; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease, filter .3s ease; }
.can-svg { width: 100%; height: 100%; display: block; }
.can-body { fill: #b13247; }
.can-rim { fill: #e2d3ba; }
.can-label { fill: rgba(0, 0, 0, .18); }
.can .num { position: absolute; inset: 30% 0 auto; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(15px, 2.2vw, 20px); color: var(--paper); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); pointer-events: none; }
.can[aria-pressed="true"] { transform: rotate(-16deg) translateY(12%) scale(.9); opacity: .55; filter: grayscale(.75); }
.can[aria-pressed="true"]::after { content: "down"; position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-mid); }
.scoreline { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 2px 6px 12px; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); }
.meter { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-3); overflow: hidden; position: relative; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width .3s ease, background .3s ease; }
.meter-fill.exact { background: var(--good); }
.meter-fill.over { background: var(--maroon); }
.meter-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.score { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; white-space: nowrap; }

/* grid-cut */
.quilt-wrap { display: grid; gap: 10px; justify-items: center; }
.quilt { width: min(100%, 470px); aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(43, 26, 25, .25); background: #fffaf1; cursor: crosshair; }
.quilt:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.quilt-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; width: min(100%, 470px); font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mid); }
.quilt-bar b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* path-jump */
.maze-wrap { display: grid; gap: 12px; justify-items: center; }
.maze { width: min(100%, 520px); aspect-ratio: 1; background: #fffaf1; border-radius: 4px; box-shadow: 0 0 0 1px rgba(43, 26, 25, .25); }
.mz-cell { fill: #f1e6d3; }
.mz-cell.seen { fill: #e6c9c3; }
.mz-cell.here { fill: var(--gold); stroke: var(--maroon); stroke-width: .08; }
.mz-cell.hl { stroke: var(--red); stroke-width: .12; stroke-dasharray: .3 .2; }
.mz-num { font-family: var(--display); font-weight: 600; font-size: .62px; fill: var(--ink); pointer-events: none; }
.mz-num.here { fill: var(--maroon); font-size: .7px; }
.mz-heart { font-size: .32px; fill: var(--red); }
.mz-trail { stroke: var(--maroon-2); stroke-width: .09; stroke-linecap: round; opacity: .55; }
.mz-trail.out { stroke: var(--good); opacity: .9; stroke-dasharray: .2 .15; }
.jump-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-auto-rows: 56px; gap: 6px; }
.jump { appearance: none; cursor: pointer; border-radius: 50%; border: 1px solid rgba(67, 16, 31, .5); background: var(--maroon); color: var(--paper); font-size: 24px; line-height: 1; touch-action: manipulation; }
.jump:hover { background: var(--maroon-2); }
.jump.is-disabled, .jump[aria-disabled="true"] { opacity: .35; cursor: not-allowed; background: transparent; color: var(--ink-mid); }
.jump.hint { outline: 3px solid var(--gold); outline-offset: 2px; opacity: 1; }
.jump-centre { display: grid; place-items: center; border-radius: 50%; background: var(--paper-3); font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--maroon); }
.maze-reason { min-height: 1.4em; margin: 0; font-family: var(--mono); font-size: var(--t-mono); color: var(--maroon-2); text-align: center; }

/* game-daisy */
.daisy { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.petal { position: absolute; transform: translate(-50%, -50%); width: 17%; aspect-ratio: 1; min-width: 44px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.petal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.petal-shape { fill: #fffaf1; stroke: var(--maroon-2); stroke-width: 1.4; transition: fill .2s, transform .2s; }
.petal.picked .petal-shape { fill: var(--gold); stroke: var(--maroon); stroke-width: 2.2; }
.petal.hint .petal-shape { stroke: var(--red); stroke-width: 3; stroke-dasharray: 3 2; }
.petal.gone .petal-shape { fill: transparent; stroke: rgba(43, 26, 25, .25); stroke-dasharray: 2 3; }
.petal-n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--ink); pointer-events: none; }
.petal.gone .petal-n { opacity: .35; }
.petal:disabled:not(.gone) { cursor: default; }
.daisy-centre { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #e0b85a 0%, #c9a227 70%); display: grid; place-items: center; text-align: center; padding: 8%; font-family: var(--mono); font-size: 12px; line-height: 1.3; color: #2b1a19; }

/* sliding */
.slide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(100%, 360px); margin: 0 auto; padding: 8px; background: var(--paper-3); border-radius: var(--radius); }
.tile { appearance: none; aspect-ratio: 1; border: 1px solid rgba(67, 16, 31, .45); border-radius: 6px; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 6vw, 32px); cursor: pointer; touch-action: manipulation; transition: transform .12s, background .2s; min-width: 44px; min-height: 44px; }
.tile.movable { background: #fffaf1; border-color: var(--maroon-2); box-shadow: 0 2px 0 rgba(67, 16, 31, .3); }
.tile.home { color: var(--good); }
.tile.hint { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile.gap { background: transparent; border-style: dashed; border-color: rgba(43, 26, 25, .25); cursor: default; box-shadow: none; }
.tile:disabled:not(.gap) { cursor: default; opacity: .92; }
.slide-bar { display: flex; justify-content: center; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; color: var(--ink-mid); }
.meter-note { margin: 0; padding: 8px 10px; border-left: 3px solid var(--gold); background: rgba(201, 162, 39, .12); font-family: var(--mono); font-size: var(--t-mono); line-height: 1.5; color: #4a3708; }

/* regions */
.palette { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.swatch { width: 48px; height: 48px; border-radius: 8px; border: 2px solid rgba(43, 26, 25, .4); font-family: var(--display); font-weight: 700; font-size: 20px; color: #fffaf1; cursor: pointer; touch-action: manipulation; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.swatch[aria-checked="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.regions { display: grid; gap: 2px; width: min(100%, 440px); margin: 0 auto; padding: 4px; background: var(--paper-3); border-radius: var(--radius); }
.rg-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.rg-cell { position: relative; appearance: none; aspect-ratio: 1; min-width: 24px; padding: 0; border: 1px solid rgba(43, 26, 25, .3); border-radius: 3px; background: #fffaf1; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; color: #fffaf1; font-family: var(--display); font-weight: 700; font-size: clamp(12px, 3.4vw, 18px); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.rg-cell .tree-icon { position: absolute; width: 70%; height: 70%; inset: 15%; pointer-events: none; }
.rg-cell .rg-l { position: relative; }
.rg-cell.tree .rg-l { margin-top: 38%; font-size: .7em; }
.rg-cell.hl { outline: 3px dashed var(--gold); outline-offset: -3px; }
.rg-cell:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 1; }
.p0 { background-color: #b0303f; }
.p1 { background-color: #b58f13; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .4) 0 3px, transparent 3px 7px); }
.p2 { background-color: #2f6b6b; background-image: radial-gradient(rgba(255, 255, 255, .5) 18%, transparent 20%); background-size: 8px 8px; }
.p3 { background-color: #6d4a8a; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .3) 0 2px, transparent 2px 6px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 2px, transparent 2px 6px); }
.rg-cell:disabled { cursor: default; }

/* pour */
.vessels { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.vessel { appearance: none; position: relative; display: grid; gap: 6px; justify-items: center; padding: 10px 8px 12px; border: 1px solid rgba(43, 26, 25, .3); border-radius: var(--radius); background: rgba(255, 250, 241, .6); color: var(--ink); cursor: pointer; font: inherit; touch-action: manipulation; min-height: 44px; }
.vessel.from { border-color: var(--maroon-2); box-shadow: 0 0 0 3px rgba(107, 21, 38, .25); background: #fffaf1; }
.v-key { position: absolute; left: 8px; top: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-mid); }
.v-tank { width: 44px; height: 110px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; background: #fffaf1; display: flex; align-items: flex-end; overflow: hidden; }
.v-fill { display: block; width: 100%; height: 0; background: linear-gradient(180deg, #9ec7d6, #6aa4bb); transition: height .3s ease; }
.v-label { font-family: var(--display); font-weight: 600; font-size: 15px; text-align: center; line-height: 1.15; }
.v-level { font-family: var(--mono); font-size: 12px; color: var(--ink-mid); }

/* river */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.floor { border: 1px solid rgba(43, 26, 25, .3); border-radius: var(--radius); background: rgba(255, 250, 241, .55); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 190px; }
.floor h2 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.floor-items { display: grid; gap: 6px; align-content: start; min-height: 110px; }
.item { appearance: none; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(67, 16, 31, .5); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 17px; cursor: pointer; touch-action: manipulation; }
.item.loaded { background: var(--maroon); color: var(--paper); }
.item.hint { outline: 3px solid var(--gold); outline-offset: 2px; }
.item:disabled { opacity: .55; cursor: default; }
.lift { min-height: 34px; border: 2px dashed rgba(43, 26, 25, .25); border-radius: 4px; display: grid; place-items: center; font-family: var(--mono); font-size: var(--t-mono); color: var(--ink-mid); }
.lift.here { border-style: solid; border-color: var(--maroon-2); background: rgba(107, 21, 38, .08); color: var(--maroon); }

/* grid-place */
.scout-wrap { position: relative; width: min(100%, 440px); margin: 0 auto; }
.scouts { display: grid; gap: 2px; padding: 4px; background: var(--paper-3); border-radius: var(--radius); }
.sc-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.sc-cell { appearance: none; aspect-ratio: 1; min-width: 24px; padding: 0; border: 1px solid rgba(43, 26, 25, .25); border-radius: 3px; background: #fffaf1; cursor: pointer; color: var(--maroon); font-size: clamp(14px, 4vw, 22px); font-weight: 700; touch-action: manipulation; }
.sc-cell:nth-child(odd) { background: #f5ecdd; }
.sc-cell.on { background: #f1dcd6; }
.sc-cell.bad { background: #f3b9bf; color: #7d1c2a; border-color: var(--red); }
.sc-cell.hl { outline: 3px dashed var(--gold); outline-offset: -3px; }
.sc-cell:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 1; }
.scout-line { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); pointer-events: none; }

/* pieces */
.pieces-wrap { width: min(100%, 520px); margin: 0 auto; }
.pieces-board { width: 100%; aspect-ratio: 14 / 13; background: #fffaf1; border-radius: 4px; box-shadow: 0 0 0 1px rgba(43, 26, 25, .25); touch-action: manipulation; display: block; }
.pieces-board .dot { fill: rgba(43, 26, 25, .28); }
.pieces-board .pc { stroke: var(--ink); stroke-width: .06; stroke-linejoin: round; }
.pieces-board .pc.sel { stroke-width: .14; }
.pieces-board .pc-hint { stroke: var(--gold); stroke-width: .18; stroke-dasharray: .35 .25; pointer-events: none; }
.pieces-board .anchor { fill: none; stroke: var(--ink); stroke-width: .06; pointer-events: none; }
.pieces-board .anchor.sel { fill: var(--ink); }
.pieces-board .edge-pt { fill: var(--maroon-2); opacity: .7; }
.pieces-board .edge-pt.pending { fill: var(--gold); stroke: var(--ink); stroke-width: .06; opacity: 1; }
.pieces-board .hint-ring { fill: none; stroke: var(--gold); stroke-width: .14; }
.pieces-help { margin: 0; text-align: center; color: var(--ink-mid); }
.piece-row .piece-pick { border-width: 2px; }
.piece-row .piece-pick.on { background: rgba(67, 16, 31, .1); }
.mode-row button[aria-pressed="true"] { background: var(--maroon); color: var(--paper); }

.pieces-board:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.pieces-board .k-ring { fill: none; stroke: var(--ink); stroke-width: .1; stroke-dasharray: .2 .15; }
