/* Game theme: noir (modern / contemporary settings)
 *
 * Dark charcoal and black, rain-slick streets, amber streetlight and neon accents.
 * Display type is a deco serif (Playfair Display); meta lines use a typewriter face
 * (Special Elite). Background: /noir-bg.jpg. Header height is not increased (stays 172px).
 */
body.theme-noir {
  --theme-id: noir;
  --gold: #e0b15a;
  --gold-hi: #f3d48a;
  --gold-lo: #8a5a18;
  --wood: #141414;
  --wood-dk: #080808;
  --rune: #f0c060;
  --accent: #d4a017;
  --accent-rgb: 212, 160, 23;
  --logo-glow: rgba(224, 177, 90, 0.45);
  --accent-glow: rgba(255, 60, 160, 0.28);
  --accent-glow-soft: rgba(0, 220, 210, 0.22);
  --accent-glow-strong: rgba(224, 177, 90, 0.55);
  --bot: #f3d48a;
  --owner: #f3d48a;
  --associate: #e0b15a;
  --text: #e8e4dc;
  --neon: #ff3ca0;
  --teal: #2ee0d0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.82) 100%),
    linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.62)),
    url('/noir-bg.jpg?v=ghost1') center / cover fixed no-repeat,
    #070707;
  color: var(--text);
}

body.theme-noir .brand h1,
body.theme-noir .sheet-name,
body.theme-noir .lib-head h2,
body.theme-noir .camp-name {
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #f3d48a;
  -webkit-text-fill-color: #f3d48a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
@media (min-width: 561px) { body.theme-noir .brand h1 { font-size: 1.28rem; } }

body.theme-noir .presence,
body.theme-noir .maker,
body.theme-noir .camp-meta,
body.theme-noir .day-rule {
  font-family: "Special Elite", "Courier New", Courier, monospace;
  letter-spacing: 0.04em;
}

body.theme-noir #app::before {
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

body.theme-noir .topbar {
  background:
    linear-gradient(180deg, rgba(224, 177, 90, 0.08), transparent 45%),
    linear-gradient(180deg, #1a1a1a, #0a0a0a 70%, #050505);
  border-bottom: 2px solid #e0b15a;
  box-shadow: 0 1px 0 #3a2a10, 0 8px 28px rgba(0,0,0,0.7), 0 0 18px rgba(255, 60, 160, 0.08);
}
body.theme-noir .topbar::after {
  content: "—  ·  —  ·  —  ·  —  ·  —  ·  —  ·  —  ·  —  ·  —";
  color: #e0b15a;
  text-shadow: 0 0 8px rgba(224, 177, 90, 0.45), 0 0 16px rgba(46, 224, 208, 0.15);
  letter-spacing: 0.45em;
}
body.theme-noir .presence { color: #e0b15a; }
body.theme-noir .you-chip,
body.theme-noir .logout-btn,
body.theme-noir .library-btn,
body.theme-noir .header-toggle,
body.theme-noir .spellbook-btn {
  background: linear-gradient(180deg, #2a2a2a, #101010);
  border-color: #e0b15a;
  color: #f3e6c4;
  font-family: "Special Elite", "Courier New", Courier, monospace;
}

body.theme-noir .bubble {
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.92), rgba(12, 12, 12, 0.94));
  border-color: rgba(224, 177, 90, 0.35);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.45);
}
body.theme-noir .bubble.mine {
  background: linear-gradient(180deg, rgba(40, 32, 18, 0.92), rgba(18, 14, 8, 0.94));
  border-color: rgba(224, 177, 90, 0.55);
}
body.theme-noir .day-rule { color: #e0b15a; }
body.theme-noir .empty { color: #c8b48a; }
body.theme-noir .composer {
  background: linear-gradient(180deg, #161616, #080808);
  border-top: 1px solid #e0b15a;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.45);
}
body.theme-noir .composer textarea { background: rgba(8, 8, 8, 0.88); color: var(--text); border-color: #4a4030; }
body.theme-noir .composer button {
  background: #e0b15a;
  color: #14110a;
  border-color: #f3d48a;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.06em;
}
body.theme-noir .log { scrollbar-color: #e0b15a #121212; }
body.theme-noir .log::-webkit-scrollbar-track { background: #0a0a0a; }

body.theme-noir .pane-sheet,
body.theme-noir .pane-inventory {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 177, 90, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(8, 8, 8, 0.97));
}
body.theme-noir .sheet-section {
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.8), rgba(14, 14, 14, 0.85));
  border-color: rgba(224, 177, 90, 0.35);
}
body.theme-noir .sheet-section h3 {
  color: var(--gold-hi);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.08em;
}
body.theme-noir .ability,
body.theme-noir .inv-currency { background: linear-gradient(180deg, rgba(36, 32, 22, 0.8), rgba(12, 12, 12, 0.9)); }
body.theme-noir .combat-box,
body.theme-noir .spell-item { background: rgba(10, 10, 10, 0.8); }

@media (max-width: 1023px) {
  body.theme-noir .pane-tabs { background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(8,8,8,0.96)); }
  body.theme-noir .pane-tab { background: rgba(16, 16, 16, 0.7); color: #e8e4dc; font-family: "Special Elite", Courier, monospace; }
  body.theme-noir .pane-tab.is-active {
    color: #14110a;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
    border-color: #f3d48a;
  }
}

body.theme-noir .lib-modal {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(40, 20, 30, 0.35), rgba(0, 0, 0, 0.88) 60%),
    rgba(0, 0, 0, 0.82);
}
body.theme-noir .lib-card {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(8, 8, 8, 0.98));
  box-shadow: 0 0 0 1px rgba(224, 177, 90, 0.35), 0 0 40px rgba(255, 60, 160, 0.12), 0 24px 60px rgba(0,0,0,0.7);
  color: var(--text);
}
body.theme-noir .lib-head { background: linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(12, 12, 12, 0.96)); }
body.theme-noir .lib-item { background: rgba(14, 14, 14, 0.8); }

body.theme-noir .sheet-portrait {
  border-color: #e0b15a;
  background: #080808;
  box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-lo), 0 0 16px var(--logo-glow), 0 0 24px rgba(46, 224, 208, 0.15);
}

body.theme-noir .chat-dock {
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a 70%, #050505);
  border-top-color: #e0b15a;
}
body.theme-noir .terms-card {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(8, 8, 8, 0.98));
  border-color: rgba(224, 177, 90, 0.45);
}
body.theme-noir .lib-head.terms-head,
body.theme-noir .terms-accept-row {
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(12, 12, 12, 0.96));
}
body.theme-noir .admin-view-badge {
  border-color: #e0b15a;
  color: #f3d48a;
  font-family: "Special Elite", Courier, monospace;
}
