/* ==========================================================================
 * Panda Pixeldrain Cloner theme
 * Pixeldrain — dark slate with a neon-green “pixel” accent. Dark by default.
 * Loaded after cloner.css; it only overrides design tokens and a few accents.
 * ========================================================================== */

/* Dark mode */
:root {
  --red: #3fd47f;
  --red-hover: #64e39a;
  --red-deep: #22834c;
  --red-soft: rgba(63, 212, 127, 0.16);
  --red-ring: rgba(63, 212, 127, 0.3);
  --on-red: #0b1410;
  --bg: #0f1114;
  --canvas: #13161b;
  --surface: #191d23;
  --surface-2: #21262e;
  --rail: #121519;
  --line: #2a3039;
  --line-strong: #363d48;
  --text: #e9eef3;
  --text-2: #bcc5cf;
  --muted: #7f8a96;
  --radius: 10px;
  --boot-bg: #13161b;
  --boot-text: #e9eef3;
  --boot-text-2: #bcc5cf;
  --boot-text-3: #7f8a96;
  --boot-track: #0f1114;
  --boot-bar: #3fd47f;
}

/* Light mode */
html.light {
  --red: #38c172;
  --red-hover: #2ea862;
  --red-deep: #22834c;
  --red-soft: #e3f7ec;
  --red-ring: rgba(56, 193, 114, 0.22);
  --on-red: #0b1410;
  --bg: #f3f6f4;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --rail: #ffffff;
  --line: #dfe7e2;
  --line-strong: #c5d2ca;
  --text: #14201a;
  --text-2: #3e4f45;
  --muted: #7b8a81;
  --green: #12a150;
  --green-soft: #e6f6ed;
  --amber: #b45309;
  --amber-soft: #fff6e8;
  --shadow: 0 1px 2px rgba(20, 32, 26, 0.05), 0 6px 20px rgba(20, 32, 26, 0.06);
  --boot-bg: #ffffff;
  --boot-text: #14201a;
  --boot-text-2: #3e4f45;
  --boot-text-3: #7b8a81;
  --boot-track: #eef3f0;
  --boot-bar: #38c172;
}

/* Loader spinners in the brand colour (light + dark) */
.spinner { background: rgba(63, 212, 127, 0.12); }
.spinner::before { border-color: #3fd47f; border-right-color: transparent; }
.spinner span { background: #191d23; box-shadow: 0 0 0 4px #13161b; }
html.light .spinner { background: #e3f7ec; }
html.light .spinner::before { border-color: #38c172; border-right-color: transparent; }
html.light .spinner span { background: #e3f7ec; box-shadow: 0 0 0 4px #ffffff; }
.spinner.xs, .spinner.xs span, html.light .spinner.xs, html.light .spinner.xs span { background: transparent; box-shadow: none; }
.spinner.xs::before, html.light .spinner.xs::before { border-color: var(--red); border-right-color: transparent; }

/* Phase loader strip */
.phase-loader { background: linear-gradient(90deg, rgba(63, 212, 127, 0.1), rgba(63, 212, 127, 0.02)); }
html.light .phase-loader { background: linear-gradient(90deg, #e3f7ec, #ffffff); }

/* Brand, rails and cards */
.brand-name b { color: var(--red); }
html.light .brand-name b { color: #22834c; }
html.light .topbar { background: rgba(255, 255, 255, 0.96); }
html.light .side { background: #ffffff; }
.side-item.active { background: var(--red-soft); color: var(--red); }
.side-item.active i { color: var(--red); }

/* Buttons */
.btn-red, .new-btn { border-radius: 10px; }
.new-btn { box-shadow: 0 8px 20px var(--red-ring); }
.hero-orbit::before { border-color: var(--red); border-right-color: transparent; border-bottom-color: transparent; }
.hero h1 .red { background: linear-gradient(90deg, #22834c, #38c172, #7cf0a8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Progress bar */
.fill { background: linear-gradient(90deg, #22834c, #38c172, #7cf0a8); }
.mini-bar span, .quota-track span { background: var(--red); }
/* Pixel feel: monospaced numbers */
.tw-stats b, .pair-code, .stat b { font-family: 'JetBrains Mono', monospace; }

/* Console stays dark for readability */
html.light .console { background: #13161b; }
