/* Style picker (builder and play page). Each style re-skins the shared colour tokens and the main surfaces; the board's
   art is untouched. Classic is the original warm dark look (no overrides). The choice lives in <html data-style>. */

/* ---------- Liquid glass: translucent layers over a soft aurora, blur, light rims, pill buttons ---------- */
:root[data-style="glass"] {
  --bg: #0d1424; --panel: rgba(255,255,255,.07); --line: rgba(255,255,255,.16); --text: #f3f6ff; --muted: #aab6d3;
  --accent: #8fd3ff; --ok: #9ef0c8; --good: #9ef0c8; --bad: #ff9fb0;
}
:root[data-style="glass"] body {
  background:
    radial-gradient(60vw 50vh at 10% 0%, rgba(120, 90, 255, .35), transparent 60%),
    radial-gradient(50vw 50vh at 100% 20%, rgba(0, 200, 255, .25), transparent 60%),
    radial-gradient(60vw 60vh at 50% 110%, rgba(255, 120, 200, .22), transparent 60%),
    #0d1424;
  background-attachment: fixed;
}
:root[data-style="glass"] :is(header, aside, .player, .combat, .claim, .sheet, .card, .tip, .help) {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 30px rgba(0,0,0,.25);
}
:root[data-style="glass"] header { border-radius: 0 0 18px 18px; border-top: 0; margin: 0 8px; }
:root[data-style="glass"] :is(button, select) {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
:root[data-style="glass"] select option { background: #1a2238; }
:root[data-style="glass"] button.on { background: rgba(143,211,255,.25); border-color: var(--accent); }
:root[data-style="glass"] .player.on { background: rgba(143,211,255,.16); }
:root[data-style="glass"] .zoom button { background: rgba(20,28,48,.55); }
:root[data-style="glass"] :is(#board, #view) { border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }

/* ---------- Neo-brutalism: cream paper, black 2px outlines, hard offset shadows, square corners, loud colour ----------
   The structure is shared with Pokernator (neo-brutalism in pokernator.com's colours); each sets the --nb-* colours. */
:root[data-style="brutal"] {
  --bg: #fff3dc; --panel: #ffffff; --line: #111111; --text: #111111; --muted: #4a4a4a;
  --accent: #ff5a36; --ok: #1f9d55; --good: #1f9d55; --bad: #e0242f;
  --nb-ink: #111111; --nb-head: #ffd23f; --nb-headText: #111111; --nb-label: #ffd23f; --nb-hover: #a6f0ff;
  --nb-on: #ff5a36; --nb-onText: #ffffff; --nb-playerOn: #c9f7d0; --nb-combat: #ffe9e3; --nb-modal: rgba(255, 210, 63, .55);
}
:root[data-style="pokernator"] {
  --bg: #d9f5ff; --panel: #ffffff; --line: #000000; --text: #333366; --muted: #5a5a8c;
  --accent: #007eff; --ok: #2e9e3e; --good: #2e9e3e; --bad: #ff0000;
  --nb-ink: #000000; --nb-head: #007eff; --nb-headText: #ffffff; --nb-label: #a8e7ff; --nb-hover: #a8e7ff;
  --nb-on: #ff0000; --nb-onText: #ffffff; --nb-playerOn: #d6ffd5; --nb-combat: #fecdd2; --nb-modal: rgba(0, 126, 255, .45);
}
:root:is([data-style="brutal"], [data-style="pokernator"]) body { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
:root:is([data-style="brutal"], [data-style="pokernator"]) h1 { text-transform: uppercase; letter-spacing: -.02em; font-weight: 900; color: var(--nb-headText); }
:root:is([data-style="brutal"], [data-style="pokernator"]) h2 { color: var(--text); background: var(--nb-label); display: inline-block; padding: 1px 6px; border: 2px solid var(--nb-ink); }
:root:is([data-style="brutal"], [data-style="pokernator"]) header { background: var(--nb-head); border-bottom: 3px solid var(--nb-ink); }
:root:is([data-style="brutal"], [data-style="pokernator"]) header .stylepick, :root:is([data-style="brutal"], [data-style="pokernator"]) header label { color: var(--nb-headText); }
:root:is([data-style="brutal"], [data-style="pokernator"]) :is(aside, .player, .combat, .claim, .sheet, .card, .tip, .help) {
  background: var(--panel); border: 2px solid var(--nb-ink); border-radius: 0; box-shadow: 5px 5px 0 var(--nb-ink);
}
:root:is([data-style="brutal"], [data-style="pokernator"]) :is(button, select) {
  background: #fff; color: var(--text); border: 2px solid var(--nb-ink); border-radius: 0; box-shadow: 3px 3px 0 var(--nb-ink); font-weight: 700;
}
:root:is([data-style="brutal"], [data-style="pokernator"]) button:hover:not(:disabled) { background: var(--nb-hover); border-color: var(--nb-ink); }
:root:is([data-style="brutal"], [data-style="pokernator"]) button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
:root:is([data-style="brutal"], [data-style="pokernator"]) button.on { background: var(--nb-on); color: var(--nb-onText); border-color: var(--nb-ink); }
:root:is([data-style="brutal"], [data-style="pokernator"]) .player.on { background: var(--nb-playerOn); }
:root:is([data-style="brutal"], [data-style="pokernator"]) .combat { background: var(--nb-combat); }
:root:is([data-style="brutal"], [data-style="pokernator"]) .zoom button { background: #fff; }
:root:is([data-style="brutal"], [data-style="pokernator"]) :is(#board, #view) { border: 3px solid var(--nb-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--nb-ink); }
:root:is([data-style="brutal"], [data-style="pokernator"]) .scorenote { color: var(--text); border-color: var(--nb-ink); background: var(--nb-label); border-radius: 0; }
:root:is([data-style="brutal"], [data-style="pokernator"]) :is(.modal, .over) { background: var(--nb-modal); }
:root:is([data-style="brutal"], [data-style="pokernator"]) :is(.link, a) { color: var(--text); text-decoration-thickness: 2px; }
:root[data-style="pokernator"] header :is(.link, a) { color: #ffffff; }

/* ---------- Y2K chrome: deep violet, neon gradients, chrome buttons, glow, scanlines, monospace ---------- */
:root[data-style="y2k"] {
  --bg: #0a0614; --panel: #150d29; --line: #4a2f8f; --text: #f5ecff; --muted: #b8a3ea;
  --accent: #ff4fd8; --ok: #5ff7c3; --good: #5ff7c3; --bad: #ff6b8b;
}
:root[data-style="y2k"] body {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: radial-gradient(80vw 60vh at 50% -10%, rgba(255, 79, 216, .25), transparent 60%), radial-gradient(70vw 50vh at 100% 100%, rgba(0, 229, 255, .18), transparent 60%), #0a0614;
  background-attachment: fixed;
}
:root[data-style="y2k"] body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
:root[data-style="y2k"] h1 {
  background: linear-gradient(90deg, #ff4fd8, #00e5ff, #c6ff4f); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 79, 216, .55)); letter-spacing: .04em;
}
:root[data-style="y2k"] h2 { color: #00e5ff; text-shadow: 0 0 8px rgba(0, 229, 255, .6); }
:root[data-style="y2k"] header { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, #ff4fd8, #00e5ff) 1; }
:root[data-style="y2k"] :is(aside, .player, .combat, .claim, .sheet, .card, .tip, .help) {
  background: linear-gradient(180deg, rgba(40, 24, 80, .85), rgba(18, 11, 38, .9)); border: 1px solid #6a45d6; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 79, 216, .25), 0 0 18px rgba(106, 69, 214, .35);
}
:root[data-style="y2k"] :is(button, select) {
  background: linear-gradient(180deg, #3b2a6e 0%, #1c1238 55%, #2a1c52 100%); color: #f5ecff; border: 1px solid #8a6bff; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.4);
}
:root[data-style="y2k"] button:hover:not(:disabled) { border-color: #ff4fd8; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 14px rgba(255, 79, 216, .6); }
:root[data-style="y2k"] button.on { background: linear-gradient(180deg, #ff4fd8, #8a2be2); border-color: #ffb3f0; color: #fff; }
:root[data-style="y2k"] select option { background: #150d29; }
:root[data-style="y2k"] .player.on { background: linear-gradient(180deg, rgba(255, 79, 216, .25), rgba(18, 11, 38, .9)); }
:root[data-style="y2k"] .zoom button { background: rgba(21, 13, 41, .85); }
:root[data-style="y2k"] :is(#board, #view) { border-radius: 10px; box-shadow: 0 0 0 1px #6a45d6, 0 0 24px rgba(0, 229, 255, .25); }
:root[data-style="y2k"] .scorenote { color: #00e5ff; border-color: #00e5ff; }

/* the picker itself */
.stylepick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-left: auto; font-size: 13px; }
