:root {
  color-scheme: dark;
  --bg: #07111b;
  --bg-deep: #040b12;
  --panel: #0a1621;
  --panel-2: #0d1b28;
  --line: #31404d;
  --line-soft: #1f2e3b;
  --text: #f4f1eb;
  --muted: #9ca9b4;
  --muted-2: #667683;
  --red: #ff4655;
  --red-dark: #8b2530;
  --gold: #e0bc63;
  --green: #35c7a6;
  --pink: #c45c91;
  --orange: #e68a35;
  --purple: #9162bf;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 72% -10%, rgba(24, 105, 149, .18), transparent 34rem),
    linear-gradient(150deg, #08131e, #050b12 66%);
  font-size: 16px;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  color: #07111b;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.app-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 10, 17, .93);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 28px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .025em;
}

.app-brand img {
  width: 42px;
  height: 42px;
}

.app-brand b {
  color: var(--red);
  font-weight: 850;
}

.header-wallet {
  display: flex;
  align-items: stretch;
}

.wallet-stat {
  min-width: 142px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  border-left: 1px solid var(--line-soft);
}

.wallet-stat > span:last-child {
  display: grid;
  gap: 1px;
}

.wallet-stat small,
.account-wallet-grid small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.wallet-stat strong {
  font-size: 18px;
}

.currency-symbol,
.vp-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border: 2px solid #d7dcdf;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.profile-shortcut {
  min-width: 260px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 0 24px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-shortcut:hover { background: rgba(255,255,255,.03); }

.profile-avatar,
.account-big-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--red-dark);
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,70,85,.7), rgba(56,69,129,.85));
  font-weight: 850;
}

.profile-avatar {
  width: 42px;
  height: 42px;
}

.profile-copy {
  min-width: 0;
  display: grid;
}

.profile-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  margin-top: 2px;
  color: var(--muted);
}

.profile-chevron {
  color: var(--muted);
  font-size: 20px;
}

.app-main {
  width: min(1660px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0 30px;
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.shop-tab {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(10, 25, 39, .96), rgba(5, 13, 22, .96));
  color: #c7cbd0;
  font-weight: 780;
  letter-spacing: .055em;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.shop-tab svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-tab:hover {
  border-color: #536675;
  color: #fff;
}

.shop-tab.active {
  position: relative;
  color: var(--red);
  border-color: #8b3038;
  background:
    linear-gradient(135deg, rgba(73, 19, 29, .78), rgba(21, 14, 25, .95)),
    var(--panel);
}

.shop-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: var(--red);
}

.review-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(224, 188, 99, .25);
  background: rgba(224, 188, 99, .055);
  color: #d4c38e;
  font-size: 13px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.tab-content {
  min-height: 650px;
}

.tab-panel {
  animation: panelIn .17s ease-out;
}

@keyframes panelIn {
  from { opacity: .45; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.featured-bundle,
.content-box,
.empty-state,
.account-card,
.accounts-list-card,
.page-heading,
.bundle-card,
.accessory-card {
  border: 1px solid var(--line);
  background: rgba(5, 15, 24, .88);
}

.featured-bundle {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(580px, 1.28fr);
  overflow: hidden;
  margin-bottom: 12px;
}

.featured-bundle::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -30px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,70,85,.12);
  transform: rotate(25deg);
  box-shadow:
    0 0 0 40px rgba(255,70,85,.025),
    0 0 0 85px rgba(255,70,85,.018);
}

.bundle-copy {
  position: relative;
  z-index: 2;
  padding: 38px 0 35px 64px;
}

.bundle-kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: .055em;
}

.bundle-kicker span { color: var(--red); }
.bundle-kicker b {
  padding-left: 20px;
  border-left: 1px solid var(--gold);
  color: var(--gold);
}

.bundle-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 5vw, 78px);
  line-height: .88;
  letter-spacing: -.045em;
}

.bundle-price {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border: 1px solid #51606d;
  border-radius: 5px;
  font-size: 27px;
  font-weight: 800;
}

.bundle-art {
  position: relative;
  min-height: 270px;
}

.bundle-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 46%, rgba(72, 208, 145, .16), transparent 28%),
    radial-gradient(ellipse at 46% 44%, rgba(185, 101, 55, .12), transparent 28%);
}

.bundle-weapon {
  position: absolute;
  z-index: 1;
  width: 55%;
  filter: drop-shadow(0 18px 17px rgba(0,0,0,.55));
}

.weapon-one {
  top: 22px;
  left: 0;
  transform: rotate(-3deg);
}

.weapon-two {
  top: 19px;
  right: -2%;
  transform: rotate(2deg);
}

.weapon-three {
  right: 13%;
  bottom: -1px;
  width: 42%;
  transform: rotate(-7deg);
}

.bundle-pages {
  position: absolute;
  right: 47%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.bundle-pages span {
  width: 37px;
  height: 5px;
  background: #3d4650;
}

.bundle-pages .active { background: var(--red); }

.content-box {
  padding: 20px 20px 22px;
}

.section-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-bar h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .09em;
}

.bar-separator {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.section-bar time,
.page-heading time {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: .04em;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skin-card {
  overflow: hidden;
  border: 1px solid var(--skin-color, #356);
  background: #071019;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.skin-card:hover {
  transform: translateY(-2px);
  border-color: #d2d7dc;
}

.skin-art {
  height: 210px;
  display: grid;
  place-items: center;
  padding: 25px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--skin-color) 38%, #071019), #10101a);
}

.skin-art img {
  width: 95%;
  max-height: 145px;
  filter: drop-shadow(0 17px 12px rgba(0,0,0,.55));
}

.skin-footer {
  min-height: 88px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: rgba(3, 10, 16, .9);
}

.skin-footer strong {
  font-size: 17px;
  letter-spacing: .015em;
}

.item-price {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 800;
}

.item-price .vp-icon {
  width: 21px;
  height: 21px;
  border-width: 1px;
  font-size: 9px;
}

.page-heading {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 12px;
  padding: 24px 30px;
}

.page-heading p,
.account-title p,
.accounts-list-card header p {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: .12em;
}

.page-heading h1,
.account-title h1 {
  margin: 0;
  font-size: 34px;
}

.empty-state {
  min-height: 510px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}

.empty-state svg {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  fill: none;
  stroke: #d7dce0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}

.empty-state h2 {
  margin: 0 0 9px;
  font-size: 25px;
}

.empty-state p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

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

.bundle-card {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  overflow: hidden;
}

.bundle-card-copy {
  position: relative;
  z-index: 2;
  padding: 35px;
}

.bundle-card-copy small {
  color: var(--red);
  letter-spacing: .1em;
}

.bundle-card-copy h2 {
  margin: 9px 0 15px;
  font-size: 37px;
}

.bundle-card-copy time {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
}

.bundle-card-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--bundle-color) 28%, transparent), transparent 64%);
}

.bundle-card-art img {
  position: absolute;
  width: 100%;
  filter: drop-shadow(0 18px 16px rgba(0,0,0,.52));
}

.bundle-card-art img:last-child {
  transform: translate(10px, 65px) rotate(-8deg) scale(.82);
}

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

.accessory-card {
  min-height: 175px;
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.accessory-art {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accessory-color) 45%, #121622), #20253a);
}

.accessory-art img {
  width: 100%;
  max-height: 105px;
}

.accessory-copy {
  padding: 20px;
}

.accessory-copy small {
  color: var(--muted);
  letter-spacing: .08em;
}

.accessory-copy h2 {
  margin: 5px 0 21px;
  font-size: 21px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr);
  gap: 13px;
}

.account-card,
.accounts-list-card {
  min-height: 530px;
  padding: 34px;
}

.account-title {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.account-big-avatar {
  width: 92px;
  height: 92px;
  font-size: 26px;
}

.account-title small {
  color: var(--muted);
}

.account-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0;
  background: var(--line-soft);
}

.account-wallet-grid > div {
  min-height: 125px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  column-gap: 12px;
  padding: 20px;
  background: var(--panel);
}

.account-wallet-grid .currency-symbol {
  grid-row: 1 / 3;
  align-self: center;
}

.account-wallet-grid strong {
  margin-top: 2px;
  font-size: 27px;
}

.account-actions {
  display: grid;
  gap: 10px;
}

.action-button {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .055em;
  cursor: pointer;
}

.action-button.primary {
  color: #fff;
  background: var(--red);
}

.action-button.secondary {
  border-color: #7b3239;
  background: transparent;
}

.action-button.quiet {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.action-button.disabled,
.action-button:disabled {
  color: #79848d;
  border-color: var(--line-soft);
  background: #111a22;
  cursor: not-allowed;
}

.accounts-list-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.accounts-list-card h2 {
  margin: 0;
}

.accounts-list-card header > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.account-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.account-list-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: #0a1621;
  text-align: left;
  cursor: pointer;
}

.account-list-item.active {
  border-color: rgba(255,70,85,.48);
  background: rgba(255,70,85,.06);
}

.account-list-item .profile-avatar {
  width: 42px;
  height: 42px;
}

.account-list-copy {
  min-width: 0;
  display: grid;
}

.account-list-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list-copy small {
  color: var(--muted);
}

.account-list-state {
  color: var(--red);
  font-size: 20px;
  text-align: center;
}

.empty-account-list {
  margin-top: 20px;
  color: var(--muted);
}

.legal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 13px;
  padding: 15px 18px;
  border: 1px solid var(--line-soft);
  background: rgba(5,15,24,.75);
}

.legal-strip a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.legal-strip a:hover { color: #fff; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: #101c27;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}

.toast.success { border-left-color: var(--green); }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: minmax(190px, 1fr) auto;
  }

  .header-wallet {
    order: 3;
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
  }

  .wallet-stat {
    flex: 1;
    justify-content: center;
    min-height: 54px;
  }

  .profile-shortcut { min-width: 250px; }

  .featured-bundle {
    grid-template-columns: .82fr 1.18fr;
  }

  .bundle-copy {
    padding-left: 38px;
  }

  .daily-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .accessory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }

  .app-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .app-brand {
    padding: 0 14px;
  }

  .app-brand img {
    width: 34px;
    height: 34px;
  }

  .app-brand span { font-size: 15px; }

  .profile-shortcut {
    min-width: auto;
    padding: 0 14px;
    grid-template-columns: 38px 16px;
  }

  .profile-avatar {
    width: 38px;
    height: 38px;
  }

  .profile-copy { display: none; }

  .header-wallet {
    grid-column: 1 / -1;
  }

  .wallet-stat {
    min-width: 0;
    padding: 0 9px;
  }

  .wallet-stat small { display: none; }
  .wallet-stat strong { font-size: 15px; }

  .currency-symbol {
    width: 23px;
    height: 23px;
  }

  .app-main {
    width: min(100% - 16px, 1660px);
    padding-top: 8px;
  }

  .shop-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #07111b;
  }

  .shop-tab {
    min-width: 0;
    min-height: 70px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 7px 3px;
    border: 0;
    border-right: 1px solid var(--line-soft);
    font-size: 9px;
    letter-spacing: 0;
  }

  .shop-tab svg {
    width: 27px;
    height: 27px;
  }

  .shop-tab.active::after {
    top: 0;
    bottom: auto;
    height: 3px;
  }

  .review-banner {
    align-items: flex-start;
    font-size: 12px;
  }

  .featured-bundle {
    min-height: 380px;
    grid-template-columns: 1fr;
  }

  .bundle-copy {
    z-index: 3;
    padding: 25px 22px 0;
  }

  .bundle-copy h1 {
    font-size: 48px;
  }

  .bundle-art {
    min-height: 220px;
  }

  .bundle-weapon { width: 65%; }
  .weapon-one { top: 15px; left: -5%; }
  .weapon-two { top: 15px; right: -5%; }
  .weapon-three { right: 5%; bottom: 0; width: 50%; }

  .bundle-pages {
    right: 50%;
    transform: translateX(50%);
  }

  .content-box {
    padding: 15px 12px;
  }

  .daily-grid {
    grid-template-columns: 1fr;
  }

  .skin-art { height: 180px; }
  .skin-footer { min-height: 72px; }

  .page-heading {
    min-height: 90px;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .page-heading h1 { font-size: 27px; }

  .empty-state {
    min-height: 440px;
    padding: 25px 18px;
  }

  .bundle-card {
    min-height: 420px;
    grid-template-columns: 1fr;
  }

  .bundle-card-art {
    min-height: 235px;
  }

  .bundle-card-copy { padding: 25px; }

  .accessory-grid { grid-template-columns: 1fr; }

  .accessory-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-card,
  .accounts-list-card {
    min-height: auto;
    padding: 20px;
  }

  .account-title {
    gap: 15px;
  }

  .account-big-avatar {
    width: 70px;
    height: 70px;
  }

  .account-title h1 {
    font-size: 26px;
  }

  .account-wallet-grid {
    grid-template-columns: 1fr;
  }

  .account-wallet-grid > div {
    min-height: 82px;
  }

  .legal-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


.advanced-signin {
  margin-top: 17px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
}

.advanced-signin summary {
  width: fit-content;
  margin-top: 13px;
  padding: 5px 0;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .05em;
  cursor: pointer;
  user-select: none;
}

.advanced-signin summary:hover {
  color: var(--muted);
}

.advanced-signin-body {
  margin-top: 8px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  background: rgba(2, 9, 15, .65);
}

.advanced-signin-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.advanced-signin-body label {
  display: block;
  margin-bottom: 7px;
  color: #c4cbd1;
  font-size: 12px;
  font-weight: 700;
}

.advanced-signin-body textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 11px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #050d14;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.advanced-token-button {
  width: 100%;
  min-height: 43px;
  margin-top: 9px;
  border: 1px solid #465765;
  color: #d7dde1;
  background: #111e29;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  cursor: pointer;
}

.advanced-token-button:hover:not(:disabled) {
  border-color: #758592;
  background: #172633;
}

.advanced-token-button:disabled {
  cursor: wait;
  opacity: .62;
}

.advanced-message {
  min-height: 18px;
  margin: 9px 0 0 !important;
}

.advanced-message.success {
  color: var(--green);
}

.advanced-message.error {
  color: #ff8791;
}


.advanced-steps {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.advanced-login-link {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 70, 85, .55);
  color: #fff;
  background: rgba(255, 70, 85, .12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}

.advanced-login-link:hover {
  border-color: var(--red);
  background: rgba(255, 70, 85, .2);
}


/* V7 live store */
.shop-tabs.four-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.header-refresh {
  width: 62px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  color: var(--muted);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.header-refresh:hover {
  color: #fff;
  background: rgba(255,255,255,.035);
}

.header-refresh.spinning {
  animation: refreshSpin .7s linear infinite;
}

@keyframes refreshSpin { to { transform: rotate(360deg); } }

.connection-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,70,85,.28);
  background: rgba(255,70,85,.055);
  color: #d8adb1;
  font-size: 13px;
}

.connection-banner.connected {
  border-color: rgba(53,199,166,.3);
  background: rgba(53,199,166,.06);
  color: #a9decf;
}

.connection-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
}

.connection-banner.connected .connection-dot { background: var(--green); }

.connection-banner button {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.loading-state {
  min-height: 540px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  background: rgba(5,15,24,.82);
  color: var(--muted);
}

.loader {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: refreshSpin .8s linear infinite;
}

.loading-state p { margin: 15px 0 0; }

.compact-empty { min-height: 430px; }

.empty-action {
  margin-top: 20px;
  padding: 12px 18px;
  border: 0;
  color: #fff;
  background: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.live-featured {
  cursor: pointer;
}

.live-bundle-art {
  min-width: 0;
  display: grid;
  place-items: center;
}

.featured-bundle-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0,0,0,.6));
}

.bundle-item-collage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.bundle-item-collage img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 15px 12px rgba(0,0,0,.6));
}

.bundle-count {
  margin: 13px 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.bundle-open-label {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.bundle-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 42px;
  height: 64px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(2,8,14,.7);
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}

.bundle-arrow.previous { left: 8px; }
.bundle-arrow.next { right: 8px; }

.live-skin-card,
.live-accessory-card {
  position: relative;
  width: 100%;
  color: inherit;
  text-align: left;
}

.live-skin-art {
  background:
    radial-gradient(circle at 50% 45%, rgba(43,90,111,.32), transparent 52%),
    linear-gradient(145deg, #0c2430, #11141d);
}

.live-skin-art img {
  width: 96%;
  height: 100%;
  max-height: 170px;
  object-fit: contain;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 6px 9px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.price-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.price-stack del {
  color: var(--muted);
  font-size: 12px;
}

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

.live-accessory-card {
  border: 1px solid var(--line);
  cursor: pointer;
}

.missing-art {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.section-empty {
  grid-column: 1 / -1;
  padding: 35px;
  color: var(--muted);
  text-align: center;
}

.image-avatar {
  position: relative;
}

.image-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-level {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.advanced-region {
  width: 100%;
  min-height: 42px;
  margin-bottom: 13px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #050d14;
}

.item-dialog,
.bundle-dialog {
  width: min(960px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: #07131e;
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
}

.item-dialog::backdrop,
.bundle-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(5px);
}

.item-dialog {
  grid-template-columns: 1.2fr .8fr;
}

.item-dialog[open] {
  display: grid;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(3,10,16,.8);
  font-size: 26px;
  cursor: pointer;
}

.dialog-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle, rgba(42,103,130,.25), transparent 60%);
}

.dialog-visual img {
  width: 100%;
  max-height: 370px;
  object-fit: contain;
}

.dialog-copy {
  display: grid;
  align-content: center;
  padding: 45px;
}

.dialog-copy small,
.bundle-dialog-header small {
  color: var(--red);
  font-weight: 800;
  letter-spacing: .1em;
}

.dialog-copy h2 {
  margin: 8px 0 25px;
  font-size: 38px;
}

.bundle-dialog {
  padding: 30px;
}

.bundle-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 45px 24px 0;
  border-bottom: 1px solid var(--line);
}

.bundle-dialog-header h2 {
  margin: 5px 0 0;
  font-size: 36px;
}

.bundle-dialog-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  overflow: auto;
  max-height: calc(100vh - 190px);
}

.bundle-detail-item .skin-art {
  height: 155px;
}

@media (max-width: 1050px) {
  .live-night-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-dialog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shop-tabs.four-tabs { grid-template-columns: repeat(4, 1fr); }
  .header-refresh { width: 48px; }
  .connection-banner button { display: none; }
  .live-night-grid { grid-template-columns: 1fr; }
  .item-dialog[open] { display: block; }
  .dialog-visual { min-height: 280px; }
  .dialog-copy { padding: 28px; }
  .bundle-dialog { padding: 18px; }
  .bundle-dialog-items { grid-template-columns: 1fr; }
  .bundle-arrow { width: 34px; height: 52px; }
}


/* V8 accurate bundle pricing, variants and levels */
.connection-banner {
  display: none !important;
}

.bundle-discount-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,70,85,.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
}

.bundle-discount-label.free {
  color: #07111b;
  background: #64e2bc;
}

.skin-detail-dialog {
  width: min(1220px, calc(100% - 28px));
  overflow: hidden;
}

.dialog-backdrop-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  filter: saturate(1.18);
  opacity: .42;
}

.skin-detail-main {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(520px, 1.28fr);
  position: relative;
}

.skin-detail-main .dialog-copy {
  align-content: start;
  padding: 60px 35px 35px 45px;
  background: linear-gradient(90deg, rgba(4,11,18,.98), rgba(4,11,18,.6), transparent);
}

.dialog-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.dialog-tier-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.dialog-tier-name {
  display: block;
  margin-top: -16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.skin-detail-main .dialog-visual {
  min-height: 560px;
  padding: 40px 45px;
  background: radial-gradient(circle at center, rgba(37,121,150,.2), transparent 58%);
}

.skin-detail-main .dialog-visual img,
.skin-detail-main .dialog-visual video {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 24px 22px rgba(0,0,0,.6));
}

.skin-detail-main .dialog-visual video {
  background: rgba(0,0,0,.35);
}

.skin-options {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.skin-option-section {
  padding: 19px 25px 23px;
  background: rgba(4,12,19,.96);
}

.skin-option-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.skin-option-section header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}

.skin-option-section header strong {
  color: #fff;
  font-size: 13px;
}

.variant-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 3px 8px;
}

.variant-button {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  color: #fff;
  background: #0a1823;
  cursor: pointer;
}

.variant-button.active {
  border-color: #52e3ca;
  box-shadow: 0 0 0 2px rgba(82,227,202,.24);
}

.variant-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.level-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 3px 8px;
}

.level-button {
  min-width: 180px;
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: #fff;
  background: #0a1823;
  text-align: left;
  cursor: pointer;
}

.level-button.active {
  border-color: #52e3ca;
  background: rgba(82,227,202,.08);
}

.level-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #586a77;
  transform: rotate(45deg);
  font-weight: 850;
}

.level-number::first-letter {
  transform: rotate(-45deg);
}

.level-copy {
  display: grid;
}

.level-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-copy small {
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 850px) {
  .skin-detail-main {
    grid-template-columns: 1fr;
  }

  .skin-detail-main .dialog-copy {
    padding: 55px 25px 10px;
    background: linear-gradient(rgba(4,11,18,.95), rgba(4,11,18,.45));
  }

  .skin-detail-main .dialog-visual {
    min-height: 330px;
    padding: 20px;
  }

  .skin-detail-main .dialog-visual img,
  .skin-detail-main .dialog-visual video {
    max-height: 300px;
  }
}


/* V9 compact desktop and full-bleed bundle presentation */
.live-skin-card {
  --tier-color: #2c8fa7;
  border-color: color-mix(in srgb, var(--tier-color) 70%, #263947);
  box-shadow:
    inset 0 2px 0 color-mix(in srgb, var(--tier-color) 82%, transparent),
    0 14px 30px rgba(0,0,0,.2);
}

.live-skin-card:hover {
  border-color: var(--tier-color);
  box-shadow:
    inset 0 3px 0 var(--tier-color),
    0 18px 38px color-mix(in srgb, var(--tier-color) 20%, transparent);
}

.live-skin-art {
  background:
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--tier-color) 42%, transparent),
      transparent 56%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--tier-color) 17%, #07111b),
      #0a141e 72%
    );
}

.live-skin-card .skin-footer {
  border-top: 1px solid color-mix(in srgb, var(--tier-color) 42%, #1e303d);
}

.live-accessory-card {
  --tier-color: #2c8fa7;
  border-color: color-mix(in srgb, var(--tier-color) 65%, #263947);
}

.live-accessory-card .accessory-art {
  background:
    radial-gradient(
      circle,
      color-mix(in srgb, var(--tier-color) 48%, transparent),
      transparent 65%
    ),
    linear-gradient(145deg, #0b1822, #101621);
}

.live-featured {
  isolation: isolate;
}

.live-featured .bundle-copy {
  position: relative;
  z-index: 5;
  width: min(43%, 620px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 44px 34px 64px;
  background:
    linear-gradient(
      90deg,
      rgba(3,10,17,.98) 0%,
      rgba(3,10,17,.88) 58%,
      rgba(3,10,17,.2) 88%,
      transparent 100%
    );
}

.live-featured .bundle-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
}

.live-featured .featured-bundle-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.live-featured .bundle-item-collage {
  position: absolute;
  inset: 0;
  width: 100%;
  padding-left: 38%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    radial-gradient(circle at 70% 50%, rgba(42,128,154,.24), transparent 55%);
}

.live-featured .bundle-item-collage img {
  max-height: 68%;
}

.live-featured .bundle-glow {
  z-index: 3;
  pointer-events: none;
}

.live-featured .bundle-pages {
  right: 50%;
  bottom: 12px;
  transform: translateX(50%);
}

.bundle-discount-label {
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 900px) and (min-height: 650px) {
  html,
  body.shop-app {
    height: 100%;
    overflow: hidden;
  }

  .app-header {
    height: 64px;
    min-height: 64px;
  }

  .app-brand {
    padding-inline: 22px;
  }

  .wallet-stat {
    min-width: 125px;
    padding-inline: 16px;
  }

  .profile-shortcut {
    min-width: 235px;
    padding-inline: 17px;
  }

  .app-main {
    width: min(1740px, calc(100% - 22px));
    height: calc(100vh - 64px);
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0 10px;
    overflow: hidden;
  }

  .shop-tabs {
    height: 64px;
    margin: 0;
    gap: 8px;
  }

  .shop-tab {
    min-height: 64px;
  }

  .shop-tab svg {
    width: 29px;
    height: 29px;
  }

  .tab-content {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  #panel-store.active {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(220px, 44%) minmax(250px, 56%);
    gap: 9px;
    overflow: hidden;
  }

  #panel-store .featured-bundle {
    min-height: 0;
    height: 100%;
    margin: 0;
  }

  #panel-store .content-box {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 39px minmax(0, 1fr);
    padding: 12px 14px 14px;
    overflow: hidden;
  }

  #panel-store .section-bar {
    height: 34px;
    margin: 0;
  }

  #panel-store .daily-grid {
    min-height: 0;
    height: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  #panel-store .skin-card {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 68px;
  }

  #panel-store .skin-art {
    height: auto;
    min-height: 0;
    padding: 12px 18px;
  }

  #panel-store .skin-art img {
    width: 92%;
    height: 100%;
    max-height: 145px;
  }

  #panel-store .skin-footer {
    min-height: 68px;
    padding: 12px 14px;
  }

  #panel-store .skin-footer strong {
    font-size: 14px;
  }

  #panel-store .item-price {
    font-size: 16px;
  }

  #panel-night-market.active,
  #panel-accessories.active,
  #panel-account.active {
    height: 100%;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
  }

  .live-featured .bundle-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(42px, 4.1vw, 70px);
  }

  .live-featured .bundle-kicker {
    margin-bottom: 8px;
  }

  .live-featured .bundle-price {
    font-size: 22px;
    padding: 8px 14px;
  }

  .live-featured .bundle-count {
    margin-block: 8px 3px;
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  .live-featured .bundle-copy {
    padding-block: 20px;
  }

  .live-featured .bundle-copy h1 {
    font-size: clamp(38px, 3.8vw, 58px);
  }

  #panel-store .skin-footer {
    min-height: 60px;
  }
}

@media (max-width: 899px) {
  .live-featured .bundle-copy {
    width: 100%;
    min-height: 235px;
    padding: 28px 24px;
    background:
      linear-gradient(
        90deg,
        rgba(3,10,17,.97),
        rgba(3,10,17,.66),
        rgba(3,10,17,.18)
      );
  }

  .live-featured .bundle-item-collage {
    padding-left: 18%;
  }
}


/* V10 layout, dynamic tier colors and media fallback */
:root {
  --shop-accent: #2c8fa7;
  --shop-wallpaper: none;
}

body.shop-app::before {
  content: "";
  position: fixed;
  inset: -48px;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2,8,14,.86), rgba(2,8,14,.97)),
    var(--shop-wallpaper);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.18);
  transform: scale(1.05);
  opacity: .72;
}

body.shop-app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--shop-accent) 22%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(4,12,20,.84), rgba(2,7,12,.94));
}

/* Header previously had four children but only three grid columns. */
.app-header {
  grid-template-columns: minmax(235px, 1fr) auto 58px minmax(220px, 280px);
  grid-template-rows: 1fr;
}

.app-brand,
.header-wallet,
.header-refresh,
.profile-shortcut {
  grid-row: 1;
  min-height: 0;
}

.profile-shortcut {
  min-width: 0;
  overflow: hidden;
}

.profile-copy {
  min-width: 0;
}

.profile-copy strong,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-featured .bundle-copy {
  width: min(41%, 560px);
  min-width: 330px;
}

.live-featured .bundle-copy h1 {
  max-width: 100%;
  margin-bottom: 8px;
  font-size: clamp(42px, 4.25vw, 68px);
  line-height: .9;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.live-featured .bundle-copy h1.long-title {
  font-size: clamp(34px, 3.45vw, 52px);
  line-height: .94;
}

.live-featured .bundle-copy h1.very-long-title {
  font-size: clamp(29px, 2.9vw, 43px);
}

.bundle-subtitle {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Strong, game-like rarity backgrounds with a blurred copy of the skin. */
.live-skin-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 45%, rgba(var(--tier-rgb, 44,143,167), .42), transparent 58%),
    linear-gradient(145deg, rgba(var(--tier-rgb, 44,143,167), .23), #07131d 72%);
}

.live-skin-art::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: -2;
  background-image: var(--skin-image, none);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: blur(30px) saturate(1.35);
  opacity: .24;
  transform: scale(1.28);
}

.live-skin-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(var(--tier-rgb, 44,143,167), .19), transparent 48%),
    repeating-linear-gradient(135deg, transparent 0 42px, rgba(255,255,255,.018) 42px 43px);
}

.live-skin-card {
  border-color: rgba(var(--tier-rgb, 44,143,167), .78);
  box-shadow:
    inset 0 3px 0 rgba(var(--tier-rgb, 44,143,167), .96),
    0 13px 32px rgba(0,0,0,.22);
}

.live-skin-card:hover {
  border-color: var(--tier-color);
  box-shadow:
    inset 0 4px 0 var(--tier-color),
    0 18px 42px rgba(var(--tier-rgb, 44,143,167), .23);
}

.tier-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid rgba(var(--tier-rgb, 44,143,167), .72);
  color: #f7fbfd;
  background: rgba(2,9,15,.67);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Fix the gray second column: the old generic dialog grid must not apply. */
.skin-detail-dialog[open] {
  display: block !important;
  grid-template-columns: none !important;
}

.skin-detail-dialog {
  --detail-tier: #2c8fa7;
  --detail-tier-rgb: 44,143,167;
  --detail-image: none;
  width: min(1180px, calc(100% - 28px));
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  border-color: rgba(var(--detail-tier-rgb), .72);
  background:
    radial-gradient(circle at 72% 42%, rgba(var(--detail-tier-rgb), .22), transparent 40%),
    #06111b;
  scrollbar-width: thin;
}

.skin-detail-main {
  width: 100%;
  min-height: min(560px, calc(100vh - 210px));
  grid-template-columns: minmax(270px, .64fr) minmax(0, 1.36fr);
  overflow: hidden;
}

.dialog-backdrop-art {
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(1px) saturate(1.18);
  opacity: .30;
}

.skin-detail-main,
.skin-options,
.dialog-close {
  position: relative;
  z-index: 2;
}

.skin-detail-main .dialog-copy {
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(3,10,17,.98), rgba(3,10,17,.76), transparent),
    linear-gradient(180deg, rgba(var(--detail-tier-rgb), .12), transparent 50%);
}

.skin-detail-main .dialog-visual {
  min-width: 0;
  background:
    radial-gradient(circle at center, rgba(var(--detail-tier-rgb), .32), transparent 54%),
    linear-gradient(135deg, rgba(var(--detail-tier-rgb), .09), transparent 68%);
}

.skin-detail-main .dialog-visual img,
.skin-detail-main .dialog-visual video {
  max-width: 100%;
  object-fit: contain;
}

.skin-option-section {
  border-top: 1px solid rgba(var(--detail-tier-rgb), .30);
}

.variant-button.active,
.level-button.active {
  border-color: var(--detail-tier);
  box-shadow: 0 0 0 2px rgba(var(--detail-tier-rgb), .25);
}

@media (max-width: 1250px) {
  .app-header {
    grid-template-columns: minmax(210px, 1fr) auto 52px minmax(185px, 230px);
  }
  .header-wallet {
    order: 0;
    grid-column: auto;
    border-top: 0;
  }
  .header-wallet {
    order: 0;
    grid-column: auto;
    border-top: 0;
  }
  .wallet-stat {
    min-width: 105px;
    padding-inline: 12px;
  }
  .live-featured .bundle-copy {
    width: min(46%, 520px);
    min-width: 300px;
    padding-left: 50px;
  }
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: minmax(190px, 1fr) 52px minmax(80px, auto);
  }
  .header-wallet {
    display: none;
  }
  .header-refresh {
    grid-column: 2;
  }
  .profile-shortcut {
    grid-column: 3;
  }
  .live-featured .bundle-copy {
    width: min(58%, 500px);
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) 48px 58px;
  }
  .live-featured .bundle-copy {
    min-width: 0;
    width: 100%;
  }
  .skin-detail-dialog {
    max-height: calc(100vh - 12px);
  }
  .skin-detail-main {
    grid-template-columns: 1fr;
  }
}


/* v11 stronger per-skin color backgrounds in the overview cards */
.live-skin-card {
  background:
    linear-gradient(180deg, rgba(var(--tier-rgb, 44,143,167), .10), rgba(3,10,17,.98) 32%),
    #040d15;
}

.live-skin-art {
  background:
    radial-gradient(circle at 52% 45%, rgba(var(--tier-rgb, 44,143,167), .62), transparent 56%),
    linear-gradient(145deg, rgba(var(--tier-rgb, 44,143,167), .34), #07131d 72%);
}

.live-skin-art::before {
  inset: -22%;
  filter: blur(24px) saturate(1.5);
  opacity: .42;
  transform: scale(1.22);
}

.live-skin-art::after {
  background:
    linear-gradient(120deg, rgba(var(--tier-rgb, 44,143,167), .27), transparent 48%),
    radial-gradient(circle at center, rgba(255,255,255,.05), transparent 58%),
    repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,.022) 40px 41px);
}

.live-skin-art img {
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.42));
}

/* v11 selected skin/variant artwork also colors the detail stage */
.skin-detail-main .dialog-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(var(--detail-tier-rgb), .34), transparent 54%),
    linear-gradient(135deg, rgba(var(--detail-tier-rgb), .12), transparent 68%);
}

.skin-detail-main .dialog-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--detail-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 120% auto;
  opacity: .18;
  filter: blur(18px) saturate(1.35);
  transform: scale(1.1);
}

.skin-detail-main .dialog-visual img,
.skin-detail-main .dialog-visual video {
  position: relative;
  z-index: 1;
}


/* v12 use the same skin artwork/backdrop feeling in daily offer cards */
.live-skin-art {
  background:
    linear-gradient(180deg, rgba(3,10,17,.08), rgba(3,10,17,.28)),
    radial-gradient(circle at 52% 45%, rgba(var(--tier-rgb, 44,143,167), .28), transparent 62%),
    linear-gradient(145deg, rgba(var(--tier-rgb, 44,143,167), .18), rgba(7,19,29,.56) 72%),
    var(--skin-backdrop, none) center center / cover no-repeat,
    #07131d;
}

.live-skin-art::before {
  background-image: var(--skin-backdrop, var(--skin-image, none));
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.25);
  opacity: .34;
  transform: scale(1.18);
}

.live-skin-art::after {
  background:
    linear-gradient(120deg, rgba(var(--tier-rgb, 44,143,167), .14), transparent 48%),
    radial-gradient(circle at center, rgba(255,255,255,.04), transparent 58%),
    repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,.018) 40px 41px);
}

.live-skin-art img {
  position: relative;
  z-index: 1;
}


/* v13 card backdrop: use the same blown-up skin artwork feeling as the detail dialog */
.live-skin-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.live-skin-art .skin-art-backdrop {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 160%;
  opacity: .48;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.08);
}

.live-skin-art::before,
.live-skin-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.live-skin-art::before {
  z-index: 0;
  background:
    radial-gradient(circle at 52% 45%, rgba(var(--tier-rgb, 44,143,167), .24), transparent 58%),
    linear-gradient(145deg, rgba(var(--tier-rgb, 44,143,167), .14), rgba(7,19,29,.40) 72%);
}

.live-skin-art::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,11,18,.08), rgba(4,11,18,.22)),
    repeating-linear-gradient(135deg, transparent 0 42px, rgba(255,255,255,.022) 42px 43px);
}

.live-skin-art .tier-chip,
.live-skin-art img,
.live-skin-art .missing-art {
  position: relative;
  z-index: 2;
}

.live-skin-art img {
  filter: drop-shadow(0 18px 16px rgba(0,0,0,.52));
}


/* V14: exact VALORANT content-tier cards */
.live-skin-card {
  background: #020b12;
}

.live-skin-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      132deg,
      rgba(var(--tier-rgb, 44,143,167), .92) 0%,
      rgba(var(--tier-rgb, 44,143,167), .62) 42%,
      rgba(var(--tier-rgb, 44,143,167), .28) 70%,
      #07131d 100%
    );
}

.live-skin-art .skin-art-backdrop {
  display: none !important;
}

.live-skin-art::before {
  content: '';
  position: absolute;
  inset: -22% -8%;
  z-index: 0;
  background-image: var(--tier-icon, none);
  background-position: 14% 50%;
  background-repeat: no-repeat;
  background-size: min(62%, 245px);
  opacity: .20;
  filter: brightness(1.45) contrast(1.08);
  transform: rotate(-7deg);
}

.live-skin-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(2,8,14,.08), transparent 45%, rgba(2,8,14,.24)),
    repeating-linear-gradient(135deg, transparent 0 48px, rgba(255,255,255,.035) 48px 49px);
  pointer-events: none;
}

.live-skin-art img {
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 18px 16px rgba(0,0,0,.58))
    drop-shadow(0 0 16px rgba(255,255,255,.08));
}

.live-skin-card .skin-footer {
  border-top-color: rgba(var(--tier-rgb, 44,143,167), .68);
  background:
    linear-gradient(90deg, rgba(var(--tier-rgb, 44,143,167), .10), transparent 55%),
    #020b12;
}

/* Keep the edition label at the original top-right position. */
.live-skin-art .tier-chip {
  position: absolute !important;
  inset: 10px 10px auto auto !important;
  z-index: 6 !important;
  margin: 0 !important;
  transform: none !important;
  justify-self: auto !important;
  align-self: auto !important;
  border-color: rgba(255,255,255,.52);
  background: rgba(2,8,14,.72);
}

/* V14: Riot-inspired connected account selector */
.accounts-list-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18,34,47,.95), rgba(5,14,22,.98));
}

.accounts-list-card::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -90px;
  border: 1px solid rgba(255,70,85,.14);
  transform: rotate(45deg);
}

.accounts-list-card header,
.account-list {
  position: relative;
  z-index: 1;
}

.account-list {
  gap: 12px;
}

.riot-account-row {
  --account-art: none;
  position: relative;
  min-height: 86px;
  width: 100%;
  display: grid;
  grid-template-columns: 5px 58px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 11px 13px 11px 0;
  border: 1px solid #2a3b48;
  color: #eef3f6;
  background:
    linear-gradient(90deg, rgba(8,20,30,.97), rgba(8,20,30,.88)),
    var(--account-art) center / cover no-repeat;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.riot-account-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--account-art);
  background-position: center 28%;
  background-size: cover;
  opacity: .14;
  filter: blur(2px) saturate(1.3);
}

.riot-account-row::after {
  content: '';
  position: absolute;
  right: -36px;
  bottom: -58px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255,255,255,.06);
  transform: rotate(45deg);
}

.riot-account-row > * {
  position: relative;
  z-index: 1;
}

.riot-account-row:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #607585;
}

.riot-account-row.active {
  border-color: rgba(255,70,85,.72);
  background:
    linear-gradient(90deg, rgba(35,9,17,.96), rgba(12,21,30,.90)),
    var(--account-art) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,70,85,.10);
}

.riot-account-edge {
  width: 5px;
  height: calc(100% + 22px);
  background: #536674;
}

.riot-account-row.active .riot-account-edge {
  background: var(--red);
  box-shadow: 4px 0 18px rgba(255,70,85,.35);
}

.riot-account-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #435865;
  border-radius: 3px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,70,85,.70), rgba(57,23,45,.92));
  font-size: 15px;
  font-weight: 900;
}

.riot-account-row.active .riot-account-avatar {
  border-color: var(--red);
}

.riot-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.riot-account-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.riot-account-upper,
.riot-account-lower {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.riot-account-upper strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riot-account-badge,
.riot-account-meta {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid #405461;
  color: #91a3af;
  background: rgba(2,9,15,.50);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.riot-account-row.session-live .riot-account-badge {
  border-color: rgba(66,220,177,.55);
  color: #72e8c3;
}

.riot-account-row.session-reconnect .riot-account-badge {
  border-color: rgba(255,190,80,.52);
  color: #ffd06d;
}

.riot-account-lower small {
  overflow: hidden;
  color: #9aabb6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riot-account-state {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #405461;
  transform: rotate(45deg);
}

.riot-account-state svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #aebbc4;
  stroke-width: 2;
  transform: rotate(-45deg);
}

.riot-account-row.active .riot-account-state {
  border-color: var(--red);
  background: rgba(255,70,85,.10);
}

.riot-account-row.active .riot-account-state svg {
  stroke: var(--red);
}

.riot-account-empty {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px dashed #344955;
  color: #9aaab4;
}

.riot-account-empty-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,70,85,.65);
  color: var(--red);
  font-weight: 900;
  transform: rotate(45deg);
}

.riot-account-empty-mark::first-letter {
  transform: rotate(-45deg);
}

.riot-account-empty div {
  display: grid;
  gap: 4px;
}

.riot-account-empty strong {
  color: #fff;
}

@media (max-width: 620px) {
  .riot-account-row {
    grid-template-columns: 4px 48px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .riot-account-avatar {
    width: 46px;
    height: 46px;
  }

  .riot-account-meta {
    display: none;
  }
}


/* =====================================================================
   V16 MOBILE UI
   A dedicated touch-first layout. Desktop rules remain unchanged.
   ===================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
a,
summary,
select,
textarea {
  touch-action: manipulation;
}

html.dialog-open,
html.dialog-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (max-width: 920px) {
  :root {
    --mobile-nav-height: 66px;
    --mobile-header-height: 100px;
  }

  html {
    min-height: 100%;
    background: #040b12;
    overscroll-behavior-y: none;
  }

  body.shop-app {
    min-height: 100svh;
    padding: 0 0 calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    overflow-x: hidden;
    background: #050d15;
    -webkit-tap-highlight-color: transparent;
  }

  /* Keep a lightweight visual background without an expensive mobile blur. */
  body.shop-app::before {
    inset: 0;
    background-image:
      linear-gradient(180deg, rgba(3,10,17,.80), rgba(3,10,17,.96)),
      var(--shop-wallpaper);
    background-position: center top;
    background-size: cover;
    filter: none;
    transform: none;
    opacity: .38;
  }

  body.shop-app::after {
    background:
      radial-gradient(circle at 75% 8%, color-mix(in srgb, var(--shop-accent) 18%, transparent), transparent 35%),
      linear-gradient(180deg, rgba(4,12,20,.70), rgba(2,7,12,.94));
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    min-height: var(--mobile-header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 54px;
    grid-template-rows: 56px 44px;
    align-items: stretch;
    background: rgba(3,10,17,.96);
    border-bottom: 1px solid #263744;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    backdrop-filter: none;
  }

  .app-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 56px;
    gap: 8px;
    padding: 0 12px;
    font-size: 14px;
  }

  .app-brand img {
    width: 32px;
    height: 32px;
  }

  .app-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-refresh {
    grid-column: 2;
    grid-row: 1;
    width: 48px;
    min-height: 56px;
    border-left: 1px solid var(--line-soft);
    font-size: 24px;
  }

  .profile-shortcut {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    width: 54px;
    min-height: 56px;
    display: grid;
    grid-template-columns: 38px;
    place-content: center;
    padding: 0;
    border-left: 1px solid var(--line-soft);
  }

  .profile-avatar {
    width: 38px;
    height: 38px;
  }

  .profile-copy,
  .profile-chevron {
    display: none !important;
  }

  .header-wallet {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    min-height: 44px;
    border-top: 1px solid var(--line-soft);
    overflow: hidden;
  }

  .wallet-stat {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    gap: 7px;
    padding: 0 6px;
    border-left: 1px solid var(--line-soft);
  }

  .wallet-stat:first-child {
    border-left: 0;
  }

  .wallet-stat small {
    display: none;
  }

  .wallet-stat strong {
    font-size: 14px;
    line-height: 1;
  }

  .currency-symbol,
  .wallet-stat .currency-symbol {
    width: 22px;
    height: 22px;
    border-width: 1px;
    font-size: 10px;
  }

  .app-main {
    width: 100%;
    min-height: calc(100svh - var(--mobile-header-height));
    margin: 0;
    padding: 8px 8px 12px;
    overflow: visible;
  }

  .tab-content,
  .tab-panel,
  #panel-store.active,
  #panel-night-market.active,
  #panel-accessories.active,
  #panel-account.active {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  /* Bottom mobile navigation. */
  .shop-tabs,
  .shop-tabs.four-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    border-top: 1px solid #31404d;
    background: rgba(4,11,18,.98);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }

  .shop-tab {
    min-width: 0;
    min-height: var(--mobile-nav-height);
    display: grid;
    grid-template-rows: 28px 16px;
    place-content: center;
    gap: 3px;
    padding: 7px 2px;
    border: 0;
    border-right: 1px solid #1d2d39;
    background: transparent;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .035em;
  }

  .shop-tab:last-child {
    border-right: 0;
  }

  .shop-tab svg {
    width: 26px;
    height: 26px;
    margin: auto;
  }

  .shop-tab span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-tab.active {
    color: var(--red);
    background: linear-gradient(180deg, rgba(255,70,85,.12), rgba(255,70,85,.035));
  }

  .shop-tab.active::after {
    top: 0;
    right: 8px;
    bottom: auto;
    left: 8px;
    height: 3px;
  }

  /* Store hero becomes a compact full-width mobile card. */
  #storeContent {
    display: grid;
    gap: 8px;
  }

  .featured-bundle,
  .live-featured,
  #panel-store .featured-bundle {
    position: relative;
    width: 100%;
    height: clamp(250px, 40svh, 330px);
    min-height: 250px;
    display: block;
    margin: 0;
    overflow: hidden;
    border: 1px solid #344753;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
  }

  .live-featured .bundle-art,
  .bundle-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .live-featured .featured-bundle-image,
  .featured-bundle-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: none;
  }

  .live-featured .bundle-copy,
  .bundle-copy {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 44px 18px 18px;
    background:
      linear-gradient(90deg, rgba(3,10,17,.95) 0%, rgba(3,10,17,.72) 53%, rgba(3,10,17,.12) 100%),
      linear-gradient(0deg, rgba(3,10,17,.72), transparent 55%);
  }

  .live-featured .bundle-copy h1,
  .bundle-copy h1,
  .live-featured .bundle-copy h1.long-title,
  .live-featured .bundle-copy h1.very-long-title {
    max-width: min(78%, 330px);
    margin: 5px 0 7px;
    font-size: clamp(29px, 10vw, 43px);
    line-height: .93;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bundle-subtitle {
    max-width: 76%;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.1;
  }

  .bundle-kicker {
    margin: 0;
    gap: 8px;
    font-size: 10px;
  }

  .bundle-price {
    width: fit-content;
    padding: 6px 9px;
    font-size: 17px;
  }

  .bundle-count {
    max-width: 78%;
    margin: 7px 0 2px;
    font-size: 11px;
  }

  .bundle-open-label {
    font-size: 10px;
  }

  .bundle-arrow {
    top: 50%;
    width: 40px;
    height: 52px;
    font-size: 28px;
  }

  .bundle-arrow.previous { left: 0; }
  .bundle-arrow.next { right: 0; }

  .bundle-pages,
  .live-featured .bundle-pages {
    right: 50%;
    bottom: 8px;
    transform: translateX(50%);
  }

  .live-featured .bundle-item-collage {
    padding-left: 20%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Horizontal, touch-friendly offer carousel. */
  .content-box,
  #panel-store .content-box {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 11px 8px 12px;
    overflow: hidden;
    border: 1px solid #2d404d;
  }

  .section-bar,
  #panel-store .section-bar {
    height: auto;
    min-height: 34px;
    margin: 0 4px 8px;
  }

  .section-bar h2 {
    font-size: 17px;
  }

  .daily-grid,
  #panel-store .daily-grid,
  .night-grid,
  .live-night-grid {
    width: 100%;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 82vw);
    gap: 10px;
    padding: 1px 3px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 3px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .daily-grid::-webkit-scrollbar,
  .night-grid::-webkit-scrollbar,
  .variant-list::-webkit-scrollbar,
  .level-list::-webkit-scrollbar {
    display: none;
  }

  .skin-card,
  .live-skin-card,
  #panel-store .skin-card {
    min-width: 0;
    min-height: 245px;
    height: auto;
    display: grid;
    grid-template-rows: 170px 68px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    contain: layout paint;
    transition: none;
  }

  .skin-art,
  #panel-store .skin-art,
  .live-skin-art {
    height: 170px;
    min-height: 170px;
    padding: 10px 14px;
  }

  .live-skin-art::before {
    filter: blur(10px) saturate(1.12);
    opacity: .24;
  }

  .live-skin-art .skin-art-backdrop {
    filter: blur(6px) saturate(1.08);
    opacity: .32;
  }

  .skin-art img,
  #panel-store .skin-art img,
  .live-skin-art img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .skin-footer,
  #panel-store .skin-footer {
    min-height: 68px;
    padding: 10px 12px;
  }

  .skin-footer strong {
    max-width: 65%;
    font-size: 13px;
    line-height: 1.15;
  }

  .item-price {
    font-size: 15px;
  }

  .tier-chip {
    top: 8px;
    right: 8px;
    padding: 4px 6px;
    backdrop-filter: none;
    font-size: 8px;
  }

  /* Other tabs. */
  .page-heading {
    min-height: 72px;
    margin-bottom: 8px;
    padding: 13px 14px;
    align-items: flex-start;
    flex-direction: row;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-heading time {
    margin-left: auto;
    font-size: 13px;
  }

  .empty-state,
  .compact-empty,
  .loading-state {
    min-height: 55svh;
    padding: 24px 16px;
  }

  .accessory-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .accessory-card,
  .live-accessory-card {
    min-height: 106px;
    grid-template-columns: 104px minmax(0, 1fr);
    contain: layout paint;
  }

  .accessory-art {
    min-height: 104px;
  }

  .accessory-art img {
    max-width: 88px;
    max-height: 88px;
  }

  .accessory-copy {
    padding: 12px;
  }

  .accessory-copy h2 {
    font-size: 18px;
  }

  /* Mobile account screen. */
  .account-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .account-card,
  .accounts-list-card {
    min-height: 0;
    padding: 16px;
  }

  .account-title {
    gap: 12px;
  }

  .account-big-avatar {
    width: 62px;
    height: 62px;
  }

  .account-title h1 {
    max-width: calc(100vw - 120px);
    font-size: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-title small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .account-wallet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: 18px;
  }

  .account-wallet-grid > div {
    min-width: 0;
    min-height: 82px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 9px 4px;
    text-align: center;
  }

  .account-wallet-grid small {
    min-height: 22px;
    font-size: 8px;
    line-height: 1.2;
  }

  .account-wallet-grid strong {
    font-size: 18px;
  }

  .account-actions {
    gap: 8px;
  }

  .action-button,
  .advanced-token-button,
  .advanced-login-link {
    min-height: 48px;
  }

  .advanced-signin-body {
    padding: 12px;
  }

  .advanced-signin-body textarea {
    min-height: 112px;
    font-size: 12px;
  }

  .accounts-list-card header {
    margin-bottom: 10px;
  }

  .riot-account-row {
    grid-template-columns: 4px 48px minmax(0, 1fr) 36px;
    min-height: 78px;
    gap: 9px;
    padding: 10px 9px 10px 0;
  }

  .riot-account-avatar {
    width: 46px;
    height: 46px;
  }

  .riot-account-upper {
    align-items: flex-start;
  }

  .riot-account-upper strong {
    max-width: 100%;
    font-size: 14px;
  }

  .riot-account-badge {
    font-size: 8px;
  }

  .riot-account-lower small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
  }

  .riot-account-meta {
    display: none;
  }

  .riot-account-state {
    width: 32px;
    height: 32px;
  }

  .legal-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .legal-strip a {
    flex: 0 0 auto;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0 14px;
  }

  /* Full-screen touch dialogs. */
  .skin-detail-dialog,
  .bundle-dialog,
  .item-dialog {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: #06111b;
    -webkit-overflow-scrolling: touch;
  }

  .skin-detail-dialog::backdrop,
  .bundle-dialog::backdrop,
  .item-dialog::backdrop {
    background: #02070c;
    backdrop-filter: none;
  }

  .dialog-close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    z-index: 150;
    width: 46px;
    height: 46px;
    border: 1px solid #526672;
    background: rgba(3,10,17,.94);
  }

  .dialog-backdrop-art {
    filter: none;
    opacity: .18;
  }

  .skin-detail-main {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .skin-detail-main .dialog-copy {
    order: 1;
    min-height: 150px;
    padding: calc(56px + env(safe-area-inset-top)) 64px 14px 18px;
    background:
      linear-gradient(180deg, rgba(3,10,17,.98), rgba(3,10,17,.82)),
      linear-gradient(90deg, rgba(var(--detail-tier-rgb), .16), transparent);
  }

  .dialog-heading-row {
    gap: 10px;
  }

  .dialog-tier-icon {
    width: 39px;
    height: 39px;
  }

  .dialog-copy h2 {
    margin: 5px 0 18px;
    font-size: clamp(27px, 9vw, 38px);
    line-height: 1;
  }

  .dialog-tier-name {
    margin-top: -11px;
    font-size: 10px;
  }

  .skin-detail-main .dialog-visual {
    order: 2;
    width: 100%;
    min-height: 280px;
    height: clamp(300px, 43svh, 430px);
    padding: 10px 14px 18px;
  }

  .skin-detail-main .dialog-visual::before {
    filter: blur(8px) saturate(1.1);
    opacity: .14;
  }

  .skin-detail-main .dialog-visual img,
  .skin-detail-main .dialog-visual video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .skin-options {
    display: block;
  }

  .skin-option-section {
    padding: 15px 14px 18px;
  }

  .skin-option-section header {
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .skin-option-section header strong {
    max-width: 54%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .variant-list,
  .level-list {
    gap: 8px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .variant-button {
    width: 68px;
    height: 68px;
    scroll-snap-align: start;
  }

  .level-button {
    min-width: min(220px, 76vw);
    min-height: 62px;
    scroll-snap-align: start;
  }

  .bundle-dialog {
    padding: calc(58px + env(safe-area-inset-top)) 12px 20px;
  }

  .bundle-dialog-header {
    align-items: flex-start;
    padding: 0 48px 16px 0;
  }

  .bundle-dialog-header h2 {
    font-size: 28px;
  }

  .bundle-dialog-items {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .bundle-detail-item .skin-art {
    height: 170px;
  }

  .toast {
    right: 10px;
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 10px);
    left: 10px;
    max-width: none;
  }

  /* Mobile performance: no desktop hover animation or backdrop filters. */
  .live-skin-card,
  .shop-tab,
  .profile-shortcut,
  .action-button,
  .riot-account-row {
    transition: none;
  }

  .live-skin-card:hover,
  .shop-tab:hover,
  .profile-shortcut:hover,
  .riot-account-row:hover {
    transform: none;
  }

  .tier-chip,
  .profile-shortcut,
  .shop-tabs {
    backdrop-filter: none;
  }
}

@media (min-width: 541px) and (max-width: 920px) {
  .daily-grid,
  #panel-store .daily-grid,
  .night-grid,
  .live-night-grid {
    grid-auto-columns: minmax(260px, 46vw);
  }

  .accessory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .app-brand span {
    font-size: 12px;
  }

  .shop-tab {
    font-size: 8px;
  }

  .live-featured .bundle-copy h1,
  .bundle-copy h1 {
    font-size: 28px;
  }

  .daily-grid,
  #panel-store .daily-grid,
  .night-grid,
  .live-night-grid {
    grid-auto-columns: 86vw;
  }

  .account-wallet-grid small {
    font-size: 7px;
  }
}

@media (max-width: 920px) and (orientation: landscape) and (max-height: 560px) {
  :root {
    --mobile-header-height: 52px;
    --mobile-nav-height: 56px;
  }

  .app-header {
    min-height: 52px;
    grid-template-rows: 52px;
  }

  .header-wallet {
    display: none;
  }

  .app-brand,
  .header-refresh,
  .profile-shortcut {
    min-height: 52px;
  }

  .featured-bundle,
  .live-featured,
  #panel-store .featured-bundle {
    height: 240px;
    min-height: 240px;
  }

  .daily-grid,
  #panel-store .daily-grid,
  .night-grid,
  .live-night-grid {
    grid-auto-columns: minmax(240px, 43vw);
  }

  .skin-detail-main {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  }

  .skin-detail-main .dialog-copy {
    order: initial;
    min-height: 100dvh;
    padding-top: calc(64px + env(safe-area-inset-top));
  }

  .skin-detail-main .dialog-visual {
    order: initial;
    height: 100dvh;
    min-height: 100dvh;
  }
}

@media (hover: none) and (pointer: coarse) {
  .live-skin-card:hover,
  .shop-tab:hover,
  .action-button:hover,
  .riot-account-row:hover {
    transform: none;
    box-shadow: none;
  }
}
