/* =========================================================
   Jala Wrapped — 10 switchable styles (generated by tools/build-themes.mjs)
   Each theme sets colour tokens + a decoration layer (.deco).
   Jala logo, Jala shape family and Jala palette run through all of them.
   ========================================================= */

/* ---------- Token defaults (Live Mix) ---------- */
:root {
  --bg: #161412;
  --fg: #F4EFE6;
  --fg-dim: rgba(244, 239, 230, .62);
  --on-accent: #161412;
  --accent-text: var(--accent);
  --tile-bg: var(--glass);
  --display-stretch: 100%;
  --d2-stretch: 85%;
  --big-stretch: 75%;
  --mega-stretch: 62%;
}

/* ---------- Token bridge: route every colour through theme tokens ---------- */
html, body { background: var(--page-bg, var(--bg)); color: var(--fg); }
.stage { background: var(--stage-bg, transparent); }
@media (min-width: 720px) and (min-height: 600px) {
  .stage { background: var(--stage-bg, rgba(22, 20, 18, .5)); }
}
#app { z-index: 1; }
.screen.solid { color: var(--on-accent); }
.sub, .fine, .pts-lbl, .stat span, .field label, .field .lbl, .preview .pv-note, .linkbtn, .row .s, .gap, .chip { color: var(--fg-dim); }
.sub strong, .fine strong, .tag, .ans, .btn.ghost, .vibe, .field input, .field textarea, .select select { color: var(--fg); }
.eyebrow, .cat, .accent-text { color: var(--accent-text); }
.btn:focus-visible, .ans:focus-visible, .chip:focus-visible, .field input:focus-visible, .linkbtn:focus-visible, .vibe:focus-visible { outline-color: var(--fg); }
.btn.primary, .ans .key, .sheet, .badge, .year, .t-num, .vibe[aria-pressed="true"] { color: var(--on-accent); }
.btn.dark { background: var(--on-accent); color: var(--accent); }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--fg); }
.seg, .shape-row { color: var(--fg-dim); }
.seg::before { background: var(--fg); opacity: .25; }
.seg.now::before { background: var(--accent); opacity: 1; }
.t-ring { stroke: var(--fg); }
.ans { background: var(--tile-bg); }
@media (hover: hover) { .ans:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 13%, var(--tile-bg)); } }
.bonus span { background: color-mix(in srgb, currentColor 14%, transparent); }
.rankline { background: var(--on-accent); color: var(--accent); }
.rank-lbl, .rank-of { color: inherit; opacity: .68; }
.move.same, .move.new { background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.row.me, .row.me .s, .row.me .r { color: var(--on-accent); }
.row.me .you { background: var(--on-accent); color: var(--accent); }
.toast { background: var(--fg); color: var(--bg); }
.brand { background-color: var(--fg); filter: drop-shadow(0 0 6px var(--bg)) drop-shadow(0 0 2px var(--bg)); }
.stage[data-tone="light"] .brand { filter: none; }
.tag { background: color-mix(in srgb, var(--bg) 72%, transparent); }
.stage[data-tone="light"] .brand { background-color: var(--on-accent); }
.select::after { border-color: var(--fg); }
.select select:invalid { color: var(--fg-dim); }
.display { font-stretch: var(--display-stretch); }
.display-2 { font-stretch: var(--d2-stretch); }
html[data-light] .bg { display: none; }
html[data-light] .grain { filter: invert(1); opacity: .07; }
.ans, .sheet, .stat, .row, .preview, .field input, .field textarea, .select select, .vibe { transition: background .5s, color .5s, box-shadow .5s; }

/* ---------- Decoration layer ---------- */
.deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.deco > i, .deco::before, .deco::after { content: none; position: absolute; display: block; }
.deco > i { display: none; }

.deco { transition: opacity .6s ease; }
.stage:has(.qhead) .deco,
.stage:has(.form) .deco,
.stage:has(.board) .deco,
.stage:has(.results) .deco { opacity: .32; }
[data-theme="spectrum"] .stage .deco { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinR { to { transform: rotate(-360deg); } }
@keyframes float { 50% { transform: translate(-3%, 4%) rotate(4deg); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes stair { 50% { transform: translate(-10px, 10px); } }

/* =========================================================
   1. MIXTAPE — 2025: paper, op-art rings, scribbles, outlined numbers
   ========================================================= */
html[data-theme="mixtape"] {
  --bg: #ECE8DF; --page-bg: #DCD6CA; --stage-bg: #ECE8DF;
  --fg: #161412; --fg-dim: rgba(22, 20, 18, .62);
  --line: rgba(22, 20, 18, .2); --glass: rgba(22, 20, 18, .05);
  --on-accent: #161412; --accent-text: #161412;
  --tile-bg: #F7F4EE;
  --big-stretch: 112%; --d2-stretch: 100%;
}
[data-theme="mixtape"] .deco > i:nth-child(1) {
  display: block; width: 104cqi; height: 104cqi; right: -50cqi; top: calc(24cqh - 52cqi); border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%); mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  background:
    repeating-conic-gradient(#161412 0 11.25deg, #ECE8DF 0 22.5deg),
    repeating-radial-gradient(circle, #161412 0 4.2cqi, #ECE8DF 0 8.4cqi);
  background-blend-mode: difference;
  animation: spin 60s linear infinite;
}
[data-theme="mixtape"] .deco > i:nth-child(2) {
  display: block; left: 0; right: 0; top: 60px; height: 90px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20400%20130'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'none'%20stroke%3D'%23161412'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20d%3D'M-10%2070%20C%2040%2020%2C%2070%20110%2C%20120%2060%20S%20190%200%2C%20230%2055%20S%20280%20120%2C%20330%2045%20C%20352%2012%2C%20300%20-2%2C%20292%2032%20S%20330%2096%2C%20410%2072'%2F%3E%3Cpath%20fill%3D'none'%20stroke%3D'%23161412'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20d%3D'M30%20100%20C%2090%2085%2C%20150%20112%2C%20210%2092%20S%20320%2080%2C%20380%20104'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; opacity: .85;
}
[data-theme="mixtape"] .deco::after {
  content: ''; width: 40cqi; height: 40cqi; right: -14cqi; bottom: 9cqh; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-100%20-100%20200%20200'%20%3E%3Cpath%20fill%3D'none'%20stroke%3D'%23161412'%20stroke-width%3D'2.2'%20stroke-linejoin%3D'round'%20d%3D'M86.0%2026.6L82.0%2028.9L76.9%2030.6L71.4%2031.7L65.7%2032.3L60.0%2032.5L54.4%2032.3L49.0%2031.8L44.0%2031.0L39.3%2030.1L35.2%2029.2L31.5%2028.3L28.3%2027.5L25.6%2026.9L23.5%2026.7L21.8%2026.8L20.5%2027.4L19.6%2028.4L19.0%2030.0L18.6%2032.2L18.4%2034.9L18.3%2038.2L18.1%2042.0L17.8%2046.2L17.4%2050.9L16.6%2056.0L15.6%2061.3L14.3%2066.7L12.5%2072.1L10.3%2077.4L7.7%2082.4L4.6%2086.8L1.3%2090.0L-2.2%2086.9L-5.3%2082.6L-8.1%2077.7L-10.4%2072.5L-12.4%2067.1L-13.9%2061.7L-15.1%2056.4L-15.9%2051.4L-16.5%2046.7L-16.9%2042.5L-17.2%2038.7L-17.4%2035.4L-17.7%2032.7L-18.1%2030.6L-18.8%2029.0L-19.7%2028.0L-21.0%2027.4L-22.7%2027.3L-24.9%2027.7L-27.5%2028.3L-30.7%2029.2L-34.3%2030.2L-38.5%2031.2L-43.1%2032.2L-48.1%2033.1L-53.4%2033.8L-59.0%2034.2L-64.7%2034.2L-70.5%2033.7L-76.0%2032.8L-81.1%2031.2L-85.2%2029.0L-83.3%2024.8L-80.2%2020.5L-76.4%2016.3L-72.1%2012.5L-67.6%209.0L-63.0%205.9L-58.3%203.1L-53.8%200.8L-49.5%20-1.2L-45.6%20-2.9L-42.1%20-4.4L-39.1%20-5.6L-36.6%20-6.7L-34.7%20-7.8L-33.4%20-8.9L-32.7%20-10.1L-32.6%20-11.5L-33.0%20-13.1L-34.0%20-15.1L-35.4%20-17.4L-37.2%20-20.1L-39.3%20-23.3L-41.6%20-26.9L-44.0%20-31.0L-46.4%20-35.5L-48.7%20-40.4L-50.7%20-45.6L-52.5%20-51.0L-53.8%20-56.6L-54.6%20-62.2L-54.8%20-67.5L-53.9%20-72.1L-49.3%20-71.6L-44.2%20-69.9L-39.1%20-67.6L-34.2%20-64.7L-29.4%20-61.5L-25.0%20-58.1L-21.0%20-54.5L-17.4%20-50.9L-14.1%20-47.5L-11.3%20-44.3L-8.8%20-41.4L-6.7%20-38.9L-4.9%20-36.9L-3.3%20-35.4L-1.8%20-34.5L-0.5%20-34.2L0.9%20-34.5L2.3%20-35.5L3.8%20-37.0L5.6%20-39.1L7.7%20-41.6L10.0%20-44.6L12.8%20-47.9L15.9%20-51.4L19.4%20-55.1L23.4%20-58.8L27.7%20-62.3L32.3%20-65.7L37.2%20-68.7L42.2%20-71.2L47.3%20-73.0L51.9%20-73.6L52.9%20-69.0L52.9%20-63.7L52.2%20-58.1L51.0%20-52.5L49.4%20-47.0L47.5%20-41.7L45.4%20-36.8L43.1%20-32.2L40.8%20-28.1L38.6%20-24.4L36.6%20-21.2L34.9%20-18.4L33.5%20-16.0L32.6%20-14.1L32.2%20-12.4L32.4%20-11.0L33.1%20-9.8L34.4%20-8.8L36.4%20-7.8L38.9%20-6.7L41.9%20-5.6L45.5%20-4.2L49.5%20-2.6L53.8%20-0.8L58.4%201.5L63.1%204.1L67.8%207.1L72.5%2010.4L76.8%2014.2L80.7%2018.2L84.0%2022.4L86.0%2026.6Z'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  animation: spin 80s linear infinite;
}
[data-theme="mixtape"] .ans { box-shadow: inset 0 0 0 2px #161412, 4px 4px 0 #161412; border-radius: 16px; }
[data-theme="mixtape"] .ans.correct { box-shadow: inset 0 0 0 2px #161412, 6px 6px 0 #161412; }
[data-theme="mixtape"] .display-2 .w,
[data-theme="mixtape"] .question .w { background: #161412; color: #ECE8DF; padding: .02em .14em .06em; margin: 0 -.04em .08em; border-radius: 2px; }
[data-theme="mixtape"] .question { font-size: clamp(21px, 6.6cqi, 32px); line-height: 1.22; }
[data-theme="mixtape"] .sheet { background: #F7F4EE; color: #161412; box-shadow: inset 0 0 0 2px #161412, 6px 6px 0 #161412; }
[data-theme="mixtape"] .big:not(.text) { font-size: clamp(52px, 19cqi, 104px); white-space: nowrap; }
[data-theme="mixtape"] .big, [data-theme="mixtape"] .score-big { color: var(--accent); -webkit-text-stroke: 2.5px #161412; paint-order: stroke fill; letter-spacing: -.01em; }
[data-theme="mixtape"] .rankline { background: #161412; color: #F7F4EE; }
[data-theme="mixtape"] .mega { color: transparent; -webkit-text-stroke: 3px #161412; }
[data-theme="mixtape"] .mega.x2 { color: #161412; -webkit-text-stroke: 0; }
[data-theme="mixtape"] .btn.primary { box-shadow: inset 0 0 0 2px #161412, 4px 4px 0 #161412; }
[data-theme="mixtape"] .badge { box-shadow: inset 0 0 0 2px #161412, 4px 4px 0 #161412; }
[data-theme="mixtape"] .stat, [data-theme="mixtape"] .row { background: #F7F4EE; box-shadow: inset 0 0 0 1.5px #161412; }
[data-theme="mixtape"] .row.me { background: var(--accent); box-shadow: inset 0 0 0 2px #161412, 4px 4px 0 #161412; }

/* =========================================================
   2. ACID — 2025 lime: liquid ink shapes, ink accents
   ========================================================= */
html[data-theme="acid"] {
  --bg: #CDF20E; --page-bg: #B9DB0B; --stage-bg: #CDF20E;
  --fg: #121212; --fg-dim: rgba(18, 18, 18, .64);
  --line: rgba(18, 18, 18, .22); --glass: rgba(18, 18, 18, .06);
  --on-accent: #CDF20E; --accent-text: #121212;
  --good: #FFFFFF; --bad: #FF3B2F;
  --tile-bg: rgba(18, 18, 18, .05);
  --display-stretch: 112%; --d2-stretch: 100%;
}
[data-theme="acid"] .deco > i:nth-child(1) {
  display: block;
  background: radial-gradient(circle at 32% 28%, #5d6e00 0, #2a3200 22%, #121212 52%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-100%20-100%20200%20200'%20%3E%3Cpath%20fill%3D'%23000'%20d%3D'M88.4%2037.4L85.7%2040.3L82.4%2042.7L78.8%2044.9L75.1%2046.8L71.3%2048.4L67.5%2049.8L63.6%2050.9L59.8%2051.9L56.1%2052.7L52.5%2053.3L49.0%2053.8L45.7%2054.3L42.5%2054.7L39.4%2055.1L36.5%2055.5L33.7%2056.0L31.1%2056.5L28.6%2057.1L26.2%2057.8L23.8%2058.7L21.5%2059.7L19.3%2060.9L17.0%2062.2L14.8%2063.6L12.5%2065.3L10.1%2067.0L7.6%2068.8L5.1%2070.8L2.3%2072.8L-0.5%2074.8L-3.6%2076.9L-6.8%2078.9L-10.2%2080.9L-13.7%2082.7L-17.4%2084.4L-21.3%2085.9L-25.3%2087.1L-29.3%2088.0L-33.4%2088.6L-37.4%2088.4L-40.3%2085.7L-42.7%2082.4L-44.9%2078.8L-46.8%2075.1L-48.4%2071.3L-49.8%2067.5L-50.9%2063.6L-51.9%2059.8L-52.7%2056.1L-53.3%2052.5L-53.8%2049.0L-54.3%2045.7L-54.7%2042.5L-55.1%2039.4L-55.5%2036.5L-56.0%2033.7L-56.5%2031.1L-57.1%2028.6L-57.8%2026.2L-58.7%2023.8L-59.7%2021.5L-60.9%2019.3L-62.2%2017.0L-63.6%2014.8L-65.3%2012.5L-67.0%2010.1L-68.8%207.6L-70.8%205.1L-72.8%202.3L-74.8%20-0.5L-76.9%20-3.6L-78.9%20-6.8L-80.9%20-10.2L-82.7%20-13.7L-84.4%20-17.4L-85.9%20-21.3L-87.1%20-25.3L-88.0%20-29.3L-88.6%20-33.4L-88.4%20-37.4L-85.7%20-40.3L-82.4%20-42.7L-78.8%20-44.9L-75.1%20-46.8L-71.3%20-48.4L-67.5%20-49.8L-63.6%20-50.9L-59.8%20-51.9L-56.1%20-52.7L-52.5%20-53.3L-49.0%20-53.8L-45.7%20-54.3L-42.5%20-54.7L-39.4%20-55.1L-36.5%20-55.5L-33.7%20-56.0L-31.1%20-56.5L-28.6%20-57.1L-26.2%20-57.8L-23.8%20-58.7L-21.5%20-59.7L-19.3%20-60.9L-17.0%20-62.2L-14.8%20-63.6L-12.5%20-65.3L-10.1%20-67.0L-7.6%20-68.8L-5.1%20-70.8L-2.3%20-72.8L0.5%20-74.8L3.6%20-76.9L6.8%20-78.9L10.2%20-80.9L13.7%20-82.7L17.4%20-84.4L21.3%20-85.9L25.3%20-87.1L29.3%20-88.0L33.4%20-88.6L37.4%20-88.4L40.3%20-85.7L42.7%20-82.4L44.9%20-78.8L46.8%20-75.1L48.4%20-71.3L49.8%20-67.5L50.9%20-63.6L51.9%20-59.8L52.7%20-56.1L53.3%20-52.5L53.8%20-49.0L54.3%20-45.7L54.7%20-42.5L55.1%20-39.4L55.5%20-36.5L56.0%20-33.7L56.5%20-31.1L57.1%20-28.6L57.8%20-26.2L58.7%20-23.8L59.7%20-21.5L60.9%20-19.3L62.2%20-17.0L63.6%20-14.8L65.3%20-12.5L67.0%20-10.1L68.8%20-7.6L70.8%20-5.1L72.8%20-2.3L74.8%200.5L76.9%203.6L78.9%206.8L80.9%2010.2L82.7%2013.7L84.4%2017.4L85.9%2021.3L87.1%2025.3L88.0%2029.3L88.6%2033.4L88.4%2037.4Z'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-100%20-100%20200%20200'%20%3E%3Cpath%20fill%3D'%23000'%20d%3D'M88.4%2037.4L85.7%2040.3L82.4%2042.7L78.8%2044.9L75.1%2046.8L71.3%2048.4L67.5%2049.8L63.6%2050.9L59.8%2051.9L56.1%2052.7L52.5%2053.3L49.0%2053.8L45.7%2054.3L42.5%2054.7L39.4%2055.1L36.5%2055.5L33.7%2056.0L31.1%2056.5L28.6%2057.1L26.2%2057.8L23.8%2058.7L21.5%2059.7L19.3%2060.9L17.0%2062.2L14.8%2063.6L12.5%2065.3L10.1%2067.0L7.6%2068.8L5.1%2070.8L2.3%2072.8L-0.5%2074.8L-3.6%2076.9L-6.8%2078.9L-10.2%2080.9L-13.7%2082.7L-17.4%2084.4L-21.3%2085.9L-25.3%2087.1L-29.3%2088.0L-33.4%2088.6L-37.4%2088.4L-40.3%2085.7L-42.7%2082.4L-44.9%2078.8L-46.8%2075.1L-48.4%2071.3L-49.8%2067.5L-50.9%2063.6L-51.9%2059.8L-52.7%2056.1L-53.3%2052.5L-53.8%2049.0L-54.3%2045.7L-54.7%2042.5L-55.1%2039.4L-55.5%2036.5L-56.0%2033.7L-56.5%2031.1L-57.1%2028.6L-57.8%2026.2L-58.7%2023.8L-59.7%2021.5L-60.9%2019.3L-62.2%2017.0L-63.6%2014.8L-65.3%2012.5L-67.0%2010.1L-68.8%207.6L-70.8%205.1L-72.8%202.3L-74.8%20-0.5L-76.9%20-3.6L-78.9%20-6.8L-80.9%20-10.2L-82.7%20-13.7L-84.4%20-17.4L-85.9%20-21.3L-87.1%20-25.3L-88.0%20-29.3L-88.6%20-33.4L-88.4%20-37.4L-85.7%20-40.3L-82.4%20-42.7L-78.8%20-44.9L-75.1%20-46.8L-71.3%20-48.4L-67.5%20-49.8L-63.6%20-50.9L-59.8%20-51.9L-56.1%20-52.7L-52.5%20-53.3L-49.0%20-53.8L-45.7%20-54.3L-42.5%20-54.7L-39.4%20-55.1L-36.5%20-55.5L-33.7%20-56.0L-31.1%20-56.5L-28.6%20-57.1L-26.2%20-57.8L-23.8%20-58.7L-21.5%20-59.7L-19.3%20-60.9L-17.0%20-62.2L-14.8%20-63.6L-12.5%20-65.3L-10.1%20-67.0L-7.6%20-68.8L-5.1%20-70.8L-2.3%20-72.8L0.5%20-74.8L3.6%20-76.9L6.8%20-78.9L10.2%20-80.9L13.7%20-82.7L17.4%20-84.4L21.3%20-85.9L25.3%20-87.1L29.3%20-88.0L33.4%20-88.6L37.4%20-88.4L40.3%20-85.7L42.7%20-82.4L44.9%20-78.8L46.8%20-75.1L48.4%20-71.3L49.8%20-67.5L50.9%20-63.6L51.9%20-59.8L52.7%20-56.1L53.3%20-52.5L53.8%20-49.0L54.3%20-45.7L54.7%20-42.5L55.1%20-39.4L55.5%20-36.5L56.0%20-33.7L56.5%20-31.1L57.1%20-28.6L57.8%20-26.2L58.7%20-23.8L59.7%20-21.5L60.9%20-19.3L62.2%20-17.0L63.6%20-14.8L65.3%20-12.5L67.0%20-10.1L68.8%20-7.6L70.8%20-5.1L72.8%20-2.3L74.8%200.5L76.9%203.6L78.9%206.8L80.9%2010.2L82.7%2013.7L84.4%2017.4L85.9%2021.3L87.1%2025.3L88.0%2029.3L88.6%2033.4L88.4%2037.4Z'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
[data-theme="acid"] .deco > i:nth-child(1) { width: 78cqi; height: 78cqi; right: -34cqi; top: -16cqi; animation: spin 40s linear infinite; }
[data-theme="acid"] .ans { box-shadow: inset 0 0 0 2px #121212; }
[data-theme="acid"] .ans.correct { color: #121212; }
[data-theme="acid"] .ans.correct .key { background: #121212; color: #CDF20E; }
[data-theme="acid"] .move.up, [data-theme="acid"] .pill.x2 { color: #121212; }

/* =========================================================
   3. HALFTONE — 2026 print: orange dots, blob type, big blue sun
   ========================================================= */
html[data-theme="halftone"] {
  --bg: #FF8C42; --page-bg: #E8742C;
  --stage-bg: radial-gradient(circle at 12% 30%, #FF5A1F 0, transparent 38%), radial-gradient(circle at 85% 88%, #FF5A1F 0, transparent 34%), radial-gradient(circle at 40% 70%, #FFB27A 0, transparent 30%), #FF9450;
  --fg: #1C1B3A; --fg-dim: rgba(28, 27, 58, .7);
  --line: rgba(28, 27, 58, .22); --glass: rgba(255, 255, 255, .22);
  --on-accent: #1C1B3A; --accent-text: #1C1B3A;
  --tile-bg: rgba(255, 255, 255, .28);
}
[data-theme="halftone"] .deco > i:nth-child(1) {
  display: block; inset: 0; z-index: 2;
  background-image: radial-gradient(rgba(150, 40, 0, .28) 1.25px, transparent 1.75px);
  background-size: 7px 7px;
}
[data-theme="halftone"] .deco > i:nth-child(2) {
  display: block; width: 96cqi; height: 96cqi; right: -52cqi; top: -22cqi; border-radius: 50%;
  background:
    radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.7px) 0 0 / 6px 6px,
    radial-gradient(circle at 30% 70%, #4C8DF6 0, #2A5AD0 40%, #1D3F9E 75%);
  animation: float 14s ease-in-out infinite;
}
[data-theme="halftone"] .year,
[data-theme="halftone"] .mega,
[data-theme="halftone"] .big:not(.text),
[data-theme="halftone"] .score-big { font-family: 'Rubik Bubbles', 'Archivo', sans-serif; font-weight: 400; letter-spacing: 0; }
[data-theme="halftone"] .score-big { color: #1E5B32; }
[data-theme="halftone"] .mega { color: #1E5B32; line-height: .9; }
[data-theme="halftone"] .ans { box-shadow: inset 0 0 0 2px rgba(28, 27, 58, .35); }

/* =========================================================
   4. OP-ART — 2025 intro: black, white, one red
   ========================================================= */
html[data-theme="opart"] {
  --bg: #0B0B0B; --stage-bg: #0B0B0B;
  --fg: #F2F2F2; --fg-dim: rgba(242, 242, 242, .62);
  --line: rgba(242, 242, 242, .2); --glass: rgba(242, 242, 242, .06);
  --on-accent: #0B0B0B;
  --tile-bg: #0B0B0B;
  --display-stretch: 70%; --d2-stretch: 70%; --big-stretch: 62%;
}
[data-theme="opart"] .deco > i:nth-child(1) {
  display: block; width: 150cqi; height: 150cqi; left: -25cqi; top: calc(26cqh - 75cqi); border-radius: 50%;
  -webkit-mask: linear-gradient(#000 38%, transparent 62%); mask: linear-gradient(#000 38%, transparent 62%);
  background:
    repeating-conic-gradient(#F2F2F2 0 7.5deg, #0B0B0B 0 15deg),
    repeating-radial-gradient(circle, #F2F2F2 0 5cqi, #0B0B0B 0 10cqi);
  background-blend-mode: difference;
  animation: spin 45s linear infinite;
}
[data-theme="opart"] .deco > i:nth-child(2) {
  display: block; right: 0; top: 0; width: 34cqi; height: 26cqh;
  background: repeating-linear-gradient(90deg, #F2F2F2 0 6px, transparent 6px 14px);
  -webkit-mask: linear-gradient(200deg, #000 30%, transparent 80%); mask: linear-gradient(200deg, #000 30%, transparent 80%);
}
[data-theme="opart"] .display, [data-theme="opart"] .display-2, [data-theme="opart"] .question, [data-theme="opart"] .mega { text-transform: uppercase; }
[data-theme="opart"] .question { font-stretch: 72%; font-size: clamp(26px, 8.4cqi, 40px); line-height: .98; }
[data-theme="opart"] .ans { box-shadow: inset 0 0 0 2px #F2F2F2; }
[data-theme="opart"] .stat, [data-theme="opart"] .row { background: #0B0B0B; box-shadow: inset 0 0 0 1.5px rgba(242, 242, 242, .35); }

/* =========================================================
   5. CHROME — 2023: liquid metal tubes on lilac
   ========================================================= */
html[data-theme="chrome"] {
  --bg: #B8AEF5; --page-bg: #A79CEB;
  --stage-bg: radial-gradient(circle at 80% 10%, #D8D1FF 0, transparent 45%), radial-gradient(circle at 10% 90%, #9C8FF0 0, transparent 50%), #B8AEF5;
  --fg: #17152B; --fg-dim: rgba(23, 21, 43, .66);
  --line: rgba(255, 255, 255, .7); --glass: rgba(255, 255, 255, .3);
  --on-accent: #17152B; --accent-text: #17152B;
  --tile-bg: rgba(255, 255, 255, .34);
  --display-stretch: 115%; --d2-stretch: 105%;
}
[data-theme="chrome"] .deco > i:nth-child(1),
[data-theme="chrome"] .deco > i:nth-child(2) { display: block; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20410%20210'%20%3E%3Cdefs%3E%3ClinearGradient%20id%3D'g'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'1'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23ffffff'%2F%3E%3Cstop%20offset%3D'.18'%20stop-color%3D'%239aa0b8'%2F%3E%3Cstop%20offset%3D'.36'%20stop-color%3D'%23f7f8ff'%2F%3E%3Cstop%20offset%3D'.52'%20stop-color%3D'%236b6f86'%2F%3E%3Cstop%20offset%3D'.7'%20stop-color%3D'%23ece9ff'%2F%3E%3Cstop%20offset%3D'.86'%20stop-color%3D'%23b6a9ff'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23ffffff'%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D'h'%20x1%3D'0'%20y1%3D'0'%20x2%3D'1'%20y2%3D'0'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23ffd6f2'%2F%3E%3Cstop%20offset%3D'.5'%20stop-color%3D'%23c9f0ff'%2F%3E%3Cstop%20offset%3D'1'%20stop-color%3D'%23e3ffb0'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'none'%20stroke%3D'url(%23g)'%20stroke-width%3D'34'%20stroke-linecap%3D'round'%20d%3D'M20%20150%20C%2060%2040%2C%20150%2040%2C%20170%20110%20S%20260%20200%2C%20300%2090%20S%20380%2020%2C%20390%2060'%2F%3E%3Cpath%20fill%3D'none'%20stroke%3D'url(%23h)'%20stroke-width%3D'6'%20stroke-linecap%3D'round'%20opacity%3D'.75'%20d%3D'M26%20138%20C%2064%2044%2C%20146%2048%2C%20164%20104%20S%20254%20186%2C%20294%2086'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; filter: drop-shadow(0 18px 24px rgba(40, 20, 120, .28)); }
[data-theme="chrome"] .deco > i:nth-child(1) { width: 92cqi; height: 47cqi; right: -30cqi; top: 4cqh; animation: float 12s ease-in-out infinite; }
[data-theme="chrome"] .deco > i:nth-child(2) { width: 70cqi; height: 36cqi; left: -28cqi; bottom: 26cqh; transform: rotate(160deg); animation: float 16s ease-in-out infinite reverse; }
[data-theme="chrome"] .ans, [data-theme="chrome"] .stat, [data-theme="chrome"] .row, [data-theme="chrome"] .sheet {
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
[data-theme="chrome"] .ans { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), 0 10px 30px -14px rgba(40, 20, 120, .45); }
[data-theme="chrome"] .big, [data-theme="chrome"] .score-big, [data-theme="chrome"] .mega {
  background: linear-gradient(170deg, #ffffff 0%, #9aa0b8 30%, #3c3f58 52%, #e9e6ff 70%, #7d74c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================================================
   6. NEON STACK — 2019 / 2024: black, hot pink, stepped echoes
   ========================================================= */
html[data-theme="neon"] {
  --bg: #050505; --stage-bg: #050505;
  --fg: #FFFFFF; --fg-dim: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .18); --glass: rgba(255, 255, 255, .05);
  --on-accent: #050505;
  --tile-bg: rgba(255, 255, 255, .04);
  --display-stretch: 125%; --d2-stretch: 118%; --big-stretch: 125%;
}
[data-theme="neon"] .deco > i:nth-child(1),
[data-theme="neon"] .deco > i:nth-child(2) {
  display: block; background: var(--accent); border-radius: 4px; transition: background .6s, box-shadow .6s;
  box-shadow:
    -14px 14px 0 color-mix(in srgb, var(--accent) 82%, #000),
    -28px 28px 0 color-mix(in srgb, var(--accent) 66%, #000),
    -42px 42px 0 color-mix(in srgb, var(--accent) 50%, #000),
    -56px 56px 0 color-mix(in srgb, var(--accent) 36%, #000),
    -70px 70px 0 color-mix(in srgb, var(--accent) 22%, #000);
  animation: stair 5s ease-in-out infinite;
}
[data-theme="neon"] .deco > i:nth-child(1) { width: 30cqi; height: 18cqi; right: -6cqi; top: 10cqh; }
[data-theme="neon"] .deco > i:nth-child(2) { width: 22cqi; height: 13cqi; left: 8cqi; bottom: 34cqh; opacity: .55; animation-delay: -2.5s; }
[data-theme="neon"] .display, [data-theme="neon"] .display-2, [data-theme="neon"] .mega { text-transform: uppercase; letter-spacing: -.03em; }
[data-theme="neon"] .ans { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
[data-theme="neon"] .ans:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--accent), 0 0 30px -6px var(--accent); }
[data-theme="neon"] .t-shape { filter: drop-shadow(0 0 14px var(--accent)); }
[data-theme="neon"] .btn.primary { box-shadow: 0 0 40px -4px var(--accent); }

/* =========================================================
   7. POP BURST — 2022: purple, starburst, retro maximal
   ========================================================= */
html[data-theme="pop"] {
  --bg: #6A2BD8; --page-bg: #5520B8; --stage-bg: #6A2BD8;
  --fg: #FFFFFF; --fg-dim: rgba(255, 255, 255, .78);
  --line: rgba(255, 255, 255, .26); --glass: rgba(255, 255, 255, .12);
  --on-accent: #161412;
  --tile-bg: rgba(255, 255, 255, .12);
  --display-stretch: 112%; --d2-stretch: 100%;
}
[data-theme="pop"] .deco > i:nth-child(1) {
  display: block; width: 96cqi; height: 96cqi; right: -44cqi; top: 6cqh; background: #FFD12E;
  clip-path: polygon(50.0% 0.0%, 58.5% 18.1%, 75.0% 6.7%, 73.3% 26.7%, 93.3% 25.0%, 81.9% 41.5%, 100.0% 50.0%, 81.9% 58.5%, 93.3% 75.0%, 73.3% 73.3%, 75.0% 93.3%, 58.5% 81.9%, 50.0% 100.0%, 41.5% 81.9%, 25.0% 93.3%, 26.7% 73.3%, 6.7% 75.0%, 18.1% 58.5%, 0.0% 50.0%, 18.1% 41.5%, 6.7% 25.0%, 26.7% 26.7%, 25.0% 6.7%, 41.5% 18.1%);
  animation: spin 50s linear infinite;
}
[data-theme="pop"] .deco > i:nth-child(2) {
  display: block; width: 54cqi; height: 54cqi; right: -22cqi; top: calc(6cqh + 21cqi);
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-100%20-100%20200%20200'%20%3E%3Cpath%20fill%3D'%23FF7A1A'%20d%3D'M96.0%200.0L93.9%203.7L91.0%207.2L87.7%2010.4L84.2%2013.3L80.6%2016.0L77.0%2018.5L73.6%2020.7L70.3%2022.8L67.3%2024.8L64.6%2026.8L62.2%2028.7L60.3%2030.7L58.7%2032.8L57.4%2035.2L56.4%2037.7L55.8%2040.5L55.3%2043.6L55.1%2047.0L54.9%2050.7L54.7%2054.7L54.4%2058.9L54.0%2063.3L53.4%2067.8L52.5%2072.3L51.3%2076.7L49.5%2080.8L46.7%2083.3L42.3%2083.0L37.8%2082.1L33.4%2080.7L29.2%2079.0L25.1%2077.2L21.2%2075.3L17.6%2073.5L14.3%2071.7L11.1%2070.2L8.2%2068.9L5.4%2068.0L2.6%2067.4L0.0%2067.2L-2.6%2067.4L-5.4%2068.0L-8.2%2068.9L-11.1%2070.2L-14.3%2071.7L-17.6%2073.5L-21.2%2075.3L-25.1%2077.2L-29.2%2079.0L-33.4%2080.7L-37.8%2082.1L-42.3%2083.0L-46.7%2083.3L-49.5%2080.8L-51.3%2076.7L-52.5%2072.3L-53.4%2067.8L-54.0%2063.3L-54.4%2058.9L-54.7%2054.7L-54.9%2050.7L-55.1%2047.0L-55.3%2043.6L-55.8%2040.5L-56.4%2037.7L-57.4%2035.2L-58.7%2032.8L-60.3%2030.7L-62.2%2028.7L-64.6%2026.8L-67.3%2024.8L-70.3%2022.8L-73.6%2020.7L-77.0%2018.5L-80.6%2016.0L-84.2%2013.3L-87.7%2010.4L-91.0%207.2L-93.9%203.7L-96.0%200.0L-93.9%20-3.7L-91.0%20-7.2L-87.7%20-10.4L-84.2%20-13.3L-80.6%20-16.0L-77.0%20-18.5L-73.6%20-20.7L-70.3%20-22.8L-67.3%20-24.8L-64.6%20-26.8L-62.2%20-28.7L-60.3%20-30.7L-58.7%20-32.8L-57.4%20-35.2L-56.4%20-37.7L-55.8%20-40.5L-55.3%20-43.6L-55.1%20-47.0L-54.9%20-50.7L-54.7%20-54.7L-54.4%20-58.9L-54.0%20-63.3L-53.4%20-67.8L-52.5%20-72.3L-51.3%20-76.7L-49.5%20-80.8L-46.7%20-83.3L-42.3%20-83.0L-37.8%20-82.1L-33.4%20-80.7L-29.2%20-79.0L-25.1%20-77.2L-21.2%20-75.3L-17.6%20-73.5L-14.3%20-71.7L-11.1%20-70.2L-8.2%20-68.9L-5.4%20-68.0L-2.6%20-67.4L-0.0%20-67.2L2.6%20-67.4L5.4%20-68.0L8.2%20-68.9L11.1%20-70.2L14.3%20-71.7L17.6%20-73.5L21.2%20-75.3L25.1%20-77.2L29.2%20-79.0L33.4%20-80.7L37.8%20-82.1L42.3%20-83.0L46.7%20-83.3L49.5%20-80.8L51.3%20-76.7L52.5%20-72.3L53.4%20-67.8L54.0%20-63.3L54.4%20-58.9L54.7%20-54.7L54.9%20-50.7L55.1%20-47.0L55.3%20-43.6L55.8%20-40.5L56.4%20-37.7L57.4%20-35.2L58.7%20-32.8L60.3%20-30.7L62.2%20-28.7L64.6%20-26.8L67.3%20-24.8L70.3%20-22.8L73.6%20-20.7L77.0%20-18.5L80.6%20-16.0L84.2%20-13.3L87.7%20-10.4L91.0%20-7.2L93.9%20-3.7L96.0%20-0.0Z'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  animation: spinR 36s linear infinite;
}
[data-theme="pop"] .deco::after {
  content: ''; width: 40cqi; height: 30cqi; left: -6cqi; bottom: 30cqh;
  background:
    radial-gradient(circle at 20% 30%, #161412 0 7cqi, transparent 7.2cqi),
    radial-gradient(circle at 60% 70%, #161412 0 5cqi, transparent 5.2cqi),
    radial-gradient(circle at 85% 20%, #161412 0 3.5cqi, transparent 3.7cqi);
}
[data-theme="pop"] .display-2 .w, [data-theme="pop"] .mega .w { text-shadow: 3px 3px 0 #161412; }

/* =========================================================
   8. BLOOM — 2021: pastel pink, organic Jala flowers
   ========================================================= */
html[data-theme="bloom"] {
  --bg: #F8C8DA; --page-bg: #EFB2C8; --stage-bg: #F8C8DA;
  --fg: #18224A; --fg-dim: rgba(24, 34, 74, .66);
  --line: rgba(24, 34, 74, .16); --glass: rgba(255, 255, 255, .45);
  --on-accent: #18224A; --accent-text: #18224A;
  --tile-bg: rgba(255, 255, 255, .55);
  --radius: 30px;
}
[data-theme="bloom"] .deco > i:nth-child(1) {
  display: block; width: 84cqi; height: 84cqi; left: -44cqi; bottom: -30cqi;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-100%20-100%20200%20200'%20%3E%3Cpath%20fill%3D'%2318224A'%20d%3D'M96.0%200.0L93.9%203.7L91.0%207.2L87.7%2010.4L84.2%2013.3L80.6%2016.0L77.0%2018.5L73.6%2020.7L70.3%2022.8L67.3%2024.8L64.6%2026.8L62.2%2028.7L60.3%2030.7L58.7%2032.8L57.4%2035.2L56.4%2037.7L55.8%2040.5L55.3%2043.6L55.1%2047.0L54.9%2050.7L54.7%2054.7L54.4%2058.9L54.0%2063.3L53.4%2067.8L52.5%2072.3L51.3%2076.7L49.5%2080.8L46.7%2083.3L42.3%2083.0L37.8%2082.1L33.4%2080.7L29.2%2079.0L25.1%2077.2L21.2%2075.3L17.6%2073.5L14.3%2071.7L11.1%2070.2L8.2%2068.9L5.4%2068.0L2.6%2067.4L0.0%2067.2L-2.6%2067.4L-5.4%2068.0L-8.2%2068.9L-11.1%2070.2L-14.3%2071.7L-17.6%2073.5L-21.2%2075.3L-25.1%2077.2L-29.2%2079.0L-33.4%2080.7L-37.8%2082.1L-42.3%2083.0L-46.7%2083.3L-49.5%2080.8L-51.3%2076.7L-52.5%2072.3L-53.4%2067.8L-54.0%2063.3L-54.4%2058.9L-54.7%2054.7L-54.9%2050.7L-55.1%2047.0L-55.3%2043.6L-55.8%2040.5L-56.4%2037.7L-57.4%2035.2L-58.7%2032.8L-60.3%2030.7L-62.2%2028.7L-64.6%2026.8L-67.3%2024.8L-70.3%2022.8L-73.6%2020.7L-77.0%2018.5L-80.6%2016.0L-84.2%2013.3L-87.7%2010.4L-91.0%207.2L-93.9%203.7L-96.0%200.0L-93.9%20-3.7L-91.0%20-7.2L-87.7%20-10.4L-84.2%20-13.3L-80.6%20-16.0L-77.0%20-18.5L-73.6%20-20.7L-70.3%20-22.8L-67.3%20-24.8L-64.6%20-26.8L-62.2%20-28.7L-60.3%20-30.7L-58.7%20-32.8L-57.4%20-35.2L-56.4%20-37.7L-55.8%20-40.5L-55.3%20-43.6L-55.1%20-47.0L-54.9%20-50.7L-54.7%20-54.7L-54.4%20-58.9L-54.0%20-63.3L-53.4%20-67.8L-52.5%20-72.3L-51.3%20-76.7L-49.5%20-80.8L-46.7%20-83.3L-42.3%20-83.0L-37.8%20-82.1L-33.4%20-80.7L-29.2%20-79.0L-25.1%20-77.2L-21.2%20-75.3L-17.6%20-73.5L-14.3%20-71.7L-11.1%20-70.2L-8.2%20-68.9L-5.4%20-68.0L-2.6%20-67.4L-0.0%20-67.2L2.6%20-67.4L5.4%20-68.0L8.2%20-68.9L11.1%20-70.2L14.3%20-71.7L17.6%20-73.5L21.2%20-75.3L25.1%20-77.2L29.2%20-79.0L33.4%20-80.7L37.8%20-82.1L42.3%20-83.0L46.7%20-83.3L49.5%20-80.8L51.3%20-76.7L52.5%20-72.3L53.4%20-67.8L54.0%20-63.3L54.4%20-58.9L54.7%20-54.7L54.9%20-50.7L55.1%20-47.0L55.3%20-43.6L55.8%20-40.5L56.4%20-37.7L57.4%20-35.2L58.7%20-32.8L60.3%20-30.7L62.2%20-28.7L64.6%20-26.8L67.3%20-24.8L70.3%20-22.8L73.6%20-20.7L77.0%20-18.5L80.6%20-16.0L84.2%20-13.3L87.7%20-10.4L91.0%20-7.2L93.9%20-3.7L96.0%20-0.0Z'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  animation: spin 70s linear infinite;
}
[data-theme="bloom"] .deco > i:nth-child(2) {
  display: block; width: 76cqi; height: 76cqi; right: -40cqi; top: 6cqh;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-100%20-100%20200%20200'%20%3E%3Cpath%20fill%3D'%237FE0C2'%20d%3D'M96.0%200.0L94.4%203.7L92.1%207.3L89.5%2010.6L86.5%2013.7L83.4%2016.6L80.1%2019.2L76.8%2021.7L73.4%2023.9L70.1%2025.9L66.8%2027.7L63.7%2029.3L60.6%2030.9L57.7%2032.3L54.9%2033.7L52.3%2035.0L49.9%2036.3L47.7%2037.6L45.7%2039.0L43.8%2040.5L42.1%2042.1L40.5%2043.8L39.0%2045.7L37.6%2047.7L36.3%2049.9L35.0%2052.3L33.7%2054.9L32.3%2057.7L30.9%2060.6L29.3%2063.7L27.7%2066.8L25.9%2070.1L23.9%2073.4L21.7%2076.8L19.2%2080.1L16.6%2083.4L13.7%2086.5L10.6%2089.5L7.3%2092.1L3.7%2094.4L0.0%2096.0L-3.7%2094.4L-7.3%2092.1L-10.6%2089.5L-13.7%2086.5L-16.6%2083.4L-19.2%2080.1L-21.7%2076.8L-23.9%2073.4L-25.9%2070.1L-27.7%2066.8L-29.3%2063.7L-30.9%2060.6L-32.3%2057.7L-33.7%2054.9L-35.0%2052.3L-36.3%2049.9L-37.6%2047.7L-39.0%2045.7L-40.5%2043.8L-42.1%2042.1L-43.8%2040.5L-45.7%2039.0L-47.7%2037.6L-49.9%2036.3L-52.3%2035.0L-54.9%2033.7L-57.7%2032.3L-60.6%2030.9L-63.7%2029.3L-66.8%2027.7L-70.1%2025.9L-73.4%2023.9L-76.8%2021.7L-80.1%2019.2L-83.4%2016.6L-86.5%2013.7L-89.5%2010.6L-92.1%207.3L-94.4%203.7L-96.0%200.0L-94.4%20-3.7L-92.1%20-7.3L-89.5%20-10.6L-86.5%20-13.7L-83.4%20-16.6L-80.1%20-19.2L-76.8%20-21.7L-73.4%20-23.9L-70.1%20-25.9L-66.8%20-27.7L-63.7%20-29.3L-60.6%20-30.9L-57.7%20-32.3L-54.9%20-33.7L-52.3%20-35.0L-49.9%20-36.3L-47.7%20-37.6L-45.7%20-39.0L-43.8%20-40.5L-42.1%20-42.1L-40.5%20-43.8L-39.0%20-45.7L-37.6%20-47.7L-36.3%20-49.9L-35.0%20-52.3L-33.7%20-54.9L-32.3%20-57.7L-30.9%20-60.6L-29.3%20-63.7L-27.7%20-66.8L-25.9%20-70.1L-23.9%20-73.4L-21.7%20-76.8L-19.2%20-80.1L-16.6%20-83.4L-13.7%20-86.5L-10.6%20-89.5L-7.3%20-92.1L-3.7%20-94.4L-0.0%20-96.0L3.7%20-94.4L7.3%20-92.1L10.6%20-89.5L13.7%20-86.5L16.6%20-83.4L19.2%20-80.1L21.7%20-76.8L23.9%20-73.4L25.9%20-70.1L27.7%20-66.8L29.3%20-63.7L30.9%20-60.6L32.3%20-57.7L33.7%20-54.9L35.0%20-52.3L36.3%20-49.9L37.6%20-47.7L39.0%20-45.7L40.5%20-43.8L42.1%20-42.1L43.8%20-40.5L45.7%20-39.0L47.7%20-37.6L49.9%20-36.3L52.3%20-35.0L54.9%20-33.7L57.7%20-32.3L60.6%20-30.9L63.7%20-29.3L66.8%20-27.7L70.1%20-25.9L73.4%20-23.9L76.8%20-21.7L80.1%20-19.2L83.4%20-16.6L86.5%20-13.7L89.5%20-10.6L92.1%20-7.3L94.4%20-3.7L96.0%20-0.0Z'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  animation: spinR 60s linear infinite;
}
[data-theme="bloom"] .ans { border-radius: 28px; box-shadow: none; }
[data-theme="bloom"] .sheet { border-radius: 40px; }

/* =========================================================
   9. SPECTRUM — 2020: rainbow gradient frame, glow
   ========================================================= */
html[data-theme="spectrum"] {
  --bg: #0A0A12; --stage-bg: #0A0A12;
  --fg: #FFFFFF; --fg-dim: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .16); --glass: rgba(255, 255, 255, .06);
  --on-accent: #0A0A12;
  --tile-bg: rgba(10, 10, 18, .72);
}
[data-theme="spectrum"] .deco > i:nth-child(1) {
  display: block; inset: 0; padding: 7px; border-radius: inherit;
  background: conic-gradient(from 0deg, #FF5A5F, #FFB13B, #F9F871, #5BFF9A, #5AC8FF, #B57CFF, #FF5A5F);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hue 8s linear infinite;
}
[data-theme="spectrum"] .deco > i:nth-child(2) {
  display: block; width: 110cqi; height: 110cqi; left: -5cqi; top: -50cqi; border-radius: 50%;
  background: conic-gradient(from 90deg, #FF5A5F, #FFB13B, #F9F871, #5BFF9A, #5AC8FF, #B57CFF, #FF5A5F);
  filter: blur(60px); opacity: .32;
  animation: spin 20s linear infinite;
}
[data-theme="spectrum"] .ans { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
[data-theme="spectrum"] .ans.correct { box-shadow: 0 0 40px -6px var(--good); }

/* =========================================================
   10. LIVE MIX — Jala original (dark, glass, morphing shapes)
   ========================================================= */
/* Uses the defaults. */

/* =========================================================
   Style switcher (review tool — hidden with ?review=0)
   ========================================================= */
html.has-tb { --tb: 64px; }
html.has-tb body { padding-bottom: var(--tb); }
html.has-tb .stage { height: calc(100vh - var(--tb)); height: calc(100dvh - var(--tb)); }
@media (min-width: 720px) and (min-height: 600px) {
  html.has-tb .stage { height: min(880px, calc(100vh - 40px - var(--tb))); height: min(880px, calc(100dvh - 40px - var(--tb))); }
}
.themebar {
  position: fixed; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 300;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 99px;
  background: rgba(12, 12, 12, .86); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-family: 'Archivo', system-ui, sans-serif;
  max-width: calc(100vw - 16px);
}
.themebar button { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.tb-btn { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.tb-btn:hover, .tb-name:hover { background: rgba(255, 255, 255, .1); }
.tb-name { height: 40px; padding: 0 14px 0 8px; border-radius: 99px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.tb-name small { font-weight: 600; opacity: .6; font-size: 12px; }
.tb-sw { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.themebar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tb-list {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(360px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow-y: auto;
  padding: 8px; border-radius: 22px;
  background: rgba(12, 12, 12, .94); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .1);
  display: grid; gap: 2px;
}
.tb-list[hidden] { display: none; }
.tb-list button { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 12px; text-align: left; padding: 9px 10px; border-radius: 14px; }
.tb-list button:hover, .tb-list button[aria-current="true"] { background: rgba(255, 255, 255, .1); }
.tb-list .tb-sw { grid-row: span 2; width: 30px; height: 30px; }
.tb-list b { font-size: 15px; font-weight: 800; }
.tb-list small { font-size: 12px; opacity: .6; }
