/* Chemistry.alive — the Bright colour theme (theme.js sets html[data-theme="bright"]).
 *
 * The phone apps' second palette (nature.alive.ios App/Theme.swift, `Palette.bright`):
 * a sky-to-lilac bench, white panels and navy ink.  Linked LAST in every page's <head>,
 * after the page's own <style>, so a rule here wins over the page's at equal
 * specificity.  Classic (theme.css) stays the default and is untouched.
 *
 * Most of the chrome follows the custom properties; the rest of this file overrides
 * the places that hard-code a dark colour (panel gradients, input wells, the nav,
 * toasts, modals).  Keep the selectors scoped to html[data-theme="bright"].
 */
html[data-theme="bright"]{
  color-scheme:light;
  --bg0:#b9a4ff; --bg1:#8fd8ff; --bg2:#a6c4ff;
  --panel:rgba(255,255,255,.82); --panel-solid:#ffffff;
  --panel-brd:rgba(43,45,94,.14); --line:rgba(43,45,94,.13);
  --txt:#22244f; --muted:#4e5286; --dim:#767aa8;
  --accent:#2f6bff; --accent2:#00a884; --accent3:#8b4dff;
  --hot:#ff7a1a; --danger:#f0405e; --warn:#e09a00; --good:#16a86a;
  --shadow:0 18px 44px -16px rgba(43,45,94,.35), 0 4px 12px rgba(43,45,94,.12);
  --panel-hi:inset 0 1px 0 rgba(255,255,255,.9);
  --ring:0 0 0 3px rgba(47,107,255,.35);
  --well:#eef1ff; --well-deep:#dfe5ff;
}
html[data-theme="bright"] body{background:
  radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 60%),
  linear-gradient(180deg, #8fd8ff 0%, #a6c4ff 48%, #b9a4ff 100%);
  background-attachment:fixed}
html[data-theme="bright"] a{color:#2f5fe0}

/* ---- panels, cards, modals ---- */
html[data-theme="bright"] .panel{background:rgba(255,255,255,.84);
  border-color:var(--panel-brd);box-shadow:var(--shadow),var(--panel-hi)}
html[data-theme="bright"] .toast,
html[data-theme="bright"] #elemMenu{background:rgba(255,255,255,.97);color:var(--txt)}
html[data-theme="bright"] .win-card{background:#fff}
html[data-theme="bright"] #win,html[data-theme="bright"] #reveal{background:rgba(70,60,150,.35)}
html[data-theme="bright"] .winview-wrap{background:radial-gradient(120% 120% at 50% 0%,#d4efff 0%,#c9bdff 100%)}
html[data-theme="bright"] .winview-cap{background:linear-gradient(0deg,rgba(255,255,255,.85),transparent)}
html[data-theme="bright"] .winabout{background:rgba(47,107,255,.08)}

/* ---- buttons and inputs ---- */
html[data-theme="bright"] button,html[data-theme="bright"] .btn{color:var(--txt);background:#eef1ff;
  border-color:rgba(43,45,94,.16)}
html[data-theme="bright"] button:hover,html[data-theme="bright"] .btn:hover{box-shadow:0 7px 16px -8px rgba(43,45,94,.45);filter:brightness(1.03)}
html[data-theme="bright"] .btn-go{background:linear-gradient(135deg,#2f6bff,#8b4dff);color:#fff}
html[data-theme="bright"] .btn-teal{background:linear-gradient(135deg,#00a884,#1fc9a0);color:#fff}
html[data-theme="bright"] .btn-hot{background:linear-gradient(135deg,#ff7a1a,#ff4d7a);color:#fff}
html[data-theme="bright"] .btn-stop{background:linear-gradient(135deg,#f0405e,#ff4d94);color:#fff}
html[data-theme="bright"] .btn-ghost,html[data-theme="bright"] .btn-reset{background:#e6eaff}
html[data-theme="bright"] select,
html[data-theme="bright"] input[type=number],
html[data-theme="bright"] input[type=text],
html[data-theme="bright"] input[type=search],
html[data-theme="bright"] textarea{background:#fff;color:var(--txt);border-color:rgba(43,45,94,.20)}
html[data-theme="bright"] input::placeholder,html[data-theme="bright"] textarea::placeholder{color:#8a8db5}
html[data-theme="bright"] input[type=range]::-webkit-slider-thumb{box-shadow:0 1px 4px rgba(43,45,94,.45);border-color:#2f6bff}
html[data-theme="bright"] .slider{background:#c9cfee}
html[data-theme="bright"] kbd{background:#fff;color:var(--txt);border-color:rgba(43,45,94,.2)}
html[data-theme="bright"] .spin{border-color:rgba(43,45,94,.18);border-top-color:var(--accent)}
html[data-theme="bright"] #movemode button{background:#eef1ff;border-color:rgba(43,45,94,.16);color:var(--muted)}
html[data-theme="bright"] #movemode button.on{background:#00a884;border-color:#00a884;color:#fff}
html[data-theme="bright"] #elemMenu .em-btn{background:#eef1ff;border-color:rgba(43,45,94,.16)}

/* ---- pills, tags, hint ---- */
html[data-theme="bright"] .pill.idle{background:rgba(43,45,94,.08)}
html[data-theme="bright"] .pill.relax{background:rgba(47,107,255,.14);color:#2f5fe0}
html[data-theme="bright"] .pill.conv{background:rgba(0,168,132,.14);color:#00876a}
html[data-theme="bright"] .pill.win{background:rgba(22,168,106,.16);color:#0f8a57}
html[data-theme="bright"] .pill.hot{background:rgba(255,122,26,.16);color:#c85a00}
html[data-theme="bright"] .tag{background:rgba(47,107,255,.10);color:#2f5fe0;border-color:rgba(47,107,255,.22)}
html[data-theme="bright"] .fmax-wrap{background:#dfe5ff}
html[data-theme="bright"] #hintbox{background:rgba(224,154,0,.10);border-color:rgba(224,154,0,.35);color:#7a5200}
html[data-theme="bright"] #hintbox .hintfoot{color:#8a6a10}
html[data-theme="bright"] #hintbox .hintx{background:rgba(43,45,94,.10);color:#7a5200}
html[data-theme="bright"] a.ll{background:rgba(0,168,132,.10);color:#00785e;border-color:rgba(0,168,132,.3)}
html[data-theme="bright"] a.ll:hover{background:rgba(0,168,132,.2);color:#004d3c}

/* ---- the top nav ---- */
html[data-theme="bright"] .topnav{background:rgba(255,255,255,.78);border-bottom-color:rgba(43,45,94,.12)}
html[data-theme="bright"] .topnav a.nav:hover{background:rgba(47,107,255,.10)}
html[data-theme="bright"] .topnav a.nav.active{background:rgba(47,107,255,.13);box-shadow:inset 0 0 0 1px rgba(47,107,255,.28)}
html[data-theme="bright"] .topnav .navgrp{background:rgba(47,107,255,.05);border-color:rgba(47,107,255,.12)}
html[data-theme="bright"] .topnav .navgrp.learn{background:rgba(0,168,132,.07);border-color:rgba(0,168,132,.18)}
html[data-theme="bright"] .topnav .navgrp.lesson{background:rgba(22,168,106,.06);border-color:rgba(22,168,106,.2)}

/* ---- scrollbars ---- */
html[data-theme="bright"] ::-webkit-scrollbar-track{background:rgba(255,255,255,.35)}
html[data-theme="bright"] ::-webkit-scrollbar-thumb{background:rgba(43,45,94,.25);background-clip:padding-box}

/* ======== page by page ======== */
/* hub (index.html) and every page that reuses its .card look */
html[data-theme="bright"] .card{background:rgba(255,255,255,.86)}
html[data-theme="bright"] .card:hover{border-color:rgba(47,107,255,.35);box-shadow:0 24px 50px -18px rgba(43,45,94,.45),var(--panel-hi)}
html[data-theme="bright"] .card .glow{opacity:.28}
html[data-theme="bright"] .card.g4 .go{background:linear-gradient(135deg,#4e5286,#2b2d5e)}
html[data-theme="bright"] .hero .badge{color:#00785e;background:rgba(255,255,255,.6);border-color:rgba(0,168,132,.35)}
html[data-theme="bright"] .hero h1 .alive{background:linear-gradient(120deg,#00a884,#2f6bff,#8b4dff);-webkit-background-clip:text;background-clip:text}
html[data-theme="bright"] .stat .n{background:linear-gradient(120deg,#00a884,#2f6bff);-webkit-background-clip:text;background-clip:text}
html[data-theme="bright"] .grp-h h2 .k{background:rgba(255,255,255,.55)}

/* DNA lesson pop-up: its window is painted with --bg0, which Bright makes lilac */
html[data-theme="bright"] .ls-window{background:linear-gradient(180deg,#f4f8ff,#f3efff)}
html[data-theme="bright"] .ls-bar{background:rgba(255,255,255,.92)}
html[data-theme="bright"] #lesson{background:rgba(70,60,150,.30)}
