/* AI Draw-Off gallery: the show's own look (night desk, gold, each lab in its colour), tinted by the theme of the
   day a painting aired, as on stream. Deliberately dark only, like the broadcast. */
@font-face { font-family: "Bungee"; src: url("fonts/Bungee-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-ExtraBold.ttf"); font-weight: 800; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0b0d14; --glow: #151a2c; --panel: #141824; --line: #262c3d; --ink: #eef0f7; --dim: #8b93a8; --gold: #ffd34d;
  --display: "Bungee", "Arial Black", Impact, sans-serif; --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
body[data-theme="halloween"] { --bg: #0b0811; --glow: #2b1641; --panel: #15101d; --line: #35284c; }
body[data-theme="autumn"] { --bg: #0e0a08; --glow: #2e1d10; --panel: #17120e; --line: #3b2d21; }
body[data-theme="winter"] { --bg: #070c13; --glow: #17304a; --panel: #0f1723; --line: #27384f; }
body[data-theme="christmas"] { --bg: #0a100d; --glow: #1d3a29; --panel: #111a15; --line: #2a4235; }
body[data-theme="new-year"] { --bg: #09091a; --glow: #27224a; --panel: #121230; --line: #2f2d58; }
body[data-theme="valentines"] { --bg: #110910; --glow: #3b1832; --panel: #1a1018; --line: #42253b; }
body[data-theme="easter"], body[data-theme="spring"] { --bg: #0a100d; --glow: #1f3a2c; --panel: #121a16; --line: #2b4236; }
body[data-theme="summer"] { --bg: #0b0f12; --glow: #2d2b17; --panel: #14181b; --line: #343a2c; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5;
  background: radial-gradient(1100px 600px at 50% 0%, var(--glow), var(--bg) 70%) no-repeat, var(--bg); }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 18px; padding-block: 28px 56px; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; line-height: 1.05; }
.hero { display: grid; gap: 12px; padding-block: 18px 22px; }
.hero h1 { font-size: clamp(34px, 7vw, 64px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin: 0; max-width: 62ch; font-size: 19px; }
.hero .small { font-size: 16px; color: var(--dim); }
code { font-family: ui-monospace, Menlo, monospace; color: var(--gold); }
.live { justify-self: start; font-family: var(--display); font-size: 14px; text-decoration: none; color: #fff; background: #9146ff;
  padding: 7px 12px; border-radius: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { font: 600 15px var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--gold); color: #1a1400; border-color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.match { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; color: inherit; min-width: 0; }
.match:hover { border-color: var(--gold); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 8px; background: #fff; border: 3px solid var(--c, var(--line)); }
.subj { font-weight: 800; font-size: 19px; line-height: 1.25; }
.meta { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 14px; }
.vs { font-family: var(--display); font-size: 14px; }
.vs span { color: var(--c); }
.credit { color: var(--gold); font-size: 14px; font-weight: 600; }
.more { display: block; margin: 22px auto 0; font: 800 16px var(--body); color: #1a1400; background: var(--gold); border: 0;
  border-radius: 10px; padding: 10px 22px; cursor: pointer; }
.note { color: var(--dim); }
footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

/* one episode */
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }
.ep-head { display: grid; gap: 6px; margin-bottom: 20px; }
.ep-head h1 { font-size: clamp(28px, 5.5vw, 48px); color: var(--gold); }
.ep-head .eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.paintings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.painting { display: grid; gap: 12px; align-content: start; min-width: 0; }
.painting img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 12px; background: #fff; border: 4px solid var(--c); }
.who { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.who > div:last-child { display: flex; align-items: center; gap: 8px; flex: none; }
.who .lab { font-family: var(--display); font-size: 22px; color: var(--c); }
.who .model { display: block; color: var(--dim); font-size: 15px; }
.who .score { font-family: var(--display); font-size: 24px; color: var(--gold); }
.badge { display: inline-block; font-family: var(--display); font-size: 13px; color: #1a1400; background: var(--gold); border-radius: 6px; padding: 2px 8px; }
.ptitle { font-style: italic; color: var(--dim); }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.downloads button { font: 800 15px var(--body); color: var(--ink); background: transparent; border: 2px solid var(--c); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; }
.downloads button:hover { background: var(--c); color: #0b0d14; }
.downloads button[disabled] { opacity: 0.5; cursor: progress; }
.share { margin-top: 26px; color: var(--dim); }
@media (prefers-reduced-motion: no-preference) { .match, .downloads button { transition: border-color 0.15s, background 0.15s; } }
