/* Shared semantic colours. No image filters: artwork, merch and paint keep their own colours. */
:root {
  color-scheme:light;
  --theme-desktop:#087f80;--theme-chrome:#c0c0c0;--theme-page:#dedede;--theme-panel:#e8e8e2;--theme-paper:#fffff3;--theme-field:#fff;
  --theme-ink:#141414;--theme-muted:#494951;--theme-link:#000080;--theme-accent:#155e53;--theme-border:#81817b;--theme-selected:#d3d8e2;
  --theme-title-start:#000080;--theme-title-end:#08699e;--theme-title-ink:#fff;--theme-note:#fff4b4;--theme-ticker:#fffed1;--theme-photo:#fff;
  --theme-check-a:#ddd;--theme-check-b:#d4d4d4;--theme-edge-light:#fff;--theme-edge-mid:#dfdfdf;--theme-edge-dark:#808080;--theme-edge-deep:#0a0a0a;
  --theme-pink:#ffd1e9;--theme-purple:#e4d4ff;--theme-blue:#cceeff;--theme-green:#d5f5c5;--theme-success:#193d0e;--theme-success-bg:#d3edbd;--theme-success-border:#4b7532;
  --theme-frog-opacity:.2;--theme-grid-opacity:.63;--theme-focus:#000080;--theme-focus-halo:#fff;--theme-backdrop:#0015159e;
  --silver:var(--theme-chrome);--light:var(--theme-edge-mid);--navy:var(--theme-link);--ink:var(--theme-ink);--teal:var(--theme-desktop);
  --bevel:inset -1px -1px var(--theme-edge-deep),inset 1px 1px var(--theme-edge-light),inset -2px -2px var(--theme-edge-dark),inset 2px 2px var(--theme-edge-mid);
  --sunken:inset -1px -1px var(--theme-edge-light),inset 1px 1px var(--theme-edge-dark),inset -2px -2px var(--theme-edge-mid),inset 2px 2px var(--theme-edge-deep);
}
:root[data-theme=purple] {
  --theme-desktop:#79648d;--theme-chrome:#d2c9dc;--theme-page:#eee8f3;--theme-panel:#e4dcea;--theme-paper:#fffaff;--theme-field:#fffaff;
  --theme-ink:#262032;--theme-muted:#5d5064;--theme-link:#4d286f;--theme-accent:#2e6255;--theme-border:#93859f;--theme-selected:#d8c9e7;
  --theme-title-start:#493265;--theme-title-end:#6b4e89;--theme-photo:#f7f2fa;--theme-check-a:#ded4e7;--theme-check-b:#e8e0ef;
  --theme-edge-light:#fffaff;--theme-edge-mid:#ece3f2;--theme-edge-dark:#94879f;--theme-edge-deep:#382d45;--theme-note:#f6e7b6;--theme-ticker:#f3e7fc;
}
:root[data-theme=quiet] {
  --theme-desktop:#49656b;--theme-chrome:#cad1cf;--theme-page:#eef1ed;--theme-panel:#e2e9e4;--theme-paper:#fbfdf7;--theme-field:#fff;
  --theme-ink:#203039;--theme-muted:#47585d;--theme-link:#244c68;--theme-accent:#2c6051;--theme-border:#849691;--theme-selected:#d4e0de;
  --theme-title-start:#283f48;--theme-title-end:#45606d;--theme-note:#eee9c8;--theme-ticker:#e4ece1;--theme-photo:#f6f9f4;
  --theme-check-a:#dde5df;--theme-check-b:#e8eee8;--theme-edge-light:#fff;--theme-edge-mid:#e7eeea;--theme-edge-dark:#81948c;--theme-edge-deep:#283d39;
  --theme-frog-opacity:.13;--theme-grid-opacity:.12;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --theme-desktop:#111722;--theme-chrome:#303846;--theme-page:#1b2230;--theme-panel:#252e3c;--theme-paper:#202938;--theme-field:#151d29;
  --theme-ink:#edf1f7;--theme-muted:#bcc6d5;--theme-link:#b6d3ff;--theme-accent:#a7e5c3;--theme-border:#67778d;--theme-selected:#3c4c64;
  --theme-title-start:#182b56;--theme-title-end:#2c456e;--theme-note:#3e3622;--theme-ticker:#30341f;--theme-photo:#252c38;
  --theme-check-a:#29323e;--theme-check-b:#333e4e;--theme-edge-light:#78899c;--theme-edge-mid:#4c5a6c;--theme-edge-dark:#1a2130;--theme-edge-deep:#0a101b;
  --theme-pink:#482e41;--theme-purple:#3c3157;--theme-blue:#243d57;--theme-green:#2a4337;--theme-success:#d3f7bc;--theme-success-bg:#29422d;--theme-success-border:#96c881;
  --theme-frog-opacity:.13;--theme-grid-opacity:.2;--theme-focus:#b6d3ff;--theme-focus-halo:#111722;--theme-backdrop:#050914bf;
}
[data-theme] body {background-color:var(--theme-desktop);color:var(--theme-ink)}
[data-theme] body::before {opacity:var(--theme-grid-opacity)}
[data-theme] .badge-wallpaper {opacity:var(--theme-frog-opacity)}
[data-theme] .desktop-label>span {opacity:1}
[data-theme=quiet] body::before {animation:none}
[data-theme=quiet] .badge-wallpaper {animation:none;transform:none}
[data-theme=quiet] .badge-wallpaper pattern>image:not(:first-child) {display:none}
[data-theme=quiet] body:not(.snake-active) .desktop-snake {display:none}
[data-theme] .title-bar {background:linear-gradient(90deg,var(--theme-title-start),var(--theme-title-end));color:var(--theme-title-ink)}
[data-theme] .title-bar a {color:var(--theme-title-ink)}
[data-theme] :is(.menu-bar,.social-toolbar) {border-color:var(--theme-border);box-shadow:0 1px var(--theme-edge-light)}
[data-theme] :is(.menu-bar a,.menu-bar button,.top-social-link,.window-control,.close-dialog,.mini-close,.window-controls i,.social-link,.taskbar-toggle,.music-control,.music-mute,.task-button,.fun-program) {color:var(--theme-ink)}
[data-theme] :is(.music-now-playing,.preview-zoom) {color:var(--theme-ink)}
[data-theme] .preview-zoom {background:var(--theme-chrome)}
[data-theme] :is(.page-content,.about-portrait) {background:var(--theme-page);border-color:var(--theme-border)}
[data-theme] :is(.stream-window-body,.about-body,.link-decal-body,.mod-promo-body,.decal-promo-body,.home-discord-body,.home-art-body,.discord-invite-card,.merch-store-body,.art-window-body,.gallery-note,.lost-party) {background:var(--theme-panel);color:var(--theme-ink)}
[data-theme] :is(.journal-body,.notepad-sheet,.article-content,.arcade-body,.toy-dialog-body,.easter-window-body,.music-body,.arrival-body,.lost-body,.construction-body,.empty-state) {background:var(--theme-paper);color:var(--theme-ink)}
[data-theme] :is(.address,.search-label input,.hunter-name,.certificate-name,.changelog-text,.music-playlist) {background:var(--theme-field);color:var(--theme-ink);border-color:var(--theme-border)}
[data-theme] :is(.social-label small,.social-label em,.draft-label,.eyebrow,.micro,.section-intro,.section-heading>span,.art-gallery-heading>span,.post-row p,.post-row time,.post-category,.draft-footnote,.mod-counter,.page-footer,.status-bar,.folder-sticker span,.folder-heading>span:last-child,.card-file-name,.author-line,.file-kind,.photo-note,.creator-note,.ranking-footer,.member-title,.member-reason,.ranking-empty p,.discord-invite-card>p:not(.eyebrow),.community-note>p,.stream-heading>p,.steamy-stats dt,.home-latest-post time,.decal-promo-body small,.hp-joke,.art-sticker b,.trophy-sticker>span,.handwritten) {color:var(--theme-muted)}
[data-theme] .notepad-cursor {color:var(--theme-accent)}
[data-theme] .satire-note {color:var(--theme-muted)}
[data-theme] .draft-pill {background:var(--theme-note);color:var(--theme-ink)}
[data-theme] :is(.hero h1 span,.hero .hero-hook,.about-copy>.about-hook,.mods-heading h1 span,.extra-heading h1 span,.about-placeholder,.notepad-sticker,.viewer-heading) {color:var(--theme-accent)}
[data-theme] :is(.home-discord-copy h2,.home-art-body h2,.discord-counts strong,.mod-card h3,.construction-message h1) {color:var(--theme-link)}
[data-theme] :is(.menu-bar a[aria-current],.taskbar-toggle[aria-pressed=true],.task-button,.button.active,.music-now-playing,.ranking-table th,.paint-tools [aria-pressed=true],.paint-stamps [aria-pressed=true]) {background:var(--theme-selected)}
[data-theme] :is(.links-section,.post-row,.page-footer,.folder-heading,.homepage-shortcuts,.art-gallery-heading,.home-latest-post,.steamy-stats>div,.about-copy>.business-contact,.discord-counts,.discord-counts>div+div,.ranking-table td,.ranking-table th) {border-color:var(--theme-border)}
[data-theme] :is(.art-preview-button,.home-art-image,.home-art-preview img,.merch-photo,.merch-photo img,.preview-button) {background:var(--theme-photo)}
[data-theme] :is(.large-preview,.mod-card .preview-button img,.mod-card.sights .preview-button img,.promo-mod .promo-image,.decal-promo-body>a:first-child,.blank-picture) {background:repeating-conic-gradient(var(--theme-check-a) 0% 25%,var(--theme-check-b) 0% 50%) 50%/18px 18px}
[data-theme] .merch-photo {color:var(--theme-link)}
[data-theme] .ranking-table-wrap {background:var(--theme-paper)}
[data-theme] :is(.sticky-note,.submission-note,.art-sticker,.certificate-sheet,.cookie-joke-body,.achievement-toast,.mr-frog-bubble) {background:var(--theme-note);color:var(--theme-ink)}
[data-theme] .mr-frog-bubble {border-color:var(--theme-border)}
[data-theme] .mr-frog-bubble::after {border-color:var(--theme-border)}
[data-theme] :is(.mr-frog-dismiss,.achievement-dismiss,.tiny-no,.turn-off-ads,.blank-picture span,.blank-picture i) {color:var(--theme-muted)}
[data-theme] .turn-off-ads {background:transparent}
[data-theme] .gamba-promo>.turn-off-ads {background:var(--theme-field);color:var(--theme-ink)}
[data-theme=dark] .community-art-callout {background:#4b3e16;color:#fff2c2}
[data-theme] .ticker {background:var(--theme-ticker);color:var(--theme-ink)}
[data-theme] .side-promo-body {background:var(--theme-note);color:var(--theme-ink)}
[data-theme] .side-promo[data-side-tone=pink] .side-promo-body {background:var(--theme-pink)}
[data-theme] .side-promo[data-side-tone=purple] .side-promo-body {background:var(--theme-purple)}
[data-theme] .side-promo[data-side-tone=blue] .side-promo-body {background:var(--theme-blue)}
[data-theme] .side-promo[data-side-tone=green] .side-promo-body {background:var(--theme-green)}
[data-theme] .decal-ad {--ad-ink:#141414;--ad-link:#000080}
[data-theme] .decal-ad[data-dvd-color="3"] {--ad-ink:#fff;--ad-link:#fff}
[data-theme=dark] .decal-ad {--ad-ink:var(--theme-ink);--ad-link:var(--theme-link)}
[data-theme=dark] .decal-ad-body {background:var(--theme-note);animation:none}
[data-theme=dark] .decal-ad[data-dvd-color="0"] .decal-ad-body {background:var(--theme-pink)}
[data-theme=dark] .decal-ad[data-dvd-color="1"] .decal-ad-body {background:var(--theme-purple)}
[data-theme=dark] .decal-ad[data-dvd-color="2"] .decal-ad-body {background:var(--theme-note)}
[data-theme=dark] .decal-ad[data-dvd-color="3"] .decal-ad-body {background:var(--theme-blue)}
[data-theme=dark] .decal-ad[data-dvd-color="4"] .decal-ad-body {background:#21464c}
[data-theme] .decal-ad .decal-ad-body {color:var(--ad-ink)}
[data-theme] .decal-ad-body :is(.turn-off-ads,.tiny-no) {color:var(--ad-ink)}
[data-theme] .decal-ad :is(h2,.satire-note,.promo-author a,.promo-credit a) {color:var(--ad-link)}
[data-theme] :is(.arrival-dismiss:disabled,.fun-locked) {color:var(--theme-muted);text-shadow:none}
[data-theme] :is(.snake-hud>p,.runner-hud,.breakout-hud) {background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-border)}
[data-theme] .fun-program.fun-locked {color:var(--theme-muted)}
[data-theme] .achievement-locked {background:var(--theme-panel);color:var(--theme-muted);border-color:var(--theme-border)}
[data-theme] .achievement-earned {background:var(--theme-success-bg);color:var(--theme-success);border-color:var(--theme-success-border)!important}
[data-theme] .curated-tag {background:var(--theme-note);color:var(--theme-ink)!important}
[data-theme] .image-state {background:var(--theme-title-start);color:#fff}
[data-theme] .image-failed .image-state {background:var(--theme-panel);color:var(--theme-link);border-color:var(--theme-border)}
[data-theme] .button.primary:not(.affirmative) {background:var(--affirmative-background);color:var(--affirmative-ink)}
[data-theme] .music-track-choice {background:var(--theme-field);color:var(--theme-ink);border-color:var(--theme-border)}
[data-theme] .music-track-choice[aria-current=true] {background:var(--theme-title-start);color:#fff}
[data-theme] :is(.music-seek,.music-volume-row input,input[type=radio]) {accent-color:var(--theme-link)}
[data-theme] :is(a,button,input,textarea,[tabindex]):focus-visible {outline-color:var(--theme-focus);box-shadow:0 0 0 3px var(--theme-focus-halo)}
[data-theme] :is(.retro-dialog,.wheel-window)::backdrop {background:var(--theme-backdrop)}
/* The wheel and its floating promotion keep their intentional transparent stage. */
[data-theme] :is(.wheel-window,.gamba-promo)>.arcade-body {background:transparent;color:#fff}
[data-theme] .wheel-window>.title-bar {background:transparent;box-shadow:none}
[data-theme] .wheel-window .close-dialog {background:#202037;color:#fff}
[data-theme] .wheel-window .close-dialog:hover {background:#343455}
[data-theme] .paint-layers {background:var(--theme-panel);color:var(--theme-ink)}
[data-theme] .wheel-prize>.button {color:var(--theme-ink)}
[data-theme] .easter-crash .easter-window-body {background:#000080;color:#fff}
[data-theme] .easter-crash h2 {color:#fff}
[data-theme] .certificate-recipient {color:var(--theme-link)}
[data-theme] .internet-badges span:nth-child(2) {background:var(--theme-panel);color:var(--theme-ink)}
[data-theme=dark] .internet-badges span:nth-child(3) {background:#29483f;color:#fff}
[data-theme=dark] .promo-brand-icon {background:#eceef3}
[data-theme=dark] :is(.window-control,.music-control) .ui-icon,[data-theme=dark] img.brand-icon[src="assets/brands/x.svg"] {filter:brightness(0) invert(1)}
[data-theme] .wheel-pointer {color:var(--theme-link)}
[data-theme] .skip-link {background:var(--theme-field);color:var(--theme-link)}
.settings-launcher.taskbar-toggle {display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:.5rem}
.settings-launcher .ui-icon {width:22px;height:22px}
.settings-launcher.taskbar-toggle::after {content:none}
@media(max-width:600px) {.taskbar-controls .taskbar-toggle {min-width:44px;width:44px;font-size:.6875rem}}
.theme-window {width:min(620px,calc(100vw - 1rem))}
.theme-options {border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-width:0}
.theme-options legend {font:700 1.25rem/1.5 var(--font-file);padding:0 0 .75rem}
.theme-option {display:grid;grid-template-columns:24px minmax(0,1fr);gap:.5rem;align-items:start;padding:.75rem;border:2px solid var(--theme-border);background:var(--theme-field);color:var(--theme-ink);cursor:pointer;min-width:0}
.theme-option input {width:20px;height:20px;margin:0;grid-column:1;grid-row:1;accent-color:var(--theme-link)}
.theme-option-copy {display:block;grid-column:1/-1;overflow-wrap:anywhere}
.theme-option-copy strong,.theme-option-copy small {display:block}
.theme-option-copy small {font:.8125rem/1.5 var(--font-ui);color:var(--theme-muted);margin-top:.25rem}
.theme-option.theme-selected {outline:2px solid var(--theme-link);outline-offset:1px}
.theme-option:focus-within {outline:2px dashed var(--theme-focus);outline-offset:3px}
.theme-preview {display:block;height:56px;padding:8px 12px;background:#087f80;--preview-chrome:#c0c0c0;--preview-page:#dedede;--preview-bar:#000080}
.theme-preview-window {display:block;padding:3px;background:var(--preview-chrome);height:100%}
.theme-preview-bar {display:block;height:8px;background:var(--preview-bar)}
.theme-preview-page {display:block;margin-top:3px;height:16px;background:var(--preview-page)}
.theme-option[data-preview=purple] .theme-preview {background:#79648d;--preview-chrome:#d2c9dc;--preview-page:#eee8f3;--preview-bar:#493265}
.theme-option[data-preview=quiet] .theme-preview {background:#49656b;--preview-chrome:#cad1cf;--preview-page:#eef1ed;--preview-bar:#283f48}
.theme-option[data-preview=dark] .theme-preview {background:#111722;--preview-chrome:#303846;--preview-page:#1b2230;--preview-bar:#182b56}
.theme-status {font:.8125rem/1.5 var(--font-ui);margin:.875rem 0;overflow-wrap:anywhere}
.theme-option-joke {grid-column:1/-1;grid-template-columns:80px minmax(0,1fr);text-align:left;font:1rem/1.5 var(--font-ui)}
.theme-option-joke .theme-option-copy {grid-column:2}
.theme-option-joke .theme-preview {background:#000;width:100%}
.germany-vision.retro-dialog {position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#000;overflow:hidden}
.germany-vision>.title-bar {display:none}
[data-theme] .germany-vision>.arcade-body {position:relative;width:100%;height:100%;padding:0;background:#000;color:#ddd}
[data-theme] .germany-vision::backdrop {background:#000}
[data-theme] .germany-vision .vision-back {position:absolute;top:calc(1rem + env(safe-area-inset-top,0px));right:calc(1rem + env(safe-area-inset-right,0px));min-width:80px;min-height:44px;padding:.625rem 1rem;border:0;background:transparent;color:#ddd;box-shadow:none;font:1rem/1.5 var(--font-ui)}
[data-theme] .germany-vision .vision-back:hover {background:#000;color:#fff;box-shadow:none}
[data-theme] .germany-vision .vision-back:focus-visible {outline:2px dotted #fff;outline-offset:4px;box-shadow:none}
@media(max-width:480px) {.theme-options{grid-template-columns:minmax(0,1fr)}.theme-option{grid-template-columns:24px 76px minmax(0,1fr);align-items:center;padding:.625rem;gap:.625rem}.theme-option-copy{grid-column:3}.theme-preview{height:52px;padding:8px}.theme-window>.arcade-body{padding:1rem .75rem}.theme-launcher{width:100%;font-size:.8125rem}}
@media(max-width:480px) {.theme-option-joke{grid-template-columns:76px minmax(0,1fr)}.theme-option-joke .theme-option-copy{grid-column:2}}
@media(hover:hover) {
  [data-theme] :is(button,a.button,.menu-bar a,.top-social-link,.social-link,.stream-popout,.mod-promo,.home-art-preview,.merch-photo):not(.easter-word):not(:disabled):not([aria-disabled=true]):hover {background:var(--button-hover-background);color:var(--button-hover-ink)}
  [data-theme] :is(.social-link,.mod-promo):hover :is(small,em,h2,p,strong,.mod-counter) {color:var(--button-hover-ink)}
  [data-theme] .mod-promo:hover .mod-promo-body {background:var(--button-hover-background)}
  [data-theme=dark] :is(.window-control,.music-control):hover .ui-icon,[data-theme=dark] a:hover img.brand-icon[src="assets/brands/x.svg"] {filter:brightness(0)}
}
