/* Palette changes affect app surfaces; photographs, game worlds and chat retain their colours. */
:root{--theme-paper:#fff7ef;--theme-surface:#fffaf5;--theme-soft:#f7dfeb;--theme-ink:#40273c;--theme-muted:#866779;--theme-accent:#a72e66;--theme-border:#ecd8df;--theme-dot:#d9bac233}
:root[data-app-theme=rose]{--theme-paper:#ffedf3;--theme-surface:#fff6f9;--theme-soft:#f8d4e2;--theme-ink:#4d263b;--theme-muted:#85596e;--theme-accent:#a93366;--theme-border:#e9bfd0;--theme-dot:#c06b9133}
:root[data-app-theme=sage]{--theme-paper:#f0f5ed;--theme-surface:#fafcf7;--theme-soft:#dde9d4;--theme-ink:#293e2e;--theme-muted:#596e5c;--theme-accent:#466846;--theme-border:#c9dac5;--theme-dot:#75986b33}
:root[data-app-theme=lavender]{--theme-paper:#f3eefb;--theme-surface:#fcf9ff;--theme-soft:#e6d8f5;--theme-ink:#3d2c55;--theme-muted:#746085;--theme-accent:#71509e;--theme-border:#dbcaea;--theme-dot:#9471b733}
:root[data-app-theme=midnight]{--theme-paper:#191c2b;--theme-surface:#25293d;--theme-soft:#353a52;--theme-ink:#f5eefa;--theme-muted:#c2b7cc;--theme-accent:#e9a8cc;--theme-border:#4a4661;--theme-dot:#bfa7d51a}
html[data-app-theme]{--bg:var(--theme-paper);--text:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-border);--coral:var(--theme-accent);background:var(--theme-paper);color:var(--theme-ink)}
html[data-app-theme] body{background-color:var(--theme-paper);background-image:radial-gradient(var(--theme-dot) .7px,transparent .7px);color:var(--theme-ink)}
.app-appearance{padding:20px 0;border-top:1px dashed var(--theme-border);border-bottom:1px dashed var(--theme-border);margin:12px 0 20px}.app-appearance h2{font:700 18px Manrope;margin:0 0 7px;color:var(--theme-ink)}.app-appearance p{font-size:11px;line-height:1.6;color:var(--theme-muted)}.app-theme-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.app-theme-choices button{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--theme-border);border-radius:14px;color:var(--theme-ink);background:var(--theme-surface);font-size:11px}.app-theme-choices i{width:30px;height:32px;display:grid;place-items:center;border-radius:8px;font:24px Georgia;border:1px solid var(--theme-border)}.app-theme-choices button[aria-pressed=true]{outline:2px solid var(--theme-accent);outline-offset:1px}.app-theme-status{min-height:18px;margin-bottom:0}
html[data-app-theme] :is(.topbar,.guest-banner,.profile-section,.profile-account,.setting-row,.footer){border-color:var(--theme-border)}
html[data-app-theme] :is(.profile-settings,.heading h1,.music-heading h1,.profile-name-line h1,.profile-section summary,.profile-account-link,.profile-shortcuts button,.page-return,.app-wordmark,.brand-word,.brand-two,.icon-button,.menu-toggle){color:var(--theme-ink)}
html[data-app-theme] :is(.sidebar,.profile-section,.profile-account,.app-appearance,.getaway-activity[open],#modal,#space-menu){background-color:var(--theme-surface);color:var(--theme-ink)}
html[data-app-theme] :is(.btn.light,.guest-connect,.mode-label,.nav button.active,.profile-setting-actions button,.profile-shortcuts button:hover){background:var(--theme-soft);color:var(--theme-ink)}
html[data-app-theme] :is(.profile-identity-copy p,.profile-hint,.profile-section-body p,.guest-banner p,.setting-row p,.date-word,.footer){color:var(--theme-muted)}
html[data-app-theme] :is(input,textarea,select){background-color:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html[data-app-theme=midnight] :is(.btn.coral,.btn.purple){background:#b85b94;color:#fff}
html[data-app-theme=midnight] :is(.eyebrow,.nest-kicker,.guest-banner b,.brand-caption,.profile-setting-actions button,.nav button,.play-stage-close,.sudoku-top h2,.sudoku-top p,.sudoku-status,.playlist-empty,.music-heading em,.song-title,.setting-row b,.memory-meta h3){color:var(--theme-muted)}
html[data-app-theme=midnight] :is(.getaway-still,.getaway-hop,.sudoku-stage,.fighter-stage,.word-stage,.legacy-game-stage,.note-card,.memory-card,.question-deck,.pool-card,.sudoku-cell,.sudoku-lobby button,.sudoku-actions button,.sudoku-numbers button,.choice,.answer-box){background-color:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html[data-app-theme=midnight] .getaway-activity[open]>summary{background:var(--theme-surface)}
html[data-app-theme=midnight] :is(.menu-link,.menu-head,.modal-head h2,.modal-body h3,.modal-body p,.memory-viewer p,.chess-heading h2){color:var(--theme-ink)}
html[data-app-theme=midnight] .chapter-intro{color:var(--theme-muted)}
