@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Spectral Regular'), url('assets/fonts/spectral-400-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400-latin-ext.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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Spectral Italic'), url('assets/fonts/spectral-400italic-latin.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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400italic-latin-ext.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: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Spectral SemiBold'), url('assets/fonts/spectral-600-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/spectral-600-latin-ext.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: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Spectral Bold'), url('assets/fonts/spectral-700-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/spectral-700-latin-ext.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: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Special Elite'), url('assets/fonts/special-elite-400-latin.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: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/special-elite-400-latin-ext.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: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/courier-prime-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0218-021B;
}
@font-face {
  font-family: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Architects Daughter'), url('assets/fonts/architects-daughter-400-latin.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: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/architects-daughter-400-latin-ext.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: 'Walter Turncoat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Walter Turncoat'), url('assets/fonts/walter-turncoat-400-latin.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: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Patrick Hand'), url('assets/fonts/patrick-hand-400-latin.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: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/patrick-hand-400-latin-ext.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;
}

:root {
  --desk: #e8dabb;
  --paper: #efe3c6;
  --paper-2: #f5edd6;
  --paper-3: #f7efd9;
  --paper-4: #fbf6e8;
  --ink: #40342a;
  --ink-2: #3a2e24;
  --ink-dim: rgba(64, 52, 42, .58);
  --ink-mute: rgba(64, 52, 42, .40);
  --ink-ghost: rgba(64, 52, 42, .24);
  --ink-ks: #8d8375;
  --ember: #b8541f;
  --ember-hot: #e0812f;
  --crayon-blue: #4a6b9c;
  --crayon-green: #5c7a49;
  --crayon-gold: #b08228;
  --crayon-plum: #8a5077;
  --crayon-teal: #3f7472;
  --font-body: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-type: 'Special Elite', 'Courier Prime', 'Courier New', monospace;
  --font-hand: 'Walter Turncoat', 'Kalam', 'Comic Sans MS', cursive;
  --font-sketch: 'Architects Daughter', 'Patrick Hand', 'Kalam', cursive;
  --rule-gap: 34px;
  --rule-shift: -6px;
  --row-h: calc(var(--rule-gap) * 2);
  --rule-color: rgba(104, 124, 150, .18);
  --rule-margin: color-mix(in srgb, var(--accent) 30%, transparent);
  --page-left: clamp(18px, 4vw, 40px);
  --head-indent: clamp(2px, 1.4vw, 16px);
  --head-pull: 0px;
  --wrap: 1340px;
  --gap: 46px;
  --spread: 250px;
  --hub-top: 206px;
  --r: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .8, .3, 1);
  --footer-h: 44px;
  --sticky-top: 26px;
  --boil: .42s;
  --fx-crayon-1: none;
  --fx-crayon-2: none;
  --fx-crayon-3: none;
  --fx-crayon-soft: none;
  --fx-wiggle-1: none;
  --fx-wiggle-2: none;
  --fx-wiggle-3: none;
  --fx-veil-blur: none;
}
html.has-fx {
  --fx-crayon-1: url(#crayon-1);
  --fx-crayon-2: url(#crayon-2);
  --fx-crayon-3: url(#crayon-3);
  --fx-crayon-soft: url(#crayon-soft);
  --fx-wiggle-1: url(#wiggle-1);
  --fx-wiggle-2: url(#wiggle-2);
  --fx-wiggle-3: url(#wiggle-3);
  --fx-veil-blur: blur(3px);
}
html[lang="ro"] {
  --font-sketch: 'Patrick Hand', 'Architects Daughter', 'Kalam', cursive;
  --font-hand: 'Patrick Hand', 'Walter Turncoat', 'Kalam', cursive;
}
:root,
:root[data-accent="green"] {
  --accent: #5f8a3a;
  --accent-deep: #456628;
  --accent-leaf: #85ac62;
}
:root[data-accent="red"] {
  --accent: #a83f2e;
  --accent-deep: #7c2d20;
  --accent-leaf: #c9765f;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
}
ul, ol {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover {
  color: var(--accent-deep);
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed var(--ember);
  outline-offset: 3px;
  border-radius: 5px;
  box-shadow:
    0 0 0 3.5px color-mix(in srgb, var(--ember) 16%, transparent),
    0 0 14px -2px color-mix(in srgb, var(--ember-hot) 70%, transparent),
    inset 0 0 10px -6px color-mix(in srgb, var(--ember-hot) 60%, transparent);
  animation: emberBreathe 2.1s ease-in-out infinite;
}
@keyframes emberBreathe {
  0%, 100% {
    outline-color: var(--ember);
    box-shadow:
      0 0 0 3.5px color-mix(in srgb, var(--ember) 16%, transparent),
      0 0 14px -2px color-mix(in srgb, var(--ember-hot) 70%, transparent),
      inset 0 0 10px -6px color-mix(in srgb, var(--ember-hot) 60%, transparent);
  }
  50% {
    outline-color: var(--ember-hot);
    box-shadow:
      0 0 0 4.5px color-mix(in srgb, var(--ember) 24%, transparent),
      0 0 22px 0 color-mix(in srgb, var(--ember-hot) 85%, transparent),
      inset 0 0 14px -5px color-mix(in srgb, var(--ember-hot) 75%, transparent);
  }
}
.chapter:focus-visible,
.scrap:focus-visible,
.langtab:focus-visible,
.tickbox:focus-visible {
  outline-offset: 5px;
  outline-style: dashed;
}
.doodle--tap:focus-visible {
  outline-offset: 6px;
  border-radius: 50%;
}
html.no-fx :focus-visible,
html.is-away :focus-visible {
  animation: none;
}
body {
  background-image:
    radial-gradient(ellipse 70% 55% at 14% 6%, rgba(255, 252, 242, .80), transparent 62%),
    radial-gradient(ellipse 62% 52% at 90% 94%, rgba(146, 120, 74, .20), transparent 56%),
    repeating-linear-gradient(180deg, var(--rule-color) 0 1px, transparent 1px var(--rule-gap)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)' opacity='0.05'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll, scroll, scroll;
  background-position: 0 0, 0 0, 0 var(--rule-shift), 0 0, 0 0;
}
@keyframes marginBoil {
  0% { filter: var(--fx-wiggle-1); }
  33.3% { filter: var(--fx-wiggle-2); }
  66.6% { filter: var(--fx-wiggle-3); }
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 6px;
  left: clamp(12px, 1.4vw, 22px);
  background:
    linear-gradient(180deg, transparent, var(--rule-margin) 7%, var(--rule-margin) 93%, transparent) 0 0/2px 100% no-repeat,
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 15%, transparent) 7%, color-mix(in srgb, var(--accent) 15%, transparent) 93%, transparent) 5px 0/1.5px 100% no-repeat;
  filter: var(--fx-crayon-soft);
  pointer-events: none;
  z-index: 0;
}
html.has-fx body::before {
  animation: marginBoil .5s step-end infinite;
}
@media (max-width: 820px) {
  body::before { display: none; }
}
.crayon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
html.no-fx .crayon-defs {
  display: none;
}
.sketch {
  filter: var(--fx-crayon-1);
}
@keyframes boil {
  0% { filter: var(--fx-crayon-1); }
  33.333% { filter: var(--fx-crayon-2); }
  66.666% { filter: var(--fx-crayon-3); }
}
html.has-fx .sketch--live {
  animation: boil var(--boil) step-end infinite;
}
.sketch-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.sketch-frame::before,
.sketch-frame::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: var(--fw, 2px) solid var(--fc, var(--ink));
}
.sketch-frame::before {
  inset: 0;
  filter: var(--fx-crayon-1);
}
.sketch-frame::after {
  inset: 1.5px -1px -1.5px 1px;
  opacity: .42;
  filter: var(--fx-crayon-3);
}
html.has-fx .sketch-frame--live::before {
  animation: boil var(--boil) step-end infinite;
}
html.has-fx .sketch-frame--live::after {
  animation: boil calc(var(--boil) * 1.37) step-end infinite reverse;
}
html.is-away *,
html.is-away *::before,
html.is-away *::after {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .sketch--live, .sketch-frame--live::before, .sketch-frame--live::after {
    animation: none;
  }
}
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}
img, .img-shield {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.shield-host {
  position: relative;
}
.img-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  background: transparent;
  cursor: inherit;
}
.crt {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background:
    repeating-linear-gradient(180deg, rgba(40, 30, 20, .16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 100% 90% at 50% 50%, transparent 55%, rgba(50, 36, 22, .30) 100%);
  mix-blend-mode: multiply;
}
html.is-crt .crt {
  opacity: 1;
}
html.is-crt.has-fx .crt {
  animation: crtFlicker 5.5s steps(1) infinite;
}
@keyframes crtFlicker {
  0%, 94%, 100% { opacity: 1; }
  96% { opacity: .86; }
  98% { opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
  html.is-crt .crt {
    animation: none;
  }
}
.doodles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.doodle {
  position: absolute;
  width: var(--dsize, 56px);
  height: var(--dsize, 56px);
  transform: translate(-50%, -50%) rotate(var(--dtilt, 0deg));
  opacity: 0;
  animation: doodleIn 1.1s var(--ease) forwards;
  filter: var(--fx-crayon-soft);
}
@keyframes doodleIn {
  to { opacity: var(--dopacity, .5); }
}
.doodle__art {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-linecap: round;
  pointer-events: none;
}
.doodle--outline {
  --doodle-line: var(--ink);
  --doodle-wash: none;
  --dopacity: .34;
}
.doodle--colour {
  --dopacity: .55;
}
.doodle--colour .doodle__art {
  stroke-width: 3;
}
.doodle--leaf {
  --doodle-line: var(--accent-deep);
  --doodle-wash: color-mix(in srgb, var(--accent-leaf) 55%, transparent);
}
.doodle--gold {
  --doodle-line: #8a6414;
  --doodle-wash: color-mix(in srgb, var(--crayon-gold) 55%, transparent);
}
.doodle--red {
  --doodle-line: #8d3325;
  --doodle-wash: color-mix(in srgb, #c9563f 55%, transparent);
}
.doodle--blue {
  --doodle-line: #33507a;
  --doodle-wash: color-mix(in srgb, var(--crayon-blue) 45%, transparent);
}
.doodle--plum {
  --doodle-line: #7a3f6b;
  --doodle-wash: color-mix(in srgb, #9c5a8e 55%, transparent);
}
.doodle--white {
  --doodle-line: #8a8172;
  --doodle-wash: rgba(255, 255, 255, .62);
}
.doodle--ink {
  --doodle-line: var(--ink);
  --doodle-wash: color-mix(in srgb, var(--ink) 12%, transparent);
}
.doodle--tap {
  pointer-events: auto;
  cursor: pointer;
  display: block;
}
.doodle--tap .doodle__art {
  transition: transform .25s var(--ease);
  transform-origin: 50% 50%;
}
.doodle--tap:hover .doodle__art,
.doodle--tap:focus-visible .doodle__art {
  transform: scale(1.16);
}
.doodle--tap.is-pop .doodle__art {
  animation: angelPop .72s var(--ease);
}
@keyframes angelPop {
  0% { transform: scale(1) rotate(0); }
  28% { transform: scale(1.55) rotate(-14deg); }
  55% { transform: scale(1.32) rotate(11deg); }
  78% { transform: scale(1.44) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (max-width: 1080px) {
  .doodles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .doodle {
    animation: none;
    opacity: var(--dopacity, .5);
  }
  .doodle--tap.is-pop .doodle__art {
    animation: none;
  }
}
html:lang(ro) .btn-sketch,
html:lang(ro) .board__tab,
html:lang(ro) .pv__crumb,
html:lang(ro) .masthead__here,
html:lang(ro) .chapters__label,
html:lang(ro) .ctx__head,
html:lang(ro) .wipe,
html:lang(pt) .btn-sketch,
html:lang(pt) .board__tab,
html:lang(pt) .pv__crumb,
html:lang(pt) .masthead__here,
html:lang(pt) .chapters__label,
html:lang(pt) .ctx__head,
html:lang(pt) .wipe {
  text-transform: none;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes chapterIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
.masthead {
  animation: fadeDown .6s var(--ease) both;
}
.board {
  animation: fadeUp .6s var(--ease) .08s both;
}
.masthead__name .mn-word {
  display: inline-block;
  white-space: nowrap;
}
.masthead__name .mn {
  display: inline-block;
}
html.has-fx .masthead__name .mn {
  will-change: transform;
  animation: nameWave 6.5s ease-in-out infinite;
  animation-delay: calc(var(--l) * -0.16s);
}
@keyframes nameWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-0.6px) rotate(-0.35deg); }
}
@media (prefers-reduced-motion: reduce) {
  .masthead__name .mn {
    animation: none;
  }
}
.chapters__list.is-intro .chapter {
  opacity: 0;
  animation: chapterIn .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 65ms + 190ms);
}
@media (prefers-reduced-motion: reduce) {
  .masthead, .board-col, .chapters__head, .chapters__list.is-intro .chapter {
    animation: none;
    opacity: 1;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-h) + 18px);
  transform: translate(-50%, 14px);
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--paper-3);
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 22px -12px rgba(64, 44, 26, .7);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript {
  max-width: 520px;
  width: 100%;
  padding: 34px 32px;
  background: var(--paper-3);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 64px -30px rgba(48, 32, 16, .9);
  font-family: var(--font-type);
  font-size: 13px;
  line-height: 1.9;
}
.noscript li {
  margin-top: 6px;
}
@media print {
  .page, .footer, .crt, .ctx, .modal, .toast {
    display: none !important;
  }
  html, body {
    background: #fff !important;
  }
  body::before {
    display: none;
  }
  body::after {
    content: "Tenfold Luck Studio — tenfoldluck.studio\A This page is not available in print.";
    white-space: pre;
    display: block;
    padding: 40vh 0;
    text-align: center;
    font-family: var(--font-type);
    font-size: 13px;
    color: #000;
  }
}

.ns {
  --ns-bg: #241d16;
  --ns-card: #f5edd6;
  --ns-ink: #40342a;
  --ns-dim: rgba(64, 52, 42, 0.6);
  --ns-line: rgba(96, 76, 52, 0.24);
  --ns-acc: #8a5a2e;
  --ns-hover: rgba(138, 90, 46, 0.08);
  --ns-font: "Spectral", Georgia, serif;
  --ns-head: "Architects Daughter", "Patrick Hand", cursive;
}
/* ---- noscript card -------------------------------------------------------
   Shared across every Tenfold Luck site. Do not restyle per site: change the
   tokens above and nothing else, or the four fallbacks drift apart again. */
.ns {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: clamp(16px, 5vw, 56px) clamp(14px, 4vw, 32px);
  background: var(--ns-bg);
  color: var(--ns-ink);
  font-family: var(--ns-font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.ns__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ns__card {
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 40px);
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  background: var(--ns-card);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.ns__brand {
  margin: 0;
  font-family: var(--ns-head);
  font-size: clamp(24px, 5vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ns-ink);
}

.ns__kicker {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ns-acc);
}

.ns__lede {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--ns-dim);
}

.ns__rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--ns-line);
}

.ns__label {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ns-dim);
}

.ns__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ns__nav a {
  font-size: 14px;
  color: var(--ns-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ns-line);
}

.ns__nav a:hover,
.ns__nav a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}

.ns__socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 6px 10px;
}

.ns__soc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ns-ink);
  text-decoration: none;
}

.ns__soc:hover,
.ns__soc:focus-visible {
  border-color: var(--ns-line);
  color: var(--ns-acc);
  background: var(--ns-hover);
}

.ns__ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  opacity: 0.85;
}

.ns__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ns-acc);
  color: var(--ns-card);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ns__cta:hover,
.ns__cta:focus-visible {
  filter: brightness(1.08);
}

.ns__foot {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--ns-dim);
}

.ns__foot a {
  color: var(--ns-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .ns__soc,
  .ns__nav a,
  .ns__cta {
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, filter 0.18s ease;
  }
}

.ns__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 12.5px;
}

.ns__legal a {
  color: var(--ns-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ns__legal a:hover,
.ns__legal a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}


:root {
  --sb-size: 12px;
  --sb-mid: #6d9a41;
  --sb-hi: #557a30;
  --sb-rail: rgba(240, 232, 214, 0.1);
  --sb-grip: rgba(18, 22, 12, 0.42);
}

/* ---- scrollbar -----------------------------------------------------------
   Plain and narrow. The track is a flat colour with nothing drawn on it, and
   the thumb is a rounded bar. Only the three tokens above change per site.

   scrollbar-width / scrollbar-color appear ONLY in the @supports block below.
   Setting either on an element makes Chromium prefer it over
   ::-webkit-scrollbar for that same element. */
::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}

/* Nothing sits behind the bar except a hairline rail, and the rail is inset so
   it never reaches the top or the bottom of the viewport. The inset is carried
   by background-size rather than by margin, because a margin on the track also
   shortens how far the thumb can travel. */
::-webkit-scrollbar-track {
  background-color: transparent;
  background-image: linear-gradient(var(--sb-rail), var(--sb-rail));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1px 84%;
}

::-webkit-scrollbar-track:horizontal {
  background-size: 84% 1px;
}

/* Three short rules across the middle of the thumb, the grip. min-height keeps
   the thumb tall enough for them to read on a very long page. */
::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
  background-color: var(--sb-mid);
  background-image:
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip));
  background-repeat: no-repeat;
  background-position: center calc(50% - 4px), center 50%, center calc(50% + 4px);
  background-size: 4px 1px;
  transition: background-color 0.18s ease;
}

::-webkit-scrollbar-thumb:horizontal {
  min-height: 0;
  min-width: 44px;
  background-position: calc(50% - 4px) center, 50% center, calc(50% + 4px) center;
  background-size: 1px 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--sb-hi);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-mid) transparent;
  }
}



.page {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 34px clamp(20px, 3.5vw, 60px) calc(var(--footer-h) + 30px);
}
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-left: var(--head-indent);
  margin-right: calc(-1 * var(--head-pull));
}
.masthead__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.masthead__mark {
  display: inline-block;
  flex: none;
  width: clamp(90px, 8.5vw, 120px);
  transform-origin: 50% 88%;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(64, 44, 26, .3));
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.masthead__mark img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 88%;
  animation: rock 9.5s ease-in-out infinite;
}
@keyframes rock {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-4px); }
}
.masthead__mark:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 7px 12px rgba(64, 44, 26, .4));
}
.masthead__mark:hover img {
  animation-play-state: paused;
}
.masthead__mark:active {
  transform: scale(.93);
}
.masthead__name {
  font-family: var(--font-hand);
  font-size: clamp(30px, 3.9vw, 41px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .2px;
  color: var(--ink-2);
  transform: translateY(-5px);
}
.masthead__tag {
  font-family: var(--font-type);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-dim);
  margin-top: 6px;
}
.masthead__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}
.masthead__here {
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hub {
  position: relative;
  display: grid;
  grid-template-columns: auto 0fr auto;
  justify-content: center;
  align-items: center;
  column-gap: var(--gap);
  min-height: calc(100dvh - var(--hub-top) - var(--footer-h));
  transition: grid-template-columns .55s var(--ease), column-gap .55s var(--ease);
}
.hub.has-snippets {
  grid-template-columns: auto 1fr auto;
  column-gap: 0;
}
.chapters {
  width: clamp(280px, 24vw, 368px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chapters__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.collect {
  position: relative;
  min-width: 0;
  align-self: stretch;
  justify-self: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}
.collect .eggshelf {
  pointer-events: none;
}
.collect .eggshelf .scrap {
  pointer-events: auto;
  touch-action: pan-y;
}
.collect__rail {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .collect,
  .drops,
  .footer__count {
    display: none;
  }
}
.board-col {
  width: clamp(400px, 34vw, 520px);
  min-width: 0;
  max-height: calc(100dvh - var(--hub-top) - var(--footer-h) - 16px);
  display: flex;
  min-height: 0;
}
.board {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(20px, 3.5vw, 60px);
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink-dim);
  background: linear-gradient(180deg, rgba(239, 227, 198, .72), var(--paper) 58%);
  -webkit-backdrop-filter: var(--fx-veil-blur);
  backdrop-filter: var(--fx-veil-blur);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-ghost) 0 7px, transparent 7px 15px);
  filter: var(--fx-crayon-soft);
}
.footer__mid {
  flex: 1;
  text-align: center;
}
.legal {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-align: right;
}
.legal__link {
  font-family: var(--font-type);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--ink-mute);
  text-decoration: none;
  opacity: .5;
  transition: opacity .3s var(--ease), color .3s var(--ease), text-shadow .3s var(--ease);
}
.legal__link:hover,
.legal__link:focus-visible {
  opacity: 1;
  color: var(--ink-2);
  text-shadow: 0 0 7px color-mix(in srgb, var(--ember-hot) 42%, transparent);
}
.legal__sep {
  color: var(--ink-ghost);
  opacity: .5;
  font-size: 10px;
}
.legal__all {
  display: none;
}
@media (max-width: 560px) {
  .legal__sep,
  .legal .legal__link:not(.legal__all) {
    display: none;
  }
  .legal__all {
    display: inline;
  }
}
.footer__count {
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .footer__mid { display: none; }
}
@media (max-width: 1180px) {
  :root { --gap: 24px; }
  .board-col { width: clamp(380px, 34vw, 470px); }
}
@media (max-width: 1080px) {
  .hub, .hub.has-snippets {
    grid-template-columns: 1fr;
    justify-items: center;
    column-gap: 0;
    row-gap: 26px;
    min-height: 0;
  }
  .chapters, .board-col {
    width: min(560px, 92vw);
  }
  .board-col {
    max-height: none;
  }
  .board {
    display: block;
  }
  .board__body {
    max-height: none;
    overflow: visible;
  }
  .collect {
    order: 3;
    pointer-events: none;
    width: min(560px, 92vw);
  }
  .collect:has(.eggshelf:empty) {
    display: none;
  }
  .eggshelf {
    position: static;
    min-height: 0 !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .eggshelf .scrap {
    position: static !important;
    left: auto !important;
    top: auto !important;
  }
}
@media (max-width: 760px) {
  .page {
    padding-top: 28px;
  }
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .masthead__nav {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0;
  }
}
@media (max-width: 640px) {
  :root {
    --footer-h: 38px;
    --sticky-top: 14px;
  }
  .page {
    padding-top: 22px;
  }
  .masthead__brand {
    gap: 13px;
  }
  .footer {
    font-size: 10px;
    letter-spacing: .02em;
  }
  .legal {
    gap: 5px;
  }
  .legal__link {
    font-size: 9px;
    letter-spacing: .02em;
    opacity: .62;
  }
}
@media (max-width: 420px) {
  .page {
    padding-right: 14px;
  }
  .masthead__tag {
    font-size: 11px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --footer-h: 32px;
    --sticky-top: 10px;
  }
  .page {
    padding-top: 16px;
  }
  .masthead {
    margin-bottom: 16px;
  }
}

.totop {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  color: var(--paper-4);
  background: var(--accent-deep);
  border: 1.6px solid rgba(28, 26, 22, 0.32);
  box-shadow: 0 6px 16px -6px rgba(20, 15, 8, 0.7);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.totop:hover,
.totop:focus-visible {
  background: var(--accent);
  transform: translateY(-2px);
}

.totop:active {
  transform: translateY(1px);
}

@media (max-width: 900px) {
  .totop {
    display: grid;
  }

  .totop[hidden] {
    display: none;
  }
}

.btn-sketch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 9px 16px;
  border-radius: 9px;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.btn-sketch:hover {
  transform: translateY(-1px);
  color: var(--accent-deep);
}
.btn-sketch__frame {
  position: absolute;
  inset: 0;
  border: 1.8px solid var(--ink-mute);
  border-radius: 9px;
  pointer-events: none;
  transition: border-color .2s var(--ease);
}
.btn-sketch:hover .btn-sketch__frame {
  border-color: var(--accent);
}
.btn-sketch__ico {
  font-size: 13px;
  transition: transform .5s var(--ease);
}
.btn-sketch:hover .btn-sketch__ico {
  transform: rotate(90deg);
}
.chapter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: var(--row-h);
  text-align: left;
  padding: 0 16px 0 20px;
  border-radius: var(--r);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chapter:hover {
  transform: translateX(6px);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.chapter:active {
  transform: translateX(4px) scale(.995);
}
.chapter__frame {
  --fw: 2px;
  --fc: var(--ink);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.chapter.is-active .chapter__frame {
  opacity: 1;
}
.chapter.is-active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.chapter__spine {
  position: absolute;
  left: -2px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 2px;
  background: var(--crayon, var(--accent));
  opacity: 0;
  transform: scaleY(.4);
  transform-origin: center;
  transition: opacity .2s var(--ease), transform .28s var(--ease);
  pointer-events: none;
}
.chapter.is-active .chapter__spine {
  opacity: 1;
  transform: scaleY(1);
}
.chapter__caret {
  position: absolute;
  left: -22px;
  top: 50%;
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-8px, -50%);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .24s var(--ease);
}
.chapter.is-active .chapter__caret {
  opacity: 1;
  transform: translate(0, -50%);
}
.chapter__num {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-type);
  font-size: 14px;
  color: var(--crayon, var(--accent));
}
.chapter__num::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.7px solid var(--crayon, var(--accent));
  opacity: .72;
  filter: var(--fx-crayon-soft);
}
.chapter:hover .chapter__num::before,
.chapter.is-active .chapter__num::before {
  opacity: 1;
}
[data-crayon="red"] { --crayon: var(--accent); }
[data-crayon="blue"] { --crayon: var(--crayon-blue); }
[data-crayon="green"] { --crayon: var(--crayon-green); }
[data-crayon="gold"] { --crayon: var(--crayon-gold); }
[data-crayon="plum"] { --crayon: var(--crayon-plum); }
[data-crayon="teal"] { --crayon: var(--crayon-teal); }
.chapter__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.chapter__title {
  font-family: var(--font-sketch);
  font-size: var(--chapter-title-fs, clamp(21px, 1.95vw, 27px));
  font-weight: 400;
  letter-spacing: .2px;
  line-height: 1.08;
  color: var(--ink-2);
  transition: color .2s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.chapter.is-active .chapter__title {
  color: var(--crayon, var(--accent));
}
.chapter:hover .chapter__title,
.chapter:focus-visible .chapter__title {
  animation: scribble .3s step-end infinite;
}
.chapter__sub {
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-dim);
  overflow-wrap: break-word;
}
@media (prefers-reduced-motion: reduce) {
  .chapter:hover .chapter__title,
  .chapter:focus-visible .chapter__title {
    animation: none;
    filter: none;
  }
}
.chapter--secret {
  animation: secretIn .6s var(--ease);
}
@keyframes secretIn {
  from { opacity: 0; transform: translateX(-10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.chapter--secret .chapter__title {
  color: var(--accent-deep);
}
.chapter--secret .chapter__sub {
  color: color-mix(in srgb, var(--accent-deep) 70%, transparent);
}
.chapter--secret .chapter__num {
  font-size: 16px;
}
.chapter--secret .chapter__num::before {
  border-style: dashed;
  opacity: 1;
}
.chapter--secret .chapter__frame {
  opacity: 1;
  --fc: var(--accent);
}
.chapter--secret .chapter__frame::before {
  border-style: dashed;
}
.chapter--secret .chapter__frame::after {
  display: none;
}
.board__tab {
  position: absolute;
  top: -15px;
  left: 34px;
  z-index: 2;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 6px 16px 8px;
  transform: rotate(-1.2deg);
  filter: var(--fx-crayon-soft);
}
.board__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--paper-3);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px -18px rgba(64, 44, 26, .5);
}
.board__frame {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.board__tape {
  position: absolute;
  top: -8px;
  right: 44px;
  width: 74px;
  height: 24px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent-deep) 45%, transparent);
  transform: rotate(4deg);
  pointer-events: none;
}
.board__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 38px clamp(24px, 3vw, 40px) 34px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.board__body::-webkit-scrollbar {
  width: 12px;
}
.board__body::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--desk) 30%, transparent);
  border-radius: 99px;
  margin: 8px 0;
}
.board__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-leaf), var(--accent) 50%, var(--accent-deep));
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper-3) 50%, transparent);
}
.board__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  background-clip: padding-box;
  box-shadow: 0 0 8px -2px var(--accent), inset 0 0 0 1px var(--paper-3);
}
.pv {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pvIn .4s ease;
}
@keyframes pvIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.pv__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pv__ch {
  font-family: var(--font-type);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
}
.pv__crumb {
  font-family: var(--font-type);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-dim);
}
.pv__title {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.2px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.opt--credit {
  padding-top: 2px;
  border-top: none;
}
.tlcredit {
  font-family: var(--font-type);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  opacity: .72;
  text-align: right;
  width: 100%;
}

.glitch {
  position: relative;
  display: inline-block;
  font-family: var(--font-type);
  letter-spacing: .02em;
  color: var(--ink-2);
  white-space: nowrap;
  text-shadow: 0 0 .5px currentColor;
}
.glitch::before,
.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  opacity: .55;
}
.glitch::before {
  color: #c8402c;
  transform: translate(-1.1px, -.4px);
}
.glitch::after {
  color: #2f6fb5;
  transform: translate(1.1px, .4px);
}
.glitch.is-torn {
  color: #8d2f22;
}
html.has-fx .glitch::before {
  animation: glitchShiftA 2.3s steps(1) infinite;
}
html.has-fx .glitch::after {
  animation: glitchShiftB 3.1s steps(1) infinite;
}
html.has-fx .glitch {
  animation: glitchJitter 4.7s steps(1) infinite;
}
@keyframes glitchShiftA {
  0%, 82%, 100% { transform: translate(-1.1px, -.4px); opacity: .55; }
  84% { transform: translate(-3.4px, .8px); opacity: .85; }
  88% { transform: translate(2.2px, -1.2px); opacity: .3; }
  92% { transform: translate(-2px, 1.4px); opacity: .75; }
}
@keyframes glitchShiftB {
  0%, 76%, 100% { transform: translate(1.1px, .4px); opacity: .55; }
  79% { transform: translate(3.6px, -1px); opacity: .8; }
  85% { transform: translate(-2.4px, 1.3px); opacity: .35; }
  90% { transform: translate(2.8px, -.6px); opacity: .7; }
}
@keyframes glitchJitter {
  0%, 88%, 100% { transform: none; }
  90% { transform: translateX(1.5px) skewX(-6deg); }
  93% { transform: translateX(-1.5px) skewX(5deg); }
  96% { transform: translateX(.6px) skewX(-2deg); }
}

.glitch--curse {
  color: #7c1a10;
  font-weight: 700;
  letter-spacing: .06em;
}
.glitch--curse::before {
  color: #ff2d18;
  transform: translate(-2px, -.7px);
}
.glitch--curse::after {
  color: #120c0b;
  transform: translate(2px, .7px);
}
.glitch--curse.is-torn {
  color: #c11208;
}
html.has-fx .glitch--curse {
  animation: curseJitter 1.6s steps(1) infinite;
  text-shadow: 0 0 7px rgba(255, 40, 22, .38);
}
html.has-fx .glitch--curse::before {
  animation: curseShiftA 1.05s steps(1) infinite;
}
html.has-fx .glitch--curse::after {
  animation: curseShiftB .85s steps(1) infinite;
}
@keyframes curseShiftA {
  0%, 34%, 100% { transform: translate(-2px, -.7px); opacity: .72; }
  38% { transform: translate(-5.5px, 1.6px); opacity: .95; }
  46% { transform: translate(3.6px, -2px); opacity: .4; }
  70% { transform: translate(-3.4px, 2.2px); opacity: .88; }
  78% { transform: translate(4.4px, -1.1px); opacity: .5; }
}
@keyframes curseShiftB {
  0%, 30%, 100% { transform: translate(2px, .7px); opacity: .72; }
  36% { transform: translate(5.8px, -1.4px); opacity: .9; }
  50% { transform: translate(-3.8px, 2px); opacity: .42; }
  74% { transform: translate(3.2px, -1.8px); opacity: .85; }
  82% { transform: translate(-4.6px, 1.2px); opacity: .55; }
}
@keyframes curseJitter {
  0%, 58%, 100% { transform: none; }
  61% { transform: translateX(2.6px) skewX(-13deg); }
  65% { transform: translateX(-2.6px) skewX(11deg); }
  69% { transform: translateX(1.6px) skewX(-5deg) scaleY(1.07); }
  73% { transform: translateX(-1.2px) skewX(4deg); }
  77% { transform: translateX(.8px) skewX(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch,
  .glitch::before,
  .glitch::after {
    animation: none;
  }
  .glitch::before,
  .glitch::after {
    display: none;
  }
}
html.no-fx .glitch::before,
html.no-fx .glitch::after {
  display: none;
}

.pv__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(-45deg, #ece0c0 0 11px, #e4d6b2 11px 22px);
}
.pv__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(64, 52, 42, .7);
  border-radius: 10px;
  filter: var(--fx-crayon-2);
  pointer-events: none;
}
/* The plate fills the slot rather than sitting in it as a label. currentColor
   so the ink follows the page's own ink token, and opacity because a full
   strength line reads as a diagram - this is meant to be a drawing on the
   card, not a chart. */
.pv__plate {
  width: 78%;
  max-width: 260px;
  height: auto;
  color: var(--ink-mute);
  opacity: .82;
}

.pv__art span {
  font-family: var(--font-type);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-dim);
  background: rgba(247, 239, 217, .85);
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px dashed var(--ink-mute);
}
.pv__desc {
  font-size: 16.5px;
  line-height: 1.62;
  color: rgba(58, 46, 36, .9);
  text-wrap: pretty;
}
.pv__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.pv__tag {
  position: relative;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--accent-deep);
  padding: 5px 13px;
}

/* A tag that goes somewhere says so. No resource hints attached: the browser
   does nothing at all until the link is actually clicked. */
.pv__tag--link {
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.pv__tag--link:hover,
.pv__tag--link:focus-visible {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
}
.pv__tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.4px solid color-mix(in srgb, var(--accent-deep) 45%, transparent);
  border-radius: 20px;
  filter: var(--fx-crayon-soft);
}
.pv__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--ink-ghost);
}
/* Rounder, softer, and no arrow. The arrow made every panel button read as a
   step in a wizard rather than an invitation. The solid lower edge gives it
   something to press against. */
.pv__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .01em;
  color: var(--paper-3);
  background: var(--accent);
  padding: 12px 30px;
  border-radius: 999px;
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--accent) 62%, black),
    0 8px 16px -12px rgba(64, 44, 26, .8);
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.pv__cta:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  color: var(--paper-4);
  box-shadow:
    0 4px 0 color-mix(in srgb, var(--accent) 62%, black),
    0 14px 22px -12px rgba(64, 44, 26, .9);
}

.pv__cta:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--accent) 62%, black),
    0 6px 12px -10px rgba(64, 44, 26, .9);
}
.pv__url {
  font-family: var(--font-type);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
.pv--peg {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  animation: pvIn .4s ease;
}
.pegline {
  position: relative;
  width: min(300px, 80%);
  height: 40px;
  margin-bottom: 6px;
}
.pegline__wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-mute) 0 8px, transparent 8px 12px);
  filter: var(--fx-crayon-soft);
}
.peg {
  position: absolute;
  top: 6px;
  width: 9px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e9d9b4, #c9b08a 60%, #b89b6f);
  border: 1.4px solid rgba(96, 72, 40, .5);
  box-shadow: 0 2px 4px -2px rgba(64, 44, 26, .6);
}
.peg--a {
  left: 28%;
  transform: rotate(-8deg);
}
.peg--b {
  left: 64%;
  transform: rotate(6deg);
}
.pv--peg .pv__hand {
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.02;
  color: rgba(58, 46, 36, .8);
}
.pv--peg .pv__note {
  font-family: var(--font-type);
  font-size: 11.5px;
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 260px;
}
.board.is-drop .board__sheet {
  box-shadow: 0 0 0 3px var(--accent), 0 14px 30px -18px rgba(64, 44, 26, .5);
}
.board.is-drop .pegline__wire {
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 12px);
}
.board.is-drop .pv--peg .pv__hand {
  color: var(--accent-deep);
}
.pv--egg {
  animation: pvIn .4s ease;
}
.pv--egg .pv__ch {
  color: var(--accent-deep);
}
.pegged {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 22px;
  margin-bottom: 14px;
  cursor: pointer;
}
.pv--egg .pegged__card {
  position: relative;
  width: min(220px, 62%);
  transform: rotate(-1.5deg);
  animation: peggedSwing 3.6s ease-in-out infinite;
  transform-origin: 50% -8px;
}
.pv--egg .pegged__card .scrap__body {
  transform: none;
  width: 100%;
}
.pv--egg .pegged__card .scrap__cap {
  font-size: 1.15em;
}
.pegged:hover .pegged__card {
  animation-play-state: paused;
  transform: rotate(-1deg) scale(1.07);
  filter: drop-shadow(0 12px 18px rgba(64, 44, 26, .4));
}
.pegged__peg {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%) rotate(4deg);
  z-index: 2;
  width: 11px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e9d9b4, #c9b08a 60%, #b89b6f);
  border: 1.5px solid rgba(96, 72, 40, .55);
  box-shadow: 0 2px 5px -2px rgba(64, 44, 26, .7);
}
@keyframes peggedSwing {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}
.pv__back {
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  padding: 8px 2px;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.pv__back:hover {
  color: var(--accent-deep);
  transform: translateX(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .pegged__card { animation: none; }
}
.eggshelf {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: var(--shelf-h, 0);
  transition: min-height .4s var(--ease);
}
.scrap {
  position: absolute;
  left: var(--sx, 0);
  top: var(--sy, 0);
  width: var(--sw, 132px);
  transform: rotate(var(--rot, 0deg));
  cursor: pointer;
}
.scrap__body {
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  filter: drop-shadow(0 0 .6px rgba(38, 24, 10, .9)) drop-shadow(0 5px 8px rgba(46, 30, 16, .5));
}
.scrap:hover {
  z-index: 60 !important;
}
.scrap:hover .scrap__body {
  transform: translateY(-9px) scale(1.06);
  filter: drop-shadow(0 10px 16px rgba(64, 44, 26, .4));
}
.scrap:active .scrap__body {
  transform: translateY(-4px) scale(1.02);
}
.scrap:focus-visible {
  outline: none;
}
.scrap:focus-visible .scrap__body {
  outline: 2.5px dashed var(--accent);
  outline-offset: 4px;
}
.scrap--in-rise {
  animation: scrapRise .6s cubic-bezier(.2, .85, .3, 1.1) both;
}
.scrap--in-rise-spin {
  animation: scrapRiseSpin .66s cubic-bezier(.2, .85, .3, 1.05) both;
}
.scrap--in-rise-tilt {
  animation: scrapRiseTilt .62s cubic-bezier(.2, .85, .3, 1.1) both;
}
.scrap--in-rise-pop {
  animation: scrapRisePop .6s cubic-bezier(.2, .9, .3, 1.15) both;
}
.scrap--in-first {
  animation: scrapFirst .95s cubic-bezier(.16, .9, .26, 1.15) both;
}
@keyframes scrapRise {
  0% { opacity: 0; transform: translateY(42px) scale(.96); }
  70% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes scrapRiseSpin {
  0% { opacity: 0; transform: translateY(48px) scale(.9) rotate(-14deg); }
  70% { opacity: 1; transform: translateY(-6px) scale(1.03) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes scrapRiseTilt {
  0% { opacity: 0; transform: translateY(40px) translateX(-14px) rotate(9deg) scale(.94); }
  70% { opacity: 1; transform: translateY(-4px) translateX(2px) rotate(-2deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes scrapRisePop {
  0% { opacity: 0; transform: translateY(30px) scale(.6); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes scrapFirst {
  0% { opacity: 0; transform: translateY(70px) scale(.7) rotate(-8deg); }
  45% { opacity: 1; transform: translateY(-14px) scale(1.16) rotate(4deg); }
  68% { transform: translateY(3px) scale(.98) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}
.scrap--in-first .scrap__body::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-leaf) 60%, transparent), transparent 70%);
  animation: scrapGlow 1.1s ease-out both;
}
@keyframes scrapGlow {
  0% { opacity: 0; transform: scale(.4); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.5); }
}
.hub.is-firstfind {
  animation: hubBreath 1s var(--ease);
}
@keyframes hubBreath {
  0%, 100% { column-gap: var(--gap); }
  45% { column-gap: calc(var(--gap) + 26px); }
}
.drops {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}
.drops .scrap {
  pointer-events: auto;
}

.scrap {
  touch-action: pan-y;
}
.scrap.is-dragging {
  touch-action: none;
}
.scrap.is-dragging {
  cursor: grabbing;
  z-index: 9000 !important;
  transform: none !important;
}
.scrap.is-dragging .scrap__body {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 16px 22px rgba(64, 44, 26, .5));
  animation: none !important;
}
.scrap--free {
  cursor: grab;
}
@media (prefers-reduced-motion: reduce) {
  .scrap__body { animation-duration: .01ms !important; }
}
.scrap__thumb {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background-image: repeating-linear-gradient(-45deg, #e7dabb 0 8px, #ddceaa 8px 16px);
}
.scrap__thumb span {
  font-family: var(--font-type);
  font-size: 9.5px;
  color: var(--ink-dim);
}
.scrap__cap {
  text-align: center;
  padding-top: 6px;
}
.scrap--polaroid .scrap__body {
  background: var(--paper-4);
  padding: 8px 8px 26px;
  border-radius: 3px;
  box-shadow: 0 6px 14px -8px rgba(64, 44, 26, .6);
  width: min(100%, 124px);
}
.scrap--polaroid .scrap__thumb {
  aspect-ratio: 4/3;
}
.scrap--polaroid .scrap__cap {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--ink);
}
.scrap--ticket .scrap__body {
  background: #f3ead2;
  padding: 9px 12px;
  border-left: 2px dashed var(--ink-dim);
  border-right: 2px dashed var(--ink-dim);
  border-radius: 2px;
  width: min(100%, 138px);
}
.scrap--ticket .scrap__thumb {
  aspect-ratio: 5/2;
}
.scrap--ticket .scrap__cap {
  font-family: var(--font-type);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--accent-deep);
}
.scrap--torn .scrap__body {
  background: var(--paper-2);
  padding: 9px;
  border-radius: 2px;
  width: min(100%, 130px);
  clip-path: polygon(0 4%, 8% 0, 20% 5%, 34% 1%, 50% 6%, 66% 1%, 82% 5%, 94% 0, 100% 5%, 100% 96%, 90% 100%, 74% 95%, 58% 100%, 42% 96%, 26% 100%, 12% 96%, 0 100%);
}
.scrap--torn .scrap__thumb {
  aspect-ratio: 3/2;
}
.scrap--torn .scrap__cap {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--ink);
}
.scrap--postit .scrap__body {
  background: #f0e9a8;
  padding: 11px 10px 14px;
  width: min(100%, 118px);
  box-shadow: 0 6px 13px -9px rgba(64, 44, 26, .65);
}
.scrap--postit .scrap__thumb {
  aspect-ratio: 1/1;
  background-image: repeating-linear-gradient(-45deg, #e9e29c 0 8px, #e2da8f 8px 16px);
}
.scrap--postit .scrap__cap {
  font-family: var(--font-hand);
  font-size: 15px;
  color: #5a5224;
}
.scrap--photo .scrap__body {
  background: var(--paper-4);
  padding: 6px 6px 20px;
  border-radius: 2px;
  width: min(100%, 132px);
  box-shadow: 0 6px 14px -8px rgba(64, 44, 26, .6);
}
.scrap--photo .scrap__thumb {
  aspect-ratio: 3/2;
}
.scrap--photo .scrap__cap {
  font-family: var(--font-type);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: var(--ink-dim);
}
.scrap--taped .scrap__body {
  position: relative;
  background: var(--paper-2);
  padding: 10px 9px 14px;
  border-radius: 2px;
  width: min(100%, 128px);
  filter: saturate(.72) drop-shadow(0 0 .6px rgba(38, 24, 10, .9)) drop-shadow(0 5px 8px rgba(46, 30, 16, .5));
  clip-path: polygon(0 3%, 12% 0, 28% 4%, 44% 0, 60% 4%, 76% 0, 90% 3%, 100% 0, 100% 97%, 88% 100%, 72% 96%, 56% 100%, 40% 96%, 24% 100%, 10% 97%, 0 100%);
}
.scrap--taped .scrap__body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 7%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(64, 52, 42, 0) 0%, rgba(64, 52, 42, .3) 40%, rgba(255, 253, 246, .55) 50%, rgba(64, 52, 42, .28) 60%, rgba(64, 52, 42, 0) 100%);
}
.scrap--taped .scrap__body::after {
  content: "";
  position: absolute;
  top: 33%;
  left: 28%;
  width: 44%;
  height: 19px;
  pointer-events: none;
  transform: rotate(-7deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(226, 216, 190, .32));
  border-left: 1px solid rgba(255, 255, 255, .5);
  border-right: 1px solid rgba(150, 136, 108, .3);
  box-shadow: 0 2px 5px -3px rgba(64, 44, 26, .55);
}
.scrap--taped .scrap__thumb {
  aspect-ratio: 3/2;
  background-image: repeating-linear-gradient(-45deg, #ded3bb 0 8px, #d3c7ac 8px 16px);
}
.scrap--taped .scrap__cap {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--ink-dim);
}

.scrap__thumb {
  overflow: hidden;
}

.scrap__thumb:has(.scrap__img) {
  --photo-fade: .52;
  background:
    radial-gradient(140% 120% at 24% 14%, #f8f1e1 0%, #efe6d1 42%, #e5dbc2 100%);
}
.scrap__img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3%;
  mix-blend-mode: multiply;
  opacity: var(--photo-fade);
  filter: contrast(.78) brightness(1.09) saturate(.6);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.scrap--photo .scrap__img {
  mix-blend-mode: normal;
  filter: contrast(.8) brightness(1.07) saturate(.5);
}

.scrap__screen {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(78% 62% at 26% 10%, rgba(255, 253, 245, .58), rgba(255, 253, 245, 0) 64%),
    linear-gradient(180deg, rgba(253, 247, 235, .34), rgba(228, 215, 189, .26)),
    radial-gradient(132% 124% at 50% 46%, rgba(0, 0, 0, 0) 62%, rgba(122, 100, 64, .13) 92%, rgba(98, 78, 46, .19) 100%);
  box-shadow: inset 0 0 10px rgba(122, 100, 64, .17);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: grid;
  place-items: center;
  padding: 26px 20px;
}
.modal[hidden] {
  display: none;
}
.modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 36, .44);
  -webkit-backdrop-filter: var(--fx-veil-blur);
  backdrop-filter: var(--fx-veil-blur);
  animation: veilIn .25s ease;
}
@keyframes veilIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal__sheet {
  position: relative;
  width: min(540px, 100%);
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: var(--paper-3);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 64px -30px rgba(48, 32, 16, .9);
  animation: sheetIn .34s var(--ease) both;
}
.modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 46px clamp(22px, 4vw, 38px) 28px;
  border-radius: var(--r-lg);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(64, 52, 42, .055) 33px 34px);
}
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.modal__scroll {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.modal__scroll::-webkit-scrollbar {
  width: 12px;
}
.modal__scroll::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--desk) 30%, transparent);
  border-radius: 99px;
  margin: 4px;
}
.modal__scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-leaf), var(--accent) 50%, var(--accent-deep));
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper-3) 50%, transparent);
}
.modal__scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  background-clip: padding-box;
  box-shadow: 0 0 8px -2px var(--accent), inset 0 0 0 1px var(--paper-3);
}
.modal__frame {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  pointer-events: none;
  z-index: 2;
}
.modal__clip {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 104px;
  height: 30px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, #dcd2ba 0%, #c4b79b 42%, #a8997c 100%);
  border: 2px solid var(--ink);
  box-shadow: inset 0 -5px 0 rgba(64, 52, 42, .16), 0 4px 8px -5px rgba(64, 44, 26, .8);
}
.modal__clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: rgba(64, 52, 42, .28);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  line-height: 1;
  border-radius: 50%;
  font-family: var(--font-type);
  font-size: 13px;
  color: var(--ink-mute);
  transform-origin: 50% 50%;
  transition: color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.modal__close:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  transform: scale(1.14);
}
.modal__title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 38px);
  line-height: 1.05;
  color: var(--ink-2);
}
.modal__foot {
  font-family: var(--font-type);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--ink-ghost);
}
.opts {
  display: flex;
  flex-direction: column;
}
.opt {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 2px;
  border-bottom: 1.5px dashed rgba(64, 52, 42, .16);
}
/* display beats the hidden attribute, so a row that sets display needs this
   or it renders regardless. The Rainy day row is hidden until the snippet is
   found, and without this guard it was visible to everyone. */
.opt[hidden] {
  display: none;
}

.opt:last-child {
  border-bottom: none;
}
.opt__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.opt__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}
.opt__desc {
  font-family: var(--font-type);
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.opt--danger .opt__name {
  color: var(--accent-deep);
}
.opt__ctl {
  flex: none;
  width: 172px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.opt--player {
  display: block;
  padding-top: 4px;
}
.opt--player .opt__ctl {
  display: none;
}
.player[hidden] {
  display: none;
}
.player {
  border: 1.6px solid var(--ink-ghost);
  border-radius: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--paper-4) 60%, transparent);
}
.player__now {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.player__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__ctrls {
  display: flex;
  gap: 4px;
  flex: none;
}
.player__ctl {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 12px;
  color: var(--accent-deep);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.player__ctl:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-1px);
}
.player__ctl[data-mctl="playpause"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.player__eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 18px;
  height: 16px;
  flex: none;
}
.player__eq i {
  flex: 1;
  background: var(--accent);
  border-radius: 1px;
  height: 30%;
}
.player__eq.live i {
  animation: eqBar .9s ease-in-out infinite;
}
.player__eq.live i:nth-child(2) {
  animation-delay: -.3s;
}
.player__eq.live i:nth-child(3) {
  animation-delay: -.6s;
}
.player__eq.live i:nth-child(4) {
  animation-delay: -.15s;
}
@keyframes eqBar {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .player__eq i { animation: none !important; height: 55%; }
}
.player__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 -4px;
}
.player__track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-type);
  font-size: 12px;
  color: var(--ink-dim);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.player__track:hover {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--ink-2);
}
.player__track.on {
  color: var(--accent-deep);
}
.player__track.on .player__n {
  color: var(--accent);
}
.player__n {
  flex: none;
  font-variant-numeric: tabular-nums;
  opacity: .7;
}
.player__t {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__credit {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1.5px dashed var(--ink-ghost);
  font-family: var(--font-type);
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--ink-mute);
  text-align: center;
}
.nowplaying {
  position: fixed;
  right: 18px;
  bottom: calc(var(--footer-h) + 16px);
  z-index: 48;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(78vw, 320px);
  padding: 9px 15px 9px 12px;
  border-radius: 12px;
  pointer-events: none;
  background: var(--paper-3);
  border: 1.6px solid var(--ink-ghost);
  box-shadow: 0 12px 26px -16px rgba(64, 44, 26, .7);
  opacity: 0;
  transform: translateX(-42px) rotate(.4deg);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.nowplaying.is-on {
  opacity: 1;
  transform: translateX(0) rotate(.4deg);
}
.nowplaying.is-on.is-out {
  opacity: 0;
  transform: translateX(52px) rotate(.4deg);
}
.nowplaying__eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 22px;
  height: 18px;
  flex: none;
}
.nowplaying__eq i {
  flex: 1;
  background: var(--accent);
  border-radius: 1px;
  height: 30%;
  transition: height .06s linear;
}
.nowplaying__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  gap: 1px;
}
.nowplaying__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.nowplaying__kicker {
  font-family: var(--font-type);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.nowplaying__source {
  font-family: var(--font-type);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: .9;
  white-space: nowrap;
}
.nowplaying__title {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__eq i {
  transition: height .06s linear;
}
@media (prefers-reduced-motion: reduce) {
  .nowplaying { transition: opacity .3s linear; }
  .nowplaying.is-on, .nowplaying.is-on.is-out { transform: translateX(0) rotate(.4deg); }
  .nowplaying__eq i { height: 55% !important; transition: none; }
  .player__eq i { transition: none; }
}
@media (max-width: 560px) {
  .nowplaying { right: 10px; bottom: calc(var(--footer-h) + 10px); padding: 7px 11px; }
  .nowplaying__title { font-size: 15px; }
}
.tickbox {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.tickbox__box {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink-mute);
  border-radius: 5px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tickbox:hover .tickbox__box {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.tickbox__tick {
  position: relative;
  top: -4px;
  font-family: var(--font-hand);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: scale(.35) rotate(-20deg);
  transition: opacity .16s var(--ease), transform .3s var(--ease);
}
.tickbox[aria-checked="true"] .tickbox__box {
  border-color: var(--accent);
}
.tickbox[aria-checked="true"] .tickbox__tick {
  opacity: 1;
  transform: scale(1) rotate(-9deg);
}
.dial {
  -webkit-appearance: none;
  appearance: none;
  width: 118px;
  height: 20px;
  background: transparent;
  cursor: pointer;
}
.dial::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill, 35%), var(--ink-ghost) var(--fill, 35%) 100%);
}
.dial::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper-3);
  box-shadow: 0 2px 5px -2px rgba(64, 44, 26, .9);
  transition: transform .16s var(--ease);
}
.dial:hover::-webkit-slider-thumb,
.dial:active::-webkit-slider-thumb {
  transform: scale(1.16);
}
.dial::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--ink-ghost);
}
.dial::-moz-range-progress {
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.dial::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--paper-3);
  background: var(--accent);
  box-shadow: 0 2px 5px -2px rgba(64, 44, 26, .9);
}
.dial:focus-visible {
  outline-offset: 7px;
}
.dial__val {
  font-family: var(--font-type);
  font-size: 11px;
  color: var(--ink-dim);
  width: 25px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.opt.is-muted .dial,
.opt.is-muted .dial__val {
  opacity: .42;
}
.langtabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.opt--lang .opt__ctl {
  width: auto;
  max-width: 64%;
}
.langtab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-type);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-dim);
  background: var(--paper-2);
  padding: 6px 10px 7px;
  border-radius: 7px 7px 2px 2px;
  transition: color .18s var(--ease), background .18s var(--ease), transform .2s var(--ease);
}
.langtab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px 7px 2px 2px;
  border: 1.6px solid var(--ink-mute);
  filter: var(--fx-crayon-soft);
  transition: border-color .18s var(--ease);
}
.langtab__code {
  line-height: 1;
}
.langtab__flag {
  width: 19px;
  height: 13px;
  flex: none;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, .28);
  transition: box-shadow .18s var(--ease), transform .2s var(--ease);
}
.langtab[data-lang="en"] .langtab__flag {
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2060%2030'%3E%3CclipPath%20id='t'%3E%3Cpath%20d='M30%2015h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath%20d='M0%200v30h60V0z'%20fill='%23012169'/%3E%3Cpath%20d='M0%200l60%2030m0-30L0%2030'%20stroke='%23fff'%20stroke-width='6'/%3E%3Cpath%20d='M0%200l60%2030m0-30L0%2030'%20clip-path='url(%23t)'%20stroke='%23C8102E'%20stroke-width='4'/%3E%3Cpath%20d='M30%200v30M0%2015h60'%20stroke='%23fff'%20stroke-width='10'/%3E%3Cpath%20d='M30%200v30M0%2015h60'%20stroke='%23C8102E'%20stroke-width='6'/%3E%3C/svg%3E") center/cover no-repeat;
}
.langtab[data-lang="ro"] .langtab__flag {
  background: linear-gradient(90deg, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66%);
}
.langtab[data-lang="fr"] .langtab__flag {
  background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%);
}
.langtab[data-lang="it"] .langtab__flag {
  background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%);
}
.langtab[data-lang="de"] .langtab__flag {
  background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}
.langtab[data-lang="pt"] .langtab__flag {
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030%2021'%3E%3Crect%20width='30'%20height='21'%20fill='%23009c3b'/%3E%3Cpolygon%20points='15,2.6%2027.4,10.5%2015,18.4%202.6,10.5'%20fill='%23ffdf00'/%3E%3Ccircle%20cx='15'%20cy='10.5'%20r='4.6'%20fill='%23002776'/%3E%3CclipPath%20id='bz'%3E%3Ccircle%20cx='15'%20cy='10.5'%20r='4.6'/%3E%3C/clipPath%3E%3Cpath%20d='M9.6%2011.4%20Q15%2014.8%2020.6%2010.5'%20stroke='%23fff'%20stroke-width='1.2'%20fill='none'%20clip-path='url(%23bz)'/%3E%3C/svg%3E") center/cover no-repeat;
}
.langtab[data-lang="ja"] .langtab__flag {
  background: radial-gradient(circle at 50% 50%, #bc002d 0 3.4px, #fff 3.7px);
}
.langtab[data-lang="zh"] .langtab__flag {
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030%2020'%3E%3Cpath%20d='M0%200h30v20H0z'%20fill='%23de2910'/%3E%3Cdefs%3E%3Cpath%20id='s'%20d='M0,-3%201.763,2.427%20-2.853,-0.927%202.853,-0.927%20-1.763,2.427Z'%20fill='%23ffde00'/%3E%3C/defs%3E%3Cuse%20href='%23s'%20transform='translate(5,5)'/%3E%3Cuse%20href='%23s'%20transform='translate(10,2)%20rotate(23)%20scale(.33)'/%3E%3Cuse%20href='%23s'%20transform='translate(12,4)%20rotate(46)%20scale(.33)'/%3E%3Cuse%20href='%23s'%20transform='translate(12,7)%20rotate(70)%20scale(.33)'/%3E%3Cuse%20href='%23s'%20transform='translate(10,9)%20rotate(21)%20scale(.33)'/%3E%3C/svg%3E") center/cover no-repeat;
}
.langtab:hover {
  color: var(--accent-deep);
  transform: translateY(-2px);
}
.langtab:hover::before {
  border-color: var(--accent);
}
.langtab[aria-checked="true"] {
  color: var(--ink-2);
  background: var(--paper-3);
  transform: translateY(-3px) rotate(-1.6deg);
}
.langtab[aria-checked="true"]::before {
  border-color: var(--accent);
  border-width: 2.2px;
}
.langtab[aria-checked="true"] .langtab__flag {
  box-shadow: 0 0 0 1.4px var(--accent), 0 2px 5px -2px rgba(60, 40, 20, .55);
  transform: scale(1.08);
}
.wipe {
  position: relative;
  flex: none;
  padding: 11px 20px;
  border-radius: 9px;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.wipe__frame {
  position: absolute;
  inset: 0;
  border: 1.8px solid color-mix(in srgb, var(--accent-deep) 48%, transparent);
  border-radius: 9px;
  pointer-events: none;
  transition: border-color .2s var(--ease);
}
.wipe:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.wipe:hover .wipe__frame {
  border-color: var(--accent);
}
.wipe[data-stage="arm"] {
  color: var(--paper-3);
  background: var(--accent);
}
.wipe[data-stage="arm"] .wipe__frame {
  border-color: var(--accent-deep);
}
/* ---- right-click menu ----------------------------------------------------
   Shared by hub, socials and legal. A torn scrap of ruled paper, same on all
   three. Deliberately hard-coded: this is the one element meant NOT to take
   the local palette, so do not swap these for site variables. */
.ctx {
  position: fixed;
  z-index: 9500;
  min-width: 244px;
  max-width: 292px;
  padding: 18px 10px 20px;
  background-color: #f2e9d2;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(64, 52, 42, 0.055) 25px 26px),
    radial-gradient(120% 80% at 12% 0%, rgba(255, 252, 242, 0.85), transparent 60%);
  clip-path: polygon(0% 2.2%, 6% 0.5%, 13% 1.8%, 21% 0.3%, 29% 1.6%, 38% 0.4%, 47% 1.7%, 56% 0.5%, 65% 1.8%, 74% 0.4%, 83% 1.6%, 92% 0.6%, 100% 2%, 98.9% 12%, 100% 24%, 98.6% 36%, 100% 48%, 98.8% 60%, 100% 72%, 98.7% 84%, 100% 96%, 93% 98.4%, 85% 100%, 76% 98.2%, 67% 99.8%, 58% 98.4%, 49% 100%, 40% 98.5%, 31% 99.9%, 22% 98.3%, 13% 99.8%, 5% 98.4%, 0% 97%, 1.2% 86%, 0% 74%, 1.4% 62%, 0% 50%, 1.1% 38%, 0% 26%, 1.3% 14%);
  filter: drop-shadow(0 16px 26px rgba(20, 12, 4, 0.6));
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) rotate(-0.7deg);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.15s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0s linear 0.15s;
}

.ctx.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(-0.7deg);
  pointer-events: auto;
  transition-delay: 0s;
}

.ctx.is-flip-x { transform-origin: top right; }
.ctx.is-flip-y { transform-origin: bottom left; }
.ctx.is-flip-x.is-flip-y { transform-origin: bottom right; }

.ctx__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 11px;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a2e;
}

.ctx__item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border-radius: 7px;
  font-family: "Spectral", Georgia, serif;
  font-size: 14.5px;
  color: #241f18;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    color 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.16s cubic-bezier(0.33, 1, 0.68, 1);
}

.ctx__item:hover,
.ctx__item:focus-visible {
  background: rgba(138, 90, 46, 0.14);
  color: #5d3a17;
  transform: translateX(3px);
}

.ctx__ico {
  flex: none;
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.72;
}

/* The drawn icons in the context menu, sized to sit with the label rather
   than the unicode glyph they replaced. */
.ctx__svg {
  width: 15px;
  height: 15px;
  display: block;
}

.ctx__item:hover .ctx__ico {
  opacity: 1;
}

.ctx__ext {
  margin-left: auto;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(36, 31, 24, 0.45);
}

.ctx__sep {
  height: 2px;
  margin: 8px 12px;
  background: repeating-linear-gradient(90deg, rgba(28, 26, 22, 0.22) 0 5px, transparent 5px 12px);
}
@media (max-width: 640px) {
  .chapter { gap: 13px; padding: 13px 12px 13px 14px; }
  .chapter:hover { transform: none; }
  .chapter__caret { display: none; }
  .chapter__num { width: 33px; height: 33px; font-size: 12.5px; }
  .chapter__sub { white-space: normal; }
  .board__body { padding: 30px 20px 26px; }
  .board__tab { left: 20px; font-size: 10px; padding: 5px 12px 7px; }
  .pv { gap: 16px; }
  .pv__foot { gap: 12px; }
  .pv__cta { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .eggshelf { gap: 14px 0; }
  .scrap { margin-left: 0 !important; }
  .scrap:hover .scrap__body { transform: translateY(-4px); }
}
@media (max-width: 520px) {
  .modal { padding: 16px 12px; }
  .modal__scroll { padding: 40px 20px 24px; }
  .opt { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
  .opt__ctl { width: 100%; justify-content: flex-start; }
  .dial { width: 100%; max-width: 220px; }
}
@media (max-width: 400px) {
  .ctx { min-width: 0; width: calc(100vw - 24px); max-width: 280px; }
}
@media (max-height: 430px) {
  .ctx { max-height: calc(100vh - 20px); overflow-y: auto; overscroll-behavior: contain; }
  .ctx__item { padding-top: 7px; padding-bottom: 7px; }
}


/* ---- the return: rain on a closed window ---------------------------------
   Shown once, when you come back to the hub having found the platform snippet.
   Pointer-events none throughout: it is weather, not furniture. */
.rainwin {
  position: fixed;
  inset: 0;
  z-index: 6000;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2.4s ease;
}

.rainwin.is-on {
  opacity: 1;
}

/* The vignette lifts when it settles, but the glass and the drops stay. */
.rainwin.is-settled .rainwin__frame {
  opacity: 0.32;
}

.rainwin.is-settled .rainwin__drops {
  opacity: 0.5;
}

/* Condensation. Two soft washes that never fully clear, so the view is always
   slightly interrupted. */
.rainwin__glass {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(60% 40% at 22% 18%, rgba(214, 226, 232, 0.14), transparent 70%),
    radial-gradient(50% 45% at 78% 72%, rgba(198, 214, 224, 0.12), transparent 72%);
  backdrop-filter: blur(0.6px);
  -webkit-backdrop-filter: blur(0.6px);
}

/* The frame: a cold vignette that pulls the corners down and takes the warmth
   out of the paper without recolouring it. */
.rainwin__frame {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 42%, rgba(24, 34, 44, 0.5) 100%);
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 3.4s ease;
}

.rainwin__drops {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 3.4s ease;
}

/* A drop is a short bright streak that runs the height of the glass. It starts
   above the frame and ends below it, so it is never sitting still on screen. */
.rainwin__drop {
  position: absolute;
  top: -14vh;
  height: 12vh;
  border-radius: 99px;
  background: linear-gradient(
    180deg,
    rgba(226, 238, 245, 0) 0%,
    rgba(226, 238, 245, 0.5) 55%,
    rgba(240, 250, 255, 0.85) 92%,
    rgba(226, 238, 245, 0) 100%
  );
  filter: blur(0.4px);
  animation-name: rainFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes rainFall {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-2vw, 128vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rainwin__drop {
    animation: none;
    transform: translate3d(0, 40vh, 0);
  }
}

/* ---- rainy day, the mode it unlocks --------------------------------------
   A step darker and a step colder, and that is all. The hub is a warm paper
   desk the rest of the time and this should read as the same desk on a worse
   afternoon, not as a different site. */
/* No filter on body. A filter creates a containing block for fixed-position
   descendants, so the rain overlay stopped being viewport-fixed and stretched
   to the full document height, which is what added the scrollbar. The mood is
   done entirely with the overlay below. */
html.is-rainy {
  color-scheme: dark;
}

html.is-rainy body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  /* Two layers: a flat cold wash that takes the warmth out of the paper, and a
     vignette over it that pulls the corners down. Deeper than the first pass,
     which barely registered. */
  background:
    linear-gradient(rgba(30, 42, 56, 0.34), rgba(30, 42, 56, 0.34)),
    radial-gradient(120% 105% at 50% 38%, transparent 30%, rgba(14, 22, 32, 0.62) 100%);
  mix-blend-mode: multiply;
}

/* The paper itself goes colder and quieter rather than merely darker. */
html.is-rainy .paper,
html.is-rainy .board,
html.is-rainy .sheet {
  filter: saturate(0.72) brightness(0.9) contrast(1.02);
}

html.is-rainy .rainwin {
  opacity: 1;
}


