:root {
  --ink: #172326;
  --muted: #596767;
  --night: #071a28;
  --deep: #0c3140;
  --deep-green: #163b32;
  --stone: #dde1d9;
  --stone-dark: #b9c0b7;
  --paper: #f3ecd6;
  --paper-dark: #ded2ae;
  --gold: #d2a83e;
  --gold-light: #f1d778;
  --cyan: #20c5d7;
  --green: #61bd37;
  --purple: #8f5bd8;
  --yellow: #f2c72f;
  --danger: #bf5547;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 26, 40, 0.18);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: #071a28;
  background-image:
    linear-gradient(rgba(5, 20, 28, 0.28), rgba(5, 20, 28, 0.56)),
    url("/assets/gfx/runeworld-world-background.jpg");
  background-attachment: fixed;
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  font-size: 16px;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 34px;
}

[hidden] {
  display: none !important;
}

.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-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.page-band {
  position: relative;
  padding: 88px 0;
}

.eyebrow {
  margin-bottom: 12px;
  color: #0a7d8a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.primary-button,
.secondary-button,
.header-play,
.buy-button,
.vote-link,
.panel-bar button,
.name-setup button,
.confirm-step button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.primary-button,
.header-play,
.vote-link,
.buy-button {
  border-color: #efd77d;
  background: linear-gradient(180deg, #f4db77 0%, #d2a83e 52%, #a97b20 100%);
  color: #172326;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(90, 58, 8, 0.28), 0 8px 22px rgba(210, 168, 62, 0.34);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(7, 26, 40, 0.45);
  color: var(--white);
}

.primary-button:hover,
.secondary-button:hover,
.header-play:hover,
.vote-link:hover,
.buy-button:hover,
.panel-bar button:hover,
.name-setup button:hover,
.confirm-step button:hover {
  transform: translateY(-2px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

code {
  border: 1px solid var(--paper-dark);
  border-radius: 3px;
  background: rgba(210, 168, 62, 0.13);
  padding: 2px 6px;
  color: #715815;
  font-size: 0.9em;
}

.intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center;
  background-size: cover;
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.intro::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(3, 16, 24, 0.68);
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-panel {
  position: relative;
  z-index: 1;
  width: min(90vw, 830px);
  color: var(--white);
  text-align: center;
}

.intro-panel img {
  width: min(100%, 760px);
  margin: 0 auto 8px;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.46));
}

.intro-panel p {
  margin-bottom: 24px;
  color: #d8eff0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.status-rail {
  position: relative;
  z-index: 30;
  min-height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #06141d;
  color: #cfdadc;
  font-size: 12px;
  font-weight: 700;
}

.status-rail-inner,
.status-rail-links {
  display: flex;
  align-items: center;
}

.status-rail-inner {
  min-height: 36px;
  justify-content: space-between;
}

.status-rail-links {
  gap: 22px;
}

.status-rail a {
  color: var(--gold-light);
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bceca6;
}

.online-pill i {
  width: 8px;
  height: 8px;
  border: 1px solid #a5e98a;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(97, 189, 55, 0.9);
}

.online-pill.offline {
  color: #edb2aa;
}

.online-pill.offline i {
  border-color: #edb2aa;
  background: var(--danger);
  box-shadow: none;
}

.site-header {
  position: sticky;
  z-index: 25;
  top: 0;
  border-bottom: 3px solid var(--gold);
  background: rgba(7, 26, 40, 0.96);
  box-shadow: 0 9px 30px rgba(4, 14, 20, 0.3);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  min-height: 82px;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  width: 180px;
  height: 78px;
  align-items: center;
}

.brand img {
  width: auto;
  height: 72px;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.35));
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 13px;
  color: #d9e5e6;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a::after {
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 2px;
  content: "";
  background: transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(32, 197, 215, 0.75);
}

.header-play {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 5px solid var(--gold);
  background-image: url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center 48%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(3, 17, 25, 0.88) 0%, rgba(3, 17, 25, 0.68) 50%, rgba(3, 17, 25, 0.24) 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -92px;
  width: 390px;
  height: 390px;
  background: url("/assets/branding/runeworld-compass-world.png") center / contain no-repeat;
  content: "";
  opacity: 0.18;
  transform: rotate(8deg);
}

.hero-inner {
  display: flex;
  min-height: 620px;
  align-items: center;
}

.hero-copy {
  width: min(660px, 100%);
  padding: 38px 0 48px;
  color: var(--white);
}

.hero-copy .eyebrow {
  color: var(--gold-light);
}

.hero-logo {
  width: min(100%, 510px);
  margin: 0 0 10px -18px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.48));
  animation: crest-float 5s ease-in-out infinite;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 20px;
  color: #e9f1ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-tags span {
  border-left: 3px solid var(--cyan);
  border-radius: 2px;
  background: rgba(4, 20, 29, 0.72);
  padding: 7px 10px;
  color: #dcebec;
  font-size: 12px;
  font-weight: 800;
}

.quick-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--stone-dark);
  background-color: transparent;
  background-image:
    linear-gradient(90deg, rgba(235, 239, 232, 0.97) 0%, rgba(235, 239, 232, 0.91) 55%, rgba(235, 239, 232, 0.82) 100%);
}

.quick-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 22%, var(--cyan) 50%, var(--gold) 78%, transparent 100%);
  content: "";
  box-shadow: 0 0 18px rgba(32, 197, 215, 0.28);
}

.quick-section .site-shell {
  position: relative;
  z-index: 1;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading h2::after {
  display: block;
  width: 82px;
  height: 4px;
  margin-top: 16px;
  border-right: 22px solid var(--cyan);
  background: var(--gold);
  content: "";
  box-shadow: 0 0 14px rgba(32, 197, 215, 0.35);
}

.section-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-heading .eyebrow::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid #8c6b17;
  background: var(--gold-light);
  content: "";
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(210, 168, 62, 0.4);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 60px;
}

.split-heading > p,
.store-heading > p {
  margin-bottom: 3px;
  color: var(--muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  --quick-art: url("/assets/gfx/quick-play.jpg");
  position: relative;
  isolation: isolate;
  min-height: 224px;
  overflow: hidden;
  border: 1px solid #31505a;
  border-top: 4px solid var(--cyan);
  border-radius: 4px;
  background: var(--deep);
  padding: 28px 24px 24px;
  box-shadow: 0 12px 28px rgba(7, 26, 40, 0.2);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.quick-card::before {
  position: absolute;
  z-index: 1;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  content: "";
  pointer-events: none;
  transition: border-color 180ms ease;
}

.quick-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(3, 17, 25, 0.92) 0%, rgba(3, 17, 25, 0.69) 58%, rgba(3, 17, 25, 0.25) 100%), var(--quick-art);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.72;
  transition: opacity 180ms ease, transform 350ms ease;
}

.quick-card > * {
  position: relative;
  z-index: 2;
}

.quick-card:hover {
  transform: translateY(-5px);
  border-color: #8b9b91;
  box-shadow: var(--shadow);
}

.quick-card:hover::before {
  border-color: rgba(241, 215, 120, 0.58);
}

.quick-card:hover::after {
  opacity: 0.92;
  transform: scale(1.045);
}

.quick-card strong {
  display: block;
  margin: 20px 0 9px;
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.quick-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c5d9da;
  font-size: 14px;
}

.quick-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 3px;
  background: #0b6672;
  padding: 4px 9px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-play {
  --quick-art: url("/assets/gfx/quick-play.jpg");
}

.quick-rank {
  --quick-art: url("/assets/gfx/quick-highscores.jpg");
  border-top-color: var(--purple);
  background: #292248;
}

.quick-rank .quick-label {
  background: #68419f;
}

.quick-vote {
  --quick-art: url("/assets/gfx/quick-vote.jpg");
  border-top-color: var(--green);
  background: #1d452f;
}

.quick-vote .quick-label {
  background: #3e7b28;
}

.quick-store {
  --quick-art: url("/assets/gfx/quick-store.jpg");
  border-top-color: var(--yellow);
  background: #49391d;
}

.quick-store .quick-label {
  background: #8b7115;
}

.showcase-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 4px solid var(--gold);
  background-color: var(--night);
  background-image: linear-gradient(rgba(4, 21, 31, 0.87), rgba(4, 21, 31, 0.94)), url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}

.showcase-section::before,
.showcase-section::after {
  position: absolute;
  width: 330px;
  height: 5px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(32, 197, 215, 0.75), rgba(241, 215, 120, 0.85), transparent);
  content: "";
  box-shadow: 0 0 22px rgba(32, 197, 215, 0.24);
}

.showcase-section::before {
  top: 54px;
  left: -80px;
  transform: rotate(-22deg);
}

.showcase-section::after {
  right: -90px;
  bottom: 52px;
  transform: rotate(-22deg);
}

.showcase-watermark {
  position: absolute;
  top: 30px;
  right: -120px;
  width: 460px;
  opacity: 0.07;
  transform: rotate(10deg);
}

.showcase-heading {
  position: relative;
  z-index: 1;
}

.showcase-heading h2 {
  color: var(--white);
}

.showcase-heading > p {
  color: #bdd0d1;
}

.showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  grid-template-rows: repeat(2, 250px);
  gap: 16px;
}

.showcase-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 3px solid #365461;
  border-radius: 4px;
  background: #020b10;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.38), 0 0 24px rgba(32, 197, 215, 0.08);
}

.showcase-tile::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(241, 215, 120, 0.38);
  content: "";
  pointer-events: none;
}

.showcase-tile-large {
  grid-row: 1 / 3;
  border-color: #ad8731;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.48), 0 0 26px rgba(210, 168, 62, 0.14);
}

.showcase-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.showcase-tile-hub img {
  object-position: center 30%;
}

.showcase-tile-activity img {
  object-position: center 18%;
}

.showcase-tile:hover > img,
.showcase-tile:hover .mobile-device img {
  filter: saturate(1.14) contrast(1.04);
  transform: scale(1.035);
}

.mobile-showcase-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a2028;
}

.mobile-showcase-art::before {
  position: absolute;
  inset: -16px;
  background: url("/assets/gameplay/runeworld-mobile-client.jpg") center / cover no-repeat;
  content: "";
  filter: blur(7px) saturate(0.8) brightness(0.42);
  opacity: 0.72;
}

.mobile-device {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 50%;
  width: min(86%, 640px);
  aspect-ratio: 19 / 9;
  overflow: hidden;
  border: 9px solid #080d11;
  border-radius: 22px;
  background: #020608;
  box-shadow: 0 0 0 2px #c9a343, 0 24px 42px rgba(0, 0, 0, 0.48);
  transform: translateX(-50%);
}

.mobile-device::after {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  background: #26343a;
  content: "";
  transform: translateY(-50%);
}

.mobile-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease, filter 450ms ease;
}

.mobile-platform-badge {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 20px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(3, 17, 25, 0.92);
  padding: 6px 10px;
  color: #eef7ee;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-platform-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65c466;
  box-shadow: 0 0 10px rgba(101, 196, 102, 0.8);
}

.showcase-tile figcaption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  background: rgba(3, 17, 25, 0.91);
  padding: 13px 15px;
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 9px 22px rgba(0, 0, 0, 0.25);
}

.showcase-tile figcaption span,
.showcase-tile figcaption strong,
.showcase-tile figcaption p {
  display: block;
}

.showcase-tile figcaption span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.showcase-tile figcaption strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.showcase-tile figcaption p {
  margin: 4px 0 0;
  color: #c9d9d9;
  font-size: 12px;
}

.stats-band {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--deep-green);
  background-image: linear-gradient(90deg, rgba(8, 52, 43, 0.91), rgba(9, 61, 66, 0.82)), url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid > div {
  position: relative;
  min-height: 175px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding: 33px 42px;
  background: rgba(4, 24, 25, 0.18);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.36);
}

.stats-grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stats-grid span,
.stats-grid small {
  display: block;
}

.stats-grid span {
  color: #bdd9cf;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-grid strong {
  display: block;
  margin: 3px 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.2;
}

.stats-grid .leader-stat strong {
  overflow: hidden;
  font-size: 29px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 4px solid var(--gold);
  background-color: #102f35;
  background-image: linear-gradient(rgba(8, 39, 44, 0.9), rgba(9, 36, 43, 0.96)), url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}

.donor-section::before {
  position: absolute;
  top: 72px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(32, 197, 215, 0.25);
  box-shadow: 0 0 18px rgba(32, 197, 215, 0.35);
}

.donor-compass {
  position: absolute;
  top: 40px;
  right: -110px;
  width: 430px;
  opacity: 0.08;
  transform: rotate(-9deg);
}

.donor-inner {
  position: relative;
  z-index: 1;
}

.donor-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  margin-bottom: 32px;
}

.donor-heading h2 {
  margin-bottom: 13px;
  color: var(--white);
}

.donor-heading p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: #c6d7d5;
}

.donor-heading p strong {
  color: var(--gold-light);
}

.donor-reset {
  min-width: 190px;
  border-left: 4px solid var(--cyan);
  background: rgba(4, 21, 28, 0.68);
  padding: 14px 17px;
}

.donor-reset span,
.donor-reset strong,
.donor-reset small {
  display: block;
}

.donor-reset span {
  color: #95bec0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.donor-reset strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.donor-reset small {
  margin-top: 4px;
  color: #b8cccc;
  font-size: 10px;
}

.donor-reset code {
  border-color: rgba(241, 215, 120, 0.45);
  background: rgba(210, 168, 62, 0.14);
  color: var(--gold-light);
}

.reward-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.reward-tier {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--cyan);
  border-radius: 4px;
  background: rgba(5, 23, 29, 0.88);
  padding: 15px 18px;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.2);
}

.reward-tier > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(32, 197, 215, 0.22);
}

.reward-tier small,
.reward-tier strong {
  display: block;
}

.reward-tier small {
  color: #a9c2c3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.reward-tier strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.reward-first {
  border-top-color: var(--gold-light);
}

.reward-first > span {
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(241, 215, 120, 0.28);
}

.reward-third {
  border-top-color: #cb7956;
}

.reward-third > span {
  color: #e59670;
}

.donor-board {
  overflow: hidden;
  border: 2px solid #bb9942;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.donor-board-bar,
.donor-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 160px;
  align-items: center;
}

.donor-board-bar {
  min-height: 46px;
  background: #081d26;
  padding: 8px 22px;
  color: #9fc2c3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.donor-board-bar span:last-child {
  text-align: right;
}

.donor-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.donor-row {
  min-height: 66px;
  border-bottom: 1px solid #c9bea0;
  padding: 8px 22px;
  color: var(--ink);
}

.donor-row:last-child {
  border-bottom: 0;
}

.donor-row:nth-child(even) {
  background: #ebe4cf;
}

.donor-row.donor-rank-1 {
  border-left: 6px solid var(--gold);
  background: #fff4c9;
}

.donor-row.donor-rank-2 {
  border-left: 6px solid #84b7c1;
}

.donor-row.donor-rank-3 {
  border-left: 6px solid #cb7956;
}

.donor-rank {
  display: flex;
  align-items: center;
  gap: 11px;
}

.donor-rank b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.donor-rank small {
  color: #6d795f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.donor-name {
  min-width: 0;
  overflow: hidden;
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-row > strong {
  color: #806518;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-align: right;
}

.donor-row.vacant .donor-name,
.donor-row.vacant > strong {
  color: #89918a;
}

@keyframes crest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stats-grid small {
  color: #d7e4df;
}

.systems-section {
  position: relative;
  overflow: hidden;
  background-color: #d6dbd4;
  background-image: linear-gradient(90deg, rgba(225, 230, 222, 0.96), rgba(225, 230, 222, 0.84)), url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.systems-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 76px;
}

.systems-visual {
  position: relative;
  min-height: 510px;
}

.gameplay-frame {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 6px solid #26383a;
  border-radius: 3px;
  background: var(--night);
  box-shadow: 0 20px 48px rgba(7, 26, 40, 0.28);
}

.gameplay-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(241, 215, 120, 0.5);
  content: "";
  pointer-events: none;
}

.gameplay-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameplay-frame figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  background: rgba(4, 19, 27, 0.9);
  padding: 7px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.gameplay-main {
  inset: 0 78px 70px 0;
}

.gameplay-main img {
  object-position: center 18%;
}

.gameplay-inset {
  right: 0;
  bottom: 0;
  width: 47%;
  height: 245px;
  border-color: #ae8930;
}

.gameplay-inset img {
  object-position: center 18%;
}

.systems-mark {
  position: absolute;
  top: -34px;
  right: 35px;
  width: 112px;
  filter: drop-shadow(0 12px 22px rgba(7, 26, 40, 0.42));
}

.systems-copy h2 {
  max-width: 540px;
  margin-bottom: 20px;
}

.section-intro {
  margin-bottom: 29px;
  color: var(--muted);
  font-size: 17px;
}

.system-list {
  border-top: 1px solid #aeb7af;
}

.system-list article {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  border-bottom: 1px solid #aeb7af;
  padding: 18px 0;
}

.system-list article > span {
  color: #0b7f8d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.system-list strong {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.system-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.community-band {
  position: relative;
  border-top: 4px solid var(--gold);
  background-color: var(--night);
  background-image: linear-gradient(90deg, rgba(4, 20, 29, 0.96) 0%, rgba(4, 20, 29, 0.84) 58%, rgba(4, 20, 29, 0.56) 100%), url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center 44%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}

.community-inner {
  display: grid;
  min-height: 260px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.community-inner h2 {
  margin-bottom: 12px;
  color: var(--white);
}

.community-inner p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: #cbdadc;
}

.route-hero {
  position: relative;
  min-height: 300px;
  isolation: isolate;
  border-bottom: 4px solid var(--gold);
  background-image: url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center 44%;
  background-size: cover;
}

.route-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 24, 35, 0.93) 0%, rgba(5, 24, 35, 0.78) 65%, rgba(5, 24, 35, 0.62) 100%);
}

.view.route-view > .page-band {
  background-color: transparent;
  background-image: linear-gradient(rgba(231, 235, 228, 0.95), rgba(231, 235, 228, 0.91));
}

.route-hero-inner {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
  padding-top: 45px;
  padding-bottom: 45px;
  color: var(--white);
}

.route-hero h1 {
  margin-bottom: 12px;
  color: var(--white);
}

.route-hero .eyebrow {
  color: var(--gold-light);
}

.route-hero p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: #dce8e7;
  font-size: 18px;
}

.route-layout,
.vote-layout,
.hiscore-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.route-aside,
.hiscore-aside {
  border-top: 4px solid var(--gold);
  background-color: var(--deep);
  background-image: linear-gradient(rgba(12, 49, 64, 0.89), rgba(7, 32, 43, 0.96)), url("/assets/branding/runeworld-compass-icon.png");
  background-position: center, right -54px top 18px;
  background-repeat: no-repeat;
  background-size: auto, 190px;
  padding: 30px;
  color: #d8e5e5;
  box-shadow: var(--shadow);
}

.route-aside > img,
.hiscore-aside > img {
  width: 92px;
  margin: -8px 0 18px;
}

.route-aside h2,
.hiscore-aside h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 28px;
}

.route-aside p:not(.eyebrow),
.hiscore-aside p:not(.eyebrow) {
  color: #ccdddd;
  font-size: 14px;
}

.route-points {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.route-points span {
  border-left: 3px solid var(--cyan);
  padding-left: 11px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.hub-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid #aa8b3e;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 22px 48px rgba(7, 26, 40, 0.2);
}

.panel-bar {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #c8bea1;
  padding: 20px 24px;
}

.panel-bar .eyebrow {
  margin-bottom: 4px;
}

.panel-bar h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.panel-bar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.panel-bar button {
  min-height: 38px;
  border-color: #617272;
  background: transparent;
  padding: 8px 15px;
  color: var(--deep);
  font-size: 13px;
}

.launcher-list {
  display: grid;
  gap: 1px;
  background: #c8bea1;
}

.launcher-row {
  display: grid;
  min-height: 86px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  background: var(--paper);
  padding: 14px 20px;
  transition: background-color 160ms ease;
}

.launcher-row:hover {
  background: #fff8e5;
}

.launcher-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
}

.launcher-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.launcher-row strong,
.launcher-row small {
  display: block;
}

.launcher-row strong {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.launcher-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.launcher-row b {
  color: #087b88;
  font-size: 13px;
}

.empty-state {
  background: var(--paper);
  padding: 45px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--night);
}

.form-panel {
  padding: 30px;
}

.form-panel h2 {
  margin-bottom: 11px;
  font-size: 27px;
}

.form-panel > p:not(.eyebrow):not(.form-message) {
  color: var(--muted);
}

.name-setup {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

label {
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #8f9c93;
  border-radius: 3px;
  background: #fffdf5;
  padding: 10px 12px;
  color: var(--ink);
}

input::placeholder {
  color: #88928e;
}

textarea::placeholder {
  color: #88928e;
}

.name-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 4px solid var(--green);
  background: rgba(97, 189, 55, 0.12);
  margin-top: 24px;
  padding: 12px 14px;
}

.name-confirmed button,
.confirm-step button:last-of-type {
  min-height: 36px;
  border: 1px solid #74817b;
  border-radius: 3px;
  background: transparent;
  padding: 7px 11px;
  cursor: pointer;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 13px 0 0;
  color: #9e332a;
  font-size: 13px;
  font-weight: 700;
}

.vote-content {
  min-width: 0;
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: 28px;
}

.vote-sites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vote-site {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  border: 1px solid #aab3ab;
  border-top: 4px solid var(--cyan);
  border-radius: 4px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(243, 236, 214, 0.94), rgba(243, 236, 214, 0.98)), url("/assets/branding/runeworld-compass-icon.png");
  background-position: center, right -44px top -44px;
  background-repeat: no-repeat;
  background-size: auto, 155px;
  padding: 24px;
  box-shadow: 0 9px 24px rgba(23, 35, 38, 0.11);
}

.vote-site:nth-child(2n) {
  border-top-color: var(--green);
}

.vote-site h2 {
  margin-bottom: 9px;
  font-size: 23px;
}

.vote-site p {
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
}

.vote-status {
  display: block;
  min-height: 40px;
  margin-bottom: 13px;
  color: #2e6e39;
  font-size: 12px;
}

.vote-site.voted {
  border-top-color: #7f8a83;
}

.vote-site.voted .vote-status {
  color: var(--muted);
}

.vote-link {
  width: 100%;
}

.vote-link.disabled,
.buy-button:disabled {
  border-color: #a5aaa6;
  background: #c5c9c4;
  box-shadow: none;
  color: #69726d;
  cursor: not-allowed;
  pointer-events: none;
}

.store-name-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr);
  gap: 55px;
  margin-bottom: 55px;
}

.store-name-controls {
  min-width: 0;
}

.store-name-controls .name-setup {
  margin-top: 0;
}

.confirm-step {
  border-left: 4px solid var(--gold);
  background: rgba(210, 168, 62, 0.12);
  padding: 15px;
}

.confirm-step p {
  margin-bottom: 14px;
  font-size: 14px;
}

.confirm-step .primary-button {
  margin-right: 5px;
}

.store-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 50px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.store-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  border: 1px solid #aeb7af;
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(243, 236, 214, 0.93), rgba(243, 236, 214, 0.99)), url("/assets/branding/runeworld-compass-icon.png");
  background-position: center, right -52px top -50px;
  background-repeat: no-repeat;
  background-size: auto, 170px;
  padding: 26px;
  box-shadow: 0 10px 25px rgba(23, 35, 38, 0.12);
}

.store-card-top {
  display: flex;
  min-height: 68px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.store-item-icon {
  width: 72px;
  height: 64px;
  flex: 0 0 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 4px rgba(23, 35, 38, 0.22));
}

.store-card:nth-child(3n + 2) {
  border-top-color: var(--cyan);
}

.store-card:nth-child(3n) {
  border-top-color: var(--purple);
}

.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 3px;
  background: var(--deep);
  padding: 4px 9px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-card h2 {
  margin: 12px 0 10px;
  font-size: 25px;
}

.store-card p {
  min-height: 74px;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.price {
  display: block;
  margin: 18px 0;
  color: #786017;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.paypal-slot,
.buy-button {
  width: 100%;
}

.paypal-slot:empty {
  display: none;
}

.hiscore-aside label {
  display: block;
  margin: 24px 0 8px;
  color: #cfe1df;
}

.hiscore-aside select {
  border-color: rgba(255, 255, 255, 0.3);
  background: #eff5ef;
}

.hiscore-panel {
  min-width: 0;
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #c8bea1;
  padding: 15px 16px;
  text-align: left;
}

th {
  background: #e0d7bd;
  color: var(--deep);
  font-size: 11px;
  text-transform: uppercase;
}

td {
  color: #455252;
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.hiscore-player {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #087b88;
  font-weight: 800;
  text-align: left;
}

.skill-detail-row td {
  background: #dce5dc;
  padding: 16px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.skill-pill {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  border: 1px solid #b0b9b0;
  border-radius: 3px;
  background: #f5f1e3;
  padding: 8px 9px;
}

.skill-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.skill-name strong {
  overflow: hidden;
  color: var(--night);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-icon-frame {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
}

.skill-icon {
  max-width: 22px;
  max-height: 22px;
}

.skill-icon-frame.missing {
  border: 1px solid #a7b0a9;
  border-radius: 50%;
}

.skill-icon-frame.missing .skill-icon {
  display: none;
}

.skill-pill em {
  color: #2c6d3b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.skill-pill small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.forum-hero,
.account-hero {
  background-position: center 52%;
}

.forum-page-band,
.account-page-band {
  background-color: rgba(226, 232, 224, 0.94);
  background-image: linear-gradient(rgba(226, 232, 224, 0.91), rgba(226, 232, 224, 0.96)), url("/assets/gfx/runeworld-world-background.jpg");
  background-position: center;
  background-size: cover;
}

.forum-command-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 3px solid var(--gold);
  background: #071a28;
  padding: 9px 14px;
  color: #d9e8e8;
  box-shadow: 0 12px 28px rgba(7, 26, 40, 0.2);
}

.forum-breadcrumbs,
.forum-account-controls,
.forum-inline-actions,
.forum-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.forum-breadcrumbs button,
.forum-account-controls button,
.forum-inline-actions button,
.forum-pagination button,
.forum-board-row button,
.forum-thread-row button,
.forum-recent-list button,
.forum-text-button,
.account-logout {
  border: 0;
  background: transparent;
  padding: 4px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.forum-breadcrumbs button,
.forum-account-controls button {
  color: #d9e8e8;
  font-size: 13px;
}

.forum-breadcrumbs button::after {
  margin-left: 10px;
  color: var(--gold-light);
  content: "/";
}

.forum-breadcrumbs button:last-child::after {
  display: none;
}

.forum-account-controls strong {
  color: var(--gold-light);
  font-size: 13px;
}

.forum-welcome {
  display: grid;
  min-height: 92px;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-right: 1px solid #a8955c;
  border-bottom: 1px solid #a8955c;
  border-left: 1px solid #a8955c;
  background: rgba(247, 242, 223, 0.96);
  padding: 13px 18px;
}

.forum-welcome img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.forum-welcome .eyebrow {
  margin-bottom: 4px;
}

.forum-welcome strong {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.forum-welcome > a {
  border-left: 3px solid var(--cyan);
  background: #0c3140;
  padding: 9px 13px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.forum-flash {
  min-height: 26px;
  margin: 12px 0;
  color: #9e332a;
  font-size: 13px;
  font-weight: 800;
}

.forum-flash.success {
  color: #286b39;
}

.forum-root {
  min-height: 320px;
}

.forum-loading {
  border: 1px solid #b7aa83;
  background: var(--paper);
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.forum-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 20px;
}

.forum-board-stack,
.forum-sidebar,
.forum-thread-stack,
.forum-post-stack {
  display: grid;
  gap: 18px;
}

.forum-board-group,
.forum-side-panel,
.forum-thread-panel,
.forum-composer,
.forum-post {
  border: 1px solid #9b8d64;
  background: rgba(247, 242, 223, 0.98);
  box-shadow: 0 13px 28px rgba(7, 26, 40, 0.14);
}

.forum-group-heading,
.forum-side-heading,
.forum-list-heading {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid var(--gold);
  background: #0b3340;
  padding: 10px 15px;
  color: var(--white);
}

.forum-group-heading h2,
.forum-side-heading h2,
.forum-list-heading h2 {
  margin: 0;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
}

.forum-group-heading span,
.forum-list-heading span {
  color: #bfd4d5;
  font-size: 11px;
}

.forum-column-labels,
.forum-board-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 118px minmax(210px, 0.65fr);
  align-items: center;
}

.forum-column-labels {
  min-height: 30px;
  border-bottom: 1px solid #c8bea1;
  background: #ded6bc;
  color: #52605d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.forum-column-labels span:nth-child(2) {
  grid-column: 2;
}

.forum-column-labels span:nth-child(3),
.forum-column-labels span:nth-child(4) {
  text-align: center;
}

.forum-board-row {
  min-height: 92px;
  border-bottom: 1px solid #c8bea1;
  transition: background-color 160ms ease;
}

.forum-board-row:last-child {
  border-bottom: 0;
}

.forum-board-row:hover,
.forum-thread-row:hover {
  background: #fff9e7;
}

.forum-board-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  justify-self: center;
  border: 2px solid #b78e2c;
  background: #0c6170;
  box-shadow: inset 0 0 0 4px #0b3340, 0 0 12px rgba(32, 197, 215, 0.3);
  transform: rotate(45deg);
}

.forum-board-icon::after {
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  content: "";
}

.forum-board-icon.private {
  border-color: #8b65c2;
  background: #4a3971;
}

.forum-board-main {
  min-width: 0;
  padding: 14px 12px 14px 4px;
}

.forum-board-main button,
.forum-thread-row button,
.forum-recent-list button {
  color: #087b88;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.forum-board-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.forum-board-stats {
  border-right: 1px solid #c8bea1;
  border-left: 1px solid #c8bea1;
  padding: 8px;
  color: #58645f;
  font-size: 11px;
  text-align: center;
}

.forum-board-stats strong {
  display: block;
  color: var(--deep);
  font-size: 16px;
}

.forum-latest {
  min-width: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
}

.forum-latest button {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--night);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-latest span,
.forum-latest time {
  display: block;
}

.forum-latest b {
  color: #087b88;
}

.forum-side-panel {
  overflow: hidden;
}

.forum-recent-list,
.forum-poster-list {
  display: grid;
}

.forum-recent-item,
.forum-poster-item {
  border-bottom: 1px solid #c8bea1;
  padding: 12px 14px;
}

.forum-recent-item:last-child,
.forum-poster-item:last-child {
  border-bottom: 0;
}

.forum-recent-list button {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-recent-item small,
.forum-poster-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.forum-poster-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.forum-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #a98731;
  border-radius: 50%;
  background: #0c3140;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.forum-avatar.avatar-gold,
.avatar-swatch.avatar-gold {
  border-color: #f1cf58;
  background: #8b5b0d;
  color: #fff4bd;
}

.forum-avatar.avatar-green,
.avatar-swatch.avatar-green {
  border-color: #72ba65;
  background: #245c32;
  color: #e3ffd8;
}

.forum-avatar.avatar-blue,
.avatar-swatch.avatar-blue {
  border-color: #63aee9;
  background: #174f7a;
  color: #e0f4ff;
}

.forum-avatar.avatar-purple,
.avatar-swatch.avatar-purple {
  border-color: #a98ad7;
  background: #53377a;
  color: #f3e8ff;
}

.forum-avatar.avatar-crimson,
.avatar-swatch.avatar-crimson {
  border-color: #da746e;
  background: #7b292c;
  color: #ffe8e3;
}

.forum-poster-item strong {
  color: var(--night);
  font-size: 13px;
}

.forum-poster-name,
.forum-author-name,
.rank-name {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #087b88;
  font-weight: 800;
}

.forum-poster-name {
  display: flex;
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-profile-username {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0c3140;
  color: #c9dddd;
}

.forum-community-stats span {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 8px;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
}

.forum-community-stats span:last-child {
  border-right: 0;
}

.forum-community-stats strong {
  display: block;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.forum-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.forum-list-toolbar h2 {
  margin: 0;
  font-size: 26px;
}

.forum-list-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.forum-action-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #efd77d;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4db77, #c8952e);
  padding: 9px 15px;
  color: #172326;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.forum-thread-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr) 90px 190px;
  align-items: center;
  border-bottom: 1px solid #c8bea1;
  padding: 8px 12px;
}

.forum-thread-row:last-child {
  border-bottom: 0;
}

.forum-thread-row .forum-board-icon {
  width: 25px;
  height: 25px;
}

.forum-thread-title {
  min-width: 0;
}

.forum-thread-title button {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-thread-title small,
.forum-thread-activity {
  color: var(--muted);
  font-size: 10px;
}

.forum-thread-numbers {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.forum-thread-numbers strong {
  display: block;
  color: var(--deep);
  font-size: 15px;
}

.forum-composer {
  margin-bottom: 18px;
  padding: 22px;
}

.forum-composer h2 {
  margin-bottom: 16px;
  font-size: 23px;
}

.forum-composer-grid {
  display: grid;
  gap: 10px;
}

.forum-composer textarea,
.forum-edit-form textarea {
  min-height: 160px;
  resize: vertical;
}

.forum-pagination {
  justify-content: flex-end;
  margin-top: 14px;
}

.forum-pagination button {
  min-width: 36px;
  min-height: 34px;
  border: 1px solid #8e9b92;
  background: #f8f2df;
  padding: 6px 10px;
  color: var(--deep);
  text-align: center;
}

.forum-pagination button.active {
  border-color: var(--gold);
  background: var(--deep);
  color: var(--white);
}

.forum-topic-header {
  margin-bottom: 16px;
  border-left: 5px solid var(--gold);
  background: rgba(7, 26, 40, 0.93);
  padding: 17px 20px;
  color: #c9dddd;
}

.forum-topic-header h2 {
  margin: 3px 0 7px;
  color: var(--white);
  font-size: 27px;
}

.forum-topic-header p {
  margin: 0;
  font-size: 12px;
}

.forum-post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.forum-post-author {
  border-right: 1px solid #c8bea1;
  background: #ded7bd;
  padding: 20px;
  text-align: center;
}

.forum-post-author .forum-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  font-size: 25px;
}

.forum-post-author strong,
.forum-post-author small {
  display: block;
}

.forum-post-author strong {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.forum-post-author small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.forum-role {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  border-radius: 2px;
  background: #506861;
  padding: 3px 7px;
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.forum-role.admin {
  background: #800080;
}

.forum-role.moderator {
  background: #696969;
}

.forum-role.donator { background: #db5b58; }
.forum-role.super_donator { background: #1e90ff; }
.forum-role.elite_donator { background: #27ae60; }
.forum-role.noble_donator { background: #8d501b; }
.forum-role.gold_donator { background: #f7e521; color: #252000; }
.forum-role.platinum_donator { background: #78757a; }
.forum-role.legendary_donator { background: #e121f7; }
.forum-role.supreme_donator { background: #fc7306; color: #241000; }
.forum-role.server_support { background: #0040ff; }

.rank-member { color: #47635c; }
.rank-donator { color: #b43b38; }
.rank-super_donator { color: #086fc9; }
.rank-elite_donator { color: #187b43; }
.rank-noble_donator { color: #8d501b; }
.rank-gold_donator { color: #8a7800; }
.rank-platinum_donator { color: #666368; }
.rank-legendary_donator { color: #b414c5; }
.rank-supreme_donator { color: #c95700; }
.rank-server_support { color: #0038dc; }
.rank-moderator { color: #696969; }
.rank-admin { color: #800080; }

.forum-rank-icon {
  width: 26px;
  height: 18px;
  flex: none;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
}

.forum-rank-icon-badge,
.forum-rank-icon-legend {
  width: 22px;
  height: 16px;
}

.forum-rank-icon-online {
  width: 15px;
  height: 13px;
}

.forum-author-name {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-author-online,
.member-profile-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 7px;
  color: #27743f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.forum-author-online i,
.member-profile-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43b95e;
  box-shadow: 0 0 0 2px rgba(67, 185, 94, 0.18);
}

.forum-post-author .forum-author-title {
  color: #8a6a16;
  font-weight: 800;
}

.forum-post-content {
  min-width: 0;
}

.forum-post-meta {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #c8bea1;
  padding: 8px 15px;
  color: var(--muted);
  font-size: 10px;
}

.forum-inline-actions button,
.forum-text-button,
.account-logout {
  color: #087b88;
  font-size: 11px;
}

.forum-post-body {
  min-height: 130px;
  padding: 22px;
  color: #334140;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.forum-post-signature {
  min-height: 46px;
  margin: 0 22px 18px;
  border-top: 1px solid #cfc6a8;
  padding: 12px 0 0;
  color: #66736e;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.forum-online-panel {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid #bcb395;
  border-top: 3px solid var(--gold);
  background: #f6f0dc;
  box-shadow: 0 10px 22px rgba(6, 20, 29, 0.12);
}

.forum-online-heading {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #0b3340;
  padding: 13px 18px;
  color: #c2d7d7;
}

.forum-online-heading .eyebrow {
  margin-bottom: 2px;
}

.forum-online-heading h2 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
}

.forum-online-heading > span {
  font-size: 11px;
}

.forum-online-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 52px;
  align-items: center;
  padding: 12px 18px;
}

.forum-online-member {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 3px 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
}

.forum-online-member:hover,
.forum-online-member:focus-visible {
  background: rgba(8, 123, 136, 0.09);
}

.forum-online-username {
  white-space: nowrap;
}

.forum-online-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.forum-rank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  border-top: 1px solid #d1c8aa;
  padding: 10px 18px;
  background: #e7dfc5;
}

.forum-rank-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.forum-edit-form {
  display: grid;
  gap: 10px;
  padding: 18px 22px;
}

.account-gate,
.account-member {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.account-panel,
.account-profile-form {
  min-height: 100%;
}

.account-fields {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.account-fields label span {
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
}

.account-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 9px;
  margin: 8px 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
}

.account-check input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
}

.account-profile-card {
  border-top: 4px solid var(--gold);
  background: rgba(7, 26, 40, 0.96);
  padding: 32px;
  color: #c9dddd;
  box-shadow: var(--shadow);
  text-align: center;
}

.account-profile-card > .forum-avatar {
  width: 94px;
  height: 94px;
  margin: 0 auto 16px;
  border-width: 3px;
  font-size: 40px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.account-profile-card.theme-compass,
.member-profile-card.theme-compass { background-color: #071f2b; background-image: linear-gradient(135deg, rgba(6, 25, 35, 0.96), rgba(13, 72, 79, 0.88)), url("/assets/branding/runeworld-compass-world.png"); }
.account-profile-card.theme-wilderness,
.member-profile-card.theme-wilderness { background-color: #17311e; background-image: linear-gradient(135deg, rgba(15, 42, 23, 0.96), rgba(83, 75, 22, 0.9)), url("/assets/branding/runeworld-compass-world.png"); }
.account-profile-card.theme-ocean,
.member-profile-card.theme-ocean { background-color: #0b3550; background-image: linear-gradient(135deg, rgba(7, 41, 63, 0.97), rgba(14, 93, 99, 0.88)), url("/assets/branding/runeworld-compass-world.png"); }
.account-profile-card.theme-royal,
.member-profile-card.theme-royal { background-color: #392a54; background-image: linear-gradient(135deg, rgba(48, 31, 72, 0.97), rgba(122, 73, 48, 0.9)), url("/assets/branding/runeworld-compass-world.png"); }

.account-profile-card,
.member-profile-card {
  background-position: center, right -130px center;
  background-repeat: no-repeat;
  background-size: auto, 430px;
}

.account-profile-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 5px;
  color: var(--white);
}

.account-profile-card > p {
  color: #afc5c5;
  font-size: 12px;
}

.account-custom-title {
  display: block;
  margin-top: 6px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.account-online-state {
  margin-top: 6px;
}

.account-swatch-field {
  margin: 3px 0;
  border: 0;
  padding: 0;
}

.account-swatch-field legend {
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.account-swatches label {
  position: relative;
  cursor: pointer;
}

.account-swatches input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-swatch {
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid #8ea9a6;
  border-radius: 50%;
  background: #0c6170;
}

.account-swatches input:checked + .avatar-swatch {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.account-admin-panel {
  grid-column: 1 / -1;
  padding: 26px;
}

.account-rank-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 10px 14px;
  margin-top: 18px;
}

.account-rank-form label {
  grid-row: 1;
}

.account-rank-form input,
.account-rank-form select,
.account-rank-form button {
  grid-row: 2;
}

.member-profile-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.member-profile-modal[hidden] {
  display: none;
}

.member-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 18, 0.78);
}

.member-profile-card {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #d5bc63;
  border-top: 4px solid var(--gold);
  color: #d3dfdf;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.member-profile-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.member-profile-content {
  padding: 30px;
}

.member-profile-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.member-profile-header .forum-avatar {
  width: 72px;
  height: 72px;
  font-size: 29px;
}

.member-profile-header h2 {
  margin: 1px 0 6px;
  font-size: 28px;
}

.member-profile-rank-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.member-profile-title {
  margin: 18px 0 12px;
  border-left: 3px solid var(--gold);
  padding: 7px 11px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.member-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.member-profile-stats span {
  min-width: 0;
  background: rgba(5, 22, 30, 0.78);
  padding: 12px;
  color: #9fb9b9;
  font-size: 9px;
  text-transform: uppercase;
}

.member-profile-stats strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.member-profile-location {
  color: #b8cccc;
  font-size: 11px;
}

.member-profile-bio,
.member-profile-recent {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

.member-profile-bio h3,
.member-profile-recent h3 {
  margin: 0 0 9px;
  color: var(--gold-light);
  font-size: 14px;
  text-transform: uppercase;
}

.member-profile-bio p,
.member-profile-empty {
  margin: 0;
  color: #d3dfdf;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.member-profile-recent button {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 9px 0;
  color: #fff;
  text-align: left;
}

.member-profile-recent button:last-child {
  border-bottom: 0;
}

.member-profile-recent strong,
.member-profile-recent small {
  display: block;
}

.member-profile-recent small {
  margin-top: 3px;
  color: #abc1c1;
  font-size: 9px;
}

body.modal-open {
  overflow: hidden;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.14);
}

.account-stats span {
  background: #0b3340;
  padding: 14px 8px;
  color: #a9c1c2;
  font-size: 10px;
  text-transform: uppercase;
}

.account-stats strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.account-logout {
  justify-self: start;
  margin-top: 5px;
}

.site-footer {
  border-top: 4px solid var(--gold);
  background-color: #06141d;
  background-image: linear-gradient(90deg, rgba(6, 20, 29, 0.98), rgba(6, 20, 29, 0.9)), url("/assets/branding/runeworld-compass-world.png");
  background-position: center, right -130px center;
  background-repeat: no-repeat;
  background-size: auto, 520px;
  color: #b9c9ca;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 70px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.footer-brand img {
  width: 250px;
  margin-bottom: 11px;
}

.footer-brand p {
  max-width: 430px;
  margin-bottom: 0;
  color: #aabbbc;
  font-size: 13px;
}

.footer-grid h2 {
  margin-bottom: 17px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-grid a {
  color: #c5d4d4;
  font-size: 13px;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  color: #7f9495;
  font-size: 11px;
}

.footer-bottom .site-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: 185px 1fr auto;
    gap: 15px;
  }

  .brand {
    width: 165px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 13px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  }

  .systems-layout {
    grid-template-columns: 1fr;
  }

  .systems-visual {
    width: min(760px, 100%);
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-overview-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .forum-column-labels,
  .forum-board-row {
    grid-template-columns: 48px minmax(0, 1fr) 100px minmax(185px, 0.6fr);
  }
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .page-band {
    padding: 64px 0;
  }

  .status-rail-inner > span:first-child,
  .status-rail-links a {
    display: none;
  }

  .status-rail-inner {
    justify-content: flex-end;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 72px;
  }

  .brand {
    width: 170px;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
  }

  .header-play {
    grid-column: 3;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 3px solid var(--gold);
    background: #071a28;
    padding: 9px max(20px, calc((100% - var(--shell)) / 2));
    box-shadow: 0 16px 30px rgba(3, 12, 18, 0.35);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 2px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 570px;
  }

  .hero-logo {
    margin-left: -14px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .split-heading,
  .store-heading,
  .store-name-panel,
  .community-inner,
  .donor-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 390px 250px 250px;
  }

  .showcase-tile-large {
    grid-row: auto;
  }

  .mobile-device {
    top: 18px;
    width: min(76%, 500px);
  }

  .donor-reset {
    width: min(100%, 260px);
  }

  .donor-board-bar,
  .donor-row {
    grid-template-columns: 110px minmax(0, 1fr) 135px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid > div,
  .stats-grid > div:first-child {
    min-height: 130px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 24px 4px;
  }

  .stats-grid strong {
    font-size: 34px;
  }

  .community-inner {
    min-height: 320px;
    align-content: center;
  }

  .route-layout,
  .vote-layout,
  .hiscore-layout {
    grid-template-columns: 1fr;
  }

  .route-aside,
  .hiscore-aside {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 22px;
  }

  .route-aside > img,
  .hiscore-aside > img {
    grid-row: 1 / 5;
  }

  .route-aside .route-points,
  .hiscore-aside label,
  .hiscore-aside select {
    grid-column: 2;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .store-card {
    min-height: 0;
  }

  .store-card p {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.6fr 0.6fr;
    gap: 30px;
  }

  .forum-overview-grid,
  .account-gate,
  .account-member {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-sidebar .forum-side-panel:last-child {
    grid-column: 1 / -1;
  }

  .forum-column-labels,
  .forum-board-row {
    grid-template-columns: 48px minmax(0, 1fr) 96px minmax(175px, 0.58fr);
  }

  .forum-post {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .forum-post-author {
    padding: 18px 12px;
  }

  .account-rank-form {
    grid-template-columns: 1fr 1fr;
  }

  .account-rank-form button {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 590px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .status-rail-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    width: 160px;
  }

  .header-play {
    display: none;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .hero,
  .hero-inner {
    min-height: 540px;
  }

  .hero-copy {
    padding: 54px 0 64px;
  }

  .hero-logo {
    width: calc(100% + 22px);
    max-width: none;
    margin-left: -13px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .hero-actions a,
  .community-actions,
  .community-actions a {
    width: 100%;
  }

  .quick-grid,
  .vote-sites {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-rows: 330px 220px 220px;
  }

  .mobile-device {
    top: 16px;
    width: 91%;
    border-width: 6px;
    border-radius: 16px;
  }

  .mobile-platform-badge {
    top: 10px;
    left: 10px;
    min-height: 26px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .showcase-tile figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 10px 11px;
  }

  .showcase-tile figcaption strong {
    font-size: 17px;
  }

  .showcase-tile figcaption p {
    display: none;
  }

  .reward-row {
    grid-template-columns: 1fr;
  }

  .reward-tier {
    min-height: 76px;
  }

  .donor-board-bar,
  .donor-row {
    grid-template-columns: 70px minmax(0, 1fr) 82px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .donor-board-bar span:first-child {
    font-size: 0;
  }

  .donor-board-bar span:first-child::after {
    content: "#";
    font-size: 10px;
  }

  .donor-rank small {
    display: none;
  }

  .donor-name,
  .donor-row > strong {
    font-size: 14px;
  }

  .quick-card {
    min-height: 190px;
  }

  .systems-layout {
    gap: 48px;
  }

  .systems-visual {
    min-height: 390px;
  }

  .gameplay-main {
    right: 28px;
    bottom: 75px;
  }

  .gameplay-inset {
    width: 58%;
    height: 175px;
  }

  .systems-mark {
    top: -28px;
    right: 5px;
    width: 85px;
  }

  .gameplay-frame figcaption {
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    font-size: 10px;
  }

  .route-hero,
  .route-hero-inner {
    min-height: 260px;
  }

  .route-aside,
  .hiscore-aside {
    display: block;
  }

  .route-aside > img,
  .hiscore-aside > img {
    width: 75px;
  }

  .panel-bar,
  .launcher-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .launcher-row {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .launcher-row b {
    display: none;
  }

  .form-panel {
    padding: 22px;
  }

  .store-name-panel {
    margin-bottom: 40px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom .site-shell {
    flex-direction: column;
    gap: 5px;
  }

  .forum-command-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-welcome {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 12px;
  }

  .forum-welcome img {
    width: 46px;
    height: 46px;
  }

  .forum-welcome strong {
    font-size: 15px;
  }

  .forum-welcome > a {
    display: none;
  }

  .forum-sidebar {
    grid-template-columns: 1fr;
  }

  .forum-sidebar .forum-side-panel:last-child {
    grid-column: auto;
  }

  .forum-column-labels {
    display: none;
  }

  .forum-board-row {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 8px 7px;
  }

  .forum-board-main {
    padding: 10px 6px;
  }

  .forum-board-main button {
    font-size: 16px;
  }

  .forum-board-stats {
    display: flex;
    grid-column: 2;
    gap: 14px;
    border: 0;
    padding: 0 6px 6px;
    text-align: left;
  }

  .forum-board-stats strong {
    display: inline;
    margin-right: 3px;
    font-size: 12px;
  }

  .forum-latest {
    grid-column: 2;
    border-top: 1px solid #d3c9aa;
    padding: 8px 6px 5px;
  }

  .forum-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .forum-action-button {
    width: 100%;
  }

  .forum-thread-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 8px;
  }

  .forum-thread-numbers,
  .forum-thread-activity {
    grid-column: 2;
    text-align: left;
  }

  .forum-thread-numbers strong {
    display: inline;
    margin-right: 3px;
    font-size: 11px;
  }

  .forum-post {
    grid-template-columns: 1fr;
  }

  .forum-post-author {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid #c8bea1;
    padding: 12px;
    text-align: left;
  }

  .forum-post-author .forum-avatar {
    width: 46px;
    height: 46px;
    grid-row: 1 / 4;
    margin: 0;
    font-size: 20px;
  }

  .forum-post-author .forum-role {
    grid-column: 3;
    grid-row: 1;
  }

  .forum-post-author .forum-author-name {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .forum-post-author .forum-author-online {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    margin: 0;
  }

  .forum-post-author small {
    grid-column: 2 / -1;
    margin: 0;
  }

  .forum-post-body {
    min-height: 100px;
    padding: 18px;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .forum-online-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .account-rank-form {
    grid-template-columns: 1fr;
  }

  .account-rank-form label,
  .account-rank-form input,
  .account-rank-form select,
  .account-rank-form button {
    grid-column: 1;
    grid-row: auto;
  }

  .member-profile-modal {
    padding: 8px;
  }

  .member-profile-card {
    max-height: calc(100vh - 16px);
  }

  .member-profile-content {
    padding: 22px 16px;
  }

  .member-profile-header {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .member-profile-header .forum-avatar {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .member-profile-header h2 {
    padding-right: 28px;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .member-profile-online {
    grid-column: 2;
    justify-content: flex-start;
    margin: 0;
  }

  .member-profile-stats {
    grid-template-columns: 1fr;
  }
}

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