/* Shared visual tokens for the SP1XNE lab, instruments and game. */
@media screen {
  :root {
    --bg:#111315; --surface:#191b1d; --surface2:#25242c;
    --text:#f2f3eb; --muted:#b5b8b8; --line:#454548;
    --cyan:#c7fa58; --blue:#c5b9fa; --good:#c7fa58;
    --navy:#161719; --teal:#c7fa58;
    --paper:#f6f5ef; --ink:#252629; --accent:#52456f;
  }
  body { font-family:"DM Sans",Helvetica,Arial,sans-serif; }
  body::before { background:none; }
  .site-header,.topbar,.game-header,.sp1xne-header { border-bottom:1px solid #55505e; }
  .site-header .brand,.topbar .brand { letter-spacing:-.045em; font-weight:750; }
  .brand-mark { border-radius:4px; }
  .brand-mark,.eyebrow,.kicker,.card-link,.lab-nav,.terminal-badge { font-family:ui-monospace,Menlo,monospace; }
  .topbar,.masthead { background-color:#161719; }
  .masthead { background-image:radial-gradient(ellipse at 100% 10%,#32303b,transparent 65%); }
  .masthead h1 span,.lab-hero h1 span { color:#c5b9fa; }
  .masthead .primary { color:#192009; background:#c7fa58; }
  .lab-illustration,.lab-next,.lab-guide,.service-card,.metric-card,.term-card,.chart-container,.minesweeper-container {
    border-color:#434247; border-radius:8px; background:#1b1c20;
  }
  .lab-illustration { background:linear-gradient(140deg,#302e39,#191a1d); }
  .lab-badge,.lab-tags span,.lab-card-tags span { border-radius:4px; border-color:#55525e; }
  .lab-guide:hover,.service-card:hover { border-color:#c7fa58; }
  .lab-next,.lab-method { background:#202024; }
  /* Reading surface and diagrams retain their print and code contrast. */
  body:has(.lesson-layout),body:has(.generator-shell) { --muted:#55515e; --line:#d6d4d1; background:#f6f5ef; color:#252629; }
  .goal,.exam-box,.note:not(.warning) { background:#ece9f3; border-color:#ccc7da; border-left-color:#81709c; }
  .note:not(.warning) strong,.goal strong { color:#504168; }
  .codebox,#yaml-output,.codebox pre { background:#1d1d24; }
  .codebar { border-color:#44414b; color:#d8d1e7; }
  .codebar button { background:#322f3a; border-color:#5e5869; color:#f2f3eb; }
  aside nav a.current,aside nav a:hover { background:#e5e1ed; color:#433953; }
  .checklist input { accent-color:#63527b; }
  .sp1xne-container .logo-area h1 span { color:#c5b9fa!important; }
  .temp-monitor { background:linear-gradient(140deg,#37333e,#202126 80%); border:1px solid #635c6c; border-radius:8px; }
  .temp-monitor:after { background:#c5b9fa12; }
  .temp-value,.metric-value { color:#f2f3eb; }
  .temp-unit,.prompt-sign,.terminal-badge span,.chart-title,.metric-card h4 { color:#c7fa58; }
  body:has(.sp1xne-container),body:has(.minesweeper-container) { background:#111315; color:#f2f3eb; }
  .minesweeper-container .title { background:none; color:#c5b9fa; }
  .info-panel,.status-led,.game-message { background:#27272c; color:#e6e4e9; border-color:#534f59; }
  .minesweeper-container .counter,.counter-label { color:#c7fa58; }
  .minesweeper-container .new-game-btn,.difficulty button.active { background:#c7fa58; color:#1a200c; border-color:#c7fa58; }
  a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid #9882cd; outline-offset:3px; }
}
