/* The wardrobe: the house look (Novel) and seven costumes.
   The contract: a costume may change the ground, the palette, the display and label faces, the surfaces (panels, title cards,
   name plates, buttons), the caret and the ▼ marker. It never changes the brand's skeleton: the wordmark, the body copy
   (Instrument Sans at AA contrast), the layout, the store badges and the footer.
   Each costume comes from its lead look's palette slots (StageKit SeedCatalog: surface, surfaceEdge, ink, accent, muted, veil,
   veilInk, titleSurface, titleInk) and the character of its staging. Built from demos/d2-eight-stagings/css/themes.css.
   --prose-accent is the one token prose pages (blog, help, legal) borrow, checked at 4.5:1 or better on the house paper. */

/* ============================== NOVEL · Paper = the house look ==============================
   The brand's own clothes, and the theme every new story starts on: cream paper, plum ink, Instrument Sans, a frosted box,
   pill name plates in the speaker's color, a plum title card, a rounded caret, Soft Focus bokeh. Section titles are plain type. */
html[data-theme='novel'] {
  --bg: #f6ebdd;
  --ink: #1d1426;
  --ink-soft: #5a4a63;
  --link: #8e2f55;
  --rule: rgba(29, 20, 38, 0.13);
  --focus: #1d1426;
  --head-bg: rgba(251, 246, 238, 0.78);
  --head-rule: 1px solid rgba(29, 20, 38, 0.08);
  --surface: #fffdf9;
  --surface-ink: #1d1426;
  --surface-soft: #5a4a63;
  --edge: rgba(29, 20, 38, 0.1);
  --accent: #c2456f;
  --ring: #1d1426;
  --label: #a3365e;
  --title-bg: transparent;
  --title-ink: #1d1426;
  --title-label: #a3365e;
  --voice-a: #1a8472;
  --voice-b: #c8424e;
  --plate-ink: #fff;
  --plate-weight: 650;
  --plate-size: 13.5px;
  --plate-shadow: 0 0 0 3px #fffdf9;
  --plate-case: none;
  --plate-track: 0;
  --btn-bg: #1d1426;
  --btn-ink: #f6ebdd;
  --radius-btn: 999px;
  --f-display: 'DC Instrument', system-ui, sans-serif;
  --f-ui: 'DC Instrument', system-ui, sans-serif;
  --d-weight: 650;
  --d-track: -0.035em;
  --d-case: none;
  --d-stretch: 100%;
  --d-lh: 1;
  --d-scale: 1.04;
  --ui-weight: 600;
  --ui-track: 0;
  --ui-case: none;
  --sub-weight: 500;
  --sub-track: -0.01em;
  --radius-lg: 24px;
  --tile-radius: 16px;
  --stage-radius: 16px;
  --cover-radius: 12px;
  --tc-radius: 0;
  --row-radius: 12px;
  --tc-pad: 0;
  --tc-pad-d: 0;
  --stage-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 26px 60px -28px rgba(52, 35, 44, 0.55);
  --panel-border: 0;
  --panel-shadow:
    inset 0 1px 0 rgba(29, 20, 38, 0.06), 0 1px 0 rgba(29, 20, 38, 0.04),
    0 22px 44px -30px rgba(52, 35, 44, 0.45);
  --panel-blur: blur(20px) saturate(1.15);
  --cue-c: #c2456f;
  --row-hover: rgba(29, 20, 38, 0.04);
  --row-on: rgba(194, 69, 111, 0.1);
  --dock-bg: rgba(255, 253, 249, 0.94);
  --prose-accent: #a3365e;
}
html[data-theme='novel'] .panel {
  background: linear-gradient(
    to bottom,
    rgba(255, 253, 249, 0.7),
    rgba(255, 253, 249, 0.7) 24px,
    #fffdf9 64px
  );
}
html[data-theme='novel'] .ground {
  background: #f6ebdd;
}
html[data-theme='novel'] .ground .g1 {
  width: 70vmax;
  height: 70vmax;
  left: -18vmax;
  top: -22vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 167, 126, 0.45), rgba(239, 167, 126, 0));
  animation: drift-a 26s var(--ease-io) infinite alternate;
}
html[data-theme='novel'] .ground .g2 {
  width: 60vmax;
  height: 60vmax;
  right: -20vmax;
  top: 20vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 190, 214, 0.7), rgba(232, 190, 214, 0));
  animation: drift-b 31s var(--ease-io) infinite alternate;
}
/* the bokeh's soft edges are in the gradients (a blur filter on a full-screen layer in motion costs the GPU every frame) */
html[data-theme='novel'] .ground .g3 {
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 72%,
      rgba(255, 255, 255, 0.55) 0 13px,
      rgba(255, 255, 255, 0) 31px
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 255, 255, 0.4) 0 29px,
      rgba(255, 255, 255, 0) 47px
    ),
    radial-gradient(
      circle at 64% 84%,
      rgba(239, 167, 126, 0.16) 0 45px,
      rgba(239, 167, 126, 0) 63px
    ),
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35) 0 5px, rgba(255, 255, 255, 0) 23px);
  animation: drift-c 37s var(--ease-io) infinite alternate;
}

/* ============================== QUEST · Night ==============================
   surface #1B2A6E · edge #FFFFFF · ink #FFFFFF · accent #9FB0FF · muted #DDDDDD · veil #111111 · title #000 · titleInk #FFF ·
   ground: deep #0A0E1E, top #18234F, light #DCE4FF
   A bordered window, the name in its own tab, mono type behind a block caret; Screen rolls a scan band every 13 s. */
html[data-theme='quest'] {
  --prose-accent: #3348b5;
  --label: #9fb0ff;
  --bg: #0a0e1e;
  --ink: #ffffff;
  --ink-soft: #c3cbee;
  --link: #c9d3ff;
  --rule: rgba(159, 176, 255, 0.28);
  --focus: #ffffff;
  --head-bg: rgba(10, 14, 30, 0.9);
  --head-rule: 2px solid #1b2a6e;
  --surface: #1b2a6e;
  --surface-ink: #ffffff;
  --surface-soft: #dddddd;
  --edge: #ffffff;
  --accent: #9fb0ff;
  --ring: #ffffff;
  --title-bg: #000000;
  --title-ink: #ffffff;
  --voice-a: #5cd1b4;
  --voice-b: #ff7a7d;
  --plate-bg: #1b2a6e;
  --plate-ink: #ffffff;
  --plate-border: 2px solid #ffffff;
  --plate-radius: 6px;
  --plate-pad: 3px 10px;
  --plate-case: uppercase;
  --plate-track: 0.06em;
  --plate-size: 13px;
  --plate-weight: 400;
  --btn-bg: #1b2a6e;
  --btn-ink: #ffffff;
  --btn-border: 3px solid #ffffff;
  --radius-btn: 8px;
  --btn-hover: none;
  --f-display: 'DC Departure', ui-monospace, monospace;
  --f-ui: 'DC Departure', ui-monospace, monospace;
  --d-weight: 400;
  --d-track: -0.01em;
  --d-case: none;
  --d-stretch: 100%;
  --d-scale: 0.86;
  --d-lh: 1.12;
  --ui-weight: 400;
  --ui-track: 0.02em;
  --ui-case: uppercase;
  --sub-weight: 400;
  --sub-scale: 0.86;
  --brand-case: uppercase;
  --brand-size: 19px;
  --nav-size: 14px;
  --radius-lg: 10px;
  --tile-radius: 6px;
  --stage-radius: 8px;
  --cover-radius: 6px;
  --tc-radius: 6px;
  --row-radius: 4px;
  --stage-border: 3px solid #ffffff;
  --stage-shadow: 0 0 0 3px #0a0e1e, 0 0 0 4px rgba(159, 176, 255, 0.5), 0 24px 50px -24px #000;
  --panel-border: 3px solid #ffffff;
  --panel-shadow: inset 0 0 0 3px #1b2a6e, inset 0 0 0 4px rgba(159, 176, 255, 0.55);
  --tc-border: 3px solid #ffffff;
  --tc-shadow: inset 0 0 0 3px #000, inset 0 0 0 4px rgba(159, 176, 255, 0.4);
  --cue-c: #ffffff;
  --cue-anim: cue-blink 0.6s steps(1) infinite;
  --row-hover: rgba(255, 255, 255, 0.06);
  --row-on: rgba(159, 176, 255, 0.2);
  --slab-bg: #1b2a6e;
  --slab-edge: #ffffff;
  --slab-line: rgba(255, 255, 255, 0.28);
  --dock-bg: #1b2a6e;
}
html[data-theme='quest'] .panel {
  background: linear-gradient(#22358a, #1b2a6e 46%);
}
html[data-theme='quest'] .btn::before {
  content: '▶';
  font-size: 0.8em;
  width: 0;
  overflow: hidden;
  margin-right: -8px;
  transition:
    width 120ms steps(2),
    margin 120ms steps(2);
}
html[data-theme='quest'] .btn:hover::before,
html[data-theme='quest'] .btn:focus-visible::before {
  width: 1em;
  margin-right: 0;
}
html[data-theme='quest'] .hero h1 {
  text-shadow: 3px 3px 0 #1b2a6e;
}
html[data-theme='quest'] .cover img {
  border: 3px solid #ffffff;
}
html[data-theme='quest'] .tile-frame {
  border: 3px solid #ffffff;
}
html[data-theme='quest'] .ground {
  background: #0a0e1e;
}
html[data-theme='quest'] .ground .g1 {
  inset: 0;
  background: linear-gradient(#18234f, #0a0e1e 55vh);
  opacity: 0.9;
}
html[data-theme='quest'] .ground .g2 {
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(220, 228, 255, 0.045) 0 1px,
    transparent 1px 3px
  );
}
html[data-theme='quest'] .ground .g3 {
  left: 0;
  right: 0;
  height: 34vh;
  top: -34vh;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(159, 176, 255, 0.09) 70%,
    rgba(220, 228, 255, 0.16) 92%,
    transparent
  );
  animation: scanband 13s linear infinite;
}

/* ============================== IMPACT · Punch ==============================
   surface #FFFFFF · edge #111111 · ink #000 · accent #D40F2C · muted #FFF · veil #000 · veilInk #FFF · title = accent · titleInk #FFF ·
   ground: page #D40F2C, deep #7E0516, lift #FF4258, mark #000
   A panel slams in on its diagonal, the name is a skewed rubber stamp, condensed black caps cut in; Stripes, lit. */
html[data-theme='impact'] {
  --prose-accent: #b80d27;
  --label: #ffffff;
  --bg: #d40f2c;
  --ink: #ffffff;
  --ink-soft: #ffe4e7;
  --link: #ffffff;
  --rule: rgba(0, 0, 0, 0.28);
  --focus: #111;
  --head-bg: #111111;
  --head-ink: #ffffff;
  --head-rule: 0;
  --head-blur: none;
  --surface: #ffffff;
  --surface-ink: #000000;
  --surface-soft: #2b2b2b;
  --surface-link: #b30c25;
  --edge: #111111;
  --accent: #d40f2c;
  --ring: #ffffff;
  --title-bg: #d40f2c;
  --title-ink: #ffffff;
  --voice-a: #12a58c;
  --voice-b: #d40f2c;
  --voice-a-ink: #0b7e6a;
  --voice-b-ink: #b30c25;
  --plate-bg: #ffffff;
  --plate-ink: #000000;
  --plate-border: 3px solid #111;
  --plate-radius: 0;
  --plate-pad: 4px 12px 3px;
  --plate-case: uppercase;
  --plate-track: 0.01em;
  --plate-size: 17px;
  --plate-weight: 900;
  --plate-shadow: 4px 4px 0 #111;
  --plate-transform: rotate(-4deg) skewX(-8deg);
  --btn-bg: #111111;
  --btn-ink: #ffffff;
  --btn-border: 3px solid #111;
  --radius-btn: 0;
  --btn-skew: skewX(-8deg);
  --btn-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  --btn-hover: skewX(-8deg) translate(-2px, -2px);
  --f-display: 'DC Archivo', 'Arial Narrow', sans-serif;
  --f-ui: 'DC Archivo', 'Arial Narrow', sans-serif;
  --d-weight: 900;
  --d-stretch: 62%;
  --d-track: 0.005em;
  --d-case: uppercase;
  --d-scale: 1.2;
  --d-lh: 0.9;
  --ui-weight: 850;
  --ui-track: 0.02em;
  --ui-case: uppercase;
  --sub-weight: 900;
  --sub-stretch: 62%;
  --sub-case: uppercase;
  --sub-scale: 1.25;
  --sub-track: 0.01em;
  --brand-case: uppercase;
  --brand-size: 25px;
  --brand-track: 0.01em;
  --nav-size: 16px;
  --radius-lg: 0;
  --tile-radius: 0;
  --stage-radius: 0;
  --cover-radius: 0;
  --tc-radius: 0;
  --row-radius: 0;
  --stage-border: 4px solid #111;
  --stage-shadow: 10px 10px 0 #111;
  --panel-border: 4px solid #111;
  --panel-shadow: 10px 10px 0 #111;
  --tc-border: 4px solid #111;
  --tc-shadow: 10px 10px 0 #111;
  --tile-shadow: 7px 7px 0 #111;
  --cue-c: #111111;
  --cue-anim: cue-bob 0.3s steps(2) infinite alternate;
  --row-hover: #f4f4f4;
  --row-on: #ffe1e5;
  --slab-bg: #ffffff;
  --slab-edge: #111111;
  --slab-line: #dcdcdc;
  --dock-bg: #111111;
}
html[data-theme='impact'] .hero h1,
html[data-theme='impact'] .finale-title {
  text-shadow: 4px 4px 0 #111;
}
html[data-theme='impact'] .top .btn-get {
  --btn-bg: #ffffff;
  --btn-ink: #000;
  --btn-border: 3px solid #ffffff;
  --btn-shadow: 4px 4px 0 #d40f2c;
}
html[data-theme='impact'] .hero-sub {
  text-shadow: 3px 3px 0 #111;
}
html[data-theme='impact'] .steps > li:nth-child(odd) {
  transform: rotate(-0.6deg);
}
html[data-theme='impact'] .steps > li:nth-child(even) {
  transform: rotate(0.5deg);
}
html[data-theme='impact'] .tc-frame {
  background:
    radial-gradient(circle at 100% 0, transparent 0, rgba(0, 0, 0, 0) 0),
    radial-gradient(rgba(126, 5, 22, 0.55) 1.6px, transparent 2px) 0 0 / 11px 11px,
    #d40f2c;
}
html[data-theme='impact'] .title-card .tc-label {
  display: inline-block;
  align-self: flex-start;
  background: #ffffff;
  color: #000;
  padding: 0 12px;
  opacity: 1;
  font-size: 14px;
  transform: skewX(-8deg);
}
html[data-theme='impact'] .tc-title {
  text-shadow: 4px 4px 0 #111;
}
html[data-theme='impact'] .tc-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: #ffffff;
  border-top: 4px solid #111;
}
html[data-theme='impact'] .cover img {
  border: 3px solid #111;
}
html[data-theme='impact'] .cover[aria-pressed='true'] img {
  box-shadow: 6px 6px 0 #111;
  transform: translate(-3px, -3px) rotate(-2deg);
}
html[data-theme='impact'] .cover-name,
html[data-theme='impact'] .cover-kind,
html[data-theme='impact'] .rail-title,
html[data-theme='impact'] .stage-cap {
  color: #fff;
}
html[data-theme='impact'] .tile-meta,
html[data-theme='impact'] .feed-head,
html[data-theme='impact'] .foot-follow {
  color: #ffffff;
}
html[data-theme='impact'] .top,
html[data-theme='impact'] .wardrobe {
  --focus: #ffffff;
}
html[data-theme='impact'] .wardrobe-btn {
  background: #111111;
  border-color: #ffffff;
  color: #ffffff;
}
html[data-theme='impact'] .wardrobe-btn .wb-label {
  color: #ffffff;
}
html[data-theme='glitter'] .wardrobe-title {
  color: #ece7ff;
}
html[data-theme='impact'] .foot nav a,
html[data-theme='impact'] .legal,
html[data-theme='impact'] .foot h2 {
  color: #fff;
}
html[data-theme='impact'] .ground {
  background: #d40f2c;
}
html[data-theme='impact'] .ground .g1 {
  inset: -60px;
  background: repeating-linear-gradient(
    135deg,
    rgba(126, 5, 22, 0.2) 0 22px,
    transparent 22px 44px
  );
  animation: stripes 7s linear infinite;
}
html[data-theme='impact'] .ground .g2 {
  left: -20vmax;
  top: -20vmax;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(closest-side, rgba(255, 66, 88, 0.65), rgba(255, 66, 88, 0));
}
html[data-theme='impact'] .ground .g3 {
  right: 0;
  bottom: 0;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(rgba(126, 5, 22, 0.55) 2px, transparent 2.5px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%);
}

/* ============================== MIST · Noir ==============================
   surface #000 · edge #000 · ink #FFF · accent #FFF/.6 · muted #E9E4D8 · veil #000 · veilInk #E9E4D8 · title #000 · titleInk #FFF ·
   ground: deep #0F0E0D, top #27272B, light #E6E1D6
   No box, no bars: the place is the picture, the name tracked out in the speaker's colour over a caption; Haze drifts at three depths. */
html[data-theme='mist'] {
  --prose-accent: #55524b;
  --label: #a9a498;
  --bg: #0b0a09;
  --ink: #e9e4d8;
  --ink-soft: #a9a498;
  --link: #e9e4d8;
  --rule: rgba(233, 228, 216, 0.15);
  --focus: #e9e4d8;
  --head-bg: rgba(0, 0, 0, 0.72);
  --head-rule: 1px solid rgba(233, 228, 216, 0.08);
  --surface: transparent;
  --surface-ink: #e9e4d8;
  --surface-soft: #a9a498;
  --edge: rgba(233, 228, 216, 0.16);
  --accent: #e9e4d8;
  --ring: #e9e4d8;
  --title-bg: transparent;
  --title-ink: #ffffff;
  --title-label: #a9a498;
  --voice-a: #6fe0c4;
  --voice-b: #ff8f8f;
  --plate-bg: transparent;
  --plate-ink: var(--voice);
  --plate-pad: 0;
  --plate-case: uppercase;
  --plate-track: 0.34em;
  --plate-size: 12px;
  --plate-weight: 500;
  --btn-bg: transparent;
  --btn-ink: #e9e4d8;
  --btn-border: 1px solid rgba(233, 228, 216, 0.55);
  --radius-btn: 0;
  --f-display: 'DC Inter Tight', 'Helvetica Neue', sans-serif;
  --f-ui: 'DC Inter Tight', 'Helvetica Neue', sans-serif;
  --d-weight: 200;
  --d-track: 0.16em;
  --d-case: uppercase;
  --d-stretch: 100%;
  --d-scale: 0.7;
  --d-lh: 1.14;
  --ui-weight: 400;
  --ui-track: 0.24em;
  --ui-case: uppercase;
  --sub-weight: 400;
  --sub-track: 0;
  --sub-scale: 0.92;
  --brand-case: uppercase;
  --brand-track: 0.3em;
  --brand-size: 15px;
  --nav-size: 12px;
  --radius-lg: 2px;
  --tile-radius: 2px;
  --stage-radius: 2px;
  --cover-radius: 2px;
  --tc-radius: 0;
  --row-radius: 0;
  --stage-shadow: 0 30px 60px -30px #000;
  --panel-border: 0;
  --panel-shadow: inset 0 1px 0 rgba(233, 228, 216, 0.16);
  --panel-pad: 24px 20px;
  --panel-pad-d: 38px 40px;
  --tc-pad: 18px 0 6px;
  --tc-pad-d: 26px 0 10px;
  --tc-align: center;
  --tc-sub-inline: auto;
  --tc-label-track: 0.42em;
  --cue-c: #e9e4d8;
  --cue-shape: polygon(0 78%, 100% 78%, 100% 100%, 0 100%);
  --cue-anim: cue-pulse 1.2s var(--ease-io) infinite alternate;
  --row-hover: rgba(233, 228, 216, 0.05);
  --row-on: rgba(233, 228, 216, 0.08);
  --slab-bg: #121110;
  --slab-edge: rgba(233, 228, 216, 0.28);
  --slab-line: rgba(233, 228, 216, 0.16);
  --dock-bg: rgba(0, 0, 0, 0.78);
}
html[data-theme='mist'] .plate > span {
  color: var(--voice);
}
html[data-theme='mist'] .hero-sub,
html[data-theme='mist'] .finale-sub {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 1px #000;
}
html[data-theme='mist'] .tc-title {
  font-size: calc(clamp(24px, 6vw, 44px));
}
html[data-theme='mist'] .tc-frame::before,
html[data-theme='mist'] .tc-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 14px;
  width: 46px;
  height: 1px;
  margin-left: -23px;
  background: rgba(233, 228, 216, 0.5);
}
html[data-theme='mist'] .tc-frame::after {
  top: auto;
  bottom: 14px;
}
html[data-theme='mist'] .step-title,
html[data-theme='mist'] .plat-title,
html[data-theme='mist'] .pro-title {
  font-weight: 250;
  letter-spacing: 0.12em;
}
html[data-theme='mist'] .tile-frame {
  box-shadow: none;
}
html[data-theme='mist'] .ground {
  background: #0b0a09;
}
html[data-theme='mist'] .ground .g1 {
  inset: 0;
  background: linear-gradient(#232327, #0b0a09 60vh);
  opacity: 0.55;
}
/* the haze is soft in its gradients; no blur filter on these wide layers in motion */
html[data-theme='mist'] .ground .g2 {
  left: -40vw;
  top: 10vh;
  width: 180vw;
  height: 50vh;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 30% 22% at 20% 50%, rgba(230, 225, 214, 0.11), transparent),
    radial-gradient(ellipse 26% 18% at 60% 40%, rgba(230, 225, 214, 0.09), transparent),
    radial-gradient(ellipse 22% 16% at 90% 60%, rgba(230, 225, 214, 0.1), transparent);
  animation: haze 48s linear infinite;
}
html[data-theme='mist'] .ground .g3 {
  left: -40vw;
  top: 52vh;
  width: 180vw;
  height: 46vh;
  opacity: 0.6;
  background:
    radial-gradient(ellipse 34% 26% at 30% 50%, rgba(230, 225, 214, 0.08), transparent),
    radial-gradient(ellipse 30% 22% at 75% 45%, rgba(230, 225, 214, 0.07), transparent);
  animation: haze 71s linear infinite reverse;
}

/* ============================== VELVET · Rose ==============================
   surface #140A0F · edge #E0A0B0 · ink #F8E9EE · accent #F3C4D0 · muted #E5C9D1 · veil #3A1C28 · veilInk #F8E9EE · title #1C0D14 · titleInk #E0A0B0 ·
   ground: body #2E1022, deep #170911, metal #E0A0B0, sheen #8E4466
   Two figures over a frosted band whose hairline gleams at the centre, a plate unfolding from the band's edge, serif, a lozenge ornament; Silk. */
html[data-theme='velvet'] {
  --prose-accent: #963655;
  --label: #e0a0b0;
  --bg: #170911;
  --ink: #f8e9ee;
  --ink-soft: #e0c3cc;
  --link: #f3c4d0;
  --rule: rgba(224, 160, 176, 0.26);
  --focus: #f3c4d0;
  --head-bg: rgba(23, 9, 17, 0.82);
  --head-rule: 1px solid rgba(224, 160, 176, 0.3);
  --surface: rgba(20, 10, 15, 0.86);
  --surface-ink: #f8e9ee;
  --surface-soft: #e5c9d1;
  --edge: rgba(224, 160, 176, 0.5);
  --accent: #f3c4d0;
  --ring: #e0a0b0;
  --title-bg: #1c0d14;
  --title-ink: #e0a0b0;
  --title-label: #e5c9d1;
  --voice-a: #6fd3ba;
  --voice-b: #f08a90;
  --plate-bg: #140a0f;
  --plate-ink: #f8e9ee;
  --plate-border: 1px solid #e0a0b0;
  --plate-radius: 2px;
  --plate-pad: 5px 16px;
  --plate-case: uppercase;
  --plate-track: 0.18em;
  --plate-size: 12.5px;
  --plate-weight: 500;
  --plate-origin: left center;
  --btn-bg: #2e1022;
  --btn-ink: #f8e9ee;
  --btn-border: 1px solid #e0a0b0;
  --radius-btn: 2px;
  --f-display: 'DC Fraunces', Georgia, serif;
  --f-ui: 'DC Fraunces', Georgia, serif;
  --d-weight: 480;
  --d-track: -0.012em;
  --d-case: none;
  --d-stretch: 100%;
  --d-fvs: 'opsz' 144, 'SOFT' 30;
  --d-lh: 1.02;
  --d-scale: 1.02;
  --ui-weight: 560;
  --ui-track: 0.14em;
  --ui-case: uppercase;
  --sub-weight: 400;
  --sub-style: italic;
  --sub-scale: 1.06;
  --brand-size: 22px;
  --radius-lg: 6px;
  --tile-radius: 4px;
  --stage-radius: 4px;
  --cover-radius: 4px;
  --tc-radius: 4px;
  --row-radius: 2px;
  --stage-border: 1px solid rgba(224, 160, 176, 0.55);
  --stage-shadow: 0 30px 70px -30px #000;
  --panel-border: 1px solid rgba(224, 160, 176, 0.4);
  --panel-blur: blur(22px) saturate(1.3);
  --panel-shadow: 0 30px 60px -36px #000;
  --tc-align: center;
  --tc-sub-inline: auto;
  --tc-border: 1px solid rgba(224, 160, 176, 0.35);
  --cue-c: #e0a0b0;
  --cue-shape: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --row-hover: rgba(224, 160, 176, 0.06);
  --row-on: rgba(224, 160, 176, 0.14);
  --slab-bg: #1c0d14;
  --slab-edge: rgba(224, 160, 176, 0.8);
  --slab-line: rgba(224, 160, 176, 0.25);
  --dock-bg: rgba(28, 13, 20, 0.92);
}
html[data-theme='velvet'] .panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f8e9ee 50%, transparent);
  opacity: 0.9;
}
html[data-theme='velvet'] .tc-frame::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  width: 190px;
  height: 12px;
  margin-left: -95px;
  background:
    linear-gradient(90deg, rgba(224, 160, 176, 0), #e0a0b0) left center / 84px 1px no-repeat,
    linear-gradient(90deg, #e0a0b0, rgba(224, 160, 176, 0)) right center / 84px 1px no-repeat,
    linear-gradient(45deg, transparent 46%, #e0a0b0 46% 54%, transparent 54%) center / 12px 12px
      no-repeat;
}
html[data-theme='velvet'] .tc-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 13.5px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  transform: rotate(45deg);
  border: 1px solid #e0a0b0;
  background: #1c0d14;
}
html[data-theme='velvet'] .tc-title {
  font-weight: 420;
}
html[data-theme='velvet'] .plate > span {
  animation: none;
}
html[data-theme='velvet'] .ground {
  background: #170911;
}
html[data-theme='velvet'] .ground .g1 {
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(46, 16, 34, 0) 0,
    rgba(46, 16, 34, 0.85) 7vw,
    rgba(23, 9, 17, 0) 14vw
  );
}
html[data-theme='velvet'] .ground .g2 {
  top: -30vh;
  bottom: -30vh;
  left: -60vw;
  width: 60vw;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    rgba(142, 68, 102, 0),
    rgba(142, 68, 102, 0.22) 50%,
    rgba(142, 68, 102, 0)
  );
  animation: sheen 15s var(--ease-io) infinite;
}
html[data-theme='velvet'] .ground .g3 {
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  background: linear-gradient(to top, rgba(23, 9, 17, 0.9), rgba(23, 9, 17, 0));
}

/* ============================== GLITTER · Lavender ==============================
   surface #B9A6FF (glass) · edge #FFF · ink #221A4D · accent #FFF/.26 · muted #3E3570 · veil #15122A · veilInk #FFF · title #E4DCFF · titleInk #2E2455 ·
   ground: bottom #181230, top #41347A, glass #B9A6FF, spark #F6F2FF
   The pair on tinted glass, the line white with a dark outline at 8 % of its size, a detached rounded tag; long copy sits on the narration slab. */
html[data-theme='glitter'] {
  --prose-accent: #6447c8;
  --label: #e4dcff;
  --bg: #1a1435;
  --ink: #ffffff;
  --ink-soft: #d9d0ff;
  --link: #e4dcff;
  --rule: rgba(255, 255, 255, 0.2);
  --focus: #ffffff;
  --head-bg: rgba(26, 20, 53, 0.62);
  --head-rule: 1px solid rgba(255, 255, 255, 0.12);
  --surface: rgba(21, 18, 42, 0.74);
  --surface-ink: #ffffff;
  --surface-soft: #d9d0ff;
  --edge: rgba(255, 255, 255, 0.42);
  --accent: #b9a6ff;
  --ring: #ffffff;
  --title-bg: #e4dcff;
  --title-ink: #2e2455;
  --voice-a: #8be6cf;
  --voice-b: #ffa3b1;
  --voice-a-ink: #8be6cf;
  --voice-b-ink: #ffb3bf;
  --plate-ink: #221a4d;
  --plate-radius: 11px;
  --plate-pad: 5px 13px;
  --plate-size: 14.5px;
  --plate-weight: 600;
  --plate-case: none;
  --plate-track: 0;
  --plate-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.45);
  --btn-bg: rgba(185, 166, 255, 0.62);
  --btn-ink: #ffffff;
  --btn-border: 1.5px solid rgba(255, 255, 255, 0.75);
  --radius-btn: 999px;
  --f-display: 'DC Fredoka', ui-rounded, sans-serif;
  --f-ui: 'DC Fredoka', ui-rounded, sans-serif;
  --d-weight: 600;
  --d-track: 0;
  --d-case: none;
  --d-stretch: 100%;
  --d-lh: 1.04;
  --d-scale: 1.02;
  --ui-weight: 600;
  --ui-track: 0.01em;
  --ui-case: none;
  --sub-weight: 500;
  --radius-lg: 28px;
  --tile-radius: 20px;
  --stage-radius: 24px;
  --cover-radius: 18px;
  --tc-radius: 28px;
  --row-radius: 14px;
  --stage-border: 1.5px solid rgba(255, 255, 255, 0.55);
  --stage-shadow: 0 0 0 6px rgba(185, 166, 255, 0.18), 0 30px 60px -28px rgba(0, 0, 0, 0.7);
  --panel-border: 1.5px solid rgba(255, 255, 255, 0.34);
  --panel-blur: blur(16px) saturate(1.2);
  --panel-shadow: 0 0 0 1px rgba(185, 166, 255, 0.22), 0 24px 60px -26px rgba(0, 0, 0, 0.65);
  --tc-shadow: 0 0 0 6px rgba(228, 220, 255, 0.16), 0 26px 50px -24px rgba(0, 0, 0, 0.6);
  --cue-c: #ffffff;
  --cue-shape: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  --cue-anim: cue-twinkle 0.9s var(--ease-io) infinite alternate;
  --cue-r: 0;
  --row-hover: rgba(185, 166, 255, 0.1);
  --row-on: rgba(185, 166, 255, 0.24);
  --slab-bg: rgba(185, 166, 255, 0.2);
  --slab-edge: rgba(255, 255, 255, 0.6);
  --slab-line: rgba(255, 255, 255, 0.28);
  --dock-bg: rgba(65, 52, 122, 0.78);
}
html[data-theme='glitter'] .hero h1,
html[data-theme='glitter'] .tc-title,
html[data-theme='glitter'] .finale-title,
html[data-theme='glitter'] .hero-sub,
html[data-theme='glitter'] .step-title,
html[data-theme='glitter'] .pro-title,
html[data-theme='glitter'] .plat-title,
html[data-theme='glitter'] .tile-title {
  color: #ffffff;
  -webkit-text-stroke: 0.13em #221a4d;
  paint-order: stroke fill;
}
html[data-theme='glitter'] .title-card .tc-title {
  -webkit-text-stroke: 0.13em #2e2455;
}
html[data-theme='glitter'] .title-card .tc-sub,
html[data-theme='glitter'] .title-card .tc-label {
  color: #2e2455;
}
html[data-theme='glitter'] .tc-frame {
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.85), transparent 46%),
    radial-gradient(circle at 100% 100%, #cbbeff, transparent 60%), #e4dcff;
}
html[data-theme='glitter'] .panel {
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    rgba(21, 18, 42, 0.74);
}
html[data-theme='glitter'] .btn {
  -webkit-text-stroke: 3px #221a4d;
  paint-order: stroke fill;
  backdrop-filter: blur(10px);
}
html[data-theme='glitter'] .ground {
  background: #1a1435;
}
html[data-theme='glitter'] .ground .g1 {
  left: -25vmax;
  top: -25vmax;
  width: 85vmax;
  height: 85vmax;
  background: radial-gradient(closest-side, rgba(185, 166, 255, 0.42), rgba(185, 166, 255, 0));
  animation: drift-a 30s var(--ease-io) infinite alternate;
}
html[data-theme='glitter'] .ground .g2 {
  right: -25vmax;
  bottom: -30vmax;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(closest-side, rgba(255, 143, 208, 0.3), rgba(255, 143, 208, 0));
  animation: drift-b 34s var(--ease-io) infinite alternate;
}
html[data-theme='glitter'] .ground .g3 {
  inset: 0;
  background-image:
    radial-gradient(circle, #f6f2ff 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(246, 242, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle, #ffffff 0 1.8px, transparent 2.4px);
  background-size:
    190px 170px,
    130px 230px,
    310px 270px;
  background-position:
    20px 40px,
    90px 10px,
    160px 120px;
  animation: twinkle 3.1s var(--ease-io) infinite alternate;
}

/* ============================== DEADLINE · Ink ==============================
   surface #0F0F13 · edge #3A3A44 · ink #ECECEA · accent #8D8D96 · muted #CFCFD4 · veil #0F0F13 · title #0F0F13 · titleInk #ECECEA ·
   ground: deep #0F0E11, top #262833, glow #8FA2C8, lit #F2D9A8, line #A9B0C2
   One opaque strip edge to edge with a thick rule in the speaker's colour, the name big and heavy, left-aligned posters; Rays. */
html[data-theme='deadline'] {
  --prose-accent: #0b7560;
  --label: #3fd0b0;
  --bg: #0f0e11;
  --ink: #ececea;
  --ink-soft: #a9a9b2;
  --link: #ececea;
  --rule: #34343d;
  --focus: #f2d9a8;
  --head-bg: rgba(15, 15, 19, 0.94);
  --head-rule: 4px solid var(--voice-a);
  --head-blur: none;
  --surface: #16161b;
  --surface-ink: #ececea;
  --surface-soft: #cfcfd4;
  --edge: #3a3a44;
  --accent: #f2d9a8;
  --ring: var(--voice-a);
  --title-bg: transparent;
  --title-ink: #ececea;
  --voice-a: #3fd0b0;
  --voice-b: #ff5e63;
  --plate-bg: transparent;
  --plate-ink: var(--voice);
  --plate-pad: 0;
  --plate-radius: 0;
  --plate-case: uppercase;
  --plate-track: -0.005em;
  --plate-size: 22px;
  --plate-weight: 900;
  --btn-bg: #ececea;
  --btn-ink: #0f0f13;
  --radius-btn: 0;
  --btn-shadow: inset 7px 0 0 var(--voice-a);
  --f-display: 'DC Mona', system-ui, sans-serif;
  --f-ui: 'DC Mona', system-ui, sans-serif;
  --d-weight: 900;
  --d-stretch: 125%;
  --d-track: -0.02em;
  --d-case: uppercase;
  --d-scale: 0.86;
  --d-lh: 0.94;
  --ui-weight: 750;
  --ui-track: 0.03em;
  --ui-case: uppercase;
  --sub-weight: 800;
  --sub-stretch: 112%;
  --sub-scale: 0.95;
  --brand-case: uppercase;
  --brand-size: 19px;
  --nav-size: 13px;
  --radius-lg: 0;
  --tile-radius: 0;
  --stage-radius: 0;
  --cover-radius: 0;
  --tc-radius: 0;
  --row-radius: 0;
  --stage-shadow: 0 0 0 1px #3a3a44, 0 30px 70px -36px #000;
  --panel-border: 0;
  --panel-shadow: inset 0 8px 0 var(--voice, var(--voice-a));
  --panel-pad: 30px 20px 18px;
  --panel-pad-d: 44px 40px 32px;
  --tc-pad: 4px 0 4px 22px;
  --tc-pad-d: 6px 0 6px 34px;
  --tc-border: 0;
  --tc-shadow: inset 10px 0 0 var(--voice-a);
  --cue-c: var(--voice-a);
  --cue-shape: inset(0 22% 0 22%);
  --cue-anim: cue-pulse 0.9s var(--ease-io) infinite alternate;
  --cue-r: 0;
  --row-hover: rgba(236, 236, 234, 0.04);
  --row-on: rgba(236, 236, 234, 0.07);
  --slab-bg: #1b1b21;
  --slab-edge: #3a3a44;
  --slab-line: #2e2e36;
  --dock-bg: #16161b;
}
html[data-theme='deadline'] .steps > li:nth-child(even),
html[data-theme='deadline'] .plat-group:nth-of-type(2),
html[data-theme='deadline'] .pro-band {
  --voice: var(--voice-b);
}
html[data-theme='deadline'] .plate > span {
  color: var(--voice);
}
html[data-theme='deadline'] .panel {
  box-shadow: inset 0 8px 0 var(--voice, var(--voice-a));
}
html[data-theme='deadline'] .tc-title {
  font-size: calc(clamp(34px, 8.4vw, 76px));
}
html[data-theme='deadline'] .tc-label {
  color: var(--voice-a);
  opacity: 1;
}
html[data-theme='deadline'] .hero h1 {
  font-size: clamp(36px, 9.2vw, 44px);
}
@media (min-width: 900px) {
  html[data-theme='deadline'] .hero h1 {
    font-size: clamp(44px, 4.4vw, 64px);
  }
}
html[data-theme='deadline'] .kind-text {
  color: var(--voice-a);
}
html[data-theme='deadline'] .ground {
  background: #0f0e11;
}
html[data-theme='deadline'] .ground .g1 {
  right: -60vmax;
  top: -60vmax;
  width: 140vmax;
  height: 140vmax;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(242, 217, 168, 0.05) 0 6deg,
    transparent 6deg 15deg
  );
  border-radius: 50%;
  animation: rays 160s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
html[data-theme='deadline'] .ground .g2 {
  right: -20vmax;
  top: -20vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgba(242, 217, 168, 0.1), transparent);
}

/* ============================== FLIRT · Sakura ==============================
   surface #FFF0F8 · edge #E6B5D5 · ink #3B1F3D · accent #D38AB8 · muted #8E5E86 · veil #2A1430 · veilInk #F4E6EE · title #2A1230 · titleInk #FFE6F2 ·
   ground: accent #D38AB8, bloom #FFC6E2, deep #1E0E24, top #4C2448
   One figure close like a CG over an ornamented card (double border, leaves, a halo), the name on a pointed ribbon with a heart; Petals. */
html[data-theme='flirt'] {
  --prose-accent: #a1397b;
  --label: #9d3f7e;
  --bg: #fff0f8;
  --ink: #3b1f3d;
  --ink-soft: #7e4f77;
  --link: #9d3f7e;
  --rule: #ebc3dc;
  --focus: #3b1f3d;
  --head-bg: rgba(255, 240, 248, 0.82);
  --head-rule: 1px solid #ebc3dc;
  --surface: #fff8fc;
  --surface-ink: #3b1f3d;
  --surface-soft: #7e4f77;
  --edge: #d38ab8;
  --accent: #d38ab8;
  --ring: #b8679a;
  --title-bg: #2a1230;
  --title-ink: #ffe6f2;
  --voice-a: #1c8371;
  --voice-b: #c8424e;
  --plate-ink: #ffffff;
  --plate-radius: 0;
  --plate-pad: 5px 22px 5px 22px;
  --plate-size: 14.5px;
  --plate-weight: 600;
  --plate-case: none;
  --plate-track: 0.01em;
  --plate-clip: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%);
  --btn-bg: #9d3f7e;
  --btn-ink: #ffffff;
  --radius-btn: 999px;
  --btn-shadow:
    inset 0 0 0 2px #9d3f7e, inset 0 0 0 3.5px rgba(255, 255, 255, 0.55),
    0 8px 22px -10px rgba(157, 63, 126, 0.6);
  --f-display: 'DC Fraunces', Georgia, serif;
  --f-ui: 'DC Fraunces', Georgia, serif;
  --d-weight: 460;
  --d-style: italic;
  --d-track: -0.01em;
  --d-case: none;
  --d-stretch: 100%;
  --d-fvs: 'opsz' 144, 'SOFT' 100;
  --d-lh: 1.02;
  --d-scale: 1.04;
  --ui-weight: 600;
  --ui-track: 0.01em;
  --ui-case: none;
  --sub-weight: 400;
  --sub-style: italic;
  --brand-size: 23px;
  --radius-lg: 8px;
  --tile-radius: 8px;
  --stage-radius: 8px;
  --cover-radius: 8px;
  --tc-radius: 8px;
  --row-radius: 8px;
  --stage-border: 1.5px solid #d38ab8;
  --stage-shadow: 0 0 0 5px #fff8fc, 0 0 0 6px #e6b5d5, 0 0 46px rgba(211, 138, 184, 0.45);
  --panel-border: 1.5px solid #d38ab8;
  --panel-shadow:
    inset 0 0 0 6px #fff8fc, inset 0 0 0 7px #e6b5d5, 0 0 44px -6px rgba(211, 138, 184, 0.42);
  --tc-align: center;
  --tc-sub-inline: auto;
  --tc-shadow: inset 0 0 0 6px #2a1230, inset 0 0 0 7px rgba(255, 230, 242, 0.35);
  --cue-c: #d38ab8;
  --cue-shape: path(
    'M9 15C9 15 0 9.5 0 4.5C0 1.6 2.2 0 4.5 0C6.5 0 8 1.2 9 2.8C10 1.2 11.5 0 13.5 0C15.8 0 18 1.6 18 4.5C18 9.5 9 15 9 15Z'
  );
  --cue-r: 0;
  --row-hover: rgba(211, 138, 184, 0.08);
  --row-on: rgba(211, 138, 184, 0.2);
  --slab-bg: #fff8fc;
  --slab-edge: #d38ab8;
  --slab-line: #f1d0e4;
  --dock-bg: rgba(255, 248, 252, 0.92);
}
html[data-theme='flirt'] .plate > span::before {
  content: '\2665\FE0E\00a0';
  font-style: normal;
}
html[data-theme='flirt'] .panel {
  background:
    var(--leaf) top 12px left 12px / 22px 22px no-repeat,
    var(--leaf-r) top 12px right 12px / 22px 22px no-repeat,
    var(--leaf-b) bottom 12px left 12px / 22px 22px no-repeat,
    var(--leaf-br) bottom 12px right 12px / 22px 22px no-repeat,
    #fff8fc;
}
html[data-theme='flirt'] {
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23D38AB8' stroke-width='1.2'%3E%3Cpath d='M2 20C2 10 6 4 20 2'/%3E%3Cpath d='M6 12c3-1 5 1 5 4-3 1-5-1-5-4z' fill='%23E6B5D5'/%3E%3Cpath d='M12 5c2 2 1 5-2 6-1-2 0-5 2-6z' fill='%23E6B5D5'/%3E%3C/g%3E%3C/svg%3E");
  --leaf-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23D38AB8' stroke-width='1.2' transform='matrix(-1 0 0 1 22 0)'%3E%3Cpath d='M2 20C2 10 6 4 20 2'/%3E%3Cpath d='M6 12c3-1 5 1 5 4-3 1-5-1-5-4z' fill='%23E6B5D5'/%3E%3Cpath d='M12 5c2 2 1 5-2 6-1-2 0-5 2-6z' fill='%23E6B5D5'/%3E%3C/g%3E%3C/svg%3E");
  --leaf-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23D38AB8' stroke-width='1.2' transform='matrix(1 0 0 -1 0 22)'%3E%3Cpath d='M2 20C2 10 6 4 20 2'/%3E%3Cpath d='M6 12c3-1 5 1 5 4-3 1-5-1-5-4z' fill='%23E6B5D5'/%3E%3Cpath d='M12 5c2 2 1 5-2 6-1-2 0-5 2-6z' fill='%23E6B5D5'/%3E%3C/g%3E%3C/svg%3E");
  --leaf-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23D38AB8' stroke-width='1.2' transform='matrix(-1 0 0 -1 22 22)'%3E%3Cpath d='M2 20C2 10 6 4 20 2'/%3E%3Cpath d='M6 12c3-1 5 1 5 4-3 1-5-1-5-4z' fill='%23E6B5D5'/%3E%3Cpath d='M12 5c2 2 1 5-2 6-1-2 0-5 2-6z' fill='%23E6B5D5'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme='flirt'] .tc-frame::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  width: 200px;
  height: 14px;
  margin-left: -100px;
  background:
    linear-gradient(90deg, rgba(255, 230, 242, 0), #d38ab8) left center / 86px 1px no-repeat,
    linear-gradient(90deg, #d38ab8, rgba(255, 230, 242, 0)) right center / 86px 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 15'%3E%3Cpath fill='%23D38AB8' d='M9 15C9 15 0 9.5 0 4.5C0 1.6 2.2 0 4.5 0C6.5 0 8 1.2 9 2.8C10 1.2 11.5 0 13.5 0C15.8 0 18 1.6 18 4.5C18 9.5 9 15 9 15Z'/%3E%3C/svg%3E")
      center / 15px 13px no-repeat;
}
html[data-theme='flirt'] .title-card .tc-label {
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 15px;
}
html[data-theme='flirt'] .ground {
  background: #fff0f8;
}
html[data-theme='flirt'] .ground .g1 {
  left: -20vmax;
  top: -24vmax;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(closest-side, rgba(255, 198, 226, 0.85), rgba(255, 198, 226, 0));
  animation: drift-a 28s var(--ease-io) infinite alternate;
}
html[data-theme='flirt'] .ground .g2 {
  right: -22vmax;
  bottom: -26vmax;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgba(211, 138, 184, 0.3), rgba(211, 138, 184, 0));
  animation: drift-b 33s var(--ease-io) infinite alternate;
}
/* the six petals: where each falls, how long it takes, where in its fall it starts */
html[data-theme='flirt'] .ground .petal[data-p='1'] {
  --x: 8%;
  --d: 13s;
  --o: -2s;
}
html[data-theme='flirt'] .ground .petal[data-p='2'] {
  --x: 22%;
  --d: 17s;
  --o: -9s;
}
html[data-theme='flirt'] .ground .petal[data-p='3'] {
  --x: 41%;
  --d: 15s;
  --o: -5s;
}
html[data-theme='flirt'] .ground .petal[data-p='4'] {
  --x: 63%;
  --d: 19s;
  --o: -12s;
}
html[data-theme='flirt'] .ground .petal[data-p='5'] {
  --x: 78%;
  --d: 14s;
  --o: -7s;
}
html[data-theme='flirt'] .ground .petal[data-p='6'] {
  --x: 92%;
  --d: 18s;
  --o: -3s;
}
html[data-theme='flirt'] .ground .petal {
  display: block;
  position: absolute;
  top: -40px;
  left: var(--x);
  width: 14px;
  height: 11px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #ffd3e8, #e79cc6);
  opacity: 0.75;
  animation: petal var(--d) linear var(--o) infinite;
}

/* ============================== ground motion (slow, eased, off the faces; nothing flashes) ============================== */
@keyframes drift-a {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(8vw, 6vh);
  }
}
@keyframes drift-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-7vw, -5vh);
  }
}
@keyframes drift-c {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-3vw, 4vh);
  }
}
@keyframes scanband {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(170vh);
  }
}
@keyframes stripes {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(62.2px, 0);
  }
}
@keyframes haze {
  from {
    transform: translateX(-20vw);
  }
  to {
    transform: translateX(20vw);
  }
}
@keyframes sheen {
  0% {
    transform: skewX(-18deg) translateX(0);
  }
  100% {
    transform: skewX(-18deg) translateX(260vw);
  }
}
@keyframes twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.95;
  }
}
@keyframes rays {
  to {
    transform: rotate(360deg);
  }
}
@keyframes petal {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(26px, 28vh) rotate(110deg);
  }
  50% {
    transform: translate(-14px, 56vh) rotate(200deg);
  }
  75% {
    transform: translate(22px, 84vh) rotate(290deg);
  }
  100% {
    transform: translate(0, 112vh) rotate(380deg);
  }
}

/* the themes grid: each card is a swatch of its own skin, whatever the page wears */
.tcard[data-t='novel'] {
  --sw-surface: #fffdf9;
  --sw-ink: #1d1426;
  --sw-edge: rgba(29, 20, 38, 0.12);
  --sw-accent: #a3365e;
  --sw-btn: #1d1426;
  --sw-btn-ink: #f6ebdd;
}
.tcard[data-t='quest'] {
  --sw-surface: #1b2a6e;
  --sw-ink: #ffffff;
  --sw-edge: #ffffff;
  --sw-accent: #9fb0ff;
  --sw-btn: #ffffff;
  --sw-btn-ink: #1b2a6e;
  --sw-btn-r: 6px;
}
.tcard[data-t='impact'] {
  --sw-surface: #ffffff;
  --sw-ink: #000000;
  --sw-edge: #111111;
  --sw-accent: #d40f2c;
  --sw-btn: #111111;
  --sw-btn-ink: #ffffff;
  --sw-btn-r: 0;
}
.tcard[data-t='mist'] {
  --sw-surface: #0b0a09;
  --sw-ink: #e9e4d8;
  --sw-edge: rgba(233, 228, 216, 0.22);
  --sw-accent: #a9a498;
  --sw-btn: #e9e4d8;
  --sw-btn-ink: #0b0a09;
  --sw-btn-r: 0;
}
.tcard[data-t='velvet'] {
  --sw-surface: #1c0d14;
  --sw-ink: #f8e9ee;
  --sw-edge: rgba(224, 160, 176, 0.55);
  --sw-accent: #e0a0b0;
  --sw-btn: #e0a0b0;
  --sw-btn-ink: #1c0d14;
  --sw-btn-r: 2px;
}
.tcard[data-t='glitter'] {
  --sw-surface: #2a2152;
  --sw-ink: #ffffff;
  --sw-edge: rgba(255, 255, 255, 0.4);
  --sw-accent: #cfc2ff;
  --sw-btn: #b9a6ff;
  --sw-btn-ink: #221a4d;
}
.tcard[data-t='deadline'] {
  --sw-surface: #16161b;
  --sw-ink: #ececea;
  --sw-edge: #3a3a44;
  --sw-accent: #f2d9a8;
  --sw-btn: #ececea;
  --sw-btn-ink: #0f0f13;
  --sw-btn-r: 0;
}
.tcard[data-t='flirt'] {
  --sw-surface: #fff8fc;
  --sw-ink: #3b1f3d;
  --sw-edge: #d38ab8;
  --sw-accent: #9d3f7e;
  --sw-btn: #9d3f7e;
  --sw-btn-ink: #ffffff;
}
.tcard[data-t='impact'] {
  border-width: 3px;
}
.tcard[data-t='quest'] {
  border-width: 3px;
}
.tcard[data-t='deadline'] {
  box-shadow: inset 0 6px 0 #3fd0b0;
}
.tcard[data-t='glitter'] .tcard-name {
  color: #fff;
  -webkit-text-stroke: 0.13em #221a4d;
  paint-order: stroke fill;
}
.tcard[data-t='impact'] .tcard-name {
  font-size: 38px;
}
.tcard[data-t='deadline'] .tcard-name {
  font-size: 25px;
}
.tcard[data-t='mist'] .tcard-name {
  font-size: 22px;
}
.tcard[data-t='quest'] .tcard-name {
  font-size: 26px;
}
.tcard.wearing {
  outline: 3px solid var(--ring, var(--accent));
  outline-offset: 4px;
}

/* ---------- title-card frames (site.css .tc-frame): how far each costume's box bleeds around the text, and where boxed
   costumes start their text inside it. The text's width is the same in every costume (site.css --tc-frame). ---------- */
html[data-theme='quest'] .title-card,
html[data-theme='impact'] .title-card,
html[data-theme='glitter'] .title-card {
  --tc-indent: 24px;
}
html[data-theme='deadline'] .title-card {
  --tc-indent: 22px;
  --tc-bleed-m: 6px;
  --tc-bleed-d: 8px;
}
html[data-theme='mist'] .title-card {
  --tc-bleed-m: 18px;
  --tc-bleed-d: 26px;
}
html[data-theme='velvet'] .title-card,
html[data-theme='flirt'] .title-card {
  --tc-bleed-m: 30px;
  --tc-bleed-d: 36px;
}
@media (min-width: 900px) {
  html[data-theme='quest'] .title-card,
  html[data-theme='impact'] .title-card,
  html[data-theme='glitter'] .title-card {
    --tc-indent: 48px;
  }
  html[data-theme='deadline'] .title-card {
    --tc-indent: 34px;
  }
}

/* ---------- each theme card wears its costume's corner ---------- */
.tcard[data-t='novel'] {
  --sw-radius: 12px;
}
.tcard[data-t='quest'] {
  --sw-radius: 6px;
}
.tcard[data-t='impact'] {
  --sw-radius: 0;
}
.tcard[data-t='mist'] {
  --sw-radius: 2px;
}
.tcard[data-t='velvet'] {
  --sw-radius: 4px;
}
.tcard[data-t='glitter'] {
  --sw-radius: 20px;
}
.tcard[data-t='deadline'] {
  --sw-radius: 0;
}
.tcard[data-t='flirt'] {
  --sw-radius: 8px;
}
