/* Game theme: forest (other fantasy settings)
 *
 * Applied with <body class="theme-forest">. Deep greens, moss, and canopy light.
 * Background: /forest-bg.jpg. Header height is not increased (stays 172px).
 */
body.theme-forest {
  --theme-id: forest;
  --gold: #c5d48a;
  --gold-hi: #e7f0b8;
  --gold-lo: #6a7a3a;
  --wood: #1b2a18;
  --wood-dk: #0e160c;
  --rune: #9eca6a;
  --accent: #3d7a4a;
  --accent-rgb: 70, 140, 80;
  --logo-glow: rgba(90, 170, 70, 0.55);
  --accent-glow: rgba(90, 170, 70, 0.5);
  --accent-glow-soft: rgba(90, 170, 70, 0.28);
  --accent-glow-strong: rgba(140, 200, 90, 0.65);
  --bot: #e7f0b8;
  --owner: #e7f0b8;
  --associate: #c5d48a;
  --text: #e8f0dc;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 0%, rgba(4, 12, 6, 0.35) 55%, rgba(4, 10, 6, 0.78) 100%),
    linear-gradient(rgba(8, 18, 8, 0.28), rgba(6, 12, 6, 0.58)),
    url('/forest-bg.jpg?v=ghost1') center / cover fixed no-repeat,
    #102010;
  color: var(--text);
}

body.theme-forest .brand h1,
body.theme-forest .sheet-name,
body.theme-forest .lib-head h2 {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.04em;
  color: #e7f0b8;
  -webkit-text-fill-color: #e7f0b8;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
@media (min-width: 561px) { body.theme-forest .brand h1 { font-size: 1.25rem; } }

body.theme-forest #app::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%239eca6a' stroke-width='1.4' d='M60 10c8 18 8 28 0 40 8-4 18-4 28 2-12 2-20 8-24 20 6-6 16-8 26-4-14 10-22 22-24 40-2-16-12-28-28-36 10 2 16 8 20 18-10-12-24-16-40-12 16-8 24-20 24-36-10 8-24 10-38 6 16-4 26-14 32-28 0 14-6 24-16 34 12-2 20 2 26 12z'/%3E%3C/svg%3E") center 55% / min(42vh, 300px) no-repeat;
  opacity: 0.07;
  mix-blend-mode: normal;
}

body.theme-forest .topbar {
  background:
    linear-gradient(180deg, rgba(180, 220, 140, 0.08), transparent 50%),
    linear-gradient(180deg, #234526, #132416 72%, #0d180f);
  border-bottom: 2px solid #6d9a4e;
  box-shadow: 0 1px 0 #3a5a2c, 0 6px 22px rgba(0,0,0,0.55);
}
body.theme-forest .topbar::after {
  content: "❀  ✦  ❀  ✦  ❀  ✦  ❀  ✦  ❀  ✦  ❀  ✦  ❀";
  color: #c5d48a;
  text-shadow: 0 0 6px rgba(140, 200, 90, 0.45);
  letter-spacing: 0.4em;
}
body.theme-forest .presence { color: #c5d48a; }
body.theme-forest .you-chip,
body.theme-forest .logout-btn,
body.theme-forest .library-btn,
body.theme-forest .header-toggle,
body.theme-forest .spellbook-btn {
  background: linear-gradient(180deg, #2c4a2e, #152016);
  border-color: #6d9a4e;
  color: #e8f0dc;
}

body.theme-forest .bubble {
  background: linear-gradient(180deg, rgba(24, 40, 22, 0.9), rgba(14, 22, 14, 0.92));
  border-color: rgba(109, 154, 78, 0.45);
  color: var(--text);
}
body.theme-forest .bubble.mine {
  background: linear-gradient(180deg, rgba(40, 72, 38, 0.9), rgba(20, 36, 20, 0.92));
  border-color: rgba(197, 212, 138, 0.5);
}
body.theme-forest .day-rule { color: #c5d48a; }
body.theme-forest .empty { color: #c5d48a; }
body.theme-forest .composer {
  background: linear-gradient(180deg, #1e3220, #101a10);
  border-top-color: #6d9a4e;
}
body.theme-forest .composer textarea { background: rgba(10, 18, 10, 0.8); color: var(--text); }
body.theme-forest .log { scrollbar-color: #6d9a4e rgba(16, 28, 16, 0.6); }
body.theme-forest .log::-webkit-scrollbar-track { background: #101a10; }

body.theme-forest .pane-sheet,
body.theme-forest .pane-inventory {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(60, 120, 50, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(16, 28, 16, 0.94), rgba(10, 18, 10, 0.95));
}
body.theme-forest .sheet-section {
  background: linear-gradient(180deg, rgba(30, 48, 26, 0.72), rgba(16, 28, 16, 0.75));
  border-color: rgba(109, 154, 78, 0.45);
}
body.theme-forest .sheet-section h3 { color: var(--gold-hi); }
body.theme-forest .ability,
body.theme-forest .inv-currency { background: linear-gradient(180deg, rgba(36, 60, 32, 0.75), rgba(14, 22, 14, 0.85)); }
body.theme-forest .combat-box,
body.theme-forest .spell-item { background: rgba(12, 20, 12, 0.72); }

@media (max-width: 1023px) {
  body.theme-forest .pane-tabs { background: linear-gradient(180deg, rgba(24, 40, 22, 0.94), rgba(12, 20, 12, 0.94)); }
  body.theme-forest .pane-tab { background: rgba(16, 28, 16, 0.65); color: #d8e6c4; }
  body.theme-forest .pane-tab.is-active {
    color: #102010;
    background: linear-gradient(180deg, var(--gold-hi), #c5d48a 55%, var(--gold-lo));
    border-color: #e7f0b8;
  }
}

body.theme-forest .lib-modal {
  background: radial-gradient(ellipse at 50% 30%, rgba(30, 60, 28, 0.45), rgba(4, 10, 6, 0.88) 60%), rgba(4, 10, 6, 0.8);
}
body.theme-forest .lib-card {
  background: linear-gradient(180deg, rgba(22, 36, 20, 0.97), rgba(10, 16, 10, 0.97));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 40px rgba(50, 100, 40, 0.3), 0 24px 60px rgba(0,0,0,0.55);
}
body.theme-forest .lib-head { background: linear-gradient(180deg, rgba(36, 60, 32, 0.98), rgba(16, 28, 16, 0.95)); }
body.theme-forest .lib-item { background: rgba(14, 22, 14, 0.75); }

body.theme-forest .sheet-portrait {
  border-color: #c5d48a;
  background: #0e160c;
  box-shadow: 0 0 0 2px rgba(8, 16, 8, 0.9), 0 0 0 3px var(--gold-lo), 0 0 14px var(--logo-glow);
}

body.theme-forest .chat-dock {
  background: linear-gradient(180deg, #234526, #132416 70%, #0d180f);
  border-top-color: #6d9a4e;
}
body.theme-forest .terms-card {
  background: linear-gradient(180deg, rgba(22, 36, 20, 0.97), rgba(10, 16, 10, 0.98));
  border-color: rgba(109, 154, 78, 0.55);
}
body.theme-forest .lib-head.terms-head,
body.theme-forest .terms-accept-row {
  background: linear-gradient(180deg, rgba(36, 60, 32, 0.98), rgba(16, 28, 16, 0.96));
}
body.theme-forest .admin-view-badge {
  border-color: #c5d48a;
  color: #e7f0b8;
}
