/* Arcade cabinet paint. No size, font metrics, track, canvas, cell, overlay or
   pointer rules here: the canvas, transparent target grid and landing ring are
   one registered instrument. Inset strokes give the HUD its heavy ink edges. */
#bench .mineral-bench {
  --cab-rim:var(--arc-main,#36bfab); --cab-dark:var(--arc-deep,#155c63);
  --cab-light:var(--arc-pale,#cefff0); --cab-line:#202341;
  --cab-face:var(--arc-paper,#fff5df); --cab-text:var(--arc-ink,#23243a); --cab-status:var(--cab-face);
  --cab-button:var(--arc-paper,#fff3ce); --cab-bed:#104547;
  --cab-place:none;
  --cab-outline:inset 0 0 0 1.5px var(--cab-line),0 2px 0 var(--cab-line);
  --cab-key:inset 0 1.5px #ffffffa8,inset 0 -3px #16172936,0 2px 0 var(--cab-line);
}
#bench [data-arc-client=maya] {--cab-rim:#fa997e;--cab-dark:#782449;--cab-light:#ffd8ba;--cab-place:url('arcade-art/maya.webp');}
#bench [data-arc-client=vera] {--cab-rim:#b2cf62;--cab-dark:#34582f;--cab-light:#e6f6bf;--cab-place:url('arcade-art/vera.webp');}
#bench [data-arc-client=nika] {--cab-rim:#50bedb;--cab-dark:#174571;--cab-light:#d3f4ff;--cab-place:url('arcade-art/nika.webp');}
body[data-theme=evening] #bench .mineral-bench {
  --cab-face:#2d304e;--cab-text:#fff4de;--cab-status:#282b46;--cab-button:#404368;
  --cab-light:#333952;--cab-line:#110f23;--cab-bed:#0d3b3d;--cab-place:none;
}
body[data-theme=evening] #bench [data-arc-client=maya] {--cab-light:#53354f;}
body[data-theme=evening] #bench [data-arc-client=vera] {--cab-light:#314b42;}
body[data-theme=evening] #bench [data-arc-client=nika] {--cab-light:#2a435b;}

/* :not([hidden]) keeps these visual overrides on the live bench. Existing
   evening rules force their colors with !important, so override paint alone. */
body #bench:not([hidden]) .mineral-bench {
  background:linear-gradient(145deg,color-mix(in srgb,var(--cab-light) 48%,transparent),color-mix(in srgb,var(--cab-rim) 48%,transparent)),
    var(--arc-room,none) center/cover no-repeat,var(--cab-light) !important;
  color:var(--cab-text);
}
body[data-theme=evening] #bench:not([hidden]) .mineral-bench {
  background:linear-gradient(145deg,color-mix(in srgb,var(--cab-light) 60%,transparent),#211e3e94),
    var(--arc-room,none) center/cover no-repeat,var(--cab-light) !important;
}
/* Ornament stays in the original two unused grid margins only. */
body #bench:not([hidden]) .mineral-bench::before,
body #bench:not([hidden]) .mineral-bench::after {
  background:repeating-linear-gradient(132deg,transparent 0 25px,#ffffff16 25px 30px,transparent 30px 35px,#ffffff16 35px 37px,transparent 37px 95px),var(--cab-place) center/cover no-repeat;
}
body #bench:not([hidden]) .mineral-bench .mb-head {
  background:linear-gradient(107deg,var(--cab-dark) 45%,transparent 93%),repeating-linear-gradient(122deg,#fff2 0 4px,transparent 4px 16px),var(--cab-dark) !important;
  border-color:var(--cab-line) !important;border-radius:10px;
  box-shadow:inset 0 1px #fffa,0 2px 0 var(--cab-line);
}
body #bench:not([hidden]) .mineral-bench .mb-head :is(h2,small) {color:#fff8e9 !important;text-shadow:0 1px 0 #17122d;}
body #bench:not([hidden]) .mineral-bench .clip-pillow {
  background:radial-gradient(ellipse at 42% 34%,#fffff0 18%,#ffedc5 74%,#e4b798 98%);border-color:var(--cab-line);
}
body #bench:not([hidden]) .mineral-bench :is(.mb-order,.clip-sample) {
  background:var(--cab-light) !important;border-color:var(--cab-line) !important;
  box-shadow:var(--cab-outline) !important;color:var(--cab-text) !important;
}
body #bench:not([hidden]) .mineral-bench #recipe>span {
  color:var(--cab-text) !important;background:var(--cab-face) !important;border-color:var(--cab-line) !important;
  box-shadow:inset 0 1px #ffffff80,0 1px 0 var(--cab-line);
}
body #bench:not([hidden]) .mineral-bench #recipe :is(.clip-prefix,.clip-tally,.clip-color) {color:inherit !important;}
body #bench:not([hidden]) .mineral-bench #recipe>span[data-filled=true] {color:#164837 !important;background:#bcf0bc !important;}
body #bench:not([hidden]) .mineral-bench #recipe [data-quality-state=basic] {color:inherit !important;}
body #bench:not([hidden]) .mineral-bench .mb-turns,
body #bench:not([hidden]) .mineral-bench .mb-wallet {
  background:var(--arc-gold,#ffcf61) !important;color:#2f2440 !important;border-color:var(--cab-line) !important;
  box-shadow:var(--cab-key) !important;text-shadow:none;
}
body #bench:not([hidden]) .mineral-bench .mb-turns :is(small,strong) {color:inherit !important;text-shadow:none;}
body #bench:not([hidden]) .mineral-bench .mb-turns[data-low=true] {background:#ffc19e !important;color:#681f29 !important;}
body #bench:not([hidden]) .mineral-bench .mb-tray {
  background:radial-gradient(ellipse at 30% 16%,#14595342 0%,#0737386b 60%,#092d328f 100%),
    var(--arc-velvet,url('vitrine-art/nap.svg')) center/cover,var(--cab-bed) !important;
  border-color:var(--cab-line) !important;
  box-shadow:inset 0 2px 5px #061b2380,0 0 0 2px var(--cab-rim),0 0 0 3px var(--cab-line),0 4px 0 var(--cab-line) !important;
}
body #bench:not([hidden]) .mineral-bench .mb-status {
  background:var(--cab-status) !important;color:var(--cab-text) !important;
  border-color:var(--cab-line);box-shadow:inset 0 0 0 1px var(--cab-line),inset 3px 0 var(--cab-rim);
}
body #bench:not([hidden]) .mineral-bench .mb-booster,
body #bench:not([hidden]) .mineral-bench :is(.mb-actions,.mb-head-actions,#mineralEnd,#benchMoreDialog) button:not(.mb-wallet) {
  background:var(--cab-button) !important;color:var(--cab-text) !important;border-color:var(--cab-line) !important;
  box-shadow:var(--cab-key) !important;text-shadow:none;
}
body #bench:not([hidden]) .mineral-bench .mb-b-name {color:inherit !important;}
body #bench:not([hidden]) .mineral-bench :is(.mb-b-badge[data-mode=stock],.mb-booster[aria-pressed=true]) {background:#256348 !important;color:#fff9dd !important;}
body #bench:not([hidden]) .mineral-bench .mb-b-badge[data-mode=buy] {background:#ffd473 !important;color:#35213b !important;}
body #bench:not([hidden]) .mineral-bench .mb-actions {background:none;}
body #bench:not([hidden]) .mineral-bench :is(.mb-actions,#mineralEnd,#benchMoreDialog) :is(#benchGuide,#benchFinish,#benchMoreClose) {
  background:var(--cab-dark) !important;color:#fff9e8 !important;box-shadow:inset 0 2px var(--cab-rim),0 2px 0 var(--cab-line) !important;
}
body #bench:not([hidden]) .mineral-bench :is(#mineralEnd,#benchMoreDialog) {
  background:var(--cab-face) !important;color:var(--cab-text) !important;
  border-color:var(--cab-line) !important;border-top-color:var(--cab-rim) !important;box-shadow:var(--cab-outline),0 4px 14px #13163266 !important;
}
body #bench:not([hidden]) .mineral-bench :is(#benchResultNote,#benchResultTitle,#benchToolsTitle,#benchMoreDialog details,#benchMoreDialog summary) {color:var(--cab-text) !important;}
body #bench:not([hidden]) .mineral-bench #mineralEnd :is(#benchReward,.mb-loss-tip,.mb-pause-card) {background:var(--cab-light) !important;color:var(--cab-text) !important;border-color:var(--cab-line);}
body #bench:not([hidden]) .mineral-bench #mineralEnd .mb-pause-card :is(strong,p) {color:inherit !important;}
body #bench:not([hidden]) .mineral-bench :is(.mb-actions,.mb-head-actions,.mb-boosters,#mineralEnd,#benchMoreDialog) :is(button,summary):focus-visible {
  outline-color:#fff9d2;box-shadow:inset 0 0 0 4px #16575c,0 0 0 2px #211831 !important;
}
