@font-face {
  font-family: Atlas Serif;
  src: url(dawn-serif.woff2) format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: Atlas Serif;
  src: url(herald-serif-glyph.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+92D2;
}

:root {
  color-scheme: dark;
  --body: #111217;
  --panel: #1b1c22;
  --line: #49413a;
  --text: #f2e8d5;
  --muted: #c3bdaf;
  --accent: #d9ae78;
  --link: #edd0a0;
  --serif: "Atlas Serif","Noto Serif TC","Songti TC","PMingLiU",serif;
  --sans: "Microsoft JhengHei","PingFang TC","Noto Sans TC",sans-serif;
  --mono: "Consolas","Courier New",monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--body);
  color: var(--text);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, ol, figure, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}

.wrap {
  width: min(87.5%,1280px);
  margin: 0 auto;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
}

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 16px;
  color: var(--panel);
  background: var(--accent);
}

[hidden] {
  display: none!important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #101115fa;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brandmark {
  width: 47px;
  height: 47px;
}

.brandtype {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.05;
}

.brandtype b {
  font: 700 20px/1.15 var(--serif);
  letter-spacing: .13em;
  color: var(--text);
}

.brandtype small {
  font: 9px/1.2 var(--mono);
  letter-spacing: .25em;
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted);
}

.main-nav a[aria-current] {
  color: var(--link);
}

.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: calc(50% - 10px);
  bottom: 14px;
  width: 20px;
  height: 2px;
  transform: none;
  background: var(--accent);
}

.main-nav a:hover, .back-top:hover {
  color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #78644b;
  border-radius: 0;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--panel);
  letter-spacing: .05em;
  border-color: var(--link);
  background: var(--link);
}

.header-cta:hover {
  background: #f2d9ab;
}

.header-cta .icon {
  width: 15px;
  height: 15px;
}

.header-cta .icon:last-child {
  width: 13px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px;
}

#top {
  position: absolute;
  top: 0;
}
.entry-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

/* Opening spread */
.folio {
  position: relative;
  padding: 16px 0 clamp(22px, 2.7vw, 42px);
  border-bottom: 1px solid #655340;
  background: radial-gradient(ellipse at 15% 30%, #27232b 0%, transparent 54%), linear-gradient(115deg, #16171c, #1a161b 72%, #131319);
}
.folio-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 9px;
  border-bottom: 1px solid #594b40;
  color: var(--muted);
  font: 11px/1.4 var(--mono);
  letter-spacing: .18em;
}
.folio-mast span:nth-child(2) {
  font: 12px/1.5 var(--serif);
  letter-spacing: .22em;
}
.folio-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "plate copy";
  align-items: center;
  gap: clamp(32px, 5.6vw, 88px);
  padding: clamp(27px, 3.1vw, 51px) 0 2px;
}
.folio-copy { grid-area: copy; }
.publisher {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.publisher-seal {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 43px;
  background: linear-gradient(135deg, #873c44, #4c222b);
  color: var(--panel);
  margin: 0 3px 1px 0;
  position: relative;
  clip-path: polygon(0 0,100% 0,100% 77%,50% 100%,0 77%);
  border: 1px solid #b2745d;
}
.publisher-seal img {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
}
.folio-copy h1 {
  font: 700 clamp(32px, 4.75vw, 73px)/1.35 var(--serif);
  color: var(--text);
  letter-spacing: .025em;
  margin: 12px 0 0;
}
.folio-subtitle {
  color: #c4b39c;
  font: italic clamp(19px, 1.8vw, 28px)/1.4 Georgia, serif;
}
.folio-blurb {
  margin: 19px 0 21px;
  max-width: 31em;
  color: var(--muted);
  font-size: clamp(14px, 1.12vw, 17px);
  line-height: 1.85;
}
.reading-index {
  background: #17171d;
  border: 1px solid var(--line);
  border-top-color: #7f6350;
}
.reading-index a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  min-height: 45px;
  border-bottom: 1px solid var(--line);
}
.reading-index a:hover, .need-card:hover {
  background: #30292a;
  color: var(--link);
}
.reading-index a:last-child {
  border-bottom: 0;
}
.folio-chapter {
  font: 700 13px/1 var(--serif);
  color: var(--accent);
  font-size: 15px;
}
.reading-index strong {
  font: 700 clamp(15px, 1.2vw, 18px)/1.55 var(--serif);
}
.entry-name {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.reading-index .icon, .need-card > .icon {
  width: 16px;
  color: var(--accent);
}
.folio-plate {
  grid-area: plate;
  min-width: 0;
  background: #0f1015;
  border: 1px solid #826742;
  padding: 5px;
  box-shadow: 0 10px 24px #0006, inset 0 0 0 2px #242025;
}
.folio-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.folio-plate figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 5px;
  color: var(--accent);
  font: 12px/1.5 var(--serif);
  letter-spacing: .1em;
}
.folio-plate figcaption i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* First chapter, an index of tasks */
.entry-guide {
  padding: clamp(33px, 4vw, 63px) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #201c22 0%, #18191e 52%, #19191c 100%);
}
.guide-spread {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 95px);
}
.entry-heading h2 {
  margin: 7px 0 12px;
}
.entry-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.need-grid {
  border-top: 1px solid #75634e;
}
.need-card {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 15px;
  padding: 11px 5px;
  border-bottom: 1px solid #50433c;
}
.need-number {
  color: var(--accent);
  font: italic 21px/1.3 Georgia, serif;
}
.need-card h3 {
  font: 700 clamp(17px, 1.37vw, 22px)/1.55 var(--serif);
}
.need-action {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 730px) {
  .folio { padding-top: 8px; }
  .folio-mast { font-size: 9px; gap: 6px; }
  .folio-mast span:nth-child(2) { font-size: 11px; }
  .folio-spread {
    grid-template-columns: 1fr;
    grid-template-areas: "plate" "copy";
    gap: 22px;
    padding-top: 24px;
  }
  .folio-copy h1 { font-size: clamp(36px, 9.8vw, 62px); }
  .folio-blurb { margin: 13px 0 15px; }
  .folio-plate img { max-height: 290px; }
  .guide-spread { grid-template-columns: 1fr; gap: 20px; }
  .need-card { gap: 9px; padding-block: 9px; }
}
#launcher-versions {
  scroll-margin-top: 85px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .21em;
}

.eyebrow i {
  width: 31px;
  height: 1px;
  background: var(--accent);
  position: relative;
  display: inline-block;
  margin-left: 2px;
}

.eyebrow i::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 0;
  top: -2px;
  transform: rotate(45deg);
  background: var(--accent);
}

.section-pad {
  padding: 64px 0 73px;
}

.collection {
  background: linear-gradient(#14151a, #17161b);
}

.collection > .wrap {
  container-type: inline-size;
}

.collection-head {
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(30px,2.8vw,43px);
  line-height: 1.4;
  letter-spacing: .07em;
}

.eyebrow+h2 {
  margin-top: 7px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(15px,1.8vw,29px);
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: border-color .2s,transform .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-image {
  position: relative;
  aspect-ratio: 1.82;
  overflow: hidden;
  background: #101115;
  border-bottom: 1px solid var(--line);
}

.item-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card .item-art {
  transition: transform .4s;
}

.card:hover .item-art {
  transform: scale(1.035);
}

.plate-number {
  position: absolute;
  top: 13px;
  left: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: 10px/1 var(--mono);
  letter-spacing: .11em;
  padding: 6px 8px;
}

.card-text {
  padding: 21px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-kicker {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.cat-mark {
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
}

[data-category="素材工具"] .card-kicker {
  color: #a9cdb5;
}

[data-category="數值工具"] .card-kicker {
  color: #cdb6dd;
}

.card-en {
  font: 9px/1.4 var(--mono);
  letter-spacing: .1em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.card h3 {
  font-size: clamp(23px,1.9vw,30px);
  line-height: 1.5;
  letter-spacing: .035em;
  margin: 6px 0 8px;
}

.card p, .studio-inner p, .detail-body p, .steps p {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .035em;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  padding-top: 19px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-link .icon {
  width: 16px;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.steps small {
  font: 12px var(--mono);
  color: var(--accent);
}

.breadcrumb {
  font-size: 13px;
  color: var(--link);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.studio {
  background: #1d1a20;
}

.studio-inner {
  display: flex;
  gap: 57px;
  align-items: center;
  max-width: 900px;
}

.studio-inner p {
  margin-top: 13px;
  max-width: 680px;
}

.studio-seal {
  width: 129px;
  height: 129px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #a78d67;
  border-radius: 50%;
  outline: 1px dashed #725f4e;
  outline-offset: 5px;
}

.studio-seal img {
  width: 86px;
  height: 86px;
}

footer {
  border-top: 1px solid var(--line);
  background: #101116;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 105px;
}

.copyright {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}

.copyright span {
  margin: 0 5px;
}

.back-top {
  margin-left: auto;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--text);
  font-size: 12px;
}

.back-top .icon {
  width: 14px;
}

.detail {
  background: var(--body);
  padding: 26px 0 64px;
}

.breadcrumb {
  min-height: 40px;
}

.breadcrumb .icon {
  width: 17px;
}

.detail-head {
  display: grid;
  align-items: center;
  grid-template-columns: 1.18fr .82fr;
  gap: 70px;
  padding: 26px 0 45px;
}

.detail-title .eyebrow {
  margin-bottom: 24px;
}

.detail-category {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .15em;
}

.detail h1 {
  font-size: clamp(40px,4.4vw,72px);
  line-height: 1.3;
  letter-spacing: .05em;
  margin: 8px 0;
}

.detail-en {
  font: 12px/1.5 var(--mono);
  color: var(--accent);
  letter-spacing: .19em;
}

.detail-desc {
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.detail-head figure {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #101115;
}

.detail-head figure .item-art {
  object-position: 50% 45%;
}

.detail-head figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 6px 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .12em;
  border-top: 1px solid var(--line);
}

.detail-body {
  border-block: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
}

.detail h2 {
  font-size: clamp(25px,2.5vw,36px);
  margin: 8px 0 18px;
}

.detail-body dl {
  margin-top: 23px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 12px;
  font-size: 14px;
}

.detail-body dt {
  color: var(--accent);
}

.detail-body dd {
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}

.steps small {
  padding-top: 8px;
}

.steps h3 {
  font-size: 18px;
}

.steps p {
  font-size: 14px;
}

.related {
  margin-top: 35px;
}

.related>div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.related a {
  border: 1px solid var(--line);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related a:hover {
  border-color: var(--accent);
}

.related a span {
  display: flex;
  flex-direction: column;
}

.related small {
  font-size: 11px;
  color: var(--accent);
}

.related b {
  font-family: var(--serif);
  font-size: 18px;
}

.related .icon {
  color: var(--accent);
}

@media(max-width: 1000px) {
  .wrap {
    width: 90%;
  }
  .header-inner {
    gap: 25px;
  }
  .main-nav {
    gap: 22px;
  }
  .card-text {
    padding: 17px;
  }
  .card-en {
    display: none;
  }
  .detail-head {
    gap: 32px;
  }
}

@media(max-width: 730px) {
  html {
    scroll-padding-top: 70px;
  }
  .header-inner {
    height: 63px;
    gap: 13px;
  }
  .brandmark {
    width: 39px;
    height: 39px;
  }
  .brandtype b {
    font-size: 17px;
  }
  .brandtype small {
    font-size: 8px;
  }
  .brand {
    gap: 6px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--link);
  }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    align-items: stretch;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 6px 5% 12px;
  }
  .main-nav.open a {
    height: auto;
    padding: 10px 4px;
  }
  .main-nav a[aria-current]::after {
    display: none;
  }
  .header-cta {
    margin-left: auto;
    font-size: 12px;
    padding: 6px 9px;
    gap: 5px;
  }
  .header-cta .icon:first-child {
    display: none;
  }
  .section-pad {
    padding: 44px 0 50px;
  }
  .cards {
    gap: 15px;
  }
  .card-image {
    aspect-ratio: 1.45;
  }
  .card-text {
    padding: 14px;
  }
  .card h3 {
    font-size: 20px;
  }
  .card p {
    font-size: 13px;
  }
  .studio-inner {
    gap: 29px;
  }
  .studio-seal {
    width: 80px;
    height: 80px;
  }
  .studio-seal img {
    width: 57px;
  }
  .footer-inner {
    gap: 15px;
    flex-wrap: wrap;
    padding-block: 18px;
  }
  .detail-head {
    grid-template-columns: 1fr 39%;
    gap: 22px;
  }
  .detail-body {
    gap: 24px;
  }
  .detail-desc {
    font-size: 16px;
  }
}

@media(max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .card-image {
    aspect-ratio: 1.98;
  }
  .card-text {
    padding: 20px;
  }
  .card-en {
    display: inline;
  }
  .card h3 {
    font-size: 25px;
  }
  .card p {
    font-size: 14px;
  }
  .card-link {
    padding-top: 15px;
  }
  .studio-inner {
    align-items: flex-start;
  }
  .studio-seal {
    width: 53px;
    height: 53px;
    margin: 8px 0 0 5px;
  }
  .studio-seal img {
    width: 40px;
  }
  .studio-inner p {
    font-size: 14px;
  }
  .footer-inner .copyright {
    order: 3;
    width: 100%;
    font-size: 10px;
  }
  .detail-head, .detail-body, .related>div:last-child {
    grid-template-columns: 1fr;
  }
  .detail-head {
    padding: 12px 0 28px;
  }
  .detail-head figure {
    max-height: 270px;
    aspect-ratio: 1.9;
  }
  .detail-title .eyebrow {
    margin: 12px 0;
  }
  .detail-desc {
    margin-top: 13px;
  }
  .detail-body {
    padding: 27px 0;
    gap: 30px;
  }
  .related>div:last-child {
    gap: 10px;
  }
  .collection-head {
    margin-bottom: 19px;
  }
}

@media(max-width: 375px) {
  .studio-seal {
    display: none;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none!important;
  }
}

/* Product families and launcher editions */
.version-tabs, .edition-bottom, .feature-tags {
  display: flex;
  align-items: center;
}
.catalog-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.6vw, 24px);
  margin-top: clamp(16px, 2vw, 28px);
}
.catalog-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  aspect-ratio: 1;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 27px);
  background: linear-gradient(160deg, #242127, #19191e 72%);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: inset 0 0 0 3px #15161a;
}
.catalog-tile::before {
  content: "";
  position: absolute;
  inset: 6px 6px 24%;
  z-index: -1;
  background: var(--tile-art) center / cover no-repeat;
  transition: transform .24s ease;
  border-bottom: 1px solid var(--line);
}
.catalog-tile[href="#launcher-series"] { --tile-art: url(return-scroll.webp); }
.catalog-tile[href="#servers"] { --tile-art: url(aden-siege-night.webp); }
.catalog-tile[href="#show-encoder"] { --tile-art: url(mana-reliquary.webp); }
.catalog-tile[href="#showcase"] { --tile-art: url(polymorph-codex.webp); }
:is(#showcase, #show-encoder) h3 { font-family: var(--serif); }
:is(#showcase, #show-encoder) .feature-tabs { margin-top: 12px; }
@media (max-width: 680px) {
  .catalog-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.manual-step { padding: 16px 0 4px; scroll-margin-top: 84px; }
.manual-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 3vw, 40px); }
.manual-layout figure { margin: 0; }
.manual-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 14px; }
.manual-figures .screenshot-link { padding: 6px; }
.manual-figures .screenshot-link img { width: auto; height: auto; max-width: 100%; max-height: 370px; }
.manual-figures figcaption { padding: 9px 0; font: 14px/1.65 var(--sans); color: var(--muted); }
.manual-figures figcaption b, .manual-map figcaption { display: block; margin-bottom: 5px; color: var(--link); }
.manual-map { padding: 16px; border: 1px solid var(--line); background: #19191e; }
.manual-map ol { display: grid; gap: 6px; list-style: none; counter-reset: stage; }
.manual-map ol li { counter-increment: stage; margin: 0; padding: 5px 10px; border-left: 2px solid var(--accent); background: #121216; }
.manual-map ol li::before { content: counter(stage, decimal-leading-zero) '　'; color: var(--accent); }
@media (max-width: 760px) {
  .manual-layout { grid-template-columns: minmax(0, 1fr); }
}
.manual-step h3 { margin: 0 0 12px; }
.manual-step ol { padding-left: 1.6em; line-height: 1.8; }
.manual-step li { margin-bottom: .7em; overflow-wrap: anywhere; }
.manual-step li::marker { color: var(--accent); }
.manual-step code, .manual-step pre { color: var(--link); font-family: var(--mono); }
.manual-step pre { padding: 12px; background: #121216; border: 1px solid var(--line); }
.feature-head { flex-wrap: wrap; }
.catalog-tile:hover::before { transform: scale(1.025); }
.catalog-tile:hover { border-color: var(--accent); }
.catalog-tile[aria-selected="true"] {
  border-color: #c89e68;
  box-shadow: inset 0 -4px #c89e68, inset 0 0 0 3px #352824;
}
.catalog-tile[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: clamp(10px, 1.8vw, 27px);
  right: clamp(10px, 1.8vw, 27px);
  width: 10px;
  height: 10px;
  background: #cd7572;
  border: 2px solid var(--panel);
  outline: 1px solid #d8b581;
  transform: rotate(45deg);
  border-color: #3b2227;
}
.tile-number {
  align-self: flex-start;
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: 11px/1.2 var(--mono);
  letter-spacing: .08em;
}
.tile-caption {
  display: grid;
  gap: 4px;
}
.tile-caption small {
  color: var(--accent);
  font: 600 clamp(9px, .85vw, 12px)/1.4 var(--mono);
  letter-spacing: .16em;
}
.tile-caption strong {
  color: var(--text);
  font: 700 clamp(16px, 2.25vw, 36px)/1.4 var(--serif);
  letter-spacing: .08em;
}
.version-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  line-height: 1.4;
  color: var(--text);
}
.version-tabs a:hover {
  color: var(--link);
  background: #322b28;
}
.launcher-shelf, .server-placeholder {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 0;
  overflow: hidden;
}
.shelf-art {
  position: relative;
  min-height: 280px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background: #101115;
}
.shelf-art .item-art {
  position: absolute;
  inset: 0;
  object-position: center;
  object-fit: contain;
  padding: 12px 12px 34px;
}
.shelf-art figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: var(--panel);
  font-size: 12px;
  color: var(--text);
  letter-spacing: .1em;
  border-top: 1px solid var(--line);
}
.shelf-art figcaption span {
  font: 10px var(--mono);
  margin-right: 9px;
  color: var(--accent);
}
.shelf-content, .server-caption {
  padding: clamp(22px,2.3vw,36px);
}
.shelf-kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font: 600 10px/1.5 var(--mono);
  letter-spacing: .16em;
  color: var(--accent);
}
.shelf-kicker span {
  font-size: 9px;
  letter-spacing: .1em;
  padding-left: 13px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.shelf-content h3, .server-caption h3 {
  margin: 6px 0;
  font-size: clamp(25px,2.2vw,35px);
  letter-spacing: .06em;
  line-height: 1.5;
}
.shelf-lede, .edition-panel p, .server-caption p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.version-tabs {
  flex-wrap: wrap;
  gap: 6px;
  margin: 17px 0 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.version-tabs a {
  min-height: 34px;
  padding: 6px 11px;
  border-color: #746958;
  font: 600 14px/1.25 var(--mono);
  letter-spacing: .03em;
}
.version-tabs a[aria-selected="true"], .version-tabs a[aria-current="page"] {
  color: #201b1a;
  border-color: #f1d4a5;
  background: #ddbb87;
}
.edition-panel {
  min-height: 145px;
  padding-top: 14px;
}
.edition-panel h4 {
  margin: 0 0 5px;
  font: 700 21px/1.5 var(--serif);
  letter-spacing: .04em;
}
.edition-panel h4 em {
  font: 600 .82em var(--mono);
  color: var(--link);
}
.edition-catalogues {
  margin-top: 15px;
  padding: clamp(15px, 2.2vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
}
.edition-catalogues .edition-panel { padding-top: 0; }
.feature-index { margin-top: 23px; }
.feature-index.full {
  padding-block: 25px 40px;
  border-top: 1px solid var(--line);
}
.feature-head, .feature-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.feature-head { margin-bottom: 12px; }
.feature-head h5 {
  margin: 0;
  font: 700 18px/1.5 var(--serif);
}
.feature-head > span, .feature-group small {
  color: var(--accent);
  font: 12px/1.4 var(--sans);
  white-space: nowrap;
}
.feature-index .feature-head h2 { margin: 6px 0 0; }
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.feature-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #17171c;
  color: var(--link);
  font-size: 13px;
  line-height: 1.35;
}
.feature-tabs a:hover {
  border-color: var(--accent);
}
.feature-tabs a[aria-selected="true"], .feature-tabs a:first-child:not([role]) {
  color: #201b1a;
  background: #ddbb87;
  border-color: #f1d4a5;
}
.feature-group {
  min-width: 0;
  scroll-margin-top: 72px;
  padding-top: 14px;
}
.feature-group-title {
  margin-bottom: 12px;
}
.feature-group-title strong {
  font: 700 clamp(16px, 1.4vw, 20px)/1.5 var(--serif);
}
.feature-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 15px 20px;
  max-height: min(55vh, 30rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #927653 #242123;
  padding: 2px 10px 2px 0;
  margin: 0;
  list-style: none;
}
.feature-items:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.feature-index.full-list .feature-items {
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
  padding-right: 0;
}
.gallery-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.gallery-placeholder { display: grid; place-items: center; min-height: clamp(160px, 24vw, 280px); border: 1px dashed var(--line); background: #101015; color: var(--muted); font-size: 14px; }
.screenshot-carousel { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #141419; }
.carousel-heading, .screenshot-dialog-head { display: flex; align-items: center; gap: 10px; }
.carousel-heading { justify-content: space-between; margin-bottom: 12px; }
.carousel-heading h3 { margin: 0; font: 700 20px/1.4 var(--serif); }
.carousel-stage { position: relative; height: min(70vh, 640px); perspective: 1400px; overflow: clip; isolation: isolate; }
.carousel-stage [data-slide] { position: absolute; inset: 0; width: 68%; margin: 0 auto; display: flex; flex-direction: column; opacity: 0; transform: translateZ(-380px) scale(.7); transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .55s; pointer-events: none; }
.carousel-stage [data-slot="current"], .carousel-stage [data-slide]:first-child:not([data-slot]) { opacity: 1; transform: translateZ(0); z-index: 3; pointer-events: auto; }
.carousel-stage [data-slot="previous"] { opacity: .55; transform: translateX(-66%) rotateY(36deg) scale(.8); z-index: 1; pointer-events: auto; }
.carousel-stage [data-slot="next"] { opacity: .55; transform: translateX(66%) rotateY(-36deg) scale(.8); z-index: 1; pointer-events: auto; }
.screenshot-link { display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; background: #09090c; border: 1px solid var(--line); box-shadow: 0 16px 35px rgb(0 0 0 / .4); cursor: zoom-in; }
.screenshot-link img { width: 100%; height: 100%; object-fit: contain; }
.carousel-arrow, .screenshot-dialog button { min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); background: #202024; color: var(--link); cursor: pointer; }
.carousel-arrow { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgb(17 18 23 / .9); border-color: var(--accent); font: 24px/1 var(--sans); box-shadow: 0 4px 18px rgb(0 0 0 / .5); }
.carousel-arrow.previous { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-arrow:hover { color: #201b1a; background: #ddbb87; }
.screenshot-dialog button:hover { border-color: var(--accent); }
.screenshot-dialog { width: min(1320px, 94vw); max-height: 94vh; padding: 16px; border: 1px solid var(--line); background: #111217; color: var(--link); }
.screenshot-dialog::backdrop { background: rgb(0 0 0 / .85); }
.screenshot-dialog-head { justify-content: space-between; margin-bottom: 12px; }
.screenshot-dialog-head strong { font-size: 15px; }
.screenshot-dialog form { margin: 0; flex-shrink: 0; }
.screenshot-large { display: block; width: 100%; height: auto; max-height: calc(94vh - 130px); object-fit: contain; }
.screenshot-original { display: inline-block; margin-top: 12px; color: var(--accent); }
body:has(.screenshot-dialog[open]) { overflow: hidden; }
@media (max-width: 730px) {
  .carousel-stage { height: min(65vh, 480px); perspective: 800px; }
  .carousel-stage [data-slide] { width: 78%; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-arrow.previous { left: 2px; }
  .carousel-arrow.next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-stage [data-slide] { transition: none; }
}
.feature-items li {
  min-width: 0;
  padding-left: 11px;
  border-left: 2px solid #695240;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.feature-items strong { font-weight: 600; }
.requires-server {
  margin-left: .4em;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}
.feature-items p { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .feature-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .feature-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .feature-tabs.catalogue-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-tabs a { min-height: 40px; padding: 6px 1px; font-size: 12px; }
  .feature-group { scroll-margin-top: 105px; }
  .feature-items { grid-template-columns: 1fr; gap: 12px; }
}
.edition-bottom {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.feature-tags {
  flex-wrap: wrap;
  gap: 7px;
}
.feature-tags span {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 11px;
}
.edition-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-size: 13px;
}
.edition-link .icon {
  width: 16px;
}
.detail-versions {
  border-bottom: none;
  padding-bottom: 0;
}
.detail-body .feature-tags {
  margin-bottom: 12px;
}
.server-illustration {
  min-height: 260px;
  background: var(--panel) url(aden-siege-night.webp) center / cover no-repeat;
}
.server-caption {
  align-self: center;
}
#tools .cards {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
#tools .card-image {
  aspect-ratio: 2.28;
}
@media (max-width: 830px) {
  .launcher-shelf, .server-placeholder {
    grid-template-columns: minmax(0,.64fr) minmax(0,1.36fr);
  }
  .version-tabs {
    gap: 5px;
  }
  .version-tabs a {
    padding-inline: 9px;
  }
}
@media (max-width: 680px) {
  .launcher-shelf, .server-placeholder {
    grid-template-columns: 1fr;
  }
  .shelf-art, .server-illustration {
    min-height: 0;
    height: clamp(116px,34vw,175px);
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .shelf-art .item-art {
    object-position: center 39%;
  }
  .shelf-content, .server-caption {
    padding: 20px;
  }
  .version-tabs {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .version-tabs a {
    min-height: 40px;
  }
  #tools .cards {
    grid-template-columns: 1fr;
  }
  .edition-panel {
    min-height: 0;
  }
  .detail-versions {
    max-width: 360px;
  }
}
@media (max-width: 480px) {
  .catalog-tile {
    padding: 6px;
  }
  .tile-number {
    padding: 2px 4px;
    font-size: 9px;
  }
  .tile-caption small {
    display: none;
  }
  .tile-caption strong {
    font-size: clamp(13px, 3.6vw, 16px);
    letter-spacing: 0;
    text-align: center;
  }
  .catalog-tile[aria-selected="true"]::after {
    width: 6px;
    height: 6px;
  }
}

.catalog-panel {
  /* Keep the category tiles in view when opening a bookmarked category. */
  scroll-margin-top: calc(25cqi + clamp(114px, 10vw, 150px));
}
.edition-panel {
  scroll-margin-top: 155px;
}
@media (max-width: 680px) {
  .edition-panel {
    scroll-margin-top: 195px;
  }
}
