header,
main,
footer {
  position: relative;
  z-index: 10;
}

.enter {
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 720ms ease;
  will-change: transform, opacity;
}

.enter--left {
  transform: translate3d(-34px, 0, 0);
}

.enter--right {
  transform: translate3d(34px, 0, 0);
}

.enter--down {
  transform: translate3d(0, 22px, 0);
}

.authBlocker {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.authBlocker[hidden],
.authBlocker[aria-hidden="true"] {
  display: none !important;
}

.authBlocker__card {
  width: min(360px, calc(100% - 32px));
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  background: rgba(10, 12, 18, 0.92);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.68), 0 0 28px var(--glow);
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.authBlocker__title {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.authBlocker__hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.authBlocker__btn {
  width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

[data-auth-only] {
  display: none;
}

.userLogout {
  width: 40px;
  padding: 0;
  border-radius: 999px;
}

.userBadge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.userBadge__icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.86);
}

.userBadge:hover {
  background: rgba(0, 0, 0, 0.28);
}

.userBadge:active {
  transform: scale(0.98);
}

.userArea__grid,
.tradeArea__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.userMeta {
  display: grid;
  gap: 8px;
}

.userMeta__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  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));
}

.userMeta__label {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 12px;
}

.userMeta__value {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-all;
}

.wallet__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.walletCard {
  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 12px;
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.walletCard__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 800;
}

.walletCard__value {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.65);
}

.walletCard__btn {
  margin-top: 4px;
  width: 100%;
}

.walletCard--cash #buyCashBtn {
  border-color: rgba(75, 182, 255, 0.28);
  background: linear-gradient(180deg, rgba(75, 182, 255, 0.22), rgba(0, 0, 0, 0.18));
  box-shadow: 0 0 26px rgba(75, 182, 255, 0.18);
}

.walletCard--cash #buyCashBtn:hover {
  background: linear-gradient(180deg, rgba(75, 182, 255, 0.28), rgba(0, 0, 0, 0.18));
}

.walletCard--cash #buyCashBtn:active {
  transform: scale(0.99);
}

.walletCard--gold #buyGoldBtn {
  border-color: rgba(255, 204, 102, 0.28);
  background: linear-gradient(180deg, rgba(255, 204, 102, 0.22), rgba(0, 0, 0, 0.18));
  box-shadow: 0 0 26px rgba(255, 204, 102, 0.16);
}

.walletCard--gold #buyGoldBtn:hover {
  background: linear-gradient(180deg, rgba(255, 204, 102, 0.28), rgba(0, 0, 0, 0.18));
}

.walletCard--gold .walletCard__value {
  color: #ffcc66;
  text-shadow: 0 0 22px rgba(255, 204, 102, 0.25), 0 18px 56px rgba(0, 0, 0, 0.65);
}

.walletCard--cash .walletCard__value {
  color: #4bb6ff;
  text-shadow: 0 0 22px rgba(75, 182, 255, 0.25), 0 18px 56px rgba(0, 0, 0, 0.65);
}

.walletCard--event .walletCard__value {
  color: #ff7a38;
  text-shadow: 0 0 22px rgba(255, 122, 56, 0.22), 0 18px 56px rgba(0, 0, 0, 0.65);
}

.walletCard--rcash .walletCard__value {
  color: #2cff6b;
  text-shadow: 0 0 22px rgba(44, 255, 107, 0.22), 0 18px 56px rgba(0, 0, 0, 0.65);
}

.reqItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.reqItem__left {
  display: grid;
  gap: 2px;
}

.reqItem__title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.reqItem__meta {
  font-size: 12px;
  color: var(--muted2);
  font-family: var(--mono);
}

.reqItem__badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.22);
}

.reqItem__badge.is-ok {
  border-color: rgba(44, 255, 107, 0.18);
  color: #2cff6b;
  background: rgba(44, 255, 107, 0.08);
}

.reqItem__badge.is-no {
  border-color: rgba(255, 70, 70, 0.22);
  color: #ff4646;
  background: rgba(255, 70, 70, 0.08);
}

.benefits {
  display: grid;
  gap: 8px;
}

.benefit {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.topupPkg:disabled,
.topupPkg.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.chars {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.chars__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.chars > summary {
  list-style: none;
  cursor: pointer;
}

.chars > summary::-webkit-details-marker {
  display: none;
}

.chars__head::after {
  content: "▾";
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.chars[open] .chars__head::after {
  transform: rotate(180deg);
}

.chars__title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.chars__hint {
  color: var(--muted2);
  font-size: 12px;
}

.chars__list,
.tradeCol__list {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  min-height: 120px;
}

.chars__empty,
.tradeCol__empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.charRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}

.charRow:last-child {
  margin-bottom: 0;
}

.charRow__name {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 12px;
}

.charRow__meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.tradeSplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tradeCol {
  display: grid;
  gap: 10px;
}

.tradeCol__title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

body[data-page="user"] .cardBg,
body[data-page="trade"] .cardBg {
  display: none;
}

body[data-page="inventory"] .cardBg {
  display: none;
}

body[data-page="home"] .duoRow__grid {
  grid-template-columns: 1fr;
}

body[data-page="home"] .duoRow__news {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.invGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.invSlot {
  height: 64px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.invSlot::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(120px 50px at var(--mx, 30%) var(--my, 50%), rgba(255, 255, 255, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.invSlot:hover::after {
  opacity: 1;
}

.invSlot__idx {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.stats {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.stats__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stats__title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.stats__hint {
  color: var(--muted2);
  font-size: 12px;
}

.statsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.statRing__ring {
  position: relative;
  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: 12px;
  display: grid;
  place-items: center;
  min-height: 150px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.statRing__svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.statRing__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.statRing__bar {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 420ms ease, stroke 420ms ease;
}

.statRing__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 4px;
  padding-top: 14px;
  pointer-events: none;
}

.statRing__value {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 36px;
  line-height: 2.8;
}

.statRing__label {
  color: var(--muted2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statRing--win .statRing__bar {
  stroke: rgba(21, 246, 169, 0.72);
}

.statRing--loss .statRing__bar {
  stroke: rgba(255, 95, 95, 0.72);
}

.statRing--clanwin .statRing__bar {
  stroke: rgba(255, 204, 102, 0.7);
}

.statRing--clanloss .statRing__bar {
  stroke: rgba(255, 122, 56, 0.7);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fact {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.fact__label {
  color: var(--muted2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact__value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.star {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.18);
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.65);
}

.star.is-on {
  color: #ffcc66;
  text-shadow: 0 0 18px rgba(255, 204, 102, 0.22), 0 18px 56px rgba(0, 0, 0, 0.65);
}

.tradeTabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.05);
}

.tradeWallet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.tradeWalletCard {
  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: 12px;
  display: grid;
  gap: 6px;
}

.tradeWalletCard__label {
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tradeWalletCard__value {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 16px;
}

.tradeWalletCard--gold .tradeWalletCard__value {
  color: rgba(255, 204, 102, 0.92);
}

.tradeWalletCard--cash .tradeWalletCard__value {
  color: rgba(75, 182, 255, 0.92);
}

.tradeWalletCard--event .tradeWalletCard__value {
  color: rgba(255, 122, 56, 0.92);
}

.tradeFilters {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.tradeFilters__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}

.tradeFilters__label {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 12px;
}

.tradeFilters__group {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.tradeList > #tradeMarketList {
  display: grid;
  gap: 10px;
}

.tradeBody {
  display: grid;
  gap: 12px;
}

.tradePane[hidden] {
  display: none;
}

.tradeList {
  display: grid;
  gap: 10px;
}

.tradeItem {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.tradeItem--mine {
  background: linear-gradient(180deg, rgba(21, 246, 169, 0.07), rgba(0, 0, 0, 0.2));
}

.tradeItem__title {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tradeItem__meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 3px;
}

.tradeItem__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tradePrice {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.tradePrice--gold {
  border-color: rgba(255, 204, 102, 0.22);
  color: rgba(255, 204, 102, 0.9);
}

.tradePrice--cash {
  border-color: rgba(75, 182, 255, 0.22);
  color: rgba(75, 182, 255, 0.9);
}

.tradePrice--event {
  border-color: rgba(255, 122, 56, 0.22);
  color: rgba(255, 122, 56, 0.9);
}

.tradeModal {
  display: grid;
  gap: 12px;
}

.tradeModal__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}

.tradeModal__label {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 12px;
}

.tradeModal__value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.tradeModal__mono {
  font-family: var(--mono);
}

.tradeModal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.rankTools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rankTools__search {
  flex: 1 1 260px;
}

.rankTools__pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rankTools__page {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 22px;
  text-align: center;
}

.rankList {
  display: grid;
  gap: 10px;
}

.rkRow {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.rkRow__right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main {
  padding-bottom: 70px;
}

.hero {
  position: relative;
  padding: 42px 0 30px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.hero__copy {
  position: relative;
  z-index: 0;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel), transparent 0%), rgba(0, 0, 0, 0.12));
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 26% 20%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  z-index: 1;
  pointer-events: none;
}

.cardBg {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  opacity: 0.5;
  filter: saturate(1.05) contrast(1.06);
  transform: translate3d(0, 0, 0) scale(1.06);
  animation: bgDrift 18s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}

.cardBg--hero {
  background-image: url("https://arkion.online/imgs/02.png");
  background-position: right center;
  opacity: 0.58;
  animation-duration: 19s;
}

.cardBg--news {
  background-image: url("https://arkion.online/imgs/01.png");
  background-position: left center;
  opacity: 0.34;
  animation-duration: 21s;
}

.cardBg--rank {
  background-image: url("https://arkion.online/imgs/03.png");
  background-position: right bottom;
  opacity: 0.35;
  animation-duration: 23s;
}

.hero__copy > :not(.cardBg) {
  position: relative;
  z-index: 2;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__orbs {
  position: absolute;
  inset: -30%;
  background: radial-gradient(900px 700px at 25% 12%, color-mix(in oklab, var(--accent), transparent 70%), transparent 60%),
    radial-gradient(900px 700px at 78% 12%, color-mix(in oklab, var(--accent2), transparent 76%), transparent 58%),
    radial-gradient(1200px 900px at 55% 70%, rgba(255, 255, 255, 0.04), transparent 60%);
  filter: blur(12px);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--panel2), transparent 10%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.kicker__text {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 18px 0 0;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__titleAccent {
  display: inline-block;
  margin-left: 10px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent), white 10%), color-mix(in oklab, var(--accent2), white 20%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
}

.hero__purpose {
  margin: 10px 0 0;
  color: color-mix(in oklab, var(--muted), white 8%);
  max-width: 64ch;
  font-size: 13px;
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel), transparent 0%), rgba(0, 0, 0, 0));
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px 140px at var(--mx, 25%) var(--my, 0%), rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.panel--frame {
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel), transparent 0%), rgba(0, 0, 0, 0.15));
}

.panel--frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--accent), transparent 70%),
    rgba(255, 255, 255, 0.08),
    color-mix(in oklab, var(--accent2), transparent 78%)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.panel--mini {
  padding: 14px 14px;
  border-radius: 16px;
}

.panel--stack {
  margin-top: 14px;
}

.panel__header {
  padding: var(--pad);
  border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.panel__header--rank {
  align-items: center;
}

.panel__headStack {
  display: grid;
  gap: 6px;
}

.panel__body {
  padding: var(--pad);
  display: grid;
  gap: 12px;
}

.panel__title {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.panel__hint {
  color: var(--muted2);
  font-size: 12px;
}

.panel__footer {
  padding: 16px var(--pad) var(--pad);
  border-top: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.form {
  padding: var(--pad);
  display: grid;
  gap: 12px;
}

.form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--stroke2);
  background: color-mix(in oklab, var(--panel2), transparent 10%);
  color: var(--text);
  font-size: 12px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), color-mix(in oklab, var(--good), black 30%));
  box-shadow: 0 0 18px rgba(102, 255, 179, 0.55);
}

.badge--muted {
  color: var(--muted);
}

.badge--muted .badge__dot {
  display: none;
}

.hint {
  color: var(--muted2);
  font-size: 12px;
}

.quick {
  padding: var(--pad);
  display: grid;
  gap: 10px;
}

.quick__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  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));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick__item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 18%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0));
}

.quick__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, color-mix(in oklab, var(--accent), black 55%), rgba(0, 0, 0, 0));
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 8%);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35), 0 0 22px var(--glow);
}

.quick__text {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.stat__label {
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat__value {
  margin-top: 6px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 16px;
}

.section {
  padding: 42px 0;
}

.section--dense {
  padding: 30px 0;
}

.section__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.section__grid--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.section__head {
  padding-top: 6px;
}

.section__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.section__desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.duoRow__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: start;
}

.duoRow__rank {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.duoRow__news {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.duoRow__news > :not(.cardBg) {
  position: relative;
  z-index: 2;
}

.rankPanel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.rankPanel > :not(.cardBg) {
  position: relative;
  z-index: 2;
}

.news {
  overflow: hidden;
}

.carousel {
  position: relative;
  padding: 10px;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.2);
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 280ms ease;
}

.carousel__slide {
  min-height: 210px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62));
}

.carousel__overlay {
  position: absolute;
  left: 26px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.carousel__title {
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: 16px;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.carousel__meta {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.carousel__excerpt {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 0% center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.78);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  font-size: 18px;
  line-height: 1;
}

.carousel__btn:hover {
  transform: translateY(calc(-50% - 1px));
  border-color: color-mix(in oklab, var(--accent), white 18%);
}

.carousel__btn:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), white 20%);
  outline-offset: 2px;
}

.carousel__btn--prev {
  left: 10px;
}

.carousel__btn--next {
  right: 10px;
}

.carousel__dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.dot:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 18%);
}

.dot.is-active {
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--accent), black 25%),
    color-mix(in oklab, var(--accent2), black 35%)
  );
  border-color: color-mix(in oklab, var(--accent), white 18%);
  box-shadow: 0 0 22px var(--glow);
}

.tabs {
  display: flex;
  gap: 10px;
  padding: 14px var(--pad);
  border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  flex-wrap: wrap;
}

.tab {
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tab:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent), white 18%);
}

.tab.is-active {
  color: var(--text);
  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));
  box-shadow: 0 0 18px var(--glow);
}

.is-hidden {
  display: none;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  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));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 18%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0));
}

.row__title {
  font-weight: 650;
  color: var(--text);
}

.row__meta {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.row--accent {
  border-color: color-mix(in oklab, var(--accent), white 20%);
  box-shadow: 0 0 26px var(--glow);
}

.news__footer {
  padding: 0 var(--pad) var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.downloadGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.downloadCardIcon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.card {
  padding: var(--pad);
  display: grid;
  gap: 14px;
}

.card__head {
  display: grid;
  gap: 6px;
}

.card__title {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card__meta {
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__desc {
  color: var(--muted);
  line-height: 1.65;
}

.card__foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table {
  padding: 10px var(--pad) var(--pad);
  display: grid;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.05);
}

.seg {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.seg:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent), white 18%);
}

.seg.is-active {
  color: var(--text);
  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));
  box-shadow: 0 0 18px var(--glow);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 10%);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), 0 0 18px rgba(255, 255, 255, 0.06);
}

.rankPanel .panel__header {
  padding: 16px;
}

.rankPanel .panel__footer {
  padding: 12px 16px 16px;
}

.rankPanel__spacer {
  padding: 8px 16px 16px;
  min-height: 300px;
  pointer-events: none;
}

.rankPanel__teaser {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 6px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.rankPanel .table {
  padding: 8px 16px 16px;
}

.rankPanel .table__row {
  grid-template-columns: 30px 1fr 86px;
  padding: 10px 10px;
  border-radius: 14px;
}

.rankPanel .avatar {
  width: 24px;
  height: 24px;
  border-radius: 11px;
}

.rankPanel .segmented {
  padding: 5px;
  border-radius: 14px;
}

.rankPanel .seg {
  height: 32px;
  padding: 0 10px;
  border-radius: 11px;
  letter-spacing: 0.04em;
}

.table__row {
  display: grid;
  grid-template-columns: 36px 1fr 90px;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  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));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.table__row:hover:not(.table__row--head) {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent), white 18%);
}

.table__row--head {
  border-color: var(--stroke2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
  color: var(--muted2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.table__cell--right {
  text-align: right;
  font-family: var(--mono);
}

.feature {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: color-mix(in oklab, var(--panel2), transparent 12%);
}

.feature__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent2), black 55%), rgba(0, 0, 0, 0));
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 8%);
  box-shadow: 0 0 26px color-mix(in oklab, var(--accent2), transparent 60%);
}

.feature__text {
  color: var(--text);
  font-weight: 600;
}

.event {
  padding: var(--pad);
  display: grid;
  gap: 8px;
}

.event__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), color-mix(in oklab, var(--accent), black 30%));
  box-shadow: 0 0 26px var(--glow);
}

.event__title {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.event__meta {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 12px;
}

.event__desc {
  color: var(--muted);
  line-height: 1.65;
}

.faq {
  padding: var(--pad);
  display: grid;
  gap: 10px;
}

.faq__item {
  border-radius: 16px;
  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));
  overflow: hidden;
}

.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 750;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "▾";
  color: var(--muted2);
  transform: rotate(0deg);
  transition: transform 180ms ease, color 180ms ease;
}

.faq__item[open] .faq__q {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
}

.faq__item[open] .faq__q::after {
  transform: rotate(180deg);
  color: color-mix(in oklab, var(--accent), white 10%);
}

.faq__a {
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.65;
}

.faqMini {
  width: 100%;
  border-radius: 16px;
  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: 12px 12px;
  display: grid;
  gap: 10px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.faqMini: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));
}

.faqMini:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), white 20%);
  outline-offset: 2px;
}

.faqMini__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 14%);
  background: rgba(255, 255, 255, 0.03);
}

.faqMini__q {
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.faqMini__chev {
  color: var(--muted2);
  font-size: 18px;
  line-height: 1;
}

.faqMini__hint {
  color: var(--muted2);
  font-size: 12px;
  padding: 0 10px;
}

.msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  line-height: 1.5;
  font-size: 13px;
}

.msg--user {
  justify-self: end;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent), black 55%), rgba(0, 0, 0, 0));
  border-color: color-mix(in oklab, var(--accent), white 18%);
}

.msg--bot {
  justify-self: start;
}

.welcomeModal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.welcomeModal[hidden],
.welcomeModal[aria-hidden="true"] {
  display: none;
}

.welcomeModal__card {
  position: relative;
  width: min(460px, calc(100% - 24px));
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: center;
}

.welcomeModal__logo img {
  width: 160px;
  height: auto;
}

.welcomeModal__title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcomeModal__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.star {
  line-height: 1;
  text-shadow: 0 0 18px var(--glow);
}

.star--off {
  color: rgba(255, 255, 255, 0.22);
  text-shadow: none;
}

.streamGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.streamBox {
  width: 100%;
  overflow: hidden;
}

.streamBox .panel__body {
  overflow: auto;
  max-height: min(520px, calc(76vh - 260px));
  padding-right: 4px;
}

.streamTabs {
  width: fit-content;
  max-width: 100%;
}

.streamSection {
  display: grid;
  gap: 14px;
}

.newsModal {
  display: grid;
  gap: 14px;
}

.newsModal__img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 8%);
  background: rgba(0, 0, 0, 0.18);
}

.newsModal__text {
  white-space: pre-wrap;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.miniStatus {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 80;
  width: min(420px, calc(100vw - 36px));
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 8%);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.7);
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.miniStatus[hidden] {
  display: none;
}

.miniStatus.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.miniStatus__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 14%);
  background: color-mix(in oklab, var(--panel2), transparent 10%);
  color: rgba(255, 255, 255, 0.92);
}

.miniStatus.is-loading .miniStatus__icon {
  color: color-mix(in oklab, var(--accent), white 12%);
}

.miniStatus.is-success .miniStatus__icon {
  color: color-mix(in oklab, var(--good), white 10%);
  border-color: color-mix(in oklab, var(--good), transparent 72%);
  box-shadow: 0 0 22px color-mix(in oklab, var(--good), transparent 76%);
}

.miniStatus.is-error .miniStatus__icon {
  color: color-mix(in oklab, var(--bad), white 10%);
  border-color: color-mix(in oklab, var(--bad), transparent 72%);
  box-shadow: 0 0 22px color-mix(in oklab, var(--bad), transparent 76%);
}

.miniStatus__title {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.miniStatus__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.streamCard {
  position: relative;
  display: flex;
  flex-direction: column;
  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: 18px 16px;
  min-height: 190px;
  overflow: hidden;
  isolation: isolate;
}

.streamCard::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.06);
  transform: translate3d(0, 0, 0) scale(1.08);
  animation: bgDrift 20s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.streamCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 260px at 50% 20%, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
  z-index: 1;
  pointer-events: none;
}

.streamCard__name {
  position: relative;
  z-index: 2;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--accent), white 14%);
  background: color-mix(in oklab, var(--panel2), transparent 22%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent), transparent 65%), 0 0 24px var(--glow);
  text-shadow: 0 0 18px var(--glow);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 180ms ease;
}

.topup {
  display: grid;
  gap: 14px;
}

.topup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.topup__meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.topup__packagesTitle {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 12px;
  margin-bottom: 8px;
}

.topup__packagesGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.topupPkg {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.topupPkg:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--stroke), transparent 12%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.topupPkg.is-active {
  border-color: rgba(255, 122, 56, 0.28);
  background: rgba(255, 122, 56, 0.12);
}

.topup__summary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.topup__cta {
  width: 100%;
}

.topup__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.wallet__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.pay {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  --pay-coin-bg: none;
}

.pay::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: var(--pay-coin-bg);
  background-repeat: no-repeat;
  background-size: 280px 280px;
  background-position: 0% 20%;
  opacity: 0.08;
  filter: blur(0.2px) saturate(1.15);
  transform: translate3d(0, 0, 0);
  animation: pay-bg-drift 18s linear infinite;
  pointer-events: none;
}

.pay__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pay__meta {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 12px;
}

.pay__timer {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.pay__timer.is-urgent {
  color: #ff4646;
  border-color: rgba(255, 70, 70, 0.28);
  box-shadow: 0 0 22px rgba(255, 70, 70, 0.16);
  animation: pay-urgent 900ms ease-in-out infinite;
}

.pay__hint--pulse {
  animation: pay-hint 2.4s ease-in-out infinite;
}

.pay__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
}

.pay__qrWrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.pay__coin {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.pay__qrImg {
  width: 200px;
  height: 200px;
  border-radius: 18px;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pay__qr {
  border-radius: 18px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pay__row {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.pay__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.pay__value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.pay__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
}

.pay__status {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.pay__status.is-progress {
  border-color: rgba(255, 122, 56, 0.22);
  color: #ff7a38;
  background: rgba(255, 122, 56, 0.08);
}

.pay__status.is-mid {
  border-color: rgba(255, 214, 77, 0.22);
  color: #ffd64d;
  background: rgba(255, 214, 77, 0.08);
}

.pay__status.is-received {
  border-color: rgba(44, 255, 107, 0.18);
  color: #2cff6b;
  background: rgba(44, 255, 107, 0.08);
}

.pay__status.is-error {
  border-color: rgba(255, 70, 70, 0.22);
  color: #ff4646;
  background: rgba(255, 70, 70, 0.08);
}

.pay__info {
  padding-left: 10px;
}

.pay__warn {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 122, 56, 0.22);
  background: rgba(255, 122, 56, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.4;
}

.pay__warn[hidden] {
  display: none !important;
}

.pay__success {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 16px 12px;
  border-radius: 18px;
  border: 1px solid rgba(44, 255, 107, 0.18);
  background: rgba(44, 255, 107, 0.08);
}

.pay__success[hidden] {
  display: none !important;
}

.payCheck {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2cff6b;
  border: 2px solid rgba(44, 255, 107, 0.65);
  box-shadow: 0 0 26px rgba(44, 255, 107, 0.22);
  animation: pay-pop 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payCheck svg {
  width: 30px;
  height: 30px;
}

.pay__successText {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.hist {
  display: grid;
  gap: 10px;
}

.histItem {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 6px;
}

.histItem.is-clickable {
  cursor: pointer;
}

.histItem__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.histItem__title {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.histItem__status {
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.histItem__status.is-completed {
  border-color: rgba(44, 255, 107, 0.22);
  color: #2cff6b;
  background: rgba(44, 255, 107, 0.08);
}

.histItem__status.is-pending {
  border-color: rgba(255, 122, 56, 0.22);
  color: #ff7a38;
  background: rgba(255, 122, 56, 0.08);
}

.histItem__status.is-expired,
.histItem__status.is-canceled {
  border-color: rgba(255, 70, 70, 0.22);
  color: #ff4646;
  background: rgba(255, 70, 70, 0.08);
}

.histItem__meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}