/* The End — an end-stone arena beneath an obsidian skyline. */
html[data-theme="end"],.theme-choice[data-theme-choice="end"] {
  color-scheme:dark;
  --bg:#100b1a;--sidebar:#160e23;--surface:#20192c;--surface2:#2b203a;--surface3:#3c2b4e;
  --text:#f9f3ff;--muted:#d1c3df;--accent:#eddda5;--accent2:#c5a6e4;--border:#806794;
  --theme-top:#171021;--theme-panel:#21192e;--theme-paper:#21192e;
  --theme-paper-text:#f9f3ff;--theme-paper-muted:#d1c3df;--theme-highlight:#f3e6ba;
  --theme-primary:#ded0a0;--theme-primary-ink:#2c2235;--theme-wash:#d9bbf22a;--theme-mark:#d9c98f;
  --good:#c9ebba;--warn:#f3dca3;--danger:#ffbacc;--shadow:0 10px 30px #0006;
  --arena-stone:url('./textures/end/end-stone.png');
  --arena-obsidian:url('./textures/end/obsidian.png');
  --arena-pillars:polygon(0 100%,0 72%,12% 72%,12% 100%,22% 100%,22% 36%,34% 36%,34% 100%,44% 100%,44% 57%,55% 57%,55% 100%,68% 100%,68% 17%,83% 17%,83% 100%,92% 100%,92% 62%,100% 62%,100% 100%);
  --arena-sky:radial-gradient(ellipse at 83% 40%,#52306b 0,#21132f 45%,#0c0813 92%);
}
html:root[data-theme="end"] .main-shell {
  background:
    linear-gradient(#0c0813 0,#21142fe8 120px,#30203c38 360px,#51482c30 100%),
    var(--arena-stone) 0 0 / 64px 64px #bbae77;
  image-rendering:pixelated;
}
html:root[data-theme="end"] .sidebar {
  background:linear-gradient(165deg,#150d22e8,#0d0a17ed),
    var(--arena-obsidian) 0 0 / 48px 48px #130d20;
  border-right:2px solid #74607f;box-shadow:none;image-rendering:pixelated;
}
html:root[data-theme="end"] :is(.brand,.sidebar-foot) {border-block-color:#594565}
html:root[data-theme="end"] .nav-item.active {
  border:1px solid #bca77c;border-left:3px solid #e5d7a9;background:#44364f;color:#fff3dc;box-shadow:none;
}
html:root[data-theme="end"] .nav-item.active :is(svg,span) {color:#e7d4aa}
html:root[data-theme="end"] .topbar {
  background:#171021;border-bottom:1px solid #806794;box-shadow:none;
}
html:root[data-theme="end"] .page-head {
  position:relative;isolation:isolate;align-items:center;
  min-height:143px;padding:24px min(28%,285px) 30px 27px;
  border:1px solid #82698c;border-bottom:0;background:var(--arena-sky);
  box-shadow:0 8px 16px #120b1a68;
}
html:root[data-theme="end"] .page-head::before {
  content:"";position:absolute;inset:auto 0 0;height:15px;z-index:-1;
  background:var(--arena-stone) 0 0 / 48px 48px repeat-x;
  border-top:1px solid #e1d399;pointer-events:none;image-rendering:pixelated;
}
html:root[data-theme="end"] .page-head::after {
  content:"";position:absolute;inset:7px 0 15px auto;width:min(32%,320px);height:auto;
  z-index:-1;border:0;transform:none;pointer-events:none;image-rendering:pixelated;
  background:linear-gradient(#1a101d20,#09061055),var(--arena-obsidian) 0 0 / 32px 32px;
  clip-path:var(--arena-pillars);
}
html:root[data-theme="end"] .page-head h1 {
  font-family:Georgia,"Times New Roman",serif;font-variant:normal;font-weight:400;
  letter-spacing:-.035em;color:#f7f2ff;text-shadow:0 2px #0e0816;
}
html:root[data-theme="end"] .page-head .eyebrow {color:#e7d1a4;letter-spacing:.21em}
html:root[data-theme="end"] :is(.card,dialog) {
  color:var(--text);border:5px solid #c6b77e;border-radius:2px;
  border-image:var(--arena-stone) 4 repeat;
  background:linear-gradient(140deg,#251a30f5,#171221f5),var(--arena-obsidian) 0 0 / 48px 48px #20192c;
  box-shadow:0 6px 0 #44354d,0 12px 22px #1e162850;
}
html:root[data-theme="end"] .card-header {border-bottom:1px solid #806794}
html:root[data-theme="end"] .minecraft-facts {
  gap:0;border-block:1px solid #786387;background:#130e1d;
}
html:root[data-theme="end"] .minecraft-facts > div {
  padding:10px 14px;min-width:0;border-bottom:1px solid #4d3a5d;
}
html:root[data-theme="end"] .minecraft-facts dt {color:#d1c3df}
html:root[data-theme="end"] .minecraft-facts dd {color:#f9f3ff}
html:root[data-theme="end"] .minecraft-page > .card:has(.row.between > .badge) .minecraft-facts > div:nth-child(-n+3) {
  background:#33243e;border-bottom:2px solid #a48bb8;
}
html:root[data-theme="end"] .minecraft-page > .card:has(.row.between > .badge) .minecraft-facts > div:nth-child(-n+3) dd {
  color:#f5e6c7;font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,2.8vw,33px);line-height:1.15;
}
html:root[data-theme="end"] .minecraft-page > .hint {
  color:#f0e5d1;background:#21182de8;padding:8px 12px;border:1px solid #796481;border-radius:2px;
}
html:root[data-theme="end"] .minecraft-page .preview-card a {color:#dfcaff}
.theme-choice[data-theme-choice="end"] .theme-swatch {
  background:var(--arena-sky);border-color:#94829e;border-radius:2px;justify-content:flex-start;
}
.theme-choice[data-theme-choice="end"] .theme-swatch::before {
  inset:auto 0 0;width:auto;height:14px;background:var(--arena-stone) 0 0 / 32px 32px;border:0;
}
.theme-choice[data-theme-choice="end"] .theme-swatch::after {
  inset:3px 0 14px auto;width:72%;height:auto;background:var(--arena-obsidian) 0 0 / 24px 24px;
  clip-path:var(--arena-pillars);
}
.theme-choice[data-theme-choice="end"] .theme-swatch i {
  height:11px;max-width:31px;border:1px solid #c9b982;background:#261b33;box-shadow:none;
}
.theme-choice[data-theme-choice="end"] .theme-swatch i:first-child {margin-left:0}
.theme-choice[data-theme-choice="end"] .theme-swatch i:last-child {height:11px}

/* Trial Chambers: copper survey plates and a plan view of a chamber. */
html[data-theme="trial-chambers"],.theme-choice[data-theme-choice="trial-chambers"] {
  color-scheme:light;
  --bg:#99503a;--sidebar:#293431;--surface:#f1dfce;--surface2:#ead3c0;--surface3:#dcc0aa;
  --text:#30231e;--muted:#5e4337;--accent:#6f3724;--accent2:#9a4e32;--border:#8d5942;
  --theme-top:#332622;--theme-panel:#f1dfce;--theme-paper:#faeddf;
  --theme-paper-text:#30231e;--theme-paper-muted:#5e4337;--theme-highlight:#6c3125;
  --theme-primary:#314d44;--theme-primary-ink:#fff2dc;--theme-wash:#9a5b4128;--theme-mark:#ad6449;
  --good:#245743;--warn:#77471d;--danger:#8b3027;--shadow:0 5px 0 #5e3026;
  --trial-copper:url('./textures/trial-chambers/copper_block.png');
  --trial-patina:url('./textures/trial-chambers/oxidized_copper.png');
  --trial-tuff:url('./textures/trial-chambers/tuff_bricks.png');
}
html:root[data-theme="trial-chambers"] .main-shell {
  background:
    linear-gradient(145deg,#b26546a0,#78382bdc),
    url('./textures/trial-chambers/copper_block.png') 0 0 / 56px 56px #99503a;
}
html:root[data-theme="trial-chambers"] .topbar,
html:root[data-theme="trial-chambers"] .sidebar {
  --text:#ffedde;--muted:#e1cbbb;--accent:#ffc89d;--theme-highlight:#ffceac;
  --surface:#302725;--surface2:#3a2d27;--border:#a8775e;
}
html:root[data-theme="trial-chambers"] .sidebar {
  background:linear-gradient(90deg,#263431e9,#202d29f8),
    url('./textures/trial-chambers/tuff_bricks.png') 0 0 / 48px 48px #263431;
  border-right:3px solid #59382e;box-shadow:none;
}
html:root[data-theme="trial-chambers"] .nav-item.active {
  background:#e5a787;color:#321e17;border:1px solid #f3c8a5;box-shadow:none;
}
html:root[data-theme="trial-chambers"] .nav-item.active :is(svg,span) {color:#321e17}
html:root[data-theme="trial-chambers"] .topbar {
  background:#332622;border-bottom:2px solid #e1a17d;box-shadow:none;
}
html:root[data-theme="trial-chambers"] .workspace-tabs {
  background:#342621;border-color:#d89876;
}
html:root[data-theme="trial-chambers"] .workspace-tabs button:not([aria-selected="true"]) {color:#f6decc}
html:root[data-theme="trial-chambers"] .workspace-tabs button:not([aria-selected="true"]):hover {background:#5a3a30}
html:root[data-theme="trial-chambers"] .workspace-tabs button[aria-selected="true"] {background:#e6ad8d;color:#382119}
html:root[data-theme="trial-chambers"] .workspace-tabs button:focus-visible {outline-color:#ffd7b4}
html:root[data-theme="trial-chambers"] .page-head {
  position:relative;isolation:isolate;align-items:center;
  min-height:126px;padding:20px min(23%,235px) 21px 25px;
  border:2px solid #6f3a2c;border-left:7px solid #713d2c;border-radius:4px;
  background:linear-gradient(106deg,#f1d9c1 10%,#e5b89a);
  box-shadow:0 5px 0 #592d25,inset 0 0 0 1px #ffd9b3;
}
html:root[data-theme="trial-chambers"] .page-head::after {
  /* Five whole 32px tiles per row; every material shares the same origin and scale. */
  content:"";position:absolute;inset:50% 0 auto auto;width:160px;height:96px;
  z-index:-1;border:0;border-left:3px solid #96573f;transform:translateY(-50%);
  pointer-events:none;image-rendering:pixelated;background-origin:padding-box;
  background:linear-gradient(90deg,#85462c22,#39281b3b),
    var(--trial-copper) left top / 32px 32px repeat-x,
    var(--trial-patina) left bottom / 32px 32px repeat-x,
    var(--trial-tuff) left top / 32px 32px repeat;
}
html:root[data-theme="trial-chambers"] .page-head h1 {
  font-family:system-ui,sans-serif;font-variant:normal;font-weight:850;letter-spacing:-.04em;
  color:#342019;text-shadow:none;
}
html:root[data-theme="trial-chambers"] .page-head .eyebrow {color:#713d2c;letter-spacing:.18em}
html:root[data-theme="trial-chambers"] :is(.card,dialog) {
  background:#f1dfce;color:var(--text);border:2px solid #704331;border-radius:4px;
  box-shadow:0 5px 0 #61382c;
}
html:root[data-theme="trial-chambers"] .card-header {border-bottom:1px solid #af8168}
html:root[data-theme="trial-chambers"] .minecraft-page > .hint {
  color:#fff0df;background:#41281f;border:1px solid #b18066;border-radius:3px;padding:8px 12px;
}
html:root[data-theme="trial-chambers"] .minecraft-facts {
  gap:0;background:#f7e8d9;border:1px solid #ac7f65;border-left:4px solid #406157;
}
html:root[data-theme="trial-chambers"] .minecraft-facts > div {
  display:grid;grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr);align-items:baseline;
  gap:8px;padding:8px 11px;min-width:0;border-bottom:1px solid #c9a894;
}
html:root[data-theme="trial-chambers"] .minecraft-facts > div:nth-child(4n+1),
html:root[data-theme="trial-chambers"] .minecraft-facts > div:nth-child(4n+2) {background:#ecceba}
html:root[data-theme="trial-chambers"] .minecraft-facts dd {margin:0;color:#34241e}
html:root[data-theme="trial-chambers"] .minecraft-page .preview-card a {color:#f8cfab}
.theme-choice[data-theme-choice="trial-chambers"] .theme-swatch {
  background:linear-gradient(90deg,#e7b898 34%,#d5a1812e 70%),
    var(--trial-copper) 0 0 / 27px 27px repeat-x,
    var(--trial-patina) 0 100% / 27px 27px repeat-x,var(--trial-tuff) 0 0 / 32px 32px #dfb192;
  border-color:#a5694c;border-radius:2px;justify-content:flex-start;
}
.theme-choice[data-theme-choice="trial-chambers"] .theme-swatch::before {
  inset:7px auto 7px 7px;width:6px;height:auto;border:0;background:#395a50;
}
.theme-choice[data-theme-choice="trial-chambers"] .theme-swatch::after {content:none}
.theme-choice[data-theme-choice="trial-chambers"] .theme-swatch i {
  height:8px;max-width:23px;border:1px solid #865540;background:#f6d4b5;box-shadow:none;
}
.theme-choice[data-theme-choice="trial-chambers"] .theme-swatch i:first-child {margin-left:9px}
.theme-choice[data-theme-choice="trial-chambers"] .theme-swatch i:last-child {height:8px}
.theme-choice:is([data-theme-choice="end"],[data-theme-choice="trial-chambers"]) .theme-active {
  background:var(--theme-panel);color:var(--accent);border-color:var(--border);
}
@media(min-width:761px) {
  html:root[data-theme="end"] .minecraft-page > .card:has(.row.between > .badge) .minecraft-facts {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
  html:root[data-theme="end"] .minecraft-page > .card:has(.row.between > .badge) .minecraft-facts > div {grid-column:span 3}
  html:root[data-theme="end"] .minecraft-page > .card:has(.row.between > .badge) .minecraft-facts > div:nth-child(-n+3) {grid-column:span 2}
  html:root[data-theme="end"] .minecraft-facts > div,
  html:root[data-theme="trial-chambers"] .minecraft-facts > div {border-right:1px solid var(--border)}
}
@media(max-width:760px) {
  html:root:is([data-theme="end"],[data-theme="trial-chambers"]) .page-head {
    min-height:0;padding:16px clamp(57px,19%,78px) 16px 14px;
  }
  html:root:is([data-theme="end"],[data-theme="trial-chambers"]) .page-head::after {
    width:min(16%,64px);
  }
  html:root[data-theme="end"] .page-head {
    padding:16px clamp(57px,19%,78px) 28px 14px;
  }
  html:root[data-theme="end"] .page-head::after {inset:7px 0 15px auto;width:19%}
  html:root[data-theme="trial-chambers"] .page-head::after {width:64px}
  html:root[data-theme="trial-chambers"] .minecraft-facts > div:nth-child(even) {background:#f7e8d9}
  html:root[data-theme="trial-chambers"] .minecraft-facts > div:nth-child(odd) {background:#ecceba}
}
