/* Original Minecraft block art. Sources are linked in Minecraft → Themes. */
html[data-theme="overworld"], .theme-choice[data-theme-choice="overworld"] {
  --bg:#241b14; --sidebar:#272a22; --surface:#343832; --surface2:#252a24; --surface3:#454c3d;
  --text:#f7f6ed; --muted:#d1d6c9; --accent:#b2df82; --accent2:#74a744; --border:#747e69;
  --good:#bbec95; --warn:#ffd889; --danger:#ffb8ab; --shadow:0 5px 0 #120e0bbd;
  --theme-top:#283522; --theme-panel:#232720; --theme-paper:#1d211c; --theme-paper-text:#f7f6ed;
  --theme-paper-muted:#c2cbb9; --theme-highlight:#c8ed9e; --theme-primary:#99c767;
  --theme-primary-ink:#162111; --theme-wash:#a9d27b25; --theme-mark:#6c9e42;
  --terrain-edge:#a2d678; --terrain-blend:multiply;
  --terrain-ground-shade:#21170ec9; --terrain-sidebar-shade:#1b211ce0; --terrain-panel-shade:#292d28db;
  --terrain-rim:#78806d; --terrain-sidebar-rim:#68705d; --terrain-header-rim:#526642; --terrain-line:#75836a;
  --terrain-top:url('./textures/overworld/grass-top.png');
  --terrain-side:url('./textures/overworld/grass-side.png');
  --terrain-ground:url('./textures/overworld/dirt.png');
  --terrain-panel:url('./textures/overworld/stone.png');
}
html[data-theme="nether"], .theme-choice[data-theme-choice="nether"] {
  --bg:#271317; --sidebar:#2c171e; --surface:#352126; --surface2:#2e1b22; --surface3:#4a2831;
  --text:#fff1eb; --muted:#e1c4c3; --accent:#ffb39c; --accent2:#d67560; --border:#9b666b;
  --good:#bfeb9f; --warn:#ffdc92; --danger:#ffb3b6; --shadow:0 5px 0 #17090cbd;
  --theme-top:#3c1d26; --theme-panel:#2b171d; --theme-paper:#24151c; --theme-paper-text:#fff1eb;
  --theme-paper-muted:#d9b9be; --theme-highlight:#ffc4ac; --theme-primary:#f0a08a;
  --theme-primary-ink:#351518; --theme-wash:#f0a08a25; --theme-mark:#b95d5a;
  --terrain-edge:#92333c; --terrain-blend:normal;
  --terrain-ground-shade:#281016a8; --terrain-sidebar-shade:#211119c2; --terrain-panel-shade:#43272b82;
  --terrain-rim:#a76e71; --terrain-sidebar-rim:#855057; --terrain-header-rim:#79424b; --terrain-line:#995f64;
  --terrain-top:url('./textures/nether/nylium-top.png');
  --terrain-side:url('./textures/nether/nylium-side.png');
  --terrain-ground:url('./textures/nether/netherrack.png');
  --terrain-panel:url('./textures/nether/nether-bricks.png');
}
html[data-theme="deep-dark"], .theme-choice[data-theme-choice="deep-dark"] {
  --bg:#0b1419; --sidebar:#121d22; --surface:#1e2a30; --surface2:#142028; --surface3:#243840; --text:#edfaff; --muted:#bad1d8; --accent:#88e4e9; --accent2:#47adbb; --border:#4e7580; --good:#b4eab8; --warn:#ffe39a; --danger:#ffb8bf; --shadow:0 5px 0 #070e13bd;
  --theme-top:#101e24; --theme-panel:#142127; --theme-paper:#0e191e; --theme-paper-text:#edfaff; --theme-paper-muted:#b1ced7; --theme-highlight:#a3f5f4; --theme-primary:#79dee3; --theme-primary-ink:#122930; --theme-wash:#83e1e725; --theme-mark:#358995;
  --terrain-edge:#10474d; --terrain-blend:normal; --terrain-ground-shade:#0c1819c4; --terrain-sidebar-shade:#10232ad9; --terrain-panel-shade:#18272dc9; --terrain-rim:#4e7580; --terrain-sidebar-rim:#315964; --terrain-header-rim:#305a65; --terrain-line:#487e86;
  --terrain-top:url('./textures/deep-dark/sculk.png');
  --terrain-side:url('./textures/deep-dark/sculk_catalyst_side.png');
  --terrain-ground:url('./textures/deep-dark/deepslate.png');
  --terrain-panel:url('./textures/deep-dark/deepslate_tiles.png');
}
html[data-theme="ocean-monument"], .theme-choice[data-theme-choice="ocean-monument"] {
  --bg:#0a242b; --sidebar:#123639; --surface:#204147; --surface2:#133239; --surface3:#28545a; --text:#effffe; --muted:#bddfe0; --accent:#a5f6e4; --accent2:#66c5b3; --border:#598e8e; --good:#c4f4a6; --warn:#ffe29c; --danger:#ffb9ac; --shadow:0 5px 0 #05181cbd;
  --theme-top:#123d40; --theme-panel:#193d41; --theme-paper:#0d2b33; --theme-paper-text:#effffe; --theme-paper-muted:#b8dedc; --theme-highlight:#c6fff2; --theme-primary:#a5e6d3; --theme-primary-ink:#163330; --theme-wash:#a5f6e425; --theme-mark:#57998f;
  --terrain-edge:#baeede; --terrain-blend:normal; --terrain-ground-shade:#092a32a6; --terrain-sidebar-shade:#133a3cd4; --terrain-panel-shade:#174047c9; --terrain-rim:#6fa9a4; --terrain-sidebar-rim:#4f8b87; --terrain-header-rim:#5f9d96; --terrain-line:#629c98;
  --terrain-top:url('./textures/ocean-monument/sea_lantern.png');
  --terrain-side:url('./textures/ocean-monument/prismarine.png');
  --terrain-ground:url('./textures/ocean-monument/dark_prismarine.png');
  --terrain-panel:url('./textures/ocean-monument/prismarine_bricks.png');
}
html[data-theme="cherry-grove"], .theme-choice[data-theme-choice="cherry-grove"] {
  --bg:#35272d; --sidebar:#382631; --surface:#4e3441; --surface2:#382934; --surface3:#634150; --text:#fff6fa; --muted:#f2d5e0; --accent:#ffb9d5; --accent2:#de89ac; --border:#b58198; --good:#caedb3; --warn:#ffdf9b; --danger:#ffbbc4; --shadow:0 5px 0 #20151abd;
  --theme-top:#462733; --theme-panel:#48323e; --theme-paper:#352630; --theme-paper-text:#fff6fa; --theme-paper-muted:#f2d5e0; --theme-highlight:#ffdaea; --theme-primary:#f5b2ca; --theme-primary-ink:#3d222e; --theme-wash:#f5b2ca25; --theme-mark:#d487a6;
  --terrain-edge:#cf809e; --terrain-blend:normal; --terrain-ground-shade:#29261dd3; --terrain-sidebar-shade:#3c2433e6; --terrain-panel-shade:#4c303edb; --terrain-rim:#b9889b; --terrain-sidebar-rim:#8c5c74; --terrain-header-rim:#ad6b87; --terrain-line:#b77c94;
  --terrain-top:url('./textures/cherry-grove/cherry_leaves.png');
  --terrain-side:url('./textures/cherry-grove/cherry_log.png');
  --terrain-ground:url('./textures/cherry-grove/moss_block.png');
  --terrain-panel:url('./textures/cherry-grove/cherry_planks.png');
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) {color-scheme:dark}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) body {background:var(--bg);color:var(--text)}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .main-shell {
  background:linear-gradient(var(--terrain-ground-shade),var(--terrain-ground-shade)),var(--terrain-ground) left top / 64px 64px repeat,var(--bg);
  image-rendering:pixelated;
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar {
  position:relative;margin-bottom:40px;background:var(--theme-top);
  border-bottom:0;box-shadow:inset 0 -2px var(--terrain-header-rim);
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar::before,
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar::after {
  content:"";position:absolute;left:0;right:0;pointer-events:none;
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar::before {
  top:100%;height:8px;background:var(--terrain-top) left top / 32px 32px repeat-x var(--terrain-edge);
  background-blend-mode:var(--terrain-blend);
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar::after {
  top:calc(100% + 8px);height:32px;background:var(--terrain-side) left top / 32px 32px repeat-x;
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .sidebar {
  background:linear-gradient(var(--terrain-sidebar-shade),var(--terrain-sidebar-shade)),var(--terrain-panel) left top / 48px 48px repeat,var(--sidebar);
  image-rendering:pixelated;border-right:2px solid var(--terrain-sidebar-rim);
  box-shadow:3px 0 0 #17130edb;
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.card,dialog) {
  background:linear-gradient(var(--terrain-panel-shade),var(--terrain-panel-shade)),var(--terrain-panel) left top / 48px 48px repeat,var(--surface);
  image-rendering:pixelated;color:var(--text);border:2px solid var(--terrain-rim);border-radius:3px;
  box-shadow:inset 2px 2px #a3aa9440,inset -2px -2px #131710aa,0 5px 0 #130e0abf;
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .card::before,
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .card::after {display:none}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.page-head,.card-header) {border-bottom:2px solid var(--terrain-line)}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .page-head::after {
  bottom:-2px;width:34px;height:3px;transform:none;border:0;background:var(--theme-primary);
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.workspace-tabs,.workspace-tabs button,.nav-item,.btn,.badge,.brandmark,.input,textarea,select) {border-radius:3px}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.btn,.workspace-tabs button[aria-selected="true"],.nav-item.active) {
  box-shadow:inset 0 2px #ffffff35,inset 0 -2px #12181070;
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.input,textarea,select) {box-shadow:inset 0 2px #0c100aaa}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .workspace-tabs button[aria-selected="true"] {
  background:var(--theme-primary);color:var(--theme-primary-ink);
}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.toggle-row,.checkbox-row,.minecraft-facts dd) {color:var(--text)}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) :is(.top-avatar,img,.preview-card) {image-rendering:auto}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar .breadcrumb span {color:var(--muted)}
html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .brand small {color:var(--accent)}

.minecraft-theme-gallery .theme-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
:is(.theme-choice[data-theme-choice="overworld"],.theme-choice[data-theme-choice="nether"],.theme-choice[data-theme-choice="deep-dark"],.theme-choice[data-theme-choice="ocean-monument"],.theme-choice[data-theme-choice="cherry-grove"]) {
  background:var(--surface2);color:var(--text);border-color:var(--border);
}
:is(.theme-choice[data-theme-choice="overworld"],.theme-choice[data-theme-choice="nether"],.theme-choice[data-theme-choice="deep-dark"],.theme-choice[data-theme-choice="ocean-monument"],.theme-choice[data-theme-choice="cherry-grove"])[aria-pressed="true"] {border-color:var(--accent)}
:is(.theme-choice[data-theme-choice="overworld"],.theme-choice[data-theme-choice="nether"],.theme-choice[data-theme-choice="deep-dark"],.theme-choice[data-theme-choice="ocean-monument"],.theme-choice[data-theme-choice="cherry-grove"]) .theme-active {background:#293721;color:#d7f5bb;border-color:#849e71}
:is(.theme-swatch[data-theme-swatch="overworld"],.theme-swatch[data-theme-swatch="nether"],.theme-swatch[data-theme-swatch="deep-dark"],.theme-swatch[data-theme-swatch="ocean-monument"],.theme-swatch[data-theme-swatch="cherry-grove"]) {
  background:var(--terrain-ground) left top / 48px 48px repeat #765138;
  image-rendering:pixelated;border-color:#6f795f;border-radius:2px;padding:22px 12px 12px;
}
:is(.theme-swatch[data-theme-swatch="overworld"],.theme-swatch[data-theme-swatch="nether"],.theme-swatch[data-theme-swatch="deep-dark"],.theme-swatch[data-theme-swatch="ocean-monument"],.theme-swatch[data-theme-swatch="cherry-grove"])::before {
  inset:0 0 auto;width:auto;height:8px;border:0;
  background:var(--terrain-top) left top / 32px 32px repeat-x var(--terrain-edge);background-blend-mode:var(--terrain-blend);
}
:is(.theme-swatch[data-theme-swatch="overworld"],.theme-swatch[data-theme-swatch="nether"],.theme-swatch[data-theme-swatch="deep-dark"],.theme-swatch[data-theme-swatch="ocean-monument"],.theme-swatch[data-theme-swatch="cherry-grove"])::after {
  inset:8px 0 auto;height:32px;border:0;background:var(--terrain-side) left top / 32px 32px repeat-x;
}
:is(.theme-swatch[data-theme-swatch="overworld"],.theme-swatch[data-theme-swatch="nether"],.theme-swatch[data-theme-swatch="deep-dark"],.theme-swatch[data-theme-swatch="ocean-monument"],.theme-swatch[data-theme-swatch="cherry-grove"]) i {
  margin-left:0;height:46px;border:2px solid #a5ab99;
  background:var(--terrain-panel) left top / 32px 32px repeat #7f7f7f;
  box-shadow:inset 0 2px #ffffff45,0 3px #211912;
}
:is(.theme-swatch[data-theme-swatch="overworld"],.theme-swatch[data-theme-swatch="nether"],.theme-swatch[data-theme-swatch="deep-dark"],.theme-swatch[data-theme-swatch="ocean-monument"],.theme-swatch[data-theme-swatch="cherry-grove"]) i:last-child {height:33px}
.overworld-credits {margin:16px 0 0}
@media(max-width:760px) {
  html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar {margin-bottom:32px}
  html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar::before {height:8px}
  html:root:is([data-theme="overworld"],[data-theme="nether"],[data-theme="deep-dark"],[data-theme="ocean-monument"],[data-theme="cherry-grove"]) .topbar::after {height:24px;background-size:24px 24px}
}

.theme-choice:is([data-theme-choice="nether"],[data-theme-choice="deep-dark"],[data-theme-choice="ocean-monument"],[data-theme-choice="cherry-grove"]) .theme-active {
  background:var(--theme-panel);color:var(--accent);border-color:var(--border);
}
.theme-swatch:is([data-theme-swatch="nether"],[data-theme-swatch="deep-dark"],[data-theme-swatch="ocean-monument"],[data-theme-swatch="cherry-grove"]) {
  background-color:var(--bg);border-color:var(--terrain-rim);
}
.theme-swatch:is([data-theme-swatch="nether"],[data-theme-swatch="deep-dark"],[data-theme-swatch="ocean-monument"],[data-theme-swatch="cherry-grove"]) i {border-color:var(--terrain-rim)}
.minecraft-theme-gallery .overworld-credits ul {padding-left:1.4em}
.minecraft-theme-gallery .overworld-credits li + li {margin-top:.35em}

html:root[data-theme="deep-dark"] .page-head::after {
  box-shadow:0 0 9px #5ed9e6a0;
}
html:root[data-theme="ocean-monument"] .topbar::before {
  box-shadow:0 0 14px #a4f4de40;z-index:1;
}
html:root[data-theme="ocean-monument"] .card-header {
  border-bottom-style:double;border-bottom-width:4px;
}
html:root[data-theme="cherry-grove"] .main-shell,
.theme-choice[data-theme-choice="cherry-grove"] {
  --terrain-petals:url('./textures/cherry-grove/pink_petals.png');
}
html:root[data-theme="cherry-grove"] .topbar::before,
.theme-swatch[data-theme-swatch="cherry-grove"]::before {
  height:8px;background:var(--terrain-petals) 12px center / 16px 16px repeat-x,var(--terrain-top) left top / 32px 32px repeat-x var(--terrain-edge);
}
