/* Finishing details for the five other Minecraft themes. Existing block art only. */

/* Overworld — a grass block edge laid directly over continuous dirt. */
html:root[data-theme="overworld"] .main-shell {
  background:
    radial-gradient(ellipse at 79% 0,#bd9e6033,transparent 56%),
    linear-gradient(165deg,#302518aa,#211a14eb 76%),
    var(--terrain-ground) 0 0 / 48px 48px repeat #2d2218;
}
html:root[data-theme="overworld"], .theme-choice[data-theme-choice="overworld"] {
  --overworld-tree:url('./textures/overworld/oak-tree.svg');
  --overworld-grass:url('./textures/overworld/grass-edge.svg');
  --overworld-sky:linear-gradient(90deg,#182e3cf5 0%,#264b62f0 27%,#3c7189 64%,#538ca2 100%);
}
html:root[data-theme="overworld"] .topbar {
  height:90px;margin-bottom:23px;isolation:isolate;
  background:var(--overworld-sky);
  box-shadow:none;border-bottom:0;
}
html:root[data-theme="overworld"] .topbar::before {
  content:"";inset:auto clamp(105px,21%,290px) 0 auto;width:57px;height:61px;z-index:-1;
  background:var(--overworld-tree) center bottom / contain no-repeat;image-rendering:pixelated;
}
html:root[data-theme="overworld"] .topbar .mode-badge {background:#203847}
html:root[data-theme="overworld"] .topbar::after {
  top:100%;height:12px;background:var(--overworld-grass) left top / 48px 12px repeat-x;
}
html:root[data-theme="overworld"] .page-head {
  padding:19px 22px 22px;border:1px solid #88967a;border-top:3px solid #a0c479;
  background:linear-gradient(100deg,#30372bea 12%,#333a2de2 54%,#3d4434b8),
    var(--terrain-panel) right center / 48px 48px #353b30;
  box-shadow:0 5px 0 #1b2017,0 9px 20px #21170e91;
}
html:root[data-theme="overworld"] .page-head::after {display:none}
html:root[data-theme="overworld"] .page-head h1 {text-shadow:1px 3px 0 #141e12}
html:root[data-theme="overworld"] :is(.minecraft-page .card,.minecraft-theme-gallery) {
  border-top:3px solid #98a38a;box-shadow:inset 0 2px #ffffff1c,0 5px 0 #1b2017;
}
html:root[data-theme="overworld"] .minecraft-facts > div {
  padding:6px 0;border-bottom:1px solid #a7bd8c51;
}
.theme-choice[data-theme-choice="overworld"] .theme-swatch {
  background:
    linear-gradient(90deg,#3d7091,#75aec5) 0 0 / 100% 28px no-repeat,
    linear-gradient(#3a291b4d,#241a14aa),var(--terrain-ground) 0 0 / 40px 40px #765138;
}
.theme-choice[data-theme-choice="overworld"] .theme-swatch::before {
  content:"";inset:3px 15px auto auto;width:23px;height:25px;
  background:var(--overworld-tree) center bottom / contain no-repeat;z-index:1;
}
.theme-choice[data-theme-choice="overworld"] .theme-swatch::after {
  top:28px;height:10px;background:var(--overworld-grass) 0 0 / 40px 10px repeat-x;
}
.theme-choice[data-theme-choice="overworld"] .theme-swatch i {
  border-top:3px solid #a6b195;border-bottom:3px solid #353b32;
}

/* Nether — blackened brick, a lava-lit ledge, and drifting cinders. */
html:root[data-theme="nether"] {
  --bg:#18090f;--sidebar:#201017;--surface:#351820;--surface2:#2d1720;--surface3:#48232c;
  --text:#fff0e8;--muted:#e7c5bb;--accent:#ffb28b;--accent2:#ed7044;--border:#9d5148;
  --theme-top:#281016;--theme-panel:#2d171e;--theme-paper:#2b151d;
  --theme-paper-text:#fff0e8;--theme-paper-muted:#e7c5bb;
  --theme-primary:#ff9d6b;--theme-primary-ink:#2c1015;--theme-highlight:#ffbf95;
  --theme-wash:#ff713d36;--theme-mark:#ee723b;
  --lava-seam:linear-gradient(90deg,#8e262a 0%,#d74725 23%,#ff8642 51%,#ffb45c 69%,#e3532d 87%,#9e2d2b);
}
html:root[data-theme="nether"] .main-shell {
  background:
    radial-gradient(ellipse at 78% -7%,#f25e2a7a,transparent 51%),
    radial-gradient(ellipse at 100% 51%,#9f281e48,transparent 57%),
    linear-gradient(146deg,#230a12bd,#140711f0 74%),
    var(--terrain-ground) 0 0 / 64px 64px repeat #1c0b14;
}
html:root[data-theme="nether"] .sidebar {
  background:linear-gradient(110deg,#1b0c15ed,#2a1219bd),var(--terrain-panel) 0 0 / 48px 48px #201017;
  border-right:1px solid #8b453e;box-shadow:4px 0 15px #12070e;
}
html:root[data-theme="nether"] .nav-item.active {
  color:#ffeddf;background:#582326;border-left:3px solid #ff995d;box-shadow:inset 0 0 0 1px #b65a45;
}
html:root[data-theme="nether"] .nav-item.active :is(svg,span) {color:#ffb784}
html:root[data-theme="nether"] .topbar {
  margin-bottom:29px;background:linear-gradient(95deg,#210e18ed,#49191fe8),var(--terrain-panel) 0 0 / 48px 48px;
  border-bottom:0;box-shadow:none;
}
html:root[data-theme="nether"] .topbar::before {
  background:var(--lava-seam);height:4px;box-shadow:0 0 14px #f4773ca1;z-index:1;
}
html:root[data-theme="nether"] .topbar::after {
  top:calc(100% + 4px);height:24px;
  background:linear-gradient(#a939294c,#250b16c4),var(--terrain-panel) 0 0 / 32px 32px repeat-x;
  border-bottom:1px solid #b24b3f;
}
html:root[data-theme="nether"] .page-head {
  position:relative;isolation:isolate;padding:22px clamp(24px,5vw,68px) 24px 25px;
  border:1px solid #9d5148;border-left:4px solid #f58856;border-radius:3px;
  background:
    linear-gradient(100deg,#2a111cf5 22%,#471a23de 62%,#902a267a),
    var(--terrain-panel) right center / 48px 48px repeat #401822;
  box-shadow:0 8px 22px #10060cad,inset 0 -2px #e3623a62;
}
html:root[data-theme="nether"] .page-head::after {
  content:"";position:absolute;inset:auto 0 -1px auto;width:66%;height:2px;
  background:linear-gradient(90deg,transparent,#c9432c,#ffac68);box-shadow:0 0 13px #eb5b41a3;
  pointer-events:none;
}
html:root[data-theme="nether"] .page-head .eyebrow {color:#ffc090}
html:root[data-theme="nether"] .page-head h1 {text-shadow:0 2px #1d0d16,0 0 20px #f56b3e3e}
html:root[data-theme="nether"] :is(.minecraft-page .card,.minecraft-theme-gallery,dialog) {
  border-color:#92514a;border-bottom:3px solid #b65847;
  background:linear-gradient(135deg,#47202bd5,#25121ced 76%),var(--terrain-panel) 0 0 / 48px 48px #321822;
  box-shadow:0 5px 0 #150811,inset 0 1px #fa8d6029;
}
html:root[data-theme="nether"] .minecraft-facts > div {
  background:#21101ac9;border-left:2px solid #c86c58;padding:7px 10px;
}
.theme-choice[data-theme-choice="nether"] .theme-swatch {
  background:radial-gradient(ellipse at 67% 5%,#f9763699,transparent 64%),
    linear-gradient(#57161a66,#240d17bc),var(--terrain-ground) 0 0 / 40px 40px #2c121c;
}
.theme-choice[data-theme-choice="nether"] .theme-swatch::before {
  background:linear-gradient(90deg,#a94535,#ffc277 65%,#db5030);box-shadow:0 0 13px #ff8358;
  height:4px;z-index:1;
}
.theme-choice[data-theme-choice="nether"] .theme-swatch::after {
  top:4px;background:linear-gradient(#c94a3629,#280c1866),var(--terrain-panel) 0 0 / 32px 32px repeat-x;
}
html:root[data-theme="nether"] body::after {
  content:"";position:fixed;inset:0;z-index:5;pointer-events:none;
  background:
    radial-gradient(ellipse,#ffd19c 0 1px,#ef7037af 1.1px 2px,transparent 3.2px) 7px 17px / 229px 217px,
    radial-gradient(circle,#ffab76c4 0 1px,transparent 1.8px) 18px 63px / 127px 139px,
    radial-gradient(circle,#e45b40c2 0 1px,transparent 1.8px) 40px 0 / 167px 173px;
  animation:minecraft-nether-embers 29s linear infinite;
}
@keyframes minecraft-nether-embers {
  to {background-position:236px -200px,145px -76px,207px -173px}
}
@media(prefers-reduced-motion:reduce) {
  html:root[data-theme="nether"] body::after {animation:none;opacity:.62}
}

/* Cherry Grove — green moss and warm bark, with pink reserved for the canopy. */
html:root[data-theme="cherry-grove"] {
  --bg:#4a5638;--surface:#d5b99a;--surface2:#dec7ae;--surface3:#c9a988;
  --text:#33231d;--muted:#594033;--accent:#773149;--border:#997255;
  --theme-panel:#d6b899;--theme-paper:#dec7ae;--theme-paper-text:#33231d;--theme-paper-muted:#594033;
  --theme-highlight:#863c55;--theme-primary:#77304e;--theme-primary-ink:#ffeaf0;
}
html:root[data-theme="cherry-grove"] .main-shell {
  background:
    radial-gradient(ellipse at 80% -12%,#b8b07445,transparent 56%),
    linear-gradient(167deg,#3c502388,#39412bcf 76%),
    var(--terrain-ground) 0 0 / 64px 64px #4a5638;
}
html:root[data-theme="cherry-grove"] .sidebar {
  --text:#f8e9da;--muted:#edd4c4;--accent:#ffc4d6;--border:#967260;
  background:linear-gradient(90deg,#392b23de,#49362ad6),var(--terrain-side) 0 0 / 48px 48px #49352b;
  border-right:2px solid #92705b;box-shadow:3px 0 0 #2f211e6b;
}
html:root[data-theme="cherry-grove"] .page-head {
  border-color:#936954;border-bottom:3px solid #a26074;
  background:linear-gradient(102deg,#dcbda5 18%,#dcbda5f7 43%,#ca7c9a26 81%),
    var(--terrain-top) right top / 64px 64px #dbaeac;
  box-shadow:0 8px 20px #25271965;
}
html:root[data-theme="cherry-grove"] .minecraft-page > .hint {
  color:#f3e9d7;background:#343725;border-radius:6px;padding:8px 12px;
}
html:root[data-theme="cherry-grove"] .topbar {
  background:linear-gradient(90deg,#dbb99aeb,#c39d7bda),var(--terrain-panel) 0 0 / 48px 48px #ceaa8b;
  border-bottom:1px solid #936954;
}
html:root[data-theme="cherry-grove"] .page-head::after {content:none}
html:root[data-theme="cherry-grove"] :is(.minecraft-page .card,.minecraft-theme-gallery,dialog) {
  border-color:#9b765c;border-top:4px solid #ac8269;
  background:linear-gradient(#d8b99bca,#c3a382bd),var(--terrain-panel) 0 0 / 64px 64px #d1b294;
  box-shadow:0 6px 0 #74543f,0 12px 20px #2d261c40;
}
html:root[data-theme="cherry-grove"] .minecraft-facts > div {background:#e5cdb185;border-color:#9b775c}
html:root[data-theme="cherry-grove"] .card-header {border-color:#97735a}
.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch {
  background:linear-gradient(155deg,#dfb38f48,#b38b6b42),var(--terrain-top) 0 0 / 48px 48px #e5b0c2;
}
.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch i {
  border:1px solid #9f755c;border-top:3px solid #c99578;
  background:linear-gradient(#d9b58c9e,#c69e7994),var(--terrain-panel) 0 0 / 32px 32px;
  box-shadow:0 2px 0 #72543d;
}

@media(max-width:600px) {
  html:root:is([data-theme="overworld"],[data-theme="nether"]) .page-head {padding:15px 14px 19px}
  html:root[data-theme="overworld"] .topbar {height:74px}
  html:root[data-theme="overworld"] .topbar::before {width:42px;height:45px;right:108px}
  html:root[data-theme="nether"] .topbar::after {height:24px;background-size:auto,32px 32px}
}
