/* Site-wide light presentation. No catalog, checkout or payment logic is changed. */
:root {
  color-scheme: light;
  --bg-0: #f5f7fb; --bg-1: #ffffff; --bg-2: #eef2f7;
  --ink: #172033; --ink-soft: #475569; --ink-mute: #64748b;
  --gold-1: #805a0d; --gold-2: #966b15; --gold-3: #73500a;
  --gold-glow: rgba(150,107,21,.12);
  --line: #e2e8f0; --line-strong: #cbd5e1;
  --glass: #fff; --glass-hi: #f8fafc; --glass-strong: #f1f5f9;
  --ok: #15803d; --warn: #a16207; --err: #b91c1c;
  --shadow: 0 12px 36px rgba(30,41,59,.07);
  --shadow-1: 0 8px 24px rgba(30,41,59,.07);
  --shadow-2: 0 16px 48px rgba(30,41,59,.09);
  --premium-bg: #f5f7fb; --premium-border: #dbe3ec;
}
html { background: #f5f7fb; }
body, body.ludo-page { background: #f5f7fb !important; color: #172033; }
body::before { opacity: .2; }
.top, header.glass-top, body > header {
  background: rgba(255,255,255,.97) !important; border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(30,41,59,.04);
}
body > header a, body > header span { color: #172033 !important; }
.brand .name, .invoice-hero-band .brand-row .name {
  background: none; -webkit-text-fill-color: #172033; color: #172033;
}
.card, .side, .panel, .glass-card, .invoice-sheet, .invoice-hero-band,
.hero-panel, .hero-chip, .hero-meta, .stat, .addr, .ord, .wcard,
.field .input-wrap, .field .prefix, .review-summary-chip,
.lightbox-dialog, #telegramChatPanel > div:first-child {
  background: #fff !important; color: #172033 !important; border-color: #e2e8f0;
}
.hero-panel .hero-eyebrow, .hero-panel p, .hero-panel .crumb a,
.invoice-hero-band .tagline, #telegramChatPanel > div:first-child * { color: #475569 !important; }
.card, .panel, .side, .glass-card, .invoice-sheet { box-shadow: var(--shadow); }
.tabs, .stat, .addr.def { background: #f1f5f9; }
.f input, .f select, .f textarea, .chat-form input, #phoneCode {
  background: #fff; color: #172033; border: 1px solid #cbd5e1;
}
.f input::placeholder, .f textarea::placeholder, input::placeholder { color: #64748b; }
.f input:focus, .f textarea:focus { background: #fff; }
.tab.on, .btn:not(.btn-ghost), .btn-primary { background: #f4dc9b; color: #332708; }
.msg.err, .badge.b-err, .mi.danger, .status-pill.error, .toast.err { color: #b91c1c; }
.msg.ok, .badge.b-ok, .status-pill.ok { color: #166534; }
.msg.info, .badge.b-info, .badge.b-warn, .status-pill.warn { color: #854d0e; }
.toast { background: #fff; color: #172033; border-color: #cbd5e1; box-shadow: var(--shadow); }
.toast:not(.show) { visibility: hidden; pointer-events: none; }
.avatar { background: #f4dc9b; color: #332708; }
.invoice-hero-band .meta-grid .item .v { color: #172033; }
.invoice-hero-band .meta-grid .item .k { color: #64748b; }
#checkoutTitle { color: #172033; text-shadow: none; }
#checkoutSubtitle { color: #475569; }
.chat-box { background: #f8fafc; }
.wcard img { background: #f1f5f9; }
.db-account-link.dark { background: #fff !important; border-color: #cbd5e1 !important; }
.db-account-link.dark .db-account-initials { color: #172033 !important; }
.db-account-badge { background: #f4dc9b !important; color: #332708 !important; }
#phoneCode { width: 100%; max-width: 220px; border-radius: 10px; padding: 10px; margin: 8px 0; }
#customerAccountsPanel th { white-space: nowrap; }
#customerAccountsPanel button:disabled { opacity: .5; cursor: wait; }
#telegramChatCloseBtn { color: #172033 !important; }
/* Retain board and token colours; lighten only the game shell and controls. */
.ludo-page .pcard, .ludo-page .icon-btn, .ludo-page .sheet,
.ludo-page .sheet-head, .ludo-page .sheet-body, .ludo-page .seg button,
.ludo-page .chip, .ludo-page .name-input, .ludo-page .code-input,
.ludo-page .chat-log, .ludo-page .quick-emoji span, .ludo-page .bottom-nav,
.ludo-page .lobby-card, .ludo-page .btn, .ludo-page .game-footer {
  background: #fff !important; color: #172033 !important; border-color: #cbd5e1;
}
.ludo-page .gold-text { background: none; color: #805a0d; -webkit-text-fill-color: #805a0d; }
.ludo-page .sub, .ludo-page .coin, .ludo-page .tag { color: #805a0d; }
/* The bundled game uses body.lp; keep gameplay intact while lightening its UI. */
body.lp { color: #172033 !important; }
.lp .pcard, .lp .ic-btn, .lp .sheet-body, .lp .seg button, .lp .chip,
.lp .opt, .lp .name-input, .lp .code-input, .lp .lobby-item,
.lp .chat-log, .lp .quick-emoji span, .lp .btn, .lp .board-shell,
.lp .dice-well, .lp .dice-stage.ready .dice-well {
  background: #fff !important; color: #172033 !important; border-color: #cbd5e1;
}
.lp .pcard .nm { color: #172033; }
.lp .pcard .coin, .lp .sub, .lp .hint, .lp .turn-label { color: #805a0d; }
.lp .gold-text { background: none; color: #805a0d; -webkit-text-fill-color: #805a0d; }
@media print {
  html, body, .invoice-sheet, .invoice-hero-band { background: #fff !important; color: #111827 !important; box-shadow: none !important; }
}
