/* brainrotaudio.com. Phone first. Fonts come from the visitor's own system: nothing loads from another host. */
:root {
  --bg: #12081f;
  --panel: #1d1031;
  --panel-2: #29164a;
  --line: #45286e;
  --ink: #fbf6ff;
  --muted: #bfaed6;
  --pink: #ff2e88;
  --lime: #c6ff3d;
  --cyan: #31e6ff;
  --orange: #ff7a1a;
  --red: #ff3b3b;
  --gold: #ffd23f;
  --display: "Arial Black", "Arial Bold", Impact, "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #3a1460 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  overflow-x: hidden;
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--lime); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.15; letter-spacing: 0.2px; }
h1 { font-size: 30px; margin: 0 0 10px; color: var(--lime); text-shadow: 0 0 18px rgba(198, 255, 61, 0.35), 3px 3px 0 var(--pink); }
h2 { font-size: 21px; margin: 28px 0 10px; color: var(--ink); }
h3 { font-size: 17px; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
small, .small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--lime); color: var(--bg); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Header and footer */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 10px 16px; border-bottom: 2px solid var(--line); background: rgba(18, 8, 31, 0.85);
}
.brand { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }
.brand span { color: var(--pink); text-shadow: 0 0 12px rgba(255, 46, 136, 0.6); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 9px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--ink); background: var(--panel-2); }
.top nav a[aria-current="page"] { color: var(--bg); background: var(--lime); }
main { max-width: 1120px; margin: 0 auto; padding: 16px; }
.foot { max-width: 1120px; margin: 24px auto 0; padding: 16px 16px 24px; border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; }

/* Buttons */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 700 15px/1.2 var(--body); color: var(--ink); background: var(--panel-2);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 44px;
  cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { border-color: var(--cyan); color: var(--ink); }
button:disabled, button[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.button.out::after { content: " ↗"; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.roll, .button.roll {
  font: 900 30px/1 var(--display); letter-spacing: 1px; color: var(--lime);
  background: radial-gradient(circle at 50% 30%, #ff9a3d, var(--orange) 55%, #c2410c);
  border: 3px solid #ffd2a8; border-radius: 999px; padding: 14px 40px; min-height: 64px;
  text-shadow: 2px 2px 0 #7a1d00, 0 0 12px rgba(198, 255, 61, 0.6);
  /* A dark edge round each letter, so the lime reads on the light orange. */
  -webkit-text-stroke: 2px #7a1d00; paint-order: stroke fill;
  box-shadow: 0 6px 0 #7a1d00, 0 0 28px rgba(255, 122, 26, 0.45);
}
.roll:hover { color: #fff; border-color: #fff; }
.roll:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #7a1d00, 0 0 20px rgba(255, 122, 26, 0.45); }
.roll:disabled, .roll[aria-disabled="true"] { opacity: 0.75; }

/* The machine page */
.machine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.machine-card, .machine-controls { min-width: 0; }
.machine-card { display: flex; flex-direction: column; align-items: center; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 460px); margin: 0 0 6px; }
.card-top .sound { min-height: 36px; padding: 6px 10px; }
.card-kicker { margin: 0; font: 900 14px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--pink); }
.made-up { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.beat { width: 100%; max-width: 460px; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; border: 2px dashed var(--pink); background: rgba(255, 46, 136, 0.12); font-weight: 800; text-align: center; }
.beat.won { border-style: solid; border-color: var(--lime); background: rgba(198, 255, 61, 0.12); }
.levels { margin-bottom: 12px; }
.levels .label { display: block; font: 900 14px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.level-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.level-buttons button { padding: 8px 4px; font-size: 14px; min-height: 44px; }
.level-buttons button[aria-pressed="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.level-buttons button.l4[aria-pressed="true"] { background: var(--pink); color: var(--bg); border-color: var(--pink); transform: rotate(-1.5deg); }
.level-blurb { font-size: 14px; color: var(--muted); margin: 8px 0 0; min-height: 21px; }

.reels { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.reel { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border-top: 1px solid var(--line); min-height: 52px; }
.reel:first-child { border-top: 0; }
.reel-lab { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); line-height: 1.2; }
.reel-val { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.reel[data-reel="spec"] .reel-val { font-family: var(--mono); font-size: 14px; color: var(--cyan); }
.reel.spin .reel-val { color: var(--muted); filter: blur(0.6px); }
.reel[data-tier="rare"] .reel-val, .reel[data-tier="overcooked"] .reel-val { color: var(--pink); }
.reel[data-tier="overcooked"] .reel-val { color: var(--orange); }
/* A light tint keeps pink text readable on a held reel; the lime edge marks it. */
.reel.held { background: rgba(198, 255, 61, 0.05); box-shadow: inset 4px 0 0 var(--lime); }
.hold { min-width: 64px; padding: 8px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.hold[aria-pressed="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.reel.flash { animation: flash 0.9s ease-out; }
@keyframes flash {
  0% { background: var(--pink); box-shadow: inset 0 0 0 3px var(--lime); }
  40% { background: rgba(255, 46, 136, 0.45); }
  100% { background: transparent; }
}
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* On a phone the ROLL bar is fixed to the bottom of the screen, where the thumb is. It steps
   aside only while the ROLL printed on the card is in the lower half of the screen, and never
   while it holds keyboard focus. */
.rollbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 18px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(18, 8, 31, 0));
  transition: opacity 0.2s, transform 0.2s;
}
.rollbar .roll { flex: 1; max-width: 340px; }
.page-machine { padding-bottom: 96px; }
/* When the browser scrolls a focused control into view, keep it above the fixed ROLL bar. */
html:has(body.page-machine) { scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.card-roll-near .rollbar:not(:focus-within) { opacity: 0; transform: translateY(40%); pointer-events: none; }
.sound { min-width: 76px; font-size: 13px; }
.sound[aria-pressed="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.status { min-height: 22px; font-size: 14px; color: var(--lime); margin: 8px 0 0; }
.fresh { font-size: 14px; color: var(--cyan); margin: 4px 0 0; }
.prompt-box { margin: 14px 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); }
/* The summary fills the whole box, so a tap anywhere on it opens the prompt. */
.prompt-box summary { cursor: pointer; font-weight: 800; color: var(--lime); margin: -12px -14px; padding: 12px 14px; border-radius: 10px; }
.prompt-box h2 { margin-top: 0; }
.prompt { font: 14px/1.5 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tally { font-size: 14px; color: var(--muted); }
.tally p { margin: 0 0 4px; }
.noscript { padding: 16px; border: 2px dashed var(--pink); border-radius: var(--radius); }
/* The p.noscript element only exists when scripts are off, so this hides the ROLL bar that cannot work. */
main:has(.noscript) .rollbar { display: none; }
/* The empty card frame too: nothing can fill it. */
main:has(.noscript) .card-host { display: none; }

/* The card: the art with the parts laid on top. Every size is in cqw, so the
   card scales as one picture, like the saved image. */
.card-host { width: 100%; }
.card {
  position: relative;
  width: min(100%, 460px, calc((100vh - 130px) * 0.5628));
  width: min(100%, 460px, calc((100svh - 130px) * 0.5628));
  min-width: 260px;
  aspect-ratio: 941 / 1672;
  container-type: inline-size;
  margin: 0 auto;
  border-radius: 4%;
  filter: drop-shadow(0 10px 30px rgba(255, 46, 136, 0.25));
  user-select: none;
}
/* On the machine page on a phone, 154px sit above the card: the header (96px, as its menu
   wraps), the page padding and the kicker row. Leave room for that and for the Deep fried
   tilt, so the whole card fits on the first screen and the ROLL bar can step aside. */
@media (max-width: 879px) {
  .page-machine .card {
    width: min(100%, 460px, calc((100vh - 175px) * 0.5628));
    width: min(100%, 460px, calc((100svh - 175px) * 0.5628));
  }
}
/* card.avif is 942 wide: the 941 of the card plus one black column (see make_art.py). */
.card-art { position: absolute; left: 0; top: 0; width: calc(100% * 942 / 941); height: 100%; max-width: none; display: block; }
.slot { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.slot .fit { display: inline-block; white-space: nowrap; }
.s-name .fit { font-family: var(--display); font-weight: 900; color: var(--lime); text-shadow: 0 0 0.4cqw #000, 0.35cqw 0.35cqw 0 var(--pink); }
.s-mascot { border-radius: 5cqw; }
.s-mascot .mascot { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); max-width: 95%; max-height: 88%; object-fit: contain; transition: filter 0.15s; }
.s-mascot .mascot.blur { filter: blur(1.4cqw) saturate(1.6); }
.fiction { position: absolute; bottom: 2%; left: 0; right: 0; font: 700 2.3cqw/1 var(--body); color: rgba(255, 255, 255, 0.82); }
.stamp { position: absolute; font-family: var(--display); font-weight: 900; text-transform: uppercase; }
.tier-stamp { left: 4%; top: 4%; transform: rotate(-8deg); font-size: 2.6cqw; padding: 0.9cqw 1.6cqw; border-radius: 1cqw; color: var(--lime); background: rgba(18, 8, 31, 0.8); }
.tier-stamp:empty { display: none; }
.tier-stamp[data-tier="rare"], .tier-stamp[data-tier="overcooked"] { font-size: 3.6cqw; color: var(--bg); background: var(--pink); box-shadow: 0 0 3cqw rgba(255, 46, 136, 0.9); animation: stamp 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.tier-stamp[data-tier="overcooked"] { background: var(--orange); box-shadow: 0 0 3cqw rgba(255, 122, 26, 0.9); }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.4); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.build-stamp { right: 4%; bottom: 10%; transform: rotate(-12deg); font-size: 3.2cqw; color: var(--red); border: 0.55cqw solid var(--red); padding: 0.6cqw 1.6cqw; background: rgba(18, 8, 31, 0.55); }
.build-stamp[hidden] { display: none; }
/* A golden mascot: like the build stamp, in gold, top right. Only there while build.py's GOLDEN_ART_LIVE is on. */
.gold-stamp { right: 4%; top: 4%; transform: rotate(8deg); font-size: 2.6cqw; color: var(--gold); border: 0.45cqw solid var(--gold); padding: 0.5cqw 1.3cqw; background: rgba(18, 8, 31, 0.55); }
.gold-stamp[hidden] { display: none; }
.no-build .build-only { display: none; }
.s-line { padding: 0 2%; }
.s-line .fit { font-weight: 800; color: #fff; }
.s-line .fit.mono { font-family: var(--mono); font-weight: 700; color: var(--cyan); }
.s-overflow { overflow: visible; z-index: 2; background: var(--pink); border-radius: 1.3cqw; transform: rotate(-2.5deg); box-shadow: 0 0.8cqw 2cqw rgba(0, 0, 0, 0.5); }
.s-overflow .fit.mono { color: #fff; }
.s-overflow[hidden] { display: none; }
.s-meter { overflow: visible; justify-content: flex-start; }
.s-meter .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lime); opacity: 0.85; transition: width 0.45s cubic-bezier(.3, 1.4, .5, 1); }
.s-meter.burst .fill { background: var(--pink); box-shadow: 0 0 3cqw var(--pink); }
.s-meter .score { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font: 900 3.8cqw/1 var(--display); color: #fff; -webkit-text-stroke: 0.5cqw var(--bg); paint-order: stroke fill; }
.s-meter.burst .score { right: -3%; font-size: 4.6cqw; }
.s-knob { overflow: visible; }
.s-knob .hand { position: absolute; left: 50%; top: 50%; width: 1.3cqw; height: 4.3cqw; margin-left: -0.65cqw; margin-top: -4.3cqw; border-radius: 1cqw; background: var(--pink); box-shadow: 0 0 0 0.45cqw var(--bg); transform-origin: 50% 100%; transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1); }
.s-label { border-radius: 99px; background: rgba(18, 8, 31, 0.88); }
.s-label .fit { font: 800 2.3cqw/1 var(--body); color: #fff; }
.s-foot { background: rgba(18, 8, 31, 0.78); font: 700 2cqw/1 var(--body); color: #fff; }
.s-roll { background: transparent; border: 0; border-radius: 50%; min-height: 0; padding: 0; cursor: pointer; }
.s-roll:hover { background: rgba(255, 255, 255, 0.08); }
.s-roll:active { background: rgba(0, 0, 0, 0.18); }
.zap { animation: zap 0.9s ease-out; }
@keyframes zap {
  0%, 30% { color: var(--bg); background: var(--lime); text-shadow: none; }
  100% { background: transparent; }
}
.card.spinning .s-knob .hand { animation: knobspin 0.4s linear infinite; }
@keyframes knobspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Deep fried: the card cannot hold its contents. */
/* It wobbles twice as it arrives, then holds its tilt: under 5 seconds of motion. */
.card.fried { transform: rotate(-1.6deg); animation: wobble 2.4s ease-in-out 2; }
.card.fried .s-name { overflow: visible; }
.card.fried .s-name .fit { color: #fff; text-shadow: 0 0 0.6cqw #000, 0.45cqw 0.45cqw 0 var(--pink), -0.35cqw -0.35cqw 0 var(--cyan); }
@keyframes wobble { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(-0.6deg) scale(1.005); } }

/* Pages with text */
.page-head { max-width: 760px; margin: 6px 0 18px; }
.page-head.lost { margin: 40px auto; text-align: center; }
.streak { font-weight: 800; color: var(--lime); }
.mascot-of-day { font-family: var(--display); font-weight: 900; color: var(--pink); }
.prose { max-width: 760px; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; border: 2px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; background: var(--panel); }
th, td { padding: 8px 10px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--panel-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
tbody th { font-weight: 800; }
td small { font-size: 12px; }
/* Phones: fit all four levels without a sideways scroll. */
@media (max-width: 520px) {
  table { min-width: 0; font-size: 13px; }
  th, td { padding: 6px 5px; }
  thead th { font-size: 11px; letter-spacing: 0; }
  td small { font-size: 11px; }
}
.odds { max-width: 900px; }
.rarest { padding-left: 22px; }
.rarest li { margin-bottom: 4px; }

/* Today */
.today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.today-card { margin: 0; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.today-card h2 { margin: 0 0 10px; font-size: 18px; color: var(--pink); }
.today-card .card { width: 100%; min-width: 0; }
.today-name { font-family: var(--display); font-weight: 900; margin: 10px 0 2px; color: var(--lime); overflow-wrap: anywhere; }
.today-does { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.today-card .actions { margin-bottom: 0; }
.today-card .button { font-size: 14px; padding: 8px 10px; }

/* Card page */
.card-page h1 { overflow-wrap: anywhere; }
.card-lines { padding-left: 20px; font-size: 18px; font-weight: 700; }
.card-lines li:last-child { font-family: var(--mono); font-size: 15px; color: var(--cyan); }
.challenge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0; padding: 14px; border: 2px dashed var(--pink); border-radius: var(--radius); background: rgba(255, 46, 136, 0.1); }
.beat-line { margin: 0; font-weight: 800; font-size: 18px; }
.beat-line b { color: var(--lime); font-family: var(--display); font-size: 24px; }
.built, .signup { margin: 18px 0; padding: 12px 14px; border: 2px dashed var(--line); border-radius: var(--radius); }
.built h2, .signup h2 { margin-top: 0; }
.api-form label { display: block; margin: 10px 0; font-size: 14px; font-weight: 700; }
.api-form input[type=email], .api-form input[type=url], .api-form input[type=text] { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 2px solid #8466b3; border-radius: 10px; }
.api-form input:focus { border-color: var(--cyan); }
.api-form input[aria-invalid=true] { border-color: var(--red); }
.api-form label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.api-form label.check input { width: 22px; height: 22px; accent-color: var(--lime); flex: none; }
.api-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 22px; margin: 10px 0 0; font-size: 14px; color: var(--lime); }
.built-items { padding-left: 20px; }
.built-items li { margin-bottom: 6px; }
.built-items a { font-weight: 800; }
.evidence { display: inline-block; margin: 0 8px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--cyan); }

/* Pile */
.counts { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.counts li { margin-bottom: 12px; }
.bar { display: block; height: 10px; margin-top: 4px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--cyan)); }
/* The rare finds: a small heading per kind, then one line per part found. */
.rare-list { list-style: none; padding: 0; margin: 0; }
.rare-list[hidden] { display: none; }
.rare-group + .rare-group { margin-top: 12px; }
.rare-kind { margin: 0 0 4px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.rare-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rare-items li { display: grid; grid-template-columns: 16px 1fr; gap: 0 6px; align-items: baseline; padding: 5px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.rare-items .mark { font-size: 14px; text-align: center; color: var(--lime); }
.rare-items .overcooked { border-color: var(--orange); }
.rare-items .tier { font-size: 12px; color: var(--orange); }
.rare-left { margin: 8px 0 0; color: var(--muted); }
.worst { padding-left: 20px; }
.shelves { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shelf { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.shelf.golden { border-color: var(--gold); }
.shelf-mascot { width: 96px; height: 72px; object-fit: contain; }
.shelf.unmet .shelf-mascot { filter: brightness(0) drop-shadow(0 0 1px var(--muted)); }
.shelf-head h3 { margin: 4px 0 2px; }
.shelf-head p { margin: 0; }
/* Phones: two shelves side by side, the picture above the name, so the shelves stay short
   however many mascots there are. The rare finds get smaller lines. */
@media (max-width: 520px) {
  .rare-items li { padding: 4px 8px; font-size: 14px; line-height: 1.35; }
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shelf { grid-template-columns: 1fr; gap: 2px; padding: 8px; align-items: start; text-align: center; }
  .shelf-mascot { width: 100%; height: 64px; }
  .shelf-head h3 { margin: 2px 0; font-size: 15px; overflow-wrap: anywhere; }
}

/* Wider screens: card on the left, controls on the right. The card column stays in view,
   so only its Mute is shown. */
@media (min-width: 880px) {
  .rollbar .sound { display: none; }
  h1 { font-size: 38px; }
  .machine { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); align-items: start; gap: 32px; }
  .machine-card { position: sticky; top: 16px; }
  .card { width: min(100%, 460px, calc((100vh - 120px) * 0.5628)); }
  .rollbar { position: static; margin: 14px 0 0; padding: 0; background: none; justify-content: flex-start; }
  .card-roll-near .rollbar:not(:focus-within) { opacity: 1; transform: none; pointer-events: auto; }
  .page-machine { padding-bottom: 0; }
  html:has(body.page-machine) { scroll-padding-bottom: 0; }
  .rollbar .roll { flex: 0 1 300px; }
  .foot { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card.fried { transform: rotate(-1.6deg); }
}
