@import url('combos.css'); /* 52 site color combos, generated by tools/build-themes.mjs */
/* Brand color themes for the glow bot. Preview with ?theme=<name> on the home,
   portal pages and the Botcents landers (other lander worlds keep their own
   palette). Each theme sets a few --t-* values; the blocks at the bottom map
   them onto the home and lander tokens. */
:root[data-theme='mint']      { --t-accent: #0b8a68; --t-deep: #066b50; --t-tint: #dcf7ec; --t-glow: rgba(47, 214, 163, 0.45); --t-on: #fff; --t-hl: #0b9a73; --t-bg: #f6fcf9; --t-ink: #10241e; --t-ink2: #2c463d; --t-soft: #5c736a; --t-line: #dcece5; --t-wash: #c9f5e4; --t-wash2: #fff1d8; --t-top: #effbf6; }
:root[data-theme='coral']     { --t-accent: #d9402f; --t-deep: #b02e20; --t-tint: #ffe7e2; --t-glow: rgba(255, 111, 97, 0.45); --t-on: #fff; --t-hl: #e2513f; --t-bg: #fffaf8; --t-ink: #2a1512; --t-ink2: #4a2e29; --t-soft: #7a5f5a; --t-line: #f5e2dd; --t-wash: #ffd9cf; --t-wash2: #fff0d6; --t-top: #fff3ef; }
:root[data-theme='sky']       { --t-accent: #1a73d9; --t-deep: #105bb0; --t-tint: #e1f0ff; --t-glow: rgba(63, 169, 255, 0.45); --t-on: #fff; --t-hl: #1f7fe6; --t-bg: #f7fbff; --t-ink: #0f1e33; --t-ink2: #2b3d57; --t-soft: #5b6b80; --t-line: #dfeaf6; --t-wash: #cfe8ff; --t-wash2: #fff1d6; --t-top: #eef6ff; }
:root[data-theme='sunny']     { --t-accent: #1d1a12; --t-deep: #000; --t-tint: #fff3c4; --t-glow: rgba(255, 190, 20, 0.55); --t-on: #fff; --t-hl: #c98a00; --t-bg: #fffcf2; --t-ink: #1d1a12; --t-ink2: #3d3826; --t-soft: #6e6750; --t-line: #f1e8c9; --t-wash: #ffe68f; --t-wash2: #ffe1c2; --t-top: #fff8dc; }
:root[data-theme='lime']      { --t-accent: #14200b; --t-deep: #000; --t-tint: #ecfccf; --t-glow: rgba(150, 230, 40, 0.55); --t-on: #d8ff7a; --t-hl: #4d8c00; --t-bg: #fbfff3; --t-ink: #14200b; --t-ink2: #33402a; --t-soft: #5e6b55; --t-line: #e3efcf; --t-wash: #dcfb9e; --t-wash2: #fff2c9; --t-top: #f5ffe2; }
:root[data-theme='tangerine'] { --t-accent: #c94d00; --t-deep: #a33d00; --t-tint: #ffead8; --t-glow: rgba(255, 138, 31, 0.45); --t-on: #fff; --t-hl: #e05e00; --t-bg: #fffaf4; --t-ink: #2b1709; --t-ink2: #4b3323; --t-soft: #7a6353; --t-line: #f4e3d2; --t-wash: #ffd9b3; --t-wash2: #fff3c9; --t-top: #fff3e6; }
:root[data-theme='pearl']     { --t-accent: #1c1b22; --t-deep: #000; --t-tint: #f1eee6; --t-glow: rgba(214, 170, 60, 0.45); --t-on: #fff; --t-hl: #a77a12; --t-bg: #fcfbf8; --t-ink: #1c1b22; --t-ink2: #3b3a42; --t-soft: #6b6973; --t-line: #ebe7de; --t-wash: #efe6d2; --t-wash2: #e6eef3; --t-top: #f8f6f0; }
:root[data-theme='teal']      { --t-accent: #0a7466; --t-deep: #065a4f; --t-tint: #daf2ee; --t-glow: rgba(16, 150, 130, 0.45); --t-on: #fff; --t-hl: #0b8574; --t-bg: #f5fbfa; --t-ink: #0d2420; --t-ink2: #2a423d; --t-soft: #5a6f6b; --t-line: #dbebe8; --t-wash: #c4ece5; --t-wash2: #fff0d6; --t-top: #edf8f6; }
:root[data-theme='cherry']    { --t-accent: #d01845; --t-deep: #a50f35; --t-tint: #ffe2ea; --t-glow: rgba(235, 40, 90, 0.42); --t-on: #fff; --t-hl: #d81b4a; --t-bg: #fff9fa; --t-ink: #2b0f17; --t-ink2: #4b2a33; --t-soft: #7a5d65; --t-line: #f5dfe5; --t-wash: #ffd1dd; --t-wash2: #fff0d6; --t-top: #fff1f4; }
:root[data-theme='midnight']  { --t-accent: #12306b; --t-deep: #0a1f4a; --t-tint: #def4ff; --t-glow: rgba(46, 200, 255, 0.45); --t-on: #fff; --t-hl: #0a8fd0; --t-bg: #f6f9ff; --t-ink: #0b1630; --t-ink2: #283553; --t-soft: #5a6681; --t-line: #dfe6f3; --t-wash: #c7ecff; --t-wash2: #e5e2ff; --t-top: #eef5ff; }

/* home + portal pages */
:root[data-theme]:not([data-world]) {
  --violet: var(--t-accent); --violet-deep: var(--t-deep); --violet-2: var(--t-tint); --violet-glow: var(--t-glow);
  --bg: var(--t-bg); --ink: var(--t-ink); --ink-2: var(--t-ink2); --soft: var(--t-soft); --line: var(--t-line);
  --on-accent: var(--t-on); --hl: var(--t-hl); --mark: var(--t-mark, var(--t-hl));
  --pop: var(--t-pop, var(--t-accent)); --pop-bg: var(--t-popbg, var(--t-accent)); --on-pop: var(--t-onpop, var(--t-on));
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -28px var(--t-glow);
}
/* purple glow around the (purple) bot, the combo's color up by the logo */
/* each glow fades in steps so the colors blend instead of meeting at an edge */
:root[data-theme]:not([data-world]) .glow { background:
  radial-gradient(ellipse 60% 55% at 78% 22%, var(--t-wash2) 0%, color-mix(in srgb, var(--t-wash2) 55%, transparent) 30%, color-mix(in srgb, var(--t-wash2) 18%, transparent) 52%, transparent 72%),
  radial-gradient(ellipse 45% 40% at 5% 10%, var(--t-wash) 0%, color-mix(in srgb, var(--t-wash) 55%, transparent) 30%, color-mix(in srgb, var(--t-wash) 18%, transparent) 52%, transparent 72%),
  linear-gradient(180deg, var(--t-top), var(--bg) 70%); }
/* phones: a narrow screen squeezes the glows into hard bands, so make them wider, fainter and set further apart */
@media (max-width: 640px) {
  :root[data-theme]:not([data-world]) .glow { height: 760px; background:
    radial-gradient(ellipse 130% 34% at 100% 30%, color-mix(in srgb, var(--t-wash2) 85%, transparent) 0%, color-mix(in srgb, var(--t-wash2) 40%, transparent) 38%, transparent 75%),
    radial-gradient(ellipse 110% 22% at 0% 4%, color-mix(in srgb, var(--t-wash) 70%, transparent) 0%, color-mix(in srgb, var(--t-wash) 30%, transparent) 40%, transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--t-top) 60%, var(--bg)), var(--bg) 75%); }
}
:root[data-theme]:not([data-world]) .mascot::before { background: radial-gradient(circle, rgba(170, 140, 255, 0.42), transparent 65%); }
:root[data-theme]:not([data-world]) .join { background: linear-gradient(110deg, var(--t-tint), var(--t-wash2)); }
:root[data-theme]:not([data-world]) table.dir th { background: var(--t-top); }
:root[data-theme]:not([data-world]) .logo b.wm { color: var(--t-ink); }

/* Botcents landers */
[data-world='botcents'][data-theme] {
  --accent: var(--t-accent); --accent-ink: var(--t-on); --accent-2: var(--t-tint); --glow: var(--t-glow); --pop: var(--t-pop, var(--t-accent));
  --bg: var(--t-bg); --ink: var(--t-ink); --soft: var(--t-soft); --line: var(--t-line);
}
[data-world='botcents'][data-theme] body { background: radial-gradient(ellipse at 85% -10%, var(--t-wash), transparent 55%), radial-gradient(ellipse at 0% 20%, var(--t-wash2), transparent 40%), var(--bg); }

/* color preview switch (only shown while previewing) */
.theme-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 50; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06); max-width: calc(100% - 24px); overflow-x: auto; }
.theme-bar a { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.theme-bar a[aria-current='true'] { outline: 2.5px solid #111; outline-offset: 2px; }
/* the two-finalist switch (?pick=purple,pearl): names, bigger, easy to tap */
.theme-bar.named { align-items: center; gap: 4px; padding: 5px; }
.theme-bar.named span { font: 700 11px/1 system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6875; padding: 0 8px 0 10px; }
.theme-bar.named a { width: auto; height: auto; display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 9px; border-radius: 999px; background: transparent; box-shadow: none; font: 700 14px/1 system-ui, sans-serif; color: #1b1b1f; text-decoration: none; }
.theme-bar.named a i { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.12); }
.theme-bar.named a[aria-current='true'] { background: #1b1b1f; color: #fff; outline: none; }

/* ---------- color combos: the site's colors change, the purple glow bot stays ----------
   Picked to sit well next to the purple bot. Preview with ?theme=ink-gold etc. or the
   tester on the home page (index.html?tester). */
/* the purple bot keeps its own purple glow whatever the site colors are */
:root[data-combo] .mascot::before { background: radial-gradient(circle, rgba(170, 140, 255, 0.42), transparent 65%); }

/* the tester panel (index.html?tester) */
.tester { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(340px, calc(100vw - 32px)); max-height: min(78vh, 640px); overflow: auto; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.06); padding: 14px; font: 14px/1.4 system-ui, sans-serif; color: #17151f; }
.tester.min { width: auto; padding: 0; background: none; box-shadow: none; overflow: visible; }
.tester h4 { margin: 2px 4px 10px; font: 700 13px system-ui; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6875; display: flex; justify-content: space-between; align-items: center; }
.tester h4 button, .tester .open { border: 0; cursor: pointer; font: 700 13px system-ui; border-radius: 999px; padding: 6px 10px; background: #f1f0ec; color: #17151f; }
.tester .open { padding: 12px 16px; background: #17151f; color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.tester .list { display: grid; gap: 6px; }
.tester .opt { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-align: left; padding: 9px 10px; border-radius: 13px; background: transparent; font: 600 14px system-ui; color: inherit; }
.tester .opt:hover { background: #f4f3ef; }
.tester .opt[aria-pressed='true'] { background: #17151f; color: #fff; }
.tester .dots { display: flex; flex: none; }
.tester .dots i { width: 20px; height: 20px; border-radius: 50%; margin-right: -6px; box-shadow: 0 0 0 2px #fff; }
.tester .opt small { display: block; font-weight: 500; opacity: 0.7; font-size: 12px; }
.tester .note { margin: 10px 4px 2px; color: #6b6875; font-size: 12.5px; }

.tester .all { display: block; width: 100%; margin-top: 8px; border: 0; cursor: pointer; padding: 9px; border-radius: 12px; background: #f4f3ef; font: 700 13px system-ui; color: #17151f; }
.tester .open { display: inline-flex; align-items: center; gap: 8px; }
.tester .open .dots { display: inline-flex; }
.tester .open .dots i { width: 14px; height: 14px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 2px #17151f; }
.tester .open .dots i:first-child { margin-left: 0; }

/* the color panel, grouped (round 18) */
.tester { display: flex; flex-direction: column; width: min(360px, calc(100vw - 32px)); max-height: min(80vh, 680px); overflow: hidden; }
.tester h4 > span:first-child b { font-weight: 700; color: #9a96a6; margin-left: 4px; }
.tester .nav { display: flex; gap: 4px; }
.tester .nav button { min-width: 30px; }
.tester .now { display: flex; gap: 10px; align-items: center; margin: 0 4px 10px; padding: 10px 12px; border-radius: 14px; background: #17151f; color: #fff; }
.tester .now small { display: block; color: #bdb9c9; font-size: 12.5px; }
.tester .list { overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 2px; flex: 1; }
.tester .grp { grid-column: 1 / -1; font: 700 11px system-ui; letter-spacing: 0.1em; text-transform: uppercase; color: #8b8797; margin: 10px 6px 2px; }
.tester .list .opt { padding: 7px 8px; font-size: 13px; gap: 8px; }
.tester .list .opt[aria-pressed='true'] { background: #17151f; color: #fff; }
.tester .dots { display: inline-flex; flex: none; }
.tester .dots i { width: 16px; height: 16px; border-radius: 50%; margin-left: -5px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.08); }
.tester .dots i:first-child { margin-left: 0; }
.tester .note { margin: 8px 4px 0; font-size: 12px; color: #6b6875; }
.tester.min { width: auto; max-height: none; }
:root[data-theme]:not([data-world]) .logo b::after { background: var(--mark); }
