:root {
  color-scheme: dark;
  --ore-color-gray-10: #f4f5f6;
  --ore-color-gray-20: #e3e5e7;
  --ore-color-gray-30: #cfd1d4;
  --ore-color-gray-40: #aeb0b4;
  --ore-color-gray-50: #888a8f;
  --ore-color-gray-60: #5b5d62;
  --ore-color-gray-70: #484a50;
  --ore-color-gray-80: #34363c;
  --ore-color-gray-90: #27292e;
  --ore-color-gray-100: #202126;
  --ore-color-border: #17181c;
  --ore-color-foreground: #f7f7f7;
  --ore-color-neutral-text: #f7f7f7;
  --ore-color-neutral-surface: #484a50;
  --ore-color-neutral-surface-raised: #393b41;
  --ore-color-neutral-surface-sunken: #27292e;
  --ore-color-neutral-surface-deep: #1d1e22;
  --ore-color-neutral-text-dim: #d4d5d8;
  --ore-color-focus-ring: #ffffff;
  --ore-color-green-10: #a6df8d;
  --ore-color-green-20: #88d268;
  --ore-color-green-30: #67bb47;
  --ore-color-green-40: #4fa036;
  --ore-color-green-50: #3c8527;
  --ore-color-green-60: #2b681d;
  --ore-color-green-70: #205017;
  --ore-color-green-80: #183e12;
  --ore-color-green-90: #12330d;
  --ore-color-green-100: #0f2b0a;
  --ore-color-gold-10: #ffe187;
  --ore-color-gold-20: #f2cb4d;
  --ore-color-gold-30: #e6b31d;
  --ore-color-gold-40: #c9900a;
  --ore-color-gold-50: #684300;
  --ore-size-unit: 2px;
  --page-width: 1160px;
  --page-gutter: 26px;
  --section-space: 64px;
  --content-space: 24px;
}

* { box-sizing: border-box; }
html { min-width: 320px; font-size: 16px; background: var(--ore-color-gray-100); }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  html { zoom: 1.1; }
  .site-header .brand-name { font-size: 24px; }
  .site-header .site-nav .ore-button { font-size: 16px; }
}
body {
  min-width: 320px;
  margin: 0;
  color: #f7f7f7;
  background: #202126;
  font-family: var(--ore-font-body), sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }
button:not(.ore-button), input:not(.ore-textfield-input), select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible:not(.ore-button):not(.ore-button-link) { outline: 2px solid var(--ore-color-green-10); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #151619;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.page-shell,
.site-footer {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin-right: auto;
  margin-left: auto;
}
.site-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 16px; margin-bottom: 16px; padding: 14px; border: 1px solid #17181c; border-radius: 0; background: #27292e; box-shadow: inset 0 1px 0 #484a50, inset 1px 0 0 #34363c, inset -1px 0 0 #34363c, 0 2px 0 #17181c; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: 0;
  order: -1;
}
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}
.site-nav .ore-button {
  --ore-button-unit: 2px;
  --ore-button-font-family: var(--ore-font-body);
  min-width: 0;
  min-height: 50px;
  height: 50px;
  padding-inline: 12px;
  font-family: inherit;
  font-size: 0.92rem;
}
.site-nav .ore-button:not([aria-current]),
.changes-toc .ore-button {
  --ore-button-background-default: #393b41;
  --ore-button-background-hover: #484a50;
  --ore-button-background-pressed: #27292e;
  --ore-button-highlight-default: #5b5d62;
  --ore-button-highlight-hover: #888a8f;
  --ore-button-highlight-pressed: #484a50;
  --ore-button-shadow: #17181c;
  --ore-button-foreground: #f4f5f6;
}
.server-entry.server-entry-readonly { grid-template-columns: 72px minmax(0, 1fr) minmax(150px, .65fr) minmax(88px, 130px); cursor: grab; }
.server-entry.server-entry-readonly:active { cursor: grabbing; }
.server-entry.server-entry-readonly:focus-visible { outline: 2px solid #aeb0b4; outline-offset: 2px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  background: #202126;
  image-rendering: pixelated;
  border-radius: 10px;
  box-shadow: none;
}
.brand-copy { min-width: 0; }
.brand-name {
  display: block;
  margin: 0;
  font-family: var(--ore-font-display), sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.1;
}
.brand-subtitle { margin: 5px 0 0; color: #d0d1d4; font-size: 0.95rem; line-height: 1.35; }
.header-meta { color: #d0d1d4; font-size: 0.95rem; text-align: right; }

.page-shell { display: grid; gap: 32px; margin-top: 48px; margin-bottom: var(--section-space); }
.page-intro h1 { margin: 0; }
.page-intro p { max-width: 72ch; margin: 16px 0 0; color: var(--ore-color-neutral-text-dim); line-height: 1.6; }
.home-page { display: block; width: 100%; margin: 0; }
.home-kicker { margin: 0 0 8px; color: var(--ore-color-green-10); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.combat-hero {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-height: 560px;
  padding: 64px max(var(--page-gutter), calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid #3b3d42;
  background-color: #202126;
  background-image: linear-gradient(90deg, #202126f5 0%, #202126dc 43%, #20212630 100%), url('./assets/combat-test-map-banner.webp');
  background-size: cover;
  background-position: center 70%;
}
.combat-hero-copy { max-width: 760px; }
.combat-hero h1,
.content-page > h1,
.changes-intro h1 {
  margin: 0;
  color: #fff;
  font-family: var(--ore-font-display), sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.08;
  text-shadow: 3px 3px 0 #17181c;
}
.combat-hero h1 { font-size: 4rem; }
.combat-hero-copy > p:not(.home-kicker):not(.snapshot-meta) { max-width: 570px; margin: 22px 0 0; color: #e3e5e7; font-size: 16px; line-height: 24px; }
.combat-hero-copy code { color: var(--ore-color-green-10); font-size: 0.9em; overflow-wrap: anywhere; }
.snapshot-meta { margin: 15px 0 0; color: #aeb0b4; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.snapshot-meta span { padding: 0 5px; color: var(--ore-color-green-40); }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.home-text { max-width: 72ch; color: var(--ore-color-neutral-text-dim); line-height: 1.6; }
.home-text p { margin: 0; }
.home-text p + p { margin-top: 16px; }
.home-page .home-text { font-size: 16px; line-height: 24px; }
.home-text a:not(.ore-button) { color: var(--ore-color-green-10); text-underline-offset: 4px; }
.source-link,
.mod-list-link { color: var(--ore-color-green-10); font-size: 0.9rem; text-underline-offset: 4px; }
.source-link:hover,
.mod-list-link:hover { color: #fff; }
.combat-hero-mark {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: #202126;
  box-shadow: 18px 18px 0 #161e21;
}
.combat-hero-mark img { display: block; width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
.snapshot-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin: 22px auto 0;
  border: 1px solid #3b3d42;
  background: #27292e;
}
.snapshot-facts div { display: grid; gap: 2px; min-width: 0; padding: 13px 17px; border-right: 1px solid #3b3d42; }
.snapshot-facts div:last-child { border-right: 0; }
.snapshot-facts span { color: #aeb0b4; font-size: 0.76rem; text-transform: uppercase; }
.snapshot-facts strong { color: #fff; font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }
.combat-overview,
.eight-c-changes,
.home-references {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
}
.combat-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  text-align: center;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.combat-overview h2,
.eight-c-changes h2 {
  margin: 0;
  color: #fff;
  font-family: var(--ore-font-display), sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.18;
  text-shadow: 2px 2px 0 #17181c;
}
.overview-heading > p:not(.home-kicker) { max-width: 300px; color: #bfc1c5; font-size: 0.9rem; }
.mechanic-list { border-top: 1px solid #ffffff2b; }
.mechanic-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff2b;
}
.mechanic-index { padding-top: 2px; color: var(--ore-color-green-20); font-family: var(--ore-font-display), sans-serif; font-size: 0.85rem; }
.mechanic-row h3 { margin: 0; color: #fff; font-size: 1rem; font-weight: 600; }
.mechanic-row p { margin: 4px 0 0; color: #c4c5c8; font-size: 0.9rem; }
.mechanic-row a, .home-source a { color: var(--ore-color-green-10); text-underline-offset: 3px; }
.mechanic-row a:hover, .home-source a:hover { color: #fff; }
.home-continue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  text-align: center;
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto var(--section-space);
  padding-top: var(--section-space);
  border-top: 1px solid var(--ore-color-gray-70);
}
.home-continue > .home-source { grid-column: 1 / -1; margin: 0; }
.home-continue h2 { margin: 0; font-family: var(--ore-font-display), sans-serif; font-size: 2rem; font-weight: 400; }
.combat-overview .home-text, .home-continue .home-text { width: min(100%, 760px); margin-inline: auto; }
.home-continue .home-actions { justify-content: center; }
.snapshot-name { white-space: nowrap; }
.home-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-route-grid a { display: grid; align-content: center; gap: 5px; min-height: 110px; padding: 16px; border-top: 1px solid #696c72; background: transparent; text-decoration: none; transition: background-color 180ms ease; }
.home-route-grid a:hover { background: #34363c; }
.home-route-grid strong { color: #fff; font-size: 1rem; }
.home-route-grid span { color: #d0d1d4; font-size: 0.85rem; }
.home-source { margin: 18px 0 0; color: #aeb0b4; font-size: 0.85rem; }
.eight-c-changes {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
  width: 100%;
  padding: 34px max(var(--page-gutter), calc((100vw - var(--page-width)) / 2)) 38px;
  border-top: 1px solid var(--ore-color-green-40);
  border-bottom: 2px solid #17181c;
  background: #27292e;
}
.eight-c-intro > p:not(.home-kicker) { max-width: 460px; margin: 12px 0 0; color: #d0d1d4; font-size: 0.92rem; }
.change-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ffffff2b; }
.change-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid #ffffff2b; }
.change-list strong { color: #fff; font-size: 0.9rem; }
.change-list span { color: #d0d1d4; font-size: 0.88rem; }
.home-references { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 22px; padding-bottom: 30px; }
.home-references p { max-width: 720px; margin: 0; color: #aeb0b4; font-size: 0.82rem; }
.home-references p a { color: var(--ore-color-green-10); text-underline-offset: 3px; }
.home-references p a:hover { color: #fff; }
.mod-list-link { flex: none; }
.content-page { min-height: 42vh; align-content: start; }
.content-page > h1, .changes-intro h1 { font-size: 2.5rem; }
.content-page h2 { color: #fff; font-family: var(--ore-font-display), sans-serif; font-size: 2rem; font-weight: 400; line-height: 1.15; }
.page-title { margin: 0; font-family: var(--ore-font-display), sans-serif; font-size: 2.5rem; font-weight: 400; line-height: 1.1; }
.content-page > p { max-width: 760px; margin: -16px 0 0; color: #d0d1d4; }
.content-page .credits-list { margin-top: 4px; }
.content-page > p a { color: var(--ore-color-green-10); text-underline-offset: 3px; }
.content-page > p a:hover { color: #fff; }
.changes-page, .projects-page { min-width: 0; }
.changes-page h3, .projects-page h3 { margin: 0 0 8px; color: #fff; font-family: var(--ore-font-display), sans-serif; font-size: 1.5rem; font-weight: 400; }
.changes-page p, .projects-page p { overflow-wrap: anywhere; }
.changes-intro, .changes-toc, .changes-delta, .changes-group, .changes-facts, .changes-source-note, .project-entry { min-width: 0; }
.changes-intro { max-width: 840px; }
.changes-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.changes-group a, .changes-delta a, .changes-source-note a, .changes-facts a, .projects-page a:not(.ore-button) { color: var(--ore-color-green-10); text-underline-offset: 3px; }
.changes-group a:hover, .changes-delta a:hover, .changes-source-note a:hover, .changes-facts a:hover, .projects-page a:not(.ore-button):hover { color: #fff; }
.changes-delta { padding: 22px 24px; border: 2px solid var(--ore-color-green-40); background: #272d34; box-shadow: inset 3px 3px 0 var(--ore-color-green-70); }
.changes-group { padding: 32px 0 0; border-top: 1px solid var(--ore-color-gray-70); }
.changes-group h2 { margin: 0 0 20px; }
.changes-group p, .changes-group ul { max-width: 76ch; color: var(--ore-color-neutral-text-dim); line-height: 1.6; }
.changes-group ul { margin: 0; padding-left: 24px; }
.changes-group li + li { margin-top: 12px; }
.changes-group:target, .changes-delta:target { scroll-margin-top: 16px; }
.changes-facts { padding: 20px 24px; border: 1px solid #3b3d42; background: #27292e; }
.changes-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0; }
.changes-facts dt { color: #aeb0b4; font-size: 0.8rem; }
.changes-facts dd { margin: 2px 0 0; color: #fff; overflow-wrap: anywhere; }
.changes-source-note { margin: 12px 0 0; padding: 11px 14px; border: 1px solid var(--ore-color-gray-70); color: #bfc1c5; background: #27292e; font-size: 0.84rem; }
.table-scroll { max-width: 100%; margin-top: 24px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ore-color-gray-50) var(--ore-color-gray-90); }
.changes-page table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.changes-page caption { padding: 0 0 12px; text-align: left; font-weight: 600; }
.changes-page th, .changes-page td { padding: 9px 12px; border: 1px solid #3b3d42; text-align: left; vertical-align: top; }
.changes-page th { background: #34363c; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; border: 2px solid #17181c; border-top-color: #777980; background: #27292e; box-shadow: inset 2px 2px 0 #3b3d42; }
.project-entry h2, .project-entry p { margin: 0; }
.project-entry h2 { font-size: 2rem; }
.project-entry p { color: var(--ore-color-neutral-text-dim); line-height: 1.6; }
.project-entry .ore-button { margin-top: auto; }
.project-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.project-logo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; border-radius: 8px; }
.project-link { display: inline-flex; justify-content: center; align-items: center; width: fit-content; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ore-color-green-90); border-top-color: var(--ore-color-green-10); color: #fff; background: var(--ore-color-green-70); box-shadow: inset 2px 2px 0 var(--ore-color-green-40); text-decoration: none; }
.project-link:hover { color: #fff; background: var(--ore-color-green-60); }
.project-link:active { transform: translateY(2px); background: var(--ore-color-green-80); }
@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}
.action-panel { display: grid; gap: 14px; }
.preset-actions, .download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-shell .ore-button,
.home-actions .ore-button,
.import-dialog .ore-button {
  --ore-button-unit: 2px;
  --ore-button-font-size: 1rem;
  --ore-button-font-family: var(--ore-font-body);
  font-size: 1rem;
  font-family: var(--ore-font-body);
  min-width: 0;
  min-height: 50px;
  height: 50px;
}
.ore-button { color: var(--ore-button-foreground); }
.ore-button[data-color="primary"], .ore-button[data-color="destructive"] {
  --ore-button-text-shadow: 2px 2px 0 #0000004d;
}
.ore-button[data-color="secondary"], .ore-button[data-color="gold"] {
  --ore-button-text-shadow: 1px 1px 0 #ffffff4d;
}
.site-nav .ore-button:not([aria-current]),
.changes-toc .ore-button {
  --ore-button-text-shadow: 2px 2px 0 #0000004d;
}
.site-nav .ore-button:not([aria-current]):is(:active, [data-pressed], .preview-pressed),
.changes-toc .ore-button:is(:active, [data-pressed], .preview-pressed) {
  --ore-button-shadow: transparent;
}
.page-title, .content-page h2, .brand-name, .dialog-heading h2 {
  text-shadow: 2px 2px 0 #17181c;
}
.ore-button:is(:disabled, [data-disabled], [aria-disabled="true"]) {
  --ore-button-border: transparent;
  --ore-button-foreground: var(--ore-color-disabled-foreground);
  --ore-button-text-shadow: none;
  background:
    linear-gradient(var(--ore-color-disabled), var(--ore-color-disabled))
      center var(--ore-button-unit) /
      calc(100% - var(--ore-button-unit) * 2)
      calc(100% - var(--ore-button-unit) * 4) no-repeat,
    linear-gradient(#76787f, #76787f)
      center calc(100% - var(--ore-button-unit)) /
      calc(100% - var(--ore-button-unit) * 2)
      calc(var(--ore-button-unit) * 2) no-repeat;
  border: 0;
  box-shadow: none;
  outline: 0;
  filter: none;
}
.ore-button:is(:disabled, [data-disabled], [aria-disabled="true"])::before,
.ore-button:is(:disabled, [data-disabled], [aria-disabled="true"])::after { display: none; box-shadow: none; border: 0; }
.selection-summary { min-width: 22ch; margin-left: auto; color: #d0d1d4; font-size: 1rem; white-space: nowrap; text-align: right; }
.download-actions { padding-top: 14px; border-top: 1px solid #ffffff2b; }
.install-page .download-actions { padding-top: 0; border-top: 0; }
.error-message, .notice-message { padding: 11px 14px; border: 1px solid #ed6566; color: #ffe4e4; background: #722e30; }
.notice-message { border-color: #88d268; color: #e9f8df; background: #293e25; }

.catalog-section { display: grid; gap: 12px; }
.section-heading h2 {
  margin: 0;
  color: #fff;
  font-family: var(--ore-font-display), sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
}
.filter-row { width: min(100%, 560px); }
.search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 54px;
}
.search-field .ore-textfield-control { width: 100%; height: 100%; }
.ore-textfield-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0 12px;
  font-family: var(--ore-font-body), sans-serif;
  font-size: 1rem;
  line-height: normal;
}
.ore-textfield-input::placeholder { color: #d0d1d4; opacity: 1; }
.search-field .ore-textfield-input:focus-visible { outline: none; }

.item-list { display: grid; grid-template-columns: 1fr; }
#mod-list[aria-busy="true"] {
  min-height: 100vh;
  align-content: start;
  background: repeating-linear-gradient(to bottom, transparent 0 58px, #ffffff24 58px 59px);
}
.mod-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  border-bottom: 1px solid #ffffff24;
}
.mod-entry:first-child { border-top: 1px solid #ffffff24; }
.mod-entry:hover, .server-entry:hover { background: #ffffff08; }
.mod-toggle { display: grid; place-items: center; min-height: 58px; cursor: pointer; }
.mod-toggle .ore-checkbox, .server-entry .ore-checkbox { width: 25px; height: 25px; }
.mod-toggle .ore-checkbox:disabled { cursor: not-allowed; }
.mod-details { min-width: 0; }
.mod-summary {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 12px 6px 0;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.mod-summary::-webkit-details-marker { display: none; }
.mod-summary::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid #d5d6d9;
  border-bottom: 2px solid #d5d6d9;
  content: "";
  transform: rotate(-45deg);
}
.mod-details[open] > .mod-summary::before { transform: rotate(45deg); }
.mod-name { min-width: 0; color: #fff; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.mod-version {
  justify-self: end;
  color: #c4e9ad;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mod-detail-content { display: grid; gap: 7px; padding: 0 16px 15px 24px; }
.mod-description, .mod-relation, .mod-warning { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.mod-description, .mod-relation { color: #d0d1d4; }
.mod-requirement { color: #ffd180; font-weight: 600; }
.mod-warning { color: #ffd180; }
.mod-entry-incompatible .mod-version { color: #ed9696; }
.empty-state { padding: 18px 4px; color: #c4c5c8; font-size: 0.9rem; }
.servers-section { padding-top: 4px; }
.server-list { gap: 10px; }
.server-placeholder { pointer-events: none; }
.server-placeholder .server-icon { background: #393b41; border-color: #393b41; }
.server-placeholder .server-caption { gap: 0; grid-template-rows: calc(1.5rem + 3px) repeat(2, 1.29rem); align-items: center; }
.server-placeholder-line { display: block; min-width: 0; width: 100%; height: 16px; background: #393b41; }
.server-placeholder .server-caption .server-placeholder-line:first-child { width: 70%; }
.server-placeholder .server-caption .server-placeholder-line:last-child { width: 60%; }
.server-placeholder .server-address { max-width: 180px; justify-self: center; }
.server-placeholder .server-status { width: 60px; justify-self: end; }
.server-placeholder-check { width: 24px; height: 24px; background: #393b41; }
.server-entry {
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1fr) minmax(150px, 0.65fr) minmax(88px, 130px);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 90px;
  padding: 20px;
  border: 2px solid #5b5d62;
  background: #2b2d32;
  cursor: pointer;
  text-align: left;
}
.server-checkbox { justify-self: center; margin: 0; }
.server-icon {
  display: block;
  width: 64px;
  height: 64px;
  border: 2px solid #111216;
  background: #393b41;
  image-rendering: pixelated;
  object-fit: cover;
}
.server-icon-placeholder { background: linear-gradient(135deg, #3c8527 0 48%, #34363c 48% 100%); }
.server-caption { display: grid; gap: 3px; min-width: 0; }
.server-title-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; min-width: 0; }
.server-name { min-width: 0; color: #fff; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-address { display: block; width: 100%; color: #c4c5c8; font-size: 0.85rem; text-align: center; overflow-wrap: anywhere; }
.server-address { border: 0; padding: 0; background: transparent; font-family: inherit; line-height: inherit; cursor: grab; }
.server-address:active { cursor: grabbing; }
.server-address:hover { color: #fff; text-decoration: underline dotted; text-underline-offset: 3px; }
.server-address:focus-visible { outline: 2px solid #aeb0b4; outline-offset: 4px; }
.server-motd { min-height: 3em; color: #d0d1d4; font-size: 0.86rem; overflow-wrap: anywhere; }
.server-motd-line { display: block; min-height: 1.45em; }
.server-status { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: #c4c5c8; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.server-status-dot { color: #92949a; font-size: 0.75rem; }
.server-status.is-online .server-status-dot { color: #80d957; }
.server-player-list-popover { position: relative; }
.server-player-count { color: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; }
.server-player-count[tabindex] { cursor: help; text-decoration: underline dotted #aeb0b4; text-underline-offset: 4px; }
.server-player-count[tabindex]:focus-visible { outline: 2px solid #aeb0b4; outline-offset: 3px; }
.server-player-list-tooltip {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: min(280px, calc(100vw - 32px));
  max-height: 240px;
  padding: 10px 12px;
  overflow: auto;
  border: 2px solid #17181c;
  color: #f7f7f7;
  background: #27292e;
  box-shadow: 3px 3px 0 #17181c, inset 2px 2px 0 #3b3d42;
  white-space: normal;
}
.server-player-list-popover:hover .server-player-list-tooltip,
.server-player-count:focus-visible + .server-player-list-tooltip { display: block; }
.player-list-heading { display: block; padding-bottom: 6px; color: var(--ore-color-green-10); font-family: var(--ore-font-display), sans-serif; font-size: 0.8rem; }
.player-name-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.player-name-list li { padding: 4px 0; border-top: 1px solid #ffffff24; color: #e3e5e7; font-size: 0.84rem; overflow-wrap: anywhere; }
.player-list-empty { margin: 2px 0 0; color: #d0d1d4; font-size: 0.82rem; white-space: normal; }

.import-dialog {
  width: min(640px, calc(100% - 32px));
  max-width: 640px;
  max-height: calc(100vh - 36px);
  padding: 24px;
  overflow: auto;
  border: 2px solid #898b90;
  color: #f7f7f7;
  background: #2d2f34;
  box-shadow: 0 10px 0 #151619, 0 28px 72px #000a;
}
.import-dialog::backdrop { background: #090a0dcc; }
.dialog-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 20px; margin-left: -2px; }
#import-fallback-actions { margin: 20px 0 0; color: #c4c5c8; font-size: 0.875rem; line-height: 1.4; }
.import-url-control { position: relative; margin-top: 16px; }
.import-url { display: block; width: 100%; margin: 0; padding: 12px; border: 1px solid #898b90; color: #fff; background: #202126; }
.import-copy-status { position: absolute; right: 0; bottom: calc(100% + 6px); max-width: 100%; margin: 0; padding: 4px 8px; border: 1px solid #5b5d62; background: #202126; color: var(--ore-color-green-10); font-size: 0.875rem; pointer-events: none; }
.import-copy-status:empty { visibility: hidden; }
.import-url { cursor: grab; }
.import-url:active { cursor: grabbing; }
.import-dialog[data-mode="launcher"] { width: min(560px, calc(100% - 32px)); }
.import-dialog[data-mode="launcher"] .dialog-heading { align-items: flex-start; }
.import-dialog[data-mode="launcher"] .dialog-heading h2 { font-size: 1.5rem; line-height: 1.2; }
.import-dialog[data-mode="launcher"] .dialog-actions { margin-top: 8px; }
.import-dialog[data-mode="launcher"] #import-download-zip { order: 0; }
.import-dialog[data-mode="launcher"] #close-import-dialog { order: 1; margin-left: auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.dialog-heading h2 { margin: 0; color: #fff; font-family: var(--ore-font-display), sans-serif; font-size: 1.8rem; font-weight: 400; }
.import-dialog .dialog-close { min-height: 42px; padding-inline: 13px; }
.import-gif { display: block; width: min(100%, calc(45vh * 1000 / 786 + 20px)); height: auto; margin-inline: auto; padding: 8px; border: 2px solid #17181c; background: #202126; }
.import-gif-placeholder { display: grid; place-items: center; min-height: 300px; margin: 0; border: 2px dashed #777980; color: #d0d1d4; background: #202126; text-align: center; }
.import-steps { margin: 16px 0 0; color: #e3e5e7; font-size: 1rem; }

.site-footer { padding: 22px 0 32px; border-top: 1px solid #ffffff24; }
.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--ore-font-display), sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
}
.credits-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.credits-groups h2 { margin: 0 0 24px; font-size: 1.8rem; }
.credits-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid #ffffff24;
}
.credits-list a {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 20px 0;
  border-bottom: 1px solid #ffffff24;
  color: #fff;
  text-decoration: none;
}
.credits-list a strong { font-size: 1.1rem; font-weight: 600; }
.credits-list a span { max-width: 65ch; color: var(--ore-color-neutral-text-dim); font-size: 1rem; line-height: 1.6; }
.credits-list a:hover strong { color: var(--ore-color-green-10); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(0, 1fr); }
  .header-inner, .site-nav { justify-content: center; }
}

@media (max-width: 600px) {
  .site-header { padding: 12px; }
  .brand-name { font-size: 1.3rem; white-space: nowrap; }
  .site-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .site-nav .ore-button { padding-inline: 4px; font-size: .85rem; }
  .site-nav a:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  .server-entry { grid-template-columns: 52px 60px minmax(0, 1fr) 80px; }
  .server-caption { grid-column: 3; grid-row: 1; }
  .server-checkbox { grid-row: 1 / 3; }
  .server-address { grid-column: 3; grid-row: 2; text-align: left; }
  .server-placeholder .server-address { justify-self: start; }
  .server-status { grid-column: 4; grid-row: 1 / 3; align-self: center; }
  .server-entry.server-entry-readonly { grid-template-columns: 60px minmax(0, 1fr) 80px; }
  .server-entry-readonly .server-caption { grid-column: 2; }
  .server-entry-readonly .server-address { grid-column: 2; }
  .server-entry-readonly .server-status { grid-column: 3; }
}

@media (max-width: 760px) {
  .combat-hero-copy { text-align: center; }
  .combat-hero-copy > p { margin-inline: auto !important; }
  .home-actions { justify-content: center; }
  :root { --page-gutter: 18px; --section-space: 40px; }
  .home-continue, .credits-groups { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .combat-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 420px; }
  .combat-hero-mark { width: 240px; }
  .snapshot-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .snapshot-facts div { border-bottom: 1px solid #3b3d42; }
  .snapshot-facts div:nth-child(3) { border-right: 0; }
  .snapshot-facts div:nth-child(n+4) { border-bottom: 0; }
  .combat-overview { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
  .overview-heading > p:not(.home-kicker) { max-width: 680px; }
  .home-route-grid { gap: 8px; }
  .eight-c-changes { grid-template-columns: 1fr; gap: 18px; }
  .home-references { align-items: flex-start; flex-direction: column; gap: 12px; }
  .header-meta { text-align: left; }
  .page-shell { gap: 24px; margin-top: 18px; }
  .server-entry { grid-template-columns: 52px 60px minmax(0, 1fr) 80px; gap: 9px; padding: 18px 14px; }
  .server-icon { width: 56px; height: 56px; }
  .server-title-line { align-items: flex-start; flex-direction: column; gap: 0; }
  .server-address { max-width: 100%; }
}

@media (max-width: 500px) {
  body { font-size: 16px; }
  :root { --page-gutter: 14px; }
  .header-meta { font-size: 0.82rem; }
  .combat-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; min-height: 0; padding: 44px var(--page-gutter) 44px; background-image: linear-gradient(#202126d9, #202126ed), url('./assets/combat-test-map-banner.webp'); }
  .combat-hero-mark { display: block; width: min(70vw, 260px); justify-self: center; }
  .combat-hero-copy > p:not(.home-kicker):not(.snapshot-meta) { font-size: 1rem; }
  .snapshot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .snapshot-facts div { padding: 10px 12px; border-bottom: 1px solid #3b3d42; }
  .snapshot-facts div:nth-child(3) { border-right: 1px solid #3b3d42; }
  .snapshot-facts div:nth-child(2n) { border-right: 0; }
  .snapshot-facts div:nth-child(4) { border-bottom: 1px solid #3b3d42; }
  .snapshot-facts div:last-child { border-bottom: 0; }
  .home-actions { align-items: center; flex-direction: column; gap: 13px; margin-top: 18px; }
  .home-actions .ore-button { width: auto; min-width: 180px; }
  .combat-overview { padding-top: 26px; padding-bottom: 26px; }
  .project-heading { flex-wrap: wrap; }
  .home-route-grid, .project-grid { grid-template-columns: 1fr; }
  .eight-c-changes { gap: 16px; padding-top: 26px; padding-bottom: 28px; }
  .change-list li { grid-template-columns: 1fr; gap: 3px; padding: 11px 0; }
  .home-references { padding-top: 18px; padding-bottom: 24px; }
  .preset-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .preset-actions #select-recommended { grid-column: 1 / -1; }
  .page-shell .ore-button { width: 100%; padding-inline: 12px; }
  .selection-summary { grid-column: 1 / -1; width: 100%; margin: 1px 0 0; text-align: right; }
  .download-actions { display: grid; grid-template-columns: 1fr; }
  .mod-entry { grid-template-columns: 44px minmax(0, 1fr); }
  .mod-summary { grid-template-columns: 10px minmax(0, 1fr); gap: 8px; min-height: 54px; }
  .mod-version { grid-column: 2; justify-self: start; margin-top: -3px; font-size: 0.75rem; }
  .mod-name { grid-column: 2; grid-row: 1; }
  .server-entry { grid-template-columns: 36px 48px minmax(0, 1fr) 66px; gap: 8px; min-height: 86px; padding: 16px 12px; }
  .server-entry.server-entry-readonly { grid-template-columns: 48px minmax(0, 1fr) 66px; }
  .server-icon { width: 46px; height: 46px; }
  .server-status { justify-content: flex-end; padding-top: 0; font-size: 0.78rem; }
  .server-motd { font-size: 0.78rem; }
  .server-name { font-size: 0.9rem; }
  .server-placeholder .server-caption { grid-template-rows: calc(1.35rem + 3px) repeat(2, 1.17rem); }
  .server-address { font-size: 0.76rem; }
  .import-dialog { padding: 16px; }
  .dialog-heading h2 { font-size: 1.35rem; }
  .import-gif-placeholder { min-height: 190px; }
}
