/* Three distinct structures, using the original block art in overworld.css. */

/* Deep Dark: a wall of deepslate, sculk in the cracks, cyan instrument panels. */
html:root[data-theme="deep-dark"] {
  --bg:#070f15; --surface:#0d1c24; --surface2:#112630; --surface3:#193743;
  --text:#e7faff; --muted:#a8c5cd; --accent:#83f7ed; --border:#416c77;
  --theme-primary:#87f7ec; --theme-highlight:#9bfff4;
}
html:root[data-theme="deep-dark"] .main-shell {
  background:
    radial-gradient(ellipse at 100% 0,#124e5b60,transparent 58%),
    linear-gradient(120deg,#061019ed 12%,#08151bd6 58%,#0d313bab),
    var(--terrain-top) right top / 64px 64px repeat #071218;
}
html:root[data-theme="deep-dark"] .sidebar {
  background:linear-gradient(90deg,#071118e8 0 87%,#11404955),
    var(--terrain-ground) left top / 48px 48px #071218;
  border-right:1px solid #4dc2be86;
}
html:root[data-theme="deep-dark"] .topbar {
  margin-bottom:0;background:#08161e;border-bottom:1px solid #3b8e94;box-shadow:none;
}
html:root[data-theme="deep-dark"] .topbar::before {
  top:auto;bottom:-2px;left:auto;width:min(30%,190px);height:3px;
  background:#7af5ed;box-shadow:0 0 15px #50e2dc85;
}
html:root[data-theme="deep-dark"] .topbar::after {content:none}
html:root[data-theme="deep-dark"] .page-head {
  padding:24px 22px;border:1px solid #477782;border-left:4px solid #72f4e9;
  background:linear-gradient(90deg,#081820 17%,#0b222bd9 65%,#0b263074),
    var(--terrain-top) right center / 52px 52px #0b222b;
  box-shadow:0 10px 30px #02070bc0;
}
html:root[data-theme="deep-dark"] .page-head::after {
  inset:-1px 12px auto auto;width:54px;height:3px;transform:skewX(-40deg);
}
html:root[data-theme="deep-dark"] .page-head h1 {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-variant:normal;letter-spacing:-.055em;text-shadow:0 0 15px #68fff746;
}
html:root[data-theme="deep-dark"] :is(.card,dialog) {
  border-radius:0;border-color:#437682;box-shadow:0 10px 22px #03090eb8;
  background:linear-gradient(140deg,#102732fa,#09151de3),var(--terrain-panel) 0 0 / 48px 48px #0b1b24;
}
html:root[data-theme="deep-dark"] .minecraft-page .card::before {
  display:block;inset:0 0 auto auto;width:20px;height:20px;
  border:0;background:#76ede2;clip-path:polygon(0 0,100% 0,100% 100%);
}
html:root[data-theme="deep-dark"] .minecraft-facts > div {
  border-left:2px solid #50c3bc;background:#0a171e;padding:8px 10px;
}
html:root[data-theme="deep-dark"] .minecraft-facts dd {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}

/* Ocean Monument: shafts of light, lanterns, and deep masonry arches. */
html:root[data-theme="ocean-monument"] {
  --bg:#07323e; --surface:#1a5259; --surface2:#16414a; --surface3:#26616a;
  --text:#f2fffd; --muted:#d0e9e7; --accent:#b7ffeb; --border:#6caea5;
  --theme-primary:#bdf8e1; --theme-highlight:#ddfff4;
}
html:root[data-theme="ocean-monument"] .main-shell {
  background:
    linear-gradient(114deg,transparent 16%,#a1f8de30 22%,transparent 37%,#87e9ed17 48%,transparent 61%),
    radial-gradient(ellipse at 50% -8%,#36b4b3 0,transparent 58%),
    linear-gradient(#0c526391,#05232ff5),var(--terrain-ground) 0 0 / 80px 80px #084352;
}
html:root[data-theme="ocean-monument"] .sidebar {
  background:linear-gradient(90deg,#092f38ed,#0b4450b8),var(--terrain-panel) 0 0 / 48px 48px #0a3440;
  border-right:3px double #80bab1;
}
html:root[data-theme="ocean-monument"] .topbar {
  margin-bottom:0;background:#0a3d49;border-bottom:3px double #86d9ce;box-shadow:none;
}
html:root[data-theme="ocean-monument"] .topbar::before,
html:root[data-theme="ocean-monument"] .topbar::after {content:none}
html:root[data-theme="ocean-monument"] .page-head {
  padding:31px clamp(20px,5vw,75px) 25px;min-height:130px;text-align:center;justify-content:center;
  border:3px double #a9f2e0;border-radius:58px 58px 12px 12px;
  background:linear-gradient(#216c75ec,#0b3a49ed),var(--terrain-panel) 0 0 / 48px 48px #165460;
  box-shadow:0 10px 24px #041e2a99,inset 0 0 32px #74dfd12b;
}
html:root[data-theme="ocean-monument"] .page-head h1 {font-variant:normal;text-shadow:0 2px 0 #052e37}
html:root[data-theme="ocean-monument"] .page-head .page-actions:empty {display:none}
html:root[data-theme="ocean-monument"] .page-head::before,
html:root[data-theme="ocean-monument"] .page-head::after {
  content:"";position:absolute;inset:calc(50% - 13px) auto auto 18px;pointer-events:none;
  width:26px;height:26px;border:1px solid #cffff3;transform:none;
  background:var(--terrain-top) center / 100% 100% no-repeat #adf5d9;
  box-shadow:0 0 20px #a0fff294;image-rendering:pixelated;
}
html:root[data-theme="ocean-monument"] .page-head::after {left:auto;right:18px}
html:root[data-theme="ocean-monument"] .minecraft-page .card {
  border:3px double #6baea6;border-radius:26px 26px 8px 8px;
  background:linear-gradient(160deg,#2b6970df,#123b47f5 76%),var(--terrain-panel) 0 0 / 48px 48px #184b56;
  box-shadow:0 10px 20px #041e29a6,inset 0 2px #a2f5de35;
}
html:root[data-theme="ocean-monument"] .minecraft-facts > div {border-top:1px solid #a0dbd46c;padding-top:8px}
html:root[data-theme="ocean-monument"] :is(.btn,.workspace-tabs,.workspace-tabs button,.nav-item) {border-radius:12px}

/* Cherry Grove: morning light, pink blossoms, warm wooden notice boards. */
html:root[data-theme="cherry-grove"] {
  color-scheme:light;
  --bg:#f9e5e4; --sidebar:#402936; --surface:#fff5ec; --surface2:#fbe1e2; --surface3:#f4d2da;
  --text:#38202b; --muted:#674454; --accent:#892e58; --accent2:#a44467; --border:#ad778d;
  --good:#276249; --warn:#784b14; --danger:#9f2d42; --shadow:0 10px 24px #7044522e;
  --theme-top:#f7d9de; --theme-panel:#fff1e9; --theme-paper:#fffaf3;
  --theme-paper-text:#38202b; --theme-paper-muted:#674454; --theme-highlight:#a42b60;
  --theme-primary:#85324f; --theme-primary-ink:#fff6f6; --theme-wash:#b54b7420; --theme-mark:#edabc1;
}
html:root[data-theme="cherry-grove"] :is(.sidebar,#mobile-bottom-nav,#mobile-more-dialog) {
  --surface:#503442; --surface2:#593a4c; --surface3:#754c60; --text:#fff1ee; --muted:#f3d1da;
  --accent:#ffc8d9; --border:#b9849d; --good:#b9f0c4; --theme-highlight:#ffbad2;
  --theme-primary:#f7b9cf; --theme-primary-ink:#402435;
}
html:root[data-theme="cherry-grove"] .sidebar {
  background:linear-gradient(90deg,#39252fe8,#533947cf),var(--terrain-side) 0 0 / 48px 48px #402936;
  border-right:3px solid #b37c94;box-shadow:3px 0 0 #7c466348;
}
html:root[data-theme="cherry-grove"] .main-shell {
  background:
    radial-gradient(ellipse at 75% -20%,#fff9e9 0,transparent 56%),
    linear-gradient(170deg,#ffe7eaf9 20%,#f6cfdcd9 53%,#d6e6b9e8),
    var(--terrain-ground) 0 0 / 64px 64px #f9e5e4;
}
html:root[data-theme="cherry-grove"] .topbar {
  margin-bottom:8px;background:#fbe1e3;border-bottom:1px solid #b9859b;box-shadow:none;
}
html:root[data-theme="cherry-grove"] .topbar::before,
html:root[data-theme="cherry-grove"] .topbar::after {content:none}
html:root[data-theme="cherry-grove"] .page-head {
  padding:23px 25px;border:1px solid #c48fa2;border-radius:18px 18px 40px 10px;
  background:linear-gradient(100deg,#fff7ec 12%,#fff2ebea 51%,#ffdfebb3),
    var(--terrain-top) right top / 64px 64px #ffe2e9;
  box-shadow:0 8px 20px #7044522e;
}
html:root[data-theme="cherry-grove"] .page-head h1 {font-variant:normal;text-shadow:none}
html:root[data-theme="cherry-grove"] .page-head::after {
  inset:auto 20px 10px auto;width:60px;height:18px;opacity:.8;
  background:var(--terrain-petals) left center / 20px 20px repeat-x;image-rendering:pixelated;
}
html:root[data-theme="cherry-grove"] :is(.card,dialog) {
  border-color:#be8699;border-radius:15px;
  background:linear-gradient(#fff5edf2,#fce5dfec),var(--terrain-panel) 0 0 / 48px 48px #fff3e9;
  box-shadow:0 6px 0 #dba5b8,0 12px 20px #70445222;
}
html:root[data-theme="cherry-grove"] .card-header {border-bottom:1px solid #ca9dac}
html:root[data-theme="cherry-grove"] .minecraft-facts > div {
  background:#fff9f2b0;border:1px solid #e8bbc7;border-radius:9px;padding:8px 10px;
}
html:root[data-theme="cherry-grove"] :is(.btn,.workspace-tabs,.workspace-tabs button,.input,textarea,select) {border-radius:8px}
html:root[data-theme="cherry-grove"] :is(.input,textarea,select) {box-shadow:inset 0 2px #955b701c}
html:root[data-theme="cherry-grove"] .preview-card {color:#dbdee4}
html:root[data-theme="cherry-grove"] .preview-card a {color:#a9d5ff}

/* The cards in the picker give each biome its own silhouette. */
.theme-choice[data-theme-choice="deep-dark"] .theme-swatch {
  background:linear-gradient(125deg,#091820ed,#0d3b4259),var(--terrain-top) right 0 / 48px 48px #071820;
}
.theme-choice[data-theme-choice="deep-dark"] .theme-swatch::before {
  inset:10px 14px auto auto;width:44px;height:3px;background:#8dfff0;box-shadow:0 0 11px #76ffe8;
}
.theme-choice[data-theme-choice="deep-dark"] .theme-swatch::after {content:none}
.theme-choice[data-theme-choice="deep-dark"] .theme-swatch i {
  height:32px;background:linear-gradient(#112934b8,#061119eb),var(--terrain-panel) 0 0 / 32px 32px;
  border:1px solid #73b2bc;border-left:3px solid #76ffe8;box-shadow:none;
}
.theme-choice[data-theme-choice="deep-dark"] .theme-swatch i:last-child {height:23px}

.theme-choice[data-theme-choice="ocean-monument"] .theme-swatch {
  background:radial-gradient(ellipse at 50% 0,#6dffdd91,transparent 68%),
    linear-gradient(#28747fb8,#10424a73),var(--terrain-ground) 0 0 / 48px 48px #155360;
}
.theme-choice[data-theme-choice="ocean-monument"] .theme-swatch::before,
.theme-choice[data-theme-choice="ocean-monument"] .theme-swatch::after {
  inset:10px auto auto 12px;width:16px;height:16px;border:1px solid #a6f3db;
  background:var(--terrain-top) center / contain no-repeat;box-shadow:0 0 12px #aaffda;
}
.theme-choice[data-theme-choice="ocean-monument"] .theme-swatch::after {left:auto;right:12px}
.theme-choice[data-theme-choice="ocean-monument"] .theme-swatch i {
  height:38px;border:3px double #9ad7ce;border-radius:18px 18px 3px 3px;box-shadow:none;
  background:linear-gradient(#266e7340,#11444c),var(--terrain-panel) 0 0 / 32px 32px;
}
.theme-choice[data-theme-choice="ocean-monument"] .theme-swatch i:nth-child(2) {height:49px;flex:1.55}

.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch {
  background:linear-gradient(155deg,#ffefeec9,#f7cddd99),var(--terrain-top) 0 0 / 48px 48px #ffdae6;
  border-color:#d495ac;border-radius:10px;
}
.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch::before {
  inset:0 0 auto;height:21px;background:var(--terrain-petals) 3px center / 24px 24px repeat-x;
}
.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch::after {
  inset:auto 0 0;height:20px;background:var(--terrain-ground) 0 0 / 32px 32px #8aa855;
}
.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch i {
  height:32px;border:1px solid #b6728b;border-radius:6px;
  background:linear-gradient(#fff3e8a8,#ffd9dc88),var(--terrain-panel) 0 0 / 32px 32px;
  box-shadow:0 2px 0 #9d6577;
}
.theme-choice[data-theme-choice="cherry-grove"] .theme-swatch i:nth-child(2) {transform:translateY(-6px)}

@media(max-width:600px) {
  html:root[data-theme="deep-dark"] .page-head {padding:16px 13px}
  html:root[data-theme="ocean-monument"] .page-head {padding:18px 32px;min-height:0;border-radius:30px 30px 9px 9px}
  html:root[data-theme="ocean-monument"] .page-head::before,
  html:root[data-theme="ocean-monument"] .page-head::after {width:14px;height:14px;top:calc(50% - 7px)}
  html:root[data-theme="ocean-monument"] .page-head::before {left:8px}
  html:root[data-theme="ocean-monument"] .page-head::after {right:8px}
  html:root[data-theme="cherry-grove"] .page-head {padding:16px 14px 25px}
}
