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);
}
.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 16px 30px rgba(0, 0, 0, 0.68), 0 0 18px 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 {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.charRow:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.charRow.is-active {
  border-color: rgba(255, 122, 56, 0.42);
  background: linear-gradient(180deg, rgba(255, 122, 56, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 24px rgba(255, 122, 56, 0.12);
}

.charRow:active {
  transform: scale(0.995);
}

.charRow__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, rgba(255, 122, 56, 0.32), rgba(9, 11, 17, 0.96));
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}
.charRow__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.charRow__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.charRow:last-child {
  margin-bottom: 0;
}
.charRow__name {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.charRow__sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}
.charRow__meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.charRow__meta strong {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mono);
  font-size: 13px;
}

.charsDetail {
  margin-top: 12px;
  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.16));
  padding: 16px;
  display: grid;
  gap: 14px;
}

.charsDetail__hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.charsDetail__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at top, rgba(255, 122, 56, 0.38), rgba(9, 11, 17, 0.98));
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow: hidden;
}
.charsDetail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.charsDetail__name {
  font-size: 18px;
  font-weight: 900;
}

.charsDetail__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.charsDetail__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.charsDetail__fact {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.charsDetail__label {
  color: var(--muted2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.charsDetail__value {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.charsDetail__section {
  display: grid;
  gap: 8px;
}

.charsDetail__sectionTitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

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

.charsDetail__item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.charsDetail__itemLabel {
  color: var(--muted2);
  font-size: 11px;
}

.charsDetail__itemValue {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.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;
}
/* ---- Inventory Grid ---- */
.invGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  min-height: 200px;
}
.invGrid.is-dragging .invSlot {
  border-color: color-mix(in oklab, var(--stroke), transparent 5%);
}
.invSlot {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 15%);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: default;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  user-select: none;
}
.invSlot:hover {
  border-color: color-mix(in oklab, var(--stroke), transparent 5%);
  background: rgba(255, 255, 255, 0.04);
}
.invSlot.is-empty {
  border-style: dashed;
  border-color: color-mix(in oklab, var(--stroke), transparent 40%);
}
.invSlot.is-empty:hover {
  border-color: color-mix(in oklab, var(--stroke), transparent 20%);
}
.invSlot.is-dragging {
  opacity: 0.35;
  transform: scale(0.92);
}
.invSlot.is-drop-target {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent), transparent 50%);
}
.invSlot__img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
}
.invSlot__fallback {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  pointer-events: none;
}
.invSlot__lvl {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  pointer-events: none;
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 4px;
}
.invSlot__name {
  font-size: 10px;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  pointer-events: none;
}
.invSlot__type {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.6);
  color: var(--muted);
  pointer-events: none;
  line-height: 1.2;
}
/* ---- Drag ghost ---- */
.invDragGhost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0,0,0,0.75);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}
/* ---- Context menu ---- */
.invCtx {
  position: fixed;
  z-index: 9000;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 5%);
  border-radius: 10px;
  padding: 4px;
  min-width: 120px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.invCtx__item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.invCtx__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}
.invCtx__item:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
/* ---- Toast notification ---- */
.invToast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9500;
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 5%);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: invToastIn 0.25s ease;
}
@keyframes invToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* ---- Item Action Modal ---- */
#invItemModal {
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
#invItemModal[hidden] {
  display: none;
}
#invItemModal.is-open {
  opacity: 1;
  pointer-events: auto;
}
#invItemModal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
#invItemModal .modal__dialog {
  transform: translateY(30px) scale(0.92);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 250ms ease;
}
.invItemModal {
  width: min(400px, calc(100% - 24px));
  padding: 30px 24px 22px;
  text-align: center;
  background: rgba(10, 10, 15, 0.96);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 5%);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
}
.invItemModal__icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.invItemModal__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
}
.invItemModal__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.invItemModal__type {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.invItemModal__lvl {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}
.invItemModal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.invItemModal__btn {
  font-size: 13px;
  padding: 8px 18px;
  min-width: 70px;
}
#invSellModal, #invAuctionModal, #invLoanModal {
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
#invSellModal[hidden], #invAuctionModal[hidden], #invLoanModal[hidden] {
  display: none;
}
#invSellModal.is-open, #invAuctionModal.is-open, #invLoanModal.is-open {
  opacity: 1;
  pointer-events: auto;
}
#invSellModal.is-open .modal__dialog,
#invAuctionModal.is-open .modal__dialog,
#invLoanModal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
#invSellModal .modal__dialog,
#invAuctionModal .modal__dialog,
#invLoanModal .modal__dialog {
  transform: translateY(30px) scale(0.92);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.34,1.56,0.64,1), opacity 250ms ease;
}
.invSellModal, .invAuctionModal, .invLoanModal {
  width: min(380px, calc(100% - 24px));
  padding: 26px 22px 20px;
  text-align: left;
  background: rgba(10,10,15,0.96);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 5%);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
}
.invSellModal__item, .invAuctionModal__item, .invLoanModal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}
.invSellModal__itemIcon, .invAuctionModal__itemIcon, .invLoanModal__itemIcon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  flex-shrink: 0;
}
.invSellModal__itemName, .invAuctionModal__itemName, .invLoanModal__itemName {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.invSellModal__field, .invAuctionModal__field, .invLoanModal__field {
  margin-bottom: 14px;
}
.invSellModal__label, .invAuctionModal__label, .invLoanModal__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.invSellModal__input, .invAuctionModal__input, .invLoanModal__input,
.invSellModal__select, .invAuctionModal__select, .invLoanModal__select {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}
.invSellModal__input:focus, .invAuctionModal__input:focus, .invLoanModal__input:focus,
.invSellModal__select:focus, .invAuctionModal__select:focus, .invLoanModal__select:focus {
  border-color: var(--accent);
}
.invSellModal__select, .invAuctionModal__select, .invLoanModal__select {
  cursor: pointer;
  background: #111;
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.invSellModal__select option, .invAuctionModal__select option, .invLoanModal__select option {
  background: #111;
  color: #fff;
}
.invSellModal__select:hover, .invAuctionModal__select:hover, .invLoanModal__select:hover {
  border-color: var(--accent, #c084fc);
}
.invSellModal__actions, .invAuctionModal__actions, .invLoanModal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.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;
}
/* ── Markets (rename of Trade) ─────────────────────────────── */
.markets__grid { display: grid; gap: 18px; }
body[data-page="markets"] .cardBg { opacity: 0.3; }
.marketsTabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.marketsBody { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.marketsPane[hidden] { display: none; }
/* Wallet */
.marketsWallet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.marketsWalletCard {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0, 0, 0, 0.16);
  padding: 12px 10px;
  text-align: center;
}
.marketsWalletCard__label { font-size: 10px; color: var(--muted2); margin-bottom: 2px; }
.marketsWalletCard__value { font-family: var(--mono); font-size: 18px; font-weight: 900; }
.marketsWalletCard--gold .marketsWalletCard__value { color: rgba(255,204,102,0.95); }
.marketsWalletCard--cash .marketsWalletCard__value { color: rgba(75,182,255,0.95); }
.marketsWalletCard--event .marketsWalletCard__value { color: rgba(255,122,56,0.95); }
/* Filters */
.marketsFilters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.marketsFilters__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.marketsFilters__label { font-size: 11px; color: var(--muted2); min-width: 64px; font-family: var(--mono); }
.marketsFilters__group { flex: 1; }
.marketsList { display: flex; flex-direction: column; gap: 8px; }
.marketsList > #marketItemList { display: flex; flex-direction: column; gap: 8px; }
/* Market item rows */
.marketItem {
  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: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}
.marketItem__icon {
  width: 48px; height: 48px; border-radius: 12px;
  overflow: hidden; background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
}
.marketItem__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.marketItem__title { font-weight: 900; letter-spacing: 0.04em; }
.marketItem__meta { color: rgba(255,255,255,0.6); font-size: 11px; margin-top: 2px; }
.marketItem__stats { font-size: 10px; color: var(--accent); font-family: var(--mono); margin-top: 4px; letter-spacing: 0.02em; }
.marketItem__right { display: inline-flex; align-items: center; gap: 10px; }
.marketPrice {
  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);
}
.marketPrice--gold { border-color: rgba(255,204,102,0.22); color: rgba(255,204,102,0.9); }
.marketPrice--cash { border-color: rgba(75,182,255,0.22); color: rgba(75,182,255,0.9); }
.marketPrice--event { border-color: rgba(255,122,56,0.22); color: rgba(255,122,56,0.9); }
/* ── Loan pane ──────────────────────────────────────────── */
.loanSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.loanCol { display: flex; flex-direction: column; gap: 8px; }
.loanCol__title { font-weight: 900; font-size: 13px; letter-spacing: 0.06em; padding-bottom: 4px; border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 20%); margin-bottom: 2px; }
.loanCol__list { display: flex; flex-direction: column; gap: 8px; }
.loanItem { padding: 12px; border-radius: 14px; }
.loanItem--empty { color: var(--muted2); font-size: 13px; text-align: center; border: 1px dashed color-mix(in oklab, var(--stroke), transparent 30%); background: rgba(0,0,0,0.1); }
.loanCard {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0,0,0,0.18);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loanCard { position: relative; }
.loanCard__icon {
  width: 48px; height: 48px; border-radius: 12px;
  overflow: hidden; background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.loanCard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loanCard__head { font-weight: 900; font-size: 14px; letter-spacing: 0.04em; }
.loanCard__type { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.loanCard__stats { font-size: 10px; color: var(--accent); font-family: var(--mono); letter-spacing: 0.02em; padding: 4px 0; }
.loanCard__body { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.loanCard__row { display: flex; justify-content: space-between; color: rgba(255,255,255,0.7); }
.loanCard__btn { align-self: flex-start; margin-top: 4px; }
/* ── Auction pane ───────────────────────────────────────── */
.auctionSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auctionCol { display: flex; flex-direction: column; gap: 8px; }
.auctionCol__title { font-weight: 900; font-size: 13px; letter-spacing: 0.06em; padding-bottom: 4px; border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 20%); margin-bottom: 2px; }
.auctionCol__list { display: flex; flex-direction: column; gap: 8px; }
.auctionItem { padding: 12px; border-radius: 14px; }
.auctionItem--empty { color: var(--muted2); font-size: 13px; text-align: center; border: 1px dashed color-mix(in oklab, var(--stroke), transparent 30%); background: rgba(0,0,0,0.1); }
.auctionCard {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0,0,0,0.18);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auctionCard { position: relative; }
.auctionCard__icon {
  width: 48px; height: 48px; border-radius: 12px;
  overflow: hidden; background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.auctionCard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auctionCard__head { font-weight: 900; font-size: 14px; letter-spacing: 0.04em; }
.auctionCard__meta { font-size: 11px; color: rgba(255,255,255,0.5); }
.auctionCard__stats { font-size: 10px; color: var(--accent); font-family: var(--mono); letter-spacing: 0.02em; padding: 2px 0; }
.auctionCard__bid { margin: 4px 0; }
.auctionCard__timer { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.auctionCard__bidders { font-size: 11px; color: var(--muted2); }
.auctionCard__btnWrap { margin-top: 4px; }
/* ── Auction modal ──────────────────────────────────────── */
.auctionModal .modal__body { max-height: 80vh; overflow-y: auto; }
.auctionDetail { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.auctionDetail__icon {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 20%);
  margin: 0 auto 4px;
  overflow: hidden;
}
.auctionDetail__iconImg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.auctionDetail__iconInner {
  font-size: 28px; font-weight: 900; color: var(--accent);
}
.auctionDetail__timer { text-align: center; }
.auctionTimer__bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; margin-bottom: 4px;
}
.auctionTimer__fill {
  height: 100%; border-radius: 3px;
  background: var(--accent);
  transition: width 1s linear;
}
.auctionTimer__text { font-family: var(--mono); font-size: 20px; font-weight: 900; letter-spacing: 0.06em; color: var(--accent); }
.auctionDetail__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 25%);
}
.auctionDetail__label { font-size: 12px; color: var(--muted2); font-family: var(--mono); }
.auctionDetail__value { font-size: 15px; font-weight: 700; }
.auctionDetail__section {
  font-weight: 900; font-size: 13px; letter-spacing: 0.06em;
  padding: 6px 0 2px; margin-top: 4px;
}
.auctionDetail__top3 { display: flex; flex-direction: column; gap: 4px; }
.auctionTop3__item {
  padding: 8px 12px; border-radius: 12px;
  background: rgba(0,0,0,0.15);
  font-size: 13px; font-weight: 600;
}
.auctionTop3__item--empty { color: var(--muted2); font-weight: 400; font-size: 12px; }
.auctionDetail__bidBox {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 12%);
  background: rgba(0,0,0,0.15);
  padding: 14px; margin-top: 6px;
}
.auctionDetail__bidLabel { font-size: 12px; color: var(--muted2); margin-bottom: 8px; font-family: var(--mono); }
.auctionDetail__bidRow { display: flex; gap: 8px; align-items: center; }
.auctionDetail__currency {
  background: rgba(0,0,0,0.3);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 20%);
  border-radius: 10px; padding: 8px; font-size: 12px; color: white;
  font-family: var(--mono); appearance: auto; min-width: 100px;
}
.auctionDetail__input {
  background: rgba(0,0,0,0.3);
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 20%);
  border-radius: 10px; padding: 8px; font-size: 13px; color: white;
  font-family: var(--mono); width: 100px;
}
.auctionDetail__input::-webkit-inner-spin-button { opacity: 1; }
.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 16px 30px 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("../imgs/02.png");
  background-position: right center;
  opacity: 0.58;
  animation-duration: 19s;
}
.cardBg--news {
  background-image: url("../imgs/01.png");
  background-position: left center;
  opacity: 0.34;
  animation-duration: 21s;
}
.cardBg--rank {
  background-image: url("../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 16px 30px 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 {
  aspect-ratio: 1024 / 430;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
}
.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: cover;
  object-position: 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__list {
  padding: 0 16px 16px;
  display: grid;
  gap: 4px;
}
.rankRow {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.rankRow--top {
  background: rgba(255,255,255,0.06);
}
.rankRow__pos {
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}
.rankRow--top .rankRow__pos {
  font-size: 15px;
}
.rankRow__badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}
.rankRow__name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rankRow__score {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  font-family: var(--mono);
}
.rankRow--skeleton {
  pointer-events: none;
}
.rankRow__skeletonCell {
  height: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  animation: shimmer 1.2s ease infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.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;
}
.welcomeModal.welcomeModal {
  max-width: 520px;
  text-align: center;
}
.welcomeModal .panel__header {
  border: none;
  padding-bottom: 0;
}
.welcomeModal .panel__body {
  display: grid;
  gap: 20px;
  padding-top: 4px;
}
.welcomeModal__content {
  display: grid;
  gap: 14px;
  text-align: left;
}
.welcomeModal__line {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 4px;
}
.welcomeModal__btn {
  width: 100%;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  text-transform: uppercase;
}
.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: 600px;
  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);
  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;
}
/* ---- Ranking Table ---- */
.rkSearch {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.rkSearch .input {
  flex: 1;
}
.rkTableWrap {
  overflow-x: auto;
}
.rkTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rkTable thead th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 20%);
  white-space: nowrap;
}
.rkCol--pos { width: 48px; text-align: center !important; }
.rkCol--numeric { width: 72px; text-align: right !important; }
.rkCol--player { min-width: 180px; }
.rkTable tbody tr {
  transition: background 0.15s;
}
.rkTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.rkTable td {
  padding: 10px;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke), transparent 30%);
  vertical-align: middle;
}
.rkPlayer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rkPlayer__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.rkPlayer__name {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rkPlayer__name:hover {
  color: var(--accent);
}
.rkPlayer__user {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rkPos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 11px;
  background: rgba(0,0,0,0.3);
  color: var(--muted);
  border: 2px solid transparent;
}
.rkPos--crown    { background: linear-gradient(135deg, #ffd700, #b8860b); color: #000; font-size: 16px; border-color: #fff3b0; }
.rkPos--diamond  { background: linear-gradient(135deg, #b9f2ff, #4fc3f7); color: #003; border-color: #80deea; }
.rkPos--gold     { background: linear-gradient(135deg, #ffd700, #f9a825); color: #3e2723; border-color: #ffd54f; }
.rkPos--platinum { background: linear-gradient(135deg, #e0e0e0, #90a4ae); color: #1a1a2e; border-color: #b0bec5; }
.rkPos--silver   { background: linear-gradient(135deg, #c0c0c0, #78909c); color: #1a1a2e; border-color: #90a4ae; }
.rkPos--copper   { background: linear-gradient(135deg, #a1887f, #6d4c41); color: #fff; border-color: #8d6e63; }
.rkNumeric    { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.rkScore      { font-weight: 600; color: var(--accent); }
.rkEmpty {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
}
.rkFooter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--stroke), transparent 20%);
}
.rkPage {
  font-size: 13px;
  color: var(--muted);
  min-width: 60px;
  text-align: center;
}


.countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,12,18,0.7), rgba(20,24,36,0.5));
  border: 1px solid color-mix(in oklab, var(--stroke), transparent 40%);
  transition: box-shadow 600ms ease;
  box-shadow: 0 0 20px color-mix(in oklab, currentColor, transparent 75%);
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, currentColor, transparent 88%) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 600ms ease;
}
.countdown__units {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid color-mix(in oklab, currentColor, transparent 70%);
  transition: none;
}
.countdown__num {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 0 12px color-mix(in oklab, currentColor, transparent 50%);
}
.countdown__unitLabel {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-top: 1px;
}
.countdown__sep {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  margin-bottom: 14px;
}
.countdown__bar {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.countdown__barFill {
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: width 1000ms linear;
  box-shadow: 0 0 6px color-mix(in oklab, currentColor, transparent 40%);
}
.countdown__status {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.rankRow--placeholder {
  opacity: 0.35;
  pointer-events: none;
}

.rankRow__placeholderCell {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.rankRow--placeholder .rankRow__placeholderCell:nth-child(1) { width: 28px; }
.rankRow--placeholder .rankRow__placeholderCell:nth-child(2) { width: 24px; border-radius: 50%; }
.rankRow--placeholder .rankRow__placeholderCell:nth-child(3) { flex: 1; }
.rankRow--placeholder .rankRow__placeholderCell:nth-child(4) { width: 40px; }

body.modal-open { overflow: hidden; }

/* Notification Detail Modal */
.notifModal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.25s ease;
}
.notifModal:not([hidden]) { opacity: 1; }
.notifModal[hidden] { display: none; }
.notifModal__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.notifModal__paper {
  position: relative; width: 100%; max-width: 440px;
  background: rgba(20,20,28,0.96); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: scale(0.92) translateY(12px); transition: transform 0.25s ease;
}
.notifModal:not([hidden]) .notifModal__paper { transform: scale(1) translateY(0); }
.notifModal__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.18; pointer-events: none;
}
.notifModal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.5);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: background 0.12s, color 0.12s;
}
.notifModal__close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.notifModal__icon { font-size: 40px; text-align: center; padding: 28px 20px 0; line-height: 1; }
.notifModal__title {
  font-size: 20px; font-weight: 700; text-align: center; padding: 12px 20px 4px; color: #fff;
}
.notifModal__body {
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.72);
  padding: 8px 20px 28px; text-align: center; white-space: pre-wrap;
}

/* Notification Bell */
.notifBell { position: relative; display: flex; align-items: center; }
.notifBell__btn {
  background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.notifBell__btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.notifBell__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.notifBell__badge {
  position: absolute; top: -2px; right: -2px; min-width: 14px; height: 14px;
  border-radius: 7px; background: #e74c3c; color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  line-height: 1; pointer-events: none;
}

/* Notification Panel */
.notifPanel {
  position: absolute; top: calc(100% + 6px); right: 0; width: 320px; max-height: 360px;
  background: rgba(16,16,22,0.96); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.6); overflow: hidden;
  z-index: 1000;
}
.notifPanel__header {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7);
}
.notifPanel__list { max-height: 300px; overflow-y: auto; }
.notifPanel__empty { padding: 24px 14px; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; }
.notifItem {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background 0.12s; display: flex; gap: 10px; align-items: flex-start;
}
.notifItem:hover { background: rgba(255,255,255,0.04); }
.notifItem__icon { font-size: 18px; line-height: 1; }
.notifItem__body { flex: 1; min-width: 0; }
.notifItem__title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.notifItem__text { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.notifItem__dismiss {
  background: none; border: none; color: rgba(255,255,255,0.2); cursor: pointer;
  padding: 2px; font-size: 14px; line-height: 1; border-radius: 4px; flex-shrink: 0;
  transition: color 0.12s;
}
.notifItem__dismiss:hover { color: #e74c3c; }