*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html.basket-open,
html.basket-open body {
  overflow: hidden;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000000;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  background: #000000;
}

main {
  flex: 1;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 32px;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 50;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

body.nav-open .menu-toggle .icon-menu {
  display: none;
}

body.nav-open .menu-toggle .icon-close {
  display: block;
}

.nav-head {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.logo,
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo-net {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9a9a9a;
  font-weight: 500;
}

.logo-net::before {
  content: "";
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.28);
}

.tab,
.basket-toggle {
  color: #d4d4d4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tab:hover,
.basket-toggle:hover {
  color: #ffffff;
}

.account-tab {
  position: relative;
  margin-left: 28px;
}

.account-tab[hidden],
.wallet-signin[hidden],
.wallet-toggle[hidden],
.wallet-menu[hidden] {
  display: none;
}

html.signed-in .account-tab,
html.signed-in .wallet-toggle {
  display: inline-flex !important;
}

html.signed-in .wallet-signin {
  display: none !important;
}

.wallet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #141414;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.wallet-toggle:hover {
  background: #1c1c1c;
}

.wallet-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #f5c542;
}

.wallet-toggle svg[hidden] {
  display: none;
}

.account-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  border-radius: 4px;
  background: #222;
}

.account-avatar[hidden] {
  display: none !important;
}

.login-page .account-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.wallet-stand {
  margin: 0 0 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.wallet-topup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.wallet-topup svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.wallet-topup:hover {
  background: #0a0a0a;
}

.wallet-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wallet-invite svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.wallet-invite:hover {
  background: #0a0a0a;
}

.wallet-invite-note {
  margin: 0;
  padding: 0 12px 6px;
  color: #737373;
  font-size: 11px;
  line-height: 1.4;
}

.basket-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 28px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #141414;
  color: #ffffff;
  cursor: pointer;
}

.basket-toggle svg {
  width: 20px;
  height: 20px;
}

.basket-toggle span {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2f6bff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.basket-toggle span[hidden] {
  display: none;
}

.basket-toggle[hidden] {
  display: none;
}

.club {
  position: relative;
}

.club-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.club-caret {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.club-toggle[aria-expanded="true"] .club-caret {
  transform: rotate(180deg);
}

.club-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  padding: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.club-menu[hidden] {
  display: none;
}

.club-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.club-tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.club-tab:hover {
  background: #0a0a0a;
}

.club-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.club-ip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  pointer-events: none;
}

.club-ip:hover {
  background: #0a0a0a;
}

.club-ip.is-copied {
  color: #3dff7a;
}

.lang {
  position: relative;
  z-index: 50;
  margin-left: 8px;
}

.basket-toggle[hidden] + .lang {
  margin-left: 28px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
}

.lang-toggle:hover {
  background: #0a0a0a;
}

.lang-toggle svg {
  width: 20px;
  height: 20px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 160px;
  padding: 6px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: #0a0a0a;
}

.logo:focus-visible,
.more:focus-visible,
.filters a:focus-visible,
.footer-ip:focus-visible,
.club-tab:focus-visible,
.club-ip:focus-visible,
.wallet-toggle:focus-visible,
.wallet-topup:focus-visible,
.wallet-invite:focus-visible,
.tab:focus-visible,
.basket-toggle:focus-visible,
.lang-toggle:focus-visible,
.lang-menu button:focus-visible,
.pack-buy:focus-visible,
.basket-close:focus-visible,
.basket-remove:focus-visible {
  outline: 2px solid #2f6bff;
  outline-offset: 3px;
}

.store {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.store:has(.feature-banner) {
  padding-top: 28px;
}

.store h1,
.section-title {
  margin: 36px 0 28px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 28px;
}

.section-head[hidden],
.home-row[hidden] {
  display: none !important;
}

.section-head h1,
.section-head .section-title {
  margin: 0;
}

.more {
  color: #2f6bff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.more:hover {
  color: #ffffff;
}

.catalog-page {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1440px) minmax(240px, 1fr);
  align-items: start;
  column-gap: 28px;
  width: 100%;
  margin: 0;
  padding: 36px 32px 80px;
}

.catalog-page .store {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 0;
}

.filters {
  position: sticky;
  top: 96px;
  justify-self: end;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 18px 12px;
  border-radius: 18px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.filters-label {
  margin: 2px 12px 12px;
  color: #8a8a8a;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filters a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #b5b5b5;
  font-weight: 600;
  text-decoration: none;
}

.filters a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.filters a:hover {
  background: #1c1c1e;
  color: #ffffff;
}

.filters a.is-active,
.filters a.is-current {
  background: #2a2a2e;
  color: #ffffff;
}

.filters-branch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filters-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.filters-sub a {
  padding: 8px 10px;
  border-radius: 10px;
  color: #8f8f8f;
  font-size: 14px;
  font-weight: 500;
}

.catalog-empty {
  display: none;
  margin: 18px 0 0;
  color: #d4d4d4;
}

.catalog-empty.is-on {
  display: block;
}

html.catalog-coins #catalog-grid .pack:not([data-kind="coins"]),
html.catalog-vip #catalog-grid .pack:not([data-kind="vip"]),
html.catalog-crates #catalog-grid .pack:not([data-loot="crate"]),
html.catalog-skins #catalog-grid .pack:not([data-kind="custom"]),
html.catalog-skins #catalog-grid .pack[data-loot="crate"],
html.catalog-custom #catalog-grid .pack:not([data-kind="custom"]),
html.catalog-gear #catalog-grid .pack:not([data-group="gear"]),
html.catalog-cosmetics #catalog-grid .pack:not([data-group="cosmetics"]),
html.catalog-utility #catalog-grid .pack:not([data-group="utility"]),
html.catalog-keys #catalog-grid .pack:not([data-group="keys"]) {
  display: none;
}

html.catalog-all .filters a[data-nav="all"],
html.catalog-coins .filters a[data-nav="coins"],
html.catalog-vip .filters a[data-nav="vip"],
html.catalog-crates .filters a[data-nav="crates"],
html.catalog-custom .filters a[data-nav="custom"],
html.catalog-custom .filters a[data-nav="custom-all"],
html.catalog-gear .filters a[data-nav="custom"],
html.catalog-gear .filters a[data-nav="gear"],
html.catalog-cosmetics .filters a[data-nav="custom"],
html.catalog-cosmetics .filters a[data-nav="cosmetics"],
html.catalog-utility .filters a[data-nav="custom"],
html.catalog-utility .filters a[data-nav="utility"],
html.catalog-keys .filters a[data-nav="custom"],
html.catalog-keys .filters a[data-nav="keys"] {
  background: #2a2a2e;
  color: #ffffff;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 8px 0;
}

.login-page .auth {
  margin: 0;
  padding: 16px 22px;
}

.login-page .auth h1 {
  font-size: 32px;
}

.login-page .auth-points {
  margin-top: 8px;
  gap: 4px;
}

.login-page .auth .legal-check {
  margin-top: 10px;
}

.login-page .auth-submit {
  min-height: 44px;
  margin-top: 12px;
}

.login-page .auth-note {
  margin-top: 8px;
}

.login-page .auth label {
  margin-top: 16px;
}

body:has(.support-page) main {
  display: flex;
  flex-direction: column;
}

.support-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.support-dock {
  margin-top: 22px;
}

.support-page h1 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.support-ask {
  position: relative;
  margin-top: 22px;
}

.support-ask input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
}

.support-ask input::placeholder {
  color: #737373;
}

.support-ask.is-hint input::placeholder {
  color: #ff4d4d;
}

.support-ask input:focus-visible,
.support-ask button:focus-visible,
.support-bubble:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.support-ask button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.support-ask.is-ready button {
  color: #ffffff;
}

.support-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.support-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #d4d4d4;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.support-bubble svg {
  flex: none;
}

.support-bubble:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.support-out:has(.support-card:not([hidden])) {
  margin-top: 18px;
}

.support-card {
  padding: 8px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #0a0a0a;
}

.support-card[hidden] {
  display: none;
}

.support-card .faq {
  margin-top: 0;
}

.support-card .support-discord {
  margin: 10px 0 6px;
}

.support-ai {
  padding: 16px 18px 18px;
}

.support-card-kicker {
  margin: 0 0 8px;
  color: #2f6bff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-card-q {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

.support-card-a {
  margin: 0;
  color: #b5b5b5;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  vertical-align: baseline;
}

.support-link a {
  color: #8eb4ff;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-link a:hover {
  color: #ffffff;
}

.support-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8eb4ff;
  cursor: pointer;
}

.support-copy svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.support-copy:hover,
.support-copy.is-copied {
  color: #ffffff;
}

.support-copy.is-copied {
  color: #3dff7a;
}

.support-dots {
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: support-dots 1.2s steps(4, end) infinite;
}

@keyframes support-dots {
  to { width: 1.15em; }
}

@media (prefers-reduced-motion: reduce) {
  .support-dots {
    animation: none;
    width: 1.15em;
  }
}

.faq {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #737373;
  border-bottom: 1.5px solid #737373;
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq summary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.faq details p {
  margin: 0 0 16px;
  max-width: 54ch;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.5;
}

.support-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #d4d4d4;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.support-discord svg {
  width: 18px;
  height: 18px;
}

.support-discord:hover {
  color: #ffffff;
}

.support-discord:focus-visible {
  outline: 2px solid #d4d4d4;
  outline-offset: 3px;
}

.auth {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 32px));
  margin: 72px auto;
  padding: 28px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth h1 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.auth p {
  margin: 0;
  color: #d4d4d4;
}

.auth .auth-lead {
  color: #b5b5b5;
}

.auth-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  position: relative;
  padding-left: 16px;
  color: #d4d4d4;
}

.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f6bff;
}

.auth-error {
  margin: 10px 0 0;
  color: #ffb4b4;
  font-weight: 600;
}

.auth-error[hidden] {
  display: none;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #2f6bff;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-submit:hover {
  background: #4d82ff;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-submit.is-busy {
  cursor: progress;
}

.auth-submit.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

.auth-note {
  margin: 14px 0 0;
  color: #8a8a8a;
  font-size: 14px;
}

.auth-out {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.auth-out:hover {
  background: #141414;
}

.auth label {
  display: block;
  margin: 22px 0 8px;
  color: #d4d4d4;
  font-weight: 600;
}

.auth input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.auth .pack-buy {
  margin-top: 18px;
}

.legal {
  width: min(760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h1 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.legal-contents {
  display: grid;
  gap: 8px;
  margin: 22px 0 4px;
  padding: 0;
  list-style: none;
}

.legal h2 {
  margin: 36px 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.legal h3 {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.legal p {
  margin: 0;
  color: #d4d4d4;
}

.legal p + p {
  margin-top: 10px;
}

.legal-contents a,
.legal a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.legal-contents a:hover,
.legal a:hover {
  color: #4d82ff;
}

.partner {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.partner-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  padding: 40px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
}

.partner-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.28) 70%);
}

.partner-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.partner-banner h1 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.partner-banner p {
  margin: 0;
  color: #d4d4d4;
  font-size: 18px;
}

.partner-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.partner-perk {
  padding: 22px;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.partner-perk h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.partner-perk p {
  margin: 0;
  color: #b5b5b5;
}

.partner-form {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.partner-form h2 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.partner-form p {
  margin: 8px 0 0;
  color: #b5b5b5;
}

.partner-form a {
  color: #2f6bff;
  font-weight: 600;
}

.partner-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin-top: 20px;
}

.partner-fields > [hidden],
html.partner-hold .partner-apply {
  display: none;
}

.partner-form label,
#partner-discord-label {
  display: block;
  margin-bottom: 8px;
  color: #d4d4d4;
  font-weight: 600;
}

.partner-form input,
.partner-discord {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.partner-form .partner-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.partner-discord.is-on {
  border-color: #3dff7a;
  color: #3dff7a;
}

.partner-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #2f6bff;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
}

.partner-submit:hover {
  background: #4d82ff;
}

.partner-error {
  margin: 14px 0 0;
  color: #ffb4b4;
}

.partner-error:empty {
  display: none;
}

.partner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.partner-form .partner-status,
.partner-form .partner-sent {
  margin: 0 0 0 auto;
  font-weight: 600;
  text-align: right;
}

.partner-form .partner-status {
  color: #ffffff;
}

.partner-form .partner-sent {
  color: #3dff7a;
}

.partner-status[hidden] {
  display: none;
}

.partner-sent[hidden] {
  display: none;
}

.partner-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.partner-codes[hidden] {
  display: none;
}

.partner-code {
  padding: 18px;
  border-radius: 14px;
  background: #141414;
}

.partner-code span {
  display: block;
  margin-bottom: 6px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-saved {
  margin: 0;
}

.partner-saved a {
  color: #2f6bff;
  font-weight: 600;
}

.partner-saved[hidden] {
  display: none;
}

.wallet-balance {
  margin: 12px 0 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: 28px 32px 32px;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal,
.footer-nav,
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-nav {
  justify-content: center;
  gap: 28px;
}

.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #d4d4d4;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.footer-ip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  pointer-events: none;
}

.footer-ip:hover,
.footer-ip.is-copied {
  color: #ffffff;
}

.footer-ip.is-copied {
  color: #3dff7a;
}

.footer-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.footer-social {
  justify-content: flex-end;
  gap: 16px;
}

.footer-rule {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.16);
}

.footer-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.footer-legal a,
.footer-nav a,
.footer-social a {
  color: #d4d4d4;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-nav a:hover,
.footer-social a:hover {
  color: #ffffff;
}

.pay-visa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: #1a1f71;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pay-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 32px;
  border-radius: 6px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pay-mc span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.pay-mc span:first-child {
  background: #eb001b;
}

.pay-mc span:last-child {
  margin-left: -8px;
  background: #f79e1b;
}

.pay-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: #635bff;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pay-ssl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111111;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pay-ssl svg {
  width: 14px;
  height: 14px;
}

.invite-hint {
  margin: 36px auto 0;
  max-width: 820px;
  text-align: center;
}

.invite-hint-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.invite-hint ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: invite;
}

.invite-hint li {
  color: #737373;
  font-size: 13px;
  line-height: 1.45;
  counter-increment: invite;
}

.invite-hint li::before {
  content: counter(invite);
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .invite-hint ol {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.pay-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.feature-banner {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 420px;
  margin: 0 0 8px;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a url("/images/shop-hero.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.feature-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.12) 72%);
  pointer-events: none;
}

.feature-banner.has-art {
  background-image: none;
}

.feature-banner.has-art .hero-banner {
  top: -2px;
  left: -2px;
  right: auto;
  bottom: auto;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
}

.feature-banner.has-art::before {
  inset: -2px;
}

.hero-still,
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-copy,
.hero-banner {
  transition: opacity 0.4s ease;
}

.feature-banner.is-swapping .feature-copy,
.feature-banner.is-swapping .hero-banner {
  opacity: 0;
}

.feature-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.feature-kicker {
  margin: 0 0 10px;
  color: #2f6bff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-copy h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.feature-product {
  margin: 0 0 6px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.feature-product + h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.feature-coins {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-bonus {
  margin: 6px 0 0;
  color: #b5b5b5;
  font-size: 16px;
}

.feature-price {
  margin: 10px 0 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.feature-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.feature-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #3a3a3f;
  cursor: pointer;
}

.feature-dots button.is-on {
  width: 22px;
  background: #ffffff;
}

.feature-banner .pack-buy {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: #141414;
  color: #ffffff;
}

.feature-banner .pack-buy:hover {
  background: #1c1c1c;
}

.feature-banner .pack-buy svg {
  width: 20px;
  height: 20px;
}

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

#pack-grid,
#catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#member-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-row {
  position: relative;
}

.home-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #141414;
  color: #ffffff;
  transform: translateY(-50%);
  cursor: pointer;
}

.home-nav svg {
  width: 22px;
  height: 22px;
}

.home-nav:hover {
  background: #1c1c1c;
}

.home-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-nav[hidden] {
  display: none;
}

.home-nav {
  left: 12px;
}

.home-nav-next {
  right: 12px;
  left: auto;
}

#pack-grid.home-rail,
#custom-grid.home-rail,
#member-grid.home-rail {
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

#pack-grid.home-rail .pack,
#custom-grid.home-rail .pack,
#member-grid.home-rail .pack {
  scroll-snap-align: start;
}

.home-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 861px) {
  #pack-grid.home-rail,
  #custom-grid.home-rail,
  #member-grid.home-rail {
    grid-auto-columns: calc((100% - 48px) / 4);
  }
}

.pack {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: clip;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pack-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 180px;
  width: 100%;
  height: 180px;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #111113;
}

.pack-art img,
.pack-art svg {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.pack-art svg {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

#catalog-grid .pack-art {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 326 / 180;
}

#catalog-grid .pack-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pack-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2f6bff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.pack-copy {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 16px;
  background: #0a0a0a;
}

.pack-text {
  flex: 1;
  align-self: flex-start;
  min-width: 0;
}

.pack-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.pack h2 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pack-grant {
  margin: 0 0 4px;
  color: #fff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pack-bio {
  margin: 0;
  color: #b5b5b5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.pack-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.pack-perks li + li {
  margin-top: 2px;
}

.pack-price {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.pack-term {
  margin: 0;
  color: #b5b5b5;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.term-short {
  display: none;
}

.pack-buy {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #2f6bff;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.pack-buy:hover {
  background: #4d82ff;
}

.pack .pack-buy {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: #141414;
  color: #ffffff;
}

.pack .pack-buy:hover {
  background: #1c1c1c;
}

.pack .pack-buy svg {
  width: 20px;
  height: 20px;
}

.catalog-page .store {
  container-type: inline-size;
}

@container (max-width: 1100px) {
  #catalog-grid {
    gap: 12px;
  }

  #catalog-grid .pack-copy {
    gap: 8px;
    padding: 12px;
  }

  #catalog-grid .pack h2 {
    font-size: 16px;
  }

  #catalog-grid .pack-bio,
  #catalog-grid .pack-perks {
    font-size: 12px;
  }

  #catalog-grid .pack-price,
  #catalog-grid .pack-grant {
    font-size: 14px;
  }

  #catalog-grid .pack-term {
    font-size: 11px;
  }

  #catalog-grid .pack .pack-buy {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  #catalog-grid .pack .pack-buy svg {
    width: 16px;
    height: 16px;
  }
}

@container (max-width: 760px) {
  #catalog-grid {
    gap: 8px;
  }

  #catalog-grid .pack {
    border-radius: 14px;
  }

  #catalog-grid .pack-art svg {
    width: 40px;
    height: 40px;
  }

  #catalog-grid .pack-tag {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 10px;
  }

  #catalog-grid .pack-copy {
    gap: 6px;
    padding: 8px;
  }

  #catalog-grid .pack h2 {
    font-size: 13px;
  }

  #catalog-grid .pack-bio,
  #catalog-grid .pack-perks {
    font-size: 11px;
    line-height: 1.3;
  }

  #catalog-grid .pack-price,
  #catalog-grid .pack-grant {
    font-size: 12px;
  }

  #catalog-grid .pack-term {
    font-size: 10px;
  }

  #catalog-grid .pack .pack-buy {
    width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 8px;
  }

  #catalog-grid .pack .pack-buy svg {
    width: 14px;
    height: 14px;
  }
}

.basket {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #000000;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate3d(100%, 0, 0);
}

html.basket-open .basket {
  transform: translate3d(0, 0, 0);
}

html.basket-open .basket-backdrop {
  opacity: 1;
}

.basket[hidden],
.basket-backdrop[hidden] {
  display: none;
}

.basket-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
}

html.motion .basket {
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion .basket-backdrop {
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.basket-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.basket-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.basket-head h2[hidden],
.basket-back[hidden],
.basket-offer[hidden] {
  display: none;
}

.basket-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px 0 8px;
  color: #ffffff;
  background: #141414;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.basket-back:hover {
  background: #1c1c1c;
}

.basket.is-offer .basket-list,
.basket.is-offer .basket-empty,
.basket.is-offer .basket-foot {
  display: none;
}

.basket-offer:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  margin-top: 20px;
  overflow: auto;
}

.basket-offer-kicker {
  margin: 0;
  color: #737373;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.basket-offer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: #0a0a0a;
}

.basket-offer-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  overflow: hidden;
  border-radius: 12px;
  background: #111113;
}

.basket-offer-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.basket-offer-art svg {
  width: 88px;
  height: 88px;
}

.basket-offer-copy h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.basket-offer-copy p {
  margin: 6px 0 0;
  color: #b5b5b5;
}

.basket-offer-card .basket-buy {
  margin-top: 0;
}

.basket-close,
.basket-remove {
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  background: #141414;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.basket-close:hover,
.basket-remove:hover,
.basket-qty button:hover {
  background: #1c1c1c;
}

.basket-empty {
  margin: 28px 0 0;
  color: #b5b5b5;
}

.basket-empty[hidden] {
  display: none;
}

.basket-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2e transparent;
}

.basket-list::-webkit-scrollbar {
  width: 3px;
}

.basket-list::-webkit-scrollbar-track {
  background: transparent;
}

.basket-list::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 999px;
}

.basket-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
}

.basket-line strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.basket-own {
  display: block;
  margin-top: 6px;
  color: #f0c14a;
  font-size: 13px;
  font-weight: 600;
}

.basket-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.basket-qty button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #141414;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.basket-qty span {
  min-width: 16px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

.basket-foot {
  flex: 0 0 auto;
  padding-top: 18px;
}

.basket-total {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.basket-total[hidden] {
  display: none;
}

.basket-buyer {
  margin-top: 16px;
}

.basket-buyer[hidden],
.basket-player[hidden],
.basket-guest[hidden],
.basket-save[hidden],
.basket-logout[hidden],
.basket-user[hidden],
.basket-player img[hidden],
.basket-player input[hidden] {
  display: none !important;
}

.basket-buyer.is-in .basket-save,
.basket-buyer.is-in .legal-check,
.basket-buyer.is-in #basket-name {
  display: none !important;
}

.basket-player,
.basket-guest {
  display: flex;
  align-items: center;
  gap: 10px;
}

.basket-guest {
  flex-wrap: wrap;
}

.basket-player img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #141414;
  image-rendering: pixelated;
}

.basket-user {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #ffffff;
  font-weight: 600;
}

.basket-done[hidden] {
  display: none;
}

.basket-done {
  margin: 12px 0 0;
  color: #3dff7a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.basket-change {
  padding: 0;
  border: 0;
  background: none;
  color: #2f6bff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.basket-change:hover,
.basket-save:hover {
  color: #4d82ff;
}

.basket-error {
  margin: 8px 0 0;
  color: #ff5d5d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.basket-error.is-ok {
  color: #7dffb3;
}

.basket-error[hidden] {
  display: none;
}

.basket-save.is-busy {
  cursor: progress;
}

.basket-save.is-busy::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid rgba(47, 107, 255, 0.35);
  border-top-color: #2f6bff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: auth-spin 0.7s linear infinite;
}

.basket-save {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: #2f6bff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.basket-rename {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
}

.basket-logout {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: #8a8a8a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.basket-logout:hover {
  color: #ffffff;
}

.basket-player input,
.basket-guest input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.legal-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

.legal-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: #000000;
  color: #2f6bff;
  flex: 0 0 auto;
}

.legal-box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
}

.legal-check input:checked + .legal-box {
  border-color: #2f6bff;
}

.legal-check input:checked + .legal-box svg {
  opacity: 1;
}

.legal-check input:focus-visible + .legal-box {
  outline: 2px solid #4d82ff;
  outline-offset: 2px;
}

.legal-check.is-need .legal-box {
  border-color: #ff8d8d;
}

.legal-check a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.legal-check a:hover {
  color: #4d82ff;
}

.legal-check.is-need {
  color: #ff8d8d;
}

.auth .legal-check {
  display: flex;
  margin: 14px 0 0;
  font-weight: 400;
}

.auth .legal-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.basket-buy {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #2f6bff;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.basket-buy:hover {
  background: #4d82ff;
}

.basket-buy.is-short,
.basket-buy.is-short:hover {
  background: #d32626;
}

.basket-buy:disabled,
.basket-buy:disabled:hover {
  background: #3a3a3f;
  color: #8d8d8d;
  cursor: default;
}

.basket-buy[hidden] {
  display: none;
}

.basket-note {
  margin: 8px 0 0;
  color: #737373;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.basket-note[hidden] {
  display: none;
}

.basket-note a {
  color: #a3a3a3;
  font-weight: 600;
  text-decoration: none;
}

.basket-note a:hover {
  color: #ffffff;
}

.basket.is-sure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.62);
}

.basket-sure {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: #0a0a0a;
}

.basket-sure[hidden] {
  display: none;
}

.basket-sure p {
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 600;
}

.basket-sure-actions {
  display: flex;
  gap: 8px;
}

.basket-sure-actions button {
  flex: 1 1 0;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #141414;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.basket-sure-actions button:hover {
  background: #1c1c1c;
}

#basket-sure-yes {
  background: #2f6bff;
}

#basket-sure-yes:hover {
  background: #4d82ff;
}

@media (prefers-reduced-motion: reduce) {
  .basket,
  .basket-backdrop {
    transition: none;
  }
}

@media (max-width: 1400px) and (min-width: 861px) {
  .catalog-page {
    transform: translateX(96px);
  }
}

@media (max-width: 1100px) {
  .pack-grid,
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .header-bar {
    padding: 0 16px;
  }

  .logo {
    margin-right: auto;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 8px;
  }

  html.nav-open .menu-toggle {
    visibility: hidden;
    pointer-events: none;
  }

  .account-tab {
    order: 1;
    margin-left: 0;
  }

  .basket-toggle {
    order: 2;
    margin-left: 12px;
  }

  .account-tab[hidden] + .basket-toggle {
    margin-left: auto;
  }

  .basket {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    border-left: 0;
  }

  .basket-backdrop {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0 16px 132px;
    overflow: auto;
    background: #000000;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  html.motion .nav,
  html.motion .lang {
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 72px;
    height: 72px;
    margin: 0 0 8px;
  }

  .nav-logo {
    font-size: 22px;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
  }

  .nav .tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: #141414;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
  }

  .nav .tab:hover {
    background: #1c1c1c;
  }

  .lang {
    position: fixed;
    z-index: 45;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
  }

  html.nav-open .lang {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .lang-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }

  .lang-menu {
    display: flex;
    position: static;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .lang-menu button {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: #141414;
    font-size: 17px;
    text-align: left;
  }

  .lang-menu button.is-active {
    background: #2a2a2e;
  }

  #pack-grid,
  #member-grid,
  #custom-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(260px, 78vw);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #pack-grid .pack,
  #member-grid .pack,
  #custom-grid .pack {
    scroll-snap-align: start;
  }

  #pack-grid::-webkit-scrollbar,
  #member-grid::-webkit-scrollbar,
  #custom-grid::-webkit-scrollbar {
    display: none;
  }

  .filters {
    width: auto;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .filters-label,
  .filters-sub {
    display: none;
  }

  .filters-branch {
    display: contents;
  }

  .filters nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters nav::-webkit-scrollbar {
    display: none;
  }

  .filters a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: #141414;
    white-space: nowrap;
  }

  #catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #catalog-grid .pack {
    min-width: 0;
    overflow: hidden;
  }

  #catalog-grid .pack-copy {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }

  #catalog-grid .pack-text {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #catalog-grid .pack h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  #catalog-grid .pack-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 2px;
    width: 100%;
  }

  #catalog-grid .pack-price {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    text-align: left;
  }

  #catalog-grid .pack .pack-buy {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .pack-term {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
  }

  .pack-term > span:not(.term-short) {
    display: none;
  }

  .term-short {
    display: inline;
  }

  #catalog-grid .pack-term {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  #catalog-grid .pack-bio {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  #catalog-grid .pack-perks li:nth-child(n + 2) {
    display: none;
  }

  .nav .club-caret {
    width: 22px;
    height: 22px;
  }

  .club {
    width: 100%;
  }

  .club-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .catalog-page {
    grid-template-columns: 1fr;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 80px;
  }

  .catalog-page .store {
    grid-column: auto;
  }

  .filters {
    position: static;
    justify-self: stretch;
    width: auto;
  }

  .store {
    width: min(1440px, calc(100% - 32px));
    padding-top: 28px;
  }

  .store h1,
  .section-title {
    font-size: 32px;
  }

  .partner {
    width: min(1440px, calc(100% - 32px));
  }

  .legal {
    width: min(760px, calc(100% - 32px));
    padding-top: 32px;
  }

  .legal h1 {
    font-size: 36px;
  }

  .partner-fields,
  .partner-perks {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    justify-items: stretch;
    gap: 12px;
    padding: 24px 16px 28px;
  }

  .footer-legal,
  .footer-nav,
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-nav {
    align-items: center;
    text-align: center;
  }

  .footer-end,
  .footer-social {
    align-items: flex-end;
  }

  .footer-rule {
    display: none;
  }

  .footer-note {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .feature-banner {
    min-height: 460px;
    align-items: flex-end;
    padding: 24px 20px 28px;
    background-position: center 30%;
  }

  .feature-banner::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 18%, rgba(0, 0, 0, 0.82) 78%);
  }

  .feature-copy h2,
  .feature-product {
    font-size: 28px;
  }

  .feature-product + h2 {
    font-size: 16px;
  }

  .feature-coins {
    font-size: 22px;
  }

  .feature-bonus,
  .feature-price {
    font-size: 14px;
  }

  .store h1,
  .section-title {
    font-size: 24px;
  }

  .filters a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .legal h1 {
    font-size: 28px;
  }

  .partner-codes {
    grid-template-columns: 1fr;
  }
}
