@font-face {
  font-family: "Geist Mono";
  src: url("/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --ink: #eef2fb;
  --dim: rgba(222, 230, 247, .62);
  --moon: 214, 226, 255;
  --paper: #e6e2d8;
  --pen: #22252e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --slap: cubic-bezier(.25, 1.55, .45, 1);
  --flash: 0;
  --px: 0;
  --py: 0;
  --s: 0;
  --noise: 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='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.5 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html:not(.entered) body, .lb-open body { overflow: hidden; }
::selection { background: rgb(var(--moon)); color: var(--bg); }

.bgwrap {
  position: fixed;
  inset: -3%;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0);
}
.bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg) url("/poster.jpg") center / cover no-repeat;
  filter: brightness(calc(.55 - var(--bgdim, 0) * .4)) saturate(.8) blur(2px);
  transform: scale(1.08);
  transition: filter 2.2s var(--ease), transform 2.8s var(--ease);
}
.bg[hidden] { display: none; }
.custom-bg .bg { background-image: none; }
.entered .bg { filter: brightness(calc(.9 - var(--bgdim, 0))) saturate(.95) blur(0); transform: scale(1); }

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 38%, rgba(4, 5, 8, .62) 82%, rgba(4, 5, 8, .9) 100%),
    radial-gradient(90% 55% at 50% 112%, rgba(var(--moon), .13), transparent 70%),
    linear-gradient(to top, rgba(4, 5, 8, .55), transparent 40%);
}

.dusk {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(5, 6, 10, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: var(--s);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}

main { position: relative; z-index: 3; overflow-x: clip; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

.mark {
  display: grid;
  justify-items: center;
  opacity: calc(1 - var(--s) * .85);
  transform: translate3d(calc(var(--px) * 9px), calc(var(--py) * 7px - var(--s) * 70px), 0);
}

h1 {
  margin: 0;
  line-height: 0;
  filter:
    blur(10px)
    drop-shadow(0 2px 4px rgba(0, 0, 0, .6))
    drop-shadow(0 0 calc(14px + var(--flash) * 46px + var(--beat, 0) * 26px) rgba(var(--moon), calc(.28 + var(--flash) * .62 + var(--beat, 0) * .35)));
  transition: filter 2s var(--ease) .5s;
}
.entered h1 {
  filter:
    blur(0)
    drop-shadow(0 2px 4px rgba(0, 0, 0, .6))
    drop-shadow(0 0 calc(14px + var(--flash) * 46px + var(--beat, 0) * 26px) rgba(var(--moon), calc(.28 + var(--flash) * .62 + var(--beat, 0) * .35)));
}
.entered.settled h1 { transition: filter .12s linear; }

.logo {
  display: block;
  width: min(50vw, 360px);
  height: auto;
  overflow: visible;
  user-select: none;
}
.logo path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.logo .ink { stroke-width: 7.5; transition: stroke-dashoffset 2.8s cubic-bezier(.6, 0, .3, 1) .35s; }
.logo g { transform-box: fill-box; transform-origin: 50% 55%; }
.entered .logo { animation: float 8s ease-in-out 3.2s infinite; cursor: pointer; }
.entered .logo path { stroke-dashoffset: 0; }
.settled .logo g { animation: pulse 3.2s ease-in-out infinite; }
.reactive .logo g { animation: none; scale: calc(1 + var(--beat, 0) * .085); }
.logo path.cava {
  stroke: rgb(var(--moon));
  stroke-width: 2.4;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: .8;
  transition: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.links {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: clamp(10px, 2vw, 22px);
}
button.handle { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.handle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .85em;
  padding: 7px 4px 7px 12px;
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: .42em;
  color: var(--dim);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
  opacity: 0;
  translate: 0 10px;
  filter: blur(6px);
  --at: calc(2.3s + var(--i, 0) * .14s);
  transition: opacity 1.4s var(--ease) var(--at), translate 1.6s var(--ease) var(--at), filter 1.4s var(--ease) var(--at), color .5s var(--ease), letter-spacing .7s var(--ease), text-shadow .5s var(--ease);
}
.handle svg {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85));
  transition: filter .5s var(--ease);
}
.handle:hover svg, .handle:focus-visible svg { filter: drop-shadow(0 0 8px rgba(var(--moon), .8)) drop-shadow(0 1px 2px rgba(0, 0, 0, .85)); }
.handle::after {
  content: "";
  position: absolute;
  left: calc(12px + 2.05em);
  right: calc(4px + .42em);
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--moon)), transparent);
  transform: scaleX(0);
  transition: transform .7s var(--ease);
}
.entered .handle { opacity: 1; translate: 0 0; filter: blur(0); }
.handle:hover, .handle:focus-visible {
  color: var(--ink);
  letter-spacing: .5em;
  text-shadow: 0 0 14px rgba(var(--moon), .75), 0 1px 3px rgba(0, 0, 0, .85);
  outline: none;
}
.handle:hover::after, .handle:focus-visible::after { transform: scaleX(1); }
.entered .handle:hover, .entered .handle:focus-visible { transition-delay: 0s; }

.cue {
  position: absolute;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 52px);
  display: grid;
  justify-items: center;
  gap: 10px;
  translate: -50% 0;
  font-size: 10px;
  letter-spacing: .5em;
  padding-left: .5em;
  color: var(--dim);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity 1.4s ease 3.4s;
}
.entered .cue { opacity: calc(1 - var(--s) * 3); }
.settled .cue { transition: none; }
.cue i {
  display: block;
  width: 1px;
  height: 34px;
  margin-left: -.5em;
  background: linear-gradient(to bottom, transparent, rgb(var(--moon)), transparent) 0 -34px / 1px 34px no-repeat;
  animation: drip 2.2s var(--ease) infinite;
}

.board {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6vh 22px calc(140px + env(safe-area-inset-bottom));
}

.head {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(36px, 7vw, 72px);
}

.wall {
  columns: 4 210px;
  column-gap: clamp(26px, 3.4vw, 48px);
}

.item {
  position: relative;
  display: block;
  width: var(--w, 100%);
  margin: 0 0 clamp(34px, 4.6vw, 56px);
  margin-left: var(--ml, 0);
  break-inside: avoid;
  container-type: inline-size;
  rotate: calc(var(--r, 0deg) + var(--rr, 0deg));
  translate: var(--x, 0) var(--y, 0);
  scale: var(--sc, 1);
  opacity: var(--o, 1);
}
.js .item { --rr: 8deg; --sc: 1.14; --o: 0; }
.js .item.in {
  --rr: 0deg;
  --sc: 1;
  --o: 1;
  transition: rotate .6s var(--slap), scale .5s var(--slap), opacity .22s ease;
}

.tail { display: flex; flex-wrap: wrap; justify-content: center; }
.tail .item { width: min(270px, 46%); margin: clamp(4px, 1vw, 12px) auto clamp(34px, 4.6vw, 56px); }
.tail .side { order: 1; width: min(240px, 60%); }
.tail .side.float { position: absolute; margin: 0; }

.wall.free {
  position: relative;
  columns: auto;
  container-type: inline-size;
}
.wall.free .item {
  position: absolute;
  margin: 0;
  left: calc(var(--fx, 0) * 1%);
  top: calc(var(--fy, 0) * 1cqw);
  width: calc(var(--fw, 26) * 1%);
}

.pol { cursor: zoom-in; outline: none; }
.pol.bare .card { padding: 0; background: none; box-shadow: none; }
.pol.bare .photo {
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 16px 30px -8px rgba(0, 0, 0, .7);
}
.pol.bare .photo img { filter: none; }
.pol.bare .photo::after { background: linear-gradient(118deg, rgba(255, 255, 255, .07) 0 20%, transparent 36%); box-shadow: none; }
.pol.bare .card figcaption {
  min-height: 0;
  padding: .45em .2em 0;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 12px rgba(var(--moon), .35);
}
.pol.bare .card figcaption:empty { display: none; }
.lb .pol.bare .card { padding: 0; }

.card {
  position: relative;
  padding: 6.5% 6.5% 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 40%, rgba(0, 0, 0, .07)),
    var(--noise),
    var(--paper);
  background-blend-mode: normal, soft-light, normal;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, .35),
    0 8px 18px -6px rgba(0, 0, 0, .55),
    0 26px 48px -20px rgba(0, 0, 0, .75);
}
.pol:focus-visible .card { outline: 1px solid rgba(var(--moon), .7); outline-offset: 6px; }

.photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0d0f14;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.06) saturate(.88) sepia(.08);
  transition: filter .6s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.pol:hover .photo img { filter: contrast(1.06) saturate(1) sepia(0) brightness(1.1); }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, .13) 0 22%, transparent 38%, transparent 70%, rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 22px rgba(0, 0, 0, .45);
}

.card figcaption, .note p {
  font-family: "Caveat", cursive;
  font-weight: 500;
  color: var(--pen);
  line-height: 1.05;
}
.card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1em;
  padding: .25em .4em .45em;
  font-size: clamp(16px, 9.5cqw, 25px);
  text-align: center;
  rotate: var(--cr, -1.5deg);
}

.note .card { padding: 13% 11% 14%; }
.note .card::before {
  background:
    linear-gradient(to right, transparent 13%, rgba(196, 92, 92, .35) 13% calc(13% + 1px), transparent calc(13% + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 1.55em, rgba(70, 104, 170, .28) 1.55em calc(1.55em + 1px)),
    var(--noise),
    #ece8de;
  background-blend-mode: normal, normal, soft-light, normal;
  background-position: 0 0, 0 .4em, 0 0, 0 0;
}
.note .card {
  font-size: clamp(17px, 10cqw, 26px);
  background: none;
  box-shadow: none;
  cursor: default;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)) drop-shadow(0 12px 16px rgba(0, 0, 0, .5));
}
.note .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--edge);
}
.note p { margin: 0; padding-left: 8%; line-height: 1.55em; }

.ghost { aspect-ratio: 1 / 1.12; pointer-events: none; }

.tape {
  position: absolute;
  z-index: 2;
  left: var(--tx);
  top: var(--ty);
  width: calc(var(--tw) * 1cqw);
  height: clamp(19px, 12.5cqw, 38px);
  translate: -50% -50%;
  rotate: var(--ta);
  pointer-events: none;
  filter: drop-shadow(0 1px .5px rgba(0, 0, 0, .28)) drop-shadow(0 3px 4px rgba(0, 0, 0, .22));
}
.tape i {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  clip-path: var(--edge);
  transform-origin: var(--from, 0%) 50%;
}
.tape i::before, .tape i::after {
  content: "";
  position: absolute;
  inset: 0;
}
.tape i::before {
  background: var(--noise);
  background-size: 120px;
  mix-blend-mode: overlay;
  opacity: .55;
}
.tape i::after {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .32) 0 1px, transparent 1px calc(100% - 1px), rgba(0, 0, 0, .18) calc(100% - 1px)),
    linear-gradient(var(--wa, 96deg), transparent calc(var(--w1) - 2%), rgba(255, 255, 255, .26) var(--w1), rgba(0, 0, 0, .14) calc(var(--w1) + 1.2%), transparent calc(var(--w1) + 3%)),
    linear-gradient(calc(var(--wa, 96deg) + 168deg), transparent calc(var(--w2) - 1.5%), rgba(255, 255, 255, .2) var(--w2), rgba(0, 0, 0, .1) calc(var(--w2) + 1%), transparent calc(var(--w2) + 2.5%)),
    linear-gradient(to bottom, rgba(255, 255, 255, .14), transparent 45%, rgba(0, 0, 0, .06));
}
.js .tape i { transform: scaleX(0); }
.js .in .tape i, .js .tape.label i {
  transform: scaleX(1);
  transition: transform .42s cubic-bezier(.3, .7, .2, 1) calc(.32s + var(--d, 0s));
}

.k-frost i { background: rgba(244, 245, 240, .58); }
.k-mask i { background: var(--fiber), rgba(214, 196, 150, .9); background-size: 160px 50px, auto; }
.k-mask i::before { opacity: .8; }
.k-stripe i { background: repeating-linear-gradient(-48deg, rgba(var(--moon), .78) 0 5px, rgba(250, 250, 255, .5) 5px 10px); }
.k-dots i {
  background:
    radial-gradient(circle, rgba(54, 64, 104, .55) 1.3px, transparent 1.9px) 0 0 / 9px 9px,
    radial-gradient(circle, rgba(54, 64, 104, .55) 1.3px, transparent 1.9px) 4.5px 4.5px / 9px 9px,
    rgba(228, 226, 240, .72);
}
.k-heart i {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 13s-4.6-2.8-5.6-5.4C1.7 5.6 2.9 3.6 5 3.6c1.3 0 2.3.8 3 1.9.7-1.1 1.7-1.9 3-1.9 2.1 0 3.3 2 2.6 4C12.6 10.2 8 13 8 13z' fill='%23b85d78' fill-opacity='.62'/%3E%3C/svg%3E") 0 50% / 15px 15px,
    rgba(238, 210, 218, .74);
}
.k-gingham i {
  background:
    repeating-linear-gradient(0deg, rgba(110, 132, 190, .32) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, rgba(110, 132, 190, .32) 0 6px, transparent 6px 12px),
    rgba(236, 240, 250, .66);
}
.k-black i { background: linear-gradient(to bottom, #2a2c33, #121318 55%, #0c0d10); }
.k-black i::after {
  background:
    linear-gradient(to bottom, transparent 12%, rgba(255, 255, 255, .22) 20%, transparent 34%),
    linear-gradient(var(--wa, 96deg), transparent calc(var(--w1) - 2%), rgba(255, 255, 255, .12) var(--w1), transparent calc(var(--w1) + 2%));
}
.k-clear i { background: rgba(250, 252, 255, .1); }
.k-clear i::before { opacity: .18; }
.k-clear i::after {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .45) 0 1px, transparent 1px calc(100% - 1px), rgba(255, 255, 255, .35) calc(100% - 1px)),
    linear-gradient(to bottom, transparent 8%, rgba(255, 255, 255, .26) 16%, rgba(255, 255, 255, .06) 30%, transparent 46%),
    linear-gradient(var(--wa, 96deg), transparent calc(var(--w1) - 1%), rgba(255, 255, 255, .34) var(--w1), transparent calc(var(--w1) + 1.4%)),
    linear-gradient(calc(var(--wa, 96deg) + 172deg), transparent calc(var(--w2) - 1%), rgba(255, 255, 255, .26) var(--w2), transparent calc(var(--w2) + 1.2%)),
    radial-gradient(circle at 23% 64%, rgba(255, 255, 255, .5) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 38%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2.5px);
}
.k-clear { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.k-duct i { background: var(--fiber), linear-gradient(to bottom, #a3a8b0, #868b94); background-size: 140px 40px, auto; }
.k-duct i::before { opacity: .9; }

.tape b {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 30%;
  height: 150%;
  background: var(--noise), var(--paper);
  background-blend-mode: soft-light, normal;
  clip-path: var(--scrap);
}

.tape.label {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  translate: none;
  rotate: -2.5deg;
}
.tape.label i {
  position: relative;
  padding: 7px 34px 5px;
  font-family: "Caveat", cursive;
  font-size: clamp(22px, 3vw, 30px);
  font-style: normal;
  font-weight: 600;
  color: #3a3326;
  white-space: nowrap;
}
.tape.label i span { position: relative; z-index: 1; }

.doodle {
  position: absolute;
  z-index: 0;
  color: rgba(var(--moon), .5);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(var(--moon), .35));
}
.doodle svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.end {
  margin: 24px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .5em;
  padding-left: .5em;
  color: var(--dim);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(4, 5, 8, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.lb-open .lb { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lb .item {
  margin: 0;
  --r: -1.5deg;
  --o: 1;
  --sc: .9;
  --rr: 5deg;
  cursor: zoom-out;
  transition: rotate .5s var(--slap), scale .45s var(--slap);
}
.lb-open .lb .item { --sc: 1; --rr: 0deg; }
.lb .card { padding: 18px 18px 0; }
.js .lb .tape i { transform: none; }
.lb .card figcaption { font-size: clamp(22px, 5vw, 30px); }
.lb-x {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 18px;
  border: 0;
  padding: 8px 4px 8px 10px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 11px;
  letter-spacing: .14em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
.lb-x:hover, .lb-x:focus-visible { color: var(--ink); text-shadow: 0 0 12px rgba(var(--moon), .7); outline: none; }

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--dim);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity 1.4s ease 3s;
}
.entered .bar { opacity: 1; }

.np { display: flex; align-items: center; gap: 10px; min-width: 0; }
.np span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np b { color: var(--ink); font-weight: 500; }

.eq { display: flex; align-items: flex-end; gap: 2px; width: 14px; height: 11px; flex: none; }
.eq i {
  flex: 1;
  height: 100%;
  background: rgb(var(--moon));
  box-shadow: 0 0 6px rgba(var(--moon), .8);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-duration: .74s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: 1.18s; animation-delay: -.6s; }
.muted .eq i { animation-play-state: paused; opacity: .4; }

.snd {
  flex: none;
  border: 0;
  padding: 6px 2px 6px 8px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  letter-spacing: inherit;
  text-shadow: inherit;
  cursor: pointer;
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}
.snd:hover, .snd:focus-visible {
  color: var(--ink);
  text-shadow: 0 0 12px rgba(var(--moon), .7);
  outline: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: radial-gradient(circle at 50% 45%, rgba(7, 9, 13, .3), rgba(4, 5, 8, .86) 72%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  letter-spacing: .6em;
  cursor: pointer;
  transition: opacity 1.4s var(--ease), backdrop-filter 1.4s var(--ease), -webkit-backdrop-filter 1.4s var(--ease), visibility 0s linear 1.4s;
}
.gate span {
  padding-left: .6em;
  animation: breathe 3.2s ease-in-out infinite;
  transition: letter-spacing 1.2s var(--ease), opacity .8s ease, color .5s ease, text-shadow .5s ease;
}
.gate:hover span, .gate:focus-visible span { color: var(--ink); text-shadow: 0 0 16px rgba(var(--moon), .8); }
.gate:focus-visible { outline: none; }
.entered .gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.entered .gate span { letter-spacing: 1.4em; opacity: 0; }

.fx {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s ease 1.5s;
}
.fx.top { z-index: 5; transition-delay: 0s; }
.entered .fx { opacity: 1; }

.deco {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  translate: -50% -50%;
  rotate: var(--da, 0deg);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)) drop-shadow(0 6px 9px rgba(0, 0, 0, .25));
}
.deco svg { display: block; width: 100%; height: auto; }
.deco-bow { left: 50%; top: 0; width: 38cqw; }
.deco-heart { left: 90%; top: 91%; width: 18cqw; }
.deco-star { left: 91%; top: 5%; width: 19cqw; }
.note .deco-bow { top: 4%; }
.js .deco { scale: 0; opacity: 0; }
.js .in .deco, .lb .deco {
  scale: 1;
  opacity: 1;
  transition: scale .5s var(--slap) .85s, opacity .2s ease .85s;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 40px);
  z-index: 30;
  translate: -50% 8px;
  padding: 8px 14px 8px 18px;
  border-radius: 999px;
  background: rgba(10, 11, 16, .82);
  box-shadow: 0 0 0 1px rgba(var(--moon), .25), 0 8px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  max-width: min(560px, calc(100vw - 32px));
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .12em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), translate .5s var(--ease);
}
.toast.on { opacity: 1; translate: -50% 0; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@keyframes breathe {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
@keyframes pulse {
  0%, 40%, 100% { scale: 1; }
  8% { scale: 1.045; }
  16% { scale: 1; }
  24% { scale: 1.028; }
}
@keyframes drip {
  0% { background-position: 0 -34px; }
  70%, 100% { background-position: 0 34px; }
}
@keyframes eq {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 700px) {
  .wall { columns: 2; column-gap: 22px; }
  .board { padding-left: 16px; padding-right: 16px; }
  .doodle { display: none; }
}
@media (max-width: 520px) {
  .logo { width: 62vw; }
  .bar { font-size: 10px; letter-spacing: .1em; padding: 0 14px; }
}

@media (max-width: 700px), (pointer: coarse) {
  .dusk {
    background: rgba(5, 6, 10, .64);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .gate {
    background: radial-gradient(circle at 50% 45%, rgba(7, 9, 13, .55), rgba(4, 5, 8, .95) 72%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lb { background: rgba(4, 5, 8, .92); }
  .lb, .toast { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .grain { inset: 0; opacity: .06; animation: none; }
  .bgwrap { transform: none; }
  .bgwrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, calc(.12 + var(--bgdim, 0)));
    pointer-events: none;
  }
  .entered .bg { filter: none; }
  h1 { filter: blur(10px) drop-shadow(0 0 12px rgba(var(--moon), .55)); }
  .entered h1, .entered.settled h1 { filter: blur(0) drop-shadow(0 0 12px rgba(var(--moon), .55)); }
  .tape { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .4)); }
  .tape i::before { mix-blend-mode: normal; opacity: .16; }
  .deco, .doodle { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
  .note .card { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
  .card { box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 10px 22px -8px rgba(0, 0, 0, .65); }
  .handle svg { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .logo path, .handle, .bar, .deco, .bg, .gate, .gate span, .cue, .item, .tape i, .card { transition-duration: .01s !important; transition-delay: 0s !important; }
}
