: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(48vw, 240px);
  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: clamp(15px, 4vw, 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;
  gap: 6px;
}

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

.brand::after {
  content: "RuneWorld";
  color: #f6dfaa;
  font: 700 19px Georgia, "Times New Roman", serif;
  letter-spacing: -1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.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%, 190px);
  margin: 0 0 10px;
  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-rw-mark.png?v=20261128rw1");
  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-rw-mark.png?v=20261128rw1");
  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-rw-mark.png?v=20261128rw1");
  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;
}

.store-bonus-list {
  display: flex;
  min-height: 58px;
  align-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin: 4px 0 8px;
}

.store-bonus-label {
  width: 100%;
  color: #536361;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-bonus-item {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.store-bonus-item img {
  width: 40px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 2px rgba(23, 35, 38, 0.25));
}

.store-bonus-item strong {
  position: absolute;
  right: -2px;
  bottom: -1px;
  color: #755600;
  font-size: 11px;
  line-height: 1;
  text-shadow: -1px -1px 0 #f3ecd6, 1px -1px 0 #f3ecd6, -1px 1px 0 #f3ecd6, 1px 1px 0 #f3ecd6;
}

.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-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.hiscore-layout .hiscore-aside {
  display: block;
  border: 1px solid #786536;
  border-top: 3px solid var(--gold);
  background: linear-gradient(145deg, #20231f, #121b1c);
  padding: 24px 20px;
}

.hiscore-layout .hiscore-aside > img {
  width: 64px;
  margin: 0 0 16px;
}

.hiscore-layout .hiscore-aside h2 {
  color: var(--gold-light);
  font-size: 27px;
}

.hiscore-ladders {
  display: grid;
  gap: 7px;
  margin: 22px 0;
}

.hiscore-ladders button {
  min-height: 61px;
  border: 1px solid #525548;
  border-left: 3px solid #525548;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 13px;
  color: #f3ecd6;
  cursor: pointer;
  text-align: left;
}

.hiscore-ladders button span,
.hiscore-ladders button small {
  display: block;
}

.hiscore-ladders button span {
  font-weight: 800;
}

.hiscore-ladders button small {
  margin-top: 2px;
  color: #b9c2b8;
  font-size: 11px;
}

.hiscore-ladders button[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(100deg, #665126, #37331f);
}

.hiscore-ladders button[aria-pressed="true"] small {
  color: #f3e6b6;
}

.hiscore-ladders button:disabled {
  opacity: 0.55;
  cursor: default;
}

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

.hiscore-aside select {
  border-color: rgba(255, 255, 255, 0.3);
  background: #f3ecd6;
  color: #172326;
  font-size: 14px;
}

.hiscore-layout .hiscore-aside .hiscore-help {
  margin: 22px 0 0;
  border-top: 1px solid #484c3f;
  padding-top: 17px;
  color: #aeb9af;
  font-size: 12px;
}

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

.hiscore-layout .panel-bar {
  min-height: 94px;
  background: linear-gradient(110deg, #eee2bc, #f3ecd6);
}

.hiscore-search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px 10px;
}

.hiscore-search > div {
  flex: 1 1 200px;
}

.hiscore-search label {
  display: block;
  margin-bottom: 6px;
}

.hiscore-search input {
  min-height: 43px;
  border-color: #aea17b;
  background: #fffcf1;
}

.hiscore-search button,
.hiscore-pagination button,
.hiscore-empty button {
  min-height: 43px;
  border: 1px solid #746039;
  border-radius: 3px;
  background: linear-gradient(#6e5a32, #433822);
  padding: 9px 18px;
  color: #fff5d8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.hiscore-search .hiscore-secondary {
  background: transparent;
  color: #594a2d;
}

.hiscore-status {
  min-height: 21px;
  margin: 5px 24px 17px;
  color: #677064;
  font-size: 12px;
}

.hiscore-layout .is-error {
  color: #9d3326;
}

.hiscore-layout .hiscore-table {
  min-width: 520px;
  font-variant-numeric: tabular-nums;
}

.hiscore-table th {
  white-space: nowrap;
}

.hiscore-layout [data-ranking-mode="pvp"] .hiscore-table {
  min-width: 540px;
}

[data-ranking-mode="pvp"] .hiscore-table th {
  white-space: normal;
}

[data-ranking-mode="pvp"] .hiscore-table .hiscore-rank {
  width: 52px;
}

.hiscore-mobile-stat-label {
  display: none;
}

@media (max-width: 640px) {
  .hiscore-layout [data-ranking-mode="pvp"] .hiscore-table {
    min-width: 0;
    display: block;
  }

  [data-ranking-mode="pvp"] .hiscore-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  [data-ranking-mode="pvp"] .hiscore-table tbody {
    display: block;
  }

  [data-ranking-mode="pvp"] .hiscore-table tr {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding: 14px 12px;
  }

  [data-ranking-mode="pvp"] .hiscore-table td {
    height: auto;
    border: 0;
    padding: 0;
  }

  [data-ranking-mode="pvp"] .hiscore-table .hiscore-rank {
    grid-column: span 2;
    width: auto;
  }

  [data-ranking-mode="pvp"] .hiscore-table td:nth-child(2) {
    grid-column: span 10;
  }

  [data-ranking-mode="pvp"] .hiscore-table .hiscore-value {
    grid-column: span 3;
    margin-top: 12px;
    border-top: 1px solid #c8bea1;
    padding: 8px 4px 0 0;
    overflow-wrap: anywhere;
    text-align: left;
    font-weight: 700;
  }

  [data-ranking-mode="pvp"] .hiscore-mobile-stat-label {
    display: block;
    margin-bottom: 3px;
    color: #675d47;
    font-size: 11px;
    font-weight: 600;
  }

  [data-ranking-mode="pvp"] .hiscore-table .hiscore-empty {
    grid-column: 1 / -1;
    padding: 16px 4px;
  }
}

.hiscore-table td {
  height: 66px;
}

.hiscore-table tbody tr:nth-child(even) {
  background: rgba(157, 142, 94, 0.075);
}

.hiscore-table tbody tr:hover {
  background: #ebe0bc;
}

.hiscore-table th:nth-child(n+3),
.hiscore-table .hiscore-value {
  text-align: right;
}

.hiscore-table .hiscore-rank {
  width: 68px;
  color: #7b7866;
  font-weight: 800;
}

.hiscore-table .hiscore-top-rank {
  color: #946b17;
}

.hiscore-account-mode {
  display: block;
  margin-top: 3px;
  color: #737967;
  font-size: 10px;
}

.hiscore-table .hiscore-empty,
.hiscore-profile .hiscore-empty {
  padding: 42px 24px;
  color: #677064;
  text-align: center;
}

.hiscore-empty strong,
.hiscore-empty span {
  display: block;
}

.hiscore-empty strong {
  margin-bottom: 6px;
  color: #353d30;
}

.hiscore-empty button {
  margin-top: 15px;
}

.hiscore-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  color: #66705e;
  font-size: 12px;
}

.hiscore-pagination:empty {
  display: none;
}

.hiscore-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.hiscore-profile {
  min-width: 0;
  grid-column: 1 / -1;
  scroll-margin-top: 100px;
}

.hiscore-profile-mode {
  margin: 18px 24px 0;
  color: #7c652f;
  font-size: 13px;
  font-weight: 800;
}

.hiscore-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 24px 25px;
  border: 1px solid #c8bea1;
  background: #c8bea1;
}

.hiscore-summary > div {
  min-width: 0;
  background: #e9e0c6;
  padding: 14px;
}

.hiscore-summary dt {
  color: #6b715d;
  font-size: 11px;
}

.hiscore-summary dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: #333c2d;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hiscore-profile-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #b5a77a;
  padding: 0 24px;
}

.hiscore-profile-tabs button {
  min-height: 46px;
  border: 1px solid #b5a77a;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #e1d5b3;
  padding: 10px 20px;
  color: #5b604d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hiscore-profile-tabs button[aria-pressed="true"] {
  background: #4c452d;
  color: #f7e5ac;
}

.hiscore-profile-tabs small {
  margin-left: 8px;
  opacity: 0.7;
}

.hiscore-profile-note {
  margin: 0;
  border-top: 1px solid #d4c8a4;
  padding: 18px 24px;
  color: #777968;
  font-size: 12px;
}

.hiscore-skill-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hiscore-skill-name .skill-icon {
  width: 21px;
  height: 23px;
  object-fit: contain;
}

.hiscore-layout button:focus-visible,
.hiscore-layout input:focus-visible,
.hiscore-layout select:focus-visible {
  outline: 3px solid #b7811c;
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .hiscore-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hiscore-ladders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hiscore-layout .hiscore-aside > img,
  .hiscore-layout .hiscore-aside > p:not(.eyebrow):not(.hiscore-help) {
    display: none;
  }
  .hiscore-layout .hiscore-aside h2 {
    margin-bottom: 12px;
  }
}

@media (max-width: 600px) {
  .hiscore-ladders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hiscore-layout .panel-bar,
  .hiscore-search,
  .hiscore-pagination {
    padding-right: 16px;
    padding-left: 16px;
  }
  .hiscore-layout .panel-bar {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .hiscore-status {
    margin-right: 16px;
    margin-left: 16px;
  }
  .hiscore-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 16px;
  }
  .hiscore-summary > div:last-child {
    grid-column: 1 / -1;
  }
  .hiscore-pagination button {
    padding: 8px 12px;
  }
}

.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: 104px;
  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;
  }
}

/* Store: explicit checkout policy and a single points-package selector. */
.store-purchase-policy { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr); gap:28px; padding:26px; margin-bottom:18px; border:1px solid #b79a60; border-left:5px solid var(--gold); background:#fff9e9; border-radius:5px; }
.store-purchase-policy h2 { margin:0 0 12px; font-size:23px; }
.store-purchase-policy p { color:#4c5149; font-size:14px; margin:8px 0; line-height:1.65; }
.store-policy-check { display:flex; gap:12px; align-items:flex-start; align-self:center; padding:20px; background:#efe5cd; border-radius:4px; cursor:pointer; font-weight:700; line-height:1.6; }
.store-policy-check input { width:21px; height:21px; flex:0 0 21px; margin-top:3px; accent-color:#8b6325; }
.store-checkout-message { min-height:0; margin:0 0 24px; color:#245b35; font-weight:700; line-height:1.65; }
.store-checkout-message:empty { display:none; }
.store-checkout-message.is-error { color:#9c2929; }
.store-card.store-premium-card { border-top-color:#a96c2b; background-color:#f4e6c8; }
.store-card .paypal-slot { margin-top:auto; }
.hero-inner { justify-content: space-between; gap: clamp(24px, 5vw, 68px); }
.home-store-deals, .store-deals {
  border: 1px solid #b69450;
  border-top: 3px solid var(--gold-light);
  border-radius: 5px;
  background: linear-gradient(135deg, #12313b, #0b202b 70%);
  color: #f1f3ee;
  box-shadow: 0 12px 34px #07202c55;
}
.home-store-deals { flex: 0 1 340px; min-width: 275px; padding: 21px 23px; }
.home-store-deals .eyebrow { color: var(--gold-light); margin-bottom: 5px; }
.home-store-deals h2, .store-deals h2 { color: #fff4d1; font-size: clamp(24px, 3vw, 33px); margin: 0; }
.home-deals-list { margin: 14px 0; padding: 0; list-style: none; }
.home-deals-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e1c98930; }
.home-deals-list li > div { flex: 1; min-width: 0; }
.home-deals-list .store-item-icon { width: 37px; height: 36px; flex-basis: 37px; }
.home-deals-list strong { display: block; font-size: 14px; line-height: 1.35; }
.home-deals-list .deal-price { margin-top: 3px; }
.home-deals-footer, .store-deals-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.home-deals-footer a { color: var(--gold-light); font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.deal-countdown { color: #d7e4df; font-size: 13px; white-space: nowrap; }
.deal-countdown time { color: #fff4d1; font-weight: 800; font-variant-numeric: tabular-nums; }
.store-deals { padding: clamp(16px, 3vw, 30px); margin-bottom: 24px; }
.store-deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 14px; }
.store-deal-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid #e1c98938; border-radius: 4px; background: #e8f0eb0a; }
.store-deal-item { display: flex; align-items: center; gap: 10px; }
.store-deal-item > div { min-width: 0; }
.store-deal-item .store-item-icon { width: 45px; height: 45px; flex-basis: 45px; }
.store-deal-item h3 { color: #fff4d1; font-size: 19px; margin: 0 0 5px; }
.deal-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--gold-light); }
.deal-price del { color: #d7e4df; font-size: 12px; }
.deal-discount {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #cf7769;
  border-radius: 3px;
  background: #872c26;
  color: #fff0e9;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.store-deal-card .buy-button { margin-top: auto; min-height: 41px; background: #ecc56b; border: 1px solid #f3d78a; color: #2e2312; font-size: 13px; white-space: normal; }
.store-deal-card .buy-button:disabled { opacity: .7; }
.store-cart-add-button, .store-cart-quantity button {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e1c98966; border-radius: 4px;
  background: #241e14; color: #ffdfa0; min-height: 38px; padding: 4px 10px; font: inherit; cursor: pointer;
}
.store-cart-add-button:hover:not(:disabled), .store-cart-quantity button:hover:not(:disabled) { background: #3e311c; }
.store-cart-add-button:disabled, .store-cart-quantity button:disabled { cursor: default; opacity: .55; }
.store-cart { margin: 18px 0; padding: 18px; scroll-margin-top: 90px; background: #201e17; border: 1px solid #e1c98938; border-radius: 4px; }
.store-cart h2 { margin: 0 0 9px; color: #ffdfa0; }
.store-cart-jump { margin-top: 14px; }
.store-cart-add-button { margin-bottom: 8px; }
.store-cart-lines li > :first-child small { display: block; color: #e1cfb1; }
.store-promotion {
  margin-bottom: 24px;
  padding: clamp(16px, 3vw, 25px);
  border: 1px solid #a97942;
  border-left: 4px solid #eac478;
  border-radius: 5px;
  background: linear-gradient(120deg, #342019, #18262b 88%);
  color: #fff1d8;
}
.store-promotion h2 { color: #ffe1a5; font-size: clamp(21px, 3vw, 30px); margin: 0 0 8px; }
.store-promotion p { margin: 4px 0; }
.store-promotion time { color: #ffe1a5; font-weight: 700; }
.store-promotion-home:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  width: fit-content;
  padding: 8px 12px;
  margin: 16px 0;
  border: 1px solid #b78a4e;
  border-radius: 4px;
  color: #fff1d8;
  background: #342019;
  font-size: .875rem;
  text-decoration: none;
}
.store-promotion-home strong { color: #ffe1a5; }
.store-promotion-home:hover strong { text-decoration: underline; }
.store-promo-reward:not([hidden]) { display: block; color: #774818; font-weight: 700; font-size: .8rem; }
.store-cart-lines li > :first-child .store-promo-reward:not([hidden]),
.store-deal-card .store-promo-reward:not([hidden]),
.home-deals-list .store-promo-reward:not([hidden]) { color: #ffe1a5; }
.store-cart-lines li > :first-child .store-promo-reward[hidden] { display: none; }
.store-cart .paypal-slot { max-width: 360px; }
.store-cart .buy-button { margin-top: 9px; }
.store-cart-lines { list-style: none; margin: 0; padding: 0; }
.store-cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px; align-items: center; gap: 6px; min-height: 44px; border-top: 1px solid #e1c98926; }
.store-cart-lines li > :last-child { text-align: right; white-space: nowrap; }
.store-cart-quantity { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.store-cart-quantity button { width: 34px; min-height: 34px; padding: 0; }
.store-cart-total { margin: 10px 0; color: #ffffff; }
@media (max-width: 480px) {
  .store-cart-lines li { grid-template-columns: 104px 1fr; padding: 7px 0; }
  .store-cart-lines li > :first-child { grid-column: 1 / -1; }
}

.mystery-store { margin-bottom: 36px; }
.mystery-store .store-card { min-height: 285px; }
.mystery-store .store-card h3 { margin: 12px 0 10px; font-size: 25px; }
.store-card .mystery-points { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 790px) {
  .hero-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .home-store-deals { flex: none; min-width: 0; width: min(100%, 390px); margin: 0 0 30px; }
  .hero-copy:has(+ .home-store-deals:not([hidden])) { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-store-deals, .store-deals { animation: store-deals-glow 1.8s ease-out 2; }
  .deal-discount { animation: deal-discount-pulse 2.4s ease-in-out infinite; }
  @keyframes deal-discount-pulse {
    50% { background-color: #b63d32; border-color: #ffac94; }
  }
  @keyframes store-deals-glow {
    50% { box-shadow: 0 12px 34px #07202c55, 0 0 19px #f1d77861; }
  }
}
.points-store { margin-top:38px; padding:32px; border:1px solid #a98b4c; border-top:5px solid var(--gold); border-radius:5px; background:linear-gradient(115deg,#f9f2dd,#ebe0c2); box-shadow:0 10px 25px rgba(23,35,38,.1); }
.credit-store { border-color:#967340; border-top-color:#d3a74d; background:linear-gradient(115deg,#faf0d5,#e8d5a8); }
.credit-store .points-store-heading img { image-rendering:auto; filter:drop-shadow(0 6px 9px #5e451f45); }
.points-store-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:18px; }
.points-store-heading h2 { font-size:30px; margin:0 0 12px; }
.points-store-heading p { color:#53605a; line-height:1.7; }
.points-store-heading img { image-rendering:pixelated; object-fit:contain; }
.points-store>label { display:block; font-weight:800; margin-bottom:9px; }
.points-store>select { width:100%; max-width:650px; min-height:48px; font:inherit; padding:12px; border:1px solid #a68a52; border-radius:4px; background:#fffdf5; color:#272b25; }
.points-package-details { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:26px; align-items:center; margin-top:26px; padding-top:26px; border-top:1px solid #c5b286; }
.points-total>span { text-transform:uppercase; font-weight:800; font-size:12px; letter-spacing:.08em; color:#625735; }
.points-total>strong { display:block; color:#223c2a; font-size:38px; line-height:1.3; margin:8px 0; }
.points-total small { font-size:19px; }
.points-total p,.points-checkout p,.points-delivery { font-size:13px; color:#596052; line-height:1.7; }
.points-breakdown { margin:0; }
.points-breakdown>div { display:flex; justify-content:space-between; gap:14px; padding:10px 0; border-bottom:1px solid #cabc98; }
.points-breakdown dt { font-size:13px; color:#4f574b; }
.points-breakdown dd { margin:0; font-weight:800; white-space:nowrap; }
.points-breakdown .points-bonus { color:#286340; }
.points-breakdown .points-bonus dt { color:inherit; font-weight:800; }
.points-checkout .price { display:block; font-size:29px; }
.points-checkout .buy-button { width:100%; white-space:normal; }
.points-delivery { margin-top:22px; padding-top:18px; border-top:1px solid #c5b286; }
.store-load-error { padding:24px; grid-column:1/-1; color:#8a2d2d; background:#fff2ed; }
@media(max-width:850px) { .store-purchase-policy { grid-template-columns:1fr; gap:16px; } .points-package-details { grid-template-columns:1fr 1fr; } .points-checkout { grid-column:1/-1; max-width:400px; width:100%; } }
@media(max-width:540px) { .store-purchase-policy,.points-store { padding:20px; } .points-store-heading img { width:72px; height:64px; } .points-store-heading h2 { font-size:25px; } .points-package-details { grid-template-columns:1fr; gap:16px; } .points-checkout { grid-column:auto; } .points-total>strong { font-size:34px; } }

/* Published character ranks and the actual training mode stay distinct from ladder position. */
.hiscore-player-badges { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; max-width:460px; }
.hiscore-badge { display:inline-flex; gap:4px; padding:3px 6px; border:1px solid #8d784244; border-radius:4px; background:#221e16; color:#f5dea3; font-size:11px; line-height:1.45; white-space:normal; }
.hiscore-badge > span { color:#bfb497; }
.hiscore-badge-staff { border-color:#94a7b844; color:#d4e7f7; }
.hiscore-badge-xp { color:#cce9be; border-color:#8aa16a44; }
.hiscore-profile .hiscore-player-badges { max-width:none; margin-bottom:15px; }

/* Christmas homepage */
.winter-hero {
  min-height: 565px;
  background-color: #0b2028;
  background-image: url("/assets/gameplay/christmas-2026-hero.webp");
  background-position: center 58%;
}

.winter-hero::before {
  background: linear-gradient(90deg, #061519f5 0%, #061519c9 36%, #06151939 74%, #06151975 100%);
}

.winter-hero::after {
  content: none;
}

.winter-hero .hero-inner {
  min-height: 565px;
}

.winter-hero .hero-copy {
  max-width: 680px;
  padding: 35px 0 50px;
}

.winter-hero .hero-logo {
  width: min(185px, 48vw);
  margin: 0 0 6px;
}

.winter-hero h1 {
  max-width: 660px;
  margin: 0 0 14px;
  color: #fff4dc;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  text-shadow: 0 4px 18px #071014;
}

.winter-hero .hero-lead {
  max-width: 535px;
}

.winter-hero .hero-tags span {
  border-left-color: #91b9a4;
}

.primary-button.winter-play {
  border-color: #f1d78f;
  background: linear-gradient(180deg, #9d373c, #71242c);
  color: #fff8ec;
}

.primary-button.winter-play:hover,
.primary-button.winter-play:focus-visible {
  border-color: #fff1b9;
  background: #a33a40;
  color: #fff8ec;
}

.christmas-event {
  border-top: 1px solid #c49e5366;
  border-bottom: 1px solid #c49e5366;
  background: radial-gradient(ellipse at 12% 2%, #244135, #102921 57%, #0c1c21);
  color: #e4ede4;
}

.christmas-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
}

.christmas-copy .eyebrow {
  color: #e7c47e;
}

.christmas-copy h2 {
  margin-bottom: 16px;
  color: #fff3d5;
}

.christmas-copy p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 17px;
}

.christmas-copy code {
  border: 1px solid #efcd8862;
  border-radius: 3px;
  background: #0b1c1b;
  padding: 2px 5px;
  color: #f3d18d;
  white-space: nowrap;
}

.christmas-copy .winter-play {
  margin-top: 5px;
}

.christmas-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #b59a60;
  border-radius: 4px;
  background: #0c161c;
  box-shadow: 0 20px 36px #060f14a3;
}

.christmas-photo img,
.inscription-photo img {
  width: 100%;
  height: auto;
}

.christmas-photo figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  border-left: 3px solid var(--gold-light);
  border-radius: 2px;
  background: #0b2024eb;
  padding: 7px 10px;
  color: #fff4dc;
  font-size: 13px;
}

.winter-town img {
  object-position: 53% 49%;
}

.winter-workshop img,
.winter-upgrades img {
  object-position: center 48%;
}

.inscription-section .systems-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 5vw, 72px);
}

.inscription-section .section-intro {
  margin-bottom: 14px;
}

.inscription-section .systems-copy p:last-child {
  color: var(--muted);
}

.inscription-photo {
  position: relative;
  border-width: 3px;
}

.inscription-photo figcaption {
  position: static;
  border-left: 0;
  border-top: 1px solid #b99755;
  border-radius: 0;
  background: #112733;
  max-width: none;
  padding: 10px 14px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .winter-hero .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .winter-hero .hero-copy {
    padding: 36px 0 24px;
  }

  .winter-hero .home-store-deals {
    flex: none;
    min-width: 0;
    width: min(100%, 390px);
    margin: 0 0 30px;
  }

  .winter-hero::before {
    background: linear-gradient(155deg, #071a20ed, #061519b5 52%, #06151973);
  }

  .christmas-layout,
  .inscription-section .systems-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
