@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

.website-announcement {
  position: relative;
  z-index: 20;
  padding: 12px 24px;
  border-bottom: 1px solid #f2ea1240;
  background: #181a0e;
  color: #f1ed90;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.maintenance-message {
  max-width: 680px;
  margin: 22vh auto;
  padding: 28px;
  text-align: center;
}
.maintenance-message > p:first-child,
.maintenance-message > a {
  color: #f2ea12;
}
.maintenance-message > a {
  display: inline-block;
  margin-top: 26px;
}

:root {
  color-scheme: dark;
  --bg: #0b0e15;
  --low: #080b11;
  --surface: #111722;
  --panel: #151d2a;
  --line: #293346;
  --text: #f2f5fc;
  --muted: #a5afc2;
  --accent: #f5e425;
  --accent-strong: #fff36b;
  --accent-soft: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 36%, var(--line));
  --dark-text: #181600;
  --nav-font: var(--navigation-font);
  --navigation-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --button-radius: 9px;
  --header-offset: 72px;
  --header-height: 61px;
  --header-accent: var(--accent);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  --page-scene: url('/assets/rust-harbor-coast.webp');
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body[data-scene='drydock'] {
  --page-scene: url('/assets/rust-harbor-docks.webp');
}
body[data-scene='harbor'] {
  --page-scene: url('/assets/rust-harbor-cargo.webp');
}
body[data-scene='industrial'] {
  --page-scene: url('/assets/rust-industrial-store.webp');
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #080b118c, #080b11b3 48%, #080b11db),
    linear-gradient(90deg, #080b1199, #080b1133 60%, #080b117a),
    var(--page-scene) center / cover no-repeat;
}
main {
  flex: 1;
  min-width: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
[id] {
  scroll-margin-top: var(--header-offset);
}
.shell {
  width: min(1190px, calc(100% - 80px));
  margin-inline: auto;
}
.not-found {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding-block: clamp(56px, 10vh, 112px);
  text-align: center;
}
.not-found-content {
  width: min(100%, 600px);
}
.not-found-code {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: clamp(100px, 24vw, 200px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 10px 60px #f5e42524;
}
.not-found h1 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}
.not-found-description {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 12;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--dark-text);
  padding: 12px;
}
.skip:focus {
  transform: translateY(0);
}

.site-loader {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.intro-loading {
    overflow: hidden;
  }
  .intro-loading .site-loader {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    background: #090f15;
    opacity: 1;
    transition: opacity 420ms ease;
  }
  .intro-loading main {
    animation: none;
  }
  .site-loader-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    transform: translateY(-12px);
  }
  .site-loader-mark {
    display: block;
    width: clamp(164px, 18vw, 208px);
    height: auto;
    overflow: visible;
  }
  .site-loader-outline {
    stroke: #eeefbc;
    stroke-width: 0.75;
    stroke-linejoin: miter;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill: transparent;
    animation:
      lyra-logo-draw 900ms cubic-bezier(0.4, 0, 0.25, 1) 80ms forwards,
      lyra-logo-outline-fade 380ms ease 820ms forwards;
  }
  .site-loader-facets {
    opacity: 0;
    animation: lyra-loader-caption 400ms ease 760ms forwards;
  }
  .site-loader-caption {
    color: #ccd0d7;
    font: 600 0.625rem/1.6 var(--navigation-font);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    opacity: 0;
    animation: lyra-loader-caption 400ms ease 440ms forwards;
  }
  .site-loader-skip {
    position: absolute;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    padding: 10px 12px;
    border: 1px solid #ffffff1a;
    border-radius: 6px;
    color: #8e98a6;
    background: transparent;
    font: 500 0.75rem/1.2 var(--navigation-font);
    cursor: pointer;
  }
  .site-loader-skip:is(:hover, :focus-visible) {
    color: var(--text);
    border-color: var(--accent-line);
  }
  .intro-revealing .site-loader {
    opacity: 0;
  }
  .intro-revealing .site-loader-brand {
    animation: lyra-loader-depart 420ms ease forwards;
  }
  @keyframes lyra-logo-draw {
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes lyra-logo-outline-fade {
    to {
      opacity: 0;
    }
  }
  @keyframes lyra-loader-caption {
    to {
      opacity: 1;
    }
  }
  @keyframes lyra-loader-depart {
    to {
      opacity: 0;
      transform: translateY(-12px) scale(0.97);
    }
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #28282d;
  background: #0b0b0e;
}
.topbar-inner {
  width: min(1320px, calc(100% - 96px));
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  white-space: nowrap;
  font-weight: 900;
  font-size: 1.04rem;
  letter-spacing: -0.048em;
}
.brand img {
  display: block;
}
.brand span span {
  color: var(--accent);
  margin-left: 3px;
}
.header-brand {
  width: clamp(110px, 11vw, 145px);
}
.wordmark {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4.6;
  overflow: hidden;
}
.wordmark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: auto;
  transform: translate(-50%, -50%);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 28px);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0;
  color: #dedee3;
  font: 500 0.875rem/1.2 var(--navigation-font);
  letter-spacing: 0;
  white-space: nowrap;
}
.main-nav .nav-link {
  font-size: 0.9375rem;
}
.nav-link .icon {
  width: 16px;
  height: 16px;
}
.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--header-accent);
}
.main-nav .nav-link[aria-current='page']::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--header-accent);
  content: '';
}
.topbar :focus-visible {
  outline-color: var(--header-accent);
}
.account-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-nav .header-sign-in {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 600 0.875rem/1 var(--navigation-font);
  white-space: nowrap;
  cursor: pointer;
}
.account-nav .header-sign-in {
  border-color: #3c4048;
  background: #141418;
  color: var(--text);
  font-size: 0.8125rem;
}
.account-nav .header-sign-in:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.header-sign-in .icon {
  width: 15px;
  height: 15px;
}
.header-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--header-accent);
  font: 600 0.875rem/1 var(--navigation-font);
  white-space: nowrap;
}
.header-secure .icon {
  width: 20px;
  height: 20px;
}
.account-dropdown {
  position: relative;
}
.account-dropdown summary {
  list-style: none;
  cursor: pointer;
}
.account-dropdown summary::-webkit-details-marker {
  display: none;
}
.header-account {
  min-height: 34px;
  gap: 7px;
  padding-inline: 9px;
  border: 1px solid #3c4048;
  border-radius: 9px;
  color: var(--text);
  background: #141418;
}
.header-account:hover,
.account-dropdown[open] > .header-account {
  border-color: var(--accent-line);
  color: var(--accent);
}
.header-account img {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #2a2a30;
  object-fit: cover;
}
.header-account-name {
  min-width: 0;
  max-width: 13ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-dropdown[open] > summary .server-chevron,
.account-profile[open] > summary .server-chevron {
  transform: rotate(225deg);
  margin-top: 2px;
}
.account-dropdown-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: 0;
  width: 205px;
  max-width: calc(100vw - 46px);
  padding: 5px;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: #111113;
  box-shadow: 0 12px 28px #0008;
}
.account-dropdown-action {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 41px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--text);
  font: 600 0.875rem/1.3 var(--navigation-font);
  text-align: left;
  cursor: pointer;
}
.account-dropdown-action .icon {
  color: var(--accent);
}
.account-dropdown-action .server-chevron {
  margin-left: auto;
}
.account-dropdown-action:hover,
.account-dropdown-action:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}
.account-profile-info {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 5px 6px;
  padding: 8px;
  border: 1px solid #333029;
  border-radius: 4px;
  background: #1a1916;
}
.account-profile-info img {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.account-profile-info div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-profile-info strong,
.account-profile-info small {
  display: block;
}
.account-profile-info strong {
  font-size: 0.82rem;
}
.account-profile-info small {
  color: var(--muted);
  font-size: 0.7rem;
}
.account-dropdown-panel form {
  margin: 3px 0 0;
  padding-top: 3px;
  border-top: 1px solid #2e2c26;
}
.header-servers {
  position: relative;
}
.header-servers > summary {
  cursor: pointer;
  list-style: none;
}
.header-servers > summary::-webkit-details-marker {
  display: none;
}
.header-servers[open] > summary {
  color: var(--header-accent);
}
.server-chevron {
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  margin: -3px 1px 0 2px;
}
.header-servers[open] .server-chevron {
  transform: rotate(225deg);
  margin-top: 2px;
}
.header-server-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 225px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101013;
  box-shadow: 0 14px 30px #000a;
}
.server-art-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 5px;
}
.server-art-link img {
  display: block;
  width: min(100%, 124px);
  height: auto;
}
.server-art-link:hover,
.server-art-link[aria-current='page'] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.server-menu-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px;
  margin-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.server-menu-all:hover {
  color: var(--accent);
}
.mobile-menu {
  display: none;
}
.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  gap: 8px;
  font: 600 0.875rem/1.2 var(--navigation-font);
  white-space: nowrap;
  cursor: pointer;
}
.button.primary {
  color: var(--dark-text);
  background: var(--accent);
  border-color: var(--accent);
}
.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.button.quiet {
  color: var(--text);
  background: #141b29e6;
  border-color: #39465d;
}
.button.quiet:hover {
  background: #212d41;
  border-color: #647592;
}
.button .icon {
  width: 16px;
  height: 16px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: max(380px, calc(100svh - var(--header-height)));
  background: #0b0e15 url('/assets/lyra-hero-poster.webp') center / cover no-repeat;
}
.hero-media,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media {
  z-index: -2;
  object-fit: cover;
}
.hero::before {
  content: '';
  z-index: -1;
  background:
    radial-gradient(ellipse at center, #06091047, transparent 74%),
    linear-gradient(180deg, #080b1129 0%, #080b111a 48%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-block: 40px;
  text-align: center;
}
.hero h1 {
  width: min(100%, clamp(280px, 38vw, 720px));
  margin: 0;
  filter: drop-shadow(0 6px 18px #0008);
}
.hero p {
  margin: 0;
  color: #eef1f7;
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 2px 12px #000;
}
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 770;
  text-transform: uppercase;
  letter-spacing: 0.115em;
  line-height: 1.35;
}

.home-servers {
  padding-block: clamp(46px, 6vw, 88px);
  background: linear-gradient(180deg, var(--bg), #080b1173 30%, #080b1199);
  text-align: center;
}
.home-servers h2 {
  margin-block: 0;
  font: 800 clamp(1.55rem, 4vw, 3.75rem)/1.15 var(--nav-font);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.home-servers h2 span {
  color: var(--accent);
}
.server-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
  margin-block: clamp(25px, 4vw, 46px) 0;
  padding: 0;
  list-style: none;
}
.server-card {
  display: grid;
  grid-template-rows: 1fr auto;
}
.server-card-art {
  display: grid;
  align-content: center;
  min-height: clamp(105px, 13vw, 168px);
  padding: 16px;
}
.server-card h3 {
  margin: 0;
}
.server-card-art img {
  display: block;
  width: 100%;
  height: auto;
}
.server-card-detail {
  padding: 0 14px 12px;
}
.server-card-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.server-card-detail .server-card-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.server-card-status strong {
  color: var(--accent);
}

.store-background {
  background: linear-gradient(90deg, #080d1640, transparent 55%, #080d1633);
}
.store-image-credit {
  margin-block: 0;
  padding-bottom: 18px;
  color: #a3adbd;
  font-size: 0.75rem;
  text-align: right;
}
.store-image-credit a:hover {
  color: var(--text);
}
.store-toolbar {
  position: sticky;
  z-index: 4;
  top: var(--header-height);
  border-bottom: 1px solid #ffffff10;
  background: #101115f5;
  backdrop-filter: blur(16px);
}
.store-toolbar > .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 8px;
  padding-block: 8px;
}
.store-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid #ffffff0b;
  border-radius: 12px;
  background: #ffffff03;
}
.store-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding-inline: clamp(9px, 2vw, 18px);
  border-radius: var(--button-radius);
  color: var(--text);
  font: 600 0.875rem/1.2 var(--navigation-font);
}
.store-nav a .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.store-nav a:hover,
.store-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}
.store-toolbar .store-cart-button {
  min-height: 36px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--dark-text);
  font: 600 0.875rem/1 var(--navigation-font);
}
.store-toolbar .store-cart-button .icon {
  width: 19px;
  height: 19px;
}
.store-toolbar .store-cart-button:hover {
  background: var(--accent-strong);
}
.store-toolbar .store-cart-button [data-cart-count] {
  border-radius: 6px;
}
.store-cart-button [data-cart-count] {
  min-width: 22px;
  padding: 3px 5px;
  border-radius: 3px;
  background: #0002;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.store-catalog {
  padding-block: 32px 70px;
  background: linear-gradient(180deg, #080d1626, #080d16b3);
}
.store-group {
  margin-bottom: clamp(32px, 5vw, 58px);
  scroll-margin-top: calc(var(--header-offset) + 56px);
}
.store-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font: 650 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--navigation-font);
  letter-spacing: -0.025em;
}
.store-group h2 .icon {
  color: var(--accent);
}
.store-group h2::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-left: 8px;
  background: linear-gradient(90deg, #ffffff18, transparent);
}
.clan-server-bar {
  background: #101013;
  border-bottom: 1px solid #28282d;
}
.clan-server-select {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-block: 8px;
}
.clan-server-select .server-art-link {
  width: min(148px, 33.33%);
  padding-inline: 6px;
}
.clan-heading {
  margin: 0 0 42px;
}
.clan-heading h1 {
  margin: 0;
  font: 850 clamp(1.9rem, 4vw, 2.8rem)/1.12 var(--nav-font);
  text-transform: uppercase;
}
.clan-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}
.clan-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.clan-directory-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 750 1rem/1.3 var(--nav-font);
  text-transform: uppercase;
}
.clan-directory-header h2 .icon,
.clan-tag {
  color: var(--accent);
}
.clan-directory-header h2 span:not(:empty) {
  padding: 3px 8px;
  border: 1px solid #f5e42538;
  border-radius: 4px;
  color: var(--accent);
  background: #f5e42512;
  font-size: 0.7rem;
}
.clan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.clan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  border: 1px solid #323238;
  border-radius: 10px;
  background: #111114;
}
.clan-card-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 108px;
  padding: 18px;
  border-bottom: 1px solid #ffffff19;
  background: linear-gradient(113deg, #272515 0%, #18181b 57%, #141417 100%);
}
.clan-card-banner::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(122deg, transparent 0 12px, #f5e42514 12px 13px);
  mask-image: linear-gradient(90deg, transparent 24%, #000 100%);
}
.clan-card-banner::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 70px;
  height: 2px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.clan-card-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  height: 60px;
  border: 1px solid #f5e42550;
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(150deg, #f5e42520, #f5e42506);
}
.clan-card-emblem .icon {
  width: 30px;
  height: 30px;
}
.clan-card-title {
  min-width: 0;
}
.clan-card-server {
  margin: 0 0 4px;
  color: var(--accent);
  font: 750 0.65rem/1.3 var(--nav-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.clan-card h3 {
  margin: 0;
  font: 800 clamp(1rem, 2vw, 1.2rem)/1.3 var(--nav-font);
}
.clan-tag {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font: 700 0.72rem/1.3 var(--nav-font);
}
.clan-description {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #ffffff16;
  color: var(--muted);
  font-size: 0.85rem;
}
.clan-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  margin: auto 0 0;
}
.clan-stat {
  position: relative;
  min-width: 0;
  padding: 14px 12px 14px 47px;
}
.clan-stat + .clan-stat {
  border-left: 1px solid #ffffff18;
}
.clan-stat-icon {
  position: absolute;
  top: 15px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff0c;
}
.clan-stat-owner .clan-stat-icon {
  color: var(--accent);
  background: #f5e42516;
}
.clan-stat-icon .icon {
  width: 16px;
  height: 16px;
}
.clan-stat dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.clan-stat dd {
  margin: 3px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}
.clan-stat .clan-owner-unavailable {
  color: var(--muted);
  font-weight: 500;
}
.clan-status {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}
.ranking-page {
  --ranking-panel: #121317;
  --ranking-border: #292c34;
  --ranking-inset: #0e0f13;
}
.ranking-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 34px);
  margin-bottom: 16px;
  border: 1px solid var(--ranking-border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: linear-gradient(105deg, #201f16, var(--ranking-panel) 58%);
}
.ranking-heading h1 {
  margin: 12px 0 0;
  font: 850 clamp(1.4rem, 4.3vw, 3.35rem)/1.05 var(--nav-font);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.ranking-heading .ranking-eyebrow,
.ranking-control-label {
  color: var(--muted);
  font: 750 0.66rem/1.35 var(--nav-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ranking-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.ranking-eyebrow strong {
  color: var(--accent);
}
.ranking-eyebrow strong::after {
  content: '/';
  color: var(--muted);
  margin-left: 10px;
}
.ranking-server-picker {
  width: min(100%, 340px);
  flex-shrink: 0;
}
.ranking-server-picker .clan-server-bar {
  border: 0;
  background: transparent;
}
.ranking-server-picker .clan-server-select {
  width: auto;
  padding: 8px 0 0;
  gap: 5px;
}
.ranking-server-picker .server-art-link {
  flex: 1;
  width: auto;
  min-width: 0;
}
.ranking-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
  border: 1px solid var(--ranking-border);
  border-radius: 6px;
  background: var(--ranking-panel);
}
.ranking-totals > div {
  padding: 14px clamp(10px, 2vw, 24px);
}
.ranking-totals > div + div {
  border-left: 1px solid var(--ranking-border);
}
.ranking-totals dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}
.ranking-totals dt .icon {
  color: var(--accent);
}
.ranking-totals dd {
  margin: 6px 0 0;
  color: var(--text);
  font: 800 clamp(0.92rem, 2.2vw, 1.44rem)/1.3 var(--nav-font);
  font-variant-numeric: tabular-nums;
}
.ranking-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px minmax(170px, 230px);
  align-items: end;
  gap: 12px;
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid var(--ranking-border);
  border-radius: 6px;
  background: var(--ranking-panel);
}
.ranking-sort,
.ranking-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.ranking-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ranking-metrics button,
.ranking-search-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ranking-border);
  border-radius: var(--button-radius);
  background: var(--ranking-inset);
  color: var(--text);
  font: 600 0.875rem/1.3 var(--navigation-font);
  cursor: pointer;
}
.ranking-metrics button:hover,
.ranking-search-input button:hover {
  border-color: var(--accent);
}
.ranking-metrics button[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--dark-text);
}
.ranking-field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ranking-border);
  border-radius: 4px;
  background: var(--ranking-inset);
  color: var(--text);
  color-scheme: dark;
  font:
    600 0.82rem/1.3 Inter,
    system-ui,
    sans-serif;
}
.ranking-field select {
  cursor: pointer;
}
.ranking-search-input {
  display: flex;
  gap: 4px;
}
.ranking-search-input input::placeholder {
  color: var(--muted);
}
.ranking-search-input button {
  flex: 0 0 42px;
  color: var(--accent);
}
.ranking-content {
  display: grid;
  gap: 15px;
  align-items: start;
}
.ranking-content.has-spotlight {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
}
.ranking-spotlight,
.ranking-results,
.ranking-empty {
  min-width: 0;
  border: 1px solid var(--ranking-border);
  border-radius: 6px;
  background: var(--ranking-panel);
}
.ranking-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 12px clamp(10px, 2vw, 18px);
  border-bottom: 1px solid var(--ranking-border);
}
.ranking-panel-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 800 0.87rem/1.3 var(--nav-font);
}
.ranking-panel-header h2 .icon {
  color: var(--accent);
}
.ranking-count {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.ranking-podium {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  list-style: none;
}
.ranking-board [data-rank='1'] {
  --medal: var(--accent);
}
.ranking-board [data-rank='2'] {
  --medal: #c7ccd5;
}
.ranking-board [data-rank='3'] {
  --medal: #dda472;
}
.ranking-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--ranking-border);
  border-radius: 4px;
  background: var(--ranking-inset);
}
.ranking-card[data-rank='1'] {
  background: #201e11;
  border-color: #625922;
}
.ranking-card-place,
.ranking-row-rank {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 25px;
  padding-inline: 4px;
  border: 1px solid var(--ranking-border);
  border-radius: 4px;
  color: var(--medal, var(--muted));
  font: 800 0.67rem/1 var(--nav-font);
}
.ranking-card[data-rank='1'] .ranking-card-place {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark-text);
}
.ranking-avatar {
  display: inline-grid;
  position: relative;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--medal, #3f414b);
  border-radius: 50%;
  background: #21242c;
  color: var(--medal, var(--text));
  font: 800 0.7rem/1 var(--nav-font);
}
.ranking-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.ranking-card-identity strong,
.ranking-row-player strong {
  display: block;
  overflow-wrap: anywhere;
}
.ranking-discord {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #c6b9f1;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ranking-discord .icon {
  flex: 0 0 auto;
  width: 13px;
  height: 12px;
}
.ranking-card-score {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: right;
}
.ranking-card-score b {
  color: var(--medal);
  font: 800 0.78rem/1.25 var(--nav-font);
  font-variant-numeric: tabular-nums;
}
.ranking-table :is(th, td) {
  padding: 10px clamp(10px, 1.6vw, 18px);
  border-color: var(--ranking-border);
}
.ranking-table thead th {
  background: var(--ranking-inset);
  color: var(--muted);
  font: 750 0.65rem/1.3 var(--nav-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ranking-table tbody tr:hover {
  background: #ffffff06;
}
.ranking-table tbody tr:last-child > * {
  border-bottom: 0;
}
.ranking-table :is(th, td):first-child {
  width: 1%;
  padding-right: 0;
  white-space: nowrap;
}
.ranking-row-player {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.ranking-row-player > span:last-child {
  min-width: 0;
}
.ranking-table :is(th, td):last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.ranking-table td:last-child {
  color: var(--medal, var(--text));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ranking-more {
  display: flex;
  justify-content: center;
  padding: 10px;
  border-top: 1px solid var(--ranking-border);
}
@media (max-width: 1070px) {
  .ranking-controls {
    grid-template-columns: minmax(115px, 0.5fr) minmax(0, 1fr);
  }
  .ranking-sort {
    grid-column: 1 / -1;
  }
}
@media (max-width: 820px) {
  .ranking-heading {
    align-items: start;
    flex-direction: column;
  }
  .ranking-content.has-spotlight {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .ranking-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ranking-totals > div:nth-child(3) {
    border-left: 0;
  }
  .ranking-totals > div:nth-child(n + 3) {
    border-top: 1px solid var(--ranking-border);
  }
  .ranking-controls {
    padding: 10px;
    gap: 9px;
  }
  .ranking-metrics button {
    padding-inline: 7px;
    font-size: 0.875rem;
  }
  .ranking-table td:last-child {
    white-space: normal;
  }
}
.ranking-card:has(.ranking-profile-trigger) {
  position: relative;
}
.ranking-profile-trigger {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.ranking-profile-trigger:focus-visible {
  outline-offset: -4px;
}
.ranking-card:has(.ranking-profile-trigger:is(:hover, :focus-visible)) {
  border-color: var(--medal, var(--accent));
}
.ranking-player-link {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ranking-table tbody tr {
  cursor: pointer;
}
.ranking-table tbody tr:is(:hover, :focus-within) .ranking-row-player strong {
  color: var(--accent);
}
.dialog.ranking-profile {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid #ffffff1a;
  border-radius: 18px;
  background: radial-gradient(ellipse at bottom right, #17213135, transparent 70%), #0b0e14;
  box-shadow: 0 30px 100px #0009;
}
.dialog.ranking-profile::backdrop {
  background: #03060bc9;
  backdrop-filter: blur(6px);
}
html:has(.ranking-profile[open]) {
  overflow: hidden;
}
.ranking-profile-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #ffffff0c;
  background: #0b0c10;
}
.ranking-profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ranking-profile-heading-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f5e42529;
  border-radius: 9px;
  background: #f5e42509;
  color: var(--accent);
}
.ranking-profile-heading div {
  display: grid;
  gap: 3px;
}
.ranking-profile-heading div > span,
.ranking-profile-eyebrow {
  color: #808896;
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ranking-profile-heading strong {
  font-size: 0.875rem;
}
.ranking-profile-player {
  position: relative;
  align-self: start;
  overflow: hidden;
  padding: 0 18px 18px;
  border: 1px solid #ffffff10;
  border-radius: 14px;
  background: #0c0d11;
}
.ranking-profile-cover {
  height: 88px;
  margin-inline: -18px;
  border-bottom: 1px solid #ffffff08;
  background:
    radial-gradient(ellipse at top left, #f5e42538, transparent 75%),
    linear-gradient(120deg, #242419, #191c26 65%, #15151d);
}
.ranking-profile-identity {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  margin-top: -45px;
  text-align: center;
}
.ranking-profile-identity > .ranking-avatar {
  width: 88px;
  height: 88px;
  border: 1px solid #ffffff24;
  border-radius: 21px;
  background: #0b0d12;
  box-shadow: 0 10px 24px #0006;
  color: #f5e425;
  font-size: 1.65rem;
}
.ranking-profile-identity .ranking-avatar img {
  border-radius: inherit;
}
.ranking-profile-identity h2 {
  max-width: 100%;
  margin: 15px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.ranking-profile-identity .ranking-discord {
  max-width: 100%;
  margin-bottom: 2px;
  font-size: 0.75rem;
}
.ranking-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 15px 0 22px;
}
.ranking-profile-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 5px;
  background: #f5e42510;
  color: #d6cb70;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.ranking-profile-badges .ranking-profile-linked {
  background: #7289da19;
  color: #aebeff;
}
.ranking-profile-linked .icon {
  width: 12px;
  height: 12px;
}
.ranking-profile-details {
  margin: 0 0 18px;
  padding-block: 13px;
  border-block: 1px solid #ffffff0d;
}
.ranking-profile-details > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
  font-size: 0.75rem;
}
.ranking-profile-details dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #828b9b;
}
.ranking-profile-details .icon {
  width: 13px;
  height: 13px;
}
.ranking-profile-details dd {
  margin: 0;
  font-weight: 650;
}
.ranking-profile-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 37px;
  border: 1px solid #ffffff13;
  border-radius: 7px;
  background: #ffffff03;
  color: #b9c0cd;
  font: 600 0.75rem var(--nav-font);
  cursor: pointer;
}
.ranking-profile-back:hover {
  border-color: #f5e42545;
  color: var(--accent);
}
.ranking-profile-back .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
.ranking-profile-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #ffffff05;
  color: var(--muted);
  cursor: pointer;
}
.ranking-profile-close:hover {
  color: var(--text);
  background: #ffffff0d;
}
.ranking-profile-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
}
.ranking-profile-overview {
  min-width: 0;
}
.ranking-profile-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.ranking-profile-eyebrow {
  margin: 0 0 7px;
}
.ranking-profile-toolbar h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.ranking-profile-toolbar select {
  width: 164px;
  min-height: 36px;
  border-color: #ffffff16;
  border-radius: 7px;
  background: #11141c;
  font-size: 0.75rem;
}
.ranking-profile-toolbar .ranking-control-label {
  font-size: 0.625rem;
}
.ranking-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.ranking-profile-stats > div {
  --profile-tone: #f5e425;
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 15px;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff03, transparent 65%), #10141d;
}
.ranking-profile-stat::before {
  position: absolute;
  content: '';
  top: 0;
  left: 14px;
  width: 31px;
  height: 2px;
  background: var(--profile-tone);
}
.ranking-profile-stats .ranking-profile-stat-time {
  --profile-tone: #b8bdc8;
}
.ranking-profile-stats .ranking-profile-stat-kd {
  --profile-tone: #78cfb5;
}
.ranking-profile-stats dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #8e98aa;
  font-size: 0.5625rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.ranking-profile-stats dt > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border: 1px solid color-mix(in srgb, var(--profile-tone) 24%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--profile-tone) 7%, transparent);
  color: var(--profile-tone);
}
.ranking-profile-stats dt .icon {
  width: 13px;
  height: 13px;
}
.ranking-profile-stat > dd:not(.ranking-profile-stat-caption) {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 10px 0 7px;
  font-size: clamp(1.5rem, 2.7vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.ranking-profile-stat dd strong {
  font: inherit;
}
.ranking-profile-stat dd > span {
  color: #a0a9b8;
  font-size: 0.8em;
}
.ranking-profile-stat-kd > dd:not(.ranking-profile-stat-caption) {
  color: var(--profile-tone);
}
.ranking-profile-stat-caption {
  margin: 0;
  color: #79869a;
  font-size: 0.6875rem;
  line-height: 1.5;
}
.ranking-profile-record {
  margin-top: 14px;
  border: 1px solid #ffffff10;
  border-radius: 13px;
  background: #0b0d12;
}
.ranking-profile-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #ffffff09;
}
.ranking-profile-record h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
}
.ranking-profile-record h3 .icon {
  color: var(--accent);
  width: 17px;
  height: 17px;
}
.ranking-profile-record header > span {
  color: #858d9d;
  font-size: 0.625rem;
}
.ranking-profile-record dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 25px 18px;
}
.ranking-profile-record dl > div + div {
  padding-left: 15px;
  border-left: 1px solid #ffffff0c;
}
.ranking-profile-record dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #939dac;
  font-size: 0.6875rem;
}
.ranking-profile-record dt .icon {
  width: 13px;
  height: 13px;
}
.ranking-profile-record dd {
  margin: 12px 0 0;
  font-size: 1.5rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.ranking-profile-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.ranking-profile-empty {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f5e42526;
  border-radius: 9px;
  background: #f5e42508;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}
@media (max-width: 850px) {
  .ranking-profile-body {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }
}
@media (max-width: 720px) {
  .dialog.ranking-profile {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .ranking-profile-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
  .ranking-profile-header {
    padding: 14px 16px;
  }
  .ranking-profile-player {
    width: 100%;
  }
}
@media (max-width: 450px) {
  .ranking-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ranking-profile-stat-total {
    grid-column: 1 / -1;
  }
  .ranking-profile-record dl {
    padding-inline: 14px;
    gap: 6px;
  }
  .ranking-profile-record dl > div + div {
    padding-left: 10px;
  }
}
.store-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.store-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 570px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #ffffff17;
  border-radius: 14px;
  background: linear-gradient(150deg, #1c2029, #101218 85%);
  box-shadow:
    0 8px 24px #0002,
    inset 0 1px #ffffff04;
}
.store-card-artwork {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: -20px -20px 18px;
  padding: 20px 18px 10px;
  overflow: hidden;
  border-bottom: 1px solid #ffffff08;
  background: radial-gradient(
    ellipse at 50% 60%,
    color-mix(in srgb, var(--card-light) 10%, transparent),
    transparent 68%
  );
}
.store-card-artwork::after {
  position: absolute;
  right: 32%;
  bottom: 13px;
  left: 32%;
  height: 9px;
  border-radius: 50%;
  background: #0005;
  filter: blur(7px);
  content: '';
}
.store-card-type {
  position: absolute;
  top: 12px;
  left: 14px;
  padding: 4px 7px;
  border: 1px solid #ffffff0c;
  border-radius: 6px;
  background: #10151c80;
  color: #a4aebe;
  font-size: 0.75rem;
  font-weight: 500;
}
.store-card-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 138px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px #0005);
  pointer-events: none;
}
.store-card-emblem {
  width: 152px;
  height: 152px;
}
.store-card-details {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.store-card-details:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}
.store-card:has(.store-card-details:focus-visible),
.store-card:hover {
  border-color: #f5e4254d;
  box-shadow:
    0 14px 34px #0004,
    inset 0 1px #ffffff06;
}
.store-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font: 700 1.375rem/1.25 var(--navigation-font);
  letter-spacing: -0.025em;
}
.store-card h3 .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  stroke-width: 1.7;
}
.store-card-description {
  min-height: 42px;
  margin: 0 0 16px;
  color: #aab2c2;
  font-size: 0.875rem;
  line-height: 1.5;
}
.store-card-perks {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0 0 20px;
  color: #dce1eb;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.45;
}
.store-card-perks li {
  position: relative;
  padding-left: 13px;
}
.store-card-perks li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: '';
}
.store-card-perks li:last-child {
  font-weight: 650;
}
.store-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 14px;
  color: #858791;
  font-size: 0.75rem;
}
.store-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.store-card-hint {
  color: #a1a9b8;
  font-size: 0.75rem;
}
.store-card:hover .store-card-hint {
  color: var(--accent);
}
.store-card-badges span {
  padding: 4px 6px;
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  color: #c5c6cf;
  background: #ffffff05;
  font-size: 0.75rem;
  line-height: 1;
}
.store-card-badges span:first-child {
  border-color: #ffffff16;
  color: #b6bfce;
  background: #ffffff05;
}
.store-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #ffffff14;
  color: var(--muted);
  font-size: 0.8rem;
}
.store-price strong {
  color: var(--text);
  font: 750 1.875rem/1.15 var(--navigation-font);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.store-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 0;
}
.store-card .store-purchase {
  width: 100%;
}
.store-card .store-purchase > .button {
  min-height: 41px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0;
}
.store-card .store-cart-quantity {
  min-height: 39px;
}
.store-actions .button.quiet,
.store-dialog .button.quiet {
  background: #1a1a1e;
  border-color: #3a3a42;
}
.store-actions .button.quiet:hover,
.store-dialog .button.quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dialog.store-dialog {
  border-color: #3a3a42;
  background: #111114;
}
.store-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #ffffff1f;
}
.store-dialog-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 800 1.02rem/1.4 var(--nav-font);
}
.store-dialog-header h2 .icon {
  color: var(--accent);
}
.store-contents-body {
  padding: 18px 20px 22px;
  color: var(--text);
  line-height: 1.6;
}
.store-contents-body p,
.store-contents-body ul {
  margin: 0;
}
.store-contents-body .store-contents-description {
  margin-bottom: 10px;
}
.store-contents-body ul {
  padding-left: 20px;
}
.store-contents-body li + li {
  margin-top: 8px;
}
.store-contents-body li::marker {
  color: var(--accent);
}

.dialog.kit-dialog {
  width: min(768px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  border-color: var(--accent-line);
  border-radius: 10px;
  box-shadow: 0 24px 70px #000a;
}
.kit-dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog.kit-dialog::backdrop {
  background: #030408e0;
}
.kit-header,
.kit-footer {
  flex-shrink: 0;
  padding: clamp(12px, 3vw, 24px);
}
.kit-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kit-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
}
.kit-emblem .icon {
  width: 23px;
  height: 23px;
}
.kit-header h2 {
  margin: 0;
  font: 800 clamp(1rem, 2.6vw, 1.3rem)/1.3 var(--nav-font);
}
.kit-header p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.kit-header .kit-close-icon {
  margin-left: auto;
  min-width: 40px;
  padding-inline: 8px;
  font-size: 1.4rem;
}
.kit-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.filter-tabs.kit-tabs {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 clamp(12px, 3vw, 24px) 12px;
}
.filter-tabs.kit-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  font: 600 0.875rem/1.2 var(--navigation-font);
}
.filter-tabs.kit-tabs button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark-text);
}
.filter-tabs.kit-tabs button:only-child {
  grid-column: 1 / -1;
}
.kit-panels {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px clamp(12px, 3vw, 24px);
}
.kit-items {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.kit-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 5px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}
.kit-item img {
  display: block;
  width: 100%;
  max-width: 74px;
  height: clamp(52px, 11vw, 74px);
  object-fit: contain;
}
.kit-item-name {
  align-self: center;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}
.kit-item-quantity {
  color: var(--accent);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.kit-footer .button {
  width: 100%;
}

.dialog.store-cart {
  position: fixed;
  inset: 16px 16px 16px auto;
  width: min(500px, calc(100% - 32px));
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  background: radial-gradient(ellipse at top right, #f5e42508, transparent 48%), #10131a;
  box-shadow:
    0 24px 100px #0009,
    inset 0 1px #ffffff08;
}
.dialog.store-cart::backdrop {
  background: #03060bb8;
  backdrop-filter: blur(7px);
}
.store-cart[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
html:has(.store-dialog[open]) {
  overflow: hidden;
}
.store-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px 22px;
  border-bottom: 1px solid #ffffff0d;
}
.store-cart-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.store-cart-heading-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid #f5e42526;
  border-radius: 14px;
  background: #f5e4250c;
  color: var(--accent);
}
.store-cart-heading-icon .icon {
  width: 22px;
  height: 22px;
}
.store-cart-heading .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.store-cart-heading h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 0 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.store-cart-heading h2 > span {
  padding: 4px 7px;
  border: 1px solid #ffffff12;
  border-radius: 6px;
  color: #aab3c2;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}
.store-cart-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff04;
  color: #aab3c2;
  cursor: pointer;
}
.store-cart-close:hover {
  background: #ffffff0c;
  color: var(--text);
}
.store-cart-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #39414e transparent;
  padding: 22px 24px;
}
.store-cart-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 12px;
  text-align: center;
}
.store-cart-empty-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border: 1px solid #f5e4251f;
  border-radius: 28px;
  background: radial-gradient(ellipse at top, #f5e42518, #f5e42503);
  color: var(--accent);
  transform: rotate(-7deg);
}
.store-cart-empty-icon .icon {
  width: 36px;
  height: 36px;
}
.store-cart-empty h3 {
  margin: 0 0 10px;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.store-cart-empty p {
  max-width: 30ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.store-cart-items {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.store-cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 12px;
  padding: 16px 14px;
  border: 1px solid #ffffff0d;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff04, transparent), #151a23;
}
.store-cart-art {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 92px;
  border: 1px solid #ffffff07;
  border-radius: 10px;
  background: radial-gradient(ellipse, #f5e4250c, #0d111980 75%);
}
.store-cart-art img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: contain;
  padding: 4px;
  filter: drop-shadow(0 5px 7px #0005);
}
.store-cart-item {
  display: grid;
  min-width: 0;
  gap: 4px;
  grid-column: 2;
  grid-row: 1;
}
.store-cart-item strong {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.store-cart-item span {
  color: var(--muted);
  font-size: 0.75rem;
}
.store-cart-item .store-cart-billing {
  color: #c5c18c;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.store-cart-controls {
  grid-column: 2;
  grid-row: 2;
}
.store-cart-line-total {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.store-cart-controls,
.store-cart-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-purchase > .button,
.store-purchase > .store-cart-quantity {
  width: 100%;
}
.store-purchase > .store-cart-quantity {
  justify-content: center;
}
.store-cart-quantity span {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.store-cart-quantity .button {
  min-width: 36px;
  padding-inline: 6px;
  font-size: 1rem;
}
.store-cart-quantity .button:disabled {
  opacity: 0.45;
  cursor: default;
}
.store-cart-remove {
  display: grid;
  place-items: center;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7d8797;
  cursor: pointer;
}
.store-cart-remove:hover {
  color: #ffc0a5;
  background: #ff9e7a0c;
}
.store-cart-line .store-cart-quantity {
  gap: 0;
  width: max-content;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  background: #0d1119;
  overflow: hidden;
}
.store-cart-line .store-cart-quantity span {
  min-width: 26px;
  font-size: 0.875rem;
}
.store-cart-line .store-cart-quantity .button {
  width: 30px;
  min-width: 30px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.store-cart-summary {
  padding: 22px 24px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid #ffffff0f;
  background: #0c1017;
  box-shadow: 0 -12px 24px #0001;
}
.store-cart-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.store-cart-summary-heading h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.store-cart-summary-heading > span {
  padding: 3px 6px;
  border: 1px solid #ffffff12;
  border-radius: 4px;
  color: #7e899b;
  font-size: 0.75rem;
  font-weight: 600;
}
.store-cart-summary dl {
  margin: 0;
}
.store-cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #aab3c2;
  font-size: 0.875rem;
}
.store-cart-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.store-cart-summary .store-cart-subtotal {
  align-items: baseline;
  margin: 16px 0 12px;
  padding-top: 16px;
  border-top: 1px solid #ffffff0d;
  color: var(--text);
  font-size: 0.9375rem;
}
.store-cart-subtotal dd {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.store-cart-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.store-cart-summary .store-cart-renewal {
  margin-bottom: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.store-checkout-button {
  width: 100%;
  min-height: 48px;
  margin-block: 14px 10px;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.store-cart-terms {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}
.store-cart-terms input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.store-cart-terms a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-payment {
  width: min(620px, 100%);
  margin: 32px auto;
  scroll-margin-top: 110px;
  border: 1px solid #384354;
  border-radius: 18px;
  background: #101620;
  box-shadow: 0 18px 70px #0005;
}
.commerce-page::before {
  background: #090909;
}
.commerce-header {
  min-height: 63px;
  border-bottom: 1px solid #ffffff0d;
  background: #030303;
}
.commerce-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1480px, calc(100% - 40px));
  min-height: 63px;
  margin-inline: auto;
}
.commerce-logo {
  display: flex;
  flex-shrink: 0;
}
.commerce-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.commerce-home,
.basket-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b4bac5;
  font-size: 0.75rem;
}
.commerce-home:hover,
.basket-heading > a:hover {
  color: var(--accent);
}
.commerce-home .icon,
.basket-heading > a .icon {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}
.commerce-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.commerce-actions .button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.75rem;
}
.commerce-actions .header-account {
  min-height: 34px;
  font-size: 0.75rem;
}
.commerce-cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff1c;
  border-radius: 8px;
}
.commerce-cart-link > span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--dark-text);
  font-size: 0.625rem;
  font-weight: 750;
}
.basket-shell {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: 80px 24px 50px;
}
.basket-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
.basket-heading h1 {
  margin: 0;
  font-size: 1.625rem;
  letter-spacing: -0.04em;
}
.basket-page .store-cart-body {
  padding: 0;
  overflow: visible;
}
.basket-page .store-cart-items {
  gap: 14px;
}
.basket-page .store-cart-line {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px 13px;
  padding: 22px;
  border: 1px solid #6b5d1d;
  border-radius: 11px;
  background: linear-gradient(110deg, #221e10, #19160c);
}
.basket-page .store-cart-art {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #ffffff04;
}
.basket-page .store-cart-item {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.basket-page .store-cart-item strong {
  order: -1;
  font-size: 1rem;
  font-weight: 700;
}
.basket-page .store-cart-item .store-cart-billing {
  color: #b0a375;
  font-size: 0.6875rem;
  letter-spacing: 0;
  text-transform: none;
}
.basket-page [data-line-price] {
  display: none;
}
.basket-page .store-cart-line-total {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  font-size: 1.125rem;
}
.basket-page .store-cart-controls {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-start;
}
.basket-page .store-cart-quantity {
  border-color: #ffffff16;
  background: #0000001c;
}
.basket-page .store-cart-remove {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-self: end;
  width: auto;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #ef9292;
  font-size: 0.75rem;
}
.basket-page .store-cart-remove .icon {
  width: 13px;
  height: 13px;
}
.store-cart .store-cart-remove span {
  display: none;
}
.basket-upgrade {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin-block: 28px;
  padding: 20px;
  border: 1px solid #ffffff1c;
  border-radius: 11px;
  background: linear-gradient(120deg, #202838, #0d1018 80%);
}
.basket-upgrade::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #6a96b8, #ddd16b);
}
.basket-upgrade-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #798fce22;
  color: #93b1ec;
}
.basket-upgrade-copy {
  flex: 1;
  min-width: 0;
}
.basket-upgrade h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.basket-upgrade h2 > span {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 6px;
  border: 1px solid #f5e42528;
  border-radius: 20px;
  color: #d9d28b;
  font-size: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  white-space: nowrap;
}
.basket-upgrade-copy > p {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  color: #c3ccdd;
}
.basket-upgrade-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.basket-upgrade-ranks span {
  padding: 3px 5px;
  border: 1px solid #78b5c742;
  border-radius: 3px;
  background: #78b5c70c;
  color: #93c8d8;
  font-size: 0.5625rem;
}
.basket-upgrade-ranks span:nth-child(2) {
  color: #c49ae7;
  border-color: #a86bd852;
}
.basket-upgrade-ranks span:nth-child(3) {
  color: #e7ab85;
  border-color: #d4714852;
}
.basket-upgrade-ranks span:nth-child(4) {
  color: #b6d5ed;
  border-color: #84bce252;
}
.basket-upgrade-ranks span:nth-child(5) {
  color: #f0dc8c;
  border-color: #e5b95652;
}
.basket-upgrade-action {
  display: grid;
  justify-items: end;
  gap: 9px;
}
.basket-upgrade-action > strong {
  font-size: 1.125rem;
  white-space: nowrap;
}
.basket-upgrade-action .button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.6875rem;
}
.basket-page .store-cart-summary {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #ffffff14;
  border-radius: 11px;
  background: #111;
}
.basket-page .store-cart-summary-heading {
  margin-bottom: 20px;
}
.basket-page .store-cart-summary-heading h3 {
  font-size: 1.0625rem;
}
.basket-summary-items {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}
.basket-summary-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
}
.basket-summary-row strong {
  flex-shrink: 0;
}
.basket-page [data-cart-total] {
  display: none !important;
}
.basket-page .store-cart-summary .store-cart-subtotal {
  padding-block: 17px 8px;
  border-top: 1px solid #ffffff10;
  font-size: 0.9375rem;
  font-weight: 700;
}
.basket-page .store-cart-subtotal dd {
  color: var(--text);
  font-size: 1rem;
}
.basket-page .store-cart-summary .store-cart-renewal {
  font-size: 0.6875rem;
}
.basket-page .store-checkout-button {
  min-height: 40px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
}
.basket-page .store-cart-summary .store-cart-checkout-caption,
.basket-page .store-cart-summary .basket-secure-caption {
  text-align: center;
  font-size: 0.625rem;
  line-height: 1.6;
  color: #959bab;
}
@media (max-width: 560px) {
  .commerce-header-inner {
    gap: 10px;
    width: calc(100% - 24px);
  }
  .basket-shell {
    padding: 38px 16px;
  }
  .basket-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .basket-heading h1 {
    font-size: 1.375rem;
  }
  .basket-page .store-cart-line {
    padding: 17px;
    gap: 16px 10px;
  }
  .basket-page .store-cart-item strong {
    font-size: 0.875rem;
  }
  .basket-page .store-cart-line-total {
    font-size: 1rem;
  }
  .basket-upgrade {
    flex-wrap: wrap;
    padding: 17px;
  }
  .basket-upgrade-copy {
    min-width: 180px;
  }
  .basket-upgrade h2 > span {
    margin-left: 0;
    margin-top: 5px;
  }
  .basket-upgrade-action {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
  }
  .basket-page .store-cart-summary {
    padding: 18px;
  }
}
.checkout-page {
  max-width: 820px;
  padding-block: 40px 70px;
}
.checkout-heading {
  max-width: 620px;
  margin-inline: auto;
}
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.checkout-back:hover {
  color: var(--accent);
}
.checkout-back .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
.checkout-heading h1 {
  margin-block: 8px 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.055em;
}
.checkout-heading h1 span {
  color: var(--accent);
}
.checkout-heading > p:last-child {
  color: var(--muted);
  font-size: 0.875rem;
}
.checkout-page .store-payment {
  margin-top: 24px;
}
.checkout-secure-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9bbaa9;
  font-size: 0.6875rem;
}
.checkout-secure-label .icon {
  width: 13px;
  height: 13px;
}
.store-payment .store-dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid #ffffff14;
}
.store-payment .store-dialog-header h2 {
  font-size: 1.1rem;
}
.store-payment-body {
  padding: 24px;
}
.store-payment-test {
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 1px solid #f5e42540;
  border-radius: 8px;
  background: #f5e4250c;
  color: #f5e425;
  font-size: 0.8rem;
}
.store-payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.store-payment-total span {
  color: var(--muted);
  font-size: 0.8rem;
}
.store-payment-total p {
  margin: 4px 0 0;
  font-weight: 600;
}
.store-payment-total strong {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}
.store-payment-status {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.875rem;
}
.store-payment-status:empty {
  display: none;
}
.store-payment-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
}
.store-payment-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.store-payment-caption {
  margin: 20px 0 0;
  color: #8c97aa;
  font-size: 0.75rem;
  line-height: 1.6;
}
.store-checkout-button:disabled {
  opacity: 0.68;
  cursor: wait;
}
.store-checkout-button use[href='#i-discord-logo'] {
  fill: currentColor;
}
.store-cart-summary .store-checkout-error {
  color: #ffc0a5;
  margin-bottom: 8px;
}
.store-cart-summary .store-cart-checkout-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7d8797;
  font-size: 0.75rem;
  line-height: 1.5;
}
.store-cart-checkout-caption .icon {
  width: 13px;
  height: 13px;
}
.store-cart-continue {
  margin-top: 12px;
  text-align: center;
}
.store-cart-continue button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #bac3d2;
  cursor: pointer;
  font-size: 0.8125rem;
}
.store-cart-continue button:hover {
  color: var(--accent);
}
@media (max-width: 560px) {
  .dialog.store-cart {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .store-cart-header {
    padding: 20px 16px;
  }
  .store-cart-body,
  .store-cart-summary {
    padding-inline: 16px;
  }
  .store-cart-line {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px 8px;
    padding: 12px 10px;
  }
  .store-cart-item strong {
    font-size: 0.875rem;
  }
  .store-cart-art img {
    height: 64px;
  }
}
@media (max-height: 620px) {
  .store-cart[open] {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .store-cart-body {
    flex: 1 0 auto;
    overflow: visible;
  }
  .store-cart-header,
  .store-cart-summary {
    flex-shrink: 0;
  }
}
.store-checkout-notice {
  margin-bottom: 12px;
}

.server-population {
  max-width: 220px;
  margin-inline: auto;
  text-align: center;
}
.server-population-label {
  color: var(--muted);
  font: 700 0.65rem/1.4 var(--nav-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.server-population-values {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.server-population-values strong {
  color: var(--accent);
  font: 850 2rem/1.15 var(--nav-font);
}
.server-population-values > span {
  font-size: 0.85rem;
}
.server-population-values .server-population-unavailable {
  padding-block: 6px;
  font-size: 0.78rem;
}
.server-population-meter {
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff21;
}
.server-population-meter::before {
  content: '';
  display: block;
  width: var(--occupancy, 0%);
  height: 100%;
  background: var(--accent);
}

.subpage {
  padding-block: 45px 65px;
  min-height: min(650px, calc(100vh - 235px));
}
.page-title {
  padding-bottom: 23px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.page-title h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.069em;
  line-height: 0.97;
  font-weight: 880;
  margin: 9px 0;
}
.page-title > p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}
.page-tools {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
.panel {
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.group {
  margin-bottom: 16px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 760;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 690;
  line-height: 1.25;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 38px 16px;
}
.empty > .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.empty h3 {
  margin: 11px 0 4px;
  font-size: 0.94rem;
}
.empty p {
  color: var(--muted);
  margin: 0;
  max-width: 450px;
  font-size: 0.83rem;
  line-height: 1.6;
}
.empty .button {
  margin-top: 13px;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  padding: 13px 14px;
  margin-block: 14px;
}
.notice strong {
  font-size: 0.89rem;
}
.notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.5;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.filter-tabs button {
  min-height: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  color: var(--muted);
  padding: 8px 12px;
  font: 600 0.875rem/1.2 var(--navigation-font);
  cursor: pointer;
}
.filter-tabs button:hover {
  color: var(--text);
}
.filter-tabs button[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}
.filters {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) minmax(125px, 0.8fr) minmax(125px, 0.8fr);
  gap: 10px;
  padding: 14px 16px 0;
}
.field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
}
.field.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field input,
.field select {
  width: 100%;
  min-height: 37px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #3a465d;
  background: #0d1320;
  color: var(--text);
}
.field input::placeholder {
  color: #8c99ad;
}
.table-wrap {
  overflow-x: auto;
  padding: 12px 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.83rem;
  text-align: left;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
}
th {
  color: var(--muted);
}
.simple-list {
  list-style: none;
  padding: 0 16px;
  margin: 0;
}
.simple-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.simple-list li:last-child {
  border: 0;
}
.simple-list li p {
  width: 100%;
  color: var(--muted);
  margin: 0;
  font-size: 0.81rem;
}
.simple-list li span {
  color: var(--accent);
  font-size: 0.76rem;
}
.shards-surface {
  background: #0c0c0e33;
  border-top: 1px solid #1c1c20;
}
.shards-shop-hero {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 35px;
}
.shards-heading h1 {
  margin: 9px 0 10px;
  font: 850 clamp(1.9rem, 5vw, 3.25rem)/1.1 var(--nav-font);
  text-transform: uppercase;
}
.shards-heading h1 span {
  color: var(--accent);
}
.shard-earn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin: 0 0 30px;
  padding: 13px 17px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: linear-gradient(115deg, #242014, #141417 65%);
}
.shard-earn-intro {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shard-earn-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 5px;
  color: var(--accent);
  background: var(--accent-soft);
}
.shard-earn h2 {
  margin: 0;
  font: 800 0.83rem/1.25 var(--nav-font);
  text-transform: uppercase;
}
.shard-earn p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}
.shard-earn dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
}
.shard-earn dt {
  color: var(--muted);
  font-size: 0.72rem;
}
.shard-earn dd {
  margin: 3px 0 0;
  font-size: 0.78rem;
}
.shard-earn dd strong {
  color: var(--accent);
  font: 850 1rem/1 var(--nav-font);
}
.shard-earn-account {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid #f5e4252b;
}
.shard-earn-wallet h3,
.shard-earn-progress h3 {
  margin: 0;
  font: 650 0.875rem/1.4 var(--nav-font);
}
.shard-earn-wallet .button {
  margin-top: 10px;
  font-size: 0.875rem;
}
.shard-earn .shards-amount {
  justify-content: flex-start;
  color: var(--accent);
}
.shard-earn-progress {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid #f5e4252b;
}
.shard-progress-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.shard-progress-meter progress {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 7px;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #333236;
  color: var(--accent);
}
.shard-progress-meter progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #333236;
}
.shard-progress-meter progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--accent);
}
.shard-progress-meter progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--accent);
}
.shard-progress-meter strong {
  color: var(--accent);
  font: 800 0.74rem/1 var(--nav-font);
}
.shard-server-select {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 15px;
  padding: 4px;
  border: 1px solid #2c2c31;
  border-radius: 7px;
  background: #131316;
}
.shard-server-select .server-art-link {
  flex: 0 1 118px;
  min-width: 0;
  padding: 4px;
}
.shard-shop-instructions {
  margin: -6px 0 13px;
  color: var(--muted);
  font-size: 0.85rem;
}
.shards-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 6px 0;
  color: var(--accent);
  font: 800 clamp(1.35rem, 5vw, 2.2rem)/1.2 var(--nav-font);
  overflow-wrap: anywhere;
}
.shards-amount .icon {
  width: 0.86em;
  height: 0.86em;
}
.shards-balance-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
}
.shards-shop-section + .shards-shop-section {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid #29292d;
}
.shards-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.shards-section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font: 850 clamp(1.05rem, 3vw, 1.45rem)/1.2 var(--nav-font);
  text-transform: uppercase;
}
.shards-section-head h2 .icon {
  color: var(--accent);
}
.shards-section-head p,
.shard-shop-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.shard-shop-status:not(:empty) {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-soft);
}
[data-shard-delivery='online'] [data-shard-topup-note] {
  display: none;
}
.shard-packs,
.shard-items {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.shard-packs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.shard-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shard-pack,
.shard-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid #303036;
  border-radius: 8px;
  background: linear-gradient(145deg, #19191c, #111114);
}
.shard-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 22px;
  overflow: hidden;
  border-color: #ffffff14;
  border-radius: 16px;
  background: linear-gradient(150deg, #1c2029, #101218 85%);
  box-shadow:
    0 8px 26px #0002,
    inset 0 1px #ffffff04;
}
.shard-pack:hover {
  border-color: var(--accent-line);
  box-shadow: 0 14px 34px #0004;
}
.shard-pack-featured {
  border-color: var(--accent-line);
}
.shard-pack-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
}
.shard-pack-visual {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 13px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #f5e42509, transparent 65%);
}
.shard-pack-visual img {
  display: block;
  width: 190px;
  height: 128px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px #0005);
}
.shard-pack h3 {
  margin: 18px 0 0;
  color: var(--text);
  font: 700 1.5rem/1.25 var(--navigation-font);
  letter-spacing: -0.025em;
}
.shard-pack-availability {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 38px;
  padding-bottom: 16px;
  color: #a0a4b0;
  font-size: 0.75rem;
}
.shard-pack-server {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1;
}
.shard-pack-buy {
  display: grid;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #ffffff14;
}
.shard-pack-price {
  display: grid;
  gap: 4px;
}
.shard-pack-price strong {
  color: var(--text);
  font: 750 1.875rem/1.15 var(--navigation-font);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.shard-pack-price > span {
  color: #a0a4b0;
  font-size: 0.75rem;
}
.shard-pack .button {
  min-height: 43px;
  width: 100%;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 650;
}
.shard-pack .button.primary {
  border-color: #465060;
  background: linear-gradient(180deg, #333c4a, #2b3340);
  color: var(--text);
}
.shard-pack .button.primary:hover {
  border-color: #68758a;
  background: #3b4656;
}
.shard-pack .store-cart-quantity {
  justify-content: center;
  min-height: 38px;
}
.shard-pack .store-cart-quantity .button {
  width: 36px;
  font-size: 1rem;
}
.shard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}
.shard-filters button,
.shard-item-quantity button {
  border: 1px solid #38383e;
  border-radius: var(--button-radius);
  background: #131316;
  color: var(--text);
  font: 600 0.875rem/1.2 var(--navigation-font);
  cursor: pointer;
}
.shard-filters button {
  min-height: 35px;
  padding-inline: 10px;
}
.shard-filters button span {
  margin-left: 4px;
  font-size: 0.68rem;
}
.shard-filters button[aria-pressed='true'],
.shard-filters button:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}
.shard-item header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shard-item img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #333339;
  border-radius: 6px;
  background: #0c0c0f;
  object-fit: contain;
}
.shard-item h3 {
  margin: 0 0 3px;
  font: 750 0.8rem/1.3 var(--nav-font);
  overflow-wrap: anywhere;
}
.shard-item header span,
.shard-item-price small {
  color: var(--muted);
  font-size: 0.73rem;
}
.shard-item-price {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 11px 0;
  color: var(--accent);
}
.shard-item-quantity {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.shard-item-quantity button,
.shard-item-quantity output {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 0;
  font-size: 0.75rem;
}
.shard-item-quantity button:disabled,
.shard-item footer button:disabled {
  cursor: default;
  opacity: 0.54;
}
.shard-item-quantity button:not(:disabled):hover {
  color: var(--accent);
}
.shard-item footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #303035;
  color: var(--muted);
  font-size: 0.78rem;
}
.shard-item footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.shard-item footer strong,
.shard-item footer .icon {
  color: var(--accent);
}
.shard-item footer .icon {
  width: 13px;
  height: 13px;
}
.shard-item footer .button {
  min-height: 32px;
  padding-inline: 8px;
}
.shard-item-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
@media (max-width: 960px) {
  .shard-packs,
  .shard-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 670px) {
  .shard-earn-account {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .shard-earn-progress {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #f5e4252b;
  }
  .shard-packs,
  .shard-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .shard-item {
    padding: 10px;
  }
  .shard-item img {
    width: 40px;
    height: 40px;
  }
  .shard-item header {
    gap: 6px;
  }
}
@media (max-width: 520px) {
  .shard-packs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 405px) {
  .shard-items {
    grid-template-columns: 1fr;
  }
}
.account-panel {
  max-width: 550px;
  padding: 25px;
}
.account-panel > .icon {
  color: var(--accent);
  width: 31px;
  height: 31px;
}
.account-panel h2 {
  margin: 8px 0;
  font-size: 1.12rem;
}
.account-panel p {
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.87rem;
}
.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.account-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--accent);
}
.account-links a:hover,
.prose a:hover {
  text-decoration: underline;
}
.prose {
  max-width: 790px;
  padding: 20px;
}
.prose section + section {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.prose h2 {
  font-size: 0.98rem;
  margin: 0 0 4px;
}
.prose p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.65;
}
.prose a {
  color: var(--accent);
}
.dialog {
  border: 1px solid #455774;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  width: min(455px, calc(100% - 30px));
}
.dialog::backdrop {
  background: #060a13cc;
}

.footer {
  border-top: 1px solid #292c34;
  background: #0b0c0f;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 0.75fr)) minmax(0, 1.1fr);
  gap: 28px;
  padding-block: clamp(28px, 4vw, 46px);
}
.footer-grid::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}
.footer-brand .brand {
  gap: 10px;
  font: 850 clamp(0.94rem, 1.9vw, 1.2rem)/1.3 var(--nav-font);
  letter-spacing: 0;
}
.footer-brand .brand img {
  width: 42px;
  height: 42px;
}
.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font: 750 0.7rem/1.3 var(--nav-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-bottom a {
  display: inline-block;
  padding-block: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}
.footer-discord {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #292c34;
  border-radius: 5px;
  background: #131419;
}
.footer-discord:hover {
  border-color: var(--accent-line);
}
.footer-discord-icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}
.footer-discord-icon .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.footer-discord strong {
  font-size: 0.82rem;
  line-height: 1.35;
}
.footer-discord > .icon {
  margin-left: auto;
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-block: 13px;
  border-top: 1px solid #292c34;
  color: var(--muted);
  font-size: 0.76rem;
}
.footer-bottom a {
  font-size: inherit;
}

@media (max-width: 1120px) {
  .store-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topbar-inner {
    width: calc(100% - 44px);
    gap: 20px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav .nav-link {
    font-size: 0.875rem;
  }
  .account-nav {
    gap: 10px;
  }
  .header-secure {
    display: none;
  }
}

@media (max-width: 1050px) {
  .shell {
    width: calc(100% - 44px);
  }
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .footer-brand,
  .footer-community {
    grid-column: 1 / -1;
  }
  .footer-discord {
    width: min(100%, 250px);
  }
}

@media (max-width: 920px) {
  .store-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root {
    --header-offset: 70px;
    --header-height: 60px;
  }
  .topbar-inner {
    min-height: 59px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding-inline: 3px;
    cursor: pointer;
    font: 600 0.875rem/1.2 var(--navigation-font);
    letter-spacing: 0.005em;
  }
  .mobile-menu[open] > summary {
    color: var(--header-accent);
  }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 9px 22px;
    background: #101013;
    border-bottom: 1px solid #28282d;
    box-shadow: 0 8px 16px #08090da0;
  }
  .mobile-menu .nav-link {
    min-height: 41px;
    padding-inline: 8px;
    border-radius: 3px;
  }
  .mobile-menu .nav-link[aria-current='page'] {
    background: var(--accent-soft);
  }
  .mobile-menu .header-servers {
    grid-column: 1 / -1;
  }
  .mobile-menu .header-server-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .mobile-menu .header-servers[open] .header-server-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mobile-menu .server-menu-all {
    grid-column: 1 / -1;
  }
  .server-cards {
    grid-template-columns: minmax(0, 430px);
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .kit-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .store-actions {
    display: grid;
    gap: 6px;
  }
  .store-actions .button {
    padding-inline: 6px;
  }
  .store-nav a {
    padding-inline: 6px;
    font-size: 0.875rem;
    gap: 4px;
  }
  .store-cart-button.button {
    padding-inline: 8px;
    gap: 5px;
  }
  .topbar-inner {
    gap: 8px;
  }
  .brand {
    gap: 5px;
    font-size: 0.91rem;
  }
  .brand > img {
    width: 30px;
    height: 30px;
  }
  .account-nav .header-sign-in {
    padding-inline: 10px;
  }
  .account-nav .header-account {
    padding-inline: 6px;
    font-size: 0.875rem;
  }
  .account-nav .header-account-name {
    max-width: min(13ch, 22vw);
  }
  .subpage {
    padding-block: 30px 38px;
  }
  .page-title {
    padding-bottom: 16px;
    margin-bottom: 15px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters .field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .store-group {
    scroll-margin-top: calc(var(--header-offset) + 116px);
  }
  .store-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .store-card {
    min-height: 550px;
  }
  .store-card-art {
    width: 138px;
    height: 148px;
  }
  .store-card-emblem {
    width: 152px;
    height: 152px;
  }
}

@media (max-width: 395px) {
  .topbar-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }
  .header-brand {
    width: 85px;
  }
  .account-nav {
    gap: 6px;
  }
  .mobile-menu > summary > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mobile-menu > summary {
    justify-content: center;
    min-width: 32px;
  }
  .store-nav a .icon {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  :root {
    --motion-out: cubic-bezier(0.2, 0.75, 0.25, 1);
    --motion-fast: 160ms;
    scroll-behavior: smooth;
  }

  .topbar {
    view-transition-name: lyra-topbar;
  }
  ::view-transition {
    pointer-events: none;
  }
  ::view-transition-group(lyra-topbar) {
    animation: none;
    z-index: 1;
  }
  ::view-transition-old(lyra-topbar) {
    display: none;
  }
  ::view-transition-new(lyra-topbar) {
    animation: none;
    mix-blend-mode: normal;
  }
  ::view-transition-group(root) {
    animation-duration: 300ms;
  }
  ::view-transition-old(root) {
    animation: lyra-page-out 220ms ease-in both;
    mix-blend-mode: normal;
  }
  ::view-transition-new(root) {
    animation: lyra-page-in 300ms var(--motion-out) both;
    mix-blend-mode: normal;
  }

  main {
    animation: lyra-page-in 260ms var(--motion-out) backwards;
  }
  :root:active-view-transition main {
    animation: none;
  }

  :is(.nav-link, .server-art-link, .footer-links a, .footer-bottom a, .account-dropdown-action) {
    transition:
      color var(--motion-fast),
      border-color var(--motion-fast),
      background-color var(--motion-fast);
  }
  .server-chevron {
    transition: transform 210ms var(--motion-out);
  }
  :is(
    .header-servers[open] > .header-server-menu,
    .account-dropdown[open] > .account-dropdown-panel,
    .mobile-menu[open] > nav
  ) {
    animation: lyra-menu-in 205ms var(--motion-out) backwards;
  }

  :is(.button, .filter-tabs button, .ranking-metrics button, .ranking-search-input button) {
    transition:
      color var(--motion-fast),
      border-color var(--motion-fast),
      background-color var(--motion-fast),
      box-shadow 220ms ease,
      transform var(--motion-fast) var(--motion-out);
  }
  :is(.button, .filter-tabs button, .ranking-metrics button, .ranking-search-input button):not(
      :disabled
    ):active {
    transform: scale(0.975);
  }
  .kit-items:not([hidden]),
  .ranking-card {
    animation: lyra-menu-in 200ms var(--motion-out) backwards;
  }
  .ranking-card:nth-child(2) {
    animation-delay: 30ms;
  }
  .ranking-card:nth-child(3) {
    animation-delay: 60ms;
  }

  .server-card-pending {
    opacity: 0;
  }
  .server-card-revealed {
    animation: lyra-server-reveal 500ms ease-out backwards;
  }
  .server-card-revealed:nth-child(2) {
    animation-delay: 575ms;
  }
  .server-card-revealed:nth-child(3) {
    animation-delay: 1150ms;
  }

  @media (hover: hover) and (pointer: fine) {
    .main-nav .nav-link::before {
      position: absolute;
      right: 0;
      bottom: 2px;
      left: 0;
      height: 2px;
      background: var(--accent);
      content: '';
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 220ms var(--motion-out);
    }
    .main-nav .nav-link:is(:hover, :focus-visible)::before {
      transform: scaleX(1);
    }
    .button:not(:disabled):hover {
      transform: translateY(-2px);
    }
    .button.primary:not(:disabled):hover {
      box-shadow: 0 5px 20px #f5e42520;
    }
    .button:not(:disabled):active {
      transform: translateY(0) scale(0.975);
    }
    .store-card-art,
    .shard-pack-visual img {
      transition: transform 360ms var(--motion-out);
    }
    .store-card:is(:hover, :focus-within) .store-card-art,
    .shard-pack:is(:hover, :focus-within) .shard-pack-visual img {
      transform: translateY(-6px) scale(1.06) rotate(-1deg);
    }
    :is(.store-card, .shard-pack, .clan-card, .shard-item) {
      transition:
        transform 260ms var(--motion-out),
        border-color 220ms ease,
        box-shadow 260ms ease;
    }
    :is(.store-card, .shard-pack, .clan-card, .shard-item):is(:hover, :focus-within) {
      transform: translateY(-4px);
      border-color: var(--accent-line);
    }
    .store-nav a .icon {
      transition: transform 240ms var(--motion-out);
    }
    .store-nav a:is(:hover, :focus-visible) .icon {
      transform: translateY(-2px) rotate(-8deg);
    }
  }

  .dialog {
    --dialog-offset: translateY(12px) scale(0.985);
    --dialog-duration: 240ms;
  }
  .dialog.store-cart {
    --dialog-offset: translateX(100%);
    --dialog-duration: 280ms;
  }
  .dialog[open] {
    animation: lyra-dialog-in var(--dialog-duration) var(--motion-out) backwards;
  }
  .dialog[open]::backdrop {
    animation: lyra-backdrop-in 180ms ease-out backwards;
  }

  @supports (overlay: auto) and (transition-behavior: allow-discrete) {
    .dialog,
    .dialog::backdrop {
      opacity: 0;
      transition:
        opacity 170ms var(--motion-out),
        display 170ms allow-discrete,
        overlay 170ms allow-discrete;
    }
    .dialog {
      transform: var(--dialog-offset);
      transition-property: opacity, display, overlay, transform;
      transition-behavior: normal, allow-discrete, allow-discrete, normal;
    }
    .dialog[open],
    .dialog[open]::backdrop {
      animation: none;
      opacity: 1;
    }
    .dialog[open] {
      transform: none;
      transition-duration: var(--dialog-duration);
    }
    .dialog:not([open]),
    .dialog:not([open])::backdrop {
      pointer-events: none;
    }

    @starting-style {
      .dialog[open],
      .dialog[open]::backdrop {
        opacity: 0;
      }
      .dialog[open] {
        transform: var(--dialog-offset);
      }
    }
  }

  @keyframes lyra-page-out {
    to {
      opacity: 0;
      transform: translateY(-5px);
    }
  }
  @keyframes lyra-page-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
  @keyframes lyra-menu-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
  @keyframes lyra-server-reveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
  @keyframes lyra-dialog-in {
    from {
      opacity: 0;
      transform: var(--dialog-offset);
    }
  }
  @keyframes lyra-backdrop-in {
    from {
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
