/* hymods.de: one stylesheet for every page. System fonts, no external requests. */

:root {
  --bg: #10131a;
  --bg-2: #141922;
  --panel: #1a202b;
  --panel-2: #212836;
  --line: #2a3240;
  --line-2: #364052;
  --text: #e8edf4;
  --muted: #a3aebd;
  --cyan: #57f0ff;
  --cyan-2: #2fd3e4;
  --gold: #d4af37;
  --crimson: #ff8494;
  --crimson-2: #e0485c;
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
  /* item qualities as in the game; text uses the lighter ones (readable on dark) */
  --q-common: #c9d2dd;
  --q-uncommon: #5cc46a;
  --q-rare: #5fa8f2;
  --q-epic: #c47fe0;
  --q-legendary: #e3b24f;
  color-scheme: dark;
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 78% -120px, rgba(87, 240, 255, .09), transparent 70%),
    radial-gradient(900px 520px at -10% -80px, rgba(212, 175, 55, .06), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: .18em; }
a:hover { color: #9ff6ff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(87, 240, 255, .3); color: #fff; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code {
  font-size: .88em;
  padding: .12em .42em;
  border-radius: 6px;
  background: #0c0f15;
  border: 1px solid var(--line);
  color: #d9e4f1;
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: .05em .45em;
  font-size: .85em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: linear-gradient(#323b4b, #232a36);
  border: 1px solid #4a5568;
  border-bottom-width: 3px;
  border-radius: 6px;
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--cyan); color: #071017; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ top bar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 19, 26, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 800; letter-spacing: .14em; font-size: .95rem;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 10px; height: 10px; flex: none;
  background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, .55);
}
.topbar .btn { padding: 8px 14px; font-size: .92rem; }

/* ------------------------------------------------------------ buttons, badges */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { color: #fff; border-color: #56637a; background: rgba(255, 255, 255, .06); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #78f5ff, #33d4e5);
  border-color: #8ff7ff;
  color: #061016;
  box-shadow: 0 8px 26px rgba(87, 240, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover {
  color: #061016;
  background: linear-gradient(180deg, #9af8ff, #4fe0ee);
  border-color: #b5faff;
  box-shadow: 0 10px 32px rgba(87, 240, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.badges li {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(20, 25, 34, .8);
  color: var(--muted);
  font-size: .82rem; font-weight: 600; line-height: 1.5;
}
.badges .version { color: var(--gold); border-color: rgba(212, 175, 55, .45); }

/* what is coming in the next version: a crimson chip, in badges, headings and the contents */
.next {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(224, 72, 92, .5); border-radius: 999px;
  background: rgba(52, 14, 22, .7); color: var(--crimson);
  font-size: .8rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; text-transform: none;
  white-space: nowrap; vertical-align: .35em;
}
.badges .next { color: var(--crimson); border-color: rgba(224, 72, 92, .5); background: rgba(52, 14, 22, .7); }
h2 .next { margin-left: .5em; }
h3 .next { margin-left: .2em; vertical-align: .1em; font-size: .72rem; }
.toc .next { padding: 0 6px; margin-left: 4px; font-size: .72rem; vertical-align: .08em; }

/* ------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 48px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
}
.title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.mod-icon {
  width: 84px; height: 84px; flex: none;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 4px rgba(87, 240, 255, .06);
}
.mod-icon img { width: 100%; height: 100%; }
.hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem);
  font-weight: 850; letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.lede {
  max-width: 34em;
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  color: #cfd7e2;
  margin-bottom: 22px;
}
.hero .badges { margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { margin: 0; position: relative; justify-self: center; width: min(100%, 560px); }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 2%; z-index: -1;
  background: radial-gradient(closest-side, rgba(87, 240, 255, .22), rgba(87, 240, 255, .05) 60%, transparent);
  filter: blur(8px);
}

/* ------------------------------------------------------------ contents */

.toc { padding-block: 8px 0; }
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.toc a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: #cdd6e2; text-decoration: none;
  font-size: .9rem; font-weight: 600;
}
.toc a:hover { color: #fff; border-color: var(--cyan-2); }

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(44px, 7vw, 88px); }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .045); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 26px; }
.gem::before {
  content: ""; display: inline-block;
  width: .48em; height: .48em; margin-right: .55em; vertical-align: .14em;
  background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(212, 175, 55, .5);
}
.gem.cyan::before { background: var(--cyan); box-shadow: 0 0 12px rgba(87, 240, 255, .55); }
.gem.crimson::before { background: var(--crimson-2); box-shadow: 0 0 12px rgba(224, 72, 92, .6); }
.sub { color: var(--muted); }

.prose { display: grid; gap: 14px; max-width: 38em; color: #d3dae4; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; }
.prose li::marker { color: var(--gold); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.facts li {
  padding: 5px 11px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  color: #cfd7e2; font-size: .9rem;
}

/* feature rows: words and a picture, sides alternating */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.feature h2 { margin-bottom: 16px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; }
  .feature.flip > .media { order: -1; }
}

/* a stage: the dark spotlight the renders stand on; screenshots fill it */
.stage {
  position: relative; margin: 0;
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 65% at 50% 42%, rgba(87, 240, 255, .07), transparent 70%),
    radial-gradient(60% 60% at 50% 45%, #2b3442 0%, #1c2230 62%, #161b24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .28);
  overflow: hidden;
}
/* the mirror's things stand in a red light */
.stage.rift {
  background:
    radial-gradient(70% 65% at 50% 42%, rgba(224, 72, 92, .09), transparent 70%),
    radial-gradient(60% 60% at 50% 45%, #2b3442 0%, #1c2230 62%, #161b24 100%);
}
.stage.shot { padding: 0; }
.stage.shot picture, .feature .stage.shot > picture, .card .stage.shot picture { width: 100%; max-width: none; }
.stage.shot img { width: 100%; }
.stage.shot .pair { gap: 0; }
.stage.shot .pair figcaption { padding-bottom: 10px; }
.stage figcaption, .pair figcaption {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.stage > figcaption { position: absolute; left: 14px; top: 12px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.pair figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.pair .on figcaption { color: var(--cyan); }
.stage.rift .pair .on figcaption { color: var(--crimson); }

/* ------------------------------------------------------------ panels, cards, galleries */

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1b212d, #171c26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.gallery {
  display: grid; gap: 14px; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
}
.gallery li { display: grid; gap: 6px; justify-items: center; align-content: start; text-align: center; padding: 12px 10px 14px; }
.gallery img { width: 100%; max-width: 200px; }
.gallery .name { font-weight: 700; font-size: .92rem; line-height: 1.3; margin-top: 2px; text-wrap: balance; }
.gallery .meta { color: var(--muted); font-size: .82rem; line-height: 1.4; text-wrap: balance; }
.gallery .meta.bench { color: #8592a4; font-size: .76rem; }
@media (min-width: 480px) {
  .nw { white-space: nowrap; }
}
/* one row per kind: zoom, night vision, then the top piece in the middle */
@media (min-width: 700px) {
  .gallery.goggles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery.goggles .ultra { grid-column: 2 / span 2; }
}
@media (min-width: 1000px) {
  .gallery.helms { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery.helms .overseer { grid-column: 3; }
}
/* creatures, the king's chamber, the companion growing up: four in a row */
@media (min-width: 640px) {
  .gallery.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .gallery.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery.rift li { background: linear-gradient(180deg, #211b26, #181a23); }

.tiers {
  display: grid; gap: 14px; list-style: none; margin-top: 34px;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}
@media (min-width: 1060px) {
  .tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.tiers li { display: grid; align-content: start; gap: 10px; padding: 14px 14px 16px; }
.tiers img { width: 100%; max-width: 240px; justify-self: center; }
.tier-num {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--gold);
}
.tiers dl { margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.tiers dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tiers dd { margin: 0; color: #d3dae4; }
.tiers .ings { gap: 5px; }
.tiers .ings li { font-size: .8rem; padding: 2px 7px; }

/* ------------------------------------------------------------ items and tables */

.slot {
  --q: #3a4352;
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 38%, #2c3443, #191e28 75%);
  border: 1px solid #2f3848;
  box-shadow: inset 0 -3px 0 var(--q), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.slot img { width: 40px; height: 40px; object-fit: contain; }
.slot.small { width: 30px; height: 30px; border-radius: 7px; box-shadow: inset 0 -2px 0 var(--q); }
.slot.small img { width: 24px; height: 24px; }
.q-common { --q: #c9d2dd; }
.q-uncommon { --q: #3e9049; }
.q-rare { --q: #2770b7; }
.q-epic { --q: #8b339e; }
.q-legendary { --q: #bb8a2c; }
.t-common { color: var(--q-common); }
.t-uncommon { color: var(--q-uncommon); }
.t-rare { color: var(--q-rare); }
.t-epic { color: var(--q-epic); }
.t-legendary { color: var(--q-legendary); }

.item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
@media (min-width: 641px) {
  .item { white-space: nowrap; }
}

.table-wrap { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; }
th, td { padding: 11px 16px; text-align: left; vertical-align: middle; }
thead th {
  background: #151a23;
  color: var(--muted);
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid rgba(255, 255, 255, .05); }
tbody th { font-weight: 400; }
td.num, th.num { white-space: nowrap; }
@media (min-width: 641px) {
  .recipes th:first-child { width: 30%; }
  .recipes .num { width: 1%; padding-right: 28px; }
  .config th:first-child { width: 40%; }
}
.dim { color: #8a96a8; }

/* ingredients: amounts and names that wrap as whole items */
.ings { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; }
.ings li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 9px 3px 4px;
  border-radius: 8px;
  background: #141922; border: 1px solid var(--line);
  font-size: .88rem; line-height: 1.35;
}
.ings li.plain { padding-left: 9px; }
.ings b { color: var(--gold); font-weight: 800; }

/* narrow screens: every row becomes a small card, cells wrap instead of scrolling */
@media (max-width: 640px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack, .stack tbody { display: block; }
  .stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; }
  .stack tbody tr + tr { border-top: 1px solid rgba(255, 255, 255, .06); }
  .stack th, .stack td { display: block; padding: 0; border: 0 !important; }
  .stack th { flex: 1 1 auto; }
  .stack .wide { flex: 1 1 100%; }
  .stack td[data-label]::before {
    content: attr(data-label) " ";
    color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  }
}

/* ------------------------------------------------------------ the /goggles page, as a sketch */

.mock {
  width: min(100%, 420px);
  border-radius: 12px;
  border: 1px solid #4a3d22;
  background: linear-gradient(180deg, #1d2330, #151a23);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .08), 0 18px 40px rgba(0, 0, 0, .45);
  font-size: .92rem;
}
.mock-title {
  padding: 12px 18px;
  border-bottom: 1px solid #3a3222;
  text-align: center; font-weight: 800; letter-spacing: .04em; color: #f1e3b5;
}
.mock-body { display: grid; gap: 16px; padding: 16px 18px 20px; }
.mock-sub { color: var(--muted); font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.mock-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 42px; align-items: center; gap: 12px; }
.mock-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 4px; border-radius: 4px; background: #333b49; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--cyan); }
.bar i::after {
  content: ""; position: absolute; right: -7px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: #eaf9fb; box-shadow: 0 0 0 3px rgba(87, 240, 255, .25);
}
.w-28 { width: 28%; }
.w-73 { width: 73%; }
.w-100 { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 10px; }
.check::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--cyan); color: #061016; font-weight: 900; font-size: .8rem;
}

/* ------------------------------------------------------------ commands */

.console {
  list-style: none; display: grid; gap: 2px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0c0f15;
}
.console li { display: grid; grid-template-columns: minmax(0, 16em) minmax(0, 1fr); gap: 4px 20px; padding: 14px 18px; }
.console li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.console code { background: none; border: 0; padding: 0; font-size: .95rem; color: var(--cyan); }
.console .who { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) {
  .console li { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ server owners */

.cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* materials with where they come from */
.drops { list-style: none; display: grid; gap: 14px; padding: 0 !important; }
.drops li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; }
.drops .slot { grid-row: span 2; }
.drops b { font-weight: 700; }
.drops span { color: var(--muted); font-size: .9rem; }
.card { padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card ol, .card ul { display: grid; gap: 10px; padding-left: 1.25em; color: #d3dae4; }
.card li::marker { color: var(--gold); font-weight: 700; }
.kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.changelog { display: grid; gap: 12px; }
.changelog + .changelog { margin-top: 30px; }
.changelog h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.changelog time { color: var(--muted); font-weight: 600; font-size: .95rem; }
.changelog ul { display: grid; gap: 8px; padding-left: 1.2em; color: #d3dae4; max-width: 46em; }
.changelog li::marker { color: var(--gold); }

/* spacing between the blocks of a section */
.gallery + .table-wrap,
.cols + .table-wrap,
.cols + .config,
.recipes-goggles { margin-top: 22px; }
.helms-intro { margin-bottom: 26px; }
.ores-note { margin-top: 18px; }
.config { margin-top: 30px; display: grid; gap: 14px; }
.config > p { color: #d3dae4; max-width: 46em; }
.notes { margin-top: 26px; }
.card > .stage { margin-bottom: 6px; }
.card .stage picture { width: 100%; max-width: 320px; }
.card .pair picture { max-width: 220px; }
.card p { color: #d3dae4; }
.card .facts { display: flex; padding-left: 0; }
.feature .stage > picture { width: 100%; max-width: 440px; }
.prose .facts { display: flex; gap: 8px; margin-top: 2px; }
.feature + .gallery, .feature + .cols, .gallery + .sub, .cols.three + .table-wrap,
.feature + .steps, .steps + .cols, .cols + .cast { margin-top: 26px; }
.gallery + .sub { max-width: 46em; }
.card .stage.tall picture { max-width: 220px; }
/* a lineup: one figure in each fifth of the picture, the names under them */
.stage.cast { display: block; place-items: normal; }
.stage.cast picture, .stage.cast img { width: 100%; }
.stage.cast > figcaption { position: static; margin-top: 10px; }
.stage.cast .names {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none; text-align: center; text-wrap: balance; line-height: 1.35;
}
.steps ol { max-width: 52em; }
.steps + .table-wrap { margin-top: 22px; }

/* ------------------------------------------------------------ footer */

.site-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(10, 12, 17, .6);
}
.site-footer .wrap { padding-block: 30px 40px; display: grid; gap: 12px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.site-footer a { color: #cdd6e2; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.site-footer small { color: #8e9aab; font-size: .85rem; }
.gh { display: inline-flex; align-items: center; gap: 8px; }
.gh svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ hymods.de start page */

.back-link {
  position: fixed; top: 18px; left: 18px; z-index: 30;
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(26, 32, 43, .85);
  border: 1px solid var(--line-2);
  color: var(--text); text-decoration: none; font-size: 1.2rem; line-height: 1;
}
.back-link:hover { color: var(--cyan); border-color: var(--cyan-2); }
.back-link.visible { display: inline-flex; }

.landing { display: flex; flex-direction: column; }
.landing main { flex: 1; }
.landing-head { padding-block: clamp(72px, 12vw, 140px) clamp(30px, 5vw, 56px); text-align: center; }
.wordmark {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 4.8rem);
  font-weight: 900; letter-spacing: .16em;
  margin-right: -.16em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c6d8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-head p { margin-top: 14px; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }

.mods {
  list-style: none; display: grid; gap: 22px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 400px));
  padding-bottom: clamp(48px, 8vw, 96px);
}
/* the whole card is the link (the title's link stretches over it) */
.mod-card {
  position: relative;
  display: grid; align-content: start;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1b212d, #161b24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mod-card:hover { border-color: rgba(87, 240, 255, .45); box-shadow: 0 22px 54px rgba(0, 0, 0, .38), 0 0 0 1px rgba(87, 240, 255, .2); }
.mod-card:focus-within { outline: 3px solid var(--cyan); outline-offset: 3px; }
.mod-card .stretched { color: var(--text); text-decoration: none; }
.mod-card .stretched:focus-visible { outline: none; }
.mod-card .stretched::after { content: ""; position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mod-card:hover { transform: translateY(-3px); }
}
.mod-card .banner {
  display: grid; place-items: center; padding: 18px 26px 6px;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(87, 240, 255, .14), transparent 70%),
    radial-gradient(70% 80% at 50% 45%, #2b3442, #1a202b 75%);
}
.mod-card .banner img { width: 100%; max-width: 320px; }
.mod-card .body { display: grid; gap: 12px; padding: 20px 22px 24px; }
.mod-card .head { display: flex; align-items: center; gap: 14px; }
.mod-card .head img { width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); }
.mod-card h3 { font-size: 1.45rem; font-weight: 800; }
.mod-card p { color: #cfd7e2; }

.center { text-align: center; justify-items: center; }
.center ul { justify-content: center; }

/* ------------------------------------------------------------ 404 */

.notfound { padding-block: clamp(80px, 14vw, 160px); text-align: center; display: grid; gap: 18px; justify-items: center; align-content: center; }
.notfound .code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 900; letter-spacing: .08em; color: var(--gold); line-height: 1; }
.notfound .actions { justify-content: center; }
