:root {
  color-scheme: dark;
  --scale: 1;
  --inverse-scale: 1;
  --hangman-width: min(94vw, 820px);
  --hangman-size: clamp(12px, min(3.7vw, 2.15vh), 27px);
  --ink: #f8fbff;
  --muted: #c3cee0;
  --cyan: #5ef2df;
  --yellow: #ffd166;
  --pink: #ff5d8f;
  --panel: rgba(9, 15, 28, .86);
  --panel-soft: rgba(18, 27, 45, .76);
  --line: rgba(255, 255, 255, .16);
  --shadow: 0 1.2em 3.5em rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body[data-bg="green"] { background: #00b140; }
body[data-bg="studio"] {
  background:
    radial-gradient(circle at 20% 15%, rgba(94, 242, 223, .18), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(151, 108, 255, .22), transparent 38%),
    linear-gradient(145deg, #111a2e, #070b15 68%);
}

#overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7px, 2.1vmin, 34px);
  transform-origin: center;
}

body[data-pos="top"] #overlay { align-items: flex-start; }
body[data-pos="bottom"] #overlay { align-items: flex-end; }

#game-card {
  position: relative;
  width: min(var(--hangman-width), calc((100vw - clamp(14px, 4.2vmin, 68px)) * var(--inverse-scale)));
  max-height: calc((100vh - clamp(14px, 4.2vmin, 68px)) * var(--inverse-scale));
  padding: clamp(11px, 2.5vmin, 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(18px, 4vmin, 38px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  transform: scale(var(--scale));
  font-size: var(--hangman-size);
}

.game-header, .game-grid, .lower-grid, .danger-meter,
.round-meta, .feed-panel li, .leaderboard-panel li {
  display: flex;
  align-items: center;
}

.game-header { justify-content: space-between; gap: .7em; min-width: 0; }
.title-lockup { display: flex; align-items: center; gap: .42em; min-width: 0; }
.eyebrow {
  color: var(--cyan);
  font-size: .66em;
  line-height: 1;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
h1 { margin: 0; font-size: 2.45em; line-height: .84; letter-spacing: -.035em; }
.round-meta { flex: 0 1 auto; flex-direction: column; align-items: flex-end; gap: .3em; min-width: 0; }
.round-meta span {
  max-width: 100%;
  padding: .3em .58em;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--muted);
  font-size: .72em;
  line-height: 1.12;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#category { color: #07151a; background: var(--cyan); }

.game-grid {
  flex-direction: column;
  gap: .45em;
  margin-top: .55em;
  min-width: 0;
}
.drawing-panel {
  --gallows-w: clamp(105px, 31vw, 260px);
  --gallows-h: min(24vh, 270px);
  width: 100%;
  min-width: 0;
  text-align: center;
}
/* The gallows stays centred; the two side pictures fill the room beside it. */
.gallows-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: .4em;
}
.side-picture {
  width: min(100%, calc(min(var(--gallows-w), var(--gallows-h)) * .68));
  margin: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.side-picture.visible { opacity: 1; }
.side-picture img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: .26em solid rgba(230, 239, 255, .68);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 .45em .7em rgba(0, 0, 0, .42);
}
#gallows {
  width: var(--gallows-w);
  max-height: var(--gallows-h);
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 .45em .7em rgba(0,0,0,.42));
}
.gallows-lines, .person-lines { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gallows-lines { stroke: rgba(230, 239, 255, .68); stroke-width: 8; }
.person-lines { stroke: var(--pink); stroke-width: 9; }
.person-part {
  opacity: 0;
  /* With pathLength="100" on each part, 100 is the whole part at any size. */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: opacity .24s ease, stroke-dashoffset .45s ease;
}
.person-part.visible { opacity: 1; stroke-dashoffset: 0; }
.head-picture { opacity: 0; transition: opacity .45s ease; }
.head-picture.visible { opacity: 1; }
.danger-meter {
  justify-content: center;
  font-size: 1.85em;
  flex-wrap: wrap;
  gap: .3em .45em;
  margin-top: 0;
  line-height: 1;
}
.danger-meter span { color: var(--muted); font-size: .72em; letter-spacing: .12em; }
#wrong-count { color: var(--pink); font-size: 1.05em; }
#lives-left {
  padding-left: .65em;
  border-left: 1px solid rgba(255,255,255,.2);
  color: var(--amber);
  letter-spacing: .07em;
}
#wrong-letters {
  min-height: 1.15em;
  margin-top: .28em;
  color: #ffc1d3;
  font-size: 1.95em;
  line-height: 1.1;
  letter-spacing: .2em;
  overflow-wrap: anywhere;
}

.word-panel { width: 100%; min-width: 0; text-align: center; }
.prompt {
  margin: 0 0 .28em;
  color: var(--muted);
  font-size: 1.4em;
  line-height: 1.1;
  letter-spacing: .09em;
}
#masked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .12em .45em;
  width: 100%;
  color: #fffef5;
  font-size: var(--masked-fit, clamp(50px, min(18vw, 10.5vh), 132px));
  line-height: 1.14;
  letter-spacing: .055em;
  --race-html-stroke: clamp(1.2px, .085em, 3.6px);
}
/* Text fitting measures each candidate immediately, including reduced motion. */
#masked, #masked * { transition-property: none; }
.masked-word { max-width: 100%; white-space: nowrap; }
#masked.is-long { font-size: var(--masked-fit, clamp(40px, min(15vw, 8.5vh), 104px)); letter-spacing: .035em; }
#masked.is-revealed.is-long { font-size: var(--masked-fit, clamp(38px, min(13vw, 7.5vh), 94px)); }
#length { margin-top: .3em; color: var(--cyan); font-size: 1.45em; line-height: 1.1; letter-spacing: .065em; }
#countdown {
  width: fit-content;
  margin: .55em auto 0;
  padding: .38em .7em;
  border: 1px solid rgba(255,209,102,.4);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255,209,102,.12);
  font-size: .88em;
}

.lower-grid {
  align-items: stretch;
  flex-direction: column;
  gap: .45em;
  margin-top: .58em;
  min-width: 0;
}
.feed-panel, .leaderboard-panel {
  min-width: 0;
  padding: .45em .58em;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .75em;
  background: var(--panel-soft);
}
h2 { margin: 0 0 .22em; color: var(--muted); font-size: .7em; line-height: 1; letter-spacing: .12em; }
ol { margin: 0; padding: 0; list-style: none; }
.feed-panel li, .leaderboard-panel li {
  min-width: 0;
  min-height: 1.38em;
  gap: .42em;
  overflow: hidden;
  font-size: 1em;
  line-height: 1.13;
  white-space: nowrap;
}
.guess-name, .score-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guess-name { flex: 0 1 38%; }
.guess-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.guess-result { flex: 0 0 3.75em; text-align: right; color: var(--muted); font-size: .72em; letter-spacing: .035em; }
.result-hit, .result-win { color: var(--cyan); }
.result-miss { color: var(--pink); }
.result-already, .result-cooldown { color: var(--yellow); }
.rank {
  display: grid;
  flex: 0 0 1.35em;
  place-items: center;
  height: 1.35em;
  border-radius: 50%;
  color: #111827;
  background: var(--yellow);
  font-size: .8em;
}
.score-name { flex: 1; }
.score-points { color: var(--cyan); white-space: nowrap; }
.empty-row { color: #9aa9bf; font-style: italic; }
#connection, #autopilot-paused {
  position: absolute;
  bottom: .28em;
  color: #91a0b5;
  font-size: .55em;
  letter-spacing: .08em;
}
#connection { right: 1.4em; }
#connection.connected { color: rgba(94,242,223,.9); }
#autopilot-paused { left: 1.4em; color: rgba(255,209,102,.88); }

#result-banner {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(88vw, 760px);
  max-height: 88vh;
  padding: clamp(22px, 5vmin, 64px);
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(-1.2deg);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: clamp(22px, 5vmin, 40px);
  text-align: center;
  color: #fffef5;
  background: linear-gradient(135deg, #239b97, #b97e18);
  box-shadow: 0 2em 6em rgba(0,0,0,.7), inset 0 2px rgba(255,255,255,.42);
  animation: banner-in .5s cubic-bezier(.2,.9,.2,1.2) both;
  font-size: var(--hangman-size);
}
#result-banner.lost { background: linear-gradient(135deg, #b72b5b, #4c2aa4); }
/* Keep fit measurements synchronous; the banner entrance animation remains. */
#result-banner, #result-banner * { transition-property: none; }
#result-kicker { font-size: 1.6em; letter-spacing: .12em; }
#result-word {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .06em .24em;
  width: 100%;
  margin: .22em 0;
  font-size: var(--result-fit, clamp(54px, min(18vw, 11.2vh), 132px));
  line-height: 1.04;
  letter-spacing: -.02em;
  --race-html-stroke: clamp(1.5px, .09em, 4px);
}
.result-word-piece { max-width: 100%; white-space: nowrap; }
#result-word.is-long { font-size: var(--result-fit, clamp(46px, min(13.6vw, 8.6vh), 102px)); }
#result-detail { font-size: 2em; line-height: 1.18; overflow-wrap: anywhere; }
#result-banner #countdown {
  max-width: 100%;
  font-size: 1.4em;
  margin-top: .75em;
  border-color: rgba(255,255,255,.42);
  color: #fffef5;
  background: rgba(4,12,20,.22);
}

/* Light is an intentional broadcast theme rather than a color inversion: the
   card stays nearly opaque over video, while dark type gets a pale outline. */
body[data-theme="light"] {
  --ink: #111827;
  --muted: #334155;
  --cyan: #006c67;
  --yellow: #854d0e;
  --pink: #a30d44;
  --panel: rgba(248, 250, 252, .94);
  --panel-soft: rgba(255, 255, 255, .84);
  --line: rgba(15, 23, 42, .24);
  --shadow: 0 1.2em 3.5em rgba(15, 23, 42, .3);
}
body[data-theme="light"] #game-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.18) 42%, transparent 72%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.96);
  --race-label-stroke: rgba(255, 255, 255, .96);
}
body[data-theme="light"] #game-card,
body[data-theme="light"] #game-card * {
  -webkit-text-stroke-color: var(--race-label-stroke);
  -webkit-text-stroke-width: var(--race-html-stroke, clamp(.7px, .075em, 2.5px));
  text-shadow:
    0 0 .055em rgba(255,255,255,1),
    0 .055em .07em rgba(255,255,255,.98),
    0 .12em .2em rgba(15,23,42,.28);
}
body[data-theme="light"] #category { color: #ffffff; background: #006c67; }
body[data-theme="light"] .round-meta span:not(#category) { background: rgba(15,23,42,.1); }
body[data-theme="light"] #gallows { filter: drop-shadow(0 .22em .32em rgba(255,255,255,.9)) drop-shadow(0 .42em .55em rgba(15,23,42,.24)); }
body[data-theme="light"] .gallows-lines { stroke: #475569; }
body[data-theme="light"] .person-lines { stroke: #a30d44; }
body[data-theme="light"] #lives-left { border-left-color: rgba(15,23,42,.2); color: #805000; }
body[data-theme="light"] #wrong-letters { color: #8d123f; }
body[data-theme="light"] #masked { color: #111827; }
body[data-theme="light"] #countdown {
  border-color: rgba(133,77,14,.46);
  color: #713f12;
  background: rgba(254,243,199,.82);
}
body[data-theme="light"] .feed-panel,
body[data-theme="light"] .leaderboard-panel { border-color: rgba(15,23,42,.16); }
body[data-theme="light"] .guess-value { color: #111827; }
body[data-theme="light"] .result-hit,
body[data-theme="light"] .result-win,
body[data-theme="light"] .score-points { color: #00645f; }
body[data-theme="light"] .result-miss { color: #9f1239; }
body[data-theme="light"] .result-already,
body[data-theme="light"] .result-cooldown { color: #854d0e; }
body[data-theme="light"] .rank { color: #111827; background: #f2b84b; }
body[data-theme="light"] .empty-row,
body[data-theme="light"] #connection { color: #475569; }
body[data-theme="light"] #connection.connected { color: #00645f; }
body[data-theme="light"] #autopilot-paused { color: #713f12; }
body[data-theme="light"] #result-banner {
  color: #fffef5;
  background: linear-gradient(135deg, #00766f, #764000);
  --race-label-stroke: #101d28;
}
body[data-theme="light"] #result-banner.lost { background: linear-gradient(135deg, #a20e43, #48258c); }
body[data-theme="light"] #result-banner,
body[data-theme="light"] #result-banner * {
  -webkit-text-stroke-color: var(--race-label-stroke);
  text-shadow:
    0 .05em .035em rgba(0, 0, 0, .98),
    0 .09em .08em rgba(0, 0, 0, .9),
    0 .16em .26em rgba(0, 0, 0, .72);
}
body[data-theme="light"] #result-banner #countdown {
  border-color: rgba(255,255,255,.58);
  color: #fffef5;
  background: rgba(4,12,20,.28);
}
/* Bright themes (original designs): every look except Dark and Light
   (hangman.js marks them data-look="bright"). Each paints a colourful
   background on #game-card::before (--fun-bg), dimmed or brightened by
   --hangman-brightness so the outlined white type stays crisp. A theme
   below mostly sets variables (--fun-gallows, --fun-pill, ...) and keeps its
   art at the card's edges, never behind the word. The server resolves
   "cycle" to one of these per round. */
body[data-look="bright"] {
  --ink: #ffffff;
  --muted: #fff6dd;
  --panel-soft: rgba(16, 6, 40, .58);
  --line: rgba(255, 255, 255, .3);
  --shadow: 0 1.2em 3.5em rgba(0, 0, 0, .45);
}
body[data-look="bright"] #game-card {
  isolation: isolate;
  border: var(--fun-border, 1px solid var(--line));
  background: transparent;
  box-shadow: var(--fun-glow, 0 0 0 transparent), var(--shadow);
  backdrop-filter: none;
}
body[data-look="bright"] #game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--fun-bg);
  filter: brightness(var(--hangman-brightness, 1));
  pointer-events: none;
}
/* Art that belongs with the gallows (clouds round the side pictures) is one
   more item in the picture row's grid: it follows the row in every layout,
   never sits behind text, and leaves the row's paint order alone. */
body:is([data-theme="pixel"], [data-theme="sunny"]) .gallows-row::before {
  content: "";
  grid-area: 1 / 1 / 2 / -1;
  align-self: stretch;
  justify-self: stretch;
  z-index: -1;
  margin: -.5em -.3em;
  background: var(--fun-row-art);
  filter: brightness(var(--hangman-brightness, 1));
  pointer-events: none;
}
body:is([data-theme="pixel"], [data-theme="sunny"]) .gallows-row > * { grid-row: 1; }
body:is([data-theme="pixel"], [data-theme="sunny"]) #side-left { grid-column: 1; }
body:is([data-theme="pixel"], [data-theme="sunny"]) #gallows { grid-column: 2; }
body:is([data-theme="pixel"], [data-theme="sunny"]) #side-right { grid-column: 3; }
body[data-look="bright"] h1 { color: var(--fun-title, inherit); }
body[data-look="bright"] #wrong-count { color: var(--fun-wrong, var(--pink)); }
body[data-look="bright"] #category { color: var(--fun-pill-ink, #07151a); background: var(--fun-pill, var(--cyan)); }
body[data-look="bright"] .gallows-lines { stroke: var(--fun-gallows, rgba(230, 239, 255, .68)); }
body[data-look="bright"] .person-lines { stroke: var(--fun-person, var(--pink)); }
body[data-look="bright"] .feed-panel,
body[data-look="bright"] .leaderboard-panel {
  border-color: rgba(255, 255, 255, .24);
}
body[data-look="bright"] .round-meta span:not(#category) {
  color: #ffffff;
  background: rgba(0, 0, 0, .34);
}
body[data-look="bright"] #wrong-letters { color: #ffffff; }
body[data-look="bright"] #lives-left {
  border-left-color: rgba(255, 255, 255, .45);
  color: var(--yellow);
}
body[data-look="bright"] #gallows {
  filter: var(--fun-gallows-filter, drop-shadow(0 .14em 0 rgba(0, 0, 0, .55)) drop-shadow(0 .4em .6em rgba(0, 0, 0, .35)));
}
body[data-look="bright"] .empty-row,
body[data-look="bright"] #connection { color: #f1f1ff; }
body[data-look="bright"] .side-picture img {
  border-color: var(--fun-gallows, rgba(230, 239, 255, .68));
  box-shadow: var(--fun-ring-glow, 0 .45em .7em rgba(0, 0, 0, .42));
}

/* Retro Pop: '90s colour blocks; the art stays at the edges, never behind the word. */
body[data-theme="retro"] {
  --cyan: #2ff3e0;
  --yellow: #ffe14d;
  --pink: #ff4fb0;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' %3E %3Ccircle cx='150' cy='50' r='92' fill='%23ff3ea5' stroke='%23111111' stroke-width='9'/%3E %3Ccircle cx='150' cy='50' r='52' fill='none' stroke='%23ffe14d' stroke-width='10'/%3E%3C/svg%3E") calc(100% + 2.4em) -2.6em / 12em 12em no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .2) 0 .1em, transparent .12em) 0 0 / 1.6em 1.6em,
    linear-gradient(135deg, #00c2c7 0%, #7b2ff7 52%, #ff3ea5 100%);
  --fun-border: .2em solid #111111;
  --fun-glow: .38em .38em 0 #ffe14d;
  --fun-title: #ffe14d;
  --fun-wrong: #ffe14d;
  --fun-pill: #ffe14d;
  --fun-pill-ink: #111111;
  --fun-gallows: #111111;
  --fun-person: #ffffff;
  --fun-ring-glow: .2em .2em 0 #ffe14d;
}
body[data-theme="retro"] #category { box-shadow: 0 0 0 .14em #111111; }
body[data-theme="retro"] .feed-panel,
body[data-theme="retro"] .leaderboard-panel {
  border: .14em solid #111111;
  box-shadow: .24em .24em 0 #00e0d0;
}

/* Quiz Show: a trivia stage with spotlight rays and a ring of marquee bulbs. */
body[data-theme="quiz"] {
  --cyan: #7df9ff;
  --yellow: #ffd60a;
  --pink: #ff4d6d;
  --fun-bg:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 255, 255, .38), transparent 70%),
    radial-gradient(circle at 12% 112%, rgba(255, 77, 109, .6), transparent 42%),
    radial-gradient(circle at 88% 112%, rgba(255, 214, 10, .45), transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 255, 255, .08) 0deg 6deg, transparent 6deg 12deg),
    linear-gradient(165deg, #2338ff 0%, #4b12c9 52%, #160a63 100%);
}
body[data-theme="quiz"] #game-card {
  border: .16em solid #ffd60a;
  box-shadow: 0 0 1.4em rgba(255, 214, 10, .55), var(--shadow);
}
body[data-theme="quiz"] #game-card::after {
  content: "";
  position: absolute;
  inset: .42em;
  z-index: -1;
  border: .28em dotted #fff3b0;
  border-radius: calc(clamp(18px, 4vmin, 38px) - .42em);
  filter: brightness(var(--hangman-brightness, 1)) drop-shadow(0 0 .22em #ffd60a);
  pointer-events: none;
}
body[data-theme="quiz"] h1,
body[data-theme="quiz"] #wrong-count { color: #ffd60a; }
body[data-theme="quiz"] #category { color: #ffffff; background: #ff2e63; }
body[data-theme="quiz"] .gallows-lines { stroke: #ffd60a; }
body[data-theme="quiz"] .person-lines { stroke: #ffffff; }

/* Neon Arcade: synthwave sun over a glowing grid floor. */
body[data-theme="arcade"] {
  --cyan: #00e5ff;
  --yellow: #ffe066;
  --pink: #ff2bd6;
  --fun-bg:
    repeating-linear-gradient(90deg, rgba(0, 229, 255, .5) 0 2px, transparent 2px 3em) 0 100% / 100% 34% no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 43, 214, .6) 0 2px, transparent 2px 1.6em) 0 100% / 100% 34% no-repeat,
    radial-gradient(circle at 50% 66%, #ffe066 0 9%, #ff8a3d 13%, #ff2bd6 19%, transparent 30%),
    linear-gradient(180deg, #0d0221 0%, #261447 45%, #3d0f5c 66%, #12002b 100%);
}
body[data-theme="arcade"] #game-card {
  border: .14em solid #00e5ff;
  box-shadow: 0 0 1.2em rgba(0, 229, 255, .75), inset 0 0 1.4em rgba(255, 43, 214, .45), var(--shadow);
}
body[data-theme="arcade"] #wrong-count { color: #ff2bd6; }
body[data-theme="arcade"] #category { color: #0d0221; background: #00e5ff; }
body[data-theme="arcade"] .gallows-lines { stroke: #00e5ff; }
body[data-theme="arcade"] .person-lines { stroke: #ff2bd6; }
body[data-theme="arcade"] #gallows {
  filter: drop-shadow(0 0 .22em rgba(0, 229, 255, .85)) drop-shadow(0 0 .35em rgba(255, 43, 214, .6));
}

/* Candy Pop: pink-to-sunshine gradient with white polka dots. */
body[data-theme="candy"] {
  --cyan: #3dffc5;
  --yellow: #fff35c;
  --pink: #ff9bd2;
  --fun-bg:
    radial-gradient(circle, rgba(255, 255, 255, .42) 0 20%, transparent 22%) 0 0 / 2.4em 2.4em,
    radial-gradient(circle, rgba(255, 255, 255, .26) 0 20%, transparent 22%) 1.2em 1.2em / 2.4em 2.4em,
    linear-gradient(135deg, #ff4fa3 0%, #ff7f50 48%, #ffcf3f 100%);
}
body[data-theme="candy"] #game-card {
  border: .2em solid #ffffff;
  box-shadow: 0 0 0 .2em #ff4fa3, var(--shadow);
}
body[data-theme="candy"] #wrong-count { color: #fff35c; }
body[data-theme="candy"] #category { color: #ffffff; background: #6a1fd1; }
body[data-theme="candy"] .gallows-lines { stroke: #6a1fd1; }
body[data-theme="candy"] .person-lines { stroke: #ffffff; }

/* Aurora */
body[data-theme="aurora"] {
  --cyan: #4dffb0;
  --yellow: #ffe680;
  --pink: #ff7ab8;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath fill='%2303121b' d='M6.0 30.2 L-1.9 46.9 L13.9 46.9 ZM6.0 38.1 L-5.2 57.3 L17.2 57.3 ZM6.0 46.9 L-8.3 66.8 L20.3 66.8 ZM4.7 66.0 h2.6 V70 h-2.6 ZM28.7 25.6 L19.9 44.2 L37.5 44.2 ZM28.7 34.4 L16.2 55.8 L41.2 55.8 ZM28.7 44.2 L12.7 66.4 L44.7 66.4 ZM27.3 65.6 h2.9 V70 h-2.9 ZM52.4 16.6 L41.8 39.0 L62.9 39.0 ZM52.4 27.3 L37.4 52.9 L67.4 52.9 ZM52.4 39.0 L33.1 65.7 L71.6 65.7 ZM50.6 64.7 h3.5 V70 h-3.5 ZM67.4 38.0 L61.1 51.5 L73.7 51.5 ZM67.4 44.4 L58.4 59.8 L76.4 59.8 ZM67.4 51.5 L55.9 67.4 L78.9 67.4 ZM66.4 66.8 h2.1 V70 h-2.1 ZM94.8 29.4 L86.8 46.5 L102.9 46.5 ZM94.8 37.5 L83.4 57.0 L106.2 57.0 ZM94.8 46.5 L80.2 66.8 L109.4 66.8 ZM93.5 65.9 h2.6 V70 h-2.6 ZM112.6 3.7 L99.4 31.5 L125.7 31.5 ZM112.6 16.9 L93.9 48.8 L131.2 48.8 ZM112.6 31.5 L88.7 64.7 L136.5 64.7 ZM110.4 63.4 h4.3 V70 h-4.3 ZM134.1 9.2 L122.1 34.7 L146.1 34.7 ZM134.1 21.4 L117.0 50.6 L151.2 50.6 ZM134.1 34.7 L112.2 65.1 L156.0 65.1 ZM132.1 63.9 h3.9 V70 h-3.9 ZM155.7 16.1 L145.0 38.8 L166.4 38.8 ZM155.7 26.9 L140.6 52.8 L170.8 52.8 ZM155.7 38.8 L136.3 65.7 L175.1 65.7 ZM154.0 64.6 h3.5 V70 h-3.5 ZM172.1 16.3 L161.5 38.8 L182.8 38.8 ZM172.1 27.0 L157.0 52.8 L187.2 52.8 ZM172.1 38.8 L152.8 65.7 L191.5 65.7 ZM170.4 64.6 h3.5 V70 h-3.5 ZM200.0 20.2 L190.1 41.1 L209.9 41.1 ZM200.0 30.2 L186.0 54.1 L214.0 54.1 ZM200.0 41.1 L182.1 66.0 L217.9 66.0 ZM198.4 65.0 h3.2 V70 h-3.2 ZM225.9 15.0 L215.0 38.1 L236.8 38.1 ZM225.9 26.0 L210.4 52.4 L241.3 52.4 ZM225.9 38.1 L206.1 65.6 L245.7 65.6 ZM224.1 64.5 h3.6 V70 h-3.6 ZM240.9 12.0 L229.4 36.3 L252.4 36.3 ZM240.9 23.6 L224.6 51.4 L257.2 51.4 ZM240.9 36.3 L220.0 65.4 L261.8 65.4 ZM239.0 64.2 h3.8 V70 h-3.8 ZM264.4 28.0 L256.0 45.6 L272.7 45.6 ZM264.4 36.4 L252.5 56.5 L276.2 56.5 ZM264.4 45.6 L249.2 66.6 L279.5 66.6 ZM263.0 65.8 h2.7 V70 h-2.7 ZM278.9 8.2 L266.6 34.2 L291.1 34.2 ZM278.9 20.6 L261.5 50.2 L296.2 50.2 ZM278.9 34.2 L256.6 65.1 L301.1 65.1 ZM276.8 63.8 h4.0 V70 h-4.0 ZM300.4 13.3 L289.2 37.1 L311.6 37.1 ZM300.4 24.7 L284.5 51.9 L316.3 51.9 ZM300.4 37.1 L280.0 65.5 L320.8 65.5 ZM298.6 64.3 h3.7 V70 h-3.7 ZM328.5 13.5 L317.3 37.2 L339.7 37.2 ZM328.5 24.8 L312.6 51.9 L344.3 51.9 ZM328.5 37.2 L308.1 65.5 L348.8 65.5 ZM326.6 64.4 h3.7 V70 h-3.7 ZM357.2 24.7 L348.2 43.7 L366.2 43.7 ZM357.2 33.7 L344.5 55.5 L369.9 55.5 ZM357.2 43.7 L340.9 66.4 L373.5 66.4 ZM355.7 65.5 h2.9 V70 h-2.9 ZM384.0 22.9 L374.7 42.7 L393.3 42.7 ZM384.0 32.4 L370.8 54.9 L397.2 54.9 ZM384.0 42.7 L367.1 66.2 L401.0 66.2 ZM382.5 65.3 h3.0 V70 h-3.0 ZM0 70 V64 H400 V70 Z'/%3E%3C/svg%3E") 0 100% / 100% 12% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' preserveAspectRatio='none'%3E %3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-60%25' width='140%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='13'/%3E%3C/filter%3E%3C/defs%3E %3Cg filter='url(%23b)' fill='none' stroke-linecap='round'%3E %3Cpath d='M-30 118 C60 40 140 170 220 92 S360 38 430 108' stroke='%233dffa8' stroke-width='40' opacity='.8'/%3E %3Cpath d='M-30 64 C80 128 160 18 262 66 S380 138 430 58' stroke='%232de0ff' stroke-width='24' opacity='.5'/%3E %3Cpath d='M-30 172 C90 112 190 212 292 140 S392 118 430 158' stroke='%23b26bff' stroke-width='30' opacity='.5'/%3E %3C/g%3E%3C/svg%3E") 50% 0 / 100% 58% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' %3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='90.5' cy='112.0' r='1.73' opacity='0.63'/%3E%3Ccircle cx='101.6' cy='117.5' r='1.07' opacity='0.66'/%3E%3Ccircle cx='126.0' cy='158.6' r='0.98' opacity='0.53'/%3E%3Ccircle cx='18.1' cy='161.9' r='1.52' opacity='0.38'/%3E%3Ccircle cx='196.4' cy='193.0' r='1.49' opacity='0.72'/%3E%3Ccircle cx='31.5' cy='3.0' r='1.38' opacity='0.39'/%3E%3Ccircle cx='38.0' cy='48.4' r='0.93' opacity='0.63'/%3E%3Ccircle cx='88.1' cy='168.5' r='1.37' opacity='0.73'/%3E%3Ccircle cx='100.0' cy='132.5' r='1.31' opacity='0.52'/%3E%3Ccircle cx='199.5' cy='199.1' r='1.66' opacity='0.77'/%3E%3Ccircle cx='63.1' cy='45.9' r='1.16' opacity='0.39'/%3E%3Ccircle cx='153.3' cy='80.1' r='1.66' opacity='0.58'/%3E%3Ccircle cx='191.6' cy='169.5' r='0.90' opacity='0.48'/%3E%3Ccircle cx='182.1' cy='94.0' r='1.78' opacity='0.59'/%3E%3Ccircle cx='14.6' cy='125.9' r='1.60' opacity='0.51'/%3E%3Ccircle cx='17.4' cy='66.5' r='1.77' opacity='0.80'/%3E%3Ccircle cx='23.6' cy='49.3' r='0.99' opacity='0.39'/%3E%3Ccircle cx='159.4' cy='35.5' r='1.40' opacity='0.62'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 11em 11em,
    linear-gradient(180deg, #030b1f 0%, #071c3a 45%, #0b2f45 75%, #0d3a40 100%);
  --panel-soft: rgba(3, 14, 30, .6);
  --fun-border: .14em solid rgba(94, 255, 186, .8);
  --fun-glow: 0 0 1.2em rgba(61, 255, 168, .45);
  --fun-title: #ffffff;
  --fun-pill: #4dffb0;
  --fun-pill-ink: #03122a;
  --fun-gallows: #e8fff7;
  --fun-person: #4dffb0;
}

/* Blueprint */
body[data-theme="blueprint"] {
  --cyan: #9fe6ff;
  --yellow: #ffd84d;
  --pink: #ff9fb2;
  --fun-bg:
    radial-gradient(ellipse 72% 56% at 50% 52%, rgba(26, 79, 168, .88), rgba(26, 79, 168, 0) 78%),
    linear-gradient(rgba(255, 255, 255, .17) 1px, transparent 1px) 0 0 / 5em 5em,
    linear-gradient(90deg, rgba(255, 255, 255, .17) 1px, transparent 1px) 0 0 / 5em 5em,
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 1em 1em,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 1em 1em,
    linear-gradient(180deg, #2263c8 0%, #1a4fa8 50%, #143f8c 100%);
  --panel-soft: rgba(8, 30, 80, .6);
  --fun-border: .16em solid rgba(255, 255, 255, .9);
  --fun-glow: 0 0 1em rgba(120, 180, 255, .45);
  --fun-title: #ffffff;
  --fun-pill: #ffffff;
  --fun-pill-ink: #143f8c;
  --fun-gallows: #ffffff;
  --fun-person: #ffd84d;
}
body[data-theme="blueprint"] #game-card::after {
  content: "";
  position: absolute;
  inset: .45em;
  z-index: -1;
  border: .09em solid rgba(255, 255, 255, .55);
  border-radius: calc(clamp(18px, 4vmin, 38px) - .45em);
  pointer-events: none;
}

/* Chalkboard */
body[data-theme="chalk"] {
  --cyan: #a8dcff;
  --yellow: #fff08a;
  --pink: #ffa8c5;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160' %3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 10em 10em,
    radial-gradient(ellipse 42% 16% at 26% 24%, rgba(255, 255, 255, .08), transparent 70%),
    radial-gradient(ellipse 48% 18% at 74% 60%, rgba(255, 255, 255, .065), transparent 70%),
    radial-gradient(ellipse 36% 14% at 38% 84%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(165deg, #33584a 0%, #26473a 45%, #1c372c 100%);
  --panel-soft: rgba(12, 28, 20, .62);
  --fun-border: .3em solid #9a6a3a;
  --fun-glow: 0 0 0 .14em #5a3818;
  --fun-title: #ffffff;
  --fun-wrong: #ffa8c5;
  --fun-pill: #fff08a;
  --fun-pill-ink: #1c372c;
  --fun-gallows: #f3f1e4;
  --fun-person: #fff08a;
}

/* Cherry Blossom */
body[data-theme="blossom"] {
  --cyan: #ffffff;
  --yellow: #fff3a3;
  --pink: #ff4f9a;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150' %3E%3Cg fill='none' stroke='%235a2d3c' stroke-linecap='round'%3E%3Cpath d='M300 0 C250 30 200 34 150 64 S70 96 20 132' stroke-width='9'/%3E%3Cpath d='M210 36 C200 64 186 80 160 98' stroke-width='5'/%3E%3Cpath d='M118 82 C110 100 96 112 80 116' stroke-width='4'/%3E%3Cpath d='M248 18 C252 40 262 52 280 62' stroke-width='4'/%3E%3C/g%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='278.4' cy='3.1' r='5.5'/%3E%3Ccircle cx='284.7' cy='7.6' r='5.5'/%3E%3Ccircle cx='282.3' cy='14.9' r='5.5'/%3E%3Ccircle cx='274.6' cy='14.9' r='5.5'/%3E%3Ccircle cx='272.2' cy='7.6' r='5.5'/%3E%3C/g%3E%3Ccircle cx='278.4162885384246' cy='9.618996205384295' r='3.0' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='259.9' cy='46.8' r='5.5'/%3E%3Ccircle cx='266.2' cy='51.4' r='5.5'/%3E%3Ccircle cx='263.8' cy='58.7' r='5.5'/%3E%3Ccircle cx='256.1' cy='58.7' r='5.5'/%3E%3Ccircle cx='253.7' cy='51.4' r='5.5'/%3E%3C/g%3E%3Ccircle cx='259.9298336248145' cy='53.39909057407754' r='3.0' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='230.5' cy='24.3' r='6.3'/%3E%3Ccircle cx='237.6' cy='29.5' r='6.3'/%3E%3Ccircle cx='234.9' cy='37.9' r='6.3'/%3E%3Ccircle cx='226.1' cy='37.9' r='6.3'/%3E%3Ccircle cx='223.4' cy='29.5' r='6.3'/%3E%3C/g%3E%3Ccircle cx='230.50773025852632' cy='31.80271410897485' r='3.4' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='194.3' cy='42.0' r='5.3'/%3E%3Ccircle cx='200.3' cy='46.3' r='5.3'/%3E%3Ccircle cx='198.0' cy='53.3' r='5.3'/%3E%3Ccircle cx='190.6' cy='53.3' r='5.3'/%3E%3Ccircle cx='188.4' cy='46.3' r='5.3'/%3E%3C/g%3E%3Ccircle cx='194.3315690541419' cy='48.22008004904888' r='2.8' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='168.0' cy='83.5' r='5.1'/%3E%3Ccircle cx='173.8' cy='87.7' r='5.1'/%3E%3Ccircle cx='171.6' cy='94.6' r='5.1'/%3E%3Ccircle cx='164.4' cy='94.6' r='5.1'/%3E%3Ccircle cx='162.2' cy='87.7' r='5.1'/%3E%3C/g%3E%3Ccircle cx='168.03598717571222' cy='89.63709975458919' r='2.8' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='152.6' cy='56.4' r='6.4'/%3E%3Ccircle cx='159.8' cy='61.6' r='6.4'/%3E%3Ccircle cx='157.0' cy='70.1' r='6.4'/%3E%3Ccircle cx='148.1' cy='70.1' r='6.4'/%3E%3Ccircle cx='145.4' cy='61.6' r='6.4'/%3E%3C/g%3E%3Ccircle cx='152.56485378856837' cy='63.973520292670514' r='3.4' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='123.8' cy='71.8' r='5.3'/%3E%3Ccircle cx='129.8' cy='76.2' r='5.3'/%3E%3Ccircle cx='127.5' cy='83.3' r='5.3'/%3E%3Ccircle cx='120.1' cy='83.3' r='5.3'/%3E%3Ccircle cx='117.8' cy='76.2' r='5.3'/%3E%3C/g%3E%3Ccircle cx='123.80268703125779' cy='78.16061370811543' r='2.9' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='96.8' cy='101.7' r='6.5'/%3E%3Ccircle cx='104.1' cy='107.0' r='6.5'/%3E%3Ccircle cx='101.3' cy='115.6' r='6.5'/%3E%3Ccircle cx='92.2' cy='115.6' r='6.5'/%3E%3Ccircle cx='89.4' cy='107.0' r='6.5'/%3E%3C/g%3E%3Ccircle cx='96.76185361447878' cy='109.3913682532723' r='3.5' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='66.3' cy='94.4' r='5.9'/%3E%3Ccircle cx='73.0' cy='99.3' r='5.9'/%3E%3Ccircle cx='70.4' cy='107.3' r='5.9'/%3E%3Ccircle cx='62.1' cy='107.3' r='5.9'/%3E%3Ccircle cx='59.5' cy='99.3' r='5.9'/%3E%3C/g%3E%3Ccircle cx='66.28030450816719' cy='101.52030951580953' r='3.2' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='35.0' cy='118.0' r='5.0'/%3E%3Ccircle cx='40.8' cy='122.2' r='5.0'/%3E%3Ccircle cx='38.6' cy='128.9' r='5.0'/%3E%3Ccircle cx='31.5' cy='128.9' r='5.0'/%3E%3Ccircle cx='29.3' cy='122.2' r='5.0'/%3E%3C/g%3E%3Ccircle cx='35.03020873909884' cy='124.03572265426249' r='2.7' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='203.8' cy='57.6' r='6.6'/%3E%3Ccircle cx='211.4' cy='63.1' r='6.6'/%3E%3Ccircle cx='208.5' cy='71.9' r='6.6'/%3E%3Ccircle cx='199.2' cy='71.9' r='6.6'/%3E%3Ccircle cx='196.3' cy='63.1' r='6.6'/%3E%3C/g%3E%3Ccircle cx='203.84152732551087' cy='65.53607724359235' r='3.6' fill='%23ff5c9d'/%3E%3C/svg%3E") 100% 0 / 13.5em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150' %3E%3Cg transform='translate(300 150) scale(-1 -1)'%3E%3Cg fill='none' stroke='%235a2d3c' stroke-linecap='round'%3E%3Cpath d='M300 0 C250 30 200 34 150 64 S70 96 20 132' stroke-width='9'/%3E%3Cpath d='M210 36 C200 64 186 80 160 98' stroke-width='5'/%3E%3Cpath d='M118 82 C110 100 96 112 80 116' stroke-width='4'/%3E%3Cpath d='M248 18 C252 40 262 52 280 62' stroke-width='4'/%3E%3C/g%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='280.7' cy='5.9' r='6.3'/%3E%3Ccircle cx='287.9' cy='11.1' r='6.3'/%3E%3Ccircle cx='285.2' cy='19.6' r='6.3'/%3E%3Ccircle cx='276.3' cy='19.6' r='6.3'/%3E%3Ccircle cx='273.6' cy='11.1' r='6.3'/%3E%3C/g%3E%3Ccircle cx='280.7374101693382' cy='13.450721935564376' r='3.4' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='264.7' cy='49.6' r='6.6'/%3E%3Ccircle cx='272.1' cy='55.0' r='6.6'/%3E%3Ccircle cx='269.3' cy='63.8' r='6.6'/%3E%3Ccircle cx='260.0' cy='63.8' r='6.6'/%3E%3Ccircle cx='257.2' cy='55.0' r='6.6'/%3E%3C/g%3E%3Ccircle cx='264.6547017026623' cy='57.439391448439586' r='3.6' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='225.2' cy='21.9' r='6.6'/%3E%3Ccircle cx='232.7' cy='27.3' r='6.6'/%3E%3Ccircle cx='229.8' cy='36.2' r='6.6'/%3E%3Ccircle cx='220.5' cy='36.2' r='6.6'/%3E%3Ccircle cx='217.6' cy='27.3' r='6.6'/%3E%3C/g%3E%3Ccircle cx='225.17403136970168' cy='29.79373592626863' r='3.6' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='196.9' cy='44.5' r='4.9'/%3E%3Ccircle cx='202.5' cy='48.6' r='4.9'/%3E%3Ccircle cx='200.3' cy='55.1' r='4.9'/%3E%3Ccircle cx='193.4' cy='55.1' r='4.9'/%3E%3Ccircle cx='191.3' cy='48.6' r='4.9'/%3E%3C/g%3E%3Ccircle cx='196.89384731882154' cy='50.405402950503735' r='2.6' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='169.8' cy='83.6' r='5.8'/%3E%3Ccircle cx='176.4' cy='88.3' r='5.8'/%3E%3Ccircle cx='173.9' cy='96.1' r='5.8'/%3E%3Ccircle cx='165.7' cy='96.1' r='5.8'/%3E%3Ccircle cx='163.2' cy='88.3' r='5.8'/%3E%3C/g%3E%3Ccircle cx='169.814414286693' cy='90.47943699571898' r='3.1' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='150.4' cy='53.0' r='5.1'/%3E%3Ccircle cx='156.3' cy='57.2' r='5.1'/%3E%3Ccircle cx='154.0' cy='64.0' r='5.1'/%3E%3Ccircle cx='146.8' cy='64.0' r='5.1'/%3E%3Ccircle cx='144.6' cy='57.2' r='5.1'/%3E%3C/g%3E%3Ccircle cx='150.4436471275686' cy='59.07868513753341' r='2.8' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='120.7' cy='75.0' r='6.3'/%3E%3Ccircle cx='127.8' cy='80.2' r='6.3'/%3E%3Ccircle cx='125.1' cy='88.5' r='6.3'/%3E%3Ccircle cx='116.3' cy='88.5' r='6.3'/%3E%3Ccircle cx='113.6' cy='80.2' r='6.3'/%3E%3C/g%3E%3Ccircle cx='120.67689419606666' cy='82.4980722308513' r='3.4' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='94.0' cy='103.9' r='5.0'/%3E%3Ccircle cx='99.6' cy='108.0' r='5.0'/%3E%3Ccircle cx='97.4' cy='114.6' r='5.0'/%3E%3Ccircle cx='90.5' cy='114.6' r='5.0'/%3E%3Ccircle cx='88.3' cy='108.0' r='5.0'/%3E%3C/g%3E%3Ccircle cx='93.95762527414823' cy='109.78288194858723' r='2.7' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='64.7' cy='96.2' r='4.7'/%3E%3Ccircle cx='70.0' cy='100.0' r='4.7'/%3E%3Ccircle cx='68.0' cy='106.3' r='4.7'/%3E%3Ccircle cx='61.4' cy='106.3' r='4.7'/%3E%3Ccircle cx='59.4' cy='100.0' r='4.7'/%3E%3C/g%3E%3Ccircle cx='64.7047151227967' cy='101.76019539530162' r='2.5' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='36.2' cy='116.1' r='5.1'/%3E%3Ccircle cx='42.0' cy='120.4' r='5.1'/%3E%3Ccircle cx='39.8' cy='127.2' r='5.1'/%3E%3Ccircle cx='32.6' cy='127.2' r='5.1'/%3E%3Ccircle cx='30.4' cy='120.4' r='5.1'/%3E%3C/g%3E%3Ccircle cx='36.22842846834569' cy='122.2567382949707' r='2.8' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='206.9' cy='63.9' r='5.3'/%3E%3Ccircle cx='212.9' cy='68.3' r='5.3'/%3E%3Ccircle cx='210.6' cy='75.3' r='5.3'/%3E%3Ccircle cx='203.2' cy='75.3' r='5.3'/%3E%3Ccircle cx='200.9' cy='68.3' r='5.3'/%3E%3C/g%3E%3Ccircle cx='206.89452665295556' cy='70.23444659262081' r='2.8' fill='%23ff5c9d'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 12.5em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320' %3E%3Cg fill='%23ffc4dd' opacity='.85'%3E%3Cellipse cx='30' cy='40' rx='6' ry='3.4' transform='rotate(20 30 40)'/%3E%3Cellipse cx='140' cy='20' rx='6' ry='3.4' transform='rotate(-30 140 20)'/%3E%3Cellipse cx='250' cy='70' rx='6' ry='3.4' transform='rotate(45 250 70)'/%3E%3Cellipse cx='80' cy='150' rx='6' ry='3.4' transform='rotate(70 80 150)'/%3E%3Cellipse cx='200' cy='170' rx='6' ry='3.4' transform='rotate(-10 200 170)'/%3E%3Cellipse cx='300' cy='200' rx='6' ry='3.4' transform='rotate(30 300 200)'/%3E%3Cellipse cx='40' cy='270' rx='6' ry='3.4' transform='rotate(-50 40 270)'/%3E%3Cellipse cx='160' cy='290' rx='6' ry='3.4' transform='rotate(15 160 290)'/%3E%3Cellipse cx='270' cy='300' rx='6' ry='3.4' transform='rotate(60 270 300)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 15em 15em,
    linear-gradient(180deg, #ffd6e7 0%, #f9b4d0 45%, #e79ccf 75%, #c58fd6 100%);
  --panel-soft: rgba(80, 20, 55, .55);
  --fun-border: .2em solid #ffffff;
  --fun-glow: 0 0 0 .14em #e36ca5, 0 0 1em rgba(255, 255, 255, .5);
  --fun-title: #ffffff;
  --fun-pill: #d6246e;
  --fun-pill-ink: #ffffff;
  --fun-gallows: #5a2d3c;
  --fun-person: #d6246e;
}
@media (orientation: landscape) {
  body[data-theme="blossom"] {
    --fun-bg:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150' %3E%3Cg fill='none' stroke='%235a2d3c' stroke-linecap='round'%3E%3Cpath d='M300 0 C250 30 200 34 150 64 S70 96 20 132' stroke-width='9'/%3E%3Cpath d='M210 36 C200 64 186 80 160 98' stroke-width='5'/%3E%3Cpath d='M118 82 C110 100 96 112 80 116' stroke-width='4'/%3E%3Cpath d='M248 18 C252 40 262 52 280 62' stroke-width='4'/%3E%3C/g%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='278.4' cy='3.1' r='5.5'/%3E%3Ccircle cx='284.7' cy='7.6' r='5.5'/%3E%3Ccircle cx='282.3' cy='14.9' r='5.5'/%3E%3Ccircle cx='274.6' cy='14.9' r='5.5'/%3E%3Ccircle cx='272.2' cy='7.6' r='5.5'/%3E%3C/g%3E%3Ccircle cx='278.4162885384246' cy='9.618996205384295' r='3.0' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='259.9' cy='46.8' r='5.5'/%3E%3Ccircle cx='266.2' cy='51.4' r='5.5'/%3E%3Ccircle cx='263.8' cy='58.7' r='5.5'/%3E%3Ccircle cx='256.1' cy='58.7' r='5.5'/%3E%3Ccircle cx='253.7' cy='51.4' r='5.5'/%3E%3C/g%3E%3Ccircle cx='259.9298336248145' cy='53.39909057407754' r='3.0' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='230.5' cy='24.3' r='6.3'/%3E%3Ccircle cx='237.6' cy='29.5' r='6.3'/%3E%3Ccircle cx='234.9' cy='37.9' r='6.3'/%3E%3Ccircle cx='226.1' cy='37.9' r='6.3'/%3E%3Ccircle cx='223.4' cy='29.5' r='6.3'/%3E%3C/g%3E%3Ccircle cx='230.50773025852632' cy='31.80271410897485' r='3.4' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='194.3' cy='42.0' r='5.3'/%3E%3Ccircle cx='200.3' cy='46.3' r='5.3'/%3E%3Ccircle cx='198.0' cy='53.3' r='5.3'/%3E%3Ccircle cx='190.6' cy='53.3' r='5.3'/%3E%3Ccircle cx='188.4' cy='46.3' r='5.3'/%3E%3C/g%3E%3Ccircle cx='194.3315690541419' cy='48.22008004904888' r='2.8' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='168.0' cy='83.5' r='5.1'/%3E%3Ccircle cx='173.8' cy='87.7' r='5.1'/%3E%3Ccircle cx='171.6' cy='94.6' r='5.1'/%3E%3Ccircle cx='164.4' cy='94.6' r='5.1'/%3E%3Ccircle cx='162.2' cy='87.7' r='5.1'/%3E%3C/g%3E%3Ccircle cx='168.03598717571222' cy='89.63709975458919' r='2.8' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='152.6' cy='56.4' r='6.4'/%3E%3Ccircle cx='159.8' cy='61.6' r='6.4'/%3E%3Ccircle cx='157.0' cy='70.1' r='6.4'/%3E%3Ccircle cx='148.1' cy='70.1' r='6.4'/%3E%3Ccircle cx='145.4' cy='61.6' r='6.4'/%3E%3C/g%3E%3Ccircle cx='152.56485378856837' cy='63.973520292670514' r='3.4' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='123.8' cy='71.8' r='5.3'/%3E%3Ccircle cx='129.8' cy='76.2' r='5.3'/%3E%3Ccircle cx='127.5' cy='83.3' r='5.3'/%3E%3Ccircle cx='120.1' cy='83.3' r='5.3'/%3E%3Ccircle cx='117.8' cy='76.2' r='5.3'/%3E%3C/g%3E%3Ccircle cx='123.80268703125779' cy='78.16061370811543' r='2.9' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='96.8' cy='101.7' r='6.5'/%3E%3Ccircle cx='104.1' cy='107.0' r='6.5'/%3E%3Ccircle cx='101.3' cy='115.6' r='6.5'/%3E%3Ccircle cx='92.2' cy='115.6' r='6.5'/%3E%3Ccircle cx='89.4' cy='107.0' r='6.5'/%3E%3C/g%3E%3Ccircle cx='96.76185361447878' cy='109.3913682532723' r='3.5' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='66.3' cy='94.4' r='5.9'/%3E%3Ccircle cx='73.0' cy='99.3' r='5.9'/%3E%3Ccircle cx='70.4' cy='107.3' r='5.9'/%3E%3Ccircle cx='62.1' cy='107.3' r='5.9'/%3E%3Ccircle cx='59.5' cy='99.3' r='5.9'/%3E%3C/g%3E%3Ccircle cx='66.28030450816719' cy='101.52030951580953' r='3.2' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='35.0' cy='118.0' r='5.0'/%3E%3Ccircle cx='40.8' cy='122.2' r='5.0'/%3E%3Ccircle cx='38.6' cy='128.9' r='5.0'/%3E%3Ccircle cx='31.5' cy='128.9' r='5.0'/%3E%3Ccircle cx='29.3' cy='122.2' r='5.0'/%3E%3C/g%3E%3Ccircle cx='35.03020873909884' cy='124.03572265426249' r='2.7' fill='%23ff5c9d'/%3E%3Cg fill='%23ffc0db' stroke='%23f28fb8' stroke-width='1.2'%3E%3Ccircle cx='203.8' cy='57.6' r='6.6'/%3E%3Ccircle cx='211.4' cy='63.1' r='6.6'/%3E%3Ccircle cx='208.5' cy='71.9' r='6.6'/%3E%3Ccircle cx='199.2' cy='71.9' r='6.6'/%3E%3Ccircle cx='196.3' cy='63.1' r='6.6'/%3E%3C/g%3E%3Ccircle cx='203.84152732551087' cy='65.53607724359235' r='3.6' fill='%23ff5c9d'/%3E%3C/svg%3E") 100% 0 / 15em auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320' %3E%3Cg fill='%23ffc4dd' opacity='.85'%3E%3Cellipse cx='30' cy='40' rx='6' ry='3.4' transform='rotate(20 30 40)'/%3E%3Cellipse cx='140' cy='20' rx='6' ry='3.4' transform='rotate(-30 140 20)'/%3E%3Cellipse cx='250' cy='70' rx='6' ry='3.4' transform='rotate(45 250 70)'/%3E%3Cellipse cx='80' cy='150' rx='6' ry='3.4' transform='rotate(70 80 150)'/%3E%3Cellipse cx='200' cy='170' rx='6' ry='3.4' transform='rotate(-10 200 170)'/%3E%3Cellipse cx='300' cy='200' rx='6' ry='3.4' transform='rotate(30 300 200)'/%3E%3Cellipse cx='40' cy='270' rx='6' ry='3.4' transform='rotate(-50 40 270)'/%3E%3Cellipse cx='160' cy='290' rx='6' ry='3.4' transform='rotate(15 160 290)'/%3E%3Cellipse cx='270' cy='300' rx='6' ry='3.4' transform='rotate(60 270 300)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 15em 15em,
      linear-gradient(180deg, #ffd6e7 0%, #f9b4d0 45%, #e79ccf 75%, #c58fd6 100%);
  }
}

/* Deep Sea */
body[data-theme="ocean"] {
  --cyan: #6ff0ff;
  --yellow: #ffd166;
  --pink: #ff7d8f;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E %3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.26'/%3E %3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E %3Cg fill='url(%23g)'%3E%3Cpolygon points='8,0 20,0 36,100 16,100'/%3E%3Cpolygon points='38,0 45,0 58,100 46,100'/%3E %3Cpolygon points='63,0 75,0 94,100 76,100'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / 100% 72% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 420' %3E%3Cg fill='%23ffffff' fill-opacity='.08' stroke='%23ffffff' stroke-opacity='.5' stroke-width='2'%3E%3Ccircle cx='22' cy='396' r='9'/%3E%3Ccircle cx='38' cy='344' r='6'/%3E%3Ccircle cx='18' cy='300' r='4'/%3E%3Ccircle cx='34' cy='252' r='7.5'/%3E%3Ccircle cx='22' cy='200' r='5'/%3E%3Ccircle cx='40' cy='160' r='3.5'/%3E%3Ccircle cx='24' cy='118' r='6'/%3E%3Ccircle cx='36' cy='74' r='4'/%3E%3Ccircle cx='26' cy='34' r='3'/%3E%3C/g%3E%3C/svg%3E") 3% 70% / 2.4em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 420' %3E%3Cg fill='%23ffffff' fill-opacity='.08' stroke='%23ffffff' stroke-opacity='.5' stroke-width='2'%3E%3Ccircle cx='22' cy='396' r='9'/%3E%3Ccircle cx='38' cy='344' r='6'/%3E%3Ccircle cx='18' cy='300' r='4'/%3E%3Ccircle cx='34' cy='252' r='7.5'/%3E%3Ccircle cx='22' cy='200' r='5'/%3E%3Ccircle cx='40' cy='160' r='3.5'/%3E%3Ccircle cx='24' cy='118' r='6'/%3E%3Ccircle cx='36' cy='74' r='4'/%3E%3Ccircle cx='26' cy='34' r='3'/%3E%3C/g%3E%3C/svg%3E") 97% 40% / 2em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 240' preserveAspectRatio='xMinYMax meet'%3E %3Cg fill='%230b6b52'%3E%3Cpath d='M18 240 C4 200 30 176 16 136 C4 104 26 80 18 40 L26 38 C36 80 14 104 26 136 C40 176 14 200 30 240 Z'/%3E %3Cpath d='M52 240 C40 210 64 190 52 160 C42 136 60 116 56 90 L64 90 C70 118 50 138 60 160 C74 190 50 210 64 240 Z'/%3E%3C/g%3E %3Cg fill='%230a4f40'%3E%3Cpath d='M88 240 C78 214 98 196 90 172 C84 152 98 136 94 112 L102 112 C108 138 92 154 98 172 C108 196 88 214 100 240 Z'/%3E%3C/g%3E%3C/svg%3E") 0 100% / auto 26% no-repeat,
    radial-gradient(ellipse 80% 30% at 50% -6%, rgba(180, 240, 255, .5), transparent 70%),
    linear-gradient(180deg, #1190cc 0%, #0b6399 30%, #063f6c 65%, #03203d 100%);
  --panel-soft: rgba(2, 22, 45, .6);
  --fun-border: .16em solid #6ff0ff;
  --fun-glow: 0 0 1.1em rgba(111, 240, 255, .55);
  --fun-title: #ffffff;
  --fun-pill: #ff9466;
  --fun-pill-ink: #03203d;
  --fun-gallows: #ff9466;
  --fun-person: #ffffff;
}

/* Disco Fever */
body[data-theme="disco"] {
  --cyan: #4df3ff;
  --yellow: #ffe14d;
  --pink: #ff4fe0;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 116' %3E %3Cdefs%3E%3CradialGradient id='s' cx='.38' cy='.34' r='.75'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E %3Cstop offset='.55' stop-color='%23b9b9dc'/%3E%3Cstop offset='1' stop-color='%2355557a'/%3E%3C/radialGradient%3E %3CclipPath id='c'%3E%3Ccircle cx='50' cy='70' r='42'/%3E%3C/clipPath%3E%3C/defs%3E %3Cpath d='M50 0 V28' stroke='%23d8d8f0' stroke-width='2'/%3E %3Ccircle cx='50' cy='70' r='42' fill='url(%23s)'/%3E %3Cg clip-path='url(%23c)' fill='none' stroke='%233e3e60' stroke-width='1.3' opacity='.55'%3E %3Cpath d='M0 42 H100 M0 52 H100 M0 62 H100 M0 72 H100 M0 82 H100 M0 92 H100 M0 102 H100'/%3E %3Cellipse cx='50' cy='70' rx='10' ry='42'/%3E%3Cellipse cx='50' cy='70' rx='22' ry='42'/%3E %3Cellipse cx='50' cy='70' rx='33' ry='42'/%3E%3Cpath d='M50 28 V112'/%3E%3C/g%3E %3Cg fill='%23ffffff'%3E%3Cpath d='M30 50 l2 -7 l2 7 l7 2 l-7 2 l-2 7 l-2 -7 l-7 -2 Z'/%3E %3Cpath d='M64 84 l1.4 -5 l1.4 5 l5 1.4 l-5 1.4 l-1.4 5 l-1.4 -5 l-5 -1.4 Z' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") var(--fun-top-x) -1em / 4.2em auto no-repeat,
    conic-gradient(from 150deg at 50% -4%, transparent 0deg, rgba(255, 79, 224, .2) 5deg, transparent 10deg 18deg, rgba(77, 243, 255, .18) 23deg, transparent 28deg 36deg, rgba(255, 225, 77, .18) 41deg, transparent 46deg 54deg, rgba(255, 79, 224, .18) 59deg, transparent 64deg),
    radial-gradient(circle at 16% 34%, rgba(77, 243, 255, .22) 0 4%, transparent 9%),
    radial-gradient(circle at 84% 46%, rgba(255, 225, 77, .2) 0 4%, transparent 9%),
    radial-gradient(circle at 30% 78%, rgba(255, 79, 224, .22) 0 5%, transparent 10%),
    radial-gradient(circle at 76% 84%, rgba(77, 243, 255, .18) 0 5%, transparent 10%),
    linear-gradient(180deg, #2a0845 0%, #4e0c63 45%, #2b0a4f 100%);
  --panel-soft: rgba(25, 4, 40, .6);
  --fun-border: .16em solid #ffd1ff;
  --fun-glow: 0 0 .8em #ff3df0, 0 0 1.6em rgba(61, 214, 255, .6);
  --fun-title: #ffffff;
  --fun-pill: #ff4fe0;
  --fun-pill-ink: #ffffff;
  --fun-gallows: #e8e8ff;
  --fun-person: #ffd23d;
  --fun-top-x: 57%;
}
@media (orientation: landscape) {
  body[data-theme="disco"] { --fun-top-x: 31%; }
}

/* Galaxy */
body[data-theme="galaxy"] {
  --cyan: #7ef0ff;
  --yellow: #ffe27a;
  --pink: #ff6be6;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' %3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='64.8' cy='30.2' r='1.95' opacity='0.39'/%3E%3Ccircle cx='107.2' cy='73.1' r='1.18' opacity='0.65'/%3E%3Ccircle cx='7.5' cy='86.7' r='1.19' opacity='0.40'/%3E%3Ccircle cx='84.9' cy='165.4' r='1.26' opacity='0.48'/%3E%3Ccircle cx='125.5' cy='189.5' r='1.85' opacity='0.59'/%3E%3Ccircle cx='195.3' cy='9.3' r='2.22' opacity='0.52'/%3E%3Ccircle cx='28.9' cy='23.6' r='1.50' opacity='0.84'/%3E%3Ccircle cx='36.1' cy='116.3' r='1.93' opacity='0.57'/%3E%3Ccircle cx='109.5' cy='12.6' r='1.18' opacity='0.47'/%3E%3Ccircle cx='136.1' cy='85.5' r='1.51' opacity='0.70'/%3E%3Ccircle cx='90.6' cy='60.0' r='2.13' opacity='0.77'/%3E%3Ccircle cx='48.8' cy='114.9' r='1.78' opacity='0.88'/%3E%3Ccircle cx='145.9' cy='57.6' r='2.37' opacity='0.42'/%3E%3Ccircle cx='83.6' cy='151.4' r='1.30' opacity='0.64'/%3E%3Ccircle cx='7.8' cy='133.6' r='2.09' opacity='0.69'/%3E%3Ccircle cx='175.1' cy='62.7' r='2.00' opacity='0.71'/%3E%3Ccircle cx='116.0' cy='91.2' r='2.19' opacity='0.92'/%3E%3Ccircle cx='94.8' cy='132.8' r='1.18' opacity='0.77'/%3E%3Ccircle cx='129.4' cy='198.6' r='2.17' opacity='0.52'/%3E%3Ccircle cx='77.2' cy='133.7' r='1.13' opacity='0.63'/%3E%3Ccircle cx='33.6' cy='23.4' r='1.18' opacity='0.81'/%3E%3Ccircle cx='25.9' cy='49.5' r='1.61' opacity='0.87'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 12em 12em,
    radial-gradient(ellipse 60% 40% at 18% 28%, rgba(255, 79, 216, .36), transparent 70%),
    radial-gradient(ellipse 58% 45% at 82% 66%, rgba(91, 92, 255, .42), transparent 70%),
    radial-gradient(ellipse 45% 30% at 55% 46%, rgba(43, 209, 255, .18), transparent 70%),
    linear-gradient(160deg, #150b3c 0%, #0b0623 55%, #05030f 100%);
  --panel-soft: rgba(10, 6, 30, .6);
  --fun-border: .14em solid rgba(205, 185, 255, .85);
  --fun-glow: 0 0 1.2em rgba(123, 92, 255, .6);
  --fun-title: #ffffff;
  --fun-pill: #7b5cff;
  --fun-pill-ink: #ffffff;
  --fun-gallows: #d3c4ff;
  --fun-person: #ff6be6;
}
/* The right-hand picture wears a planet's ring. */
body[data-theme="galaxy"] #side-right { position: relative; }
body[data-theme="galaxy"] #side-right::before {
  content: "";
  position: absolute;
  inset: 24% -30%;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 70' preserveAspectRatio='none'%3E %3Cellipse cx='100' cy='35' rx='94' ry='22' fill='none' stroke='%23ffd9b8' stroke-width='9' stroke-opacity='.85' transform='rotate(-12 100 35)'/%3E %3Cellipse cx='100' cy='35' rx='80' ry='16' fill='none' stroke='%23ff8f6b' stroke-width='4' stroke-opacity='.7' transform='rotate(-12 100 35)'/%3E%3C/svg%3E") 50% 50% / 100% 100% no-repeat;
  filter: brightness(var(--hangman-brightness, 1));
  pointer-events: none;
}

/* Gold Luxe */
body[data-theme="gold"] {
  --cyan: #f3d98b;
  --yellow: #ffd76a;
  --pink: #ff8a8a;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' %3E%3Cg transform='translate(0 0) scale(1 1)'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='2.4' opacity='.85'%3E%3Cpath d='M33.3 7.1 L97.8 20.8'/%3E%3Cpath d='M30.3 15.4 L89.1 45.4'/%3E%3Cpath d='M24.0 24.0 L70.7 70.7'/%3E%3Cpath d='M15.4 30.3 L45.4 89.1'/%3E%3Cpath d='M7.1 33.3 L20.8 97.8'/%3E%3Cpath d='M34 0 A34 34 0 0 1 0 34'/%3E%3Cpath d='M58 0 A58 58 0 0 1 0 58'/%3E%3Cpath d='M82 0 A82 82 0 0 1 0 82'/%3E%3Cpath d='M104 0 A104 104 0 0 1 0 104'/%3E%3C/g%3E%3Cpath d='M0 0 H22 A22 22 0 0 1 0 22 Z' fill='%23d4af37' opacity='.85'/%3E%3C/g%3E%3C/svg%3E") .5em .5em / 6.5em 6.5em no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' %3E%3Cg transform='translate(120 0) scale(-1 1)'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='2.4' opacity='.85'%3E%3Cpath d='M33.3 7.1 L97.8 20.8'/%3E%3Cpath d='M30.3 15.4 L89.1 45.4'/%3E%3Cpath d='M24.0 24.0 L70.7 70.7'/%3E%3Cpath d='M15.4 30.3 L45.4 89.1'/%3E%3Cpath d='M7.1 33.3 L20.8 97.8'/%3E%3Cpath d='M34 0 A34 34 0 0 1 0 34'/%3E%3Cpath d='M58 0 A58 58 0 0 1 0 58'/%3E%3Cpath d='M82 0 A82 82 0 0 1 0 82'/%3E%3Cpath d='M104 0 A104 104 0 0 1 0 104'/%3E%3C/g%3E%3Cpath d='M0 0 H22 A22 22 0 0 1 0 22 Z' fill='%23d4af37' opacity='.85'/%3E%3C/g%3E%3C/svg%3E") calc(100% - .5em) .5em / 6.5em 6.5em no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' %3E%3Cg transform='translate(0 120) scale(1 -1)'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='2.4' opacity='.85'%3E%3Cpath d='M33.3 7.1 L97.8 20.8'/%3E%3Cpath d='M30.3 15.4 L89.1 45.4'/%3E%3Cpath d='M24.0 24.0 L70.7 70.7'/%3E%3Cpath d='M15.4 30.3 L45.4 89.1'/%3E%3Cpath d='M7.1 33.3 L20.8 97.8'/%3E%3Cpath d='M34 0 A34 34 0 0 1 0 34'/%3E%3Cpath d='M58 0 A58 58 0 0 1 0 58'/%3E%3Cpath d='M82 0 A82 82 0 0 1 0 82'/%3E%3Cpath d='M104 0 A104 104 0 0 1 0 104'/%3E%3C/g%3E%3Cpath d='M0 0 H22 A22 22 0 0 1 0 22 Z' fill='%23d4af37' opacity='.85'/%3E%3C/g%3E%3C/svg%3E") .5em calc(100% - .5em) / 6.5em 6.5em no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' %3E%3Cg transform='translate(120 120) scale(-1 -1)'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='2.4' opacity='.85'%3E%3Cpath d='M33.3 7.1 L97.8 20.8'/%3E%3Cpath d='M30.3 15.4 L89.1 45.4'/%3E%3Cpath d='M24.0 24.0 L70.7 70.7'/%3E%3Cpath d='M15.4 30.3 L45.4 89.1'/%3E%3Cpath d='M7.1 33.3 L20.8 97.8'/%3E%3Cpath d='M34 0 A34 34 0 0 1 0 34'/%3E%3Cpath d='M58 0 A58 58 0 0 1 0 58'/%3E%3Cpath d='M82 0 A82 82 0 0 1 0 82'/%3E%3Cpath d='M104 0 A104 104 0 0 1 0 104'/%3E%3C/g%3E%3Cpath d='M0 0 H22 A22 22 0 0 1 0 22 Z' fill='%23d4af37' opacity='.85'/%3E%3C/g%3E%3C/svg%3E") calc(100% - .5em) calc(100% - .5em) / 6.5em 6.5em no-repeat,
    linear-gradient(115deg, transparent 30%, rgba(255, 215, 120, .08) 45%, transparent 60%),
    linear-gradient(160deg, #1d1912 0%, #0e0c09 55%, #050504 100%);
  --panel-soft: rgba(20, 16, 8, .72);
  --fun-border: .16em solid #d4af37;
  --fun-glow: 0 0 1em rgba(212, 175, 55, .45);
  --fun-title: #f3d98b;
  --fun-wrong: #ffd76a;
  --fun-pill: #d4af37;
  --fun-pill-ink: #0e0c09;
  --fun-gallows: #e3c26a;
  --fun-person: #ffffff;
}
body[data-theme="gold"] #game-card::after {
  content: "";
  position: absolute;
  inset: .42em;
  z-index: -1;
  border: .07em solid rgba(212, 175, 55, .75);
  border-radius: calc(clamp(18px, 4vmin, 38px) - .42em);
  pointer-events: none;
}

/* Hacker Terminal */
body[data-theme="terminal"] {
  --ink: #dcffe8;
  --muted: #a8ffc8;
  --cyan: #2bff88;
  --yellow: #e6ff5c;
  --pink: #ff5c7a;
  --fun-bg:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .6) 100%),
    radial-gradient(ellipse 75% 60% at 50% 45%, rgba(43, 255, 136, .14), transparent 75%),
    linear-gradient(180deg, #03160b 0%, #021007 60%, #010804 100%);
  --panel-soft: rgba(0, 20, 8, .72);
  --fun-border: .14em solid #2bff88;
  --fun-glow: 0 0 1em rgba(43, 255, 136, .5);
  --fun-title: #2bff88;
  --fun-pill: #2bff88;
  --fun-pill-ink: #021a0a;
  --fun-gallows: #2bff88;
  --fun-person: #dcffe8;
  --fun-gallows-filter: drop-shadow(0 0 .22em rgba(43, 255, 136, .8)) drop-shadow(0 .3em .4em rgba(0, 0, 0, .5));
}

/* Holiday Lights */
body[data-theme="festive"] {
  --cyan: #8dffc0;
  --yellow: #ffd75e;
  --pink: #ffb3c1;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 46' %3E%3Cdefs%3E%3Cfilter id='g' x='-1' y='-1' width='3' height='3'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M0 6 Q50 30 100 6 Q150 30 200 6' fill='none' stroke='%2316351f' stroke-width='2.4'/%3E%3Cg transform='translate(17.0 12.8)'%3E%3Cellipse cx='0' cy='13' rx='9' ry='12' fill='%23ff3b3b' opacity='.35' filter='url(%23g)'/%3E%3Crect x='-2.6' y='0' width='5.2' height='5' rx='1' fill='%231d2a22'/%3E%3Cellipse cx='0' cy='12' rx='4.6' ry='7.2' fill='%23ff3b3b'/%3E%3Cellipse cx='-1.5' cy='9.5' rx='1.3' ry='2.4' fill='%23ffffff' opacity='.7'/%3E%3C/g%3E%3Cg transform='translate(50.0 18.0)'%3E%3Cellipse cx='0' cy='13' rx='9' ry='12' fill='%233bff7a' opacity='.35' filter='url(%23g)'/%3E%3Crect x='-2.6' y='0' width='5.2' height='5' rx='1' fill='%231d2a22'/%3E%3Cellipse cx='0' cy='12' rx='4.6' ry='7.2' fill='%233bff7a'/%3E%3Cellipse cx='-1.5' cy='9.5' rx='1.3' ry='2.4' fill='%23ffffff' opacity='.7'/%3E%3C/g%3E%3Cg transform='translate(83.0 12.8)'%3E%3Cellipse cx='0' cy='13' rx='9' ry='12' fill='%23ffd23b' opacity='.35' filter='url(%23g)'/%3E%3Crect x='-2.6' y='0' width='5.2' height='5' rx='1' fill='%231d2a22'/%3E%3Cellipse cx='0' cy='12' rx='4.6' ry='7.2' fill='%23ffd23b'/%3E%3Cellipse cx='-1.5' cy='9.5' rx='1.3' ry='2.4' fill='%23ffffff' opacity='.7'/%3E%3C/g%3E%3Cg transform='translate(117.0 12.8)'%3E%3Cellipse cx='0' cy='13' rx='9' ry='12' fill='%233bb8ff' opacity='.35' filter='url(%23g)'/%3E%3Crect x='-2.6' y='0' width='5.2' height='5' rx='1' fill='%231d2a22'/%3E%3Cellipse cx='0' cy='12' rx='4.6' ry='7.2' fill='%233bb8ff'/%3E%3Cellipse cx='-1.5' cy='9.5' rx='1.3' ry='2.4' fill='%23ffffff' opacity='.7'/%3E%3C/g%3E%3Cg transform='translate(150.0 18.0)'%3E%3Cellipse cx='0' cy='13' rx='9' ry='12' fill='%23ff5ad1' opacity='.35' filter='url(%23g)'/%3E%3Crect x='-2.6' y='0' width='5.2' height='5' rx='1' fill='%231d2a22'/%3E%3Cellipse cx='0' cy='12' rx='4.6' ry='7.2' fill='%23ff5ad1'/%3E%3Cellipse cx='-1.5' cy='9.5' rx='1.3' ry='2.4' fill='%23ffffff' opacity='.7'/%3E%3C/g%3E%3Cg transform='translate(183.0 12.8)'%3E%3Cellipse cx='0' cy='13' rx='9' ry='12' fill='%23ff9a2e' opacity='.35' filter='url(%23g)'/%3E%3Crect x='-2.6' y='0' width='5.2' height='5' rx='1' fill='%231d2a22'/%3E%3Cellipse cx='0' cy='12' rx='4.6' ry='7.2' fill='%23ff9a2e'/%3E%3Cellipse cx='-1.5' cy='9.5' rx='1.3' ry='2.4' fill='%23ffffff' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") 0 -.2em / 11em auto repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' %3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23ffd77a' filter='url(%23b)'%3E%3Ccircle cx='40' cy='60' r='16' opacity='0.22'/%3E%3Ccircle cx='210' cy='40' r='10' opacity='0.2'/%3E%3Ccircle cx='120' cy='170' r='20' opacity='0.16'/%3E%3Ccircle cx='260' cy='220' r='14' opacity='0.2'/%3E%3Ccircle cx='60' cy='260' r='9' opacity='0.22'/%3E%3Ccircle cx='180' cy='280' r='12' opacity='0.14'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 18em 18em,
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(255, 120, 120, .18), transparent 75%),
    linear-gradient(170deg, #b3122a 0%, #8c0f22 50%, #5e0a17 100%);
  --panel-soft: rgba(40, 4, 10, .6);
  --fun-border: .2em solid #f5c542;
  --fun-glow: 0 0 0 .14em #0e6b3a, 0 0 1.2em rgba(245, 197, 66, .45);
  --fun-title: #ffffff;
  --fun-wrong: #ffd75e;
  --fun-pill: #1f9d55;
  --fun-pill-ink: #ffffff;
  --fun-gallows: #f5c542;
  --fun-person: #ffffff;
}

/* Hologram */
body[data-theme="hologram"] {
  --cyan: #e6fdff;
  --yellow: #fff59d;
  --pink: #ff3fae;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' %3E%3Cg fill='%23ffffff'%3E%3Cpath transform='translate(24 30) scale(1)' opacity='0.9' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10 Z'/%3E%3Cpath transform='translate(270 60) scale(0.7)' opacity='0.75' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10 Z'/%3E%3Cpath transform='translate(40 250) scale(0.6)' opacity='0.7' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10 Z'/%3E%3Cpath transform='translate(280 270) scale(0.9)' opacity='0.85' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10 Z'/%3E%3Cpath transform='translate(150 14) scale(0.5)' opacity='0.6' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10 Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 17em 17em,
    linear-gradient(rgba(40, 10, 80, .16), rgba(40, 10, 80, .16)),
    linear-gradient(160deg, rgba(255, 255, 255, .34) 0%, transparent 28%, transparent 55%, rgba(255, 255, 255, .22) 70%, transparent 86%),
    linear-gradient(125deg, #ff7ad9 0%, #a98bff 22%, #6fb8ff 40%, #5ff0d0 58%, #ffe27a 78%, #ff8ac6 100%);
  --panel-soft: rgba(45, 18, 90, .55);
  --fun-border: .2em solid rgba(255, 255, 255, .95);
  --fun-glow: 0 0 0 .12em #8a5cff, 0 0 1.2em rgba(255, 122, 217, .55);
  --fun-title: #ffffff;
  --fun-wrong: #ff3fae;
  --fun-pill: #3a1d6e;
  --fun-pill-ink: #ffffff;
  --fun-gallows: #3a1d6e;
  --fun-person: #ffffff;
}

/* Jungle */
body[data-theme="jungle"] {
  --cyan: #a6ff6e;
  --yellow: #ffd84a;
  --pink: #ff7aa8;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(10.4)'%3E%3Cpath d='M0 0 C46 -38 138 -38 184.25959321893362 0 C138 38 46 38 0 0 Z'/%3E%3Cpath d='M8 0 L174 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(47.5)'%3E%3Cpath d='M0 0 C38 -29 114 -29 151.59528755559882 0 C114 29 38 29 0 0 Z'/%3E%3Cpath d='M8 0 L142 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(80.4)'%3E%3Cpath d='M0 0 C44 -32 132 -32 175.798797628019 0 C132 32 44 32 0 0 Z'/%3E%3Cpath d='M8 0 L166 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(29.4)'%3E%3Cpath d='M0 0 C50 -42 151 -42 201.83476560773778 0 C151 42 50 42 0 0 Z'/%3E%3Cpath d='M8 0 L192 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(58.9)'%3E%3Cpath d='M0 0 C46 -40 139 -40 185.69360042253084 0 C139 40 46 40 0 0 Z'/%3E%3Cpath d='M8 0 L176 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 9.5em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg transform='translate(220 0) scale(-1 1)'%3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(7.9)'%3E%3Cpath d='M0 0 C48 -41 145 -41 193.63370460689146 0 C145 41 48 41 0 0 Z'/%3E%3Cpath d='M8 0 L184 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(43.0)'%3E%3Cpath d='M0 0 C44 -37 132 -37 175.86398413854448 0 C132 37 44 37 0 0 Z'/%3E%3Cpath d='M8 0 L166 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(80.3)'%3E%3Cpath d='M0 0 C48 -36 143 -36 190.14036579421088 0 C143 36 48 36 0 0 Z'/%3E%3Cpath d='M8 0 L180 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(27.3)'%3E%3Cpath d='M0 0 C41 -28 123 -28 164.38918156195618 0 C123 28 41 28 0 0 Z'/%3E%3Cpath d='M8 0 L154 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(64.4)'%3E%3Cpath d='M0 0 C48 -35 144 -35 192.35769097658945 0 C144 35 48 35 0 0 Z'/%3E%3Cpath d='M8 0 L182 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 100% 0 / 9.5em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg transform='translate(0 220) scale(1 -1)'%3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(5.0)'%3E%3Cpath d='M0 0 C41 -35 122 -35 162.4688222659577 0 C122 35 41 35 0 0 Z'/%3E%3Cpath d='M8 0 L152 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(45.1)'%3E%3Cpath d='M0 0 C51 -37 154 -37 204.95206965394186 0 C154 37 51 37 0 0 Z'/%3E%3Cpath d='M8 0 L195 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(76.7)'%3E%3Cpath d='M0 0 C40 -34 120 -34 160.57269632334751 0 C120 34 40 34 0 0 Z'/%3E%3Cpath d='M8 0 L151 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(24.0)'%3E%3Cpath d='M0 0 C47 -33 142 -33 188.76493075793843 0 C142 33 47 33 0 0 Z'/%3E%3Cpath d='M8 0 L179 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(62.0)'%3E%3Cpath d='M0 0 C44 -34 131 -34 175.25235695248182 0 C131 34 44 34 0 0 Z'/%3E%3Cpath d='M8 0 L165 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 100% / 10.5em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg transform='translate(220 220) scale(-1 -1)'%3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(5.1)'%3E%3Cpath d='M0 0 C44 -33 132 -33 175.46540467982618 0 C132 33 44 33 0 0 Z'/%3E%3Cpath d='M8 0 L165 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(44.4)'%3E%3Cpath d='M0 0 C50 -35 150 -35 199.4063883517566 0 C150 35 50 35 0 0 Z'/%3E%3Cpath d='M8 0 L189 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(81.8)'%3E%3Cpath d='M0 0 C47 -36 142 -36 188.69142157615607 0 C142 36 47 36 0 0 Z'/%3E%3Cpath d='M8 0 L179 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(26.0)'%3E%3Cpath d='M0 0 C49 -34 148 -34 197.66090174924878 0 C148 34 49 34 0 0 Z'/%3E%3Cpath d='M8 0 L188 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(61.0)'%3E%3Cpath d='M0 0 C46 -32 138 -32 183.915752347599 0 C138 32 46 32 0 0 Z'/%3E%3Cpath d='M8 0 L174 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 100% 100% / 10.5em auto no-repeat,
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 236, 140, .36), transparent 70%),
    linear-gradient(180deg, #16714a 0%, #0e5535 45%, #083b23 100%);
  --panel-soft: rgba(4, 30, 16, .62);
  --fun-border: .22em solid #d9b45a;
  --fun-glow: 0 0 0 .12em #6b4f12;
  --fun-title: #ffffff;
  --fun-pill: #ffd84a;
  --fun-pill-ink: #083b23;
  --fun-gallows: #e8c66a;
  --fun-person: #ff9a3c;
}
@media (orientation: landscape) {
  body[data-theme="jungle"] {
    --fun-bg:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(10.4)'%3E%3Cpath d='M0 0 C46 -38 138 -38 184.25959321893362 0 C138 38 46 38 0 0 Z'/%3E%3Cpath d='M8 0 L174 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(47.5)'%3E%3Cpath d='M0 0 C38 -29 114 -29 151.59528755559882 0 C114 29 38 29 0 0 Z'/%3E%3Cpath d='M8 0 L142 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(80.4)'%3E%3Cpath d='M0 0 C44 -32 132 -32 175.798797628019 0 C132 32 44 32 0 0 Z'/%3E%3Cpath d='M8 0 L166 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(29.4)'%3E%3Cpath d='M0 0 C50 -42 151 -42 201.83476560773778 0 C151 42 50 42 0 0 Z'/%3E%3Cpath d='M8 0 L192 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(58.9)'%3E%3Cpath d='M0 0 C46 -40 139 -40 185.69360042253084 0 C139 40 46 40 0 0 Z'/%3E%3Cpath d='M8 0 L176 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 8em auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg transform='translate(220 0) scale(-1 1)'%3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(7.9)'%3E%3Cpath d='M0 0 C48 -41 145 -41 193.63370460689146 0 C145 41 48 41 0 0 Z'/%3E%3Cpath d='M8 0 L184 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(43.0)'%3E%3Cpath d='M0 0 C44 -37 132 -37 175.86398413854448 0 C132 37 44 37 0 0 Z'/%3E%3Cpath d='M8 0 L166 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(80.3)'%3E%3Cpath d='M0 0 C48 -36 143 -36 190.14036579421088 0 C143 36 48 36 0 0 Z'/%3E%3Cpath d='M8 0 L180 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(27.3)'%3E%3Cpath d='M0 0 C41 -28 123 -28 164.38918156195618 0 C123 28 41 28 0 0 Z'/%3E%3Cpath d='M8 0 L154 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(64.4)'%3E%3Cpath d='M0 0 C48 -35 144 -35 192.35769097658945 0 C144 35 48 35 0 0 Z'/%3E%3Cpath d='M8 0 L182 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 100% 0 / 9em auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg transform='translate(220 220) scale(-1 -1)'%3E%3Cg fill='%231c7a45'%3E%3Cg transform='rotate(5.1)'%3E%3Cpath d='M0 0 C44 -33 132 -33 175.46540467982618 0 C132 33 44 33 0 0 Z'/%3E%3Cpath d='M8 0 L165 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(44.4)'%3E%3Cpath d='M0 0 C50 -35 150 -35 199.4063883517566 0 C150 35 50 35 0 0 Z'/%3E%3Cpath d='M8 0 L189 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(81.8)'%3E%3Cpath d='M0 0 C47 -36 142 -36 188.69142157615607 0 C142 36 47 36 0 0 Z'/%3E%3Cpath d='M8 0 L179 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2333a862'%3E%3Cg transform='rotate(26.0)'%3E%3Cpath d='M0 0 C49 -34 148 -34 197.66090174924878 0 C148 34 49 34 0 0 Z'/%3E%3Cpath d='M8 0 L188 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3Cg transform='rotate(61.0)'%3E%3Cpath d='M0 0 C46 -32 138 -32 183.915752347599 0 C138 32 46 32 0 0 Z'/%3E%3Cpath d='M8 0 L174 0' stroke='%230b3d22' stroke-width='3' fill='none' opacity='.55'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 100% 100% / 9em auto no-repeat,
      radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 236, 140, .36), transparent 70%),
      linear-gradient(180deg, #16714a 0%, #0e5535 45%, #083b23 100%);
  }
}

/* Lava */
body[data-theme="lava"] {
  --cyan: #ffe066;
  --yellow: #ffb347;
  --pink: #ff5a36;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' %3E%3Cg fill='%23ffb347'%3E%3Ccircle cx='2.7' cy='24.7' r='1.75' opacity='0.76'/%3E%3Ccircle cx='30.5' cy='24.7' r='1.52' opacity='0.80'/%3E%3Ccircle cx='32.4' cy='162.9' r='2.13' opacity='0.43'/%3E%3Ccircle cx='117.8' cy='98.5' r='1.78' opacity='0.95'/%3E%3Ccircle cx='20.5' cy='4.5' r='2.52' opacity='0.59'/%3E%3Ccircle cx='43.7' cy='72.7' r='1.71' opacity='0.92'/%3E%3Ccircle cx='46.3' cy='47.7' r='2.02' opacity='0.68'/%3E%3Ccircle cx='209.8' cy='184.5' r='1.70' opacity='0.47'/%3E%3Ccircle cx='184.0' cy='217.6' r='1.24' opacity='0.79'/%3E%3Ccircle cx='191.0' cy='143.3' r='1.51' opacity='0.83'/%3E%3Ccircle cx='160.6' cy='42.6' r='2.10' opacity='0.48'/%3E%3Ccircle cx='9.1' cy='73.9' r='1.67' opacity='0.59'/%3E%3Ccircle cx='142.3' cy='184.0' r='2.55' opacity='0.94'/%3E%3Ccircle cx='218.6' cy='173.8' r='1.63' opacity='0.46'/%3E%3Ccircle cx='137.2' cy='120.1' r='2.14' opacity='0.41'/%3E%3Ccircle cx='42.4' cy='202.6' r='2.04' opacity='0.77'/%3E%3Ccircle cx='21.0' cy='87.8' r='2.47' opacity='0.74'/%3E%3Ccircle cx='218.2' cy='43.3' r='1.84' opacity='0.83'/%3E%3Ccircle cx='97.8' cy='173.6' r='1.99' opacity='0.42'/%3E%3Ccircle cx='21.8' cy='216.3' r='1.37' opacity='0.47'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 11em 11em,
    radial-gradient(circle at 18% 70%, rgba(255, 90, 0, .35) 0 6%, transparent 13%),
    radial-gradient(circle at 84% 50%, rgba(255, 140, 0, .28) 0 5%, transparent 11%),
    radial-gradient(circle at 70% 88%, rgba(255, 60, 0, .4) 0 7%, transparent 15%),
    radial-gradient(ellipse 90% 34% at 50% 108%, rgba(255, 110, 0, .9), rgba(255, 60, 0, .35) 45%, transparent 75%),
    linear-gradient(180deg, #1c0604 0%, #2e0905 40%, #4a0f06 75%, #6e1a08 100%);
  --panel-soft: rgba(25, 5, 2, .62);
  --fun-border: .16em solid #ff6a00;
  --fun-glow: 0 0 1.2em rgba(255, 80, 0, .6);
  --fun-title: #ffb347;
  --fun-pill: #ff6a00;
  --fun-pill-ink: #1c0604;
  --fun-gallows: #ffb347;
  --fun-person: #fff1d6;
  --fun-gallows-filter: drop-shadow(0 0 .2em rgba(255, 106, 0, .9)) drop-shadow(0 .3em .4em rgba(0, 0, 0, .5));
}

/* Pixel Quest */
body[data-theme="pixel"] {
  --cyan: #8dffb0;
  --yellow: #ffd83a;
  --pink: #ff4f6d;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='1' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='2' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='3' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='4' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='8' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='9' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='10' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='11' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='12' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='13' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='14' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='15' y='0' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='9' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='10' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='12' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='13' y='1' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='14' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='15' y='1' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%235bd13d'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='15' y='2' width='1' height='1' fill='%233a9e2a'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='15' y='3' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%238a5226'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%238a5226'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='15' y='4' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%238a5226'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%238a5226'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='15' y='5' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%238a5226'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%238a5226'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='15' y='6' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%238a5226'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='8' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='9' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='10' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='11' y='7' width='1' height='1' fill='%238a5226'/%3E%3Crect x='12' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23b0703a'/%3E%3Crect x='15' y='7' width='1' height='1' fill='%23b0703a'/%3E%3C/svg%3E") 0 100% / 4em 2em repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16' shape-rendering='crispEdges' preserveAspectRatio='none'%3E%3Cpath fill='%232f8f3a' d='M0 16 V10 H4 V8 H8 V6 H14 V8 H18 V10 H22 V12 H30 V9 H34 V7 H38 V5 H44 V7 H48 V9 H52 V11 H58 V9 H62 V10 H64 V16 Z'/%3E%3C/svg%3E") 50% calc(100% - 1.9em) / 100% 4em no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='0' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23fff6b0'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23fff6b0'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23fff6b0'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='7' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23ffd83a'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23ffd83a'/%3E%3C/svg%3E") var(--fun-top-x) .9em / 2.8em 2.8em no-repeat,
    linear-gradient(180deg, #3d9cf5 0 25%, #4ea8fa 25% 50%, #62b5ff 50% 75%, #79c3ff 75%);
  --fun-row-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 7' shape-rendering='crispEdges'%3E%3Crect x='6' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='18' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='18' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='19' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='18' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='19' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='15' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='16' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='17' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='18' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3C/svg%3E") 0 90% / 36% auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 7' shape-rendering='crispEdges'%3E%3Crect x='6' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='18' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='18' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='19' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='15' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='18' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='19' y='5' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='15' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='16' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='17' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3Crect x='18' y='6' width='1' height='1' fill='%23bfe3ff'/%3E%3C/svg%3E") 100% 18% / 32% auto no-repeat;
  --panel-soft: rgba(20, 20, 50, .62);
  --fun-border: .25em solid #1a1a2e;
  --fun-glow: .3em .3em 0 #1a1a2e;
  --fun-title: #ffffff;
  --fun-pill: #ffd83a;
  --fun-pill-ink: #1a1a2e;
  --fun-gallows: #7a4a24;
  --fun-person: #ffffff;
  --fun-top-x: 54%;
}
@media (orientation: landscape) {
  body[data-theme="pixel"] { --fun-top-x: 31%; }
}
body[data-theme="pixel"] #game-card { border-radius: .45em; }
body[data-theme="pixel"] .round-meta span,
body[data-theme="pixel"] .feed-panel,
body[data-theme="pixel"] .leaderboard-panel { border-radius: .3em; }
body[data-theme="pixel"] :is(.gallows-lines, .person-lines) { stroke-linecap: square; stroke-linejoin: miter; }

/* Snow Day */
body[data-theme="frost"] {
  --cyan: #e3f8ff;
  --yellow: #fff27a;
  --pink: #ff4d6d;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E %3Cpath fill='%23ffffff' d='M0 60 V34 C50 18 90 30 130 36 S220 14 270 28 S350 40 400 26 V60 Z'/%3E %3Cpath fill='%23dff1ff' d='M0 60 V46 C70 36 120 44 180 50 S300 38 400 46 V60 Z'/%3E%3C/svg%3E") 50% 100% / 100% 9% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' %3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='39.6' cy='165.5' r='2.54' opacity='0.64'/%3E%3Ccircle cx='51.8' cy='190.2' r='2.85' opacity='0.66'/%3E%3Ccircle cx='121.2' cy='56.7' r='1.41' opacity='0.57'/%3E%3Ccircle cx='140.5' cy='16.6' r='2.83' opacity='0.49'/%3E%3Ccircle cx='55.8' cy='10.2' r='3.20' opacity='0.79'/%3E%3Ccircle cx='210.0' cy='147.8' r='1.46' opacity='0.55'/%3E%3Ccircle cx='119.4' cy='27.8' r='3.11' opacity='0.57'/%3E%3Ccircle cx='37.2' cy='196.2' r='1.62' opacity='0.91'/%3E%3Ccircle cx='108.8' cy='132.5' r='2.02' opacity='0.64'/%3E%3Ccircle cx='44.9' cy='8.9' r='2.96' opacity='0.49'/%3E%3Ccircle cx='187.3' cy='50.1' r='3.14' opacity='0.89'/%3E%3Ccircle cx='181.2' cy='183.1' r='2.45' opacity='0.79'/%3E%3Ccircle cx='29.4' cy='114.3' r='2.89' opacity='0.47'/%3E%3Ccircle cx='221.6' cy='213.0' r='2.14' opacity='0.57'/%3E%3Ccircle cx='108.3' cy='92.6' r='3.19' opacity='0.58'/%3E%3Ccircle cx='6.4' cy='22.4' r='2.69' opacity='0.95'/%3E%3Ccircle cx='119.0' cy='118.0' r='2.39' opacity='0.80'/%3E%3Ccircle cx='53.3' cy='146.1' r='2.40' opacity='0.72'/%3E%3Ccircle cx='43.4' cy='40.8' r='2.03' opacity='0.91'/%3E%3Ccircle cx='83.2' cy='143.3' r='1.95' opacity='0.41'/%3E%3Ccircle cx='15.8' cy='195.3' r='2.80' opacity='0.57'/%3E%3Ccircle cx='164.0' cy='162.2' r='3.02' opacity='0.92'/%3E%3Ccircle cx='97.7' cy='237.4' r='3.13' opacity='0.70'/%3E%3Ccircle cx='212.0' cy='117.8' r='2.08' opacity='0.50'/%3E%3Ccircle cx='210.3' cy='39.0' r='1.52' opacity='0.83'/%3E%3Ccircle cx='185.7' cy='116.0' r='2.91' opacity='0.38'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 13em 13em,
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .55), transparent 24%),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .5), transparent 24%),
    linear-gradient(180deg, #5bb8ff 0%, #4a9be8 45%, #3a7fd0 100%);
  --panel-soft: rgba(15, 40, 90, .55);
  --fun-border: .2em solid #ffffff;
  --fun-glow: 0 0 0 .12em #9fd8ff, 0 0 1em rgba(255, 255, 255, .55);
  --fun-title: #ffffff;
  --fun-pill: #ffffff;
  --fun-pill-ink: #1d3f7a;
  --fun-gallows: #1d3f7a;
  --fun-person: #ff3d5a;
}

/* Spooky Night */
body[data-theme="spooky"] {
  --cyan: #a6ff3d;
  --yellow: #ffb347;
  --pink: #ff5ea8;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' %3E%3Cg fill='%23100418'%3E %3Cpath d='M8 60 v-22 a11 11 0 0 1 22 0 v22 Z M44 60 v-32 a14 14 0 0 1 28 0 v32 Z M86 60 v-18 a9 9 0 0 1 18 0 v18 Z'/%3E %3Cpath d='M56 22 h4 v-9 h6 v-4 h-6 v-7 h-4 v7 h-6 v4 h6 Z'/%3E%3C/g%3E%3C/svg%3E") calc(100% - 1.4em) calc(100% - .4em) / 7em auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' %3E%3Cg fill='none' stroke='%23100418' stroke-linecap='round'%3E %3Cpath d='M40 160 C42 120 34 90 42 50' stroke-width='10'/%3E %3Cpath d='M41 92 C56 80 68 76 80 60 M40 72 C28 62 20 50 14 34 M42 56 C48 44 54 34 52 20 M78 62 l10 -3 M16 38 l-9 -1' stroke-width='5'/%3E %3C/g%3E%3C/svg%3E") -.6em 100% / auto 22% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath fill='%23100418' d='M0 30 V12 C60 0 120 6 180 14 S320 2 400 10 V30 Z'/%3E%3C/svg%3E") 50% 100% / 100% 7% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' %3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='90.5' cy='112.0' r='1.73' opacity='0.63'/%3E%3Ccircle cx='101.6' cy='117.5' r='1.07' opacity='0.66'/%3E%3Ccircle cx='126.0' cy='158.6' r='0.98' opacity='0.53'/%3E%3Ccircle cx='18.1' cy='161.9' r='1.52' opacity='0.38'/%3E%3Ccircle cx='196.4' cy='193.0' r='1.49' opacity='0.72'/%3E%3Ccircle cx='31.5' cy='3.0' r='1.38' opacity='0.39'/%3E%3Ccircle cx='38.0' cy='48.4' r='0.93' opacity='0.63'/%3E%3Ccircle cx='88.1' cy='168.5' r='1.37' opacity='0.73'/%3E%3Ccircle cx='100.0' cy='132.5' r='1.31' opacity='0.52'/%3E%3Ccircle cx='199.5' cy='199.1' r='1.66' opacity='0.77'/%3E%3Ccircle cx='63.1' cy='45.9' r='1.16' opacity='0.39'/%3E%3Ccircle cx='153.3' cy='80.1' r='1.66' opacity='0.58'/%3E%3Ccircle cx='191.6' cy='169.5' r='0.90' opacity='0.48'/%3E%3Ccircle cx='182.1' cy='94.0' r='1.78' opacity='0.59'/%3E%3Ccircle cx='14.6' cy='125.9' r='1.60' opacity='0.51'/%3E%3Ccircle cx='17.4' cy='66.5' r='1.77' opacity='0.80'/%3E%3Ccircle cx='23.6' cy='49.3' r='0.99' opacity='0.39'/%3E%3Ccircle cx='159.4' cy='35.5' r='1.40' opacity='0.62'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 12em 12em,
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(120, 30, 160, .45), transparent 70%),
    linear-gradient(180deg, #14051f 0%, #26093b 50%, #3a0e52 100%);
  --panel-soft: rgba(18, 5, 30, .62);
  --fun-border: .16em solid #ff8c1a;
  --fun-glow: 0 0 1.2em rgba(255, 140, 26, .55);
  --fun-title: #ffb347;
  --fun-pill: #ff8c1a;
  --fun-pill-ink: #14051f;
  --fun-gallows: #2a1240;
  --fun-person: #a6ff3d;
  --fun-gallows-filter: drop-shadow(0 0 .06em #ffd27a) drop-shadow(0 0 .2em rgba(255, 140, 26, .55));
}
/* The moon rises behind the gallows itself, so it follows the gallows in every layout. */
body[data-theme="spooky"] #gallows {
  background: radial-gradient(circle at 62% 38%, #fff3c4 0 22%, #ffd27a 28%, rgba(255, 170, 60, .3) 36%, transparent 50%);
}

/* Sunny Hills */
body[data-theme="sunny"] {
  --cyan: #d4ff8a;
  --yellow: #ffe14d;
  --pink: #ff4d5e;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E %3Cpath fill='%237ed957' d='M0 100 V52 C60 18 120 28 180 52 S300 26 400 46 V100 Z'/%3E %3Cpath fill='%234caf3e' d='M0 100 V74 C80 48 150 58 220 76 S340 58 400 70 V100 Z'/%3E%3C/svg%3E") 50% 100% / 100% 20% no-repeat,
    radial-gradient(circle at 90% 5%, #fff7b0 0 4.5%, #ffe14d 7%, rgba(255, 225, 77, .35) 11%, transparent 20%),
    linear-gradient(180deg, #2f9bff 0%, #5ab4ff 40%, #9ad4ff 75%, #c3e8ff 100%);
  --fun-row-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 100' %3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='52' cy='54' r='26'/%3E%3Ccircle cx='88' cy='40' r='33'/%3E%3Ccircle cx='126' cy='56' r='24'/%3E%3Crect x='34' y='54' width='112' height='28' rx='14'/%3E%3C/g%3E%3Cpath d='M40 74 Q90 90 140 74' stroke='%23cfe8ff' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 0 88% / 37% auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 100' %3E%3Cg transform='translate(180 0) scale(-1 1)'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='52' cy='54' r='26'/%3E%3Ccircle cx='88' cy='40' r='33'/%3E%3Ccircle cx='126' cy='56' r='24'/%3E%3Crect x='34' y='54' width='112' height='28' rx='14'/%3E%3C/g%3E%3Cpath d='M40 74 Q90 90 140 74' stroke='%23cfe8ff' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 100% 22% / 34% auto no-repeat;
  --panel-soft: rgba(12, 45, 90, .55);
  --fun-border: .2em solid #ffffff;
  --fun-glow: 0 0 0 .12em #3e9d3a;
  --fun-title: #ffffff;
  --fun-pill: #ffe14d;
  --fun-pill-ink: #123a6b;
  --fun-gallows: #6b3e1e;
  --fun-person: #e8273a;
}

/* Toxic Slime */
body[data-theme="slime"] {
  --cyan: #7dff3a;
  --yellow: #f5ff5c;
  --pink: #ff5cf0;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 92' %3E %3Cpath fill='%237dff3a' stroke='%232c9e2a' stroke-width='2.5' d='M-2 -2 H202 V20 Q190 26 182 22 C178 22 176 30 176 46 A6 6 0 0 1 164 46 C164 32 162 24 156 24 Q140 30 126 22 C121 21 119 34 119 64 A7 7 0 0 1 105 64 C105 34 103 24 96 24 Q80 30 64 22 C60 21 58 28 58 38 A5 5 0 0 1 48 38 C48 28 46 22 40 22 Q20 28 -2 20 Z'/%3E %3Cg fill='%23ffffff' opacity='.55'%3E%3Cellipse cx='169' cy='44' rx='1.8' ry='3.2'/%3E%3Cellipse cx='110' cy='61' rx='2' ry='3.6'/%3E %3Cellipse cx='52' cy='36' rx='1.6' ry='2.8'/%3E%3Cellipse cx='30' cy='10' rx='9' ry='2.2'/%3E%3Cellipse cx='140' cy='11' rx='11' ry='2.4'/%3E%3C/g%3E%3C/svg%3E") 0 -.3em / 10em auto repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' %3E%3Cg fill='%237dff3a' fill-opacity='.14' stroke='%237dff3a' stroke-opacity='.45' stroke-width='2'%3E%3Ccircle cx='30' cy='250' r='10'/%3E%3Ccircle cx='70' cy='280' r='6'/%3E%3Ccircle cx='250' cy='240' r='8'/%3E%3Ccircle cx='280' cy='290' r='12'/%3E%3Ccircle cx='150' cy='290' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 16em 16em repeat-x,
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(125, 255, 58, .12), transparent 70%),
    linear-gradient(180deg, #2a0d45 0%, #1f0a36 50%, #150626 100%);
  --panel-soft: rgba(20, 6, 36, .62);
  --fun-border: .18em solid #7dff3a;
  --fun-glow: 0 0 1.2em rgba(125, 255, 58, .5);
  --fun-title: #ffffff;
  --fun-pill: #7dff3a;
  --fun-pill-ink: #1b0a2e;
  --fun-gallows: #7dff3a;
  --fun-person: #ff5cf0;
}

/* Tropical Sunset */
body[data-theme="sunset"] {
  --cyan: #7ff3ff;
  --yellow: #ffd27a;
  --pink: #ff5e94;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 300' %3E %3Cg fill='%231d0b2a'%3E %3Cpath d='M30 300 C34 240 44 190 64 146 L72 150 C54 194 46 242 44 300 Z'/%3E %3Cpath d='M68 148 C40 120 14 122 -6 134 C18 112 50 112 70 140 Z'/%3E %3Cpath d='M68 148 C52 112 30 98 6 96 C34 90 62 106 74 140 Z'/%3E %3Cpath d='M70 146 C76 112 98 92 126 88 C104 100 86 118 78 148 Z'/%3E %3Cpath d='M70 148 C96 128 124 128 146 142 C120 138 96 144 76 154 Z'/%3E %3Cpath d='M70 148 C82 160 88 182 86 204 C80 182 72 168 64 158 Z'/%3E %3C/g%3E%3C/svg%3E") -1.2em 100% / auto 46% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 300' %3E%3Cg transform='translate(150 0) scale(-1 1)'%3E %3Cg fill='%231d0b2a'%3E %3Cpath d='M30 300 C34 240 44 190 64 146 L72 150 C54 194 46 242 44 300 Z'/%3E %3Cpath d='M68 148 C40 120 14 122 -6 134 C18 112 50 112 70 140 Z'/%3E %3Cpath d='M68 148 C52 112 30 98 6 96 C34 90 62 106 74 140 Z'/%3E %3Cpath d='M70 146 C76 112 98 92 126 88 C104 100 86 118 78 148 Z'/%3E %3Cpath d='M70 148 C96 128 124 128 146 142 C120 138 96 144 76 154 Z'/%3E %3Cpath d='M70 148 C82 160 88 182 86 204 C80 182 72 168 64 158 Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") calc(100% + 1.2em) 100% / auto 40% no-repeat,
    radial-gradient(ellipse 14% 18% at 50% 84%, rgba(255, 209, 102, .5), transparent 70%),
    linear-gradient(180deg, transparent 74%, #2b3a7a 74%, #1c2459 100%),
    radial-gradient(circle at 50% 74%, #fff1a8 0 12%, #ffd166 13.5%, rgba(255, 209, 102, .4) 18%, transparent 30%),
    linear-gradient(180deg, #5b2a86 0%, #b23a8a 28%, #ff5e62 52%, #ff9a44 66%, #ffc857 74%);
  --panel-soft: rgba(28, 10, 50, .6);
  --fun-border: .18em solid #ffd27a;
  --fun-glow: 0 0 1.1em rgba(255, 94, 98, .55);
  --fun-title: #ffffff;
  --fun-pill: #ffd27a;
  --fun-pill-ink: #3a1240;
  --fun-gallows: #ffe08a;
  --fun-person: #ffffff;
}

/* Wild West */
body[data-theme="west"] {
  --cyan: #fff0b3;
  --yellow: #ffe066;
  --pink: #ff6a4a;
  --fun-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 300' %3E %3Cg fill='%233f1a12'%3E %3Crect x='44' y='36' width='30' height='270' rx='15'/%3E %3Cpath d='M46 176 H30 a16 16 0 0 1 -16 -16 V106 a10 10 0 0 1 20 0 V154 H46 Z'/%3E %3Cpath d='M72 132 H88 a16 16 0 0 0 16 -16 V72 a10 10 0 0 0 -20 0 V112 H72 Z'/%3E %3C/g%3E%3C/svg%3E") -1.4em 100% / auto 33% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 300' %3E%3Cg transform='translate(120 0) scale(-1 1)'%3E %3Cg fill='%233f1a12'%3E %3Crect x='44' y='36' width='30' height='270' rx='15'/%3E %3Cpath d='M46 176 H30 a16 16 0 0 1 -16 -16 V106 a10 10 0 0 1 20 0 V154 H46 Z'/%3E %3Cpath d='M72 132 H88 a16 16 0 0 0 16 -16 V72 a10 10 0 0 0 -20 0 V112 H72 Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") calc(100% + 1em) 100% / auto 25% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E %3Cpath fill='%239a4128' opacity='.9' d='M0 100 V66 L34 64 L42 47 L96 45 L104 62 L152 66 L170 55 L212 53 L224 68 L288 70 L298 51 L342 49 L354 66 L400 68 V100 Z'/%3E %3Cpath fill='%234d1d12' d='M0 100 V83 L58 81 L68 74 L124 73 L136 85 L248 87 L262 76 L328 74 L342 87 L400 88 V100 Z'/%3E%3C/svg%3E") 50% 100% / 100% 24% no-repeat,
    radial-gradient(circle at 50% 80%, rgba(255, 243, 200, .95) 0 9%, rgba(255, 205, 130, .5) 14%, transparent 30%),
    linear-gradient(180deg, #ffd27f 0%, #f89c4c 34%, #dc643c 62%, #a33f2c 100%);
  --panel-soft: rgba(60, 22, 10, .6);
  --fun-border: .26em solid #4a2414;
  --fun-glow: 0 0 0 .14em #c98a4a;
  --fun-title: #ffe066;
  --fun-wrong: #ffe066;
  --fun-pill: #3b1d10;
  --fun-pill-ink: #ffe066;
  --fun-gallows: #3b1d10;
  --fun-person: #fff4dc;
}

/* The pictures beside the gallows wear each theme's gallows colour. */
body[data-theme="light"] .side-picture img {
  border-color: #475569;
  box-shadow: 0 0 0 .1em rgba(255, 255, 255, .9), 0 .42em .55em rgba(15, 23, 42, .24);
}
body[data-theme="quiz"] .side-picture img { border-color: #ffd60a; box-shadow: 0 0 .8em rgba(255, 214, 10, .6); }
body[data-theme="arcade"] .side-picture img {
  border-color: #00e5ff;
  box-shadow: 0 0 .5em rgba(0, 229, 255, .85), 0 0 .9em rgba(255, 43, 214, .55);
}
body[data-theme="candy"] .side-picture img { border-color: #6a1fd1; box-shadow: 0 0 0 .16em #ffffff, var(--shadow); }

@keyframes banner-in { from { transform: translate(-50%, -42%) rotate(-4deg) scale(.82); } }

@media (min-width: 500px) and (orientation: portrait) {
  .lower-grid { flex-direction: row; }
  .feed-panel { flex: 1.32; }
  .leaderboard-panel { flex: 1; }
}

@media (orientation: landscape) {
  :root {
    --hangman-width: min(94vw, 1500px);
    --hangman-size: clamp(12px, min(1.55vw, 2.45vh), 25px);
  }
  #game-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(235px, .92fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 1em;
    row-gap: .65em;
    padding: clamp(14px, 2.1vmin, 34px);
  }
  .game-header { grid-column: 1; grid-row: 1; }
  .eyebrow { display: none; }
  h1 { font-size: 2.65em; }
  .round-meta { flex-direction: row; }
  .game-grid { grid-column: 1; grid-row: 2; flex-direction: row; gap: 1em; margin: 0; }
  .drawing-panel { --gallows-w: min(26vw, 34vh, 300px); --gallows-h: 48vh; flex: 0 0 36%; width: auto; }
  /* Side pictures on: a wider drawing column and a slightly smaller gallows. */
  body.side-pictures .drawing-panel { --gallows-w: min(21vw, 30vh, 260px); flex-basis: 46%; }
  .word-panel { flex: 1; width: auto; }
  .lower-grid { grid-column: 2; grid-row: 1 / 3; flex-direction: column; margin: 0; }
  .feed-panel { flex: 1.15; }
  .leaderboard-panel { flex: .85; }
  #masked { font-size: var(--masked-fit, clamp(48px, min(7.4vw, 12.3vh), 120px)); }
  #masked.is-long { font-size: var(--masked-fit, clamp(38px, min(6.1vw, 9.9vh), 96px)); }
}

@media (max-height: 700px) and (orientation: portrait) {
  #game-card { padding-top: 9px; padding-bottom: 10px; }
  .drawing-panel { --gallows-w: clamp(98px, 28vw, 180px); --gallows-h: 19vh; }
  .game-grid { gap: .25em; margin-top: .38em; }
  .lower-grid { gap: .3em; margin-top: .4em; }
  .feed-panel, .leaderboard-panel { padding-top: .33em; padding-bottom: .33em; }
}

/* Browser sources and the embedded preview can be narrower than a phone in
   landscape. Give the word, heading and scores their own full-width rows. */
@media (orientation: landscape) and (max-width: 680px) {
  #game-card { display: block; padding: 9px 13px; }
  .game-header { gap: .4em; }
  .round-meta { flex-direction: column; gap: .15em; }
  .game-grid { margin-top: .4em; gap: .65em; }
  .drawing-panel, body.side-pictures .drawing-panel {
    flex: 0 0 38%; --gallows-w: min(21vw, 21vh); --gallows-h: 21vh;
  }
  .lower-grid { flex-direction: row; gap: .5em; margin-top: .45em; }
  .feed-panel, .leaderboard-panel { flex: 1; min-width: 0; }
  .prompt { font-size: .82em; }
  #masked, #masked.is-long { font-size: var(--masked-fit, clamp(22px, 5.8vw, 39px)); }
}

/* ---- Live-event effects (hangman.js liveFx): joins, likes, guest panel moments ----
   One fixed layer above the card. Sizes are in em of the card's own type size, and
   colours come from the look's accents, so every effect matches all 26 looks. */
#fx-layer {
  position: fixed;
  inset: 0;
  /* Above the card, below the result banner (z-index 3): effects never cover the answer. */
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  font-size: calc(var(--hangman-size) * var(--scale));
  --fx-ring: var(--fun-pill, var(--cyan));
  --fx-tag: var(--fun-pill, var(--cyan));
}
body[data-theme="light"] #fx-layer { --fx-tag: #0b7f86; --fx-ring: #0b7f86; }
.fx-sprite {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}
.fx-face {
  position: relative;
  width: var(--fx-size, 3.2em);
  height: var(--fx-size, 3.2em);
  overflow: hidden;
  border: .2em solid var(--fx-ring);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--yellow), var(--pink) 78%);
  box-shadow: 0 .35em .7em rgba(0, 0, 0, .45);
}
.fx-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: calc(var(--fx-size, 3.2em) * .46);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 .06em .12em rgba(0, 0, 0, .6);
}
.fx-tag {
  position: absolute;
  left: 50%;
  top: 100%;
  max-width: 11em;
  padding: .14em .55em .1em;
  overflow: hidden;
  border: .1em solid var(--fx-tag);
  border-radius: 999px;
  /* Light type with the overlay's dark stroke reads on every look. */
  color: #ffffff;
  background: rgba(8, 12, 26, .9);
  box-shadow: 0 .2em .5em rgba(0, 0, 0, .38);
  font-size: .86em;
  letter-spacing: .03em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, .3em);
}
/* Names get "solved" like the puzzle: blanks first, then each letter pops in. */
.fx-solved { display: inline-flex; align-items: baseline; }
.fx-slot { position: relative; display: inline-block; }
.fx-letter { display: inline-block; }
.fx-blank { position: absolute; left: 0; right: 0; bottom: -.08em; text-align: center; }
.fx-gap { display: inline-block; width: .32em; }
.fx-tag .fx-solved { vertical-align: baseline; }
/* Join tag: the name is fitted by measuring (hangman.js fitName), the chip never shrinks. */
.fx-tag.fx-tag-join { display: flex; align-items: center; max-width: calc(100vw - 8px); text-overflow: clip; }
.fx-name { display: block; min-width: 0; overflow: hidden; white-space: nowrap; }
.fx-tag-join .fx-chip { flex: none; }
/* A group's "+N": everyone else in the burst. */
.fx-chip.fx-chip-more { color: #ffffff; background: rgba(255, 255, 255, .18); border: .08em solid var(--cyan); }
/* The group's shared tag sits in its own holder (which moves it), not under one face. */
.fx-tag.fx-tag-group { position: relative; left: auto; top: auto; transform: none; }
.fx-solved-whole { display: inline-block; white-space: nowrap; unicode-bidi: isolate; }
.fx-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.fx-chip {
  display: inline-block;
  margin-left: .45em;
  padding: .08em .4em .04em;
  border-radius: .35em;
  color: #07151a;
  background: var(--cyan);
  font-size: .78em;
  letter-spacing: .08em;
  vertical-align: .08em;
  -webkit-text-stroke-width: 0;
  text-shadow: none;
}
body[data-theme="light"] .fx-chip { color: #ffffff; background: #0b7f86; }
/* TOP PLAYERS wear their rank on their picture. */
.fx-rank {
  position: absolute;
  right: -.18em;
  top: -.18em;
  min-width: 1.45em;
  padding: .12em .2em .06em;
  border: .1em solid #101d28;
  border-radius: 999px;
  color: #111827;
  background: var(--yellow);
  font-size: calc(var(--fx-size, 3.2em) * .2);
  line-height: 1;
  text-align: center;
  -webkit-text-stroke-width: 0;
  text-shadow: none;
}
.fx-effect { position: absolute; inset: 0; }
.fx-body { position: relative; transform-origin: 50% 100%; }
.fx-spin { transform-origin: 50% 50%; }
.fx-effect[data-kind^="guest_"] .fx-body { transform-origin: 50% 50%; }
.fx-tag-like { font-variant-numeric: tabular-nums; }
.fx-piece {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}
.fx-piece-dot { border-radius: 50%; background: var(--fx-piece); opacity: .9; }
.fx-piece-confetti { border-radius: .08em; background: var(--fx-piece); transform-origin: center; }
.fx-piece-confetti:nth-of-type(3n) { border-radius: 50%; }
.fx-piece-heart { fill: var(--fx-piece); filter: drop-shadow(0 .06em .12em rgba(0, 0, 0, .45)); overflow: visible; }
.fx-face-glow { box-shadow: 0 0 0 .18em rgba(255, 255, 255, .55), 0 0 1em var(--fx-ring), 0 .35em .7em rgba(0, 0, 0, .45); }
/* Guest panel ribbon: picture + "JOINED THE PANEL" + name. */
.fx-ribbon {
  display: flex;
  align-items: center;
  gap: .55em;
  max-width: 23em;
  padding: .32em 1.2em .32em .32em;
  border: .14em solid var(--fx-ring);   /* fallback for engines without color-mix() */
  border: .14em solid color-mix(in srgb, var(--fx-ring) 62%, #ffffff);
  border-radius: 999px;
  color: var(--ink);
  /* Opaque: whatever is under the header must not ghost through the words. */
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 55%), #0b1222;
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .5);
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .5), 0 0 1.2em color-mix(in srgb, var(--fx-ring) 55%, transparent);
}
body[data-look="bright"] .fx-ribbon { background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 55%), #120a2c; }
body[data-theme="light"] .fx-ribbon { color: #ffffff; background: linear-gradient(135deg, #0d8a8f, #0b5d78); }
.fx-ribbon .fx-face { flex: 0 0 auto; }
.fx-ribbon-words { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.fx-ribbon-kicker {
  /* Every look's --cyan is a light accent, so it reads on the dark ribbon. */
  color: var(--cyan);
  font-size: .78em;
  letter-spacing: .12em;
}
body[data-theme="light"] .fx-ribbon-kicker { color: #bdfcf4; }
.fx-ribbon-name {
  max-width: 11em;
  overflow: hidden;
  font-size: 1.45em;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Decline is calmer (soft ring, no glow); leave is a fond goodbye. */
.fx-ribbon-guest-decline { --fx-ring: var(--muted); box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .5); }
.fx-ribbon-guest-decline .fx-ribbon-kicker { color: var(--yellow); font-size: 1.2em; letter-spacing: .06em; }
.fx-emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  -webkit-text-stroke-width: 0;
  text-shadow: none;
}
.fx-ribbon-guest-leave .fx-ribbon-kicker { color: #ffd1e3; color: color-mix(in srgb, var(--pink) 72%, #ffffff); }
body[data-theme="light"] .fx-ribbon-guest-decline .fx-ribbon-kicker { color: #ffe08a; }
body[data-theme="light"] .fx-ribbon-guest-leave .fx-ribbon-kicker { color: #ffc2d6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
