/* PrizePop themes. Each theme is one block of tokens on html[data-theme].
   Every colour, gradient, radius and shadow used anywhere comes from here.
   The first block is also the default when no data-theme is set. */

/* Theme-switch swatches: each shows its own theme's colours whatever theme is active,
   so these sit outside the theme blocks. Keep them in step with each theme's --brand / --accent. */
:root {
  --swatch-lucky: linear-gradient(135deg, #12366F, #F5F8FF);
  --swatch-pop: linear-gradient(135deg, #5E48D6, #F7F3FF);
  --swatch-calm: linear-gradient(135deg, #7B5B84, #FFF4E9);
  --swatch-ring: 0 0 0 1px var(--line);          /* thin outline round each swatch */
  --swatch-ring-on: 0 0 0 2px var(--muted);      /* hovered or chosen swatch */
  --darken: #000;
  /* Built from each theme's own colours, so they suit every theme. */
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent));          /* accent (Enter) button */
  --accent-grad-hover: linear-gradient(135deg, var(--accent-edge), var(--accent));
  --accent-glow: 0 0 6px 2px var(--accent-edge);                                  /* accent button hover */
  --brand-glow: 0 0 3px 1px var(--brand);                                         /* primary button hover */
  --r-media: 4px;                                                                 /* contest card image, same in every theme */
  --backdrop: rgba(16, 20, 40, .55);                                              /* behind an open modal */
}

:root[data-theme="lucky"] {
  color-scheme: light;
  --bg: #F5F8FF; --surface: #FFFFFF; --ink: #101F46; --muted: #596782;
  --brand: #12366F; --hdr: linear-gradient(170deg, #102B5B 30%, #1854A0 70%);
  --accent: #FFC928; --accent-edge: #D69C0B; /* contest link / Enter button */
  --prize: #FFD95A; --avail: #D8F5B0; --info: #75D8FF; --off: #f2f4f8; --done-bg: #F0F3F9;
  --grad-1: linear-gradient(135deg, #FFE878, #FFAD24);
  --grad-2: linear-gradient(135deg, #36B9FF, #2464D8);
  --grad-3: linear-gradient(135deg, #D8F5B0, #65DDAA);
  --line: #D6E0F0; 
  --shadow: 25px 0px 20px -20px rgba(18, 54, 111,.2), 0px 6px 15px -6px rgba(18, 54, 111,.4), -25px 0px 20px -20px rgba(18, 54, 111,.2);
  --shadow-hover: 25px 0px 20px -20px rgba(18, 54, 111,.6), 0px 6px 15px -6px rgba(18, 54, 111,.8), -25px 0px 20px -20px rgba(18, 54, 111,.6);
  --r: 4px; --rs: 4px;
  --font-head: 'Nunito Sans', Inter, system-ui, sans-serif;

  --on-brand: #FFFFFF;
  --danger: #B0123B; --danger-bg: #FFE4EC;
  --ok-bg: #E8F8D9; --ok-edge: #68A83A;
  --pill: 4px;

  --img-filter: none;
}

:root,
:root[data-theme="pop"] {
  color-scheme: light;
  --bg: #F7F3FF; --surface: #FFFFFF; --ink: #1E1B3A; --muted: #57527A;
  --brand: #5E48D6; --hdr: linear-gradient(170deg, #5E48D6 30%, #7C45D2 70%);
  --accent: #F4BC3A; --accent-edge: #D2A437;            /* contest link / Enter button */
  --prize: #FFB7FF; --avail: #CAFF8A; --info: #3BF4FB; --off: #ECE8F7; --done-bg: #F3F1F8;
  --grad-1: linear-gradient(135deg, #FFB7FF, #C879FF);
  --grad-2: linear-gradient(135deg, #3BF4FB, #826AED);
  --grad-3: linear-gradient(135deg, #CAFF8A, #3BF4FB);
  --line: #DCD2F7; 
  --shadow: 0 8px 24px rgba(130, 106, 237, .18); 
  --shadow-hover: 0 8px 24px rgba(130, 106, 237, .8); 
  --r: 18px; --rs: 14px;
  --font-head: 'Fredoka', Inter, system-ui, sans-serif;

  --on-brand: #FFFFFF;
  --danger: #B0123B; --danger-bg: #FFE4EC;
  --ok-bg: #EEFFD9; --ok-edge: #6BA32B;
  --pill: 999px;

  --img-filter: none;
}

:root[data-theme="calm"] {
  color-scheme: light;
  --bg: #FFF4E9; --surface: #FFFCF8; --ink: #2E2230; --muted: #6B5A6E;
  --brand: #7B5B84; --hdr: #7B5B84;
  --accent: #FFD498; --accent-edge: #E3B36A;            /* contest link / Enter button */
  --prize: #E8DBC5; --avail: #D4E3D2; --info: #B185A7; --off: #EFE6D8; --done-bg: #F5EDE2;
  --grad-1: linear-gradient(135deg, #E8DBC5, #FFD498);
  --grad-2: linear-gradient(135deg, #C3A29E, #E8DBC5);
  --grad-3: linear-gradient(135deg, #B185A7, #E8DBC5);
  --line: #E2D3C0; 
  --shadow: 0 1px 3px rgba(80, 50, 70, .10); 
  --shadow-hover: 0 6px 10px 2px rgba(80, 50, 70, .50); 
  --r: 12px; --rs: 8px;
  --font-head: 'Nunito Sans', Inter, system-ui, sans-serif;

  --on-brand: #FFFFFF;
  --danger: #9C2F28; --danger-bg: #F9E3DE;
  --ok-bg: #E6EFE4; --ok-edge: #7FA57A;
  --pill: 999px;

  --img-filter: saturate(50%);
}