/* =====================================================================
   Lime theme. Swaps every blue for #D2FF00 by redefining the colour
   tokens. Turn it on with class="theme-lime" on <html> (it must sit on
   <html>, where the derived tokens are computed). Load after theme.css
   and any page stylesheet.

   Rules of the swap:
   - Fills, glows, dots and lines: lime.
   - Text sitting on a lime fill: ink, never white.
   - Accent text on a light surface: dark olive, since lime on white
     can't be read.
   ===================================================================== */
.theme-lime {
    --accent: #D2FF00;
    --accent-rgb: 210, 255, 0;
    --accent-deep: #B4DB00;
    --accent-soft: #F1FFB8;
    --accent-glow: rgba(210, 255, 0, 0.35);
    --accent-light: #D2FF00;
    --accent-light-rgb: 210, 255, 0;
    --accent-pale: #D2FF00;
    --accent-pale-rgb: 210, 255, 0;
    --accent-text: #5A6E00;
    --accent-text-deep: #4A5A00;
    --on-accent: #0F0F0F;
    --accent-hover: #E2FF5C;
    --electric-blue: #D2FF00;
    --blue-hover: #B4DB00;
    --light-blue: #F6FFD6;
    --accent-tint: #ECFF9E;
    --card-top: #1E2113;
    --card-bottom: #16180F;
}

/* Text and icons that sit on a lime fill */
.theme-lime .btn-primary,
.theme-lime .btn-submit,
.theme-lime .cartridge-node,
.theme-lime .step-number,
.theme-lime .slot.is-connected .slot-type,
.theme-lime .reduce-motion .slot .slot-type,
.theme-lime .faq-item.active .faq-icon,
.theme-lime .player-tab.is-active,
.theme-lime .player-nav:hover:not(:disabled),
.theme-lime .wt-hi { color: var(--on-accent); }
.theme-lime .wt-hi::before,
.theme-lime .fq[open] .fq-ic::before,
.theme-lime .fq[open] .fq-ic::after { background: var(--on-accent); }

/* Primary buttons hover to a lighter lime, so the label stays ink */
.theme-lime .btn-primary:hover,
.theme-lime .btn-submit:hover { color: var(--on-accent); }
.theme-lime .join-node .btn-submit:hover { color: var(--ink); }

/* Lime glows read harsher than blue: soften the button glow */
.theme-lime .btn-primary,
.theme-lime .btn-submit,
.theme-lime .btn-primary:hover,
.theme-lime .btn-submit:hover {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px -8px rgba(210, 255, 0, 0.45);
}

/* FAQ and legal pages set the header link's colour themselves */
.theme-lime .header-nav a.btn-primary { color: var(--on-accent); }
.theme-lime .header-nav a.btn-primary:hover { color: var(--on-accent); }
