/* Game theme: plain / gray (neutral gray Tavern Portal)
 *
 * Default for new campaigns until a setting is chosen. Applied with
 * body.theme-gray (body.theme-plain is kept as a synonym). The header
 * shows a grayscale/silver emblem; no colored runes, stars, or dragon
 * watermark; simple sans-serif.
 */

body.theme-plain,
body.theme-gray {
  --theme-id: plain;
  --gold: #9aa1ab;
  --gold-hi: #e6e8eb;
  --gold-lo: #5b616b;
  --wood: #2a2d32;
  --wood-dk: #1c1e22;
  --rune: #b8bec7;
  --accent: #8d949e;
  --accent-rgb: 160, 166, 176;
  --logo-glow: rgba(190, 196, 204, 0.4);
  --accent-glow: rgba(200, 205, 212, 0.25);
  --accent-glow-soft: rgba(200, 205, 212, 0.12);
  --accent-glow-strong: rgba(220, 224, 230, 0.35);
  --bot: #e6e8eb;
  --owner: #e6e8eb;
  --associate: #cfd4da;
  --text: #eceef1;
  background: #1b1d21;
  color: var(--text);
}

body.theme-plain,
body.theme-gray,
body.theme-plain *:not(svg):not(path),
body.theme-gray *:not(svg):not(path) {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-shadow: none !important;
}

body.theme-plain .maker,
body.theme-gray .maker,
body.theme-plain .topbar::after,
body.theme-gray .topbar::after,
body.theme-plain #app::before,
body.theme-gray #app::before { display: none !important; }

/* Keep the header emblem visible (earlier gray CSS hid .big-logo). */
body.theme-plain .topbar .big-logo,
body.theme-gray .topbar .big-logo {
  display: block !important;
}

/* Gradient-text headings become flat */
body.theme-plain .brand h1,
/* Gradient-text headings become flat */
body.theme-gray .brand h1,
body.theme-plain .sheet-name,
body.theme-gray .sheet-name {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: #f1f2f4; -webkit-text-fill-color: #f1f2f4;
  letter-spacing: 0.01em; font-weight: 650;
}

body.theme-plain .brand h1,
body.theme-gray .brand h1 { font-size: 1.05rem; }

body.theme-plain .topbar,
body.theme-gray .topbar {
  background: #25282d;
  border-bottom: 1px solid #3a3e45;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  padding-bottom: 10px;
}

body.theme-plain .presence,
body.theme-gray .presence { color: #a7adb6; }

body.theme-plain .you-chip,
body.theme-gray .you-chip,
body.theme-plain .logout-btn,
body.theme-gray .logout-btn,
body.theme-plain .library-btn,
body.theme-gray .library-btn,
body.theme-plain .header-toggle,
body.theme-gray .header-toggle,
body.theme-plain .spellbook-btn,
body.theme-gray .spellbook-btn,
body.theme-plain .spell-action,
body.theme-gray .spell-action,
body.theme-plain .lib-x,
body.theme-gray .lib-x {
  background: #30343a; color: #e6e8eb;
  border: 1px solid #4a4f57; box-shadow: none;
  letter-spacing: 0.02em; text-transform: none;
}

body.theme-plain .logout-btn:hover,
body.theme-gray .logout-btn:hover,
body.theme-plain .library-btn:hover,
body.theme-gray .library-btn:hover,
body.theme-plain .header-toggle:hover,
body.theme-gray .header-toggle:hover,
body.theme-plain .spellbook-btn:not(:disabled):hover,
body.theme-gray .spellbook-btn:not(:disabled):hover { background: #3a3f46; box-shadow: none; }

body.theme-plain .badge,
body.theme-gray .badge { border-color: #5b616b; color: #d7dbe0; letter-spacing: 0.02em; }

/* Chat */
body.theme-plain .log,
/* Chat */
body.theme-gray .log { scrollbar-color: #5b616b #1f2125; }

body.theme-plain .log::-webkit-scrollbar-track,
body.theme-gray .log::-webkit-scrollbar-track { background: #1f2125; border-left: none; }

body.theme-plain .log::-webkit-scrollbar-thumb,
body.theme-gray .log::-webkit-scrollbar-thumb { background: #5b616b; border-color: #1f2125; box-shadow: none; }

body.theme-plain .bubble,
body.theme-gray .bubble {
  background: #2a2d32; border-color: #3c4047;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.theme-plain .bubble.mine,
body.theme-gray .bubble.mine { background: #353a41; border-color: #4a4f57; }

body.theme-plain .day-rule,
body.theme-gray .day-rule { color: #9aa1ab; }

body.theme-plain .empty,
body.theme-gray .empty { color: #a7adb6; }

body.theme-plain .composer,
body.theme-gray .composer { background: #25282d; border-top: 1px solid #3a3e45; box-shadow: none; }

body.theme-plain .composer textarea,
body.theme-gray .composer textarea { background: #1b1d21; border-color: #4a4f57; color: #eceef1; }

body.theme-plain .composer textarea::placeholder,
body.theme-gray .composer textarea::placeholder { color: #8a9099; }

body.theme-plain .composer button,
body.theme-gray .composer button {
  background: #e6e8eb; color: #1b1d21; border: 1px solid #e6e8eb; box-shadow: none; letter-spacing: 0.02em;
}

/* Side panes */
body.theme-plain .pane-sheet,
/* Side panes */
body.theme-gray .pane-sheet,
body.theme-plain .pane-inventory,
body.theme-gray .pane-inventory { background: #202226; border-color: #3a3e45; scrollbar-color: #5b616b #1f2125; }

body.theme-plain .sheet-section,
body.theme-gray .sheet-section {
  background: #26292e; border-color: #3a3e45; box-shadow: none;
}

body.theme-plain .sheet-section h3,
body.theme-gray .sheet-section h3 { color: #b8bec7; letter-spacing: 0.06em; }

body.theme-plain .sheet-sub,
body.theme-gray .sheet-sub { color: #a7adb6; }

body.theme-plain .ability,
body.theme-gray .ability,
body.theme-plain .inv-currency,
body.theme-gray .inv-currency,
body.theme-plain .combat-box,
body.theme-gray .combat-box,
body.theme-plain .spell-item,
body.theme-gray .spell-item { background: #1f2125; border-color: #3f444b; box-shadow: none; }

body.theme-plain .skill-list li .tag,
body.theme-gray .skill-list li .tag,
body.theme-plain .item-meta,
body.theme-gray .item-meta,
body.theme-plain .muted,
body.theme-gray .muted,
body.theme-plain .empty-panel,
body.theme-gray .empty-panel,
body.theme-plain .combat-box .hint,
body.theme-gray .combat-box .hint { color: #8a9099; }
@media (max-width: 1023px) {
  body.theme-plain .pane-tabs,
body.theme-gray .pane-tabs { background: #222428; border-bottom: 1px solid #3a3e45; }

body.theme-plain .pane-tab,
body.theme-gray .pane-tab { background: #2a2d32; border-color: #3f444b; color: #c3c8cf; letter-spacing: 0.02em; text-transform: none; }

body.theme-plain .pane-tab.is-active,
body.theme-gray .pane-tab.is-active { background: #e6e8eb; color: #1b1d21; border-color: #e6e8eb; }
}

/* Modals */
body.theme-plain .lib-modal,
/* Modals */
body.theme-gray .lib-modal { background: rgba(10, 11, 13, 0.82); }

body.theme-plain .lib-card,
body.theme-gray .lib-card { background: #24272c; border-color: #3f444b; box-shadow: 0 20px 50px rgba(0,0,0,0.5); color: #eceef1; }

body.theme-plain .lib-head,
body.theme-gray .lib-head { background: #2a2d32; border-bottom-color: #3f444b; }

body.theme-plain .lib-head h2,
body.theme-gray .lib-head h2 { color: #f1f2f4; letter-spacing: 0.04em; }

body.theme-plain .lib-item,
body.theme-gray .lib-item { background: #1f2125; border-color: #3f444b; }
