a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid var(--stroke);
  color: var(--text);
  z-index: 50;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid color-mix(in oklab, var(--accent), white 20%);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(10, 12, 18, 0.58));
  backdrop-filter: blur(12px);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}

.topbar__glow {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent), white 10%), transparent);
  opacity: 0.55;
}

.brandLogo {
  position: relative;
  display: block;
  width: 118px;
  height: 44px;
  border-radius: 14px;
  overflow: visible;
}

.brandLogo__img {
  position: absolute;
  left: -6px;
  top: -52px;
  height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.7));
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  user-select: none;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
}

.nav__text {
  line-height: 1;
}

.nav__link:hover {
  color: var(--text);
  background: color-mix(in oklab, var(--panel2), transparent 15%);
  transform: translateY(-1px);
}

.nav__link.is-active {
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel), transparent 12%), rgba(0, 0, 0, 0));
  box-shadow: 0 0 0 1px var(--stroke) inset;
}

.topbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.lang {
  position: relative;
}

.lang__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0));
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lang__btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 20%);
}

.lang__btn:active {
  transform: translateY(0px) scale(0.98);
}

.lang__flag {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 180px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 22px var(--glow);
  padding: 8px;
  z-index: 60;
}

.lang__menu[hidden] {
  display: none;
}

.lang__item {
  width: 100%;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lang__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.lang__item:active {
  transform: translateY(0px) scale(0.99);
}

.lang__itemFlag {
  width: 36px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lang__itemText {
  font-size: 13px;
  font-weight: 700;
}

.topbar__actions:empty {
  display: none;
}

.nav--user {
  display: none;
}

body.is-auth .nav--guest {
  display: none;
}

body.is-auth .nav--user {
  display: flex;
}

body.is-auth .hero,
body.is-auth .duoRow,
body.is-auth .footerCards {
  display: none;
}

@media (max-width: 920px) {
  .streamersGrid {
    grid-template-columns: 1fr;
  }
}

.field__input option {
  background: #07080b;
  color: rgba(255, 255, 255, 0.9);
}

.field__input option:checked {
  background: rgba(255, 122, 56, 0.22);
}

.field__input option:hover {
  background: rgba(255, 122, 56, 0.18);
}

@media (max-width: 860px) {
  .wallet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stars {
  display: inline-flex;
  gap: 3px;
}

.stars__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  user-select: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
  white-space: nowrap;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn__label {
  font-weight: 700;
}

.btn--gmail {
  gap: 10px;
  padding: 0 12px 0 8px;
}

.btn--gmailPrimary {
  gap: 12px;
  justify-content: flex-start;
  padding: 0 14px 0 10px;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(120px 50px at var(--mx, 30%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 16%);
}

.btn:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), white 20%);
  outline-offset: 2px;
}

.btn--primary {
  border-color: color-mix(in oklab, var(--accent), white 15%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent), black 40%), color-mix(in oklab, var(--accent), black 70%));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 26px var(--glow);
}

.btn--ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
}

.btn--hdr {
  gap: 10px;
  padding: 0 12px 0 8px;
}

.btn--lg {
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.btn--full {
  width: 100%;
}

.field {
  display: grid;
  gap: 7px;
}

.field__label {
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field__input {
  height: 44px;
  border-radius: 14px;
  padding: 0 12px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0));
  color: var(--text);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.field__input:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--accent), white 18%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 0 3px color-mix(in oklab, var(--accent), transparent 76%);
  transform: translateY(-1px);
}

.footer {
  margin-top: 10px;
  padding: 24px 0 0;
}

.footer__inner {
  border-top: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  padding: 18px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted2);
}

.footer__link {
  color: var(--muted2);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__sep {
  opacity: 0.7;
}

.footer__brand {
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--text);
  font-size: 12px;
}

.footer__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted2);
}

.footerCards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footerCard {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0));
  padding: 14px 14px;
  display: grid;
  gap: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footerCard__icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in oklab, var(--accent), white 12%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), 0 0 22px var(--glow);
}

.footerCard:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 18%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
}

.footerCard__title {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text);
}

.footerCard__desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
}

.chat__fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent), white 18%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent), black 40%), color-mix(in oklab, var(--accent), black 70%));
  color: var(--text);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), 0 0 26px var(--glow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.chat__fab:hover {
  transform: translateY(-1px);
}

.chat__fab:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), white 20%);
  outline-offset: 2px;
}

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(360px, calc(100vw - 36px));
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.68), 0 0 28px var(--glow);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: 90% 100%;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  overflow: hidden;
}

.chat.is-open .chat__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat__header {
  padding: 12px 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat__head {
  display: grid;
  gap: 4px;
}

.chat__title {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.chat__sub {
  color: var(--muted2);
  font-size: 12px;
}

.chat__close {
  height: 34px;
}

.chat__messages {
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.chat__form {
  padding: 12px;
  border-top: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat__input {
  height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0));
  color: var(--text);
}

.chat__input:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--accent), white 18%);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 76%);
}

.chat__send {
  height: 42px;
  border-radius: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(18px);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 22px var(--glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 80;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 22px var(--glow);
  z-index: 35;
}

.cookie[hidden] {
  display: none;
}

.cookie__inner {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.cookie__title {
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.cookie__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie__btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal[hidden] {
  display: none;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  width: min(820px, calc(100% - 10px));
  max-height: min(76vh, 720px);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  height: 36px;
}

.modal__body {
  padding: var(--pad);
  display: grid;
  gap: 14px;
}

.modal__scroll {
  overflow: auto;
  max-height: calc(76vh - 170px);
  padding-right: 4px;
}

#downloadsModal .modal__scroll {
  overflow: visible;
  max-height: none;
  padding-right: 0;
}

.modal__list {
  display: grid;
  gap: 10px;
  overflow: auto;
  max-height: calc(76vh - 190px);
  padding-right: 4px;
}

.chipTag {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent), white 18%);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: color-mix(in oklab, var(--accent), white 18%);
  box-shadow: 0 0 22px var(--glow);
}

.stars {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: color-mix(in oklab, var(--accent), white 18%);
}

@media (max-width: 1000px) {
  .topbar__inner {
    grid-template-columns: auto 1fr;
  }

  .brandLogo {
    width: 104px;
    height: 40px;
  }

  .brandLogo__img {
    top: -44px;
    height: 120px;
  }

  .topbar__actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  body[data-page="home"] .topbar__actions,
  body[data-page="user"] .topbar__actions,
  body[data-page="trade"] .topbar__actions,
  body[data-page="inventory"] .topbar__actions,
  body[data-page="ranking"] .topbar__actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .section__grid,
  .section__grid--reverse {
    grid-template-columns: 1fr;
  }

  .duoRow__grid {
    grid-template-columns: 1fr;
  }

  .duoRow__rank {
    max-width: none;
    justify-self: stretch;
  }

  .rankPanel__spacer {
    min-height: 240px;
  }

  .rankPanel__teaser {
    min-height: 240px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .downloadGrid {
    grid-template-columns: 1fr;
  }

  .wallet__grid {
    grid-template-columns: 1fr;
  }

  .tradeSplit {
    grid-template-columns: 1fr;
  }

  .statsGrid {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .tradeWallet__grid {
    grid-template-columns: 1fr;
  }

  .tradeFilters__row {
    grid-template-columns: 1fr;
  }

  .invGrid {
    grid-template-columns: repeat(3, 1fr);
  }


  .footerCards {
    grid-template-columns: 1fr;
  }

  .streamGrid {
    grid-template-columns: 1fr;
  }

  .streamApply__grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .support {
    grid-template-columns: 1fr;
  }

  .form--grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt,
  .btn,
  .nav__link,
  .tab,
  .row,
  .quick__item {
    transition: none !important;
  }
}

@media (max-width: 680px) {
  .topup__packagesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pay__grid {
    grid-template-columns: 1fr;
  }
}