/* ==========================================================
   THEME: every color, font and size the game uses lives here.
   Edit these values to restyle the game. To add another theme,
   copy this block under [data-theme="name"] and set that name
   on <body data-theme="..."> in index.html.
   ========================================================== */

:root,
[data-theme="pixel"] {
  /* Fonts (loaded in index.html). Display = big pixel headings, buttons, card ranks.
     Body = everything you read (names, status, rules): a rounded, very readable font. */
  --font-display: "Silkscreen", "Courier New", monospace; /* crisp at 8px multiples: 16/24/32/48... */
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Core palette */
  --ink: #120e22;          /* outlines and hard shadows */
  --night: #1b1533;        /* darkest background */
  --violet: #2e2556;       /* panels */
  --violet-hi: #453a7a;    /* raised panels / neutral buttons */
  --sky: #6ec3f4;          /* light blue: your-turn color */
  --mint: #7ee0c3;
  --gold: #f5c542;
  --coral: #ef5a6f;
  --cream: #f4ecdc;

  /* Animated background: 4 color bands, idle and during your turn */
  --bg-idle-1: #17122c;
  --bg-idle-2: #231b45;
  --bg-idle-3: #30265e;
  --bg-idle-4: #3f3279;
  --bg-turn-1: #1d4a7c;
  --bg-turn-2: #2a68a8;
  --bg-turn-3: #4594d6;
  --bg-turn-4: #6ec3f4;
  --bg-bomb-1: #2a0a16;   /* during the bomb animation */
  --bg-bomb-2: #5c1424;
  --bg-bomb-3: #a32a35;
  --bg-bomb-4: #ef5a6f;

  /* UI */
  --bg: var(--night);
  --text: #f6f1ff;
  --muted: rgba(246, 241, 255, 0.62);
  --panel: rgba(30, 24, 60, 0.88);
  --panel-strong: var(--violet-hi);
  --panel-solid: var(--violet);
  --accent: var(--sky);
  --accent-text: var(--ink);
  --danger: var(--coral);
  --radius: 6px;
  --border: 3px;
  --shadow: 0 5px 0 var(--ink);

  /* Buttons */
  --btn-primary: #3e8ef7;   /* Play, Start, Create */
  --btn-primary-hi: #67a9ff;
  --btn-secondary: var(--coral); /* Pass, Keep */
  --btn-neutral: var(--violet-hi);

  /* Cards */
  --card-bg: var(--cream);
  --card-border: var(--ink);
  --card-red: #d8384c;
  --card-black: #2a2346;
  --card-back: repeating-conic-gradient(#3e8ef7 0 25%, #2f6fd0 0 50%) 0 0 / 8px 8px;
  --card-radius: 6px;
  /* Card art is 32 px wide: keep these at whole multiples (64 = 2x) so pixels stay crisp */
  --card-w: 64px;   /* cards in your hand */
  --pile-w: 64px;   /* cards on the table */
  --fan-card-w: 96px; /* cards in your hand with the Fan layout (3x) */
  --fan-h: 132px;     /* visible height of the fan; the rest of the cards is cut off */

  /* Rank title badges */
  --t-koenig: var(--gold);
  --t-vize-koenig: #cfd8e6;
  --t-mittelschicht: var(--sky);
  --t-vize-arschloch: #d99a6c;
  --t-arschloch: #8b5a3c;
  --t-text: var(--ink);

  /* Characters: pixel scale (each sprite pixel = N screen pixels) */
  --char-scale-small: 2;
  --char-scale: 3;
  --char-scale-big: 6;

  /* Shard rarities (wheel segments, shard icons) */
  --r-common: #9aa6bd;
  --r-uncommon: #4fbf7a;
  --r-rare: #3e8ef7;
  --r-epic: #9b6ae0;
  --r-legendary: #f5c542;
  --r-mythic: #ff6fd8;     /* stand-in; mythic is drawn as a rainbow wherever it shows */

  /* Chaos jokers: card color per ability (same as the joker art) */
  --j-strengthen: #5fd068;
  --j-weaken: #b45cff;
  --j-transform: #6ec3f4;
  --j-add: #f5a142;
  --j-delete: #ef5a6f;
}

/* ---------- Chaos mode: red and black, so you always know what you are playing ----------
   Set by the game as <body data-mode="chaos"> (main menu with Chaos picked, chaos lobbies and games). */
[data-mode="chaos"] {
  --bg-idle-1: #0a0507;
  --bg-idle-2: #2a0710;
  --bg-idle-3: #5c0f1e;
  --bg-idle-4: #9c1c2c;
  --bg-turn-1: #7a2e08;   /* your turn: orange (classic uses light blue) */
  --bg-turn-2: #b84a10;
  --bg-turn-3: #e8731c;
  --bg-turn-4: #ffa040;
  --night: #120608;
  --violet: #34121b;
  --violet-hi: #5a1e2c;
  --panel: rgba(32, 8, 14, 0.9);
  --muted: rgba(255, 228, 232, 0.62);
  --mode-accent: #ff4d5e;
}
