:root {
  color-scheme: dark;
  --bg: #121518;
  --steel-900: #1b2025;
  --steel-800: #232a31;
  --steel-600: #38424c;
  --steel-300: #9aa4ae;
  --text: #e6eaed;
  --orange: #e8792b;
  --orange-dim: #b85a1c;
  --cyan: #4fc9d6;
  --danger: #c9483a;
  --ally: #5ba86a;
  --blue: #4a86c9;
  --on-orange: #121518;
  --font-title: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --cut: 8px;
  --cut-lg: 14px;
  --chamfer: polygon(0 0, calc(100% - var(--angle, var(--cut))) 0, 100% var(--angle, var(--cut)), 100% 100%, var(--angle, var(--cut)) 100%, 0 calc(100% - var(--angle, var(--cut))));
  --nav-height: 56px;
  --content: 1280px;
  --gutter: clamp(18px, 5.55vw, 80px);
  --motion-time: 175ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-body); }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
img { max-width: 100%; }
code { font: 400 .87em/1.5 var(--font-mono); }
:focus-visible, .button:focus-visible, .chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--content)); margin-inline: auto; }
.sr-only, .clipboard-field { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 5; inset: 8px auto auto 12px; padding: 8px 16px; background: var(--orange); color: var(--on-orange); transform: translateY(-150%); }
.skip-link:focus-visible { transform: translateY(0); }
.icon { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; align-items: center; }
.icon svg { width: 100%; height: 100%; fill: currentColor; }

.topbar { position: sticky; inset-block-start: 0; z-index: 2; background: rgb(18 21 24 / .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--steel-600); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--nav-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 44px; font: 400 23px/1 var(--font-title); letter-spacing: .07em; }
.brand img { object-fit: contain; }
.brand__join { color: var(--steel-300); }
.topbar nav { display: flex; align-items: center; gap: clamp(24px, 4.2vw, 65px); }
.topbar nav a { display: grid; place-items: center; min-height: 44px; color: var(--steel-300); font: 600 16px/1 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.topbar nav a:hover { color: var(--orange); }

.button, .chip { --button-fill: var(--steel-900); --button-border: var(--steel-600); position: relative; isolation: isolate; display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 0 21px; border: 0; background: transparent; font: 600 17px/1 var(--font-label); letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.button::before, .button::after, .chip::before, .chip::after { content: ''; position: absolute; z-index: -1; inset: 0; clip-path: var(--chamfer); background: var(--button-border); }
.button::after, .chip::after { inset: 1px; background: var(--button-fill); }
.button:hover, .chip:hover { --button-border: var(--orange); }
.button--primary { --button-fill: var(--orange); --button-border: var(--orange); color: var(--on-orange); }
.button--primary:hover, .button--primary:active { --button-fill: var(--orange-dim); --button-border: var(--orange-dim); color: #fff; }
.button--outline { --button-fill: var(--steel-900); --button-border: #69737d; }
.button--small { min-height: 44px; padding-inline: 15px; font-size: 15px; }
.button--icon { padding-inline: 12px; }
.chip { --angle: 6px; min-height: 44px; padding-inline: 14px; color: var(--steel-300); font-size: 15px; }
.chip[aria-selected='true'] { --button-fill: #38261e; --button-border: var(--orange); color: var(--orange); }
.chip--signal { --button-fill: #18272e; --button-border: #37666c; width: max-content; min-height: 28px; padding-inline: 11px; color: var(--cyan); font-size: 13px; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(500px, 40vw, 610px); overflow: hidden; border-bottom: 1px solid var(--steel-600); }
.hero__visual, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__visual { object-fit: cover; object-position: 50% 43%; }
.hero::before { content: ''; z-index: -1; background: linear-gradient(90deg, #121518 1%, rgb(18 21 24 / .96) 13%, rgb(18 21 24 / .83) 34%, rgb(18 21 24 / .15) 70%, transparent), linear-gradient(0deg, #121518 0%, transparent 39%); }
.hero__inner { padding-block: 55px 47px; }
.hero__copy { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--cyan); font: 600 15px/1.25 var(--font-label); letter-spacing: .17em; text-transform: uppercase; }
.eyebrow--muted { color: var(--steel-300); font-size: 14px; }
.signal { display: inline-block; width: 7px; height: 7px; background: var(--cyan); }
h1, h2, .creature h3 { font-family: var(--font-title); font-weight: 400; }
.hero h1 { margin-block: 17px 19px; color: var(--text); font-size: clamp(60px, 7.15vw, 112px); line-height: .94; letter-spacing: .008em; }
.hero__lede { max-width: 404px; color: var(--text); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.gallery { padding-block: 50px 57px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: var(--space-5); }
.section-heading h2 { font-size: clamp(36px, 4vw, 58px); line-height: .97; letter-spacing: .012em; }
.section-heading p { color: var(--steel-300); font: 600 16px/1 var(--font-label); text-transform: uppercase; letter-spacing: .105em; }
.modules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.36fr); gap: var(--space-5); align-items: stretch; }
.panel { --angle: var(--cut-lg); --panel-fill: var(--steel-900); position: relative; isolation: isolate; min-width: 0; }
.panel::before, .panel::after { content: ''; z-index: -1; position: absolute; inset: 0; clip-path: var(--chamfer); background: var(--steel-600); }
.panel::after { inset: 1px; background: var(--panel-fill); }
.rivets { display: contents; }
.rivets i { position: absolute; z-index: 1; width: 3px; height: 3px; border-radius: 50%; background: var(--steel-300); opacity: .63; }
.rivets i:nth-child(1) { top: 8px; left: 8px; }
.rivets i:nth-child(2) { top: 13px; right: 12px; }
.rivets i:nth-child(3) { bottom: 13px; left: 12px; }
.rivets i:nth-child(4) { bottom: 8px; right: 8px; }
.creature { display: grid; grid-template-rows: 225px 1fr; }
.creature__portrait { position: relative; margin: 1px 1px 0; clip-path: var(--chamfer); background: #20272f; }
.creature__portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
.creature__portrait .chip { position: absolute; top: 17px; left: 18px; }
.creature__body { padding: 19px 25px 23px; border-top: 1px solid var(--steel-600); }
.creature h3 { margin-top: 3px; color: var(--text); font-size: 46px; line-height: 1.05; }
.creature__role { color: var(--steel-300); margin-top: 3px; }
.creature__facts { display: grid; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--steel-600); }
.creature__facts > div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; }
.creature__facts dt { display: flex; align-items: center; gap: 7px; color: var(--cyan); font: 600 16px/1.4 var(--font-label); letter-spacing: .04em; }
.creature__facts dt .icon { width: 15px; height: 15px; }
.creature__facts dd { font-size: 15px; }

.recipe { padding: 25px clamp(22px, 2.8vw, 40px) 32px; }
.recipe h3, .foundation h3, .shell h3 { font: 400 32px/1 var(--font-title); letter-spacing: .027em; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.recipe__pane { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--steel-600); }
.recipe__pane h4 { font: 600 clamp(25px, 3.3vw, 36px)/1.04 var(--font-label); }
.recipe__pane p { color: var(--steel-300); margin-top: 7px; }
.craft { display: grid; grid-template-columns: minmax(0, 265px) 28px minmax(0, 128px); justify-content: start; align-items: center; gap: clamp(7px, 1.8vw, 28px); margin-top: 24px; }
.craft__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.craft__slot { display: grid; place-items: center; min-height: clamp(50px, 5.65vw, 78px); padding: 4px; background: var(--bg); border: 1px solid var(--steel-600); color: var(--text); font-size: .82rem; line-height: 1.16; text-align: center; overflow-wrap: anywhere; }
.craft__arrow { width: min(100%, 25px); color: var(--orange); justify-self: center; }
.craft__result { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--steel-800); border: 1px solid var(--steel-600); }
.craft__result img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.craft__amount { font: 400 13px/1 var(--font-mono); color: var(--cyan); white-space: nowrap; }
.craft__result .craft__amount { position: absolute; inset: auto 7px 8px auto; padding: 4px 5px; background: var(--bg); }
.craft__list { display: grid; gap: 7px; padding: 0; list-style: none; }
.craft__list li, .craft__list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 7px 10px; background: var(--bg); border: 1px solid var(--steel-600); }
.craft__list--smithing > div { flex-wrap: wrap; }
.craft__list dt { color: var(--steel-300); font: 600 14px/1.2 var(--font-label); text-transform: uppercase; }
.craft__list dd { display: flex; align-items: center; gap: 5px; font-size: 14px; }

.shell { --panel-fill: #171b1f; margin-top: var(--space-5); overflow: hidden; }
.shell__head { display: flex; align-items: center; gap: 9px; padding: 15px 23px; margin: 1px 1px 0; background: var(--steel-800); border-bottom: 1px solid var(--steel-600); clip-path: var(--chamfer); }
.shell__head .icon { color: var(--cyan); }
.shell h3 { font-size: 25px; }
.shell__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 28px; padding: 16px 23px; }
.shell__command { display: flex; gap: 11px; align-items: center; white-space: nowrap; }
.shell__command span { font-family: var(--font-mono); color: var(--cyan); }
.shell__line p { color: var(--steel-300); }
.shell__line button { min-width: 108px; }

.foundation { margin-top: 38px; padding-top: 27px; border-top: 1px solid var(--steel-600); }
.foundation h3 { font-size: 30px; }
.palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 12px; padding: 0; margin-top: 18px; list-style: none; }
.palette li { display: grid; gap: 2px; }
.palette__swatch { display: block; height: 22px; margin-bottom: 4px; background: var(--swatch); border: 1px solid var(--steel-600); clip-path: var(--chamfer); }
.palette code, .type-spec small { color: var(--steel-300); font-size: 12px; }
.type-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px 16px; margin-top: 24px; padding: 0; list-style: none; }
.type-spec li { display: flex; align-items: baseline; gap: 3px 10px; flex-wrap: wrap; }
.type-spec__title { font: 400 24px/1 var(--font-title); }
.type-spec__label { font: 600 20px/1 var(--font-label); }
footer { border-top: 1px solid var(--steel-600); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.footer__inner p { color: var(--steel-300); font-size: 14px; }

.connection { --panel-fill: var(--steel-900); width: min(calc(100% - 36px), 460px); border: 0; background: transparent; color: var(--text); padding: 25px; }
.connection::backdrop { background: rgb(8 12 15 / .82); }
.connection__head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.connection h2 { font-size: 42px; line-height: 1; }
.connection__address { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-block: 21px; }
.connection__address dt { color: var(--steel-300); }
.connection__address code { color: var(--cyan); }

@media (max-width: 960px) {
  .modules { gap: 16px; }
  .creature__body { padding-inline: 19px; }
  .recipe { padding-inline: 21px; }
  .craft { grid-template-columns: minmax(0, 1fr) 19px minmax(0, 96px); }
  .palette { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .topbar nav { display: none; }
  .topbar__inner { gap: 12px; }
  .brand { font-size: 21px; }
  .hero { min-height: 484px; align-items: end; }
  .hero__visual { height: 73%; object-position: 61% 45%; }
  .hero::before { background: linear-gradient(0deg, #121518 17%, rgb(18 21 24 / .93) 31%, rgb(18 21 24 / .54) 61%, rgb(18 21 24 / .04) 93%); }
  .hero__inner { padding-block: 128px 32px; }
  .hero h1 { font-size: clamp(41px, 11.6vw, 68px); margin-block: 12px 13px; }
  .hero__lede { font-size: 16px; max-width: 330px; }
  .actions { margin-top: 22px; gap: 8px; }
  .actions .button { padding-inline: 13px; font-size: 15px; }
  .gallery { padding-block: 32px 37px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 17px; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .creature { grid-template-rows: 192px 1fr; }
  .recipe { padding: 21px 16px 24px; }
  .craft { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 75px); gap: 7px; margin-top: 15px; }
  .craft__grid { gap: 4px; }
  .craft__slot { min-height: 50px; font-size: .75rem; }
  .shell { margin-top: 16px; }
  .shell__head { padding-inline: 16px; }
  .shell__line { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 13px 16px 16px; }
  .shell__line p { grid-row: 2; grid-column: 1 / -1; }
  .shell__line button { grid-row: 1; grid-column: 2; min-width: 92px; }
  .foundation { margin-top: 28px; }
  .type-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { align-items: start; flex-direction: column; gap: 4px; }
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.topbar .site-nav { gap: clamp(13px, 2.45vw, 39px); }
.topbar .site-nav a[aria-current='page'], .mobile-nav a[aria-current='page'] { color: var(--orange); }
.mobile-actions, .mobile-nav { display: none; }
.footer__links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer__links a, .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange); }
.text-link { font: 600 17px/1.2 var(--font-label); }
.text-link:hover, .footer__links a:hover { text-decoration: underline; }
.block-section { padding-block: 49px; }
.block-section + .block-section { border-top: 1px solid var(--steel-600); }
.block-section h2, .radio h2 { font: 400 clamp(37px, 5vw, 63px)/.98 var(--font-title); }
.block-section .section-heading { margin-bottom: 22px; }
.page-lead { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(260px, 26vw, 420px); border-bottom: 1px solid var(--steel-600); overflow: hidden; }
.page-lead:not(:has(img)) { min-height: clamp(194px, 18vw, 285px); background: linear-gradient(125deg, var(--steel-900), var(--bg) 65%); }
.page-lead__visual { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.page-lead:has(img)::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(18 21 24 / .91), rgb(18 21 24 / .1)), linear-gradient(0deg, #121518, transparent 85%); }
.page-lead__body { padding-block: 39px; }
.page-lead h1 { font: 400 clamp(54px, 9vw, 118px)/.9 var(--font-title); }
.page-lead p { max-width: 42ch; font-size: clamp(17px, 2vw, 22px); margin-top: 13px; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1 var(--font-label); color: var(--orange); border-bottom: 1px solid var(--steel-600); }
.subnav a:hover { border-color: var(--orange); }

.server-status { color: var(--cyan); margin-top: 18px; font: 600 17px/1.2 var(--font-label); }
.server-status::before { display: inline-block; content: ''; width: 6px; height: 6px; margin: 0 8px 2px 0; background: currentColor; }
.home-hero .actions { margin-top: 24px; }
.hero__foreground { position: absolute; inset: auto max(var(--gutter), (100% - var(--content)) / 2) 0 auto; width: min(45%, 620px); height: 91%; pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; counter-reset: join-step; }
.steps li { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding-top: 15px; border-top: 2px solid var(--steel-600); counter-increment: join-step; }
.steps li::before { position: absolute; inset: -5px auto auto 0; content: ''; width: 8px; height: 8px; background: var(--cyan); }
.steps img, .item-link img, .inventory img, .power__node img, .recipe-card summary img { object-fit: contain; image-rendering: pixelated; }
.steps img { width: 54px; height: 54px; }
.routes { padding-bottom: 57px; }
.route-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.route-card { display: flex; align-items: end; justify-content: space-between; min-height: 120px; padding: 22px 24px; overflow: hidden; }
.route-card:hover::before { background: var(--orange); }
.route-card--image { min-height: 245px; }
.route-card--image img { position: absolute; inset: 1px; z-index: -1; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; clip-path: var(--chamfer); }
.route-card--image::after { background: transparent; }
.route-card--image > div { text-shadow: 0 1px 8px #121518; }
.route-card--image > div::before { content: ''; position: absolute; inset: 1px; z-index: -1; clip-path: var(--chamfer); background: linear-gradient(0deg, rgb(18 21 24 / .99), transparent 88%); }
.route-card--image:first-child img { object-fit: contain; object-position: 78% center; background: #20272f; }
.route-card:nth-child(2) img { object-position: center 42%; }
.route-card h3 { font: 400 40px/.93 var(--font-title); }
.route-card p { margin-top: 6px; color: var(--text); }
.route-card__arrow { color: var(--orange); font-size: 24px; margin-left: 12px; }
.radio { position: relative; isolation: isolate; min-height: 365px; overflow: hidden; display: grid; align-items: center; }
.radio img, .radio::after { position: absolute; inset: 6px 0 0; z-index: -2; width: 100%; height: calc(100% - 6px); object-fit: cover; object-position: center 55%; }
.radio::after { content: ''; z-index: -1; background: linear-gradient(90deg, rgb(18 21 24 / .96) 0%, rgb(18 21 24 / .80) 39%, rgb(18 21 24 / .26) 100%); }
.radio::before, .hazard-section::before { content: ''; display: block; height: 6px; background: repeating-linear-gradient(-45deg, var(--orange) 0 9px, var(--steel-800) 9px 19px); }
.radio::before { position: absolute; inset: 0 0 auto; }
.radio__body { padding-block: 42px; }
.radio__body > p { margin-top: 10px; }
.radio__note { color: var(--steel-300); font-size: 14px; }

.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(18px, 4vw, 55px); }
.split-section h2 { margin-bottom: 15px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.guide-list li { position: relative; padding-left: 14px; }
.guide-list li::before { position: absolute; content: ''; top: .62em; left: 0; width: 5px; height: 5px; background: var(--cyan); }
.guide-list + .guide-list, .guide-list + .item-list { margin-top: 15px; }
.territory-map { margin: 0; align-self: start; overflow: hidden; }
.territory-map svg { display: block; width: 100%; max-height: 360px; }
.territory-map figcaption { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 19px; padding: 13px; }
.territory-key { display: inline-flex; align-items: center; gap: 6px; }
.territory-key::before { content: ''; display: inline-block; width: 9px; aspect-ratio: 1; background: var(--key); }
.item-list { display: grid; gap: 6px; list-style: none; padding: 0; }
.item-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.item-link { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 6px 10px; background: var(--steel-900); border: 1px solid var(--steel-600); }
.item-link:hover { border-color: var(--orange); }
.item-link img { width: 43px; height: 43px; flex: 0 0 auto; }
.item-link strong { display: block; font-weight: 500; }
.item-link small { display: block; color: var(--steel-300); }
.item-link__arrow { margin-left: auto; color: var(--orange); }

.bestiary { --rail-gutter: max(var(--gutter), (100vw - var(--content)) / 2); overflow: hidden; padding-block: 32px 45px; background: radial-gradient(ellipse at 15% 0%, #26342e, transparent 52%), radial-gradient(ellipse at 63% 100%, #2a2838, transparent 63%), var(--steel-900); border-block: 1px solid var(--steel-600); }
.bestiary__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-gutter); }
.bestiary__track { position: relative; display: flex; min-width: max-content; gap: 15px; padding: 2px var(--rail-gutter) 13px; }
.bestiary--pinned .bestiary__viewport { overflow: clip; scroll-snap-type: none; }
.beast-card { --panel-fill: #23302e; flex: 0 0 clamp(235px, 26vw, 315px); min-height: 300px; display: flex; flex-direction: column; justify-content: end; scroll-snap-align: start; overflow: hidden; }
.beast-card--1 { --panel-fill: #302824; }
.beast-card--2 { --panel-fill: #2a293b; }
.beast-card img { position: absolute; z-index: 0; inset: 1px 1px auto; width: calc(100% - 2px); height: 158px; object-fit: cover; clip-path: var(--chamfer); }
.beast-card .chip { position: absolute; z-index: 1; top: 11px; left: 12px; }
.beast-card__body { position: relative; min-height: 130px; padding: 15px 15px 17px; }
.beast-card__body h3 { font: 400 32px/.95 var(--font-title); }
.beast-card__body p { margin: 5px 0 10px; color: var(--text); }
.species { max-height: 85vh; overflow: auto; }
.species img { margin-top: 13px; max-height: 230px; width: 100%; object-fit: contain; }

.hazard-section::before { width: min(130px, 40%); margin-bottom: 17px; }
.feature-image { margin: 0; align-self: start; overflow: hidden; }
.feature-image img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; background: #20272f; clip-path: var(--chamfer); }
.feature-image figcaption, .kit-panel { padding: 17px 20px; }
.feature-image h3, .kit-panel h3, .join-card h2 { font: 400 35px/.97 var(--font-title); }
.feature-image p { margin-top: 6px; }
.power { --current: 0; padding: 18px clamp(10px, 3vw, 35px); }
.power__rail { position: relative; }
.power__flow { position: absolute; inset: 44px 12.5% auto; height: 3px; background: var(--steel-600); }
.power__flow::after { content: ''; display: block; width: 100%; height: 100%; background: var(--cyan); transform: scaleX(var(--current)); transform-origin: left; transition: transform 310ms ease-out; }
.power__nodes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.power__node { display: grid; justify-items: center; align-content: start; gap: 7px; min-width: 0; min-height: 112px; background: transparent; border: 0; padding: 0 2px; color: var(--steel-300); font: 600 clamp(13px, 2vw, 19px)/1 var(--font-label); }
.power__node img { width: clamp(48px, 10vw, 80px); height: clamp(48px, 10vw, 80px); background: var(--steel-800); border: 1px solid var(--steel-600); }
.power__node[aria-selected='true'], .power__node:hover { color: var(--cyan); }
.power__node[aria-selected='true'] img, .power__node:hover img { border-color: var(--cyan); }
.power__detail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--steel-600); }
.support { margin-top: 20px; }
.power__image { margin-top: 16px; }
.inventory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 0; margin: 0; list-style: none; align-content: start; }
.inventory a { display: grid; justify-items: center; align-content: start; gap: 4px; width: 100%; height: 100%; padding: 6px 2px; text-align: center; background: var(--steel-900); border: 1px solid var(--steel-600); font-size: 13px; }
.inventory a:hover { border-color: var(--orange); }
.inventory img { width: clamp(45px, 8vw, 64px); height: auto; }
.kit-panel > h3 { margin-bottom: 12px; }
.bag-levels { list-style: none; padding: 0; }
.bag-levels a { display: grid; grid-template-columns: 1.15fr minmax(30px, .9fr) 38px; align-items: center; gap: 9px; min-height: 42px; border-bottom: 1px solid var(--steel-600); }
.bag-levels a:hover { color: var(--orange); }
.bag-levels__track { height: 5px; background: var(--steel-600); }
.bag-levels__track span { display: block; width: var(--width); height: 100%; background: var(--cyan); }

.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.join-card { padding: 24px; }
.join-card p { color: var(--steel-300); margin-top: 6px; }
.join-card ol { padding-left: 21px; margin: 0 0 18px; }
.join-card ol li + li { margin-top: 5px; }
.accordions { display: grid; gap: 7px; max-width: 880px; }
.accordions summary { min-height: 48px; justify-content: space-between; padding: 8px 15px; }
.accordions p { padding: 0 15px 13px; color: var(--steel-300); }

.filterbar { padding: 16px 21px; }
.filterbar label { display: block; font: 600 18px/1.25 var(--font-label); margin-bottom: 8px; }
.filterbar input { min-height: 46px; width: min(100%, 580px); padding: 9px 12px; border: 1px solid var(--steel-300); background: var(--bg); color: var(--text); border-radius: 0; font: inherit; }
.filterbar input::placeholder { color: var(--steel-300); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.filter-chips .chip { padding-inline: 11px; }
.chip[aria-pressed='true'] { --button-fill: #38261e; --button-border: var(--orange); color: var(--orange); }
.filter-count { margin: 13px 0; color: var(--steel-300); }
.empty-note { padding: 14px 0 22px; }
.asset-credit { margin-top: 16px; color: var(--steel-300); font-size: 14px; }
.asset-credit a { color: var(--orange); text-decoration: underline; }
.recipe-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 13px; align-items: start; }
.recipe-card, .accordions details { scroll-margin-top: 20px; }
.recipe-card summary, .accordions summary, .mobile-nav summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.recipe-card summary { padding: 8px 15px; min-height: 64px; }
.recipe-card summary:hover strong, .accordions summary:hover { color: var(--orange); }
.recipe-card summary strong, .recipe-card summary small { display: block; }
.recipe-card summary small { color: var(--steel-300); }
.recipe-card summary > :last-child { margin-left: auto; color: var(--orange); }
.recipe-card[open] summary > :last-child, .accordions details[open] summary span { transform: rotate(45deg); }
.recipe-card__body { padding: 12px 16px 16px; border-top: 1px solid var(--steel-600); }
.recipe-card__body .actions { margin-top: 13px; }
.recipe-card__body .guide-list { margin-top: 10px; }
.recipe-card__extra { display: grid; width: 48px; height: 48px; place-items: center; font-size: 24px; color: var(--cyan); }
.craft--voxel { grid-template-columns: minmax(0, 250px) 18px minmax(0, 112px); gap: 8px; margin-block: 13px 0; }
.craft--voxel .craft__slot, .craft--voxel .craft__result { border: 2px solid; border-color: #475462 #0b0e12 #0b0e12 #475462; }
.craft--voxel .craft__slot { position: relative; min-height: 62px; display: grid; place-items: center; }
.craft--voxel .craft__slot img { display: block; width: clamp(34px, 11vw, 56px); max-width: 100%; height: auto; image-rendering: pixelated; }
.craft--voxel .craft__slot .craft__amount { position: absolute; inset: auto 4px 4px auto; background: var(--bg); padding: 3px; }
.craft--voxel .craft__slot--empty { background: #14181c; }
.recipe-card__body p + .item-list { margin-top: 13px; }
.command-groups { display: grid; gap: 13px; }
.command-groups .shell { margin: 0; }
.command-groups .shell h2 { font: 400 18px/1.2 var(--font-mono); }
.command-groups .shell__line + .shell__line { border-top: 1px solid var(--steel-600); }
.command-groups .shell__command { white-space: normal; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .bestiary__track { display: grid; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  .bestiary__viewport { overflow: visible; }
  .power__flow::after { transition: none; }
}
@media (max-width: 1050px) {
  .topbar .site-nav { gap: 13px; }
  .topbar .site-nav a { font-size: 14px; }
  .desktop-discord { display: none; }
}
@media (max-width: 767px) {
  .rt-site { padding-bottom: 65px; }
  .topbar .site-nav, .topbar__actions { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { min-height: 44px; font: 600 17px/1 var(--font-label); text-transform: uppercase; }
  .mobile-nav nav { position: absolute; right: var(--gutter); left: var(--gutter); inset-block-start: var(--nav-height); background: var(--bg); border: 1px solid var(--steel-600); padding: 6px 12px; }
  .mobile-nav[open] nav { display: grid; gap: 0; }
  .mobile-nav nav a { justify-items: start; }
  .mobile-actions { position: fixed; inset: auto 0 0; z-index: 2; display: grid; grid-template-columns: 1.27fr 1fr; gap: 8px; padding: 7px var(--gutter) max(7px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--steel-600); }
  .mobile-actions .button { min-height: 44px; }
  .block-section { padding-block: 28px; }
  .block-section .section-heading { margin-bottom: 14px; }
  .page-lead { min-height: 295px; }
  .page-lead:has(img) .page-lead__visual { object-position: 65% center; }
  .page-lead:has(img)::after { background: linear-gradient(0deg, #121518 10%, rgb(18 21 24 / .29) 100%); }
  .page-lead__body { padding-block: 26px; }
  .hero__foreground { inset: 0 0 auto auto; width: 72%; height: 48%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .steps li { grid-template-columns: 34px 1fr; gap: 4px; padding-top: 8px; font-size: 14px; }
  .steps img { width: 34px; height: 34px; }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .route-card { padding: 10px 11px; }
  .route-card--image { min-height: 176px; }
  .route-card h3 { font-size: 25px; }
  .route-card p { font-size: 14px; }
  .route-card__arrow { font-size: 17px; margin-left: 3px; }
  .radio { min-height: 300px; }
  .split-section, .join-grid, .recipe-library { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bestiary { padding-block: 24px; }
  .bestiary__track { padding-bottom: 10px; }
  .power__flow { top: 26px; }
  .power__node { min-height: 94px; }
  .power__detail { flex-direction: column; align-items: start; }
  .filterbar { padding: 12px; }
  .filter-chips .chip { font-size: 14px; padding-inline: 8px; }
  .command-groups .shell__line { gap: 5px 7px; }
  .footer__inner { gap: 7px; }
}
