/* Two selected art directions. Paper texture uses CSS, without image downloads. */
.has-room-layout.room-theme-active[data-game-theme="ember"] {
  --v2-gold: #e1b56e;
  --v2-panel: #211d17;
  --v2-line: #4a3c2c;
  --v2-muted: #c2b59d;
}
.has-room-layout.room-theme-active[data-game-theme="ember"] #room-grid .log-entry.type-gm {
  border-left: 2px solid var(--v2-gold);
  background: linear-gradient(110deg, #33291e, #211d17);
}
.has-room-layout.room-theme-active[data-game-theme="ember"] #room-grid .col-title {
  font-family: var(--font-display);
  color: #f0ddbb;
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] {
  color-scheme: light;
  --ash-950: #e9d7b4; --ash-900: #f3e6ca; --ash-800: #e8d5af; --ash-700: #bba47b;
  --bone-100: #372b1e; --bone-200: #594631; --bone-300: #413323;
  --gold-300: #795026; --gold-350: #795026; --gold-400: #795026;
  --gold-focus: #765028; --gold-highlight: #60401e; --ember-warm: #865027;
  --ember-400: #8f4426; --ember-500: #8f4426; --ember-glow: #8f4426;
  --panel-900: #f2e4c6; --panel-800: #ead8b3; --surface-deep: #f5e9ce; --surface-raised: #e9d8b6;
  --night-950: #e9d7b4; --text-100: #372b1e; --text-soft: #413323; --text-dim: #6b563c;
  --muted-300: #6b563c; --muted-400: #6b563c; --neutral-400: #6b563c;
  --line-600: #c5ae84; --line-500: #c5ae84; --line-subtle: #c5ae84; --line-soft-alpha: #c5ae84;
  --ink-900: #372b1e; --ink-on-gold: #fff6e3;
  --v2-panel: #f4e7ca; --v2-line: #c5ae84; --v2-muted: #6b563c; --v2-gold: #795026;
  --v2-shadow: 0 5px 22px #684a2720;
  --paper-texture: radial-gradient(ellipse at 0% 10%, #9b642a24, transparent 38%), radial-gradient(ellipse at 100% 95%, #9b642a20, transparent 42%), repeating-linear-gradient(0deg, #754c1b04 0px, #754c1b04 1px, transparent 1px, transparent 4px), repeating-linear-gradient(92deg, #fff8e512 0px, #fff8e512 1px, transparent 1px, transparent 7px);
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] body {
  color-scheme: light;
  color: var(--bone-100);
  background: var(--paper-texture), #e9d7b4;
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] .ember-field { display: none; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] #screen-room .room-topbar {
  background: #efdfbd;
  border-bottom: 3px double #b79a6b;
  box-shadow: none;
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(.my-char-card, .log-panel, #room-sidebar > section, #my-stats.is-inline, #my-inventory.is-inline, .gate-panel, .start-card) {
  background: var(--paper-texture), #f4e7ca;
  color: var(--bone-100);
  border-color: #c5ae84;
  border-radius: 4px;
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-panel { box-shadow: inset 0 0 34px #9c6e2920, 0 4px 18px #684a271a !important; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(h1,h2,h3,.col-title,.log-author-gm) { color: #594025; font-family: var(--font-display); }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-panel-head { border-bottom: 3px double #c5ae84; padding-bottom: 12px; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-feed { background: transparent; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-entry { color: #372b1e; font-style: normal; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-entry.type-gm {
  font-family: var(--font-display);
  line-height: 1.8;
  background: transparent;
  border-left: 2px solid #b48b50;
  padding: 14px 18px;
  box-shadow: none;
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-entry.type-chat { background: #e9d6b14d; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(.log-time,.log-entry.is-service) { color: #6b563c; opacity: 1; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(button,summary,select,input,textarea) { color-scheme: light; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(.btn,.btn-log-toggle,.quick-btn,#room-view-options button,#room-reading summary,#room-log-tools summary,#room-party-strip button,#room-action-help button,#room-action-help a,#room-mobile-nav button,#room-action-bar button) {
  background: #e8d6b2;
  color: #594025;
  border-color: #bda276;
}
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(input,select,textarea,#message-input) { background: #fbf2dc; color: #372b1e; border-color: #bda276; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] input::placeholder { color: #756348; opacity: 1; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(.btn-primary,#form-message button[type="submit"],#room-mobile-nav button[aria-selected="true"]) { background: #795026; color: #fff6e3; border-color: #795026; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(#room-reading[open],#room-tools > div,#room-log-tools > div,#room-party-detail,#form-message,#room-action-bar,#room-mobile-nav,#quick-actions:has(#quick-targets:not([hidden]))) { background: #f2e3c3; color: #372b1e; border-color: #bda276; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] #room-status { color: #614b31; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] #room-status.is-important { background: #e7cfa2; color: #593915; border-color: #795026; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] #room-grid .inv-cell { background: radial-gradient(ellipse at 40% 30%,#f8edd2,#dcc397); border-color: #bda276; box-shadow: inset 0 1px 4px #684a2720; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] #room-grid .inv-cell.is-empty::after { border-color: #ac8c59; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(.quest-focus,.quest-item,.quests-list > li,.relic-card,.reward-card,.campaign-reward) { background: #ead8b4; color: #372b1e; border-color: #bda276; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-panel.is-fullscreen { background: var(--paper-texture), #f4e7ca; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-entry.is-crit-fail { background: #f0d4c4; color: #792d22; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-entry.is-crit-success { background: #dee4c5; color: #355028; }
@media (prefers-reduced-motion: reduce) {
  .has-room-layout[data-game-theme] { scroll-behavior: auto; }
}

.has-room-layout.room-theme-active[data-game-theme="parchment"] :is(.difficulty-line,.scenario-line,.ready-count) { color:#614b31; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .ready-count.is-all-ready { background:#dce3c4; color:#355028; border-color:#9cac7b; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-filter { background:#ead8b4; color:#594025; border-color:#bda276; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-filter.is-active { background:#795026; color:#fff6e3; border-color:#795026; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .quest-reward { background:#ead8b4; color:#372b1e; border-color:#bda276; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .quest-reward .qr-effect { color:#36522c; }
.has-room-layout.room-theme-active[data-game-theme="parchment"] .log-entry .log-author-gm { color:#795026; }
