/* Shared dark foundations. Artwork and the Kinolyap orange keep their identity. */
:root{--app-bg:#101010;--surface:#181818;--surface-raised:#202020;--control:#252525;--control-selected:#333;--text-primary:#f3f5f7;--muted:#8a8a8a;--card:var(--surface);--border:#ffffff14}
html,body{background:var(--app-bg);color:var(--text-primary)}
html[data-layout="mobile"] body,
html[data-layout="mobile"] .desktop-shell,
html[data-layout="mobile"][data-viewport] .desktop-shell,
html[data-layout="mobile"][data-viewport="desktop"] .desktop-shell,
html[data-layout="mobile"][data-viewport="desktop"] .desktop-shell:has(.home-landing){background:var(--app-bg);color:var(--text-primary)}
html[data-layout="mobile"] .app-boot{background:var(--app-bg)}
html[data-layout="mobile"][data-viewport="desktop"] .sidebar{background:#101010ed}
html[data-layout="mobile"] :is(.home-landing,.games-hub,.collections-hub,.browse-page,.site-page){color:var(--text-primary)}
html[data-layout="mobile"] :is(.landing-game,.landing-collection,.collection-builtin,.collection-card,.collections-empty,.collections-community-empty,.collection-detail-movies>button,.profile-level-summary,.profile-publications-empty,.profile-menu,.agent-profile .agent-stat-card,.agent-profile .agent-activity-card,.agent-profile .agent-social-counts>div,.leader-stat,.ranking-row,.games-ranking-empty,.site-page-intro,.auth-panel,.browse-empty){background:var(--surface);border-color:var(--border)}
html[data-layout="mobile"] .landing-game:before{border-color:var(--border)}
html[data-layout="mobile"] .games-hub .investigation-card{background:var(--surface);border:1px solid var(--border)}
html[data-layout="mobile"] .investigation-skin{display:none}
html[data-layout="mobile"] .games-hub .investigation-channel{background:transparent;border:1px dashed #ffffff26}
html[data-layout="mobile"] :is(.games-segments,.collections-segments,.profile-main-tabs,.agent-social-counts>button,.landing-avatar){background:var(--surface-raised)}
html[data-layout="mobile"] :is(.games-segments,.collections-segments,.profile-main-tabs) button[aria-pressed="true"]{background:var(--control-selected)}
html[data-layout="mobile"] :is(.journal-button,.search-panel,.guess-journal,.profile-actions button,.circle){background:var(--control)}
html[data-layout="mobile"]{background:var(--app-bg);--mobile-glass:var(--control);--mobile-bottom:var(--app-bg)}
html[data-layout="mobile"][data-game-flow="true"] :is(.search-input,.journal-button){background:var(--control)}
html[data-layout="mobile"] :is(.browse-type,.browse-filter,.browse-back,.browse-filter-form select,.browse-filter-form input){background:var(--surface-raised);border-color:var(--border)}
html[data-layout="mobile"] .browse-type button[aria-pressed="true"]{background:var(--control-selected)}
html[data-layout="mobile"] :is(.search-panel,.guess-journal){border-color:var(--border)}
html[data-layout="mobile"] :is(.mobile-tabs,.mobile-tabs-inner){background:#181818ed;border-color:var(--border)}
html[data-layout="mobile"] dialog{background:var(--surface);color:var(--text-primary);border-color:var(--border)}
html[data-layout="mobile"] :is(.list-create-sheet-body,.list-create-sheet-footer,.library-sheet){background:var(--surface)}
html[data-layout="mobile"][data-viewport="desktop"] .desktop-navigation button[aria-current="page"]{background:var(--control-selected);box-shadow:none}
html[data-layout="mobile"][data-viewport="desktop"][data-game-flow="true"] .app[data-screen] :is(.answer-panel,.resolution-panel){background:var(--surface);border-color:var(--border)}
html[data-layout="mobile"][data-viewport="desktop"][data-game-flow="true"] .app[data-screen] :is(.search-panel,.guess-journal){background:var(--surface-raised)}
.site-page{color:var(--text-primary)}
.site-page-intro{background:var(--surface);border:1px solid var(--border)}
.site-page-back{background:var(--control)}
