/* JFun Gaming UI v1
   Loaded AFTER jfun-brand.css. Dark-first "gaming" look on the same brand colours
   (magenta #F20289 -> coral #FB2B52). New classes start with jg-.
   Page files: assets/brand/game/<name>.css, overrides written as html body.jg-<page> .class */

/* ---------- A. Tokens ---------- */
html:root {
  --jg-font-display: 'Rajdhani', 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --jg-font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --jg-radius: 18px;
  --jg-radius-sm: 12px;
  --jg-tap: 44px;
  --jf-nav-h: 64px; --jf-nav-gap: 10px; --jf-nav-clear: calc(var(--jf-nav-h) + var(--jf-nav-gap) + 22px); /* the ONE bottom-nav size: pill height, gap to the screen edge, content clearance */
  --jg-glow: 0 0 0 1px rgba(242, 2, 137, 0.35), 0 8px 24px rgba(242, 2, 137, 0.35);
  --jg-surface-2: #FFFFFF;
  --jg-ok: #2FBF8B;
  --jg-warn: #FF9A55;
  --jg-bad: #FF4D6D;
  /* P21 tokens: player card, muted chip, win glow, confetti palette (read by jfun-fx.js via getComputedStyle) */
  --jg-pcard-bg: linear-gradient(160deg, #1B0D26 0%, #12081B 100%);
  --jg-chip-muted: #6B5A75;
  --jg-ok-glow: rgba(47, 191, 139, 0.45);
  --jg-confetti-1: #F20289;
  --jg-confetti-2: var(--jf-coral);
  --jg-confetti-3: var(--jg-warn);
  --jg-confetti-4: var(--accent-purple);
  --jg-confetti-5: #FFFFFF;
  /* Ludo board tokens (light glass default; dark set in the dark block below). board.js reads them with cssVar(); seat colours keep >= 3:1 on the light board */
  --ld-red: #D81B60;    --ld-red-hi: #E876A0;    --ld-red-lo: #971343;    --ld-red-edge: #A21448;
  --ld-green: #1E8E4A;  --ld-green-hi: #78BB92;  --ld-green-lo: #156334;  --ld-green-edge: #166A38;
  --ld-yellow: #B87400; --ld-yellow-hi: #D4AC66; --ld-yellow-lo: #815100; --ld-yellow-edge: #8A5700;
  --ld-blue: #1E64D0;   --ld-blue-hi: #78A2E3;   --ld-blue-lo: #154692;   --ld-blue-edge: #164B9C;
  --ld-board-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 228, 242, 0.82) 100%);
  --ld-board-border: rgba(232, 51, 143, 0.45);
  --ld-board-shadow: 0 0 0 1px rgba(255, 255, 255, 0.70), 0 10px 28px rgba(226, 80, 150, 0.22);
  --ld-cell: rgba(255, 255, 255, 0.72);
  --ld-cell-border: rgba(232, 51, 143, 0.38);
  --ld-yard-inner: rgba(255, 255, 255, 0.74);
  --ld-star: #B3125E;
  --ld-centre-alpha: 0.88;
  --ld-centre-edge: rgba(255, 255, 255, 0.85);
  --ld-centre-line: rgba(255, 255, 255, 0.90);
  --ld-centre-dot: rgba(255, 255, 255, 0.92);
  --ld-centre-ring: rgba(232, 51, 143, 0.70);
  --ld-gloss: #FFFFFF;
  --ld-hl: #3D1450;
  --ld-hl-gap: #FFFFFF;
  --ld-last: #6F4A63;
  --ld-token-shadow: 0 3px 6px rgba(90, 20, 60, 0.35);
  --ld-token-ring: rgba(255, 255, 255, 0.85);
  --ld-token-shine: rgba(255, 255, 255, 0.60);
  --ld-die-face: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 226, 240, 0.82) 100%);
  --ld-die-border: rgba(232, 51, 143, 0.55);
  --ld-die-glow: 0 0 12px rgba(242, 2, 137, 0.25);
  --ld-die-inset: inset 0 0 8px rgba(255, 255, 255, 0.90);
  --ld-die-floor: rgba(90, 20, 60, 0.45);
  --ld-pip: #3A0F2C;
  --ld-title-glow: none;
}
/* dark = everything except an explicit light theme (light keeps the brand pastel tokens) */
html:root:not([data-theme="light"]) {
  --bg-color: #0E0714;
  --jf-page-bg:
    radial-gradient(700px 420px at 10% -6%, rgba(242, 2, 137, 0.30), transparent 62%),
    radial-gradient(640px 420px at 100% 0%, rgba(251, 43, 82, 0.20), transparent 60%),
    radial-gradient(700px 520px at 50% 110%, rgba(120, 70, 255, 0.22), transparent 62%),
    #0E0714;
  --card-bg: rgba(30, 14, 38, 0.78);
  --text-color: #FDEFF7;
  --text-secondary: #C9A7BD;
  --border-color: rgba(255, 255, 255, 0.09);
  --shadow-color: rgba(0, 0, 0, 0.55);
  --jf-glass: rgba(34, 16, 42, 0.66);
  --jf-glass-strong: rgba(40, 19, 50, 0.88);
  --jf-glass-border: rgba(255, 255, 255, 0.10);
  --jf-glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --jf-solid: #1E0F26;
  --jf-nav-bg: rgba(24, 11, 31, 0.92);
  --jf-nav-border: rgba(255, 255, 255, 0.10);
  --jf-nav-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
  --jf-active: #FF5AA9;
  --jf-text: #C9A7BD;
  --jf-fg: #FDEFF7;
  --jf-toast-bg: #2E1630;
  --jf-skel-a: #341A36;
  --jf-skel-b: #452446;
  --jg-surface-2: #2A1434;
  /* Ludo board tokens, dark set (the previous neon look) */
  --ld-red: #e91e63;    --ld-red-hi: #F278A1;    --ld-red-lo: #A31545;    --ld-red-edge: #c2185b;
  --ld-green: #4CAF50;  --ld-green-hi: #94CF96;  --ld-green-lo: #357A38;  --ld-green-edge: #388E3C;
  --ld-yellow: #FF9800; --ld-yellow-hi: #FFC166; --ld-yellow-lo: #B26A00; --ld-yellow-edge: #F57C00;
  --ld-blue: #2196F3;   --ld-blue-hi: #7AC0F8;   --ld-blue-lo: #1769AA;   --ld-blue-edge: #1976D2;
  --ld-board-bg: linear-gradient(160deg, #1B0D26 0%, #12081B 100%);
  --ld-board-border: rgba(242, 2, 137, 0.70);
  --ld-board-shadow: 0 0 0 1px rgba(242, 2, 137, 0.25), 0 0 22px rgba(242, 2, 137, 0.30), 0 12px 32px rgba(0, 0, 0, 0.55);
  --ld-cell: #22102D;
  --ld-cell-border: rgba(255, 255, 255, 0.12);
  --ld-yard-inner: #22102D;
  --ld-star: #C9A7BD;
  --ld-centre-alpha: 1;
  --ld-centre-edge: transparent;
  --ld-centre-line: rgba(255, 255, 255, 0.85);
  --ld-centre-dot: #12081B;
  --ld-centre-ring: rgba(255, 255, 255, 0.40);
  --ld-gloss: #FFFFFF;
  --ld-hl: #FF9800;
  --ld-hl-gap: transparent;
  --ld-last: #C9A7BD;
  --ld-token-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  --ld-token-ring: rgba(255, 255, 255, 0.75);
  --ld-token-shine: rgba(255, 255, 255, 0.55);
  --ld-die-face: #22102D;
  --ld-die-border: rgba(242, 2, 137, 0.70);
  --ld-die-glow: 0 0 14px rgba(242, 2, 137, 0.30);
  --ld-die-inset: inset 0 0 8px rgba(242, 2, 137, 0.30);
  --ld-die-floor: rgba(0, 0, 0, 0.75);
  --ld-pip: #FDEFF7;
  --ld-title-glow: 0 0 14px rgba(242, 2, 137, 0.55);
}

/* ---------- B. Base (kept minimal so games are not affected) ---------- */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html body { -webkit-tap-highlight-color: transparent; }

/* ---------- C. Components ---------- */
.jg-display { font-family: var(--jg-font-display); font-weight: 700; letter-spacing: 0.02em; }
.jg-title {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 10px;
  font-family: var(--jg-font-display); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.jg-title::before { content: ''; width: 4px; height: 1.1em; border-radius: 2px; background: var(--jf-grad); flex: 0 0 auto; }
.jg-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--jg-radius); padding: 16px; box-shadow: var(--jf-glass-shadow);
}
.jg-card--glow {
  background: linear-gradient(var(--jf-solid), var(--jf-solid)) padding-box, var(--jf-grad) border-box;
  border: 1.5px solid transparent;
}
.jg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
  background: var(--jf-grad); color: #fff; text-decoration: none;
  font: 700 16px var(--jg-font-display); letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: var(--jg-glow); cursor: pointer; touch-action: manipulation;
}
.jg-btn:active { transform: scale(0.97); }
.jg-btn[disabled] { opacity: 0.55; box-shadow: none; }
.jg-btn--ghost { background: transparent; border: 1.5px solid var(--jf-pink); color: var(--jf-pink); box-shadow: none; }
.jg-btn--block { width: 100%; }
.jg-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--jf-grad-soft); font: 600 12px var(--jg-font-body);
}
.jg-badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font: 700 12px var(--jg-font-body); background: rgba(242, 2, 137, 0.16); color: var(--jf-pink);
}
.jg-badge--ok { background: rgba(47, 191, 139, 0.16); color: var(--jg-ok); }
.jg-badge--warn { background: rgba(255, 154, 85, 0.16); color: var(--jg-warn); }
.jg-badge--bad { background: rgba(255, 77, 109, 0.16); color: var(--jg-bad); }
.jg-list-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.jg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.jg-skel { position: relative; overflow: hidden; border-radius: 12px; background: var(--jf-skel-a); }
.jg-skel::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, var(--jf-skel-b), transparent);
  transform: translateX(-100%);
}
.jg-glow-text { text-shadow: 0 0 14px rgba(242, 2, 137, 0.55); }

/* animations: opacity/transform only, none for reduced-motion users */
@keyframes jg-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes jg-pulse { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes jg-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: no-preference) {
  .jg-anim { animation: jg-fade-up 0.35s ease-out both; }
  .jg-pulse { position: relative; }
  .jg-pulse::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit;
    box-shadow: 0 0 18px 2px rgba(242, 2, 137, 0.55); pointer-events: none;
    animation: jg-pulse 2.4s ease-in-out infinite;
  }
  .jg-skel::after { animation: jg-shimmer 1.3s ease infinite; }
}

/* ---------- D. Restyle of existing shared classes ---------- */
html body .stat-card,
html body .merged-card,
html body .info-card {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--jg-radius);
}
html body .action-btn { min-height: 88px; border-radius: var(--jg-radius); }
html body .action-btn:active { transform: scale(0.97); }
html body .action-btn .action-title { font-family: var(--jg-font-display); font-weight: 700; font-size: 16px; }
html body .action-btn .action-subtitle { font-size: 12px; color: var(--text-secondary); }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
html body select,
html body textarea {
  min-height: 48px; font-size: 16px; border-radius: var(--jg-radius-sm);
}
html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):focus,
html body select:focus,
html body textarea:focus {
  box-shadow: 0 0 0 3px rgba(242, 2, 137, 0.30); border-color: var(--jf-pink);
}
/* dropdowns / modals / toasts stay solid */
html body .modal-content,
html body .modal-box,
html body .rules-content,
html body .toast {
  background: var(--jf-solid); color: var(--text-color); border: 1px solid var(--border-color);
}
/* dark mode: big stat numbers use the text colour */
html:not([data-theme="light"]) body .stat-card .stat-card-value,
html:not([data-theme="light"]) body .stat-card.balance-card .stat-card-value,
html:not([data-theme="light"]) body .stat-card.deposit-card .stat-card-value,
html:not([data-theme="light"]) body .stat-card.withdraw-card .stat-card-value,
html:not([data-theme="light"]) body .stat-card.refer-card .stat-card-value,
html:not([data-theme="light"]) body .stat-card.net-card .stat-card-value,
html:not([data-theme="light"]) body .stat-card.earnings-card .stat-card-value { color: var(--text-color); }

/* ---------- NAVIGATION: bottom nav pill, top bar ---------- */
html body .jf-nav {
  left: 10px; right: 10px; bottom: calc(var(--jf-nav-gap) + env(safe-area-inset-bottom, 0px));
  width: auto; min-width: 0; max-width: 520px; margin-left: auto; margin-right: auto;
  height: var(--jf-nav-h); padding: 0 6px; border-radius: 22px; transform: none;
  background: var(--jf-nav-bg); border: 1px solid var(--jf-nav-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(242, 2, 137, 0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
/* base layout of the nav on pages that do not load jfun-pwa.css (game pages) - same values as there, tokens only */
html body .jf-nav { position: fixed; z-index: 1000; transition: transform .3s ease; }
html body .jf-nav-inner { display: flex; }
html body .jf-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border: 0; text-decoration: none; color: inherit; transition: var(--ui-ease, 150ms ease); }
html body .jf-nav-icon { display: flex; align-items: center; justify-content: center; color: var(--jf-text); }
html body .jf-nav-text { color: var(--jf-text); }
html body .jf-nav-item::before { content: ''; position: absolute; transform: translateX(-50%); transition: width .3s ease; }
html body.modal-open .jf-nav { transform: translateY(150%); }
html body .jf-nav-inner { height: 100%; max-width: none; margin: 0; gap: 2px; align-items: stretch; justify-content: space-around; }
html body .jf-nav-item {
  min-height: 56px; flex: 1 1 0; max-width: none; min-width: 0; padding: 4px 2px; margin: auto 0;
  border-radius: 16px; overflow: visible; gap: 3px; background: transparent;
}
html body .jf-nav-text {
  font: 700 11px var(--jg-font-display); text-transform: uppercase; letter-spacing: 0.04em;
}
html body .jf-nav-icon { font-size: 20px; height: 24px; }
html body .jf-nav-item::before {
  top: 2px; left: 50%; width: 0; height: 3px; border-radius: 999px; background: var(--jf-grad);
}
html body .jf-nav-item:hover::before { width: 0; }
html body .jf-nav-item.active { background: transparent; }
html body .jf-nav-item.active::before { width: 22px; height: 3px; }
html body .jf-nav-item.active .jf-nav-icon { color: var(--jf-active); text-shadow: 0 0 12px rgba(242, 2, 137, 0.6); animation: none; }
html body .jf-nav-item.active .jf-nav-text { color: var(--jf-active); }

/* centre "play" item (Games) */
html body .jf-nav-item.jf-nav-play::before { display: none; }
html body .jf-nav-item.jf-nav-play .jf-nav-icon {
  width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; font-size: 22px;
  background: var(--jf-grad); color: #fff; text-shadow: none; transform: none;
  box-shadow: 0 0 0 5px var(--jf-nav-bg), 0 8px 22px rgba(242, 2, 137, 0.55);
}
html body .jf-nav-item.jf-nav-play.active .jf-nav-icon {
  color: #fff; transform: none;
  box-shadow: 0 0 0 5px var(--jf-nav-bg), 0 8px 28px rgba(242, 2, 137, 0.85);
}
html body .jf-nav-item.jf-nav-play:active .jf-nav-icon { transform: scale(0.94); }

/* Room badge */
html body .jf-nav-item.jf-nav-play .jf-nav-icon { position: relative; }
html body .jf-nav-badge {
  position: absolute; top: -4px; right: -4px; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--ui-r-pill); border: 2px solid var(--jf-nav-bg); background: var(--jg-bad); color: var(--ui-on-accent);
  font: 700 11px/16px var(--jg-font-display); text-align: center; pointer-events: none; text-shadow: none;
}
html body .jf-nav-badge[hidden] { display: none; }

/* spacing so content and floating buttons clear the pill */
html body.jf-has-nav { padding-bottom: calc(var(--jf-nav-clear) + env(safe-area-inset-bottom, 0px)) !important; }
html body .jf-theme-btn { width: 44px; height: 44px; bottom: calc(var(--jf-nav-clear) + env(safe-area-inset-bottom, 0px)); }
html body .jf-install.jf-has-bar { bottom: calc(var(--jf-nav-clear) + env(safe-area-inset-bottom, 0px)); }

/* ---------- Tic Tac Toe + Barah Tehni board tokens (moved from the page css files; light default, dark under data-theme=dark) ---------- */
:root { --ttt-x: #C2185B; --ttt-o: #1565C0; --ttt-x-glow: rgba(194, 24, 91, 0.45); --ttt-o-glow: rgba(21, 101, 192, 0.45); --ttt-pink: #F20289; --ttt-frame-bg: rgba(255, 255, 255, 0.55); --ttt-frame-border: rgba(242, 2, 137, 0.60); --ttt-frame-glow: rgba(242, 2, 137, 0.28); --ttt-frame-shadow: rgba(60, 20, 50, 0.18); --ttt-cell-bg: rgba(255, 255, 255, 0.50); --ttt-cell-border: rgba(242, 2, 137, 0.45); --ttt-cell-hi: rgba(255, 255, 255, 0.85); --ttt-cell-lo: rgba(242, 2, 137, 0.10); --ttt-win: #1E8E5A; --ttt-win-bg: rgba(47, 191, 139, 0.22); --ttt-win-glow: rgba(47, 191, 139, 0.65); --ttt-win-glow-soft: rgba(47, 191, 139, 0.45); --ttt-pink-40: rgba(242, 2, 137, 0.40); --ttt-pink-30: rgba(242, 2, 137, 0.30); --ttt-pink-25: rgba(242, 2, 137, 0.25); --ttt-pink-20: rgba(242, 2, 137, 0.20); --ttt-pink-10: rgba(242, 2, 137, 0.10); --ttt-pink-08: rgba(242, 2, 137, 0.08); --ttt-shade-20: rgba(0, 0, 0, 0.20); --ttt-shade-10: rgba(0, 0, 0, 0.10); --ttt-shade-25: rgba(0, 0, 0, 0.25); --ttt-flame-glow: rgba(255, 87, 34, 0.80); --ttt-blue-deep: #1976D2; --ttt-violet-a: #667eea; --ttt-violet-b: #764ba2; --ttt-gold: #f0b90b; --ttt-purple-a: #f3e5f5; --ttt-purple-b: #e1bee7; --ttt-green-a: #e8f5e9; --ttt-green-b: #c8e6c9; --ttt-amber-a: #fff3cd; --ttt-amber-b: #ffeaa7; --ttt-amber-line: #ffd54f; --ttt-disabled: #cccccc; --ttt-input-bg: rgba(255, 255, 255, 0.60); --ttt-input-border: rgba(242, 2, 137, 0.30); }
html[data-theme="dark"]:root { --ttt-x: #FF4F9A; --ttt-o: #4DB3FF; --ttt-x-glow: rgba(255, 79, 154, 0.60); --ttt-o-glow: rgba(77, 179, 255, 0.60); --ttt-frame-bg: rgba(27, 13, 38, 0.80); --ttt-frame-shadow: rgba(0, 0, 0, 0.55); --ttt-cell-bg: rgba(46, 23, 64, 0.80); --ttt-cell-border: rgba(255, 255, 255, 0.12); --ttt-cell-hi: rgba(255, 255, 255, 0.06); --ttt-cell-lo: rgba(0, 0, 0, 0.35); --ttt-win: #4CD08F; --ttt-purple-a: rgba(166, 107, 255, 0.18); --ttt-purple-b: rgba(166, 107, 255, 0.30); --ttt-green-a: rgba(47, 191, 139, 0.18); --ttt-green-b: rgba(47, 191, 139, 0.30); --ttt-amber-a: rgba(255, 154, 85, 0.18); --ttt-amber-b: rgba(255, 154, 85, 0.30); --ttt-disabled: #4a3a55; --ttt-input-bg: rgba(0, 0, 0, 0.25); --ttt-input-border: rgba(255, 255, 255, 0.18); }
:root { --bt-p1: #D81B60; --bt-p1-edge: #880E4F; --bt-p2: #1565C0; --bt-p2-edge: #0D47A1; --bt-board-a: rgba(255, 255, 255, 0.78); --bt-board-b: rgba(255, 236, 246, 0.62); --bt-board-border: rgba(242, 2, 137, 0.55); --bt-line: rgba(242, 2, 137, 0.45); --bt-node-fill: rgba(255, 255, 255, 0.80); --bt-node-stroke: rgba(242, 2, 137, 0.50); --bt-piece-shadow: rgba(60, 20, 50, 0.35); --bt-hi-1: rgba(255, 255, 255, 0.80); --bt-hi-2: rgba(255, 255, 255, 0.60); --bt-select: #E65100; --bt-select-fill: rgba(230, 81, 0, 0.20); --bt-legal-fill: rgba(46, 125, 50, 0.92); --bt-legal-ring: rgba(46, 125, 50, 0.65); --bt-cap: #C62828; --bt-cap-fill: rgba(198, 40, 40, 0.92); --bt-cap-ring: rgba(198, 40, 40, 0.65); --bt-on-dot: #FFFFFF; --bt-board-shadow: 0 0 0 1px rgba(242, 2, 137, 0.25), 0 0 22px rgba(242, 2, 137, 0.28), 0 12px 32px rgba(60, 20, 50, 0.18); --bt-pink-40: rgba(242, 2, 137, 0.40); --bt-pink-30: rgba(242, 2, 137, 0.30); --bt-pink-25: rgba(242, 2, 137, 0.25); --bt-pink-20: rgba(242, 2, 137, 0.20); --bt-pink-10: rgba(242, 2, 137, 0.10); --bt-pink-08: rgba(242, 2, 137, 0.08); --bt-shade-25: rgba(0, 0, 0, 0.25); --bt-shade-20: rgba(0, 0, 0, 0.20); --bt-shade-10: rgba(0, 0, 0, 0.10); --bt-flame-glow: rgba(255, 87, 34, 0.80); --bt-blue-deep: #1976D2; --bt-violet-a: #667eea; --bt-violet-b: #764ba2; --bt-gold: #f0b90b; --bt-purple-a: #f3e5f5; --bt-purple-b: #e1bee7; --bt-green-a: #e8f5e9; --bt-green-b: #c8e6c9; --bt-amber-a: #fff3cd; --bt-amber-b: #ffeaa7; --bt-amber-line: #ffd54f; --bt-disabled: #cccccc; --bt-input-bg: rgba(255, 255, 255, 0.60); --bt-input-border: rgba(242, 2, 137, 0.30); }
html[data-theme="dark"]:root { --bt-p1: #FF4F9A; --bt-p1-edge: #C4006E; --bt-p2: #4DB3FF; --bt-p2-edge: #1976D2; --bt-board-a: rgba(27, 13, 38, 0.92); --bt-board-b: rgba(18, 8, 27, 0.92); --bt-line: rgba(255, 255, 255, 0.22); --bt-node-fill: rgba(34, 16, 45, 1); --bt-node-stroke: rgba(255, 255, 255, 0.28); --bt-piece-shadow: rgba(0, 0, 0, 0.50); --bt-hi-1: rgba(255, 255, 255, 0.75); --bt-hi-2: rgba(255, 255, 255, 0.55); --bt-select: #FF9800; --bt-select-fill: rgba(255, 152, 0, 0.25); --bt-legal-fill: rgba(76, 175, 80, 0.85); --bt-legal-ring: rgba(76, 175, 80, 0.60); --bt-cap: #F44336; --bt-cap-fill: rgba(244, 67, 54, 0.90); --bt-cap-ring: rgba(244, 67, 54, 0.60); --bt-board-shadow: 0 0 0 1px rgba(242, 2, 137, 0.25), 0 0 22px rgba(242, 2, 137, 0.30), 0 12px 32px rgba(0, 0, 0, 0.55); --bt-purple-a: rgba(166, 107, 255, 0.18); --bt-purple-b: rgba(166, 107, 255, 0.30); --bt-green-a: rgba(47, 191, 139, 0.18); --bt-green-b: rgba(47, 191, 139, 0.30); --bt-amber-a: rgba(255, 154, 85, 0.18); --bt-amber-b: rgba(255, 154, 85, 0.30); --bt-disabled: #4a3a55; --bt-input-bg: rgba(0, 0, 0, 0.25); --bt-input-border: rgba(255, 255, 255, 0.18); }
