@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #100d0e;
  --surface: #191416;
  --surface-raised: #221719;
  --crimson: #821b25;
  --crimson-deep: #3e1016;
  --gold: #e1b768;
  --gold-bright: #f6d38d;
  --gold-muted: #ad874b;
  --line: #54402b;
  --line-quiet: #392c27;
  --text: #eee4d4;
  --muted: #b8aa9d;
  --faint: #8d8177;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.65 var(--sans); }
body::before { content: ''; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 0, #50101935, transparent 62%); }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--gold-bright); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .5; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
::selection { background: #7d202a; color: #fff2db; }
img { display: block; max-width: 100%; }
svg { display: block; }
button { border-radius: 0; }
button[hidden], [hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 4vw, 3.65rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin-bottom: 20px; }
h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 20px; }
strong { font-weight: 600; }
code { font-size: .9em; color: var(--gold-bright); overflow-wrap: anywhere; }
.page-width { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.section-space { padding-block: 88px; }
.eyebrow { margin: 0 0 17px; font-size: .72rem; line-height: 1.5; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-muted); }
.eyebrow span { color: var(--gold); font-size: .65rem; margin-right: 9px; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -100px; background: var(--gold-bright); color: var(--ink); padding: 10px 18px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: #120e0ff5; }
.header-inner { width: min(1380px, calc(100% - 64px)); margin-inline: auto; min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); text-decoration: none; white-space: nowrap; }
.brand img { width: 49px; height: 49px; border-radius: 5px; border: 1px solid #9c7438; }
.brand strong { display: block; font: 600 1.6rem/.95 var(--serif); letter-spacing: .05em; }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: .65rem; line-height: 1.1; letter-spacing: .11em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { color: #d9cbb9; text-decoration: none; font-size: .85rem; font-weight: 500; white-space: nowrap; padding-block: 9px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--gold-bright); }
.main-nav a[aria-current] { border-bottom: 1px solid var(--gold-muted); }
.main-nav .nav-download { border: 1px solid #9e713e; padding: 9px 23px; color: var(--gold-bright); background: #2c1418; }
.main-nav .nav-download:hover { background: #49151c; }
.external-arrow { margin-left: 3px; color: var(--gold-muted); }
.nav-toggle { display: none; align-items: center; gap: 15px; padding: 8px 0 8px 12px; border: 0; color: var(--gold); background: none; font-size: .85rem; }
.nav-toggle span { font-size: 1.2rem; }

.hero { padding-top: 33px; }
.hero-art { position: relative; border-radius: 11px; overflow: hidden; box-shadow: 0 22px 70px #0005; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.hero-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 70px; padding: 46px 18px 54px; }
.hero-copy { max-width: 700px; }
.hero-copy .intro-text { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.hero-actions { padding-bottom: 5px; display: flex; flex-direction: column; align-items: flex-start; gap: 19px; }
.action-note { margin: -7px 0 0; color: var(--faint); font-size: .72rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 48px; border: 1px solid var(--gold-muted); padding: 13px 23px; font-size: .85rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color .16s, border-color .16s, color .16s; }
.button-primary { background: linear-gradient(#8c202b, #65151e); border-color: #b78c49; color: var(--gold-bright); box-shadow: inset 0 0 0 2px #26070b30, 0 4px 14px #0003; }
.button-primary:hover { color: #ffe3a8; background: linear-gradient(#a92a37, #7a1822); border-color: var(--gold); }
.button-outline { background: #1d1114; color: var(--gold); border-color: #8d693d; }
.button-outline:hover { color: var(--gold-bright); background: #3b161d; border-color: var(--gold); }
.button-large { min-height: 55px; padding-inline: 28px; }
.button span { font-size: 1.2em; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 1.1em; }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold-muted); font-size: .65rem; line-height: 1; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.section-divider::after { transform: rotate(180deg); }
.server-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; }
.section-introduction p:not(.eyebrow) { color: var(--muted); max-width: 360px; }
.server-ledger { margin: -15px 0 0; }
.server-ledger > div { display: grid; grid-template-columns: 190px 1fr; align-items: start; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line-quiet); }
.server-ledger > div:last-child { border-bottom-color: var(--line); }
.server-ledger dt { color: var(--gold); font: 1.08rem/1.5 var(--serif); }
.ledger-number { display: inline-block; margin-right: 18px; font: .66rem var(--sans); color: #796245; }
.server-ledger dd { margin: 0; font-size: .9rem; line-height: 1.75; color: var(--muted); }
.server-ledger dd strong { color: var(--text); }
.server-ledger a { color: #d7bd88; }
.loot-callout { background: linear-gradient(90deg, #2c1018, #3b1018 50%, #261016); border-block: 1px solid #654027; }
.callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 45px; }
.callout-inner h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin-bottom: 12px; }
.callout-inner p:last-child { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.callout-inner .eyebrow { color: #c29456; margin-bottom: 12px; }
.callout-inner .button { flex: 0 0 auto; }

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading-row h2 { margin-bottom: 0; }
.version-label { display: inline-flex; align-items: center; padding: 3px 12px; margin-bottom: 4px; color: var(--gold); border: 1px solid var(--line); background: #211619; font-size: .75rem; }
.download-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 75px; align-items: center; }
.download-panel { position: relative; padding: 35px 34px 31px; border: 1px solid #75542f; background: linear-gradient(130deg, #2b161b, #1c1416); }
.download-panel::after { content: ''; position: absolute; inset: 5px; border: 1px solid #a37b3730; pointer-events: none; }
.download-file-mark { width: 39px; margin-bottom: 23px; color: var(--gold-muted); }
.download-file-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: square; }
.download-panel h3 { font: 1.7rem var(--serif); margin-bottom: 12px; }
.download-meta { font-size: .8rem; color: var(--muted); margin-bottom: 25px; }
.download-panel .button { width: 100%; position: relative; z-index: 1; }
.download-size { font-size: .72rem; color: var(--faint); text-align: center; margin: 10px 0 24px; }
.download-explanation { margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.setup-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 30px; }
.setup-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 20px; }
.step-number { color: var(--gold-muted); font: 1.75rem/1.1 var(--serif); padding-top: 2px; border-top: 1px solid var(--line); }
.setup-steps h3 { font-size: 1rem; margin-bottom: 8px; }
.setup-steps p { color: var(--muted); font-size: .88rem; line-height: 1.8; margin-bottom: 0; max-width: 470px; }
.setup-steps strong { color: #e1cda7; }
.community-section { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 35px 0 65px; }
.community-mark { width: 96px; height: 96px; border-radius: 8px; }
.community-section h2 { font-size: 1.9rem; margin-bottom: 10px; }
.community-section .eyebrow { margin-bottom: 9px; }
.community-section p:last-child { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 25px; align-items: center; padding: 28px 0 33px; color: var(--faint); }
.site-footer > p { margin: 0 auto 0 0; display: flex; align-items: baseline; gap: 16px; }
.site-footer strong { color: var(--gold-muted); font: 1.2rem var(--serif); }
.site-footer > p > span { font-size: .7rem; }
.site-footer nav { display: flex; gap: 23px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .75rem; }
.site-footer a:hover { color: var(--gold-bright); }
.back-to-top { margin-left: 20px; }

.catalogue-main { padding-top: 32px; }
.catalogue-banner { height: 106px; margin-bottom: 42px; background: linear-gradient(90deg, #130a0b00, #130a0bc2 65%, #130a0bd9), url('/assets/rngp-patcher-banner.png') center 45% / cover; border: 1px solid #76502e; border-radius: 6px; opacity: .9; }
.catalogue-heading h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 16px; }
.catalogue-description { color: var(--muted); margin-bottom: 24px; max-width: 720px; }
.catalogue-scope { display: flex; align-items: baseline; flex-wrap: wrap; gap: 15px 20px; margin-bottom: 35px; }
.era-tag { display: inline-block; border: 1px solid #75522f; background: #32121a; padding: 4px 11px; color: #d9b87d; font-size: .73rem; white-space: nowrap; }
.catalogue-scope p { margin: 0; font-size: .79rem; color: var(--faint); }
.catalogue-browser { background: #171214; border: 1px solid #5b432c; }
.loot-filters { padding: 27px 28px 24px; display: grid; grid-template-columns: minmax(230px, 1.6fr) minmax(130px, .8fr) minmax(115px, .7fr) minmax(145px, .9fr) auto; gap: 18px; align-items: end; border-bottom: 1px solid var(--line-quiet); background: linear-gradient(110deg, #28171a, #1b1416); }
.filter-field label { display: block; font-size: .72rem; font-weight: 600; color: #c9b697; margin-bottom: 9px; }
.filter-field input, .filter-field select { display: block; width: 100%; min-height: 43px; background: #0f0d0e; color: #e7dbca; border: 1px solid #5b4634; border-radius: 0; font-size: .84rem; padding: 9px 12px; }
.filter-field select { padding-right: 27px; }
.filter-field input::placeholder { color: #81756d; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; left: 13px; top: 13px; width: 17px; height: 17px; fill: none; stroke: #a98a58; stroke-width: 1.6; pointer-events: none; }
.search-input-wrap input { padding-left: 40px; }
.reset-filters { border: 0; background: transparent; padding: 12px 0 10px 2px; color: var(--gold-muted); font-size: .79rem; }
.reset-filters:hover { color: var(--gold-bright); }
.catalogue-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; }
.catalogue-results-heading p { font-size: .78rem; color: var(--muted); margin: 0; }
.page-size-label { display: flex; align-items: center; gap: 10px; font-size: .7rem; color: var(--faint); }
.page-size-label select { background: #20181a; border: 1px solid #53402e; color: var(--muted); padding: 2px 6px; font-size: .72rem; }
.table-scroll { overflow-x: auto; scrollbar-color: #745732 #181214; }
.table-scroll:focus-visible { outline-offset: -3px; }
.loot-table { border-collapse: collapse; width: 100%; font-size: .82rem; line-height: 1.6; }
.loot-table thead { background: #2c1d20; border-block: 1px solid #60442c; }
.loot-table th { text-align: left; white-space: nowrap; padding: 12px 20px; color: #ceb17b; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.loot-table th:first-child, .loot-table td:first-child { padding-left: 28px; }
.loot-table th:last-child, .loot-table td:last-child { padding-right: 28px; }
.loot-table td { vertical-align: top; padding: 17px 20px; border-bottom: 1px solid #35292a; color: #bdafa2; min-width: 135px; max-width: 430px; overflow-wrap: anywhere; }
.loot-table td:first-child { color: #e8d5b1; min-width: 205px; font-weight: 500; }
.loot-table tbody tr:nth-child(even) { background: #21171a70; }
.loot-table tbody tr:hover { background: #34202780; }
.loot-table td.table-message { text-align: center; padding: 65px 25px; color: var(--muted); font-weight: 400; }
.loot-table a { color: #dabd82; }
.loot-table .column-level { min-width: 78px; max-width: 110px; }
.loot-table .column-pool { min-width: 145px; }
.loot-table .column-source { min-width: 165px; }
.loot-table .column-loot { min-width: 270px; width: 35%; }
.record-kind { display: block; margin-top: 5px; color: #9e8055; font-size: .61rem; font-weight: 400; text-transform: uppercase; letter-spacing: .09em; }
.listed-loot { list-style: none; margin: 0; padding: 0; color: #d8c5a8; }
.listed-loot li + li { margin-top: 5px; }
.table-blank { color: #675d57; }
.catalogue-empty, .catalogue-error { text-align: center; padding: 50px 22px; border-block: 1px solid #493329; background: #201417; }
.catalogue-empty h2, .catalogue-error h2 { font-size: 1.65rem; margin-bottom: 12px; }
.catalogue-empty p, .catalogue-error p { color: var(--muted); font-size: .85rem; }
.catalogue-empty .button, .catalogue-error .button { min-height: 42px; font-size: .77rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; gap: 15px; }
.pagination p { margin: 0; color: var(--faint); font-size: .75rem; }
.pagination-button { border: 1px solid #684b31; color: #cfb680; background: #27171c; padding: 7px 15px; font-size: .76rem; }
.pagination-button:not(:disabled):hover { background: #4b1d26; }
.pagination-button:disabled { opacity: .35; }
.catalogue-source { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 22px; border-top: 1px solid var(--line-quiet); padding: 16px 28px; }
.catalogue-source p { font-size: .68rem; color: var(--faint); margin: 0; }
.catalogue-source .text-link { margin-left: auto; font-size: .69rem; }
.catalogue-help { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 35px 0 60px; }
.catalogue-help p { color: var(--muted); font-size: .85rem; margin: 0; }
.catalogue-help .text-link { font-size: .82rem; }
.noscript-note { padding: 15px 28px; border-top: 1px solid var(--line-quiet); color: var(--muted); font-size: .85rem; }

@media (max-width: 1100px) {
  .main-nav { gap: 22px; }
  .hero-intro { gap: 35px; }
  .hero-actions { max-width: 295px; }
  .hero-actions .button { gap: 15px; padding-inline: 20px; }
  .server-section { gap: 55px; grid-template-columns: 1fr 1.5fr; }
  .server-ledger > div { grid-template-columns: 145px 1fr; gap: 15px; }
  .ledger-number { margin-right: 12px; }
  .download-layout { gap: 45px; }
  .loot-filters { grid-template-columns: minmax(180px, 1.5fr) minmax(110px, .8fr) minmax(105px, .7fr) minmax(120px, 1fr) auto; gap: 12px; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 20px; }
  .page-width { width: calc(100% - 40px); }
  .section-space { padding-block: 62px; }
  .header-inner { min-height: 80px; width: calc(100% - 40px); gap: 20px; }
  .brand img { width: 43px; height: 43px; }
  .brand strong { font-size: 1.4rem; }
  .brand small { font-size: .59rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: #1c1115; border-bottom: 1px solid var(--line); padding: 16px 20px 22px; box-shadow: 0 20px 30px #0005; gap: 0; }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid #463027; }
  .main-nav .nav-download { text-align: center; margin-top: 15px; }
  .no-js .header-inner { flex-wrap: wrap; padding-top: 18px; }
  .no-js .nav-toggle { display: none; }
  .no-js .main-nav { display: flex; position: static; width: 100%; flex-wrap: wrap; padding: 0 0 16px; border: 0; box-shadow: none; gap: 8px 20px; }
  .no-js .main-nav a { border: 0; padding: 8px 0; }
  .no-js .main-nav .nav-download { margin: 0; padding: 8px 12px; }
  .hero { padding-top: 22px; }
  .hero-art { border-radius: 7px; }
  .hero-intro { grid-template-columns: 1fr; padding: 32px 4px 44px; gap: 26px; }
  .hero-copy .intro-text { max-width: 620px; }
  .hero-actions { max-width: none; gap: 18px; }
  .hero-actions .button { min-width: 275px; }
  .server-section { grid-template-columns: 1fr; gap: 30px; }
  .section-introduction p:not(.eyebrow) { max-width: 620px; }
  .server-ledger > div { grid-template-columns: 180px 1fr; }
  .callout-inner { align-items: start; flex-direction: column; gap: 24px; padding-block: 37px; }
  .download-layout { grid-template-columns: 1fr; gap: 38px; }
  .download-panel { max-width: none; padding: 30px; }
  .setup-steps { padding: 0 4px; }
  .community-section { grid-template-columns: 75px 1fr; gap: 24px; padding-bottom: 45px; }
  .community-mark { width: 75px; height: 75px; }
  .community-section .button { grid-column: 2; justify-self: start; }
  .site-footer { gap: 22px; }
  .site-footer > p { flex: 1 0 100%; }
  .site-footer nav { margin-right: auto; }
  .back-to-top { margin-left: 0; }
  .catalogue-main { padding-top: 24px; }
  .catalogue-banner { height: 85px; margin-bottom: 32px; }
  .catalogue-heading { padding-inline: 3px; }
  .loot-filters { grid-template-columns: 1fr 1fr; padding: 22px 20px; gap: 15px; }
  .search-field { grid-column: 1 / -1; }
  .reset-filters { grid-column: 1 / -1; justify-self: start; padding: 0; }
  .filter-field:has(#pool-filter) { grid-column: 1 / -1; }
  .catalogue-results-heading { padding: 16px 20px; }
  .loot-table th:first-child, .loot-table td:first-child { padding-left: 20px; }
  .loot-table th:last-child, .loot-table td:last-child { padding-right: 20px; }
  .pagination { padding: 16px 20px; }
  .catalogue-source { padding: 15px 20px; }
  .catalogue-help { padding-bottom: 45px; flex-direction: column; gap: 9px; }
}

@media (max-width: 480px) {
  .page-width, .header-inner { width: calc(100% - 28px); }
  .brand { gap: 10px; }
  .brand small { font-size: .54rem; letter-spacing: .06em; }
  .hero-art img { height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
  .hero-intro { padding-top: 27px; }
  h1 { font-size: 2.3rem; }
  .eyebrow { font-size: .65rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { min-width: 0; }
  .hero-actions .text-link { font-size: .8rem; }
  .action-note { font-size: .66rem; }
  .server-ledger > div { grid-template-columns: 1fr; gap: 7px; padding-block: 19px; }
  .server-ledger dd { padding-left: 30px; }
  .ledger-number { width: 18px; margin-right: 12px; }
  .section-heading-row { gap: 14px; }
  .download-panel { padding: 27px 23px; }
  .setup-steps li { grid-template-columns: 31px 1fr; gap: 14px; }
  .community-section { grid-template-columns: 56px 1fr; gap: 19px; }
  .community-mark { width: 56px; height: 56px; align-self: start; }
  .community-section h2 { font-size: 1.6rem; }
  .community-section .eyebrow { font-size: .6rem; }
  .community-section .button { grid-column: 1 / -1; justify-self: stretch; }
  .site-footer nav { width: 100%; gap: 22px; }
  .site-footer .back-to-top { font-size: .7rem; }
  .catalogue-banner { height: 69px; background-position: 40% 46%; }
  .catalogue-description { font-size: .9rem; }
  .catalogue-scope { margin-bottom: 25px; }
  .catalogue-scope p { font-size: .73rem; }
  .loot-filters { padding: 18px 15px; gap: 14px; }
  .filter-field label { font-size: .68rem; }
  .filter-field input, .filter-field select { font-size: .78rem; }
  .catalogue-results-heading { align-items: start; flex-direction: column; gap: 10px; padding-inline: 16px; }
  .catalogue-results-heading p { font-size: .72rem; }
  .pagination { padding-inline: 15px; gap: 10px; }
  .pagination-button { padding-inline: 10px; font-size: .69rem; }
  .pagination p { font-size: .67rem; }
  .catalogue-source { padding-inline: 16px; gap: 7px; flex-direction: column; }
  .catalogue-source .text-link { margin-left: 0; }
}

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