/* effects.css — cinema flourishes: film strips, spotlights, 3D titles,
   ticket stubs, terminal log, roadmap timeline. Pure CSS, no requests. */

/* ── cinema hero shell ───────────────────────────────── */

.cinema {
  position: relative;
  border: 2px solid var(--studio-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 230, 160, 0.35), transparent 55%),
    radial-gradient(circle at 15% 110%, rgba(199, 55, 52, 0.18), transparent 50%),
    radial-gradient(circle at 90% 110%, rgba(43, 102, 54, 0.18), transparent 50%),
    linear-gradient(180deg, #14223f 0%, #1a2b4c 55%, #0e1a35 100%);
  color: var(--ink);
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1rem, 3vw, 2rem) clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
  isolation: isolate;
}

/* twin spotlights from above */
.cinema::before,
.cinema::after {
  content: "";
  position: absolute;
  top: -8%;
  width: 60%;
  height: 80%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.55;
}

.cinema::before {
  left: -10%;
  background: linear-gradient(
    160deg,
    rgba(255, 240, 200, 0.55),
    rgba(255, 240, 200, 0) 60%
  );
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}

.cinema::after {
  right: -10%;
  background: linear-gradient(
    200deg,
    rgba(255, 240, 200, 0.5),
    rgba(255, 240, 200, 0) 60%
  );
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}

.cinema > * {
  position: relative;
  z-index: 2;
}

/* subtle scanlines on cinema only */
.cinema-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ── presents tag ───────────────────────────────────── */

.presents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 0.5rem + 0.5vw, 0.78rem);
  color: var(--brass);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.presents::before,
.presents::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 50%, transparent);
  max-width: 8rem;
}

/* ── 3D / film-poster title ─────────────────────────── */

.title-3d {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.4rem, 0.9rem + 4.5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: #fff7d6;
  letter-spacing: 0.01em;
  text-shadow:
    1px 1px 0 #ffeaa7,
    3px 3px 0 var(--reel-red),
    5px 5px 0 var(--studio-dark),
    6px 6px 0 #000;
}

.title-3d .accent {
  color: var(--brass);
  display: inline-block;
  transform: rotate(-2deg);
  text-shadow:
    1px 1px 0 #fff,
    3px 3px 0 var(--terminal-dark),
    5px 5px 0 #000;
}

.title-3d .small {
  display: block;
  font-size: 0.45em;
  letter-spacing: 0.18em;
  color: var(--paper);
  margin-top: 0.6rem;
  text-shadow: 2px 2px 0 #000;
}

.cinema-lead {
  text-align: center;
  color: #f6e8c5;
  max-width: 40rem;
  margin: 0.8rem auto 1.2rem;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);
}

/* ── hero logo (replaces title-3d on home) ──────────── */

.hero-logo {
  text-align: center;
  margin: 0 0 0.5rem;
}

.hero-logo img {
  width: min(26rem, 90vw);
  height: auto;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.hero-tagline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 0.5rem + 0.4vw, 0.78rem);
  color: #f6e8c5;
  letter-spacing: 0.18em;
  margin-top: 0.65rem;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* ── cinema CTA row ─────────────────────────────────── */

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

/* light outline buttons on dark cinema background */
.btn.light {
  background: rgba(10, 14, 20, 0.55);
  color: var(--ink);
  border: 1.5px solid var(--brass);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.btn.light:hover,
.btn.light:focus-visible {
  background: var(--brass);
  color: var(--bg);
  border-color: var(--brass-dark);
}

/* press start button — pulses gently */
.btn.press-start {
  background: linear-gradient(180deg, #ffd76b, #d6b773);
  color: var(--bg);
  border-color: #8c6f2c;
  box-shadow: 0 4px 0 #8c6f2c, 0 0 22px rgba(255, 215, 107, 0.45);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.25rem;
  animation: press-pulse 2.4s ease-in-out infinite;
}

@keyframes press-pulse {
  0%, 100% { box-shadow: 0 4px 0 #8c6f2c, 0 0 22px rgba(255, 215, 107, 0.45); }
  50%      { box-shadow: 0 4px 0 #8c6f2c, 0 0 36px rgba(255, 215, 107, 0.85); }
}

/* on-air light */
.on-air {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: #ffd2cf;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #6a1816;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.on-air .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3a3a;
  box-shadow: 0 0 8px #ff3a3a, 0 0 14px rgba(255, 58, 58, 0.6);
  animation: blink-light 1.4s ease-in-out infinite;
}

@keyframes blink-light {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ── animated marquee text ───────────────────────────── */

.marquee.scrolling {
  display: block;
  padding: 0.55rem 0;
}

.marquee.scrolling .marquee-bulb { display: none; }

.marquee.scrolling .marquee-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  margin-left: 0;
  animation: scroll-text 22s linear infinite;
}

.marquee.scrolling:hover .marquee-text { animation-play-state: paused; }

@keyframes scroll-text {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── hero seymour wrapper with bob ───────────────────── */

.stage-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 1rem auto 0.35rem;
  width: min(22rem, 78vw);
  height: clamp(220px, 32vw, 320px);
}

.stage-mascot img,
.stage-mascot svg {
  width: 100%;
  height: auto;
  max-height: clamp(210px, 30vw, 290px);
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  animation: bob 4.2s ease-in-out infinite;
}

.stage-mascot .floor {
  position: absolute;
  bottom: 4%;
  left: 8%;
  right: 8%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(2px);
  animation: shadow-bob 4.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes shadow-bob {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50%      { transform: scaleX(0.86); opacity: 0.4; }
}

/* ── section labels and dividers ─────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--studio);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.8rem;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--studio) 0 6px,
    transparent 6px 12px
  );
}

.section-label.green { color: var(--terminal); }
.section-label.green::before,
.section-label.green::after {
  background: repeating-linear-gradient(
    90deg,
    var(--terminal) 0 6px,
    transparent 6px 12px
  );
}

.section-label.red { color: var(--reel-red); }
.section-label.red::before,
.section-label.red::after {
  background: repeating-linear-gradient(
    90deg,
    var(--reel-red) 0 6px,
    transparent 6px 12px
  );
}

/* sprocket-hole separator between sections */
.sprocket-divider {
  height: 22px;
  margin: 1.6rem 0;
  background: #0c0c0c;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.sprocket-divider::before,
.sprocket-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  background:
    radial-gradient(circle at 11px 5.5px, var(--bg) 3.5px, transparent 4px) 0 0 / 22px 11px repeat-x;
}

.sprocket-divider::before { top: 0; }
.sprocket-divider::after  { bottom: 0; }

/* ── cast grid ──────────────────────────────────────── */

.cast {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.cast-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.cast-card .cast-portrait {
  width: auto;
  max-width: min(9rem, 72%);
  max-height: 7.5rem;
  margin: 0.2rem auto 0.55rem;
  object-fit: contain;
  display: block;
}

.cast-card svg {
  width: 100%;
  max-width: 7rem;
  margin: 0.2rem auto 0.55rem;
  display: block;
}

.cast-card h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--brass);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.cast-card .role {
  font-size: 0.78rem;
  color: var(--terminal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cast-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ── controls keyboard graphic ───────────────────────── */

.controls {
  display: grid;
  gap: 1rem;
}

@media (min-width: 50rem) {
  .controls {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.keyboard {
  background:
    linear-gradient(180deg, #2a3756, #1a2b4c);
  border: 2px solid #0c0c0c;
  border-radius: 12px;
  padding: 1rem;
  box-shadow:
    inset 0 0 0 2px #3a4a72,
    0 8px 22px -10px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--ink);
}

.keyboard-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.keyboard-row--bottom {
  align-items: flex-end;
}

.key-arrows {
  display: grid;
  gap: 0.35rem;
}

.key-arrows__up {
  display: flex;
  justify-content: center;
}

.key-arrows__rest {
  display: flex;
  gap: 0.35rem;
}

.key {
  background: linear-gradient(180deg, #3a4a62, #2a3548);
  color: var(--ink);
  border: 1.5px solid #0c0c0c;
  border-radius: 5px;
  padding: 0.5rem 0.55rem;
  min-width: 2.1rem;
  text-align: center;
  box-shadow: 0 2px 0 #0c0c0c;
  letter-spacing: 0.04em;
}

.key--wide   { min-width: 3.6rem; }
.key--wider  { min-width: 5.5rem; }
.key--gap {
  flex: 1 1 1.5rem;
  min-width: 0.5rem;
  visibility: hidden;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.key--muted {
  opacity: 0.28;
  pointer-events: none;
}

.key[data-key] {
  cursor: pointer;
}

.key[data-key]:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.key.active {
  background: linear-gradient(180deg, var(--brass), #b89343);
  color: #000;
  box-shadow:
    0 0 0 2px rgba(232, 200, 120, 0.45),
    0 2px 0 #0c0c0c;
  transform: translateY(-1px);
}

.controls-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.controls-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.45rem 0.6rem;
  background: var(--bg-surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  cursor: default;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.controls-list li:hover,
.controls-list li:focus,
.controls-list li.is-active {
  border-color: var(--brass);
  background: rgba(232, 200, 120, 0.08);
  outline: none;
}

.controls-list li strong {
  color: var(--ink);
}

.controls-list .keycap {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  box-shadow: 0 2px 0 var(--line);
  letter-spacing: 0.05em;
}

/* ── ticket stub download cards ──────────────────────── */

.tickets {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.ticket {
  --notch-bg: var(--bg);
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--studio);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: -0.65rem;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--notch-bg);
  border: 2px solid var(--studio);
  border-radius: 50%;
}

.ticket::before { top: 40%; }
.ticket::after  { top: 60%; }

.ticket-tear {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.55rem;
  width: 0;
  border-left: 2px dashed var(--line);
}

.ticket-platform {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--studio);
  letter-spacing: 0.06em;
}

.ticket-platform svg {
  width: 1.4rem;
  height: 1.4rem;
}

.ticket h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin: 0;
  color: var(--studio-dark);
}

.ticket .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.ticket .meta strong {
  color: var(--studio);
}

.ticket .btn {
  margin-top: 0.2rem;
}

/* ── terminal / dev-log ──────────────────────────────── */

.terminal {
  background: #061410;
  color: #b8f3c6;
  border: 2px solid var(--terminal-dark);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.65);
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(184, 243, 198, 0.25);
  padding-bottom: 0.4rem;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b8f3c6;
  opacity: 0.5;
}

.terminal-bar span:nth-child(1) { background: #ff5d5d; opacity: 0.85; }
.terminal-bar span:nth-child(2) { background: #ffce5d; opacity: 0.85; }
.terminal-bar span:nth-child(3) { background: #4dd071; opacity: 0.85; }

.terminal-bar small {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: rgba(184, 243, 198, 0.6);
  letter-spacing: 0.1em;
}

.terminal pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.55;
}

.terminal .prompt { color: var(--brass); }
.terminal .ok     { color: #7fff9a; }
.terminal .warn   { color: #ffce5d; }
.terminal .note   { color: #9bd5ff; }
.terminal .blink::after {
  content: "█";
  margin-left: 2px;
  animation: blink-cursor 1.05s steps(2) infinite;
}

@keyframes blink-cursor {
  to { opacity: 0; }
}

/* ── roadmap timeline ────────────────────────────────── */

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.roadmap li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
}

.roadmap .pin {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  padding: 0.45rem 0;
  background: var(--studio-dark);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

.roadmap .pin strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  color: var(--brass);
}

.roadmap .done   .pin { background: var(--terminal); }
.roadmap .now    .pin { background: var(--reel-red); }
.roadmap .next   .pin { background: var(--brass); color: var(--studio-dark); }
.roadmap .next   .pin strong { color: var(--studio-dark); }
.roadmap .future .pin { background: var(--ink-soft); }

.roadmap h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: var(--brass);
}

.roadmap p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ── faq / accordion-light (CSS-only details) ────────── */

.faq {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  background: var(--bg-surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-card);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--brass);
  letter-spacing: 0.04em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--terminal);
  transform: translateY(-1px);
}

.faq details[open] summary::after { content: "−"; color: var(--reel-red); }

.faq details p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ── Linux / macOS launch note (nested details) ──────── */

.launch-note .launch-steps {
  margin: 0.65rem 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  display: grid;
  gap: 0.45rem;
}

.launch-note .launch-steps li::marker {
  color: var(--brass);
}

.launch-note .launch-lead {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.launch-note .launch-sub {
  margin-top: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: rgba(10, 14, 20, 0.35);
}

.launch-note .launch-sub summary {
  font-size: 0.68rem;
}

.launch-note .launch-sub .launch-sub {
  margin-left: 0;
}

.launch-note pre {
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.launch-note pre code {
  background: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--terminal);
  white-space: pre;
}

.launch-distro-list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.launch-distro-list code {
  font-size: 0.85em;
}

/* ── reel-frames for story blocks ────────────────────── */

.reels {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.reel {
  background: var(--bg-surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.reel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0.9rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 12px 12px, #0c0c0c 4px, transparent 4.5px),
    radial-gradient(circle at 12px 12px, var(--brass) 12px, transparent 12.5px);
  background-size: 24px 24px;
  background-repeat: no-repeat;
  border: 1.5px solid var(--studio);
}

.reel-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--terminal);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  margin-left: 2.2rem;
}

.reel h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--brass);
  margin-bottom: 0.4rem;
}

.reel p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ── pixel arrow ─────────────────────────────────────── */

.pixel-arrow {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-block;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) 0 0 / 50% 50% no-repeat,
    linear-gradient(135deg, transparent 50%, currentColor 50%) 100% 0 / 50% 50% no-repeat;
  transform: rotate(45deg);
}

/* ── responsive helpers ─────────────────────────────── */

@media (max-width: 36rem) {
  .keyboard {
    font-size: 0.55rem;
    padding: 0.7rem;
  }

  .key {
    padding: 0.4rem 0.45rem;
    min-width: 1.7rem;
  }

  .key--wide   { min-width: 3rem; }
  .key--wider  { min-width: 4.2rem; }

  .title-3d {
    text-shadow:
      1px 1px 0 #ffeaa7,
      2px 2px 0 var(--reel-red),
      3px 3px 0 var(--studio-dark),
      4px 4px 0 #000;
  }
}

/* ════════════════════════════════════════════════════════
   HAND-DRAWN INK THEME — special buttons + keyboard
   ════════════════════════════════════════════════════════ */

/* light CTA inherits the outlined-button base; just set the ink */
.btn.light {
  --btn-ink: var(--brass);
  background: transparent;
  color: var(--ink);
  border: none;
  box-shadow: none;
}

/* PRESS START stays the loud one: brass ink, soft glow, gentle wobble */
.btn.press-start {
  --btn-ink: var(--brass);
  background: transparent;
  color: var(--brass);
  border: none;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.25rem;
  filter: drop-shadow(0 0 9px rgba(255, 215, 107, 0.45));
  animation: ink-press 2.6s ease-in-out infinite;
}

.btn.press-start::before {
  opacity: 0.14;
  transform: scale(1);
}

.btn.press-start:hover::before,
.btn.press-start:focus-visible::before {
  opacity: 0.24;
}

@keyframes ink-press {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 107, 0.4)); }
  50%      { filter: drop-shadow(0 0 16px rgba(255, 215, 107, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .btn.press-start { animation: none; }
}

/* ── keyboard frame: sketched plate ─────────────────────── */
.keyboard {
  position: relative;
  background:
    linear-gradient(180deg, rgba(42, 55, 86, 0.55), rgba(26, 43, 76, 0.55));
  border: none;
  border-radius: 18px 14px 16px 13px / 13px 16px 14px 18px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  font-family: var(--font-hand);
  font-size: 0.72rem;
}

.keyboard::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--ink-line);
  border-radius: 16px 12px 14px 11px / 11px 14px 12px 16px;
  filter: url(#ink);
  pointer-events: none;
}

/* ── individual keycaps: drawn squares, light wobble ───── */
.key {
  position: relative;
  background: rgba(10, 14, 20, 0.35);
  border: none;
  border-radius: 7px 5px 6px 5px / 5px 6px 5px 7px;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-hand);
  letter-spacing: 0;
}

.key::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.8px solid var(--ink-line);
  border-radius: inherit;
  filter: url(#ink2);
  pointer-events: none;
}

.key:nth-of-type(odd)  { transform: rotate(-0.7deg); }
.key:nth-of-type(even) { transform: rotate(0.6deg); }

.key--gap { transform: none; }
.key--gap::before { display: none; }

.key.active {
  background: transparent;
  color: var(--brass);
  transform: translateY(-1px) rotate(0deg);
}

.key.active::before {
  border-color: var(--brass);
  box-shadow: none;
}

/* brass scribble fill behind an active key */
.key.active::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background:
    repeating-linear-gradient(45deg, var(--brass) 0 0.9px, transparent 0.9px 4px),
    repeating-linear-gradient(-45deg, var(--brass) 0 0.9px, transparent 0.9px 4px);
  opacity: 0.22;
}

.key[data-key] { cursor: pointer; }

/* ── right-side keycap chips ─────────────────────────────── */
.controls-list .keycap {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: var(--font-hand);
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0.25rem 0.5rem;
}

.controls-list .keycap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.6px solid var(--ink-line-soft);
  border-radius: 7px 5px 6px 5px / 5px 6px 5px 7px;
  filter: url(#ink);
  pointer-events: none;
}

.controls-list li.is-active .keycap,
.controls-list li:hover .keycap {
  color: var(--brass);
}

.controls-list li.is-active .keycap::before,
.controls-list li:hover .keycap::before {
  border-color: var(--brass);
}

/* keep the wobble cheap on small screens */
@media (max-width: 50rem) {
  .key::before,
  .keyboard::before,
  .controls-list .keycap::before {
    filter: none;
  }
}
