/* ---------------------------------------------------------------------------
   Palettes for the seven versions of the quiz.

   The API sends a theme name with every version; the page sets it on <body>
   and everything else is already written against these tokens. Five are dark
   variations on the Senu sunrise, and one — `paper` — is light, because the
   conversation version should feel like a messenger rather than a meditation
   app.

   Contrast: every --text / --ink pair here clears 4.5:1, and --muted clears 4.5
   against its own background, so the hint lines stay readable.
   --------------------------------------------------------------------------- */

/* 1. classic, 7. mix — sunrise gold over indigo (the app's own colours) */
body[data-theme="dawn"] {
  --ink: #120F1E;
  --ink-soft: #1B1730;
  --text: #F5F2F8;
  --muted: #A79FBC;
  --accent: #F0B267;
  --accent-2: #E79756;
  --accent-soft: rgba(240, 178, 103, .14);
  --accent-line: rgba(240, 178, 103, .55);
  --on-accent: #1A1329;
  --field:
    radial-gradient(64% 34% at 50% 100%, rgba(255, 196, 128, .55) 0%, rgba(240, 150, 86, .18) 42%, rgba(240, 150, 86, 0) 72%),
    radial-gradient(100% 52% at 50% 104%, rgba(203, 118, 120, .30) 0%, rgba(203, 118, 120, 0) 70%),
    radial-gradient(78% 50% at 14% 4%, rgba(145, 125, 240, .30) 0%, rgba(145, 125, 240, 0) 62%),
    linear-gradient(180deg, #1A1533 0%, #151128 45%, #120F1E 100%);
  --glow: rgba(254, 226, 176, .40);
}

/* 2. icons — cool mint over deep green; the tiles need a calmer accent */
body[data-theme="mint"] {
  --ink: #0C1714;
  --ink-soft: #122420;
  --text: #EFF6F3;
  --muted: #92AFA6;
  --accent: #6FD8B0;
  --accent-2: #45BFA0;
  --accent-soft: rgba(111, 216, 176, .13);
  --accent-line: rgba(111, 216, 176, .5);
  --on-accent: #06211A;
  --field:
    radial-gradient(60% 32% at 50% 102%, rgba(111, 216, 176, .40) 0%, rgba(69, 191, 160, .12) 45%, rgba(69, 191, 160, 0) 72%),
    radial-gradient(72% 46% at 88% 2%, rgba(86, 178, 214, .22) 0%, rgba(86, 178, 214, 0) 62%),
    linear-gradient(180deg, #11241F 0%, #0E1C19 50%, #0C1714 100%);
  --glow: rgba(160, 240, 210, .30);
}

/* 3. test — violet; a profile chart wants a colour that reads as "результат" */
body[data-theme="violet"] {
  --ink: #130F20;
  --ink-soft: #1D1733;
  --text: #F3F0FB;
  --muted: #A69CC6;
  --accent: #B79BFF;
  --accent-2: #8D6BF0;
  --accent-soft: rgba(183, 155, 255, .14);
  --accent-line: rgba(183, 155, 255, .52);
  --on-accent: #17112B;
  --field:
    radial-gradient(62% 34% at 50% 102%, rgba(183, 155, 255, .40) 0%, rgba(141, 107, 240, .14) 46%, rgba(141, 107, 240, 0) 72%),
    radial-gradient(70% 44% at 10% 4%, rgba(240, 130, 190, .20) 0%, rgba(240, 130, 190, 0) 60%),
    linear-gradient(180deg, #1B1535 0%, #171229 48%, #130F20 100%);
  --glow: rgba(210, 190, 255, .34);
}

/* 4. wheel — cold blue; the wheel is a diagram, and diagrams read blue */
body[data-theme="sky"] {
  --ink: #0B1421;
  --ink-soft: #122132;
  --text: #EDF4FB;
  --muted: #90A6BE;
  --accent: #6FB7F5;
  --accent-2: #4A90E2;
  --accent-soft: rgba(111, 183, 245, .13);
  --accent-line: rgba(111, 183, 245, .5);
  --on-accent: #07192B;
  --field:
    radial-gradient(60% 32% at 50% 102%, rgba(111, 183, 245, .38) 0%, rgba(74, 144, 226, .12) 46%, rgba(74, 144, 226, 0) 72%),
    radial-gradient(70% 44% at 84% 4%, rgba(120, 220, 210, .18) 0%, rgba(120, 220, 210, 0) 60%),
    linear-gradient(180deg, #102135 0%, #0D1A29 48%, #0B1421 100%);
  --glow: rgba(175, 220, 255, .32);
}

/* 5. chat — light. A conversation on a dark screen reads as a warning, not a chat. */
body[data-theme="paper"] {
  --ink: #FBF7F1;
  --ink-soft: #FFFFFF;
  --text: #241D2E;
  --muted: #6C6280;
  --accent: #C4763B;
  --accent-2: #A85E2A;
  --accent-soft: rgba(196, 118, 59, .10);
  --accent-line: rgba(196, 118, 59, .45);
  --on-accent: #FFF8F1;
  --field:
    radial-gradient(58% 30% at 50% 102%, rgba(240, 190, 140, .40) 0%, rgba(240, 190, 140, 0) 70%),
    radial-gradient(64% 40% at 6% 2%, rgba(175, 160, 235, .20) 0%, rgba(175, 160, 235, 0) 60%),
    linear-gradient(180deg, #FFFCF7 0%, #FBF7F1 60%, #F5EFE6 100%);
  --glow: rgba(255, 215, 170, .45);
  /* Surfaces on a light field have to be darker, not lighter, than the page. */
  --surface: rgba(36, 29, 46, .045);
  --surface-hi: rgba(36, 29, 46, .08);
  --line: rgba(36, 29, 46, .12);
  --danger: #C0392B;
}

/* 6. cards — warm rose; the deck is playful and the palette should say so */
body[data-theme="rose"] {
  --ink: #1A1018;
  --ink-soft: #261826;
  --text: #FBF0F5;
  --muted: #BF9FB2;
  --accent: #F58BA8;
  --accent-2: #E06287;
  --accent-soft: rgba(245, 139, 168, .13);
  --accent-line: rgba(245, 139, 168, .5);
  --on-accent: #2A0F1C;
  --field:
    radial-gradient(62% 34% at 50% 102%, rgba(245, 139, 168, .42) 0%, rgba(224, 98, 135, .14) 46%, rgba(224, 98, 135, 0) 72%),
    radial-gradient(70% 44% at 12% 2%, rgba(255, 190, 120, .20) 0%, rgba(255, 190, 120, 0) 60%),
    linear-gradient(180deg, #271729 0%, #1F131F 50%, #1A1018 100%);
  --glow: rgba(255, 190, 210, .34);
}
