/* ============================================================
   Number Recycler — Page chrome (visual reskin G10.x)
   All values route through CSS vars declared in recycler-tokens.css.
   ============================================================ */

body.recycler-page {
  margin: 0;
  height: 100vh;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Backdrop layers (all decorative, pointer-events:none) ---------- */
.recycler-page .stage {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% 0%,   rgba(138, 91, 255, .20), transparent 60%),
    radial-gradient(120% 80% at 80% 100%, rgba(61, 240, 255, .16), transparent 60%),
    radial-gradient(80%  60% at 50% 100%, rgba(255, 60, 199, .12), transparent 60%),
    linear-gradient(180deg, #05060d 0%, #08091a 50%, #04050b 100%);
  overflow: hidden;
}
.recycler-page .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 80%);
  transform: perspective(800px) rotateX(58deg) translateY(35vh) scale(2.2);
  transform-origin: 50% 100%;
  animation: rcGridSlide var(--t-grid-slide) linear infinite;
  pointer-events: none;
}
@keyframes rcGridSlide {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 128px, 0 128px; }
}
.recycler-page .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, .65) 100%);
}
.recycler-page .noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.recycler-page #rcParticles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.recycler-page .orb {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(61, 240, 255, .18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(138, 91, 255, .16), transparent 55%);
  filter: blur(20px);
  opacity: .9;
  animation: rcOrbDrift var(--t-orb-drift) ease-in-out infinite;
}
@keyframes rcOrbDrift {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-48%, -52%); }
}

/* ---------- Top bar ---------- */
.recycler-page .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 28px;
  z-index: 5;
}
.recycler-page .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--rad-pill);
  background: rgba(20, 25, 50, .55);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 22px rgba(0, 0, 0, .4);
  text-decoration: none;
}
.recycler-page .pill:hover {
  border-color: rgba(61, 240, 255, .45);
  color: #fff;
  transform: translateY(-1px);
}
.recycler-page .pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.recycler-page .title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .42em;
  background: linear-gradient(180deg, #fff 0%, #9ee8ff 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(61, 240, 255, .25);
  position: relative;
}
.recycler-page .title::before,
.recycler-page .title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
}
.recycler-page .title::before { transform: translateX(-2px); filter: drop-shadow(0 0 6px var(--magenta)); opacity: .6; }
.recycler-page .title::after  { transform: translateX( 2px); filter: drop-shadow(0 0 6px var(--cyan));    opacity: .6; }
.recycler-page .topright { justify-self: end; display: flex; gap: 12px; align-items: center; }

/* ---------- Volume pill ---------- */
.recycler-page .vol-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--rad-pill);
  background: rgba(20, 25, 50, .55);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink-dim);
  height: 38px;
  box-sizing: border-box;
}
.recycler-page .vol-icon {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  cursor: pointer;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(61, 240, 255, .45));
  transition: color .18s, filter .18s, transform .12s;
}
.recycler-page .vol-icon:hover { transform: translateY(-1px); }
.recycler-page .vol-pill.muted .vol-icon {
  color: var(--ink-faint);
  filter: none;
}
.recycler-page .vol-pill input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.recycler-page .vol-pill input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--cyan) 0%,
    var(--cyan) var(--vol-pct, 55%),
    rgba(140, 170, 255, .18) var(--vol-pct, 55%),
    rgba(140, 170, 255, .18) 100%
  );
  box-shadow: 0 0 8px rgba(61, 240, 255, .25);
}
.recycler-page .vol-pill input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(140, 170, 255, .18);
}
.recycler-page .vol-pill input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(61, 240, 255, .25);
}
.recycler-page .vol-pill input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, var(--cyan));
  border: 1px solid rgba(255, 255, 255, .35);
  margin-top: -5px;
  box-shadow: 0 0 10px rgba(61, 240, 255, .65);
  cursor: pointer;
  transition: transform .12s;
}
.recycler-page .vol-pill input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, var(--cyan));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 0 10px rgba(61, 240, 255, .65);
  cursor: pointer;
}
.recycler-page .vol-pill input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.recycler-page .vol-pill input[type="range"]:focus { outline: none; }
.recycler-page .vol-pill.muted input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(140, 170, 255, .18);
}
.recycler-page .vol-pill.muted input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(180deg, #888, #444);
  box-shadow: none;
}

/* ---------- Lite-mode toggle pill (next to volume) ----------
   Single-icon button matching the height + glass aesthetic of .vol-pill
   and .pill. Lit cyan in full-quality mode; dim/grayed when lite is on. */
.recycler-page .lite-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border-radius: var(--rad-pill);
  background: rgba(20, 25, 50, .55);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--cyan);
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(61, 240, 255, .45));
  transition: border-color .18s, color .18s, filter .18s, transform .12s;
}
.recycler-page .lite-pill:hover {
  border-color: rgba(61, 240, 255, .45);
  transform: translateY(-1px);
}
.recycler-page .lite-pill svg {
  width: 18px;
  height: 18px;
}
body.recycler-lite .lite-pill {
  color: var(--ink-faint);
  filter: none;
}

/* ---------- Performance mode (Chromebook + low-end devices) ----------
   Disables the GPU-heaviest items so the game stays at 60 FPS on
   integrated graphics. Auto-enabled on CrOS / low device-memory /
   low core-count; toggleable via .lite-pill. The renderer canvases
   (recycler_particles.js + recycler_slime.js) also self-downgrade
   based on document.body.classList. */
body.recycler-lite .pill,
body.recycler-lite .vol-pill,
body.recycler-lite .lite-pill,
body.recycler-lite .slots,
body.recycler-lite .recycler-lb-table-wrap,
body.recycler-lite .recycler-back {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.recycler-lite .target {
  filter: none !important;
  animation: none !important;
  text-shadow:
    0 0 16px rgba(61, 240, 255, .65),
    0 0 32px rgba(138, 91, 255, .35);
}
body.recycler-lite .target-ring { display: none !important; }
body.recycler-lite .noise { display: none !important; }
body.recycler-lite .orb { display: none !important; }
body.recycler-lite .vignette { display: none !important; }
body.recycler-lite #rcParticles { display: none !important; }
body.recycler-lite .grid { animation: none !important; opacity: .35; }
body.recycler-lite .belt-ticks { display: none !important; }
body.recycler-lite .title::before,
body.recycler-lite .title::after { display: none !important; }
body.recycler-lite .holo { display: none !important; }
body.recycler-lite .eq-result {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
body.recycler-lite .tile { box-shadow: none !important; }
body.recycler-lite .slot .tile { animation: none !important; }
body.recycler-lite .slot.filled {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 6px 18px rgba(0, 0, 0, .6);
}
body.recycler-lite .piston .head,
body.recycler-lite .piston .rod,
body.recycler-lite .piston .base { box-shadow: none !important; filter: none !important; }
body.recycler-lite .rc-correct-splash {
  filter: none !important;
}
body.recycler-lite .rc-success-ring {
  box-shadow: none !important;
}
body.recycler-lite .scale i { box-shadow: none !important; }
body.recycler-lite .target {
  /* Already overridden above, but explicitly drop the drop-shadow stack on
     the result panel which compounds with the target during the success
     celebration. */
}
body.recycler-lite .eq-result.success {
  text-shadow: 0 0 16px rgba(124, 255, 90, .8);
  box-shadow: none !important;
  filter: none !important;
}
body.recycler-lite .slot.filled.success {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .5),
    0 0 16px rgba(124, 255, 90, .55),
    inset 0 6px 18px rgba(0, 0, 0, .6);
}

/* ---------- Pill dot variants ---------- */
.recycler-page .pill .dot--magenta { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.recycler-page .pill .dot--lime { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* ---------- Profile modal content ---------- */
.recycler-page .rc-profile-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.recycler-page .rc-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--rad-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(140, 170, 255, .08);
  border: 1px solid var(--line-2);
  color: #fff;
}
.recycler-page .rc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.recycler-page .rc-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--rad-md);
  background: linear-gradient(180deg, rgba(20, 30, 60, .35), rgba(8, 12, 28, .35));
  border: 1px solid var(--line-2);
}
.recycler-page .rc-stat-row__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.recycler-page .rc-stat-row__val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(61, 240, 255, .35);
  white-space: nowrap;
}

/* ---------- Cosmetics modal ---------- */
.recycler-page .rc-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.recycler-page .rc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 13, .72);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
body.recycler-lite .rc-modal__backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.recycler-page .rc-modal__card {
  position: relative;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--rad-xl);
  background: linear-gradient(180deg, rgba(10, 14, 30, .96), rgba(6, 8, 18, .96));
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 0 80px rgba(61, 240, 255, .06),
    0 30px 90px rgba(0, 0, 0, .65);
  padding: 24px 28px 28px;
  color: var(--ink);
  font-family: var(--font-ui);
}
.recycler-page .rc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.recycler-page .rc-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .22em;
  background: linear-gradient(180deg, #fff 0%, var(--cyan) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.recycler-page .rc-modal__close {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: var(--rad-pill);
  cursor: pointer;
  transition: border-color .18s, color .18s, transform .12s;
}
.recycler-page .rc-modal__close:hover {
  border-color: rgba(61, 240, 255, .45);
  color: #fff;
  transform: translateY(-1px);
}
.recycler-page .rc-modal__hint {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.recycler-page .rc-modal__hint strong {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(61, 240, 255, .45);
}

/* ---------- Cosmetic slot + tile grid ---------- */
.recycler-page .rc-cos-slot { margin-bottom: 22px; }
.recycler-page .rc-cos-slot__lbl {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 500;
}
.recycler-page .rc-cos-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.recycler-page .rc-cos-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--rad-md);
  background: linear-gradient(180deg, rgba(20, 30, 60, .55), rgba(8, 12, 28, .55));
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, transform .12s, box-shadow .18s;
}
.recycler-page .rc-cos-tile:not([disabled]):hover {
  border-color: rgba(61, 240, 255, .45);
  transform: translateY(-1px);
}
.recycler-page .rc-cos-tile__icon {
  font-size: 28px;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(61, 240, 255, .55);
  margin-bottom: 4px;
}
.recycler-page .rc-cos-tile__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
}
.recycler-page .rc-cos-tile__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-dim);
}
.recycler-page .rc-cos-tile__status {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.recycler-page .rc-cos-tile--equipped {
  border-color: rgba(61, 240, 255, .65);
  box-shadow:
    inset 0 0 0 1px rgba(61, 240, 255, .35),
    0 0 24px rgba(61, 240, 255, .25);
}
.recycler-page .rc-cos-tile--equipped .rc-cos-tile__status { color: var(--cyan); }
.recycler-page .rc-cos-tile--locked {
  opacity: .5;
  cursor: not-allowed;
}
.recycler-page .rc-cos-tile--locked .rc-cos-tile__icon { color: var(--ink-faint); text-shadow: none; }
.recycler-page .rc-cos-tile--locked .rc-cos-tile__status { color: var(--magenta); }

/* ---------- conveyor_skin variant: arcane ----------
   Overrides the belt body gradient + chevron color + ticks. Pure CSS —
   the belt is DOM-styled (no canvas), so this is a single rule group. */
body.recycler-page[data-conveyor-skin="arcane"] .belt {
  background: linear-gradient(180deg, rgba(30, 14, 56, .85), rgba(14, 6, 30, .85));
  border-color: rgba(180, 120, 255, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 0 60px rgba(255, 60, 199, .08),
    0 18px 60px rgba(0, 0, 0, .5);
}
body.recycler-page[data-conveyor-skin="arcane"] .belt::before {
  background: repeating-linear-gradient(90deg,
    rgba(255, 60, 199, .0) 0 28px,
    rgba(255, 60, 199, .25) 28px 30px,
    rgba(255, 60, 199, .0) 30px 60px);
  border-top-color: rgba(180, 120, 255, .18);
  border-bottom-color: rgba(180, 120, 255, .18);
}
body.recycler-page[data-conveyor-skin="arcane"] .belt-ticks i {
  background: rgba(255, 60, 199, .35);
}

/* ---------- tile_skin variant: aurora ----------
   Overrides the per-tile mid colors. The renderer (recycler.js) randomly
   picks classes 'violet' / 'lime' / 'amber' / '' from TILE_COLOR_POOL —
   in aurora mode, those same classes resolve to cooler teal/green/blue
   shades via the token overrides below. */
body.recycler-page[data-tile-skin="obsidian"] {
  --tile-cyan-mid:    #6cffd6;
  --tile-cyan-top:    #c1ffec;
  --tile-cyan-bottom: #1b9c8c;
  --tile-cyan-glow:   rgba(108, 255, 214, 0.35);

  --tile-violet-mid:    #5bc8ff;
  --tile-violet-top:    #c2e8ff;
  --tile-violet-bottom: #1f5fb8;
  --tile-violet-glow:   rgba(91, 200, 255, 0.40);

  --tile-magenta-mid:    #7bb3ff;
  --tile-magenta-top:    #c8dcff;
  --tile-magenta-bottom: #2548a0;
  --tile-magenta-glow:   rgba(123, 179, 255, 0.40);

  --tile-lime-mid:    #b6ffd6;
  --tile-lime-top:    #e4ffec;
  --tile-lime-bottom: #4ec98a;
  --tile-lime-glow:   rgba(182, 255, 214, 0.40);

  --tile-amber-mid:    #94e6c4;
  --tile-amber-top:    #d4ffe8;
  --tile-amber-bottom: #2e9670;
  --tile-amber-glow:   rgba(148, 230, 196, 0.40);
}

/* ---------- HUD chips ---------- */
.recycler-page .hud {
  position: absolute;
  top: 90px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  z-index: 4;
}
.recycler-page .stats,
.recycler-page .rightstats {
  display: flex;
  gap: 14px;
}
.recycler-page .chip {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 28, 55, .65), rgba(10, 14, 35, .65));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .35);
}
.recycler-page .chip::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .5;
}
.recycler-page .chip .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.recycler-page .chip .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  margin-top: 6px;
  color: var(--chip-score-val);
  text-shadow: 0 0 18px var(--chip-score-glow);
}
.recycler-page .chip.combo .val { color: var(--chip-combo-val); text-shadow: 0 0 18px var(--chip-combo-glow); }
.recycler-page .chip.combo .val small { font-size: 18px; opacity: .8; margin-right: 2px; }
.recycler-page .chip.time  .val { color: var(--chip-time-val);  text-shadow: 0 0 18px var(--chip-time-glow); }
.recycler-page .chip.found .val { color: var(--chip-found-val); text-shadow: 0 0 18px var(--chip-found-glow); }
.recycler-page .progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.recycler-page .progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bar-score);
  box-shadow: 0 0 12px rgba(138, 91, 255, .7);
  border-radius: 2px;
  transition: width .3s ease;
}
.recycler-page .chip.combo .progress > i { background: var(--bar-combo); }
.recycler-page .chip.found .progress > i { background: var(--bar-found); }
.recycler-page .chip.time  .progress > i { background: var(--bar-time); }

/* ---------- Target + equation ---------- */
.recycler-page .field {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.recycler-page .target-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.recycler-page .target-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.recycler-page .target-box { position: relative; }
.recycler-page .target {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 120px;
  line-height: .9;
  background: linear-gradient(180deg, #fff 10%, var(--cyan) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(61, 240, 255, .55)) drop-shadow(0 0 64px rgba(138, 91, 255, .35));
  animation: rcTargetPulse var(--t-target-pulse) ease-in-out infinite;
}
@keyframes rcTargetPulse {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(61, 240, 255, .45)) drop-shadow(0 0 56px rgba(138, 91, 255, .3)); }
  50%      { filter: drop-shadow(0 0 42px rgba(61, 240, 255, .75)) drop-shadow(0 0 80px rgba(138, 91, 255, .55)); }
}
.recycler-page .target-ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(61, 240, 255, .25);
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(61, 240, 255, .7) 60% 75%, transparent 75% 100%);
  mask: radial-gradient(circle, transparent 56%, #000 58%);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
  animation: rcSpin var(--t-ring-spin) linear infinite;
}
@keyframes rcSpin { to { transform: rotate(360deg); } }

.recycler-page .equation { display: flex; align-items: center; gap: 26px; position: relative; }
.recycler-page .slots {
  display: flex;
  gap: var(--slot-gap);
  padding: var(--slot-pad);
  border-radius: var(--rad-lg);
  background: linear-gradient(180deg, rgba(8, 12, 28, .85), rgba(6, 8, 18, .85));
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 0 60px rgba(61, 240, 255, .06),
    0 18px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.recycler-page .slot {
  width: var(--slot-num-w);
  height: var(--slot-h);
  border-radius: var(--rad-md);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(61, 240, 255, .06), transparent 60%),
    linear-gradient(180deg, #0a0f22, #060814);
  border: 1px solid rgba(140, 170, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 6px 18px rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.recycler-page .slot::after {
  content: "";
  position: absolute;
  inset: auto 8px 6px 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 240, 255, .35), transparent);
}
.recycler-page .slot.filled {
  border-color: rgba(61, 240, 255, .5);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .5),
    0 0 24px rgba(61, 240, 255, .25),
    inset 0 6px 18px rgba(0, 0, 0, .6);
}
.recycler-page .slot.op {
  background: transparent;
  border: none;
  box-shadow: none;
  width: var(--slot-op-w);
  cursor: default;
}
.recycler-page .slot.op::after { display: none; }
.recycler-page .slot.op .op-sym {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.recycler-page .slot .tile {
  position: absolute;
  inset: 6px;
  animation: rcTileIn var(--t-tile-in) var(--e-tile-in);
}
@keyframes rcTileIn {
  from { transform: translateY(-12px) scale(.9); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.recycler-page .eq-eq {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 255, 255, .45);
}
.recycler-page .eq-result {
  min-width: 120px;
  padding: 10px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 30, 60, .7), rgba(8, 12, 28, .7));
  border: 1px solid rgba(61, 240, 255, .35);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--cyan);
  text-align: center;
  text-shadow: 0 0 18px rgba(61, 240, 255, .6);
  box-shadow: inset 0 0 30px rgba(61, 240, 255, .12), 0 10px 30px rgba(0, 0, 0, .5);
  transition: color .25s, border-color .25s, box-shadow .25s, text-shadow .25s;
}
.recycler-page .eq-result.no {
  color: var(--ink-faint);
  border-color: var(--line-2);
  text-shadow: none;
}
.recycler-page .eq-result.wrong {
  color: var(--red);
  border-color: rgba(255, 91, 110, .45);
  text-shadow: 0 0 18px rgba(255, 91, 110, .6);
  animation: rcResultShake .35s ease-in-out;
}
@keyframes rcResultShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ---------- Success celebration ---------- */
.recycler-page .eq-result.success {
  color: #d6ffb1;
  border-color: rgba(124, 255, 90, .7);
  text-shadow: 0 0 22px rgba(124, 255, 90, .85), 0 0 44px rgba(124, 255, 90, .5);
  box-shadow:
    inset 0 0 36px rgba(124, 255, 90, .35),
    0 0 38px rgba(124, 255, 90, .55),
    0 10px 30px rgba(0, 0, 0, .5);
  animation: rcResultSuccess .55s ease-out;
}
@keyframes rcResultSuccess {
  0%   { transform: scale(1);    filter: brightness(1); }
  35%  { transform: scale(1.12); filter: brightness(1.35); }
  100% { transform: scale(1);    filter: brightness(1); }
}

.recycler-page .slot.filled.success {
  border-color: rgba(124, 255, 90, .85);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .5),
    0 0 28px rgba(124, 255, 90, .65),
    inset 0 6px 18px rgba(0, 0, 0, .6),
    inset 0 0 24px rgba(124, 255, 90, .35);
  animation: rcSlotSuccess .55s ease-out;
}
@keyframes rcSlotSuccess {
  0%   { transform: translateY(0)    scale(1); }
  35%  { transform: translateY(-3px) scale(1.05); }
  100% { transform: translateY(0)    scale(1); }
}

.recycler-page .rc-correct-splash {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 12;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  letter-spacing: .12em;
  text-align: center;
  background: linear-gradient(180deg, #eaffd2 0%, #7cff5a 55%, #39c43a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 22px rgba(124, 255, 90, .85))
    drop-shadow(0 0 44px rgba(124, 255, 90, .45));
  animation: rcCorrectSplash .85s ease-out forwards;
}
.recycler-page .rc-correct-splash small {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: .3em;
  font-weight: 700;
  background: linear-gradient(180deg, #d6ffb1, #b6ff7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes rcCorrectSplash {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(.72); }
  18%  { opacity: 1; transform: translate(-50%, -52%) scale(1.08); }
  35%  {             transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -92%) scale(1); }
}

.recycler-page .rc-success-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 11;
  border: 2px solid rgba(124, 255, 90, .85);
  box-shadow:
    0 0 30px rgba(124, 255, 90, .7),
    inset 0 0 30px rgba(124, 255, 90, .35);
  animation: rcSuccessRing .8s ease-out forwards;
}
@keyframes rcSuccessRing {
  0%   { opacity: 0; width: 60px;  height: 60px;  border-width: 3px;
         margin-left: -30px; margin-top: -30px; }
  20%  { opacity: 1; }
  100% { opacity: 0; width: 520px; height: 520px; border-width: 1px;
         margin-left: -260px; margin-top: -260px; }
}

@media (prefers-reduced-motion: reduce) {
  .recycler-page .eq-result.success,
  .recycler-page .slot.filled.success,
  .recycler-page .rc-correct-splash,
  .recycler-page .rc-success-ring { animation-duration: .01ms !important; }
}

/* ---------- Tile ---------- */
.recycler-page .tile {
  border-radius: var(--rad-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  color: var(--tile-cyan-ink);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tile-cyan-top) 0%, var(--tile-cyan-mid) 45%, var(--tile-cyan-bottom) 100%);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .25),
    inset 0  2px 0 rgba(255, 255, 255, .55),
    0 6px 14px rgba(0, 0, 0, .4),
    0 0 22px var(--tile-cyan-glow);
}
.recycler-page .tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rad-sm);
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .2) 100%);
}
.recycler-page .tile::after {
  content: "";
  position: absolute;
  inset: auto 6px 4px 6px;
  height: 6px;
  border-radius: 6px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, .6), transparent 70%);
}
.recycler-page .tile.violet {
  background: linear-gradient(180deg, var(--tile-violet-top) 0%, var(--tile-violet-mid) 45%, var(--tile-violet-bottom) 100%);
  color: var(--tile-violet-ink);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .25),
    inset 0  2px 0 rgba(255, 255, 255, .55),
    0 6px 14px rgba(0, 0, 0, .4),
    0 0 22px var(--tile-violet-glow);
}
.recycler-page .tile.lime {
  background: linear-gradient(180deg, var(--tile-lime-top) 0%, var(--tile-lime-mid) 45%, var(--tile-lime-bottom) 100%);
  color: var(--tile-lime-ink);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .25),
    inset 0  2px 0 rgba(255, 255, 255, .55),
    0 6px 14px rgba(0, 0, 0, .4),
    0 0 22px var(--tile-lime-glow);
}
.recycler-page .tile.amber {
  background: linear-gradient(180deg, var(--tile-amber-top) 0%, var(--tile-amber-mid) 45%, var(--tile-amber-bottom) 100%);
  color: var(--tile-amber-ink);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .25),
    inset 0  2px 0 rgba(255, 255, 255, .55),
    0 6px 14px rgba(0, 0, 0, .4),
    0 0 22px var(--tile-amber-glow);
}

/* ---------- Conveyor belt ---------- */
.recycler-page .belt-wrap {
  position: absolute;
  left: 28px;
  right: 168px;
  bottom: 170px;
  height: 120px;
  z-index: 3;
}
.recycler-page .belt {
  position: absolute;
  inset: 0;
  border-radius: var(--rad-lg);
  background: linear-gradient(180deg, rgba(15, 20, 40, .85), rgba(6, 9, 22, .85));
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 0 60px rgba(61, 240, 255, .06),
    0 18px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.recycler-page .belt::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 10px; bottom: 10px;
  border-top: 1px solid rgba(140, 170, 255, .12);
  border-bottom: 1px solid rgba(140, 170, 255, .12);
  background: repeating-linear-gradient(90deg,
    rgba(61, 240, 255, .0) 0 28px,
    rgba(61, 240, 255, .18) 28px 30px,
    rgba(61, 240, 255, .0) 30px 60px);
  animation: rcBeltScroll var(--t-belt-scroll) linear infinite;
  background-size: 60px 100%;
}
@keyframes rcBeltScroll {
  from { background-position: 0 0; }
  to   { background-position: -60px 0; }
}
.recycler-page .belt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rad-lg);
  pointer-events: none;
  box-shadow: inset 60px 0 60px -30px var(--bg-0), inset -60px 0 60px -30px var(--bg-0);
}
.recycler-page .belt-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--tile-belt-gap);
  padding: 0 24px;
}
.recycler-page .belt .tile {
  width: var(--tile-belt);
  height: var(--tile-belt);
  font-size: 38px;
  flex: 0 0 auto;
}
.recycler-page .belt .tile.slide { animation: rcBeltGlide var(--t-belt-glide) linear infinite; }
@keyframes rcBeltGlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-220px); }
}
.recycler-page .belt-ticks {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 6px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.recycler-page .belt-ticks i {
  width: 2px;
  height: 8px;
  background: rgba(140, 170, 255, .25);
  border-radius: 1px;
}

/* ---------- Piston rack ---------- */
.recycler-page .piston-rack {
  position: absolute;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: var(--slot-gap);
  padding: 0 var(--slot-pad);
}
.recycler-page .rack-cell {
  width: var(--piston-col-w);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.recycler-page .rack-cell.op { width: var(--slot-op-w); }
.recycler-page .rack-cell.filled-num { width: var(--slot-num-w); }
.recycler-page .piston {
  width: var(--piston-col-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.recycler-page .piston .rod {
  width: var(--piston-rod-w);
  height: var(--piston-rod-h);
  border-radius: 4px;
  background: linear-gradient(180deg, #cfd9ec, #697896 60%, #3a4566);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), 0 0 10px rgba(120, 170, 255, .25);
  margin-bottom: -2px;
  transition: height .15s ease-out, background .15s, box-shadow .15s;
}
.recycler-page .piston .head {
  width: var(--piston-head-w);
  height: var(--piston-head-h);
  border-radius: var(--rad-sm);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, .6), transparent 60%),
    linear-gradient(180deg, #cfd9ec 0%, #7d8aa9 50%, #3a4566 100%);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .4), 0 6px 14px rgba(0, 0, 0, .5), 0 0 16px rgba(120, 170, 255, .2);
  position: relative;
  transition: background .15s, box-shadow .15s;
}
.recycler-page .piston .head::after {
  content: "▲";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #0a0f1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.recycler-page .piston .base {
  width: var(--piston-base-w);
  height: var(--piston-base-h);
  border-radius: var(--rad-xs);
  margin-top: 6px;
  background: linear-gradient(180deg, #1b2240, #0a0e22);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .5);
  position: relative;
}
.recycler-page .piston .base::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 240, 255, .4), transparent);
}
.recycler-page .piston .key {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: .1em;
  margin-top: 6px;
}
.recycler-page .piston.lifted .rod {
  height: var(--piston-rod-h-lift);
  background: linear-gradient(180deg, #fff, #9ef6ff 40%, var(--cyan));
  box-shadow: 0 0 12px rgba(61, 240, 255, .7), inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.recycler-page .piston.lifted .head {
  background:
    radial-gradient(60% 100% at 50% 0%, #fff, transparent 60%),
    linear-gradient(180deg, #9ef6ff, var(--cyan) 60%, var(--cyan-deep));
  box-shadow: 0 0 24px rgba(61, 240, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .3);
}
.recycler-page .piston.lifted .head::after { color: var(--tile-cyan-ink); }
.recycler-page .piston .holo {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: var(--tile-belt);
  height: var(--tile-belt);
  border-radius: var(--rad-md);
  margin-bottom: 14px;
  animation: rcHoloFloat var(--t-holo-float) ease-in-out infinite;
  pointer-events: none;
}
@keyframes rcHoloFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -6px); }
}

/* ---------- Recycler tank ---------- */
.recycler-page .recycler {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--tank-w);
  height: var(--tank-h);
  max-height: var(--tank-max-h);
  min-height: var(--tank-min-h);
  border-radius: var(--rad-xl);
  z-index: 3;
  background: linear-gradient(180deg, rgba(15, 20, 40, .85), rgba(6, 9, 22, .85));
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    var(--glow-tank-inner),
    0 18px 60px rgba(0, 0, 0, .5),
    var(--glow-tank-outer);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.recycler-page .recycler .cap {
  height: 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(120, 170, 255, .06), transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--ink-faint);
}
.recycler-page .recycler .cap b {
  color: var(--lime);
  text-shadow: 0 0 10px rgba(182, 255, 60, .6);
}
.recycler-page .tank { position: relative; flex: 1; overflow: hidden; }
.recycler-page .tank canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.recycler-page .tank .glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08) 0, transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 0, transparent 30%, transparent 70%, rgba(255, 255, 255, .06) 100%);
}
.recycler-page .tank .scale {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 6px;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.recycler-page .tank .scale i {
  display: block;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, .18);
}
.recycler-page .tank .scale i:nth-child(2n) {
  width: 12px;
  background: rgba(255, 255, 255, .28);
}
.recycler-page .pct {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 0 14px rgba(124, 255, 90, .7);
  z-index: 3;
}

/* ---------- Footer hint ---------- */
.recycler-page .footer-hint {
  position: absolute;
  left: 28px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-faint);
  z-index: 4;
}
.recycler-page .footer-hint b {
  color: var(--ink-dim);
  font-weight: 500;
}
.recycler-page .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin: 0 2px;
  border-radius: var(--rad-xs);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  color: #cfe0ff;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ---------- Start / game-over overlay ---------- */
.recycler-page .rc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(8, 12, 28, .85), rgba(0, 0, 0, .92));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.recycler-page .rc-overlay__card {
  min-width: 320px;
  max-width: 520px;
  padding: 32px 36px;
  border-radius: var(--rad-xl);
  background: linear-gradient(180deg, rgba(22, 28, 55, .85), rgba(10, 14, 35, .9));
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
}
.recycler-page .rc-overlay__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .12em;
  background: linear-gradient(180deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 12px;
}
.recycler-page .rc-overlay__body {
  font-family: var(--font-ui);
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ---------- How-to-play list inside start overlay ----------
   Expanded by default on first visit, collapsed for returning players
   via localStorage `recycler:tutorialSeen`. The collapse toggle keeps the
   instructions findable without dominating the overlay every time. */
.recycler-page .rc-howto-toggle {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--rad-pill);
  cursor: pointer;
  margin: 4px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .18s, color .18s;
}
.recycler-page .rc-howto-toggle:hover {
  border-color: rgba(61, 240, 255, .45);
  color: #fff;
}
.recycler-page .rc-howto-toggle__chev {
  font-size: 12px;
  color: var(--cyan);
}
.recycler-page .rc-howto {
  list-style: none;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: var(--rad-md);
  background: linear-gradient(180deg, rgba(20, 30, 60, .35), rgba(8, 12, 28, .35));
  border: 1px solid var(--line-2);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dim);
  text-align: left;
  counter-reset: rc-howto;
}
.recycler-page .rc-howto li {
  position: relative;
  padding-left: 28px;
  margin: 6px 0;
  counter-increment: rc-howto;
}
.recycler-page .rc-howto li::before {
  content: counter(rc-howto);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 10px rgba(61, 240, 255, .45);
}
.recycler-page .rc-howto b { color: #fff; font-weight: 700; }
.recycler-page .rc-howto .kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(20, 25, 50, .8);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

/* ---------- Unlock banner inside end overlay ---------- */
.recycler-page .rc-unlock-banner {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--rad-md);
  background: linear-gradient(135deg, rgba(255, 60, 199, .18), rgba(138, 91, 255, .12));
  border: 1px solid rgba(255, 60, 199, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 24px rgba(255, 60, 199, .25);
  animation: rcUnlockGlow 1.8s ease-in-out infinite alternate;
}
@keyframes rcUnlockGlow {
  from { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 18px rgba(255,60,199,.20); }
  to   { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 36px rgba(255,60,199,.55); }
}
.recycler-page .rc-unlock-banner__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 60, 199, .55);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.recycler-page .rc-unlock-banner__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recycler-page .rc-unlock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--rad-pill);
  background: rgba(255, 60, 199, .15);
  border: 1px solid rgba(255, 60, 199, .45);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .recycler-page .rc-unlock-banner { animation: none; }
}
.recycler-page .rc-overlay__btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 12px 28px;
  border-radius: var(--rad-pill);
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #021018;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(61, 240, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .15s;
}
.recycler-page .rc-overlay__btn:hover { transform: translateY(-1px); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .recycler-page .recycler { display: none; }
  .recycler-page .belt-wrap { right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .recycler-page .grid,
  .recycler-page .orb,
  .recycler-page .target,
  .recycler-page .target-ring,
  .recycler-page .belt::before,
  .recycler-page .belt .tile.slide,
  .recycler-page .piston .holo {
    animation: none !important;
  }
}
