:root {
  --bg: #111820;
  --panel: #192630;
  --line: #30424f;
  --text: #e8eef2;
  --muted: #a7b7c2;
  --accent: #8ac5e5;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.7 "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure,
dl {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 19px;
}
p {
  color: #c4ced6;
}
p + p {
  margin-top: 14px;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 10px 15px;
  background: var(--accent);
  color: var(--bg);
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  background: #0c141b;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 15px 24px;
  min-height: 86px;
}
.brand-type {
  display: flex;
  flex-direction: column;
  color: var(--text);
  line-height: 1.15;
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  flex-shrink: 0;
}
.brand-type span {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.045em;
  margin-bottom: 4px;
}
.brand-type strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand-type:hover {
  text-decoration: none;
  color: var(--accent);
}
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}
.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.site-main {
  max-width: 1280px;
  padding: 34px 24px 64px;
  margin: auto;
  min-height: calc(100svh - 220px);
}
.page-title {
  margin-bottom: 28px;
}
.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px;
  align-items: start;
}
.trailer-frame {
  min-width: 0;
  background: #0b1218;
}
.trailer-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 37/20;
  object-fit: contain;
}
.trailer-caption {
  font-size: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}
.trailer-caption span {
  color: var(--muted);
}
.home-copy {
  padding: 15px 0;
}
.home-copy h1 {
  font-size: 31px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.home-copy p {
  font-size: 15px;
  line-height: 1.85;
}
.home-specs {
  font-size: 12px;
  margin-top: 25px;
}
.home-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.home-specs dd {
  color: var(--text);
  text-align: right;
}
.home-dragons,
.home-stories {
  margin-top: 42px;
}
.home-dragons > h2,
.home-stories > h2 {
  font-size: 23px;
  margin-bottom: 18px;
}
.dragon-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.dragon-shelf > a {
  display: block;
  background: radial-gradient(ellipse at 50% 55%, #263b48 0%, #17242e 65%);
  color: var(--text);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}
.dragon-shelf > a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.dragon-shelf img {
  width: 100%;
  height: 235px;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.25s;
}
.dragon-shelf a:hover img {
  transform: translateY(-5px);
}
.dragon-shelf h3 {
  font-size: 20px;
  padding: 15px 20px;
  background: #192630;
  display: flex;
  justify-content: space-between;
}
.dragon-shelf h3 span,
.story-link h3 span {
  font-size: 17px;
  color: var(--accent);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.story-link {
  color: var(--text);
  display: block;
}
.story-picture {
  aspect-ratio: 2.3;
  overflow: hidden;
  background: #192630;
}
.story-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.story-villages .story-picture img {
  object-position: center bottom;
}
.story-link > div:last-child {
  padding: 17px 0;
}
.story-link h3 {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
}
.story-link p {
  font-size: 14px;
  margin-top: 8px;
}
.story-link:hover {
  text-decoration: none;
}
.story-link:hover h3 {
  color: var(--accent);
}
.dragon-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.topic-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.topic-tile {
  display: block;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}
.topic-tile:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.topic-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #17212b;
}
.topic-tile.cutout img {
  object-fit: contain;
  aspect-ratio: 4/3;
  padding: 8px;
  background: #223541;
}
.topic-tile h2 {
  font-size: 20px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.topic-tile[href="eggs.html"] img {
  object-fit: contain;
}
.village-tile-photo {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.village-tile-photo img {
  transform: scale(1.25);
  transform-origin: center bottom;
}
.page-layout {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 30px;
}
.topic-nav {
  position: sticky;
  top: 25px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.topic-nav a,
.topic-nav > span {
  font-size: 13px;
  padding: 9px 15px;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.topic-nav > span {
  border-left-color: var(--accent);
  color: var(--text);
  background: #1a2732;
}
.topic-nav a:hover {
  background: #1a2732;
  text-decoration: none;
  color: var(--text);
}
.page-content {
  min-width: 0;
}
.page-content .lead {
  font-size: 17px;
  max-width: 780px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.page-content > section {
  margin-top: 36px;
}
.page-content h2 {
  margin-bottom: 14px;
}
.page-content p {
  max-width: 790px;
  font-size: 15px;
  line-height: 1.85;
}
.page-content > p + .media {
  margin-top: 24px;
}
.media {
  margin: 0 0 24px;
}
.media-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #16212b;
  cursor: zoom-in;
}
.media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  aspect-ratio: 16/9;
  background: #0c1218;
}
.media figcaption {
  padding: 8px 0 0;
  font-size: 11px;
  color: #899eae;
}
.species-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  gap: 26px;
  align-items: center;
}
.species-intro .media {
  margin-bottom: 0;
}
.species-hero.cutout .media-open {
  background: radial-gradient(ellipse at center, #2a3d49, #1b2a35);
}
.species-hero.cutout img {
  height: 360px;
  object-fit: cover;
  padding: 0;
}
.species-summary {
  padding-bottom: 25px;
}
.species-summary h2 {
  font-size: 24px;
}
.species-summary > p {
  font-size: 16px;
}
.food-note {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.food-note h3 {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 5px;
}
.food-note p {
  font-size: 15px;
  color: var(--text);
}
.page-content > .ability-section {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
}
.ability-section h2 {
  font-size: 21px;
}
.growth-media figcaption {
  display: grid;
  grid-template-columns: 22% 31% 47%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.egg-lineup figcaption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.egg-detail {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.egg-detail .media {
  margin: 0;
}
.egg-detail img {
  max-height: 220px;
  object-fit: contain;
}
.egg-detail p {
  max-width: 490px;
}
.practical-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin: 28px 0;
}
.practical-columns h2 {
  font-size: 21px;
}
.food-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  max-width: 740px;
  margin-top: 25px;
}
.food-table th,
.food-table td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}
.food-table th {
  color: var(--text);
  background: var(--panel);
  font-weight: 600;
}
.food-table td {
  color: #c4ced6;
}
.table-note {
  margin-top: 16px;
}
.taming-food {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.taming-food dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.taming-food dt {
  font-size: 13px;
  margin-bottom: 5px;
}
.taming-food dd {
  font-size: 15px;
}
.village-overview .media-open {
  position: relative;
  aspect-ratio: 64/25;
  overflow: hidden;
}
.village-overview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.short-page {
  max-width: 850px;
}
.short-page > section {
  margin-top: 36px;
}
.short-page h2 {
  margin-bottom: 18px;
}
.about-intro {
  max-width: 760px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.about-intro h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.about-intro p {
  font-size: 16px;
  max-width: 730px;
}
.about-art {
  margin: 0;
}
.about-art .media-open {
  background: transparent;
}
.about-art img {
  min-height: 170px;
  object-fit: contain;
}
.team-section {
  margin-top: 40px;
}
.team-section > h2 {
  margin-bottom: 25px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 0;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.team-member img,
.team-initial {
  width: 68px;
  height: 68px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  background: #223846;
}
.team-initial {
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--accent);
}
.team-member h3 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.team-member p {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.65;
  color: var(--muted);
}
.contribute {
  margin-top: 40px;
  padding: 27px 30px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #172530;
}
.contribute h2 {
  font-size: 22px;
  margin-bottom: 9px;
}
.contribute p {
  font-size: 14px;
}
.contribute > a {
  flex: none;
  padding: 10px 18px;
  border: 1px solid #608da5;
  color: var(--text);
  font-size: 14px;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #0c1218;
}
.footer-inner,
.footer-note {
  max-width: 1280px;
  margin: auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.footer-inner > span {
  font-weight: 650;
}
.footer-inner nav {
  display: flex;
  gap: 25px;
}
.footer-inner a {
  color: var(--muted);
}
.footer-note {
  padding-top: 0;
  font-size: 10px;
  color: #8295a4;
}
.footer-note a {
  color: inherit;
}
#image-viewer {
  padding: 0;
  border: 1px solid #4d6476;
  background: #111820;
  color: var(--text);
  max-width: min(1200px, 94vw);
  max-height: 94svh;
}
#image-viewer::backdrop {
  background: #03080eef;
}
#image-viewer img {
  max-height: 84svh;
  max-width: 100%;
  object-fit: contain;
}
.viewer-close {
  display: block;
  margin: 10px 12px 10px auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  padding: 6px 13px;
}
body.viewer-open {
  overflow: hidden;
}
@media (max-width: 1050px) {
  .home-feature {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 23px;
  }
  .home-copy h1 {
    font-size: 27px;
  }
  .page-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
  }
  .species-intro {
    grid-template-columns: minmax(0, 1fr) 185px;
    gap: 20px;
  }
  .species-hero.cutout img {
    height: 310px;
  }
  .species-summary h2 {
    font-size: 21px;
  }
  .species-summary > p {
    font-size: 15px;
  }
  .topic-tile h2 {
    font-size: 18px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dragon-shelf img {
    height: 195px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    padding: 15px 20px;
  }
  .main-nav {
    gap: 23px;
  }
  .home-feature {
    grid-template-columns: 1fr;
  }
  .home-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    padding: 0;
  }
  .home-copy h1 {
    grid-column: 1;
    font-size: 30px;
  }
  .home-copy > p {
    grid-column: 1;
  }
  .home-specs {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    align-self: end;
  }
  .page-layout {
    grid-template-columns: 1fr;
  }
  .topic-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px;
    gap: 4px 17px;
  }
  .topic-nav a,
  .topic-nav > span {
    padding: 5px 0;
    font-size: 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin: 0;
  }
  .topic-nav > span {
    background: none;
    border-bottom-color: var(--accent);
  }
  .dragon-directory {
    gap: 14px;
  }
  .topic-directory {
    gap: 18px;
  }
  .page-title {
    margin-bottom: 23px;
  }
  .topic-tile h2 {
    font-size: 16px;
    padding: 12px;
  }
  .site-main {
    padding: 28px 20px 45px;
  }
  .species-intro {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .species-hero.cutout img {
    height: 310px;
  }
  .practical-columns {
    gap: 25px;
  }
  .dragon-shelf {
    gap: 14px;
  }
  .dragon-shelf img {
    height: 165px;
  }
  .dragon-shelf h3 {
    font-size: 17px;
    padding: 12px;
  }
  .story-grid {
    gap: 22px;
  }
  .story-link h3 {
    font-size: 20px;
  }
  .story-link p {
    font-size: 13px;
  }
  .about-art img {
    min-height: 0;
  }
  .team-member {
    gap: 14px;
  }
}
@media (max-width: 500px) {
  body {
    font-size: 14px;
  }
  .header-inner {
    gap: 15px;
    padding: 13px 16px;
    min-height: 75px;
  }
  .brand-type span {
    font-size: 11px;
  }
  .brand-type strong {
    font-size: 17px;
  }
  .main-nav {
    gap: 15px;
  }
  .main-nav a {
    font-size: 12px;
    padding: 10px 0;
  }
  .site-main {
    padding: 25px 16px 40px;
  }
  h1 {
    font-size: 29px;
  }
  .home-copy {
    display: block;
    padding: 4px 0;
  }
  .home-copy h1 {
    font-size: 31px;
  }
  .home-copy h1 br {
    display: none;
  }
  .home-specs {
    margin-top: 20px;
  }
  .home-feature {
    gap: 22px;
  }
  .home-dragons,
  .home-stories {
    margin-top: 32px;
  }
  .dragon-shelf {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .dragon-shelf > a {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
  .dragon-shelf img {
    height: 145px;
    padding: 7px;
  }
  .dragon-shelf h3 {
    background: none;
    font-size: 19px;
    padding: 15px;
    display: block;
  }
  .dragon-shelf h3 span {
    display: none;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-picture {
    aspect-ratio: 2;
  }
  .story-link h3 {
    font-size: 22px;
  }
  .story-link p {
    font-size: 14px;
  }
  .dragon-directory {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .dragon-directory .topic-tile {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
  }
  .dragon-directory .topic-tile img {
    aspect-ratio: 4/3;
    height: 150px;
    min-width: 0;
  }
  .dragon-directory .topic-tile h2 {
    border: 0;
    font-size: 18px;
  }
  .topic-directory {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .topic-directory .topic-tile h2 {
    font-size: 20px;
    padding: 13px 16px;
  }
  .page-content .lead {
    font-size: 16px;
  }
  .species-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .species-hero.cutout img {
    height: 250px;
    padding: 12px;
  }
  .species-summary {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 125px;
    gap: 0 25px;
    align-items: start;
  }
  .species-summary h2 {
    font-size: 22px;
    grid-column: 1;
  }
  .species-summary > p {
    font-size: 14px;
    grid-column: 1;
  }
  .food-note {
    margin: 0;
    border: 0;
    border-left: 1px solid var(--line);
    padding: 3px 0 0 16px;
    grid-row: 1 / span 2;
    grid-column: 2;
  }
  .food-note h3 {
    font-size: 11px;
  }
  .food-note p {
    font-size: 13px;
  }
  .practical-columns {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .page-content h2 {
    font-size: 22px;
  }
  .page-content p {
    font-size: 14px;
  }
  .egg-detail {
    gap: 20px;
    grid-template-columns: 120px 1fr;
  }
  .egg-detail h2 {
    font-size: 20px;
  }
  .egg-detail img {
    max-height: 190px;
  }
  .food-table th,
  .food-table td {
    padding: 10px;
    font-size: 12px;
  }
  .growth-media figcaption,
  .egg-lineup figcaption {
    font-size: 11px;
  }
  .taming-food dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .taming-food dl > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
  }
  .taming-food dt {
    margin: 0;
  }
  .taming-food dd {
    font-size: 13px;
  }
  .about-intro {
    padding: 0 0 24px;
  }
  .about-intro h2 {
    font-size: 25px;
  }
  .about-intro p {
    font-size: 14px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-member {
    padding: 18px 0;
    gap: 20px;
  }
  .team-member img,
  .team-initial {
    width: 64px;
    height: 64px;
  }
  .team-member h3 {
    font-size: 20px;
  }
  .team-member p {
    font-size: 13px;
  }
  .contribute {
    display: block;
    padding: 23px;
  }
  .contribute > a {
    display: inline-block;
    margin-top: 20px;
  }
  .footer-inner,
  .footer-note {
    padding: 20px 16px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .footer-note {
    padding-top: 0;
    font-size: 9px;
    gap: 10px;
  }
  .footer-inner nav {
    gap: 20px;
  }
  .media figcaption {
    font-size: 10px;
  }
}
.species-hero.gronckle img {
  object-fit: contain;
}
@media (min-width: 761px) {
  .ability-section video {
    aspect-ratio: 21/9;
    object-fit: cover;
  }
}
.ability-section video:fullscreen {
  object-fit: contain;
  aspect-ratio: auto;
  max-height: none;
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dragon-shelf img {
    transition: none;
  }
}

/* Keep the slate design; restore the compact mark and give actions a fixed home. */
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  line-height: 1.13;
  flex-shrink: 0;
}
.brand-lockup:hover {
  text-decoration: none;
}
.brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.brand-lockup span {
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.025em;
}
.main-nav {
  gap: 25px;
  justify-content: flex-end;
  margin-left: 0;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-actions a,
.header-actions button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.3;
}
.header-actions .download-pending {
  color: #a1b1bb;
  background: #1b2b35;
  border: 1px solid #435763;
  cursor: not-allowed;
}
.apply-link {
  color: var(--text);
  border: 1px solid #526976;
  background: transparent;
}
.main-nav .discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 40px;
  padding: 9px 4px;
  border: 0;
}
.discord-link img {
  width: 22px;
  height: 22px;
  filter: invert(1);
  opacity: 0.85;
}
.discord-link:hover img {
  opacity: 1;
}
.download-link {
  color: #0d1821;
  background: #a8d2e8;
  border: 1px solid #a8d2e8;
}
.header-actions a:hover {
  text-decoration: none;
  filter: brightness(1.14);
}
.food-note > div + div {
  margin-top: 18px;
}
.food-note dt {
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 7px;
}
.food-note dd {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.project-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.project-title > p {
  font-size: 12px;
  color: var(--muted);
}
.project-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-summary h2 {
  font-size: 21px;
  margin-bottom: 8px;
}
.project-summary p {
  font-size: 14px;
  max-width: 480px;
}
.team-section {
  margin-top: 40px;
}
.team-group {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 35px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.team-group:first-child {
  padding-top: 0;
}
.team-group > h2 {
  font-size: 20px;
  padding-top: 10px;
}
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.team-member {
  padding: 0;
  border: 0;
  align-items: flex-start;
  gap: 15px;
}
.team-member img {
  width: 68px;
  height: 68px;
  border-radius: 5px;
}
.team-member h3 {
  font-size: 19px;
  padding-top: 4px;
}
.team-member p {
  font-size: 12px;
  line-height: 1.55;
  margin-top: 7px;
}
.village-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}
.village-story h2 {
  margin-bottom: 12px;
}
.village-story > div > p {
  margin-bottom: 22px;
}
.statue-feature {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.statue-feature .media {
  margin: 0;
}
.boss-intro .media {
  margin: 0;
}
.boss-intro .media-open {
  background: #090e15;
}
.boss-intro figcaption {
  padding-top: 10px;
}
.boss-copy {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 38px;
  margin: 32px 0;
}
.boss-copy h2 {
  font-size: 22px;
}
.boss-copy p + p {
  margin-top: 14px;
}
.gallery-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.gallery-title p {
  color: var(--muted);
  font-size: 14px;
}
.render-group {
  margin: 42px 0 60px;
}
.render-group > h2 {
  font-size: 24px;
  margin-bottom: 22px;
}
.render-grid {
  columns: 3;
  column-gap: 22px;
}
.render-card {
  break-inside: avoid;
  margin: 0 0 24px;
}
.render-card .media-open {
  display: block;
  width: 100%;
  background: #0b1118;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.render-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s;
}
.render-card .media-open:hover img {
  transform: scale(1.025);
}
.render-card figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.home-gallery {
  margin-top: 50px;
}
.home-encounter {
  margin-top: 44px;
}
.home-encounter > a {
  display: block;
  color: var(--text);
}
.home-encounter > a:hover {
  text-decoration: none;
}
.home-encounter img {
  display: block;
  width: 100%;
  height: auto;
}
.home-encounter h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.home-encounter h2 span {
  color: var(--blue);
}
.home-feature {
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 32px;
}
.home-copy {
  padding: 0;
  min-width: 0;
}
.home-copy h1 {
  font-size: 33px;
  line-height: 1.13;
  margin: 3px 0 24px;
}
.home-wordmark {
  width: 100%;
  height: auto;
  max-width: 334px;
}
.home-copy p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.home-copy p + p {
  margin-top: 20px;
}
@media (min-width: 901px) and (max-width: 1100px) {
  .home-feature {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 25px;
  }
  .home-copy p {
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .home-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-copy {
    display: block;
  }
  .home-introduction {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 30px;
  }
  .home-copy h1 {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .home-copy p {
    grid-column: 2;
  }
  .home-copy p + p {
    margin-top: 15px;
  }
}
@media (max-width: 600px) {
  .home-introduction {
    display: block;
    max-width: 500px;
  }
  .home-wordmark {
    max-width: 280px;
  }
  .home-copy h1 {
    margin-bottom: 22px;
  }
  .home-copy p {
    font-size: 15px;
  }
  .home-copy p + p {
    margin-top: 17px;
  }
}
.home-gallery > a {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  background: #18242e;
  color: var(--text);
}
.home-gallery > a:hover {
  text-decoration: none;
  background: #1c2b37;
}
.home-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.home-gallery a > div {
  padding: 32px;
}
.home-gallery h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.home-gallery h2 span {
  color: var(--blue);
  padding-left: 18px;
}
.home-gallery p {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 1050px) {
  .render-grid {
    columns: 2;
  }
  .main-nav {
    gap: 17px;
  }
  .home-gallery h2 {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .gallery-title {
    display: block;
  }
  .gallery-title p {
    margin-top: 12px;
  }
  .home-gallery > a {
    grid-template-columns: 1fr;
  }
  .home-gallery a > div {
    padding: 24px;
  }
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 500px) {
  .render-grid {
    columns: 1;
  }
  .render-group {
    margin: 32px 0 46px;
  }
  .main-nav {
    gap: 12px;
  }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .header-inner {
    gap: 20px;
  }
  .main-nav {
    gap: 20px;
  }
  .brand-lockup span {
    font-size: 13px;
  }
  .brand-lockup img {
    width: 42px;
    height: 42px;
  }
  .team-group {
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 25px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px 20px;
  }
  .main-nav {
    gap: 22px;
  }
  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .team-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .team-group > h2 {
    padding: 0;
  }
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-member {
    display: block;
  }
  .team-member img {
    margin-bottom: 10px;
  }
  .project-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .project-summary {
    gap: 25px;
  }
  .village-story,
  .statue-feature,
  .boss-copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 500px) {
  .header-inner {
    padding: 13px 16px;
    gap: 12px;
  }
  .brand-lockup {
    gap: 9px;
  }
  .brand-lockup img {
    width: 36px;
    height: 36px;
  }
  .brand-lockup span {
    font-size: 11px;
    letter-spacing: 0.01em;
  }
  .main-nav {
    gap: 17px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .header-actions a {
    min-height: 36px;
    font-size: 12px;
  }
  .header-actions a:only-child {
    grid-column: 1 / -1;
  }
  .food-note dt {
    font-size: 11px;
  }
  .food-note dd {
    font-size: 13px;
  }
  .food-note > div + div {
    margin-top: 14px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }
  .team-member h3 {
    font-size: 19px;
  }
  .team-member img {
    width: 68px;
    height: 68px;
  }
  .team-member p {
    font-size: 12px;
  }
  .project-summary {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-summary h2 {
    font-size: 20px;
  }
  .project-summary p {
    font-size: 14px;
  }
  .team-group {
    padding: 25px 0;
  }
  .team-section {
    margin-top: 30px;
  }
}
@media (max-width: 500px) {
  .main-nav {
    gap: 12px;
  }
  .brand-lockup span {
    font-size: 10px;
  }
  .brand-lockup {
    gap: 7px;
  }
}

/* Species pages: media, abilities, skins, then practical ownership details. */
.attack-entry {
  max-width: 720px;
}
.attack-entry h3 {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 21px;
  margin: 0 0 8px;
}
kbd {
  font:
    500 12px/1.3 "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  color: #d1e5f2;
  border: 1px solid #4b626f;
  background: #1a2933;
  border-radius: 3px;
  padding: 5px 8px;
  white-space: nowrap;
}
.attack-entry p {
  margin: 0;
}
.ability-list .attack-entry + .attack-entry {
  padding-top: 20px;
  border-top: 1px solid #273640;
}
.variant-grid .variant-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 9px;
}
.comparison-labels {
  display: grid;
  grid-template-columns: 22% 31% 47%;
  text-align: center;
  font-size: 13px;
  color: #c7d3dc;
  margin: 0 0 12px;
}
.egg-lineup .comparison-labels {
  grid-template-columns: repeat(3, 1fr);
}
.species-banner .media-open {
  background: #1b2933;
}
.species-banner.gronckle img {
  object-fit: contain;
}
.page-content .species-lead {
  max-width: 750px;
  margin: 22px 0 0;
  font-size: 18px;
}
.page-content > .species-section {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.ability-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.ability-row {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 26px;
}
.ability-row h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.control-key {
  display: inline-block;
  font-size: 12px;
  color: #abd0e5;
}
.page-content .control-note {
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0;
}
.abilities .media {
  margin-bottom: 0;
}
.abilities video {
  aspect-ratio: 16/9;
  object-fit: contain;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  margin-top: 22px;
}
.variant-grid.night-fury,
.variant-grid.gronckle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.variant-grid .media {
  margin: 0;
  min-width: 0;
}
.variant-grid .media-open {
  background: #1b2933;
  overflow: hidden;
}
.variant-grid .media-open:hover {
  background: #243644;
}
.variant-grid img {
  display: block;
  aspect-ratio: 10/7;
  object-fit: contain;
}
.variant-grid.night-fury img {
  aspect-ratio: 2;
  object-fit: cover;
}
.variant-grid figcaption {
  font-size: 13px;
  padding-top: 10px;
  color: #c7d3dc;
}
.species-foods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 22px 0 24px;
}
.species-foods dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.species-foods dd {
  font-size: 17px;
  color: var(--text);
}
.species-section p + p {
  margin-top: 15px;
}
.riding-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0;
  margin: 8px 0 12px;
}
.riding-controls dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.riding-controls dd {
  font-size: 15px;
  color: #abd0e5;
}
.species-section.egg-detail {
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
}
.species-section.egg-detail .media {
  padding-top: 12px;
}
@media (max-width: 1050px) {
  .ability-row {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 22px;
  }
  .variant-grid {
    gap: 20px 14px;
  }
}
@media (max-width: 600px) {
  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ability-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ability-row > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
  }
  .ability-row h3 {
    margin: 0;
  }
  .control-key {
    text-align: right;
  }
  .species-foods {
    gap: 16px;
  }
  .species-foods dd {
    font-size: 15px;
  }
  .riding-controls {
    gap: 15px;
  }
  .species-section.egg-detail {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
  }
  .page-content .species-lead {
    font-size: 16px;
  }
  .variant-grid figcaption {
    font-size: 12px;
  }
  .page-content > .species-section {
    margin-top: 32px;
    padding-top: 24px;
  }
}
@media (max-width: 420px) {
  .variant-grid.night-fury {
    grid-template-columns: 1fr;
  }
  .species-foods {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .species-foods > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }
  .species-foods dt {
    margin: 0;
  }
  .species-foods dd {
    font-size: 14px;
    text-align: right;
  }
  .riding-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .riding-controls > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  .riding-controls dt {
    margin: 0;
  }
  .species-section.egg-detail {
    grid-template-columns: 1fr;
  }
  .species-section.egg-detail .media {
    width: 160px;
    margin: 0 auto;
    padding: 0;
  }
  .variant-grid {
    gap: 20px 12px;
  }
}

/* Player reference: connected explanations, clear comparisons and native item art. */
.page-layout {
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 32px;
}
.topic-nav {
  border: 0;
  gap: 22px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.nav-group .nav-heading {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8196a6;
  padding: 0 12px 9px;
}
.nav-group > a,
.nav-group > span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  padding: 7px 12px;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.nav-group > span[aria-current] {
  border-color: var(--accent);
  background: #1a2732;
  color: var(--text);
}
.reference-prose {
  max-width: 760px;
}
.reference-prose h2:not(:first-child) {
  margin-top: 32px;
}
.reference-prose h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}
.reference-prose ul,
.reference-prose ol {
  padding-left: 22px;
  color: #c4ced6;
  margin: 16px 0;
  line-height: 1.85;
}
.reference-prose li + li {
  margin-top: 8px;
}
.legal-copy {
  max-width: 780px;
}
.legal-copy section {
  margin-top: 30px;
}
.legal-copy h2 {
  margin-bottom: 13px;
}
.legal-copy p {
  line-height: 1.85;
}
.legal-copy .legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-copy .updated {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.page-content code {
  font-size: 13px;
  color: #c9dfeb;
  overflow-wrap: anywhere;
}
.reference-directory {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.reference-directory > h2 {
  margin-bottom: 24px;
}
.reference-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}
.reference-links > a {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.reference-links > a:hover {
  text-decoration: none;
}
.reference-links h3 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 20px;
}
.reference-links h3 span {
  color: var(--accent);
}
.reference-links p {
  font-size: 14px;
  margin-top: 8px;
  color: var(--muted);
}
.passive-directory {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  margin-top: 26px;
}
.passive-directory:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.passive-portraits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}
.passive-portraits img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
}
.passive-directory h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.passive-directory h2 span {
  color: var(--accent);
}
@media (max-width: 600px) {
  .passive-portraits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .passive-directory h2 {
    font-size: 20px;
    padding: 13px 16px;
  }
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0 24px;
}
.reference-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.reference-table th {
  background: #192630;
  color: var(--text);
  font-weight: 600;
}
.reference-table th,
.reference-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.reference-table td {
  color: #c4ced6;
}
.reference-table th:first-child,
.reference-table td:first-child {
  padding-left: 14px;
}
.reference-table td:first-child {
  color: var(--text);
}
.reference-table p {
  font-size: 14px;
  line-height: 1.65;
}
.reference-table .item-icon {
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 12px;
}
.item-icon {
  image-rendering: pixelated;
  object-fit: contain;
  width: 48px;
  height: 48px;
}
.food-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}
.reference-table .food-item .item-icon {
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
}
.food-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.food-or {
  color: var(--muted);
  font-size: 12px;
}
.reference-note {
  padding: 16px 20px;
  border-left: 3px solid #6f9cb5;
  background: #192630;
  margin: 20px 0;
  max-width: 790px;
}
.recipe {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 24px 0;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 4px;
  width: max-content;
}
.recipe-grid > *,
.recipe-output {
  background: #253744;
  border: 1px solid #465a68;
  padding: 8px;
}
.recipe-grid img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  object-fit: contain;
}
.recipe-output img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  object-fit: contain;
}
.recipe-arrow {
  color: var(--accent);
  font-size: 28px;
}
.recipe-layout {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 24px 0;
}
.recipe-layout .recipe-grid {
  display: table;
  width: auto;
  border-spacing: 4px;
}
.recipe-layout .recipe-grid > * {
  padding: 0;
  border: 0;
  background: none;
}
.recipe-layout .recipe-grid td {
  padding: 8px;
  border: 1px solid #465a68;
  background: #253744;
}
.recipe-layout > p .item-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
}
.shield-designs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.shield-designs .item-icon {
  width: 64px;
  height: 64px;
}
.page-content .reference-section:first-child {
  margin-top: 0;
}
.page-content .passive-section:first-child {
  margin-top: 0;
}
.passive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.passive-card {
  min-width: 0;
}
.passive-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.passive-card .media-open {
  background: #22313b;
}
.passive-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
}
.passive-copy {
  margin-top: 16px;
}
.page-content .passive-copy p {
  font-size: 14px;
  line-height: 1.75;
}
.passive-copy p + p {
  margin-top: 12px;
}
.page-content .passive-section + .passive-section {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.mod-name {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  vertical-align: middle;
  max-width: 100%;
  line-height: 1.55;
}
.mod-icon {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}
.mod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin-top: 12px;
}
.mod-list > .mod-name {
  flex-basis: calc(50% - 12px);
}
.loader-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 22px 0;
}
.loader-options > .mod-name {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 15px;
  color: var(--text);
}
.loader-options .mod-icon {
  width: 44px;
  height: 44px;
}
.install-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 26px;
}
.install-path {
  border-top: 2px solid var(--line);
  padding-top: 20px;
  min-width: 0;
}
.install-path h3 {
  font-size: 23px;
  margin-bottom: 20px;
}
.install-group + .install-group {
  margin-top: 25px;
}
.install-group h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.install-group > .mod-name {
  font-size: 14px;
  min-height: 56px;
}
.install-mods {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.install-mods > .mod-name {
  font-size: 14px;
  min-height: 36px;
}
@media (max-width: 600px) {
  .install-paths {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .install-path h3 {
    font-size: 22px;
  }
  .install-group .mod-name {
    align-items: center;
  }
  .install-group > .mod-name {
    min-height: 36px;
  }
}
.compat-group {
  margin-top: 28px;
}
.compat-group h3 {
  font-size: 19px;
  margin-bottom: 18px;
}
.compatible-mods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.compatible-mods li {
  display: flex;
  align-items: center;
  min-width: 0;
}
.compatible-mods .mod-name {
  font-size: 14px;
  color: var(--text);
}
.compatible-mods .mod-icon {
  width: 42px;
  height: 42px;
}
@media (max-width: 1000px) {
  .compatible-mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .compatible-mods {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compatible-mods .mod-name {
    align-items: center;
  }
  .compatible-mods .mod-icon {
    width: 36px;
    height: 36px;
  }
}
.passive-item-row {
  margin-top: 17px;
}
.passive-item-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.passive-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.passive-item-list .food-item {
  font-size: 13px;
  gap: 8px;
}
.passive-item-list .item-icon {
  width: 28px;
  height: 28px;
}
.species-foods .item-icon {
  width: 28px;
  height: 28px;
}
.species-foods .food-item {
  gap: 8px;
  font-size: 15px;
}
.species-foods .food-options {
  gap: 7px;
}
.food-table .food-item .item-icon {
  width: 28px;
  height: 28px;
}
.heat-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.heat-items .food-item {
  font-size: 14px;
}
.heat-table td:last-child {
  white-space: nowrap;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .heat-items {
    gap: 12px 18px;
  }
  .heat-items .food-item {
    font-size: 12px;
  }
  .heat-table th:first-child {
    width: 75%;
  }
}
.item-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 25px;
  margin: 18px 0 20px;
}
.item-showcase .item-icon {
  width: 36px;
  height: 36px;
}
.item-showcase .food-item {
  font-size: 14px;
}
.item-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.item-heading .item-icon {
  width: 36px;
  height: 36px;
}
.boss-item-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.boss-item-note > .item-icon {
  flex: none;
  width: 42px;
  height: 42px;
}
.boss-item-note h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.boss-section > h2 {
  margin-bottom: 20px;
}
.boss-section h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.boss-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.page-content .boss-section + .media {
  margin-top: 28px;
}
.boss-section .practical-columns {
  margin-top: 0;
}
@media (max-width: 760px) {
  .boss-preparation {
    grid-template-columns: 1fr;
  }
  .species-foods .food-options {
    flex-direction: column;
    align-items: flex-start;
  }
  .species-foods .food-or {
    padding-left: 36px;
  }
}
@media (max-width: 600px) {
  .loader-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .passive-item-list .item-icon {
    width: 30px;
    height: 30px;
  }
}
.page-installation .reference-section:first-of-type .mod-list {
  display: grid;
  grid-template-columns: 1fr;
}
.page-installation .reference-section:nth-of-type(2) .mod-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
}
.page-installation .reference-table td {
  vertical-align: middle;
}
@media (max-width: 900px) {
  .passive-grid {
    gap: 18px;
  }
  .mod-list > .mod-name {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .passive-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .passive-card h3 {
    font-size: 22px;
  }
  .page-content .passive-copy p {
    font-size: 14px;
  }
  .mod-name {
    gap: 9px;
    align-items: flex-start;
  }
  .mod-icon {
    width: 28px;
    height: 28px;
  }
  .page-installation .reference-table {
    display: block;
  }
  .page-installation .reference-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .page-installation .reference-table tbody {
    display: block;
  }
  .page-installation .reference-table tr {
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
  }
  .page-installation .reference-table td {
    display: block;
    border: 0;
    padding: 8px 0 !important;
    font-size: 13px !important;
  }
  .page-installation .reference-table td:first-child {
    font-weight: 650;
    font-size: 14px !important;
  }
  .page-installation
    .reference-section:nth-of-type(2)
    td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .page-installation .mod-list > .mod-name {
    flex-basis: 100%;
  }
}
.reference-section .reference-prose p > .item-icon {
  float: left;
  margin: 0 16px 10px 0;
}
.shield-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 14px;
  max-width: 800px;
  margin: 22px 0;
}
.shield-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}
.control-group {
  margin: 26px 0;
}
.control-group h3 {
  margin-bottom: 10px;
}
@media (max-width: 1050px) {
  .page-layout {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 25px;
  }
}
@media (max-width: 760px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .topic-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }
  .nav-group {
    border: 0;
  }
  .nav-group .nav-heading {
    padding-left: 0;
    font-size: 9px;
  }
  .nav-group > a,
  .nav-group > span {
    font-size: 11px;
    padding: 5px 4px 5px 0;
    margin: 0;
    border: 0;
    line-height: 1.5;
  }
  .nav-group > span[aria-current] {
    background: none;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .reference-table th,
  .reference-table td {
    padding: 12px;
    font-size: 13px;
  }
}
@media (max-width: 500px) {
  .reference-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reference-table {
    min-width: 440px;
  }
  .table-scroll {
    margin: 16px 0 22px;
  }
  .reference-table p {
    font-size: 13px;
  }
  .recipe {
    gap: 18px;
  }
  .recipe-grid {
    grid-template-columns: repeat(3, 46px);
  }
  .recipe-grid > * {
    padding: 6px;
  }
  .recipe-grid img {
    width: 32px;
    height: 32px;
  }
  .recipe-output img {
    width: 48px;
    height: 48px;
  }
  .nav-group > a,
  .nav-group > span {
    font-size: 10px;
  }
  .reference-note {
    padding: 13px 15px;
  }
}
@media (max-width: 500px) {
  .recipe-layout {
    gap: 18px;
  }
  .recipe-layout .recipe-grid td {
    padding: 5px;
  }
  .recipe-layout > p {
    font-size: 12px;
  }
  .recipe-layout > p .item-icon {
    width: 48px;
    height: 48px;
  }
  .shield-designs {
    gap: 18px;
  }
  .shield-designs .item-icon {
    width: 52px;
    height: 52px;
  }
}
@media (max-width: 600px) {
  .nav-group > a,
  .nav-group > span {
    font-size: 11px;
  }
  .page-controls .reference-table {
    display: block;
    min-width: 0;
  }
  .page-controls .reference-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .page-controls .reference-table tbody {
    display: block;
  }
  .page-controls .reference-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .page-controls .reference-table td {
    padding: 0;
    border: 0;
  }
  .page-controls .reference-table td:first-child {
    padding: 0;
    font-weight: 650;
    color: var(--text);
  }
  .page-controls .reference-table td:nth-child(2) {
    text-align: right;
    color: #cde2ee;
  }
  .page-controls .reference-table td:last-child {
    grid-column: 1 / -1;
  }
  .page-controls .reference-section:nth-of-type(3) .reference-table td {
    grid-column: 1 / -1;
    text-align: left;
  }
  .page-installation .reference-table {
    min-width: 0;
  }
  .page-installation .reference-table th,
  .page-installation .reference-table td {
    padding: 12px 9px;
    font-size: 12px;
  }
  .page-equipment .reference-table {
    min-width: 0;
    font-size: 12px;
  }
  .page-equipment .reference-table th,
  .page-equipment .reference-table td {
    padding: 12px 6px;
    font-size: 11px;
    overflow-wrap: normal;
  }
  .page-equipment .reference-table td:first-child {
    width: 46%;
    padding-left: 0;
  }
  .page-equipment .reference-table .item-icon {
    display: block;
    margin: 0 0 6px;
    width: 30px;
    height: 30px;
  }
  .page-care .reference-table,
  .page-taming .reference-table {
    min-width: 0;
  }
  .page-care .reference-section:nth-of-type(3) .reference-table {
    display: block;
  }
  .page-care .reference-section:nth-of-type(3) .reference-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .page-care .reference-section:nth-of-type(3) .reference-table tbody {
    display: block;
  }
  .page-care .reference-section:nth-of-type(3) .reference-table tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .page-care .reference-section:nth-of-type(3) .reference-table td {
    display: block;
    border: 0;
    padding: 6px 0;
  }
  .page-care .reference-section:nth-of-type(3) .reference-table td:first-child {
    font-weight: 650;
    font-size: 15px;
    margin-bottom: 5px;
  }
  .page-care
    .reference-section:nth-of-type(3)
    .reference-table
    td:not(:first-child) {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .page-care
    .reference-section:nth-of-type(3)
    .reference-table
    td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
  }
  .page-care .reference-section:nth-of-type(3) .reference-table .item-icon {
    display: block;
    width: 26px;
    height: 26px;
  }
  .page-care .food-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .page-care .food-or {
    padding-left: 36px;
  }
}

/* A Minecraft-style menu shared by the individual mod pages. */
.mod-page .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.mod-page .page-layout {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100svh - 86px);
}
.mod-rail {
  min-width: 0;
  align-self: stretch;
  background: #1c2329;
  border-right: 2px solid #3b4853;
}
.mod-page .page-content {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 36px clamp(28px, 3.4vw, 56px) 64px;
}
.mod-sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  max-height: 100svh;
  overflow-y: auto;
  padding: 24px 14px 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
  scrollbar-color: #65727c #141b21;
  scrollbar-width: thin;
}
.mod-sidebar > summary {
  display: none;
}
.mod-sidebar .topic-nav {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0;
  border: 0;
}
.mod-sidebar .sidebar-title {
  padding: 8px 9px 14px;
  margin-bottom: -12px;
  border-bottom: 2px solid #10171d;
  color: #edf2f5;
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 1px 2px #080c10;
}
.mod-sidebar .nav-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
}
.mod-sidebar .nav-group .nav-heading {
  margin: 0;
  padding: 0 8px 4px;
  color: #aebcc6;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.mod-sidebar .nav-group > a,
.mod-sidebar .nav-group > span {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  border: 2px solid #0b1015;
  border-radius: 0;
  background: #3c4852;
  box-shadow:
    inset 2px 2px #71808b,
    inset -2px -3px #232e37;
  color: #f2f5f7;
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  text-shadow: 1px 2px #172029;
  overflow-wrap: normal;
}
.mod-sidebar .nav-group > a:hover {
  background: #516573;
  box-shadow:
    inset 2px 2px #9eafb9,
    inset -2px -3px #303f4a;
  color: #fff;
}
.mod-sidebar .nav-group > a:active {
  padding-top: 13px;
  padding-bottom: 9px;
  background: #303d47;
  box-shadow:
    inset 2px 3px #172029,
    inset -2px -2px #6a7b87;
}
.mod-sidebar .nav-group > a:focus-visible {
  outline: 2px solid #e8f6ff;
  outline-offset: 1px;
  z-index: 1;
  background: #516573;
}
.mod-sidebar .nav-group > span[aria-current="page"] {
  padding-left: 20px;
  background: #365c42;
  border-color: #0c1710;
  box-shadow:
    inset 2px 3px #203b2a,
    inset -2px -2px #719a76;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 2px #172d1d;
}
.mod-sidebar .nav-group > span[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: #b6e2a4;
}
.page-content > .page-title {
  margin: 2px 0 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
/* Larger desktop controls, scaling down before the compact layout. */
@media (min-width: 1101px) {
  .mod-page .page-layout {
    grid-template-columns: clamp(264px, 27.5vw, 396px) minmax(0, 1fr);
  }
  .mod-sidebar {
    padding: 30px 20px 36px;
  }
  .mod-sidebar .topic-nav {
    gap: 28px;
  }
  .mod-sidebar .sidebar-title {
    font-size: clamp(23px, 1.98vw, 28.5px);
    padding-bottom: 18px;
  }
  .mod-sidebar .nav-group {
    gap: 7px;
  }
  .mod-sidebar .nav-group .nav-heading {
    font-size: clamp(13px, 1.15vw, 16.5px);
    padding-bottom: 6px;
  }
  .mod-sidebar .nav-group > a,
  .mod-sidebar .nav-group > span {
    min-height: clamp(53px, 4.792vw, 69px);
    padding: 16px 21px;
    font-size: clamp(16px, 1.459vw, 21px);
  }
  .mod-sidebar .nav-group > a:active {
    padding-top: 18px;
    padding-bottom: 14px;
  }
  .mod-sidebar .nav-group > span[aria-current="page"] {
    padding-left: 30px;
  }
  .mod-sidebar .nav-group > span[aria-current="page"]::before {
    left: 12px;
    top: 18px;
    bottom: 18px;
    width: 6px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .mod-page .page-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .mod-sidebar .nav-group > a,
  .mod-sidebar .nav-group > span {
    font-size: 13px;
  }
}
@media (max-width: 900px) {
  .mod-page .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: calc(100svh - 130px);
  }
  .mod-rail {
    border-right: 0;
    border-bottom: 2px solid #3b4853;
  }
  .mod-page .page-content {
    padding: 26px 20px 45px;
  }
  .mod-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px 20px;
  }
  .mod-sidebar > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    padding: 10px 14px;
    list-style: none;
    border: 2px solid #0b1015;
    background: #3c4852;
    box-shadow:
      inset 2px 2px #71808b,
      inset -2px -3px #232e37;
    color: #f2f5f7;
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 1px 2px #172029;
    cursor: pointer;
  }
  .mod-sidebar > summary::-webkit-details-marker {
    display: none;
  }
  .mod-sidebar > summary::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
  }
  .mod-sidebar[open] > summary::after {
    content: "−";
  }
  .mod-sidebar > summary:focus-visible {
    outline: 2px solid #e8f6ff;
    outline-offset: 2px;
  }
  .mod-sidebar .topic-nav {
    padding: 18px 0 2px;
    gap: 20px;
  }
  .mod-sidebar .sidebar-title {
    display: none;
  }
  .mod-sidebar .nav-group > a,
  .mod-sidebar .nav-group > span {
    min-height: 46px;
    font-size: 14px;
  }
  .page-content > .page-title {
    margin-top: 0;
    padding-bottom: 18px;
  }
}

@media (max-width: 500px) {
  .mod-page .page-content {
    padding: 25px 16px 40px;
  }
  .mod-sidebar {
    padding: 12px 16px;
  }
}

/* Keep header alignment stable on short and long pages, including dialogs. */
html {
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
/* BDA artwork supplies the UI silhouettes. No painted boxes behind the skins. */
:root {
  --bg: #222120;
  --panel: #2b2d2b;
  --line: #444542;
  --text: #eeece7;
  --muted: #b6b7b3;
  --accent: #eea091;
  --bda-red: #b8432d;
  --stone-skin: url("assets/ui/bda-stone.svg");
  --wood-skin: url("assets/ui/bda-timber.svg");
}
.mod-page {
  --bg: #343735;
  --panel: #404641;
  --line: #505850;
  --muted: #bec4bc;
  --mod-rail: #202827;
}
body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
p,
.page-content p,
.reference-prose ul,
.reference-prose ol {
  color: #d2d1cc;
}
h1,
h2,
h3 {
  font-family: "Bahnschrift", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: 0;
  color: #f2f0e9;
}
h1 {
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.12;
  font-weight: 800;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 22px;
}
a {
  color: var(--accent);
}
a:hover {
  color: #ffbaab;
}
a:focus-visible,
button:focus-visible {
  outline-color: #f2f0e9;
}
::selection {
  background: #9d3e2e;
  color: white;
}

/* Native artwork, three-sliced so its end caps retain their original shape. */
.header-actions .apply-link,
.mod-sidebar .nav-group > a,
.mod-sidebar .nav-group > span,
.mod-sidebar > summary {
  position: relative;
  isolation: isolate;
  --skin: var(--stone-skin);
  --skin-slice: 4 8;
  --skin-width: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.header-actions .apply-link::before,
.mod-sidebar .nav-group > a::before,
.mod-sidebar .nav-group > span::before,
.mod-sidebar > summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border: solid transparent;
  border-width: var(--skin-width);
  border-image: var(--skin) var(--skin-slice) fill;
  image-rendering: pixelated;
}
.mod-sidebar > summary {
  --skin: var(--wood-skin);
}
.header-actions .apply-link:hover,
.mod-sidebar .nav-group > a:hover {
  background: transparent;
  box-shadow: none;
  filter: brightness(1.18);
  color: #fff;
}
.header-actions .apply-link:active,
.mod-sidebar .nav-group > a:active {
  background: transparent;
  box-shadow: none;
  filter: brightness(0.9);
}
.header-actions .apply-link:focus-visible,
.mod-sidebar .nav-group > a:focus-visible,
.mod-sidebar > summary:focus-visible {
  outline: 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  filter: brightness(1.25);
}

/* Timber header and a dark, structural mod rail. */
.site-header {
  position: relative;
  isolation: isolate;
  background: #181817;
  border: 0;
  box-shadow: none;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.46;
  border: solid transparent;
  border-width: 16px 32px;
  border-image: var(--wood-skin) 4 8 fill;
}
.header-inner {
  max-width: none;
  min-height: 92px;
  padding: 18px 44px;
}
.brand-lockup {
  gap: 13px;
}
.brand-lockup img {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand-lockup span {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.015em;
  text-shadow: 2px 2px #111;
}
.main-nav {
  gap: 30px;
}
.main-nav a {
  color: #e9e6e0;
  font-size: 16px;
  font-weight: 650;
  padding: 12px 2px;
}
.main-nav a[aria-current="page"] {
  color: #fff;
  border-color: #c85740;
}
.main-nav a:hover {
  color: #fff;
}
.main-nav .discord-link {
  padding: 9px 4px;
}
.header-actions .apply-link {
  min-height: 44px;
  padding: 10px 19px;
  color: #f5f0e8;
  font-size: 13px;
  text-shadow: 1px 2px #191a17;
}
.header-actions .curseforge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.header-actions .curseforge-link::before {
  content: none;
}
.curseforge-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.discord-link img {
  filter: none;
  opacity: 1;
}
.curseforge-link:hover img,
.discord-link:hover img {
  filter: brightness(1.18);
}
.header-actions .curseforge-link:focus-visible {
  outline: 2px solid #f2f0e9;
  outline-offset: 2px;
}
.site-footer {
  background: #161717;
  border-top: 1px solid #3b3d39;
}
.footer-inner,
.footer-note {
  max-width: 1600px;
}
.footer-inner {
  padding-top: 28px;
  padding-bottom: 24px;
  font-size: 13px;
}
.footer-inner > span {
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-size: 17px;
  color: #e5e3dd;
}
.footer-inner a,
.footer-note {
  color: #b4b6b0;
}

.mod-rail {
  background: var(--mod-rail);
  border-right: 1px solid #4b5550;
  box-shadow: none;
}
.mod-sidebar {
  scrollbar-color: #68746f var(--mod-rail);
}
.mod-sidebar .sidebar-title {
  padding: 8px 8px 14px;
  margin: 0;
  border: 0;
  background: none;
  color: #f3f1ec;
  text-shadow: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.mod-sidebar .nav-group .nav-heading {
  padding-left: 10px;
  color: #b4b6ad;
  font-weight: 650;
  letter-spacing: 0.055em;
}
.mod-sidebar .nav-group > a,
.mod-sidebar .nav-group > span {
  color: #eeefe9;
  text-shadow: 1px 2px #20241f;
  font-weight: 650;
}
.mod-sidebar .nav-group > span[aria-current="page"] {
  --skin: var(--stone-skin);
  --skin-slice: 4 8;
  --skin-width: 8px 16px;
  padding-left: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #f5f5ee;
  text-shadow: 1px 2px #111;
}
.mod-sidebar .nav-group > span[aria-current="page"]::before {
  content: "";
  inset: 0;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  filter: brightness(0.58);
  border: solid transparent;
  border-width: var(--skin-width);
  border-image: var(--skin) var(--skin-slice) fill;
}
.mod-sidebar > summary {
  color: #f1eee7;
  text-shadow: 1px 2px #211b15;
}
.mod-page .page-content {
  padding-top: 44px;
  padding-bottom: 80px;
}
.page-title,
.page-content > .page-title {
  margin-bottom: 34px;
  padding-bottom: 0;
  border: 0;
}
.page-title::after {
  content: none;
}
.page-title h1 {
  text-transform: uppercase;
  letter-spacing: 0.012em;
}
.page-installation .page-title h1 {
  font-size: clamp(30px, 2.6vw, 44px);
}
.page-content p {
  font-size: 17px;
  line-height: 1.85;
  max-width: 850px;
}
.page-content .lead {
  font-size: 20px;
  line-height: 1.7;
}
.page-content h2 {
  font-size: 28px;
  margin-bottom: 18px;
}
.page-content h3 {
  font-size: 22px;
}
.reference-prose {
  max-width: 850px;
}
.page-content > .species-section,
.boss-section {
  border-top: 1px solid #444743;
  padding-top: 30px;
  margin-top: 42px;
}
.page-content code {
  color: #e7c1b6;
}
.page-content .control-note {
  font-size: 14px;
  color: #b6bab2;
}

/* Open reading layout; hierarchy comes from type and spacing, not card frames. */
.install-paths {
  gap: 40px;
  margin-top: 30px;
}
.install-path {
  padding: 0 0 12px;
  border: 0;
  background: none;
  box-shadow: none;
}
.install-path h3 {
  display: block;
  padding: 0 0 16px;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 3px solid var(--bda-red);
  font-size: 30px;
  color: #f0eeea;
}
.install-group h4 {
  font-size: 12px;
  font-weight: 700;
  color: #b8bcb4;
  letter-spacing: 0.04em;
}
.install-group + .install-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #454943;
}
.install-group > .mod-name,
.install-mods > .mod-name {
  font-size: 16px;
}
.mod-icon {
  border-radius: 0;
}
.install-group > .mod-name {
  min-height: 42px;
}
.install-mods {
  gap: 19px;
}
.compat-group {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #444743;
}
.compat-group h3 {
  color: #e5e7e0;
}
.compatible-mods {
  gap: 10px 20px;
}
.compatible-mods li {
  padding: 11px 0;
}
.compatible-mods .mod-name {
  font-size: 15px;
  color: #dfe3d9;
}
.compatible-mods a:hover {
  color: #ffb7a6;
}
.reference-table,
.food-table {
  font-size: 16px;
  line-height: 1.65;
}
.reference-table th,
.food-table th {
  background: var(--panel);
  color: #efefe9;
  font-weight: 700;
  border-bottom: 1px solid #626960;
}
.reference-table td,
.food-table td {
  color: #dce0d7;
}
.reference-table tbody tr:nth-child(even),
.food-table tbody tr:nth-child(even) {
  background: #2d312e;
}
.reference-table th,
.reference-table td {
  padding: 16px 18px;
}
.reference-table p {
  font-size: 16px;
  color: inherit;
}
.reference-note {
  background: transparent;
  border-color: #af5341;
  padding-left: 20px;
  color: #e0e1d9;
}
kbd {
  color: #f2efe8;
  background: #343934;
  border: 1px solid #686e65;
  border-radius: 2px;
  border-bottom: 3px solid #75796e;
  padding: 5px 9px;
  box-shadow: none;
  font-size: 13px;
}
.ability-list {
  gap: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.attack-entry {
  max-width: 850px;
  padding: 0 0 23px;
}
.attack-entry h3 {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ability-list .attack-entry + .attack-entry {
  padding-top: 23px;
  border-top: 1px solid #434a42;
}
.species-foods {
  gap: 0;
  border: 0;
  background: none;
  padding: 0;
  margin: 24px 0 28px;
}
.species-foods > div {
  padding: 0 24px;
}
.species-foods > div:first-child {
  padding-left: 0;
}
.species-foods > div + div {
  border-left: 1px solid #4c5449;
}
.species-foods dt {
  font-size: 13px;
  color: #b6bcb0;
  margin-bottom: 11px;
}
.species-foods .food-item {
  font-size: 16px;
  color: #e9ece1;
}
.species-foods .item-icon {
  width: 34px;
  height: 34px;
}
.recipe-grid > *,
.recipe-output,
.recipe-layout .recipe-grid td {
  background: #363e35;
  border-color: #71796a;
  box-shadow:
    inset 2px 2px #20291e,
    inset -1px -1px #868c7f;
}
.recipe-arrow,
.riding-controls dd {
  color: #e7b4a4;
}
.passive-item-label {
  color: #b5bcb0;
  font-size: 12px;
}
.comparison-labels {
  color: #dae0d1;
  font-weight: 600;
}
.variant-grid .variant-name {
  font-size: 17px;
  color: #e9ede2;
  font-weight: 650;
  margin-bottom: 12px;
}
.variant-grid .media-open,
.variant-grid .media-open:hover,
.species-banner .media-open,
.passive-card .media-open {
  background: transparent;
  outline: 0;
}
.passive-card {
  padding-bottom: 25px;
  border-bottom: 1px solid #464e43;
}
.passive-card h3 {
  font-size: 24px;
}
.page-content .passive-copy p {
  font-size: 16px;
}
.passive-item-list .food-item {
  font-size: 14px;
}
.media-open,
.media video {
  outline: 0;
  box-shadow: none;
}
.media-open,
.species-hero.cutout .media-open {
  background: transparent;
}
.media-open:focus-visible {
  outline: 2px solid #f2f0e9;
  outline-offset: 4px;
}
.media {
  margin-bottom: 28px;
}
#image-viewer {
  background: #1c201c;
  border-color: #757c6e;
}
#image-viewer::backdrop {
  background: #080c09ee;
}
.viewer-close {
  color: #e6ebdf;
  background: #30392e;
  border-color: #737c68;
}

/* The dragons stand on the page; only their native timber labels are framed. */
.site-main:not(.mod-page .site-main) {
  max-width: 1480px;
  padding-top: 45px;
}
.home-feature {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: center;
}
.trailer-frame {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.trailer-caption {
  background: transparent;
  border: 0;
  font-size: 13px;
  color: #c4c7be;
  padding: 12px 0;
}
.trailer-caption span {
  color: #a6afa0;
}
.home-copy {
  padding: 0;
}
.home-wordmark {
  max-width: 350px;
  filter: none;
}
.home-copy h1 {
  margin: 0 0 29px;
}
.home-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: #d4d5ca;
}
.home-dragons,
.home-stories {
  margin-top: 60px;
}
.home-dragons > h2,
.home-stories > h2 {
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 26px;
  color: #f2f0e9;
}
.home-dragons > h2::after,
.home-stories > h2::after {
  content: none;
}
.dragon-shelf {
  gap: 32px;
}
.dragon-shelf > a,
.dragon-shelf > a:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.dragon-shelf img {
  height: 320px;
  padding: 0;
}
.dragon-shelf h3 {
  width: 90%;
  max-width: 340px;
  margin: 0 auto;
  min-height: 65px;
  align-items: center;
  padding: 16px 24px;
  font-size: 24px;
  color: #f2ede4;
  text-shadow: 1px 2px #241912;
}
.dragon-shelf h3 span,
.story-link h3 span {
  color: #e6e8dd;
}
.story-picture {
  border: 0;
  box-shadow: none;
  aspect-ratio: 2;
}
.story-link > div:last-child {
  padding: 22px 0 0;
}
.story-link h3 {
  font-size: 27px;
  color: #eeeae2;
}
.story-link p {
  font-size: 16px;
  color: #bbc3b3;
}
.story-link:hover h3 {
  color: #f2b19f;
}
.home-encounter {
  margin-top: 50px;
}
.home-encounter > a {
  position: relative;
  border: 0;
  box-shadow: none;
}
.home-encounter h2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border: 0;
  padding: 44px 28px 24px;
  color: #f7ede4;
  background: linear-gradient(transparent, #1b1d1bed);
  text-shadow: 2px 3px #171614;
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
}
.home-encounter h2 span {
  color: #e9e6dc;
}

/* Team portraits are not enclosed in invented frames. */
.project-title {
  align-items: center;
}
.project-title > p {
  font-size: 14px;
  color: #b5bcb0;
}
.team-group {
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px 0;
  border-color: #4a5144;
}
.team-group > h2 {
  font-size: 28px;
  padding: 0;
  color: #e9ece1;
}
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
.team-member {
  padding: 16px 0;
  align-items: center;
  border-bottom: 1px solid #3f483b;
  gap: 18px;
}
.team-member img {
  width: 82px;
  height: 82px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.team-member h3 {
  font-size: 23px;
  padding: 0;
  color: #e9ede3;
}
.team-member p {
  font-size: 14px;
  color: #b6beb0;
}
.team-group:first-child .team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}
.legal-copy h2 {
  color: #e5e9dd;
}
.short-page p {
  font-size: 18px;
}

@media (min-width: 1101px) {
  .mod-sidebar .nav-group > a,
  .mod-sidebar .nav-group > span {
    --skin-width: 12px 24px;
  }
  .mod-sidebar .nav-group > span[aria-current="page"] {
    --skin-width: 12px 24px;
    padding-left: 21px;
  }
}
@media (min-width: 1600px) {
  .home-feature {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 48px;
  }
  .home-wordmark {
    max-width: 370px;
  }
}
@media (max-width: 1200px) {
  .header-inner {
    gap: 20px;
  }
  .main-nav {
    gap: 21px;
  }
  .header-actions .apply-link {
    padding-left: 13px;
    padding-right: 13px;
  }
  .home-feature {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }
  .home-copy p {
    font-size: 16px;
  }
  .dragon-shelf img {
    height: 250px;
  }
  .dragon-shelf h3 {
    width: 100%;
    font-size: 22px;
  }
  .compatible-mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .install-group > .mod-name,
  .install-mods > .mod-name {
    font-size: 15px;
  }
}
@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-lockup span {
    font-size: 13px;
  }
}
@media (max-width: 900px) {
  .home-feature {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-introduction {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 0 28px;
  }
  .home-copy h1 {
    margin: 0;
  }
  .mod-rail {
    border-right: 0;
    border-bottom: 1px solid #42493d;
    box-shadow: none;
  }
  .mod-page .page-content {
    padding-top: 30px;
    padding-bottom: 50px;
  }
  .mod-sidebar .sidebar-title {
    display: none;
  }
  .dragon-shelf {
    gap: 20px;
  }
  .dragon-shelf img {
    height: 200px;
  }
  .dragon-shelf h3 {
    font-size: 20px;
    padding: 14px;
    min-height: 56px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    padding: 15px 24px;
    gap: 12px 18px;
  }
  .brand-lockup img {
    width: 42px;
    height: 42px;
  }
  .brand-lockup span {
    font-size: 12px;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 14px;
  }
  .header-actions {
    display: flex;
    border-color: #40423c;
  }
  .header-actions .apply-link {
    font-size: 13px;
  }
  .page-content p {
    font-size: 16px;
  }
  .page-content h2 {
    font-size: 25px;
  }
  .page-content h3 {
    font-size: 21px;
  }
  .page-content .lead {
    font-size: 18px;
  }
  .page-title,
  .page-content > .page-title {
    padding-bottom: 0;
    margin-bottom: 28px;
  }
  .species-foods > div {
    padding: 0 16px;
  }
  .species-foods .food-item {
    font-size: 15px;
  }
  .reference-table,
  .food-table {
    font-size: 14px;
  }
  .reference-table th,
  .reference-table td {
    padding: 13px 12px;
  }
  .team-member h3 {
    font-size: 21px;
  }
  .team-member p {
    font-size: 13px;
  }
  .team-member img {
    width: 70px;
    height: 70px;
  }
  .team-grid {
    gap: 16px 24px;
  }
  .team-member {
    display: flex;
  }
  .home-encounter h2 {
    font-size: 29px;
    padding: 36px 20px 20px;
  }
}
@media (max-width: 600px) {
  .home-introduction {
    display: block;
  }
  .home-copy h1 {
    margin-bottom: 22px;
  }
  .home-wordmark {
    max-width: 300px;
  }
  .home-copy p {
    font-size: 16px;
  }
  .home-copy p + p {
    margin-top: 17px;
  }
  .install-paths {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-dragons > h2,
  .home-stories > h2 {
    font-size: 28px;
  }
  .home-dragons,
  .home-stories {
    margin-top: 40px;
  }
  .attack-entry h3 {
    font-size: 21px;
  }
  .page-content .control-note {
    font-size: 13px;
  }
  .reference-table p {
    font-size: 14px;
  }
  .reference-table td:nth-child(2) {
    color: inherit;
  }
  .page-controls .reference-table tr {
    padding: 18px 12px;
  }
  .page-controls .reference-table td {
    padding: 0;
  }
  .species-foods {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .species-foods > div,
  .species-foods > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
  }
  .species-foods > div + div {
    border-left: 0;
    border-top: 1px solid #485141;
  }
  .species-foods dt {
    margin: 0;
  }
  .species-foods dd {
    text-align: right;
  }
  .species-foods .food-options {
    align-items: flex-end;
  }
  .species-foods .food-item {
    font-size: 15px;
  }
  .project-title {
    align-items: flex-start;
  }
  .team-group:first-child .team-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-member img {
    width: 76px;
    height: 76px;
  }
  .team-member h3 {
    font-size: 23px;
  }
  .team-member p {
    font-size: 14px;
  }
  .team-member {
    padding: 16px 0;
  }
  .team-group {
    gap: 18px;
  }
  .page-content .passive-copy p {
    font-size: 16px;
  }
}
@media (max-width: 500px) {
  .header-inner {
    padding: 13px 16px 13px 24px;
    gap: 12px;
  }
  .brand-lockup {
    gap: 8px;
  }
  .brand-lockup img {
    width: 35px;
    height: 35px;
  }
  .brand-lockup span {
    font-size: 10px;
  }
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .header-actions .apply-link {
    min-height: 42px;
    padding: 9px;
    font-size: 12px;
    flex: 1;
  }
  .header-actions .curseforge-link {
    min-height: 44px;
    padding: 7px;
  }
  .site-main:not(.mod-page .site-main) {
    padding-top: 28px;
  }
  .dragon-shelf {
    gap: 34px;
  }
  .dragon-shelf > a {
    display: block;
  }
  .dragon-shelf img {
    height: 230px;
    padding: 0;
  }
  .dragon-shelf h3 {
    display: flex;
    font-size: 23px;
    padding: 16px 20px;
    max-width: 310px;
  }
  .dragon-shelf h3 span {
    display: block;
  }
  .story-link h3 {
    font-size: 24px;
  }
  .story-link p {
    font-size: 15px;
  }
  .compatible-mods {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .compatible-mods li {
    padding: 10px 0;
  }
  .home-encounter h2 {
    font-size: 26px;
    padding: 30px 16px 16px;
  }
  .home-encounter {
    margin-top: 35px;
  }
  .footer-inner {
    display: block;
  }
  .footer-inner nav {
    margin-top: 16px;
  }
  .footer-note {
    font-size: 10px;
    line-height: 1.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dragon-shelf img {
    transition: none;
  }
}

/* Mobile skins keep the full sprite height; only the middle repeats sideways. */
@media (max-width: 900px) {
  .header-actions .apply-link::before,
  .mod-sidebar .nav-group > a::before,
  .mod-sidebar .nav-group > span[aria-current="page"]::before,
  .mod-sidebar > summary::before {
    border-image-slice: 0 8 fill;
    border-image-repeat: repeat stretch;
  }
  .mod-sidebar .nav-group > a::before,
  .mod-sidebar .nav-group > span[aria-current="page"]::before,
  .mod-sidebar > summary::before {
    border-width: 0 18.4px;
  }
  .header-actions .apply-link::before {
    border-width: 0 17.6px;
  }
}
@media (max-width: 760px) {
  .site-header::before {
    box-sizing: border-box;
    bottom: auto;
    height: 72px;
    border-width: 0 28.8px;
    border-image-slice: 0 8 fill;
    border-image-repeat: repeat stretch;
  }
  .header-actions {
    border-top: 0;
  }
}
@media (max-width: 500px) {
  .site-header::before {
    height: 66px;
    border-width: 0 26.4px;
  }
  .header-actions .apply-link::before {
    border-width: 0 16.8px;
  }
  .dragon-shelf h3 {
    height: 60px;
    min-height: 60px;
    padding: 12px 20px;
  }
}

/* Open dragon figures: keep the artwork and name together. */
.dragon-shelf {
  gap: 32px;
}
.dragon-shelf > a,
.dragon-shelf > a:hover {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}
.dragon-portrait {
  height: clamp(190px, 20vw, 270px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-crop {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.dragon-deadly-nadder .portrait-crop {
  width: 90%;
}
.dragon-gronckle .portrait-crop {
  width: 78%;
}
.dragon-shelf img {
  position: absolute;
  max-width: none;
  height: auto;
  padding: 0;
  transform: none;
  transition: none;
}
.dragon-shelf a:hover img {
  transform: none;
}
.dragon-night-fury .portrait-crop {
  aspect-ratio: 1388/574;
}
.dragon-shelf .dragon-night-fury img {
  width: 115.27378%;
  left: -7.4928%;
  top: -44.94774%;
}
.dragon-deadly-nadder .portrait-crop {
  aspect-ratio: 1309/730;
}
.dragon-shelf .dragon-deadly-nadder img {
  width: 122.23071%;
  left: -7.8686%;
  top: -25.34247%;
}
.dragon-gronckle .portrait-crop {
  aspect-ratio: 1118/849;
}
.dragon-shelf .dragon-gronckle img {
  width: 143.1127%;
  left: -21.55635%;
  top: -20.84806%;
}
.dragon-shelf h3 {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 10px 0 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 25px;
  text-align: center;
  text-shadow: none;
  color: #f2f0e9;
}
.dragon-shelf h3::before {
  content: none;
}
.dragon-shelf a:hover h3,
.dragon-shelf a:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
@media (max-width: 900px) {
  .dragon-shelf {
    gap: 22px;
  }
  .dragon-portrait {
    height: clamp(110px, 20vw, 180px);
  }
  .dragon-shelf h3 {
    font-size: 22px;
  }
}
@media (max-width: 640px) {
  .dragon-shelf {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 440px;
    margin: 0 auto;
  }
  .dragon-portrait {
    height: auto;
  }
  .dragon-shelf h3 {
    font-size: 24px;
    margin-top: 8px;
  }
}

/* Quiet stone grain and the mod's own item / dragon-book artwork. */
.mod-rail {
  position: relative;
  isolation: isolate;
}
.mod-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/ui/sidebar-stone.png") repeat;
  background-size: 64px 64px;
  image-rendering: pixelated;
  opacity: 0.045;
}
.mod-sidebar .nav-group > a,
.mod-sidebar .nav-group > span {
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.mod-sidebar .nav-group > a:active {
  padding-top: 12px;
  padding-bottom: 8px;
}
.topic-icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}
.topic-label {
  min-width: 0;
}
@media (max-width: 1100px) {
  .mod-sidebar .nav-group > a,
  .mod-sidebar .nav-group > span {
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .mod-sidebar .nav-group > a:active {
    padding-top: 9px;
    padding-bottom: 5px;
  }
}

@media (min-width: 1101px) and (max-width: 1240px) {
  .mod-sidebar .nav-group > a,
  .mod-sidebar .nav-group > span {
    font-size: 15px;
  }
}

/* Home is an introduction followed by one entrance to the mod guide. */
.page-index .site-main.home-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.home-main .home-feature {
  max-width: 1480px;
  margin: 0 auto;
  padding: 44px 24px 48px;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: center;
}
.home-main .home-copy,
.home-main .home-introduction {
  display: block;
  padding: 0;
}
.home-main .home-copy h1 {
  margin: 0 0 24px;
}
.home-main .home-wordmark {
  width: 100%;
  max-width: 350px;
}
.home-main .home-copy p {
  max-width: 350px;
  font-size: 18px;
  line-height: 1.75;
}
.home-guide {
  display: grid;
  grid-template-columns: clamp(300px, 27.5vw, 396px) minmax(0, 1fr);
  background: #343735;
  border-top: 1px solid #4b5550;
}
.home-guide-rail {
  position: relative;
  isolation: isolate;
  background: #202827;
  border-right: 1px solid #4b5550;
  padding: 32px 20px;
}
.home-guide-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/ui/sidebar-stone.png") repeat;
  background-size: 64px 64px;
  image-rendering: pixelated;
  opacity: 0.045;
}
.home-guide h2 {
  margin: 0 0 24px;
  padding: 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.home-guide-nav {
  display: grid;
  gap: 9px;
}
.home-guide-nav a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
  color: #eeefe9;
  text-shadow: 1px 2px #20241f;
}
.home-guide-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border: solid transparent;
  border-width: 0 25.6px;
  border-image: var(--stone-skin) 0 8 fill;
  border-image-repeat: repeat stretch;
  image-rendering: pixelated;
}
.home-guide-nav a:hover {
  color: #fff;
  text-decoration: none;
}
.home-guide-nav a:hover::before {
  filter: brightness(1.16);
}
.home-guide-nav a:active::before {
  filter: brightness(0.9);
}
.home-guide-nav a:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.home-guide-nav a:focus-visible::before {
  filter: brightness(1.2);
}
.home-guide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px clamp(24px, 3.4vw, 56px) 40px;
}
.home-guide .dragon-shelf {
  width: 100%;
  max-width: 1320px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-guide .dragon-portrait {
  height: auto;
  aspect-ratio: 8/5;
}
.home-guide .dragon-shelf h3 {
  margin-top: 12px;
  font-size: clamp(19px, 1.55vw, 25px);
  text-align: center;
}
@media (max-width: 1100px) {
  .home-main .home-feature {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 36px;
  }
  .home-main .home-wordmark {
    max-width: 280px;
  }
  .home-main .home-copy p {
    font-size: 16px;
  }
  .home-guide {
    grid-template-columns: 1fr;
  }
  .home-guide-rail {
    border-right: 0;
    border-bottom: 1px solid #4b5550;
    padding: 26px 24px;
  }
  .home-guide h2 {
    font-size: 26px;
    margin-bottom: 20px;
    padding: 0;
  }
  .home-guide-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-guide-nav a {
    height: 46px;
    padding: 0 14px;
    gap: 10px;
    font-size: 14px;
  }
  .home-guide-nav a::before {
    border-width: 0 18.4px;
  }
  .home-guide-content {
    padding: 28px 24px 36px;
  }
  .home-guide .dragon-shelf h3 {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  .home-main .home-feature {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 24px 36px;
  }
  .home-main .home-copy {
    grid-row: 1;
  }
  .home-main .home-introduction {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
  .home-main .home-copy h1 {
    margin: 0;
  }
  .home-main .home-copy p {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .home-main .home-feature {
    padding: 26px 20px 30px;
    gap: 24px;
  }
  .home-main .home-introduction {
    display: block;
  }
  .home-main .home-wordmark {
    max-width: 250px;
  }
  .home-main .home-copy h1 {
    margin-bottom: 18px;
  }
  .home-main .home-copy p {
    font-size: 16px;
    line-height: 1.7;
  }
  .home-guide-rail {
    padding: 25px 20px;
  }
  .home-guide-nav {
    grid-template-columns: 1fr;
  }
  .home-guide-content {
    padding: 25px 20px 32px;
  }
  .home-guide .dragon-shelf {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 460px;
    margin: 0 auto;
  }
  .home-guide .dragon-shelf > a {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 100px;
  }
  .home-guide .dragon-portrait {
    height: auto;
    aspect-ratio: auto;
  }
  .home-guide .dragon-deadly-nadder .portrait-crop {
    width: 100%;
  }
  .home-guide .dragon-gronckle .portrait-crop {
    width: 90%;
  }
  .home-guide .dragon-shelf h3 {
    margin: 0;
    text-align: left;
    font-size: 22px;
  }
}
