/* Maxwell Cranston: a dark arcade, 1980s, after closing time.
   Sleek, dim, retro. Nothing flashy: light comes from the screens. */

/* Self-hosted (no third-party font requests): SIL Open Font License. */
@font-face {
  font-family: "VT323";
  src: url("../fonts/vt323-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0b0a09;
  --bg-raised: #14120f;
  --bg-cabinet: #191612;
  --line: #2a251f;
  --ink: #d8cfc0;
  --ink-dim: #8f8678;
  --ink-faint: #8a8173; /* 4.5:1+ on every background (review 2026-10-27) */
  --amber: #e0a246;
  --rose: #d97a8a;
  --cyan: #6fc3c8;
  --lime: #9ac26a;
  --glow: 0 0 6px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "VT323", "IBM Plex Mono", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* The room after closing: light pools from cabinets just off screen, film
     grain, and the ghost of an 80s arcade carpet underfoot. All dim. */
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 50vh at 8% 22%, rgba(224, 162, 70, 0.075), transparent 70%),
    radial-gradient(50vw 45vh at 94% 12%, rgba(111, 195, 200, 0.06), transparent 70%),
    radial-gradient(55vw 50vh at 78% 92%, rgba(217, 122, 138, 0.05), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke-width='3' opacity='.045'%3E%3Cpath d='M20 40l18-24 18 24z' stroke='%23e0a246'/%3E%3Cpath d='M120 30q15-20 30 0t30 0' stroke='%236fc3c8'/%3E%3Ccircle cx='70' cy='140' r='14' stroke='%23d97a8a'/%3E%3Cpath d='M160 120l30 30M190 120l-30 30' stroke='%239ac26a'/%3E%3Cpath d='M20 190q15-15 30 0t30 0' stroke='%23d97a8a'/%3E%3Crect x='130' y='175' width='22' height='22' transform='rotate(20 141 186)' stroke='%23e0a246'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll, scroll;
  color: var(--ink);
  font: 400 16px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* The room: faint CRT scanlines and a vignette over everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f1bb66; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 60; background: var(--bg-raised); padding: 6px 10px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  font: 22px/1 var(--pixel);
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 2px 6px 0;
  text-shadow: var(--glow) rgba(224, 162, 70, 0.45);
}
.brand-name { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--ink); }
.login {
  font: 20px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--amber);
  padding: 6px 14px 4px;
  border-radius: 2px;
}
.login:hover { color: var(--bg); background: #f1bb66; }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Hero: a neon marquee sign over the floor */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(56px, 10vw, 120px) 0 clamp(96px, 14vw, 160px);
  overflow: hidden;
}
.section-lede { color: var(--ink-faint); }
.sign {
  --tube: #f2b35a;
  position: relative;
  z-index: 1;
  padding: clamp(18px, 3vw, 30px) clamp(22px, 5vw, 56px) clamp(14px, 2.4vw, 24px);
  border: 2px solid rgba(242, 179, 90, 0.38);
  border-radius: 10px;
  box-shadow:
    0 0 0 6px rgba(11, 10, 9, 0.9),
    0 0 0 7px rgba(242, 179, 90, 0.14),
    0 0 40px rgba(242, 179, 90, 0.12),
    inset 0 0 30px rgba(242, 179, 90, 0.07);
  background: rgba(8, 7, 6, 0.6);
}
.sign-text {
  margin: 0;
  font: 400 clamp(56px, 11vw, 132px)/0.86 var(--pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe3b8;
  text-shadow:
    0 0 2px #fff2dc,
    0 0 8px var(--tube),
    0 0 22px rgba(242, 179, 90, 0.55),
    0 0 48px rgba(242, 179, 90, 0.28);
}
.sign-line { display: block; }
.flicker { animation: flicker 7s linear infinite; }
@keyframes flicker {
  0%, 18%, 22%, 61%, 63%, 100% { opacity: 1; }
  19%, 21% { opacity: 0.25; text-shadow: none; }
  62% { opacity: 0.45; text-shadow: none; }
}
.sign-plate {
  margin: 14px 0 0;
  font: 22px/1 var(--pixel);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(111, 195, 200, 0.45);
}
.lede { position: relative; z-index: 1; max-width: 46ch; color: var(--ink-dim); margin: 36px 0 0; }
.credit { position: relative; z-index: 1; margin: 22px 0 0; font: 22px/1 var(--pixel); color: var(--amber); letter-spacing: 0.18em; text-transform: uppercase; }
/* The floor: a perspective grid that fades into the dark */
.floor-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -2px;
  height: 46%;
  background:
    repeating-linear-gradient(to right, rgba(224, 162, 70, 0.16) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(224, 162, 70, 0.16) 0 1px, transparent 1px 40px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .flicker { animation: none; } }
.blink { animation: blink 2.4s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* Sections */
.floor, .backroom { padding: 56px 0; border-top: 1px solid var(--line); }
.section-title {
  font: 400 30px/1 var(--pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.section-lede { margin: 0 0 32px; }

/* Cabinets: the named games */
.cabinets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cabinet { --tint: var(--amber); }
.cabinet--rose { --tint: var(--rose); }
.cabinet--cyan { --tint: var(--cyan); }
.cabinet--lime { --tint: var(--lime); }
.cabinet a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  background: var(--bg-cabinet);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.cabinet a:hover, .cabinet a:focus-visible { border-color: var(--tint); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .cabinet a { transition: none; }
  .cabinet a:hover, .cabinet a:focus-visible { transform: none; }
}
.screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 14px 14px 0;
  border-radius: 10px / 14px;
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 70%),
    #060606;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.9), inset 0 0 2px color-mix(in srgb, var(--tint) 40%, transparent);
}
.screen-text {
  font: 34px/1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--tint);
  text-shadow: var(--glow) color-mix(in srgb, var(--tint) 55%, transparent);
  opacity: 0.82;
  transition: opacity 160ms ease;
}
.cabinet a:hover .screen-text { opacity: 1; }
.plate { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.title { font: 26px/1 var(--pixel); letter-spacing: 0.04em; color: var(--ink); }
.blurb { font-size: 13px; color: var(--ink-dim); flex: 1; }
.cta {
  align-self: flex-start;
  font: 18px/1 var(--pixel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tint);
  border: 1px solid color-mix(in srgb, var(--tint) 50%, transparent);
  padding: 5px 10px 3px;
}

/* The back room: unlit machines, codenames only */
.unlit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.machine {
  background: var(--bg-raised);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 16px;
}
.codename { display: block; font: 24px/1 var(--pixel); letter-spacing: 0.1em; color: var(--ink-dim); }
.status {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 2px 6px;
}
.machine p { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }

/* Previews: one panel per game */
.previews { padding: 56px 0; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.previews .section-title { margin-bottom: 4px; }
.preview {
  --tint: var(--amber);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tint);
  border-radius: 4px;
  padding: 22px 22px 24px;
  display: grid;
  gap: 12px;
}
.preview--rose { --tint: var(--rose); }
.preview--cyan { --tint: var(--cyan); }
.preview-title {
  margin: 0;
  font: 400 32px/1 var(--pixel);
  letter-spacing: 0.04em;
  color: var(--tint);
  text-shadow: var(--glow) color-mix(in srgb, var(--tint) 35%, transparent);
}
.preview-pitch { margin: 0; max-width: 70ch; color: var(--ink-dim); }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.preview .cta { justify-self: start; text-decoration: none; }

/* Footer */
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}
.bottom a { color: var(--ink-faint); }

/* Phones */
@media (max-width: 720px) {
  /* Two rows on a phone: let it scroll away instead of pinning it. */
  .top { flex-wrap: wrap; gap: 12px; position: static; }
  .brand-name { display: none; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
  .login { margin-left: auto; }
}

/* Screens with a picture: the game plays dim behind the glass, the title
   burns in over it, and the glass brightens when you walk up. */
.screen { overflow: hidden; }
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.5) contrast(1.1);
  transition: filter 220ms ease;
}
.screen:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.screen:has(img) .screen-text {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 12%;
  font-size: 30px;
  background: rgba(6, 6, 6, 0.55);
  padding: 2px 10px 0;
}
.cabinet a:hover .screen img, .cabinet a:focus-visible .screen img {
  filter: saturate(0.95) brightness(0.8) contrast(1.05);
}
@media (prefers-reduced-motion: reduce) { .screen img { transition: none; } }

/* ---- 2026-11-09 pass: hardware, ticker, coin, pages ---- */

/* The sign warms up when you walk in. Once. */
.sign-text { animation: poweron 1.8s linear 1 both; }
@keyframes poweron {
  0% { opacity: 0.08; text-shadow: none; }
  8% { opacity: 0.9; }
  12% { opacity: 0.15; text-shadow: none; }
  20% { opacity: 1; }
  26% { opacity: 0.3; text-shadow: none; }
  34%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .sign-text { animation: none; } }
.sign--rose { --tube: #e98a9b; border-color: rgba(233, 138, 155, 0.38); }
.sign--rose .sign-text { color: #ffd9df; text-shadow: 0 0 2px #fff, 0 0 8px var(--tube), 0 0 22px rgba(233, 138, 155, 0.5); }

/* Insert coin */
.coin { cursor: default; }
.js .coin { cursor: pointer; user-select: none; padding: 6px 12px; border: 1px solid transparent; border-radius: 2px; }
.js .coin:hover, .js .coin:focus-visible { border-color: rgba(224, 162, 70, 0.5); }
.coin.dropped { animation: drop 280ms ease-out 1; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.continue { color: var(--rose); text-decoration: none; }
.continue:hover { color: #f0a3b0; }

/* LED ticker under the sign: dim, slow */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #070605;
  margin: 0 calc(var(--gutter) * -1);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span {
  white-space: pre;
  font: 20px/1 var(--pixel);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.62;
  padding: 10px 0 8px;
  text-shadow: 0 0 5px rgba(224, 162, 70, 0.35);
}
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Cabinet hardware: a lit marquee strip, a control deck, a coin slot */
.cabinet a { position: relative; border-top: 0; }
.cabinet a::before {
  content: "";
  display: block;
  height: 10px;
  background:
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.45) 0 2px, transparent 2px 14px),
    linear-gradient(to bottom, color-mix(in srgb, var(--tint) 75%, #fff 0%), color-mix(in srgb, var(--tint) 35%, #000));
  opacity: 0.55;
  box-shadow: 0 0 14px color-mix(in srgb, var(--tint) 35%, transparent);
  transition: opacity 200ms ease;
}
.cabinet a:hover::before, .cabinet a:focus-visible::before, .powered .cabinet a::before { opacity: 1; }
.deck {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 9px 12px;
  background: linear-gradient(to bottom, #211d18, #14110e);
  border: 1px solid var(--line);
  border-radius: 3px;
  transform: perspective(300px) rotateX(18deg);
  transform-origin: 50% 0;
}
.deck i { display: block; flex: none; }
.stick {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d85a5a, #6b1f1f);
  box-shadow: 0 0 0 4px #0b0a09, 0 0 0 5px var(--line);
  margin-right: 8px;
}
.btn {
  width: 11px; height: 11px; border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 55%, #1a1714);
  box-shadow: 0 0 0 2px #0b0a09, inset 0 -2px 2px rgba(0, 0, 0, 0.5);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.cabinet a:hover .btn, .cabinet a:focus-visible .btn, .powered .btn {
  background: var(--tint);
  box-shadow: 0 0 0 2px #0b0a09, 0 0 8px color-mix(in srgb, var(--tint) 60%, transparent);
}
.slot {
  margin-left: auto;
  width: 4px; height: 16px; border-radius: 1px;
  background: #050505;
  box-shadow: 0 0 0 3px #2a251f, 0 0 0 4px #0b0a09;
}
.powered .slot { box-shadow: 0 0 0 3px #2a251f, 0 0 0 4px #0b0a09, 0 0 10px rgba(224, 162, 70, 0.55); }
.powered .screen img { filter: saturate(0.9) brightness(0.72) contrast(1.05); }
.powered .screen-text { opacity: 1; }

/* Previews: the game on a small screen beside its pitch */
.preview-screen {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px / 14px;
  overflow: hidden;
  background: #060606;
  box-shadow: inset 0 0 2px color-mix(in srgb, var(--tint) 40%, transparent), 0 0 24px color-mix(in srgb, var(--tint) 10%, transparent);
}
.preview-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.7); }
.preview-screen::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}
@media (min-width: 721px) {
  .preview { grid-template-columns: 220px 1fr; column-gap: 24px; }
  .preview > * { grid-column: 2; }
  .preview > .preview-screen { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
}

/* Back room: dust sheets and a taped note */
.machine {
  position: relative;
  background:
    repeating-linear-gradient(115deg, rgba(216, 207, 192, 0.022) 0 14px, transparent 14px 30px),
    var(--bg-raised);
  transition: border-color 200ms ease;
}
.machine:hover { border-color: #3d362d; }
.machine:hover .codename { color: var(--ink); animation: flicker 2.2s linear 1; }
.status {
  transform: rotate(-2deg);
  background: rgba(216, 207, 192, 0.05);
  border-style: dashed;
}
.machine:nth-child(even) .status { transform: rotate(1.5deg); }
@media (prefers-reduced-motion: reduce) { .machine:hover .codename { animation: none; } }

/* Plain pages (Impressum) */
.page { max-width: 760px; padding-top: 48px; padding-bottom: 56px; }
.page h2 { font: 400 22px/1.1 var(--pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin: 32px 0 6px; }
.page p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.gameover { min-height: 70vh; align-content: center; }

/* ---- 2026-11-09 late pass: closed alpha, kids' corner, invite list, about ---- */
.alpha-note { margin: 20px 0 0; font-size: 13px; color: var(--ink-dim); }
.cabinet--sun { --tint: #e8c96a; }
/* Kids' corner: someone left a lamp on over here */
.floor--kids {
  position: relative;
  background: radial-gradient(70% 60% at 50% 0%, rgba(232, 201, 106, 0.07), transparent 75%);
  border-top-color: #3a3324;
}
.floor--kids .section-title { color: #f0dba0; }

.invite-form { display: grid; gap: 14px; max-width: 460px; }
.invite-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.invite-form .opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.invite-form input, .invite-form textarea {
  font: 400 15px/1.4 var(--mono);
  color: var(--ink);
  background: #070605;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 10px;
  width: 100%;
}
.invite-form input:focus, .invite-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 1px rgba(224, 162, 70, 0.35); }
.invite-form button { justify-self: start; border: 0; cursor: pointer; }
.invite-form button[disabled] { opacity: 0.5; cursor: default; }
.hp { position: absolute !important; left: -9999px; }
.invite-status { margin: 0; min-height: 1.6em; font: 20px/1.2 var(--pixel); letter-spacing: 0.08em; color: var(--lime); }
.invite-status.bad { color: var(--rose); }
.fineprint { margin: 0; font-size: 12px; color: var(--ink-faint); }
.about-text { max-width: 60ch; margin: 0; color: var(--ink-dim); font-size: 15px; }

/* ---- the tip jar ---- */
.hero--jar { padding-bottom: clamp(72px, 10vw, 120px); }
.tip-link.soon { opacity: 0.55; cursor: default; }
.voices span b { font-weight: 400; color: var(--rose); border: 1px solid var(--rose); padding: 0 6px; margin-right: 8px; letter-spacing: 0.1em; }
.voices span { text-transform: none; letter-spacing: 0.06em; color: var(--ink); opacity: 0.8; }
.jar { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.jar-card { --tint: var(--amber); display: grid; gap: 10px; align-content: start; padding: 20px; background: var(--bg-cabinet); border: 1px solid var(--line); border-top: 3px solid var(--tint); border-radius: 4px; }
.jar--rose { --tint: var(--rose); } .jar--cyan { --tint: var(--cyan); }
.jar-coin { font: 30px/1 var(--pixel); letter-spacing: 0.04em; color: var(--tint); text-shadow: var(--glow) color-mix(in srgb, var(--tint) 35%, transparent); }
.jar-card p { margin: 0; font-size: 14px; color: var(--ink-dim); }
.jar-card .cta { text-decoration: none; }
.jar-note { margin-top: 24px; max-width: 70ch; }
.tipline { margin: 18px 0 0; font-size: 14px; color: var(--ink-dim); }
.bottom .jar-link { color: var(--amber); }

/* hearts box */
.hearts { border: 0; margin: 0; padding: 0; }
.hearts legend { padding: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.hearts-row { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.hearts-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hearts-row label { display: block; width: 48px; height: 48px; cursor: pointer; color: #3a332b; transition: color 120ms ease, transform 120ms ease; }
.hearts-row label::before { content: "\2665"; display: grid; place-items: center; width: 100%; height: 100%; font: 46px/1 var(--pixel); }
.hearts-row label span { position: absolute; left: -9999px; }
.hearts-row input:checked ~ label, .hearts-row label:hover, .hearts-row label:hover ~ label { color: var(--rose); text-shadow: 0 0 8px rgba(217, 122, 138, 0.5); }
.hearts-row label:hover { transform: scale(1.12); }
.hearts-row input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
.hearts-count { position: relative; z-index: 1; margin: 18px 0 0; font: 24px/1 var(--pixel); letter-spacing: 0.1em; color: var(--rose); }
.hearts-count b { font-weight: 400; color: #ffd9df; }

/* the hidden attribute wins over any display rule */
[hidden] { display: none !important; }
