/* Void Arcade — shared platform styles for index.html and ship.html.
   Extracted 2026-09-10: every rule here was byte-identical in both pages'
   main <style> blocks. Loaded BEFORE each page's inline <style>, in the
   pages' original order, so the cascade is unchanged; the extractor keeps any
   rule inline whose position relative to a page-specific rule could matter. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body.mobile-modal-lock,
body.game-page-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 200200;
  display: grid;
  place-items: end end;
  background: #05080f;
  opacity: 1;
  transition: opacity 0.38s ease;
  pointer-events: all;
  padding: 48px 56px calc(48px + env(safe-area-inset-bottom, 0px));
}

.boot-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-loader-shell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0;
  transform: none;
}

.boot-loader-logo-wrap {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  height: 210px;
  pointer-events: none;
  overflow: visible;
  animation: bootLogoPulse 2.2s ease-in-out infinite;
  display: none;
}

.boot-loader-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(182, 128, 255, 0.18) 0%, rgba(166, 112, 246, 0.1) 34%, rgba(132, 86, 224, 0.05) 58%, rgba(72, 42, 146, 0) 80%);
  filter: blur(24px);
  opacity: 0.48;
  pointer-events: none;
}

.boot-loader-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(130, 196, 255, 0.17));
  pointer-events: none;
}

.boot-loader.boot-logo-ready .boot-loader-logo-wrap {
  display: block;
}

.boot-loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(132, 112, 192, 0.26);
  border-top-color: rgba(188, 140, 255, 0.95);
  border-right-color: rgba(146, 112, 242, 0.84);
  box-shadow: 0 0 20px rgba(160, 118, 246, 0.2);
  animation: bootSpin 1s linear infinite;
  position: relative;
}

.boot-loader-spinner::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(184, 168, 236, 0.26);
  border-bottom-color: rgba(198, 156, 255, 0.86);
  animation: bootSpinReverse 1.45s linear infinite;
}

.boot-loader-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(224, 218, 255, 0.96);
  text-shadow: 0 0 12px rgba(174, 138, 246, 0.36);
  text-align: right;
}

@media (max-width: 860px) {

  .boot-loader {
    place-items: end center;
    padding: 18px 14px calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .boot-loader-shell {
    justify-content: center;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .boot-loader-logo-wrap {
    width: 148px;
    height: 148px;
  }

  .boot-loader-logo-wrap::before {
    inset: -42%;
    filter: blur(30px);
    opacity: 0.54;
  }

  .boot-loader-spinner {
    width: 52px;
    height: 52px;
  }

  .boot-loader-spinner::after {
    inset: 8px;
  }

  .boot-loader-text {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(228, 222, 255, 0.97);
    text-shadow: 0 0 14px rgba(174, 136, 248, 0.38);
    margin-bottom: 2px;
    transform: translateY(-54px);
  }

}

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

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

@keyframes bootLogoPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
  50% { transform: translate(-50%, -50%) scale(1.008); opacity: 0.98; }
}

#starsNearBg { opacity: 1; }

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.logo-text span {
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.arcade-header {
  justify-content: space-between;
  gap: 16px;
}

.arcade-header .header-right {
  margin-left: auto;
}

.arcade-back-icon {
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.9;
}

.arcade-back-ship-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 0 8px rgba(132, 198, 255, 0.45));
  transform-origin: 50% 70%;
}

.arcade-back-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-4px);
  transition: opacity 0.14s ease, max-width 0.18s ease, transform 0.14s ease;
  pointer-events: none;
}

.arcade-back-btn:hover .arcade-back-label,
.arcade-back-btn:focus-visible .arcade-back-label {
  opacity: 1;
  max-width: 180px;
  transform: translateX(0);
}

.arcade-back-btn:hover .arcade-back-ship-icon,
.arcade-back-btn:focus-visible .arcade-back-ship-icon {
  animation: shipButtonJiggle 0.58s ease-in-out infinite;
}

@keyframes shipButtonJiggle {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(0.9px) rotate(1.4deg); }
  50% { transform: translateX(-0.8px) rotate(-1.3deg); }
  75% { transform: translateX(0.7px) rotate(1deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.header-collapsible {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 1025px) {

  .header-collapsible .xp-chip {
    order: 2;
    margin-left: 8px;
  }

}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(200, 215, 240, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-btn:hover span {
  background: var(--text-bright);
}

header.nav-open .hamburger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

header.nav-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

header.nav-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

  .logo-img {
    height: 34px;
  }

  .logo-text {
    font-size: 22px;
    letter-spacing: 0.14em;
  }

  .header-collapsible {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 11, 18, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 200;
    padding: 12px 16px 16px;
  }

  .arcade-header .header-collapsible {
    display: flex !important;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .arcade-header .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  header.nav-open .header-collapsible {
    display: flex;
  }

  .header-collapsible .xp-chip {
    order: 1;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  .header-collapsible .nav-links .nav-link {
    padding: 8px 4px;
    height: auto;
    font-size: 12px;
  }

  .header-collapsible .nav-links .nav-auth:not(.hidden) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 4px;
    width: 100%;
  }

  .header-collapsible .nav-links .nav-auth .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .header-collapsible .nav-links .nav-auth.hidden {
    display: none;
  }

  .arcade-header .header-collapsible .xp-chip {
    order: 0;
    width: auto;
    margin: 0;
  }

  .arcade-header .header-collapsible .nav-links {
    order: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .arcade-header .header-collapsible .nav-links .nav-auth:not(.hidden) {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    width: auto;
  }

  .arcade-header .header-collapsible .nav-links .nav-auth .nav-link {
    width: auto;
    padding: 0;
  }

  .arcade-header .header-collapsible .nav-links > * {
    border-bottom: 0;
  }

  .header-collapsible .nav-tab.active::after {
    display: none;
  }

  .header-collapsible .nav-links > * {
    border-bottom: 1px solid rgba(140, 160, 200, 0.1);
  }

  .header-collapsible .nav-links > *:last-child {
    border-bottom: none;
  }

}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link:hover {
  color: var(--text-bright);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.nav-link:disabled,
.nav-link.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: rgba(180, 190, 210, 0.6);
}

.nav-tab {
  position: relative;
}

.nav-tab.active {
  color: var(--genre-runner);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--genre-runner);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-dot {
  color: rgba(140, 160, 200, 0.5);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.nav-auth.hidden {
  display: none;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

.shop-tab-trigger.loaded {
  opacity: 1;
  pointer-events: auto;
}

.shop-tab-trigger:hover .shop-tab-wallet,
.shop-tab-trigger:focus-visible .shop-tab-wallet {
  color: rgba(246, 252, 255, 0.99);
  text-shadow: 0 0 12px rgba(162, 214, 255, 0.36);
  filter: brightness(1.08);
}

.shop-tab-token-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.play-credit-chip.is-empty {
  background: rgba(255, 106, 106, 0.12);
  border-color: rgba(255, 106, 106, 0.42);
  color: rgba(255, 194, 194, 0.98);
}

.play-credit-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.shop-tab-divider {
  width: 1px;
  height: 18px;
  background: rgba(140, 160, 200, 0.4);
  flex: 0 0 auto;
}

.shop-tab-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

.xp-chip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(124, 168, 238, 0.34);
  background: linear-gradient(135deg, rgba(30, 52, 92, 0.74), rgba(18, 30, 56, 0.78));
  box-shadow: 0 8px 20px rgba(12, 26, 52, 0.42);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}

.xp-chip.loaded {
  opacity: 1;
  pointer-events: auto;
}

.xp-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(162, 202, 255, 0.62);
  box-shadow: 0 12px 24px rgba(24, 50, 94, 0.46);
}

.xp-chip.disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

.xp-chip .rank-badge {
  width: 34px;
  height: 34px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.xp-chip .rank-badge .level-rank-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(120, 180, 255, 0.55));
}

.xp-chip .xp-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 210px;
  min-width: 0;
}

.xp-chip .xp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.xp-chip .xp-rank {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xp-chip .xp-nums {
  font-size: 10px;
  color: rgba(178, 198, 230, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp-chip .xp-bar {
  position: relative;
  width: 100%;
  min-width: 120px;
  height: 12px;
  border-radius: 999px;
  background: rgba(80, 110, 160, 0.4);
  overflow: hidden;
}

.xp-chip .xp-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(116, 184, 255, 0.96);
  box-shadow: 0 0 12px rgba(116, 184, 255, 0.72);
  transition: width 0.3s ease;
}

.token-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.token-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
}

.token-plus {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 2px;
}

#profileLinks {
  position: relative;
}

.profile-btn-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
}

.profile-btn:hover {
  color: rgba(180, 210, 255, 0.9);
  border-color: rgba(150, 206, 255, 0.5);
  text-shadow: none;
  background: linear-gradient(135deg, rgba(48, 76, 120, 0.6), rgba(24, 36, 62, 0.62));
  box-shadow: 0 12px 26px rgba(18, 44, 86, 0.35), 0 0 14px rgba(88, 162, 255, 0.16);
  transform: translateY(-1px);
}

.profile-signout-inline {
  display: none;
}

.profile-quick-panel.active {
  display: block;
}

.profile-quick-panel button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(221, 236, 255, 0.94);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-quick-panel button:hover {
  border-color: rgba(114, 198, 255, 0.46);
  background: rgba(42, 76, 126, 0.26);
  color: rgba(240, 249, 255, 0.98);
  transform: translateX(1px);
}

.profile-quick-panel .signout {
  margin-top: 8px;
  border-color: rgba(248, 138, 138, 0.28);
  color: rgba(255, 198, 198, 0.95);
  background: rgba(112, 24, 32, 0.18);
}

.profile-quick-panel .signout:hover {
  border-color: rgba(255, 154, 154, 0.52);
  background: rgba(142, 30, 38, 0.26);
  color: rgba(255, 228, 228, 0.98);
}

.profile-quick-hero {
  background: linear-gradient(145deg, rgba(36, 64, 116, 0.56), rgba(18, 32, 60, 0.56)) !important;
  border-color: rgba(120, 185, 255, 0.4) !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 14px 12px !important;
  margin-bottom: 6px !important;
  align-items: center !important;
}

.profile-quick-hero:hover {
  background: linear-gradient(145deg, rgba(48, 84, 148, 0.68), rgba(24, 42, 78, 0.68)) !important;
  border-color: rgba(150, 212, 255, 0.72) !important;
  box-shadow: 0 0 26px rgba(100, 172, 255, 0.22) !important;
  transform: none !important;
}

.profile-quick-hero-avatar {
  box-shadow: 0 0 0 2px rgba(140, 200, 255, 0.5), 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

.profile-quick-hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.profile-quick-hero-name {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: rgba(240, 250, 255, 0.98) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.profile-quick-hero-cta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(90, 220, 255, 0.98);
  background: rgba(20, 100, 180, 0.38);
  border: 1px solid rgba(80, 210, 255, 0.48);
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 12px rgba(60, 190, 255, 0.22);
}

.profile-quick-hero:hover .profile-quick-hero-cta {
  background: rgba(28, 120, 210, 0.52);
  box-shadow: 0 0 18px rgba(80, 210, 255, 0.38);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 90%;
  max-width: 960px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-bright);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(140, 160, 200, 0.1);
  color: var(--text-bright);
}

.game-page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 12, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1100;
  /* Hidden with visibility, not display: a display:none element cannot
     transition, which is why the game preview used to pop in with no fade
     and the modal's own translate/scale transition never ran. */
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.game-page-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.32s ease, visibility 0s linear 0s;
}

.game-page-overlay.active .game-page-modal {
  transform: translateY(0) scale(1);
}

.game-preview-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--video-gradient, linear-gradient(135deg, rgba(30, 40, 60, 0.9), rgba(15, 20, 30, 0.9)));
}

.video-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 240, 0.6);
  background: rgba(140, 170, 220, 0.2);
  position: relative;
  box-shadow: 0 0 24px rgba(140, 190, 255, 0.35);
}

.video-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid rgba(220, 235, 255, 0.9);
}

.video-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 215, 240, 0.7);
}

.rating-count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.badge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#gamePageBadges .badge-card.locked {
  opacity: 0.2;
  filter: grayscale(0.6);
}

.badge-card .badge-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(122, 172, 248, 0.36));
}

.badge-card.badge-tier-legendary .badge-icon img {
  filter: drop-shadow(0 0 6px rgba(236, 160, 66, 0.42))
          drop-shadow(0 0 14px rgba(236, 160, 66, 0.18));
}

.badge-card.badge-tier-legendary .badge-title {
  color: rgba(236, 160, 66, 0.99);
  text-shadow: 0 0 9px rgba(236, 160, 66, 0.22);
}

.badge-card.badge-tier-legendary::before {
  content: 'LEGENDARY';
  position: absolute;
  top: 0; right: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(236, 160, 66, 0.55);
  text-transform: uppercase;
}

.badge-card.badge-tier-rare .badge-icon img {
  filter: drop-shadow(0 0 6px rgba(112, 182, 255, 0.38))
          drop-shadow(0 0 14px rgba(112, 182, 255, 0.18));
}

.badge-card.badge-tier-rare .badge-title {
  color: rgba(112, 182, 255, 0.98);
}

.badge-card.badge-tier-epic .badge-icon img {
  filter: drop-shadow(0 0 6px rgba(255, 118, 194, 0.4))
          drop-shadow(0 0 14px rgba(255, 118, 194, 0.18));
}

.badge-card.badge-tier-epic .badge-title {
  color: rgba(255, 118, 194, 0.98);
}

.badge-card.badge-icon-play25 .badge-icon img {
  filter: drop-shadow(0 0 5px rgba(180, 110, 60, 0.44))
          drop-shadow(0 0 12px rgba(160, 90, 40, 0.22));
}

.badge-card.badge-icon-play50 .badge-icon img {
  filter: drop-shadow(0 0 5px rgba(200, 210, 220, 0.4))
          drop-shadow(0 0 12px rgba(170, 185, 205, 0.2));
}

.badge-card.badge-icon-play100 .badge-icon img {
  filter: drop-shadow(0 0 6px rgba(236, 180, 60, 0.44))
          drop-shadow(0 0 14px rgba(220, 160, 40, 0.2));
}

.badge-card.badge-icon-play500 .badge-icon img {
  filter: drop-shadow(0 0 6px rgba(100, 180, 240, 0.42))
          drop-shadow(0 0 14px rgba(140, 200, 235, 0.2));
}

.badge-card.badge-icon-play1000 .badge-icon img {
  filter: drop-shadow(0 0 6px rgba(200, 110, 240, 0.42))
          drop-shadow(0 0 14px rgba(160, 80, 220, 0.2));
}

.game-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.game-screenshot.is-image:hover {
  transform: translateY(-2px);
  border-color: rgba(160, 190, 240, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.game-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-label {
  display: none;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lightbox-frame {
  position: relative;
  max-width: min(84vw, 1100px);
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid rgba(140, 160, 200, 0.3);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: rgba(10, 14, 20, 0.9);
}

.lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(12, 16, 24, 0.8);
  border: 1px solid rgba(140, 160, 200, 0.3);
  color: rgba(210, 225, 245, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover {
  border-color: rgba(170, 200, 240, 0.6);
  color: rgba(230, 240, 255, 0.98);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(140, 160, 200, 0.3);
  background: rgba(12, 16, 24, 0.8);
  color: rgba(210, 225, 245, 0.9);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.lightbox-nav:hover {
  border-color: rgba(170, 200, 240, 0.6);
  color: rgba(230, 240, 255, 0.98);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-caption {
  display: none;
}

.game-controls {
  display: grid;
  gap: 10px;
}

.game-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(140, 160, 200, 0.18);
  font-size: 12px;
  color: var(--text-main);
}

.game-control-key {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 215, 240, 0.9);
}

.game-control-label {
  font-size: 12px;
  color: var(--text-muted);
}

.feature-list,
.detail-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li,
.detail-list li {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(140, 160, 200, 0.18);
  background: rgba(140, 160, 200, 0.05);
  font-size: 12px;
  color: var(--text-main);
}

.detail-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-value {
  font-size: 13px;
  color: var(--text-bright);
}

.comment-compose {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.comment-input {
  background: rgba(12, 16, 24, 0.7);
  border: 1px solid rgba(140, 160, 200, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 13px;
  min-height: 80px;
  resize: none;
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-submit {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(160, 200, 255, 0.5);
  background: rgba(140, 170, 220, 0.2);
  color: var(--text-bright);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.comment-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-guidelines {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-page-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% 0%, rgba(var(--game-accent-rgb), 0.2), transparent 44%),
    radial-gradient(circle at 84% 100%, rgba(var(--game-accent-rgb), 0.14), transparent 46%);
  opacity: 0.95;
}

.game-microstats {
  display: grid;
  gap: 8px;
  min-height: 38px;
}

.weekly-note.active {
  display: block;
}

.game-stat-group {
  display: grid;
  gap: 8px;
}

.game-stat-heading {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(162, 186, 222, 0.78);
}

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

.game-stat-card {
  min-height: 68px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.23);
  background: linear-gradient(180deg, rgba(16, 25, 46, 0.88), rgba(10, 18, 35, 0.78));
  display: grid;
  align-content: center;
  gap: 4px;
}

.game-stat-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 186, 224, 0.72);
}

.game-stat-value {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 700;
  color: rgba(236, 245, 255, 0.96);
  letter-spacing: 0.01em;
}

.game-stat-value.game-stat-value-sm {
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.game-top-player-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(165, 191, 230, 0.78);
}

.game-top-player-name {
  font-size: 16px;
  font-weight: 700;
  color: rgba(236, 246, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-top-player-score {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(171, 199, 236, 0.84);
}

.game-comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.game-comments-head .game-section-title {
  margin-bottom: 0;
}

.game-comments-toggle {
  border: 1px solid rgba(var(--game-accent-rgb), 0.3);
  background: rgba(12, 20, 38, 0.72);
  color: rgba(206, 226, 248, 0.9);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-comments-toggle:hover {
  border-color: rgba(var(--game-accent-rgb), 0.58);
  box-shadow: 0 0 14px rgba(var(--game-accent-rgb), 0.24);
}

.game-comments-caret {
  transition: transform 0.2s ease;
}

.game-comments-toggle.active .game-comments-caret {
  transform: rotate(180deg);
}

.game-comments-panel {
  display: none;
  margin-top: 10px;
}

.game-comments-panel.active {
  display: block;
}

.comment-list::-webkit-scrollbar {
  width: 10px;
}

.comment-list::-webkit-scrollbar-track {
  background: rgba(12, 18, 34, 0.65);
  border-radius: 999px;
}

.comment-list::-webkit-scrollbar-thumb {
  background: rgba(132, 168, 214, 0.48);
  border-radius: 999px;
  border: 2px solid rgba(12, 18, 34, 0.65);
}

.game-quick-info {
  display: grid;
  gap: 10px;
}

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

.quick-info-pill {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(138, 165, 208, 0.2);
  background: rgba(11, 18, 33, 0.8);
}

.quick-info-pill-value {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(226, 236, 252, 0.95);
}

@media (max-width: 900px) {

  .game-page-hero {
    padding: 16px 16px 0;
  }

}

.shop-wallet-kicker {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 231, 164, 0.82);
}

.shop-wallet-main > div {
  text-align: left;
}

.shop-wallet-value #modalTokens {
  display: inline-block;
  animation: walletTokenPulse 2.3s ease-in-out infinite;
}

@keyframes walletTokenPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 24px rgba(192, 132, 255, 0.42);
  }
  50% {
    transform: scale(1.018);
    text-shadow: 0 0 34px rgba(214, 156, 255, 0.68);
  }
}

.shop-wallet-sub {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 224, 196, 0.74);
}

.shop-inventory-row em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: rgba(214, 226, 246, 0.94);
  letter-spacing: 0.06em;
  line-height: 1.05;
  display: none;
}

.shop-inventory-row strong {
  font-size: 16px;
  line-height: 1;
  color: rgba(236, 244, 255, 0.98);
  min-width: 0;
  text-align: left;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(130, 184, 255, 0.28);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.shop-inventory-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(8, 14, 26, 0.96);
  border: 1px solid rgba(152, 188, 244, 0.45);
  color: rgba(232, 242, 255, 0.98);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  z-index: 7;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.38);
}

.shop-inventory-row[data-tooltip]:hover::after {
  opacity: 1;
}

.shop-inventory-grid .shop-inventory-row:nth-child(5) {
  grid-column: span 2;
}

.shop-pass-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 202, 0.3),
    0 0 0 1px rgba(255, 138, 72, 0.34),
    0 16px 34px rgba(10, 18, 36, 0.55),
    0 0 26px rgba(255, 128, 62, 0.34);
}

.shop-pass-card:hover::after {
  background: linear-gradient(110deg, transparent 16%, rgba(255, 255, 255, 0.32) 46%, rgba(255, 255, 255, 0.2) 54%, transparent 84%);
}

.shop-pass-card:focus-visible {
  outline: 2px solid rgba(166, 204, 255, 0.86);
  outline-offset: 2px;
}

.shop-pass-card.is-disabled {
  cursor: default;
}

.shop-pass-card.is-disabled:hover {
  transform: none;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(178, 204, 255, 0.16), 0 14px 28px rgba(10, 18, 36, 0.45);
}

.shop-pass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 16%, rgba(255, 238, 204, 0.34) 46%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 196, 142, 0.2) 56%, transparent 84%);
  transform: translateX(-140%);
  animation: passShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.shop-pass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 138, 72, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 162, 0.18),
    0 0 16px rgba(255, 126, 56, 0.24);
  opacity: 0.75;
  z-index: 0;
}

.shop-pass-season-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(182, 202, 236, 0.88);
  display: none;
}

@keyframes passDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(102, 255, 198, 0.62); }
  50% { transform: scale(1.24); box-shadow: 0 0 18px rgba(102, 255, 198, 0.9); }
}

@keyframes passShine {
  0%, 68% { transform: translateX(-140%); opacity: 0; }
  76% { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

@keyframes passEdgePulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 224, 186, 0.24),
      0 0 0 1px rgba(255, 120, 52, 0.2),
      0 14px 28px rgba(10, 18, 36, 0.45),
      0 0 16px rgba(255, 108, 48, 0.2);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 234, 204, 0.3),
      0 0 0 1px rgba(255, 146, 82, 0.34),
      0 15px 30px rgba(10, 18, 36, 0.5),
      0 0 28px rgba(255, 132, 64, 0.36);
  }
}

.expedition-timeline-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 138, 72, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 162, 0.18),
    0 0 16px rgba(255, 126, 56, 0.24);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 236, 190, 0.2) 0%, rgba(255, 236, 190, 0) 36%),
    radial-gradient(circle at 82% 74%, rgba(255, 140, 76, 0.18) 0%, rgba(255, 140, 76, 0) 44%);
  opacity: 0.78;
  z-index: 0;
}

.expedition-timeline-status {
  border-radius: 999px;
  border: 1px solid rgba(144, 178, 236, 0.36);
  background: rgba(20, 30, 50, 0.78);
  padding: 6px 11px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(204, 220, 248, 0.92);
  white-space: nowrap;
}

.expedition-timeline-status.active {
  border-color: rgba(98, 240, 184, 0.56);
  background: linear-gradient(135deg, rgba(18, 68, 56, 0.86), rgba(14, 44, 36, 0.92));
  color: rgba(216, 255, 236, 0.96);
  box-shadow: 0 0 16px rgba(72, 218, 164, 0.28);
}

.expedition-timeline-rail-wrap::-webkit-scrollbar {
  height: 14px;
}

.expedition-timeline-rail-wrap::-webkit-scrollbar-track {
  background: rgba(52, 38, 32, 0.88);
  border: 1px solid rgba(214, 168, 120, 0.42);
  border-radius: 999px;
}

.expedition-timeline-rail-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 222, 158, 0.96), rgba(228, 160, 100, 0.92));
  border: 1px solid rgba(255, 234, 186, 0.54);
  border-radius: 999px;
}

.expedition-timeline-rail::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-1px);
  height: 3px;
  pointer-events: none;
  z-index: 0;
}

.interstellar-rail::before {
  background: linear-gradient(90deg, rgba(255, 194, 124, 0.24), rgba(255, 214, 132, 0.94), rgba(255, 194, 124, 0.24));
  box-shadow: 0 0 26px rgba(255, 190, 108, 0.5), 0 0 10px rgba(255, 166, 78, 0.42);
}

.voyager-rail::before {
  background: linear-gradient(90deg, rgba(184, 198, 220, 0.24), rgba(236, 242, 252, 0.86), rgba(184, 198, 220, 0.24));
  box-shadow: 0 0 22px rgba(214, 226, 246, 0.44), 0 0 8px rgba(178, 194, 220, 0.32);
}

.expedition-tier-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 24% 20%, rgba(var(--expedition-tier-rarity-rgb), 0.36), transparent 72%),
    linear-gradient(0deg, rgba(var(--expedition-tier-rarity-rgb), 0.14), rgba(var(--expedition-tier-rarity-rgb), 0.14));
  opacity: 0.82;
  transition: opacity 0.24s ease;
}

.expedition-tier-card > * {
  position: relative;
  z-index: 1;
}

.expedition-tier-card.free {
  border-color: rgba(var(--expedition-tier-rarity-rgb), 0.44);
}

.expedition-tier-card.premium {
  border-color: rgba(var(--expedition-tier-rarity-rgb), 0.46);
  background: linear-gradient(145deg, rgb(70, 42, 18), rgb(36, 20, 10));
}

.expedition-tier-card.unlocked {
  transform: translateY(-1px);
  filter: saturate(1.02) brightness(1.06);
  outline-color: rgba(var(--expedition-tier-rarity-rgb), 0.42);
}

.expedition-tier-card.free.unlocked {
  border-color: rgba(var(--expedition-tier-rarity-rgb), 0.76);
  box-shadow:
    0 0 0 1px rgba(var(--expedition-tier-rarity-rgb), 0.32),
    0 0 16px rgba(82, 110, 152, 0.24),
    inset 0 1px 0 rgba(194, 212, 238, 0.22);
  background: linear-gradient(145deg, rgb(32, 40, 56), rgb(18, 24, 36));
}

.expedition-tier-card.premium.unlocked {
  border-color: rgba(var(--expedition-tier-rarity-rgb), 0.78);
  box-shadow:
    0 0 0 1px rgba(var(--expedition-tier-rarity-rgb), 0.34),
    0 0 18px rgba(142, 96, 64, 0.24),
    inset 0 1px 0 rgba(232, 206, 180, 0.2);
  background: linear-gradient(145deg, rgb(54, 40, 28), rgb(32, 22, 16));
}

.expedition-tier-card:not(.unlocked) {
  box-shadow: inset 0 1px 0 rgba(178, 202, 242, 0.06);
  outline-color: rgba(var(--expedition-tier-rarity-rgb), 0.24);
}

.expedition-tier-card:not(.unlocked)::before {
  opacity: 0.52;
}

.expedition-tier-track {
  position: absolute;
  top: 8px;
  left: 8px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(144, 178, 236, 0.3);
  padding: 3px 7px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(208, 224, 250, 0.92);
  background: rgba(20, 32, 56, 0.7);
  white-space: nowrap;
}

.expedition-tier-card.premium .expedition-tier-track {
  border-color: rgba(255, 196, 126, 0.4);
  color: rgba(255, 236, 198, 0.96);
  background: rgba(78, 44, 16, 0.8);
}

.expedition-tier-card.rarity-legendary {
  --expedition-tier-rarity-rgb: 236, 160, 66;
  --expedition-icon-rgb: 236, 160, 66;
}

.expedition-tier-card.rarity-epic {
  --expedition-tier-rarity-rgb: 255, 118, 194;
  --expedition-icon-rgb: 255, 118, 194;
}

.expedition-tier-card.rarity-rare {
  --expedition-tier-rarity-rgb: 112, 182, 255;
  --expedition-icon-rgb: 112, 182, 255;
}

.expedition-tier-card.rarity-uncommon {
  --expedition-tier-rarity-rgb: 96, 214, 156;
  --expedition-icon-rgb: 96, 214, 156;
}

.expedition-tier-card.rarity-common {
  --expedition-tier-rarity-rgb: 190, 208, 240;
  --expedition-icon-rgb: 190, 208, 240;
}

.expedition-tier-card.claimable-now,
.expedition-tier-card.claimable-pass-locked {
  outline-color: rgba(var(--expedition-tier-rarity-rgb), 0.58);
}

.expedition-tier-card.claimed {
  border-width: 2px;
  outline-width: 2px;
  outline-offset: -2px;
  outline-color: rgba(var(--expedition-tier-rarity-rgb), 0.9);
  box-shadow:
    0 0 0 1px rgba(var(--expedition-tier-rarity-rgb), 0.34),
    0 0 22px rgba(var(--expedition-tier-rarity-rgb), 0.34),
    inset 0 1px 0 rgba(248, 252, 255, 0.18);
}

.expedition-tier-card.unlocked .expedition-tier-state {
  color: rgba(244, 248, 255, 1);
  text-shadow: 0 0 12px rgba(220, 232, 255, 0.52);
  font-weight: 800;
}

.expedition-tier-card.free.unlocked .expedition-tier-state {
  color: rgba(188, 226, 255, 0.98);
  text-shadow: 0 0 10px rgba(112, 190, 255, 0.4);
}

.expedition-tier-card.premium.unlocked .expedition-tier-state {
  color: rgba(255, 232, 196, 0.98);
  text-shadow: 0 0 10px rgba(255, 180, 104, 0.36);
}

.expedition-timeline-actions {
  display: flex;
  justify-content: flex-end;
}

.expedition-pass-row + .expedition-pass-row {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.expedition-pass-row.voyager-row {
  margin-top: -4px;
}

.expedition-pass-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex: 0 0 auto;
}

.expedition-pass-label::after {
  content: none;
}

.expedition-pass-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1;
}

.interstellar-tag {
  background: rgba(255, 140, 60, 0.16);
  border: 1px solid rgba(255, 160, 80, 0.32);
  color: rgba(255, 200, 140, 0.95);
}

.voyager-tag {
  background: rgba(100, 160, 220, 0.12);
  border: 1px solid rgba(130, 180, 230, 0.24);
  color: rgba(160, 200, 240, 0.88);
}

.interstellar-rail .expedition-tier-card.free,
.interstellar-rail .expedition-tier-card.premium {
  border-color: rgba(255, 182, 108, 0.58);
  outline-color: rgba(255, 202, 132, 0.66);
  background: linear-gradient(145deg, rgb(22, 28, 40), rgb(12, 16, 26));
}

.interstellar-rail .expedition-tier-card.free.unlocked,
.interstellar-rail .expedition-tier-card.premium.unlocked {
  border-color: rgba(255, 198, 122, 0.94);
  outline-color: rgba(255, 220, 154, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 214, 148, 0.44),
    0 0 26px rgba(255, 164, 82, 0.5),
    inset 0 1px 0 rgba(255, 236, 198, 0.28);
  background: linear-gradient(145deg, rgb(30, 36, 50), rgb(16, 20, 30));
}

.interstellar-rail .expedition-tier-card.premium .expedition-tier-track {
  border-color: rgba(255, 190, 120, 0.44);
  color: rgba(255, 234, 198, 0.96);
  background: rgba(74, 40, 16, 0.8);
}

.interstellar-rail .expedition-tier-card.premium.unlocked .expedition-tier-state {
  color: rgba(255, 236, 202, 0.99);
  text-shadow: 0 0 11px rgba(255, 176, 96, 0.38);
}

.interstellar-rail .expedition-tier-card.free.unlocked .expedition-tier-state {
  color: rgba(255, 228, 182, 0.99);
  text-shadow: 0 0 10px rgba(255, 168, 88, 0.34);
}

.interstellar-rail .expedition-tier-card.unlocked .expedition-tier-state {
  color: rgba(255, 242, 214, 1);
  text-shadow: 0 0 14px rgba(255, 174, 92, 0.56);
}

.voyager-rail .expedition-tier-card.free {
  border-color: rgba(192, 204, 224, 0.58);
  outline-color: rgba(214, 226, 246, 0.66);
  background: linear-gradient(145deg, rgb(22, 28, 40), rgb(12, 16, 26));
}

.voyager-rail .expedition-tier-card.free.unlocked {
  border-color: rgba(214, 226, 246, 0.94);
  outline-color: rgba(230, 240, 255, 0.84);
  box-shadow:
    0 0 0 1px rgba(224, 234, 252, 0.44),
    0 0 24px rgba(174, 198, 236, 0.4),
    inset 0 1px 0 rgba(242, 248, 255, 0.28);
  background: linear-gradient(145deg, rgb(30, 36, 50), rgb(16, 20, 30));
}

.voyager-rail .expedition-tier-card.free .expedition-tier-track {
  border-color: rgba(204, 210, 222, 0.46);
  color: rgba(236, 240, 248, 0.94);
  background: rgba(74, 80, 94, 0.8);
}

.voyager-rail .expedition-tier-card.free.unlocked .expedition-tier-state {
  color: rgba(242, 246, 252, 0.99);
  text-shadow: 0 0 9px rgba(206, 214, 228, 0.38);
}

#shopSubtabs .shop-subtab .shop-subtab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(184, 242, 255, 0.96);
  filter: drop-shadow(0 0 10px rgba(102, 228, 255, 0.46));
  flex: 0 0 auto;
}

#shopSubtabs .shop-subtab .shop-subtab-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#shopSubtabs .shop-subtab .shop-subtab-label {
  line-height: 1;
}

#shopSubtabs .shop-subtab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(176, 245, 255, 0.28) 42%, transparent 68%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.2s ease;
  pointer-events: none;
}

#shopSubtabs .shop-subtab:hover {
  color: rgba(244, 252, 255, 0.99);
  border-color: rgba(148, 236, 255, 0.84);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(220, 252, 255, 0.3),
    0 10px 22px rgba(34, 132, 168, 0.36);
}

#shopSubtabs .shop-subtab:hover::before {
  transform: translateX(120%);
  opacity: 0.65;
}

#shopSubtabs .shop-subtab.active {
  color: rgba(4, 26, 44, 0.98);
  border-color: rgba(140, 250, 255, 0.98);
  background:
    linear-gradient(180deg, rgba(114, 243, 255, 0.98), rgba(86, 198, 255, 0.98));
  text-shadow: 0 0 10px rgba(182, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(240, 255, 255, 0.64),
    0 0 0 1px rgba(176, 250, 255, 0.56),
    0 0 24px rgba(82, 222, 255, 0.58),
    0 12px 24px rgba(21, 120, 162, 0.42);
  filter: saturate(1.08);
}

#shopSubtabs .shop-subtab.active .shop-subtab-icon {
  color: rgba(5, 48, 76, 0.95);
  filter: drop-shadow(0 0 8px rgba(190, 252, 255, 0.46));
}

#shopSubtabs .shop-subtab.active::after {
  content: '';
  position: absolute;
  inset: auto 12px -3px 12px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(98, 228, 255, 0.1), rgba(98, 228, 255, 0.9), rgba(98, 228, 255, 0.1));
  box-shadow: 0 0 14px rgba(98, 228, 255, 0.68);
}

#shopSubtabs .shop-subtab:focus-visible {
  outline: 2px solid rgba(148, 236, 255, 0.96);
  outline-offset: 2px;
}

@media (max-width: 760px) {

  #shopSubtabs .shop-subtab .shop-subtab-icon {
    width: 24px;
    height: 24px;
  }

}

.shop-command-bar.filters-hidden {
  grid-template-columns: minmax(320px, 1fr);
  max-width: 560px;
}

.shop-rotation-panel {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(152, 190, 255, 0.4);
  background: linear-gradient(140deg, rgba(24, 36, 62, 0.88), rgba(14, 22, 38, 0.94));
  box-shadow: inset 0 1px 0 rgba(156, 190, 244, 0.12), 0 12px 26px rgba(2, 10, 24, 0.38);
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.shop-rotation-panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(110, 172, 255, 0), rgba(110, 172, 255, 0.9), rgba(110, 172, 255, 0));
  pointer-events: none;
}

.shop-rotation-kicker {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(170, 196, 236, 0.82);
}

.shop-rotation-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  color: rgba(232, 242, 255, 0.95);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

.shop-rotation-main strong {
  font-size: 34px;
  letter-spacing: 0.08em;
  color: rgba(178, 216, 255, 0.98);
  text-shadow: 0 0 18px rgba(120, 186, 255, 0.4);
  line-height: 1;
}

.shop-rotation-panel > strong {
  font-size: 34px;
  letter-spacing: 0.08em;
  color: rgba(178, 216, 255, 0.98);
  text-shadow: 0 0 18px rgba(120, 186, 255, 0.4);
  line-height: 1;
  font-weight: 700;
}

.shop-rotation-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(152, 174, 208, 0.82);
}

.shop-control-select:focus {
  border-color: rgba(146, 194, 255, 0.46);
  box-shadow: 0 0 0 2px rgba(106, 166, 255, 0.2);
}

.shop-rotation-note {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(136, 168, 216, 0.24);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(168, 194, 232, 0.82);
}

.shop-filter-row.temporarily-hidden {
  display: none;
}

.shop-rotation-header-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(198, 224, 255, 0.92);
  font-weight: 700;
}

.shop-spotlight-card {
  --spotlight-glow: 132, 188, 255;
  border-radius: 12px;
  border: 1px solid rgba(130, 160, 210, 0.28);
  background: linear-gradient(140deg, rgba(18, 28, 46, 0.86), rgba(10, 16, 28, 0.95));
  padding: 14px 12px 10px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 124px;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.shop-spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(
    90deg,
    rgba(var(--spotlight-glow), 1) 0%,
    rgba(var(--spotlight-glow), 1) 50%,
    rgba(var(--spotlight-glow), 1) 100%
  );
  box-shadow: 0 0 14px rgba(var(--spotlight-glow), 0.5);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.shop-spotlight-card[data-spotlight-rarity="legendary"] {
  --spotlight-glow: 224, 148, 56;
  border-color: rgba(255, 204, 124, 0.7);
  background: linear-gradient(140deg, rgba(126, 76, 22, 0.88), rgba(58, 32, 10, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 220, 172, 0.2), 0 0 20px rgba(255, 184, 84, 0.18);
}

.shop-spotlight-card[data-spotlight-rarity="epic"] {
  --spotlight-glow: 255, 142, 204;
  border-color: rgba(255, 168, 216, 0.74);
  background: linear-gradient(140deg, rgba(212, 60, 144, 0.62), rgba(108, 24, 74, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 216, 236, 0.22), 0 0 24px rgba(255, 126, 198, 0.26);
}

.shop-spotlight-card[data-spotlight-rarity="rare"] {
  --spotlight-glow: 132, 188, 255;
  border-color: rgba(148, 206, 255, 0.7);
  background: linear-gradient(140deg, rgba(32, 82, 148, 0.86), rgba(14, 40, 84, 0.95));
  box-shadow: inset 0 1px 0 rgba(196, 226, 255, 0.18), 0 0 18px rgba(118, 172, 255, 0.18);
}

.shop-spotlight-card[data-spotlight-rarity="uncommon"] {
  --spotlight-glow: 140, 230, 188;
  border-color: rgba(140, 224, 182, 0.68);
  background: linear-gradient(140deg, rgba(24, 92, 74, 0.86), rgba(12, 54, 42, 0.95));
  box-shadow: inset 0 1px 0 rgba(190, 248, 220, 0.16), 0 0 16px rgba(120, 214, 170, 0.16);
}

.shop-spotlight-card[data-spotlight-rarity="common"] {
  --spotlight-glow: 176, 198, 232;
  border-color: rgba(176, 198, 232, 0.5);
  background: linear-gradient(140deg, rgba(42, 54, 84, 0.84), rgba(18, 28, 52, 0.95));
}

.shop-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--spotlight-glow), 0.9);
  box-shadow: 0 14px 30px rgba(var(--spotlight-glow), 0.34), inset 0 0 20px rgba(var(--spotlight-glow), 0.14);
}

.shop-spotlight-card:hover::after {
  height: 6px;
  box-shadow: 0 0 20px rgba(var(--spotlight-glow), 0.72);
}

.shop-spotlight-card.detail-active {
  border-color: rgba(var(--spotlight-glow), 0.98);
  outline: 3px solid rgba(var(--spotlight-glow), 0.62);
  outline-offset: -1px;
  box-shadow: 0 0 36px rgba(var(--spotlight-glow), 0.54), 0 14px 30px rgba(var(--spotlight-glow), 0.34), inset 0 0 24px rgba(var(--spotlight-glow), 0.24);
  transform: translateY(-2px);
}

.shop-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.shop-spotlight-tags {
  margin-left: auto;
  margin-right: -13px;
  margin-top: -14px;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.shop-spotlight-type {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 212, 246, 0.9);
  font-weight: 700;
}

.shop-spotlight-name {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 244, 255, 0.96);
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  z-index: 2;
}

.shop-spotlight-card .shop-item-badge.rarity-legendary,
.shop-spotlight-card .shop-item-badge.rarity-epic,
.shop-spotlight-card .shop-item-badge.rarity-rare,
.shop-spotlight-card .shop-item-badge.rarity-uncommon,
.shop-spotlight-card .shop-item-badge.rarity-common,
.shop-spotlight-card .shop-item-badge.featured {
  align-self: flex-start;
  border: none;
  border-radius: 0 4px 4px 4px;
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(245, 250, 255, 1);
  background: linear-gradient(
    90deg,
    rgba(var(--spotlight-glow), 1) 0%,
    rgba(var(--spotlight-glow), 1) 50%,
    rgba(var(--spotlight-glow), 1) 100%
  );
  box-shadow: 0 0 10px rgba(var(--spotlight-glow), 0.34);
  text-shadow: 0 0 8px rgba(14, 18, 30, 0.55);
}

.shop-spotlight-card[data-spotlight-rarity="common"] .shop-item-badge.rarity-common {
  box-shadow: 0 0 8px rgba(var(--spotlight-glow), 0.2);
  color: rgba(16, 24, 38, 0.98);
  text-shadow: none;
}

.shop-spotlight-price {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(138, 176, 236, 0.34);
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(206, 224, 250, 0.95);
  background: rgba(16, 28, 48, 0.78);
  margin-top: 2px;
}

.shop-spotlight-price.discounted {
  gap: 7px;
  border-color: rgba(255, 196, 120, 0.54);
  background: rgba(58, 28, 16, 0.68);
  color: rgba(255, 236, 208, 0.98);
}

.shop-spotlight-price .shop-price-stack {
  gap: 1px;
}

.shop-spotlight-price.discounted .shop-price-main {
  font-size: 12px;
}

.shop-spotlight-price .shop-price-cut {
  font-size: 8px;
}

.shop-spotlight-price .shop-price-main .token-icon,
.shop-spotlight-price .shop-price-cut .token-icon {
  width: 11px;
  height: 11px;
  filter: drop-shadow(0 0 6px rgba(176, 118, 255, 0.52));
}

.shop-spotlight-cut {
  text-decoration: line-through;
  opacity: 0.78;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.shop-spotlight-off {
  border-radius: 5px;
  border: none;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  background: transparent;
  color: rgba(255, 244, 216, 0.98);
}

.shop-item.hidden-by-rotation,
.shop-item.filtered-out {
  display: none !important;
}

.shop-item[data-shop-rarity] {
  box-shadow: inset 0 1px 0 rgba(236, 246, 255, 0.09);
}

.shop-item[data-shop-rarity="legendary"] {
  --shop-rarity-rgb: 224, 148, 56;
  border-color: rgba(255, 196, 112, 0.7);
  background: linear-gradient(145deg, rgba(118, 74, 24, 0.68), rgba(60, 34, 12, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.2), 0 0 28px rgba(255, 184, 84, 0.2);
}

.shop-item[data-shop-rarity="epic"] {
  --shop-rarity-rgb: 255, 142, 204;
  border-color: rgba(255, 142, 204, 0.72);
  background: linear-gradient(145deg, rgba(210, 56, 142, 0.58), rgba(116, 26, 76, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 214, 234, 0.22), 0 0 28px rgba(255, 126, 198, 0.3);
}

.shop-item[data-shop-rarity="rare"] {
  --shop-rarity-rgb: 132, 188, 255;
  border-color: rgba(132, 188, 255, 0.66);
  background: linear-gradient(145deg, rgba(28, 72, 132, 0.66), rgba(16, 38, 82, 0.9));
  box-shadow: inset 0 1px 0 rgba(186, 218, 255, 0.16), 0 0 24px rgba(114, 166, 255, 0.18);
}

.shop-item[data-shop-rarity="uncommon"] {
  --shop-rarity-rgb: 122, 206, 162;
  border-color: rgba(122, 206, 162, 0.64);
  background: linear-gradient(145deg, rgba(24, 86, 70, 0.66), rgba(14, 50, 40, 0.9));
  box-shadow: inset 0 1px 0 rgba(176, 240, 212, 0.16), 0 0 22px rgba(112, 210, 164, 0.16);
}

.shop-item[data-shop-rarity="mythic"] {
  --shop-rarity-rgb: 255, 92, 122;
  border-color: rgba(255, 128, 156, 0.78);
  background: linear-gradient(145deg, rgba(140, 26, 68, 0.66), rgba(58, 10, 40, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 200, 220, 0.22), 0 0 32px rgba(255, 92, 140, 0.32);
}

.shop-item[data-shop-rarity="mythic"]:hover {
  border-color: rgba(255, 160, 190, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 216, 230, 0.24), 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 110, 150, 0.4);
}

.shop-item .shop-item-badge.rarity-mythic {
  border: none;
  color: rgba(255, 250, 252, 1);
  background: linear-gradient(90deg, rgba(255, 92, 122, 1), rgba(255, 140, 90, 1));
  box-shadow: 0 0 12px rgba(255, 100, 130, 0.45);
}

.shop-item-badge.rarity-mythic {
  border-color: rgba(255, 128, 156, 0.6);
  color: rgba(255, 224, 234, 0.99);
  background: rgba(120, 20, 60, 0.7);
}

.shop-item[data-shop-rarity="common"] {
  --shop-rarity-rgb: 176, 198, 232;
  border-color: rgba(176, 198, 232, 0.5);
  background: linear-gradient(145deg, rgba(44, 56, 86, 0.62), rgba(20, 28, 50, 0.88));
}

.shop-item[data-shop-rarity="legendary"]:hover {
  border-color: rgba(255, 212, 132, 0.84);
  background: linear-gradient(145deg, rgba(136, 86, 30, 0.74), rgba(66, 38, 14, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 228, 184, 0.22), 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 188, 90, 0.24);
}

.shop-item[data-shop-rarity="epic"]:hover {
  border-color: rgba(255, 172, 220, 0.86);
  background: linear-gradient(145deg, rgba(220, 64, 150, 0.64), rgba(122, 28, 82, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 222, 238, 0.24), 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 132, 202, 0.28);
}

.shop-item[data-shop-rarity="rare"]:hover {
  border-color: rgba(152, 212, 255, 0.82);
  background: linear-gradient(145deg, rgba(34, 84, 152, 0.72), rgba(16, 42, 90, 0.92));
  box-shadow: inset 0 1px 0 rgba(204, 232, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 22px rgba(120, 174, 255, 0.22);
}

.shop-item[data-shop-rarity="uncommon"]:hover {
  border-color: rgba(146, 232, 192, 0.8);
  background: linear-gradient(145deg, rgba(28, 96, 78, 0.72), rgba(14, 56, 44, 0.92));
  box-shadow: inset 0 1px 0 rgba(198, 250, 224, 0.2), 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 22px rgba(124, 220, 176, 0.2);
}

.shop-item[data-shop-rarity="common"]:hover {
  border-color: rgba(186, 206, 238, 0.72);
  background: linear-gradient(145deg, rgba(50, 62, 94, 0.72), rgba(24, 34, 58, 0.9));
  box-shadow: inset 0 1px 0 rgba(210, 228, 255, 0.18), 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 20px rgba(130, 172, 236, 0.16);
}

.shop-item .shop-item-badge[class*="rarity-"] {
  margin-left: auto;
  margin-right: -8px;
  margin-top: -7px;
  align-self: flex-start;
  opacity: 1;
  font-size: 8px;
  font-weight: 900;
  padding: 4px 8px;
  letter-spacing: 0.14em;
  border: none;
  border-radius: 0 4px 4px 4px;
  color: rgba(245, 250, 255, 1);
  background: linear-gradient(
    90deg,
    rgba(var(--shop-rarity-rgb), 1) 0%,
    rgba(var(--shop-rarity-rgb), 1) 50%,
    rgba(var(--shop-rarity-rgb), 1) 100%
  );
  box-shadow: 0 0 10px rgba(var(--shop-rarity-rgb), 0.34);
  text-shadow: 0 0 8px rgba(14, 18, 30, 0.55);
  line-height: 1;
  transform: translateY(0);
}

.shop-item[data-item^="profile-fx-"] .shop-item-badge[class*="rarity-"],
.shop-item[data-shop-category="profile-fx"] .shop-item-badge[class*="rarity-"] {
  margin-right: -12px;
}

.shop-item-badge.new {
  border-color: rgba(132, 220, 174, 0.48);
  color: rgba(184, 244, 210, 0.98);
  background: rgba(14, 58, 42, 0.72);
}

.shop-item-badge.top-center-pill.top-pill-solo {
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  transform: none;
}

.shop-item-badge.top-center-pill.top-pill-left {
  transform: translateX(calc(-100% - 4px));
}

.shop-item-badge.top-center-pill.top-pill-right {
  transform: translateX(4px);
}

.shop-daily-item .shop-item-badge.leaving {
  display: none !important;
}

.shop-item-badge.powerup-deal {
  border: 1px solid rgba(255, 214, 130, 0.92);
  background: linear-gradient(135deg, rgba(255, 176, 64, 0.98), rgba(214, 122, 28, 0.98));
  color: rgba(36, 22, 4, 0.98);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(255, 186, 86, 0.45);
  animation: powerupDealPulse 1.5s ease-in-out infinite;
}

@keyframes powerupDealPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 186, 86, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 206, 120, 0.72); }
}

.shop-item.powerup-deal-active {
  box-shadow: 0 0 0 1px rgba(255, 200, 110, 0.65), 0 0 22px rgba(255, 168, 64, 0.34) !important;
}

.shop-item-badge.discount {
  border-color: rgba(255, 206, 136, 0.48);
  color: rgba(255, 244, 216, 0.98);
  background: rgba(92, 56, 14, 0.7);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  box-shadow: 0 0 12px rgba(255, 176, 98, 0.2);
}

.shop-item .shop-item-badge.rarity-legendary,
.shop-item .shop-item-badge.rarity-epic,
.shop-item .shop-item-badge.rarity-rare,
.shop-item .shop-item-badge.rarity-uncommon,
.shop-item .shop-item-badge.rarity-common {
  border: none;
  color: rgba(245, 250, 255, 1);
  background: linear-gradient(
    90deg,
    rgba(var(--shop-rarity-rgb), 1) 0%,
    rgba(var(--shop-rarity-rgb), 1) 50%,
    rgba(var(--shop-rarity-rgb), 1) 100%
  );
  box-shadow: 0 0 10px rgba(var(--shop-rarity-rgb), 0.34);
}

.shop-item .shop-item-badge.rarity-common {
  background: linear-gradient(
    90deg,
    rgba(var(--shop-rarity-rgb), 1) 0%,
    rgba(var(--shop-rarity-rgb), 1) 50%,
    rgba(var(--shop-rarity-rgb), 1) 100%
  );
  box-shadow: 0 0 8px rgba(var(--shop-rarity-rgb), 0.2);
  opacity: 1;
  color: rgba(16, 24, 38, 0.98);
  text-shadow: none;
}

.shop-spotlight-card .shop-item-badge.rarity-common {
  color: rgba(16, 24, 38, 0.98);
  text-shadow: none;
}

@keyframes leavingSoonPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(126, 206, 255, 0); }
  50% { box-shadow: 0 0 14px rgba(126, 206, 255, 0.45); }
}

@keyframes expeditionPassPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 10px rgba(255, 156, 82, 0.28); }
  50% { transform: translateY(-1px); box-shadow: 0 0 22px rgba(255, 176, 98, 0.54); }
}

.shop-item.cannot-afford {
  border-color: rgba(180, 106, 106, 0.35);
  background: rgba(54, 28, 34, 0.42);
}

.shop-item.cannot-afford .shop-item-price {
  border-color: rgba(198, 110, 118, 0.46);
  color: rgba(255, 190, 200, 0.96);
  background: rgba(66, 26, 34, 0.6);
}

.shop-item.cannot-afford .shop-fx-price {
  border-color: rgba(198, 110, 118, 0.46);
  color: rgba(255, 190, 200, 0.96);
  background: rgba(66, 26, 34, 0.6);
}

.shop-tab-panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.shop-tab-panel.fade-in,
.shop-tab-panel.fade-out {
  display: flex;
}

.shop-tab-panel.fade-in {
  animation: shopPanelFadeIn 220ms ease forwards;
}

.shop-tab-panel.fade-out {
  animation: shopPanelFadeOut 170ms ease forwards;
}

@keyframes shopPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shopPanelFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-2px);
  }
}

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

.shop-feature-card {
  border-radius: 14px;
  border: 1px solid rgba(150, 170, 210, 0.2);
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(22, 30, 50, 0.75), rgba(14, 20, 34, 0.88));
  box-shadow: inset 0 1px 0 rgba(160, 190, 240, 0.1);
}

.shop-feature-card.gameplay {
  border-color: rgba(255, 210, 130, 0.35);
  background: linear-gradient(135deg, rgba(60, 44, 24, 0.7), rgba(28, 22, 12, 0.86));
}

.shop-feature-tag {
  width: fit-content;
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
}

.shop-feature-tag.cosmetic {
  color: rgba(165, 210, 255, 0.96);
  background: rgba(45, 80, 130, 0.35);
  border: 1px solid rgba(120, 180, 255, 0.28);
}

.shop-feature-tag.gameplay {
  color: rgba(255, 224, 174, 0.98);
  background: rgba(110, 80, 34, 0.4);
  border: 1px solid rgba(255, 186, 90, 0.35);
}

.shop-feature-title {
  font-size: 16px;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.shop-feature-desc {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.45;
}

.shop-group-label {
  margin: 8px 0 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(170, 190, 220, 0.74);
}

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

.shop-fx-shop-list::-webkit-scrollbar {
  width: 8px;
}

.shop-fx-shop-list::-webkit-scrollbar-track {
  background: rgba(22, 30, 46, 0.65);
  border-radius: 999px;
}

.shop-fx-shop-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(154, 182, 232, 0.7), rgba(104, 132, 186, 0.7));
  border-radius: 999px;
}

.shop-item.shop-fx-item .shop-item-badges {
  left: 12px;
  right: 12px;
  top: 8px;
  justify-content: flex-start;
}

.shop-item.shop-fx-item::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background: radial-gradient(circle at 15% 50%, rgba(145, 185, 255, 0.2), transparent 58%);
}

.shop-item.shop-fx-item:hover::before {
  opacity: 0.95;
}

.shop-item.shop-fx-item:hover {
  border-color: rgba(var(--shop-fx-glow), 0.9);
  box-shadow: 0 14px 30px rgba(var(--shop-fx-glow), 0.34), inset 0 0 20px rgba(var(--shop-fx-glow), 0.16);
  transform: translateY(-2px);
}

.shop-item.shop-fx-item.detail-active {
  border-color: rgba(var(--shop-fx-glow), 0.98);
  outline: 3px solid rgba(var(--shop-fx-glow), 0.62);
  outline-offset: -1px;
  box-shadow: 0 0 36px rgba(var(--shop-fx-glow), 0.56), 0 14px 30px rgba(var(--shop-fx-glow), 0.36), inset 0 0 24px rgba(var(--shop-fx-glow), 0.26);
  transform: translateY(-2px);
}

.shop-fx-price .token-icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 8px rgba(186, 128, 255, 0.62));
}

.shop-item.shop-fx-item.owned {
  border-color: rgba(136, 214, 174, 0.42);
  background: linear-gradient(130deg, rgba(18, 44, 36, 0.72), rgba(10, 28, 26, 0.9));
}

.shop-item.shop-fx-item.equipped {
  border-color: rgba(188, 224, 255, 0.9);
  outline: 2px solid rgba(176, 216, 255, 0.55);
  outline-offset: -1px;
  box-shadow: 0 0 34px rgba(130, 194, 255, 0.5), 0 12px 28px rgba(8, 20, 42, 0.34), inset 0 0 20px rgba(120, 178, 255, 0.28);
}

.shop-item.shop-fx-item.equipped[data-shop-rarity="common"] {
  border-color: rgba(206, 224, 252, 0.92);
  outline-color: rgba(196, 216, 248, 0.58);
  box-shadow: 0 0 34px rgba(178, 202, 236, 0.46), 0 12px 28px rgba(8, 20, 42, 0.34), inset 0 0 20px rgba(164, 190, 230, 0.24);
}

.shop-item.shop-fx-item.equipped[data-shop-rarity="rare"] {
  border-color: rgba(182, 224, 255, 0.95);
  outline-color: rgba(152, 208, 255, 0.62);
  box-shadow: 0 0 36px rgba(118, 182, 255, 0.54), 0 12px 28px rgba(8, 20, 42, 0.34), inset 0 0 20px rgba(120, 178, 255, 0.3);
}

.shop-item.shop-fx-item.equipped[data-shop-rarity="legendary"] {
  border-color: rgba(255, 224, 158, 0.98);
  outline-color: rgba(255, 208, 126, 0.66);
  box-shadow: 0 0 38px rgba(255, 192, 98, 0.56), 0 12px 28px rgba(8, 20, 42, 0.34), inset 0 0 20px rgba(255, 194, 102, 0.28);
}

.shop-item.shop-fx-item.equipped[data-shop-rarity="epic"] {
  border-color: rgba(255, 198, 232, 0.98);
  outline-color: rgba(255, 168, 216, 0.72);
  box-shadow: 0 0 40px rgba(255, 134, 202, 0.6), 0 12px 28px rgba(8, 20, 42, 0.34), inset 0 0 22px rgba(255, 148, 210, 0.34);
}

.shop-item.shop-fx-item.owned .shop-fx-price {
  border-color: rgba(132, 220, 174, 0.45);
  background: rgba(20, 54, 44, 0.7);
  color: rgba(170, 242, 202, 0.97);
}

.shop-item.shop-fx-item[data-shop-rarity="legendary"] {
  --shop-fx-glow: 255, 196, 112;
  background: linear-gradient(140deg, rgba(132, 82, 24, 0.9), rgba(64, 34, 12, 0.95));
  border-color: rgba(255, 206, 124, 0.74);
}

.shop-item.shop-fx-item[data-shop-rarity="epic"] {
  --shop-fx-glow: 255, 142, 204;
  background: linear-gradient(140deg, rgba(224, 62, 150, 0.66), rgba(118, 24, 78, 0.84));
  border-color: rgba(255, 176, 222, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 218, 238, 0.2), 0 0 26px rgba(255, 132, 202, 0.3);
}

.shop-item.shop-fx-item[data-shop-rarity="rare"] {
  --shop-fx-glow: 132, 188, 255;
  background: linear-gradient(140deg, rgba(34, 82, 152, 0.9), rgba(16, 42, 88, 0.95));
  border-color: rgba(152, 206, 255, 0.72);
}

.shop-item.shop-fx-item[data-shop-rarity="uncommon"] {
  --shop-fx-glow: 140, 230, 188;
  background: linear-gradient(140deg, rgba(24, 98, 82, 0.9), rgba(12, 58, 46, 0.95));
  border-color: rgba(140, 230, 188, 0.7);
}

.shop-item.shop-fx-item[data-shop-rarity="common"] {
  --shop-fx-glow: 176, 198, 232;
}

.shop-display-item {
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 255, 0.24);
  background: linear-gradient(135deg, rgba(17, 30, 52, 0.72), rgba(12, 20, 34, 0.9));
  padding: 16px 14px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(150, 195, 255, 0.12);
}

.shop-display-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(58, 100, 170, 0.38);
  box-shadow: 0 0 24px rgba(120, 180, 255, 0.25);
}

.locker-stage {
  border-radius: 14px;
  border: 1px dashed rgba(120, 170, 240, 0.34);
  background: radial-gradient(circle at 50% 30%, rgba(54, 84, 138, 0.45), rgba(16, 22, 36, 0.96));
  min-height: 360px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  padding: 14px;
}

.locker-character-shell {
  width: min(100%, 360px);
  min-height: 248px;
  border-radius: 18px;
  border: 1px solid rgba(150, 190, 255, 0.3);
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 168, 255, 0.2), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(92, 248, 255, 0.12), transparent 42%),
    linear-gradient(150deg, rgba(20, 30, 50, 0.92), rgba(10, 16, 30, 0.98));
  box-shadow: 0 18px 34px rgba(8, 14, 26, 0.52), inset 0 0 24px rgba(110, 168, 255, 0.14);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.locker-character-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 62%, rgba(110, 190, 255, 0.22), rgba(110, 190, 255, 0) 64%);
  transition: background 0.25s ease;
}

.locker-silhouette {
  --char-head: #85b4ff;
  --char-visor: #9fe6ff;
  --char-torso: #5d7dc4;
  --char-legs: #354d86;
  width: 240px;
  height: 240px;
  border-radius: 20px;
  border: 1px solid rgba(145, 190, 255, 0.35);
  background: linear-gradient(160deg, rgba(75, 120, 194, 0.2), rgba(40, 58, 95, 0.5));
  box-shadow: inset 0 0 24px rgba(145, 190, 255, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.locker-char-head {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 76px;
  height: 76px;
  transform: translateX(-50%);
  border-radius: 24px;
  border: 1px solid rgba(210, 232, 255, 0.45);
  background: linear-gradient(165deg, color-mix(in srgb, var(--char-head) 88%, white 12%), var(--char-head));
  box-shadow: 0 0 18px color-mix(in srgb, var(--char-head) 40%, transparent);
}

.locker-char-visor {
  position: absolute;
  left: 50%;
  top: 56px;
  width: 54px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(210, 236, 255, 0.5);
  background: linear-gradient(90deg, rgba(138, 220, 255, 0.5), color-mix(in srgb, var(--char-visor) 82%, white 18%), rgba(138, 220, 255, 0.5));
  box-shadow: 0 0 14px color-mix(in srgb, var(--char-visor) 42%, transparent);
}

.locker-char-body {
  position: absolute;
  left: 50%;
  top: 104px;
  width: 96px;
  height: 84px;
  transform: translateX(-50%);
  border-radius: 22px 22px 18px 18px;
  border: 1px solid rgba(182, 210, 255, 0.4);
  background: linear-gradient(170deg, color-mix(in srgb, var(--char-torso) 85%, white 15%), var(--char-torso));
  box-shadow: 0 0 16px color-mix(in srgb, var(--char-torso) 34%, transparent);
}

.locker-char-arms {
  position: absolute;
  left: 50%;
  top: 114px;
  width: 148px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(152, 188, 246, 0.54), rgba(108, 142, 214, 0.6), rgba(152, 188, 246, 0.54));
}

.locker-char-legs {
  position: absolute;
  left: 50%;
  top: 182px;
  width: 82px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 14px;
  border: 1px solid rgba(166, 198, 248, 0.35);
  background: linear-gradient(170deg, color-mix(in srgb, var(--char-legs) 82%, white 18%), var(--char-legs));
}

.locker-char-name {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(218, 232, 255, 0.88);
  white-space: nowrap;
}

.locker-character-loadout {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  z-index: 2;
}

.locker-character-chip {
  border-radius: 8px;
  border: 1px solid rgba(126, 170, 238, 0.24);
  background: rgba(14, 24, 42, 0.78);
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(208, 226, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.locker-part-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.locker-part-row {
  border-radius: 10px;
  border: 1px solid rgba(120, 150, 200, 0.24);
  background: rgba(20, 28, 46, 0.68);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.locker-part-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(132, 172, 236, 0.32);
  background: rgba(20, 34, 58, 0.72);
  color: rgba(220, 234, 255, 0.92);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.locker-part-arrow:hover {
  border-color: rgba(162, 202, 255, 0.52);
  background: rgba(30, 50, 84, 0.84);
  transform: translateY(-1px);
}

.locker-part-value {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.locker-part-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(156, 182, 226, 0.86);
}

.locker-part-value strong {
  font-size: 12px;
  color: rgba(226, 236, 255, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.locker-character-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.locker-control-card + .locker-control-card {
  margin-top: 12px;
}

.locker-control-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.locker-control-card .locker-disabled-note {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 170, 205, 0.8);
}

.locker-actions .auth-primary,
.locker-actions .confirm-btn {
  width: 100%;
  justify-content: center;
}

.locker-status:empty {
  min-height: 0;
  margin-top: 0;
}

.locker-presets {
  display: grid;
  gap: 8px;
}

.locker-preset-row.disabled {
  opacity: 0.58;
}

.shop-item-detail-modal::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: radial-gradient(ellipse 80% 120% at 50% -10%, rgba(96, 140, 232, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shop-item-detail-media::before {
  content: '';
  position: absolute;
  inset: -28px;
  background: radial-gradient(ellipse at center, rgba(88, 138, 246, 0.22), transparent 70%);
  pointer-events: none;
}

.shop-item-detail-media.visible {
  display: flex;
}

#shopItemDetailGif {
  width: 144px;
  height: 144px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(148, 100, 255, 0.56));
  display: none;
}

.shop-item-detail-cosmetic-preview::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 224px;
  height: 224px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 186, 255, 0.26), rgba(84, 126, 230, 0.16) 44%, rgba(26, 42, 94, 0.03) 74%, transparent 88%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.shop-item-detail-media.gameplay #shopItemDetailGif {
  display: block;
}

.shop-item-detail-media.cosmetic .shop-item-detail-cosmetic-preview {
  display: flex;
}

.shop-item-detail-cosmetic-shell.no-avatar img {
  display: none;
}

#shopItemDetailCosmeticAvatar {
  width: 108%;
  height: 108%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.28));
}

.shop-item-detail-tags .shop-item-badge {
  line-height: 1.2;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
}

.shop-item-detail-bundle-list.visible {
  display: grid;
}

.shop-item-detail-bundle-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(108, 142, 198, 0.32);
  background: rgba(18, 30, 50, 0.68);
  padding: 10px 10px;
  min-height: 50px;
}

.shop-item-detail-bundle-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(150, 186, 236, 0.34);
  background: rgba(24, 38, 62, 0.82);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(220, 236, 255, 0.94);
  font-size: 15px;
}

.shop-item-detail-bundle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-item-detail-bundle-name {
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(224, 238, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-item-detail-bundle-kind {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 196, 236, 0.82);
}

.shop-item-detail-bundle-row.rarity-common {
  border-color: rgba(146, 170, 210, 0.36);
  background: linear-gradient(145deg, rgba(30, 42, 66, 0.72), rgba(18, 28, 46, 0.72));
}

.shop-item-detail-bundle-row.rarity-uncommon {
  border-color: rgba(110, 204, 160, 0.44);
  background: linear-gradient(145deg, rgba(28, 70, 58, 0.72), rgba(18, 42, 36, 0.72));
  box-shadow: inset 0 0 0 1px rgba(128, 226, 178, 0.1);
}

.shop-item-detail-bundle-row.rarity-rare {
  border-color: rgba(120, 184, 255, 0.5);
  background: linear-gradient(145deg, rgba(24, 62, 110, 0.74), rgba(16, 40, 74, 0.74));
  box-shadow: inset 0 0 0 1px rgba(140, 198, 255, 0.12);
}

.shop-item-detail-bundle-row.rarity-epic {
  border-color: rgba(236, 144, 214, 0.54);
  background: linear-gradient(145deg, rgba(98, 36, 92, 0.74), rgba(62, 22, 58, 0.74));
  box-shadow: inset 0 0 0 1px rgba(255, 170, 232, 0.12);
}

.shop-item-detail-bundle-row.rarity-legendary {
  border-color: rgba(255, 198, 118, 0.58);
  background: linear-gradient(145deg, rgba(112, 72, 24, 0.76), rgba(68, 42, 16, 0.76));
  box-shadow: inset 0 0 0 1px rgba(255, 216, 150, 0.14);
}

.shop-item-detail-bundle-row.rarity-rare .shop-item-detail-bundle-icon,
.shop-item-detail-bundle-row.rarity-epic .shop-item-detail-bundle-icon,
.shop-item-detail-bundle-row.rarity-legendary .shop-item-detail-bundle-icon {
  box-shadow: 0 0 0 1px rgba(180, 214, 255, 0.14), 0 8px 14px rgba(10, 18, 34, 0.34);
}

.shop-item-detail-preview.active {
  display: grid;
}

.shop-item-detail-price .shop-price-stack {
  gap: 2px;
}

.shop-item-detail-price .shop-price-cut {
  font-size: 12px;
  opacity: 0.68;
}

.shop-item-detail-price .shop-price-main {
  font-size: 20px;
  font-weight: 800;
}

.shop-item-detail-price.discounted .shop-price-main {
  font-size: 22px;
}

.shop-item-detail-price .shop-price-off {
  font-size: 11px;
}

.shop-item-detail-price .token-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 10px rgba(182, 124, 255, 0.64));
}

#shopItemDetailBuyBtn {
  background: linear-gradient(135deg, rgba(92, 138, 228, 0.38), rgba(144, 96, 255, 0.3));
  border: 1px solid rgba(128, 168, 242, 0.6);
  box-shadow: 0 0 22px rgba(106, 152, 238, 0.26), inset 0 1px 0 rgba(200, 220, 255, 0.12);
  color: rgba(228, 240, 255, 0.98);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 11px 26px;
}

#shopItemDetailBuyBtn:hover {
  box-shadow: 0 0 34px rgba(120, 168, 255, 0.46), inset 0 1px 0 rgba(210, 228, 255, 0.18);
  transform: translateY(-1px);
  border-color: rgba(148, 188, 255, 0.82);
}

@keyframes passOptionReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.965);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.pass-options-grid .stripe-package-name { display: none; }

.pass-fire-layer::before,
.pass-fire-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pass-fire-layer::before {
  background:
    radial-gradient(3px 3px at 8% 92%,   rgba(255, 210, 150, 0.75), rgba(255, 210, 150, 0)),
    radial-gradient(2.5px 2.5px at 18% 88%, rgba(255, 178, 116, 0.72), rgba(255, 178, 116, 0)),
    radial-gradient(2.8px 2.8px at 31% 94%, rgba(255, 156, 102, 0.72), rgba(255, 156, 102, 0)),
    radial-gradient(2.2px 2.2px at 44% 90%, rgba(255, 136, 88,  0.74), rgba(255, 136, 88,  0)),
    radial-gradient(3px 3px at 58% 93%,   rgba(255, 200, 136, 0.7),  rgba(255, 200, 136, 0)),
    radial-gradient(2.4px 2.4px at 71% 90%, rgba(255, 142, 96,  0.75), rgba(255, 142, 96,  0)),
    radial-gradient(2.6px 2.6px at 84% 95%, rgba(255, 180, 112, 0.7),  rgba(255, 180, 112, 0)),
    radial-gradient(2.2px 2.2px at 94% 91%, rgba(255, 150, 96,  0.72), rgba(255, 150, 96,  0));
  animation: passFireParticles 2.1s linear infinite;
}

.pass-fire-layer::after {
  background:
    radial-gradient(2.2px 2.2px at 12% 96%, rgba(255, 224, 168, 0.6),  rgba(255, 224, 168, 0)),
    radial-gradient(2px 2px at 24% 94%,     rgba(255, 188, 126, 0.58), rgba(255, 188, 126, 0)),
    radial-gradient(2.2px 2.2px at 39% 97%, rgba(255, 162, 106, 0.56), rgba(255, 162, 106, 0)),
    radial-gradient(2px 2px at 52% 95%,     rgba(255, 188, 124, 0.56), rgba(255, 188, 124, 0)),
    radial-gradient(2.4px 2.4px at 66% 96%, rgba(255, 152, 102, 0.58), rgba(255, 152, 102, 0)),
    radial-gradient(2px 2px at 78% 94%,     rgba(255, 196, 132, 0.56), rgba(255, 196, 132, 0)),
    radial-gradient(2.2px 2.2px at 90% 97%, rgba(255, 164, 110, 0.56), rgba(255, 164, 110, 0));
  animation: passFireParticles 2.7s linear infinite reverse;
  opacity: 0.8;
}

@keyframes passFireFlow {
  0%, 100% { transform: translateY(0);   opacity: 0.58; }
  50%       { transform: translateY(-4px); opacity: 0.82; }
}

@keyframes passFireParticles {
  0%   { transform: translateY(0);   opacity: 0.78; }
  100% { transform: translateY(-9px); opacity: 0.18; }
}

@keyframes voyagerTitleShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes interstellarFireText {
  0%   { background-position: 50% 0%; }
  100% { background-position: 50% 100%; }
}

.signup-bonus-payout img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

@keyframes helpModalDismiss {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to   { transform: scale(0.93) translateY(-10px); opacity: 0; }
}

.help-modal.dismissing {
  animation: helpModalDismiss 0.26s cubic-bezier(0.4, 0, 1, 1) both;
}

@media (max-width: 768px) {

  .help-contact-pill {
    width: 100%;
    max-width: 100%;
    padding: 14px 14px 15px;
  }

  .help-contact-pill .help-label {
    font-size: 12px;
  }

  .help-contact-pill .help-email {
    font-size: clamp(21px, 5.6vw, 25px);
    line-height: 1.1;
  }

}

.signup-bonus-stage.ringing .signup-bonus-stage-core {
  animation: signupBonusCoreBurst 0.95s ease-out;
}

.signup-bonus-stage-bands span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 176, 246, 0), rgba(132, 176, 246, 0.45), rgba(132, 176, 246, 0));
  animation: signupBandSweep 2.4s linear infinite;
}

.signup-bonus-stage-bands span:nth-child(1) { top: 24%; animation-delay: 0s; }

.signup-bonus-stage-bands span:nth-child(2) { top: 42%; animation-delay: 0.36s; }

.signup-bonus-stage-bands span:nth-child(3) { top: 60%; animation-delay: 0.72s; }

.signup-bonus-stage-bands span:nth-child(4) { top: 78%; animation-delay: 1.08s; }

.signup-bonus-stage.ringing .signup-bonus-flash {
  animation: signupFlashExplode 0.9s cubic-bezier(0.12, 0.7, 0.24, 1) forwards;
}

.signup-bonus-stage.fade-out {
  animation: signupStageFadeOut 0.65s ease forwards;
}

#signupBonusModal.fade-out .signup-bonus-modal {
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

@keyframes signupBonusCorePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(132, 178, 255, 0.58), 0 0 48px rgba(160, 96, 255, 0.34); }
  50% { transform: scale(1.12); box-shadow: 0 0 30px rgba(146, 198, 255, 0.74), 0 0 64px rgba(184, 96, 255, 0.44); }
}

@keyframes signupBonusCoreBurst {
  0% { transform: scale(1); }
  35% { transform: scale(1.44); }
  100% { transform: scale(1); }
}

@keyframes signupBandSweep {
  0% { transform: translateX(-8%); opacity: 0.2; }
  50% { transform: translateX(8%); opacity: 0.85; }
  100% { transform: translateX(-8%); opacity: 0.2; }
}

@keyframes signupFlashExplode {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@keyframes signupStageFadeOut {
  from { opacity: 1; }
  to { opacity: 0.78; filter: saturate(0.8); }
}

#shopPostPurchaseModal.active .shop-post-icon {
  animation: shopPostIconPop 420ms cubic-bezier(0.175, 0.885, 0.32, 1.3) 50ms both;
}

#shopPostPurchaseModal.active .shop-post-burst-ring {
  animation: shopPostBurstRing 600ms ease-out 120ms forwards;
}

#shopPostPurchaseModal.active .shop-post-burst-ring-2 {
  animation: shopPostBurstRing 600ms ease-out 240ms forwards;
}

#shopPostPurchaseModal.active .shop-post-modal .modal-title {
  animation: shopPostTitleGlow 420ms ease-out 160ms both;
}

#shopPostPurchaseModal.active .shop-post-unlock-badge {
  animation: shopPostTextIn 320ms ease-out 220ms both;
}

.shop-post-body #shopPostPurchaseText {
  text-align: center;
  font-size: 14px;
  color: rgba(208, 228, 252, 0.94);
}

#shopPostPurchaseModal.active #shopPostPurchaseText {
  animation: shopPostTextIn 320ms ease-out 260ms both;
}

#shopPostContinueBtn {
  color: rgba(170, 195, 235, 0.9);
  border-color: rgba(140, 170, 220, 0.45);
}

#shopPostContinueBtn:hover {
  color: rgba(210, 228, 255, 0.98);
  border-color: rgba(170, 200, 250, 0.65);
  background: rgba(140, 170, 220, 0.1);
}

#shopPostLockerBtn {
  background: linear-gradient(135deg, rgba(122, 188, 255, 0.95), rgba(96, 142, 238, 0.92));
  color: rgba(8, 14, 26, 0.96);
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(66, 122, 206, 0.34), 0 0 16px rgba(122, 188, 255, 0.3);
}

#shopPostLockerBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74, 136, 228, 0.44), 0 0 24px rgba(132, 198, 255, 0.44);
  background: linear-gradient(135deg, rgba(140, 200, 255, 0.98), rgba(108, 158, 248, 0.95));
}

#shopPostPurchaseModal.autoclose .shop-post-actions {
  display: none;
}

#shopPostPurchaseModal.active .shop-post-modal {
  animation: shopPostConfirmPop 380ms cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards,
             shopPostConfirmGlow 1800ms ease-out 40ms forwards;
  box-shadow: 0 26px 72px rgba(24, 64, 110, 0.55), 0 0 0 1px rgba(132, 190, 255, 0.42), inset 0 1px 0 rgba(228, 246, 255, 0.18);
}

#shopPostPurchaseModal.autoclose .shop-post-modal {
  max-width: 460px;
}

#shopPostPurchaseModal.autoclose .shop-post-body {
  padding: 12px 28px 22px;
  gap: 8px;
}

#shopPostPurchaseModal.fade-out .shop-post-modal {
  animation: shopPostFadeOut 280ms ease forwards !important;
}

@keyframes shopPostConfirmPop {
  0%   { opacity: 0; transform: scale(0.6) translateY(30px); }
  55%  { opacity: 1; transform: scale(1.06) translateY(-5px); }
  75%  { transform: scale(0.97) translateY(2px); }
  90%  { transform: scale(1.02) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shopPostConfirmGlow {
  0%   { box-shadow: 0 26px 72px rgba(24,64,110,0.55), 0 0 0 1px rgba(132,190,255,0.42), 0 0 0 rgba(82,194,255,0); }
  20%  { box-shadow: 0 26px 72px rgba(24,64,110,0.55), 0 0 0 1px rgba(132,190,255,0.42), 0 0 70px rgba(82,194,255,0.72), 0 0 120px rgba(148,96,255,0.42); }
  60%  { box-shadow: 0 26px 72px rgba(24,64,110,0.55), 0 0 0 1px rgba(132,190,255,0.42), 0 0 36px rgba(82,194,255,0.36), 0 0 68px rgba(148,96,255,0.2); }
  100% { box-shadow: 0 26px 72px rgba(24,64,110,0.45), 0 0 0 1px rgba(132,190,255,0.32), 0 0 10px rgba(82,194,255,0.1), 0 0 0 rgba(148,96,255,0); }
}

@keyframes shopPostIconPop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-20deg); }
  55%  { opacity: 1; transform: scale(1.32) rotate(10deg); }
  75%  { transform: scale(0.9) rotate(-4deg); }
  90%  { transform: scale(1.07) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes shopPostBurstRing {
  0%   { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(3.6); }
}

@keyframes shopPostTitleGlow {
  0%   { opacity: 0; transform: translateY(6px); text-shadow: 0 0 0 rgba(108,214,255,0); }
  45%  { opacity: 1; text-shadow: 0 0 32px rgba(108,214,255,1), 0 0 60px rgba(148,100,255,0.6); }
  100% { opacity: 1; transform: translateY(0); text-shadow: 0 0 12px rgba(108,214,255,0.3); }
}

@keyframes shopPostTextIn {
  0%   { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shopPostFadeOut {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(14px) scale(0.95); }
}

.pass-welcome-overlay.active {
  opacity: 1;
}

@keyframes passWelcomeDismiss {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to   { transform: scale(0.94) translateY(-12px); opacity: 0; }
}

.pass-welcome-modal.dismissing {
  animation: passWelcomeDismiss 0.3s cubic-bezier(0.4, 0, 1, 1) both;
}

.pass-welcome-confirm-btn:active {
  transform: translateY(0);
  opacity: 0.88;
}

.locker-fx-grid::-webkit-scrollbar {
  width: 8px;
}

.locker-fx-grid::-webkit-scrollbar-track {
  background: rgba(22, 30, 46, 0.65);
  border-radius: 999px;
}

.locker-fx-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(154, 182, 232, 0.7), rgba(104, 132, 186, 0.7));
  border-radius: 999px;
}

.locker-fx-btn[data-fx-rarity]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(
    90deg,
    rgba(var(--shop-rarity-rgb), 1) 0%,
    rgba(var(--shop-rarity-rgb), 1) 50%,
    rgba(var(--shop-rarity-rgb), 1) 100%
  );
  box-shadow: 0 0 14px rgba(var(--shop-rarity-rgb), 0.5);
  opacity: 1;
  transition: box-shadow 0.22s ease, height 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

.locker-fx-btn[data-fx-choice="none"] .locker-fx-name {
  color: rgba(200, 206, 216, 0.9);
}

.locker-fx-btn[data-fx-choice="none"] .locker-fx-desc {
  color: rgba(164, 172, 184, 0.88);
}

.locker-fx-btn[data-fx-rarity]:hover::after {
  height: 6px;
  box-shadow: 0 0 20px rgba(var(--shop-rarity-rgb), 0.72);
}

.locker-fx-btn.active::before {
  opacity: 1;
}

.locker-fx-btn.active .locker-fx-name {
  color: rgba(246, 250, 255, 1);
  text-shadow: 0 0 12px rgba(var(--fx-glow), 0.66);
}

.locker-fx-btn.equipped.active {
  border-color: rgba(120, 255, 208, 1);
  outline: 3px solid rgba(88, 244, 186, 0.75);
  box-shadow: 0 0 40px rgba(88, 255, 200, 0.55), 0 12px 28px rgba(88, 255, 200, 0.28), inset 0 0 24px rgba(82, 230, 185, 0.34);
}

.locker-fx-btn.locked {
  opacity: 1;
  filter: none;
  border-style: solid;
}

.locker-lock-indicator::after {
  content: none;
}

.locker-lock-indicator:hover::after,
.locker-lock-indicator:focus-visible::after {
  opacity: 0;
}

.locker-fx-btn[data-fx-choice="none"].active {
  border-color: rgba(156, 164, 176, 0.48);
  box-shadow: inset 0 0 14px rgba(126, 134, 148, 0.18);
  background: linear-gradient(135deg, rgba(60, 66, 76, 0.82), rgba(32, 36, 44, 0.92));
}

.locker-fx-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {

  .shop-item .shop-item-badge[class*="rarity-"] {
    margin-top: -5px;
  }

  .locker-fx-btn[data-fx-rarity]::after {
    height: 8px;
  }

  .locker-fx-btn[data-fx-rarity]:hover::after {
    height: 9px;
  }

}

.locker-fx-preview {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 210, 0.23);
  background: rgba(12, 18, 30, 0.72);
  padding: 10px;
}

.locker-fx-preview-label {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.locker-fx-preview-stage {
  border-radius: 10px;
  border: 1px solid rgba(140, 170, 220, 0.2);
  min-height: 100px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 88, 140, 0.45), rgba(12, 20, 34, 0.9));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.locker-fx-preview-action {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.chat-cosmetics-grid {
  grid-template-columns: repeat(2, 180px);
  justify-content: start;
}

.shop-cosmetic-collection {
  border: 1px solid rgba(155, 190, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(22, 30, 47, 0.72), rgba(12, 18, 32, 0.7));
  margin-bottom: 14px;
}

.shop-cosmetic-collection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shop-cosmetic-collection-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d8ebff;
  text-transform: uppercase;
}

.shop-cosmetic-collection-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.shop-cosmetic-collection-progress {
  font-size: 11px;
  color: #c9deff;
  border: 1px solid rgba(124, 173, 255, 0.35);
  background: rgba(69, 104, 165, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.shop-cosmetic-subtitle {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(162, 197, 255, 0.9);
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.shop-cosmetic-subgroup:last-child {
  margin-bottom: 0;
}

.shop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shop-item:hover {
  border-color: var(--border-glow);
  background: rgba(140, 160, 200, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
}

.shop-item:hover::before {
  opacity: 1;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity]::after,
.shop-item[data-item^="profile-avatar-"][data-shop-rarity]::after,
.shop-item[data-item^="profile-bg-"][data-shop-rarity]::after,
.shop-item[data-item^="profile-bundle-"][data-shop-rarity]::after,
.shop-item[data-shop-category="profile-fx"][data-shop-rarity]::after,
.shop-item[data-shop-category="avatar"][data-shop-rarity]::after,
.shop-item[data-shop-category="background"][data-shop-rarity]::after,
.shop-item[data-shop-category="bundle"][data-shop-rarity]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(
    90deg,
    rgba(var(--shop-rarity-rgb), 1) 0%,
    rgba(var(--shop-rarity-rgb), 1) 50%,
    rgba(var(--shop-rarity-rgb), 1) 100%
  );
  box-shadow: 0 0 14px rgba(var(--shop-rarity-rgb), 0.5);
  opacity: 1;
  transition: box-shadow 0.22s ease, opacity 0.22s ease, height 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity]:hover::after,
.shop-item[data-item^="profile-avatar-"][data-shop-rarity]:hover::after,
.shop-item[data-item^="profile-bg-"][data-shop-rarity]:hover::after,
.shop-item[data-item^="profile-bundle-"][data-shop-rarity]:hover::after,
.shop-item[data-shop-category="profile-fx"][data-shop-rarity]:hover::after,
.shop-item[data-shop-category="avatar"][data-shop-rarity]:hover::after,
.shop-item[data-shop-category="background"][data-shop-rarity]:hover::after,
.shop-item[data-shop-category="bundle"][data-shop-rarity]:hover::after {
  height: 6px;
  box-shadow: 0 0 20px rgba(var(--shop-rarity-rgb), 0.72);
  opacity: 1;
}

@media (max-width: 768px) {

  .shop-item[data-item^="profile-fx-"][data-shop-rarity]::after,
  .shop-item[data-item^="profile-avatar-"][data-shop-rarity]::after,
  .shop-item[data-item^="profile-bg-"][data-shop-rarity]::after,
  .shop-item[data-item^="profile-bundle-"][data-shop-rarity]::after,
  .shop-item[data-shop-category="profile-fx"][data-shop-rarity]::after,
  .shop-item[data-shop-category="avatar"][data-shop-rarity]::after,
  .shop-item[data-shop-category="background"][data-shop-rarity]::after,
  .shop-item[data-shop-category="bundle"][data-shop-rarity]::after {
    height: 8px;
  }

  .shop-item[data-item^="profile-fx-"][data-shop-rarity]:hover::after,
  .shop-item[data-item^="profile-avatar-"][data-shop-rarity]:hover::after,
  .shop-item[data-item^="profile-bg-"][data-shop-rarity]:hover::after,
  .shop-item[data-item^="profile-bundle-"][data-shop-rarity]:hover::after,
  .shop-item[data-shop-category="profile-fx"][data-shop-rarity]:hover::after,
  .shop-item[data-shop-category="avatar"][data-shop-rarity]:hover::after,
  .shop-item[data-shop-category="background"][data-shop-rarity]:hover::after,
  .shop-item[data-shop-category="bundle"][data-shop-rarity]:hover::after {
    height: 9px;
  }

}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="legendary"],
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="legendary"],
.shop-item[data-item^="profile-bg-"][data-shop-rarity="legendary"],
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="legendary"],
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="legendary"],
.shop-item[data-shop-category="avatar"][data-shop-rarity="legendary"],
.shop-item[data-shop-category="background"][data-shop-rarity="legendary"],
.shop-item[data-shop-category="bundle"][data-shop-rarity="legendary"] {
  --shop-rarity-rgb: 236, 160, 66;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="epic"],
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="epic"],
.shop-item[data-item^="profile-bg-"][data-shop-rarity="epic"],
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="epic"],
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="epic"],
.shop-item[data-shop-category="avatar"][data-shop-rarity="epic"],
.shop-item[data-shop-category="background"][data-shop-rarity="epic"],
.shop-item[data-shop-category="bundle"][data-shop-rarity="epic"] {
  --shop-rarity-rgb: 255, 118, 194;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="rare"],
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="rare"],
.shop-item[data-item^="profile-bg-"][data-shop-rarity="rare"],
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="rare"],
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="rare"],
.shop-item[data-shop-category="avatar"][data-shop-rarity="rare"],
.shop-item[data-shop-category="background"][data-shop-rarity="rare"],
.shop-item[data-shop-category="bundle"][data-shop-rarity="rare"] {
  --shop-rarity-rgb: 112, 182, 255;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="uncommon"],
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="uncommon"],
.shop-item[data-item^="profile-bg-"][data-shop-rarity="uncommon"],
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="uncommon"],
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="uncommon"],
.shop-item[data-shop-category="avatar"][data-shop-rarity="uncommon"],
.shop-item[data-shop-category="background"][data-shop-rarity="uncommon"],
.shop-item[data-shop-category="bundle"][data-shop-rarity="uncommon"] {
  --shop-rarity-rgb: 96, 214, 156;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="common"],
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="common"],
.shop-item[data-item^="profile-bg-"][data-shop-rarity="common"],
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="common"],
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="common"],
.shop-item[data-shop-category="avatar"][data-shop-rarity="common"],
.shop-item[data-shop-category="background"][data-shop-rarity="common"],
.shop-item[data-shop-category="bundle"][data-shop-rarity="common"] {
  --shop-rarity-rgb: 190, 208, 240;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="common"]::after,
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="common"]::after,
.shop-item[data-item^="profile-bg-"][data-shop-rarity="common"]::after,
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="common"]::after,
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="common"]::after,
.shop-item[data-shop-category="avatar"][data-shop-rarity="common"]::after,
.shop-item[data-shop-category="background"][data-shop-rarity="common"]::after,
.shop-item[data-shop-category="bundle"][data-shop-rarity="common"]::after {
  background: linear-gradient(
    90deg,
    rgba(var(--shop-rarity-rgb), 1) 0%,
    rgba(var(--shop-rarity-rgb), 1) 50%,
    rgba(var(--shop-rarity-rgb), 1) 100%
  );
  box-shadow: 0 0 8px rgba(var(--shop-rarity-rgb), 0.2);
  opacity: 1;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity="common"]:hover::after,
.shop-item[data-item^="profile-avatar-"][data-shop-rarity="common"]:hover::after,
.shop-item[data-item^="profile-bg-"][data-shop-rarity="common"]:hover::after,
.shop-item[data-item^="profile-bundle-"][data-shop-rarity="common"]:hover::after,
.shop-item[data-shop-category="profile-fx"][data-shop-rarity="common"]:hover::after,
.shop-item[data-shop-category="avatar"][data-shop-rarity="common"]:hover::after,
.shop-item[data-shop-category="background"][data-shop-rarity="common"]:hover::after,
.shop-item[data-shop-category="bundle"][data-shop-rarity="common"]:hover::after {
  box-shadow: 0 0 10px rgba(var(--shop-rarity-rgb), 0.28);
  opacity: 1;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity],
.shop-item[data-item^="profile-avatar-"][data-shop-rarity],
.shop-item[data-item^="profile-bg-"][data-shop-rarity],
.shop-item[data-item^="profile-bundle-"][data-shop-rarity],
.shop-item[data-shop-category="profile-fx"][data-shop-rarity],
.shop-item[data-shop-category="avatar"][data-shop-rarity],
.shop-item[data-shop-category="background"][data-shop-rarity],
.shop-item[data-shop-category="bundle"][data-shop-rarity] {
  padding-top: 24px;
  padding-bottom: 8px;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity] .shop-item-icon,
.shop-item[data-item^="profile-avatar-"][data-shop-rarity] .shop-item-icon,
.shop-item[data-item^="profile-bg-"][data-shop-rarity] .shop-item-icon,
.shop-item[data-item^="profile-bundle-"][data-shop-rarity] .shop-item-icon,
.shop-item[data-shop-category="profile-fx"][data-shop-rarity] .shop-item-icon,
.shop-item[data-shop-category="avatar"][data-shop-rarity] .shop-item-icon,
.shop-item[data-shop-category="background"][data-shop-rarity] .shop-item-icon,
.shop-item[data-shop-category="bundle"][data-shop-rarity] .shop-item-icon {
  margin-bottom: 10px;
}

.shop-item[data-item^="profile-fx-"][data-shop-rarity] .shop-item-price,
.shop-item[data-item^="profile-avatar-"][data-shop-rarity] .shop-item-price,
.shop-item[data-item^="profile-bg-"][data-shop-rarity] .shop-item-price,
.shop-item[data-item^="profile-bundle-"][data-shop-rarity] .shop-item-price,
.shop-item[data-shop-category="profile-fx"][data-shop-rarity] .shop-fx-price,
.shop-item[data-shop-category="avatar"][data-shop-rarity] .shop-item-price,
.shop-item[data-shop-category="background"][data-shop-rarity] .shop-item-price,
.shop-item[data-shop-category="bundle"][data-shop-rarity] .shop-item-price {
  margin-top: 7px;
}

.shop-item.purchase-shake,
.stripe-package.purchase-shake {
  animation: purchaseShake 0.45s ease;
}

.shop-item-icon.icons { background: rgba(120, 200, 220, 0.18); box-shadow: 0 0 18px rgba(120, 200, 220, 0.25); }

.shop-item-icon.badge { background: rgba(255, 210, 140, 0.18); box-shadow: 0 0 18px rgba(255, 210, 140, 0.25); }

.shop-item-icon.avatar .avatar-shell,
.shop-item-icon.background .avatar-shell {
  width: 56px;
  height: 56px;
  border-width: 1px;
  box-shadow: none;
}

.shop-item-icon.bundle {
  background: linear-gradient(135deg, rgba(102, 156, 255, 0.28), rgba(188, 118, 255, 0.24));
}

.shop-item-subdesc {
  font-size: 10px;
  color: rgba(176, 206, 255, 0.86);
  line-height: 1.35;
  min-height: 30px;
  margin: -4px 0 10px;
}

.shop-item-price.discounted .shop-price-main,
.shop-fx-price.discounted .shop-price-main {
  font-size: 16px;
}

.shop-item-price.discounted .shop-price-cut,
.shop-fx-price.discounted .shop-price-cut {
  font-size: 9px;
  opacity: 0.64;
}

.shop-price-cut .token-icon {
  width: 11px;
  height: 11px;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(178, 120, 255, 0.5));
}

.shop-price-main .token-icon {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 7px rgba(182, 124, 255, 0.58));
}

.shop-item-price .token-icon {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 8px rgba(186, 128, 255, 0.62));
}

.shop-item-icon.pop,
.shop-item-price.pop,
.stripe-package-tokens.pop,
.stripe-package-price.pop {
  animation: iconPop 0.5s ease;
}

.shop-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
  grid-column: 1 / -1;
  display: none;
}

@media (max-width: 900px) {

  .shop-wallet-shell .shop-pass-card {
    order: 1;
  }

  .shop-wallet-shell .shop-wallet-card {
    order: 2;
  }

  .shop-wallet-shell .shop-inventory-card:not(.shop-pass-card) {
    order: 3;
  }

  .shop-inventory-grid .shop-inventory-row:nth-child(5) {
    grid-column: auto;
  }

  .shop-inventory-row em,
  .shop-inventory-row[data-tooltip]::after,
  .shop-inventory-qty-prefix {
    display: none !important;
  }

  .shop-feature-grid,
  .shop-showcase-grid {
    grid-template-columns: 1fr;
  }

  .powerup-wide-grid .shop-item-price {
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(152, 196, 255, 0.36);
    background: linear-gradient(140deg, rgba(42, 78, 132, 0.5), rgba(18, 44, 86, 0.64));
    box-shadow:
      inset 0 1px 0 rgba(210, 232, 255, 0.18),
      0 0 0 1px rgba(108, 170, 255, 0.2),
      0 8px 20px rgba(6, 20, 44, 0.34),
      0 0 16px rgba(86, 158, 255, 0.26);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .powerup-wide-grid .shop-item.shop-bundle-item .shop-bundle-bullets {
    font-size: 10px;
  }

  .powerup-wide-grid .shop-item,
  .token-topup-grid .stripe-package {
    width: 100%;
  }

  .shop-divider {
    display: block;
  }

  .token-topup-grid .stripe-package.popular::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
  }

  .expedition-timeline-actions {
    justify-content: flex-start;
  }

}

.confirm-modal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(140, 170, 220, 0.45), rgba(200, 180, 255, 0.15));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.8;
}

.confirm-powerup-media.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

#confirmPowerupGif {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.confirm-item-preview.visible {
  display: grid;
}

.confirm-item-icon .shop-item-icon {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}

.confirm-item-icon .shop-item-icon.avatar .avatar-shell,
.confirm-item-icon .shop-item-icon.background .avatar-shell {
  width: 44px;
  height: 44px;
}

.confirm-item-emoji {
  font-size: 28px;
  line-height: 1;
}

.confirm-item-tags .shop-item-badge {
  font-size: 8px;
  padding: 3px 7px;
}

.confirm-bundle-list {
  display: none;
  max-height: 244px;
  overflow-y: auto;
  border: 1px solid rgba(116, 152, 214, 0.3);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12, 20, 36, 0.84), rgba(8, 12, 22, 0.9));
  padding: 8px;
  gap: 8px;
}

.confirm-bundle-list.visible {
  display: grid;
}

.confirm-bundle-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(106, 138, 194, 0.34);
  background: rgba(20, 30, 50, 0.66);
  padding: 7px 9px;
}

.confirm-bundle-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(154, 186, 236, 0.36);
  background: rgba(26, 40, 64, 0.85);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.confirm-bundle-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirm-bundle-row-icon.fx {
  font-size: 17px;
  color: rgba(222, 236, 255, 0.94);
}

.confirm-bundle-fx-glyph {
  line-height: 1;
  transform: translateY(1px);
}

.confirm-bundle-row-name {
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(224, 238, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirm-bundle-row-kind {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(166, 194, 234, 0.8);
}

#confirmText.error {
  color: rgba(255, 164, 164, 0.95);
}

.confirm-btn:hover {
  border-color: var(--border-glow);
  background: rgba(140, 160, 200, 0.2);
}

.confirm-btn.ghost:hover {
  color: var(--text-bright);
  background: rgba(140, 160, 200, 0.08);
}

.confirm-burst {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(200, 215, 255, 0.6), transparent 60%);
  opacity: 0;
  animation: confirmBurst 0.5s ease-out forwards;
  pointer-events: none;
}

.shop-item.pop {
  animation: shopPop 0.45s ease;
}

@keyframes confirmPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(140, 170, 220, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 30px rgba(160, 190, 240, 0.55); }
}

@keyframes confirmBurst {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes shopPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(140, 170, 220, 0.45); }
  100% { transform: scale(1); }
}

@keyframes iconPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes inventoryPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes purchaseParticle {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.95; }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.1);
    opacity: 0;
  }
}

@keyframes purchaseFlare {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@keyframes purchaseShake {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  20% { transform: translate3d(-3px, 2px, 0) scale(1.02); }
  40% { transform: translate3d(3px, -2px, 0) scale(1.02); }
  60% { transform: translate3d(-2px, 1px, 0) scale(1.01); }
  80% { transform: translate3d(2px, -1px, 0) scale(1.01); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes purchaseGlow {
  0% { box-shadow: 0 0 0 rgba(150, 210, 255, 0); }
  45% { box-shadow: 0 0 40px rgba(160, 220, 255, 0.6), 0 0 80px rgba(120, 180, 255, 0.35); }
  100% { box-shadow: 0 0 0 rgba(150, 210, 255, 0); }
}

@media (max-width: 720px) {

  .confirm-powerup-media.visible {
    width: 100%;
  }

  #confirmPowerupGif {
    width: 130px;
    height: 130px;
  }

}

.auth-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% -30%, rgba(38, 78, 160, 0.14), transparent 50%),
    radial-gradient(circle at 15% 30%, rgba(26, 54, 122, 0.13), transparent 44%),
    linear-gradient(160deg, rgba(9, 13, 24, 0.78), rgba(6, 8, 15, 0.8));
  opacity: 1;
}

.auth-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(84, 146, 255, 0.18), transparent 46%),
    radial-gradient(circle at 82% 16%, rgba(166, 102, 255, 0.14), transparent 40%),
    radial-gradient(circle at 58% 78%, rgba(78, 198, 255, 0.08), transparent 46%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.auth-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.auth-modal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(125deg, rgba(126, 190, 255, 0.56), rgba(190, 132, 255, 0.42));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0.82;
  pointer-events: none;
}

.auth-modal::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(112, 168, 255, 0), rgba(184, 216, 255, 0.74), rgba(170, 122, 255, 0.6), rgba(112, 168, 255, 0));
  pointer-events: none;
  opacity: 0.78;
}

.auth-close:hover {
  color: rgba(238, 246, 255, 0.98);
  border-color: rgba(164, 208, 255, 0.68);
  background: rgba(36, 56, 90, 0.78);
  box-shadow: 0 10px 22px rgba(8, 20, 38, 0.45), 0 0 16px rgba(108, 182, 255, 0.24);
}

.auth-brand-text span {
  font-weight: 600;
}

.auth-modal:not(.profile-fixed) .auth-form {
  width: min(480px, 100%);
  margin: 0 auto;
}

.password-field .auth-input {
  padding-right: 46px;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  border-color: rgba(130, 224, 255, 0.76);
  box-shadow: 0 0 0 2px rgba(86, 194, 255, 0.22), 0 0 16px rgba(86, 194, 255, 0.3);
  color: rgba(236, 248, 255, 0.98);
  outline: none;
}

.password-toggle-btn[aria-pressed="true"] {
  border-color: rgba(138, 224, 255, 0.88);
  color: rgba(240, 252, 255, 0.99);
  box-shadow: 0 0 14px rgba(92, 198, 255, 0.3);
}

.password-toggle-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.auth-input::placeholder {
  color: rgba(144, 170, 206, 0.68);
}

.auth-input:focus {
  border-color: rgba(146, 202, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(104, 170, 255, 0.2), 0 0 26px rgba(94, 162, 248, 0.2);
  transform: translateY(-1px);
}

.auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74, 136, 228, 0.42), 0 0 24px rgba(132, 198, 255, 0.42);
}

.auth-google::before {
  content: 'G';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #0a0d12;
  color: #f5f7ff;
  box-shadow: 0 0 10px rgba(20, 25, 40, 0.5);
}

.auth-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(110, 152, 220, 0.34);
}

.auth-google:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-modal.profile-fixed .auth-brand {
  display: none;
}

.auth-note:empty {
  display: none;
}

.profile-tab:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.auth-modal.profile-fixed .profile-section.active {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 160, 200, 0.45) rgba(20, 28, 42, 0.4);
}

.auth-modal.profile-fixed .profile-section.active::-webkit-scrollbar {
  width: 8px;
}

.auth-modal.profile-fixed .profile-section.active::-webkit-scrollbar-track {
  background: rgba(20, 28, 42, 0.45);
  border-radius: 999px;
}

.auth-modal.profile-fixed .profile-section.active::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150, 175, 220, 0.7), rgba(110, 135, 190, 0.7));
  border-radius: 999px;
}

.badge-award-grid {
  display: grid;
  gap: 12px;
}

.profile-title {
  background: linear-gradient(135deg, rgba(255, 200, 100, 0.9), rgba(255, 160, 80, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.streak-card {
  background: linear-gradient(135deg, rgba(255, 100, 50, 0.15), rgba(255, 60, 30, 0.1)) !important;
  border-color: rgba(255, 120, 60, 0.3) !important;
}

.streak-value {
  display: flex;
  align-items: center;
  gap: 4px;
}

.streak-fire {
  font-size: 16px;
  animation: fireGlow 1.5s ease-in-out infinite alternate;
}

@keyframes fireGlow {
  from { filter: brightness(1); transform: scale(1); }
  to { filter: brightness(1.3); transform: scale(1.1); }
}

.highscore-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(40, 50, 70, 0.4);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}

.highscore-game {
  display: flex;
  align-items: center;
}

.highscore-name {
  font-size: 13px;
  color: var(--text-bright);
}

.highscore-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 220, 140, 0.95);
}

.highscore-rank {
  font-size: 10px;
  font-weight: 600;
  color: rgba(140, 170, 220, 0.9);
  background: rgba(80, 110, 160, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.highscore-rank.rank-1 {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.2);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.highscore-rank.rank-2 {
  color: #c0c0c0;
  background: rgba(192, 192, 192, 0.2);
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.highscore-rank.rank-3 {
  color: #cd7f32;
  background: rgba(205, 127, 50, 0.2);
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.popup-highscore-rank {
  font-size: 9px;
  font-weight: 600;
  color: rgba(140, 170, 220, 0.9);
  background: rgba(80, 110, 160, 0.3);
  padding: 2px 5px;
  border-radius: 5px;
}

.popup-highscore-rank.rank-1 {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.2);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.popup-highscore-rank.rank-2 {
  color: #c0c0c0;
  background: rgba(192, 192, 192, 0.2);
  text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.popup-highscore-rank.rank-3 {
  color: #cd7f32;
  background: rgba(205, 127, 50, 0.2);
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

.profile-field label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

@keyframes avatarBreathBob {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.006); }
  100% { transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {

  .avatar-shell img {
    animation: none;
  }

}

.avatar-display.small {
  width: 38px;
  height: 38px;
  border-width: 1.5px;
  box-shadow: 0 4px 12px rgba(60, 90, 140, 0.25);
}

.avatar-change-btn:hover {
  border-color: rgba(170, 200, 255, 0.5);
  background: rgba(80, 100, 140, 0.3);
}

.avatar-grid {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px;
  background: rgba(10, 14, 22, 0.8);
  border-radius: 14px;
  border: 1px solid rgba(140, 160, 200, 0.15);
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.avatar-grid.active {
  display: grid;
}

.avatar-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(40, 50, 70, 0.5);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-option:hover {
  transform: scale(1.1);
  border-color: rgba(140, 170, 220, 0.5);
  background: rgba(60, 80, 110, 0.6);
}

.avatar-option.selected {
  border-color: rgba(180, 200, 255, 0.8);
  background: rgba(80, 100, 140, 0.5);
  box-shadow: 0 0 16px rgba(140, 170, 220, 0.4);
}

.locker-avatar-subgroup:last-child {
  margin-bottom: 0;
}

.locker-avatar-grid::-webkit-scrollbar {
  width: 10px;
}

.locker-avatar-grid::-webkit-scrollbar-track {
  background: rgba(22, 30, 46, 0.65);
  border-radius: 999px;
}

.locker-avatar-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(154, 182, 232, 0.7), rgba(104, 132, 186, 0.7));
  border-radius: 999px;
}

.locker-avatar-choice.active {
  border-color: rgba(196, 220, 255, 0.9);
  outline: 2px solid rgba(174, 206, 255, 0.46);
  outline-offset: -2px;
  box-shadow: 0 0 0 1px rgba(196, 220, 255, 0.38), 0 10px 18px rgba(40, 70, 120, 0.32);
}

.locker-avatar-choice.equipped {
  border-color: rgba(88, 244, 186, 0.9);
  outline: 2px solid rgba(88, 244, 186, 0.56);
  outline-offset: -2px;
  box-shadow: 0 0 0 1px rgba(88, 244, 186, 0.34), 0 10px 18px rgba(22, 70, 58, 0.34), inset 0 0 16px rgba(82, 230, 185, 0.16);
}

.locker-avatar-choice.locked {
  border-style: dashed;
  border-color: rgba(124, 144, 180, 0.44);
  filter: saturate(0.72) brightness(0.8);
  opacity: 0.78;
  background: linear-gradient(145deg, rgba(28, 36, 54, 0.5), rgba(14, 20, 34, 0.58)) !important;
}

.locker-bg-grid::-webkit-scrollbar {
  width: 10px;
}

.locker-bg-grid::-webkit-scrollbar-track {
  background: rgba(22, 30, 46, 0.65);
  border-radius: 999px;
}

.locker-bg-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(154, 182, 232, 0.7), rgba(104, 132, 186, 0.7));
  border-radius: 999px;
}

.locker-bg-choice.active {
  border-color: rgba(210, 226, 255, 0.95);
  outline: 2px solid rgba(174, 206, 255, 0.46);
  outline-offset: -2px;
  box-shadow: 0 0 0 1px rgba(196, 220, 255, 0.38), 0 10px 18px rgba(40, 70, 120, 0.32);
}

.locker-bg-choice.equipped {
  border-color: rgba(88, 244, 186, 0.9);
  outline: 2px solid rgba(88, 244, 186, 0.56);
  outline-offset: -2px;
  box-shadow: 0 0 0 1px rgba(88, 244, 186, 0.34), 0 10px 18px rgba(22, 70, 58, 0.34), inset 0 0 16px rgba(82, 230, 185, 0.16);
}

.locker-bg-choice.locked::before {
  border-color: rgba(150, 172, 210, 0.32);
  box-shadow: 0 7px 12px rgba(8, 14, 26, 0.3);
  opacity: 0.72;
  filter: saturate(0.74) brightness(0.84);
}

.country-button:hover {
  border-color: rgba(160, 190, 240, 0.45);
  background: rgba(20, 26, 38, 0.7);
}

.country-menu.active {
  display: block;
}

.country-search input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(140, 160, 200, 0.2);
  background: rgba(10, 12, 20, 0.7);
  color: rgba(220, 235, 255, 0.9);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.country-option:hover {
  background: rgba(50, 60, 85, 0.35);
  border-color: rgba(140, 170, 220, 0.2);
  color: rgba(235, 245, 255, 0.95);
}

.profile-row.single {
  grid-template-columns: 1fr;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  border-left: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px 0 0 0;
  pointer-events: none;
}

.profile-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.profile-subscription-hero.pass-none {
  border-color: rgba(118, 190, 255, 0.32);
}

.profile-subscription-hero.pass-voyager {
  background:
    radial-gradient(125% 115% at 12% -4%, rgba(107, 218, 255, 0.3), rgba(107, 218, 255, 0) 54%),
    linear-gradient(150deg, rgba(10, 46, 64, 0.95), rgba(12, 28, 44, 0.94));
  border-color: rgba(116, 222, 255, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(165, 241, 255, 0.16),
    0 16px 30px rgba(6, 18, 30, 0.5);
}

.profile-subscription-hero.pass-interstellar,
.profile-subscription-hero.pass-lifetime {
  background:
    radial-gradient(128% 118% at 12% -8%, rgba(255, 186, 132, 0.3), rgba(255, 186, 132, 0) 52%),
    linear-gradient(150deg, rgba(54, 28, 20, 0.94), rgba(24, 18, 29, 0.95));
  border-color: rgba(255, 178, 116, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 174, 0.16),
    0 16px 32px rgba(18, 10, 16, 0.5);
}

.profile-subscription-hero.pass-none .profile-subscription-plan {
  color: rgba(222, 241, 255, 0.98);
  text-shadow: 0 0 18px rgba(108, 188, 255, 0.32);
}

.profile-subscription-hero.pass-voyager .profile-subscription-plan {
  color: rgba(214, 245, 255, 0.99);
  text-shadow: 0 0 20px rgba(132, 220, 255, 0.46);
}

.profile-subscription-hero.pass-interstellar .profile-subscription-plan {
  color: rgba(255, 228, 192, 0.99);
  text-shadow: 0 0 22px rgba(255, 168, 98, 0.52);
}

.profile-subscription-hero.pass-lifetime .profile-subscription-plan {
  color: rgba(255, 238, 206, 1);
  text-shadow: 0 0 24px rgba(255, 188, 112, 0.58);
}

.profile-secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 210, 255, 0.64);
  color: rgba(236, 246, 255, 0.98);
  box-shadow: 0 10px 24px rgba(12, 24, 44, 0.42), 0 0 20px rgba(122, 188, 255, 0.2);
}

.profile-secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.profile-secondary-btn.profile-danger-btn:hover {
  border-color: rgba(255, 146, 146, 0.68);
  color: rgba(255, 236, 236, 0.99);
  box-shadow: 0 10px 24px rgba(34, 8, 12, 0.5), 0 0 18px rgba(255, 92, 92, 0.26);
}

#profileTokens {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#profileTokens.digits-5 {
  font-size: 14px;
}

#profileTokens.digits-6plus {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.rank-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--genre-runner), var(--genre-arcade), var(--genre-puzzle));
}

.rank-summary .rank-badge {
  width: 52px;
  height: 52px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.rank-summary .rank-meta {
  display: grid;
  gap: 6px;
}

.rank-summary .rank-level-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rank-summary .rank-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-summary .rank-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(80, 110, 160, 0.45);
  overflow: hidden;
  margin-top: 2px;
}

.rank-summary .rank-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(116, 184, 255, 0.96);
  box-shadow: 0 0 16px rgba(116, 184, 255, 0.72);
  transition: width 0.35s ease;
}

.medal::before {
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 44%;
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(180deg, rgba(220, 236, 255, 0.16), rgba(220, 236, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.medal:not(.locked) {
  border-color: rgba(160, 136, 255, 0.62);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(142, 116, 255, 0.18), rgba(142, 116, 255, 0) 62%),
    linear-gradient(150deg, rgba(22, 34, 56, 0.94), rgba(14, 22, 40, 0.96));
  box-shadow:
    0 0 0 1px rgba(180, 150, 255, 0.16) inset,
    0 0 18px rgba(142, 116, 255, 0.3),
    0 0 30px rgba(110, 80, 220, 0.16);
}

.medal:not(.locked) .icon .level-rank-icon {
  filter:
    drop-shadow(0 0 12px rgba(142, 116, 255, 0.68))
    drop-shadow(0 0 20px rgba(120, 90, 255, 0.46));
}

.medal-tier-grey:not(.locked) {
  border-color: rgba(190, 195, 215, 0.42);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(160, 168, 185, 0.1), rgba(160, 168, 185, 0) 62%),
    linear-gradient(150deg, rgba(28, 34, 46, 0.94), rgba(16, 20, 30, 0.96));
  box-shadow:
    0 0 0 1px rgba(190, 195, 215, 0.12) inset,
    0 0 12px rgba(170, 175, 200, 0.18),
    0 0 22px rgba(140, 145, 170, 0.1);
}

.medal-tier-grey:not(.locked) .icon .level-rank-icon {
  filter:
    drop-shadow(0 0 10px rgba(180, 185, 210, 0.5))
    drop-shadow(0 0 18px rgba(160, 165, 195, 0.3));
}

.medal-tier-blue:not(.locked) {
  border-color: rgba(90, 200, 255, 0.58);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(72, 185, 255, 0.18), rgba(72, 185, 255, 0) 62%),
    linear-gradient(150deg, rgba(18, 32, 52, 0.94), rgba(12, 22, 40, 0.96));
  box-shadow:
    0 0 0 1px rgba(120, 210, 255, 0.16) inset,
    0 0 18px rgba(80, 190, 255, 0.34),
    0 0 30px rgba(50, 160, 240, 0.18);
}

.medal-tier-blue:not(.locked) .icon .level-rank-icon {
  filter:
    drop-shadow(0 0 12px rgba(90, 205, 255, 0.7))
    drop-shadow(0 0 20px rgba(60, 175, 255, 0.45));
}

.medal-tier-bluepurple:not(.locked) {
  border-color: rgba(140, 155, 235, 0.6);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(130, 148, 242, 0.16), rgba(130, 148, 242, 0) 62%),
    linear-gradient(150deg, rgba(20, 28, 54, 0.94), rgba(14, 18, 42, 0.96));
  box-shadow:
    0 0 0 1px rgba(160, 170, 248, 0.15) inset,
    0 0 18px rgba(140, 155, 235, 0.32),
    0 0 30px rgba(110, 120, 220, 0.17);
}

.medal-tier-bluepurple:not(.locked) .icon .level-rank-icon {
  filter:
    drop-shadow(0 0 12px rgba(150, 165, 245, 0.68))
    drop-shadow(0 0 22px rgba(120, 130, 230, 0.44));
}

.medal-tier-purple:not(.locked) {
  border-color: rgba(188, 120, 248, 0.65);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(185, 110, 248, 0.18), rgba(185, 110, 248, 0) 62%),
    linear-gradient(150deg, rgba(24, 20, 52, 0.94), rgba(16, 14, 40, 0.96));
  box-shadow:
    0 0 0 1px rgba(210, 145, 255, 0.16) inset,
    0 0 18px rgba(190, 115, 248, 0.36),
    0 0 32px rgba(160, 80, 230, 0.2);
}

.medal-tier-purple:not(.locked) .icon .level-rank-icon {
  filter:
    drop-shadow(0 0 12px rgba(210, 120, 255, 0.72))
    drop-shadow(0 0 22px rgba(175, 80, 240, 0.48));
}

.medal-tier-deeppurple:not(.locked) {
  border-color: rgba(230, 80, 255, 0.72);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(225, 70, 252, 0.22), rgba(225, 70, 252, 0) 60%),
    linear-gradient(150deg, rgba(28, 16, 52, 0.94), rgba(18, 10, 38, 0.96));
  box-shadow:
    0 0 0 1px rgba(238, 100, 255, 0.2) inset,
    0 0 20px rgba(225, 80, 255, 0.44),
    0 0 36px rgba(190, 40, 230, 0.26);
}

.medal-tier-deeppurple:not(.locked) .icon .level-rank-icon {
  filter:
    drop-shadow(0 0 14px rgba(238, 90, 255, 0.78))
    drop-shadow(0 0 26px rgba(210, 50, 248, 0.52));
}

.medal.locked .req {
  color: rgba(150, 165, 190, 0.5);
}

.medal .lock {
  position: absolute;
  top: 5px;
  right: 6px;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.medal.locked .lock {
  opacity: 1;
}

.token-shop-columns {
  grid-template-columns: 1fr;
}

.stripe-package:hover {
  border-color: var(--border-glow);
  background: rgba(140, 160, 200, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(25, 35, 55, 0.45), 0 0 24px rgba(140, 170, 220, 0.25);
}

.stripe-package.popular {
  border-color: rgba(140, 170, 220, 0.4);
  background: rgba(140, 170, 220, 0.08);
}

.stripe-package.popular::before {
  content: 'POPULAR';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(140, 170, 220, 0.9), rgba(160, 140, 220, 0.9));
  color: #0a0d12;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 6px 14px rgba(15, 20, 35, 0.35);
}

.stripe-package::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(120deg, transparent 34%, rgba(220, 235, 255, 0.35) 50%, transparent 66%);
  background-size: 240% 100%;
  background-position: 150% 0;
  animation: stripeShineSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border-radius: 9px;
  clip-path: inset(0 round 9px);
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
}

.stripe-package.disabled::after {
  animation: none;
  opacity: 0;
}

.stripe-package:hover .stripe-coin {
  transform: scale(1.04);
}

@keyframes stripeShineSweep {
  0%, 55% {
    background-position: 150% 0;
    opacity: 0;
  }
  60% {
    opacity: 0.8;
  }
  85% {
    background-position: -40% 0;
    opacity: 0.2;
  }
  100% {
    background-position: -40% 0;
    opacity: 0;
  }
}

.token-topup-grid .stripe-package,
.chat-bundle-grid .stripe-package,
.badge-orb-grid .stripe-package {
  border-color: rgba(182, 134, 255, 0.42);
  background:
    radial-gradient(circle at 18% 16%, rgba(224, 174, 255, 0.28), transparent 42%),
    linear-gradient(160deg, rgba(88, 42, 166, 0.96), rgba(54, 24, 116, 0.97));
  box-shadow: 0 20px 36px rgba(46, 18, 84, 0.56), inset 0 1px 0 rgba(238, 206, 255, 0.24);
}

.token-topup-grid .stripe-package:hover,
.chat-bundle-grid .stripe-package:hover,
.badge-orb-grid .stripe-package:hover {
  border-color: rgba(212, 168, 255, 0.62);
  box-shadow: 0 22px 36px rgba(46, 18, 84, 0.55), 0 0 24px rgba(170, 110, 255, 0.3);
}

.token-topup-grid .stripe-package.popular:hover,
.chat-bundle-grid .stripe-package.popular:hover,
.badge-orb-grid .stripe-package.popular:hover {
  border-color: rgba(248, 226, 255, 0.98);
  box-shadow:
    0 27px 44px rgba(66, 24, 122, 0.66),
    0 0 42px rgba(222, 150, 255, 0.68),
    0 0 72px rgba(188, 114, 252, 0.4);
  transform: translateY(-2px);
}

.token-topup-grid .stripe-package.popular .stripe-package-price,
.chat-bundle-grid .stripe-package.popular .stripe-package-price,
.badge-orb-grid .stripe-package.popular .stripe-package-price {
  color: rgba(255, 248, 255, 0.99);
  text-shadow: 0 0 28px rgba(246, 198, 255, 0.62);
  background: linear-gradient(140deg, rgba(138, 86, 218, 0.42), rgba(98, 54, 192, 0.48));
  border-color: rgba(232, 198, 255, 0.64);
}

@media (max-width: 768px) {

  .auth-header {
    text-align: center;
  }

  .auth-title {
    text-align: center;
  }

  .auth-subtitle {
    text-align: center;
  }

  .pass-options-headline {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.15em;
  }

}

.inventory-bar {
  display: flex;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(140, 160, 200, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.inventory-item span {
  font-weight: 600;
  color: var(--text-bright);
}

#homeView .hero.logged-in + .section-header {
  padding-top: 28px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.hero-content h1 .hero-kicker {
  display: block;
  font-size: 0.36em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 220, 150, 0.95);
  text-shadow: 0 0 18px rgba(255, 176, 86, 0.35);
  margin-bottom: 8px;
}

.hero-content h1 strong {
  font-size: 1.08em;
  font-weight: 800;
  display: block;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #fff2cf 0%, #ffca7a 42%, #ff8b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 152, 90, 0.28);
}

.hero-stats {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.stat {
  text-align: center;
  min-width: 100px;
}

.stat-number {
  font-size: 64px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 25px rgba(140, 170, 220, 0.45);
}

#heroStatsLoggedOut {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  justify-content: center;
  width: min(440px, 100%);
  margin: 0;
  column-gap: clamp(28px, 4vw, 52px);
  row-gap: 0;
}

#heroStatsLoggedOut .stat {
  min-width: 0;
  width: auto;
}

#heroStatsLoggedOut .stat-number {
  font-size: clamp(98px, 10vw, 152px);
  font-weight: 700;
}

#heroStatsLoggedOut .stat-label {
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-top: 10px;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(140, 170, 220, 0.3), transparent 50%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-card:hover::before {
  opacity: 1;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(140, 170, 220, 0.1);
  border-color: var(--border-glow);
}

.featured-card[data-genre="endless-runner"] { --card-color: var(--genre-runner); }

.featured-card[data-genre="puzzle"] { --card-color: var(--genre-puzzle); }

.featured-card[data-genre="shooter"] { --card-color: var(--genre-shooter); }

.featured-card[data-genre="racing"] { --card-color: var(--genre-racing); }

.featured-card[data-genre="arcade"] { --card-color: var(--genre-arcade); }

.featured-card[data-genre="survival"] { --card-color: var(--genre-survival); }

.featured-card[data-genre="rhythm"] { --card-color: var(--genre-rhythm); }

.featured-card[data-genre="platformer"] { --card-color: var(--genre-platformer); }

.featured-card[data-genre="strategy"] { --card-color: var(--genre-strategy); }

.featured-card[data-genre]::before {
  background: linear-gradient(135deg, var(--card-color, rgba(140, 170, 220, 0.3)), transparent 50%);
}

/* ── Today's Featured Game ──────────────────────────────────────────────────
   The card carries the featured game's own genre colour (--card-color, set by
   the [data-genre] rules above and kept in step by updateFeaturedGame()).
   Everything below reads --fc rather than a fixed blue, so the card belongs to
   the game it is showing. The [data-genre] compound is deliberate: it outranks
   the single-class copies still sitting in the page's own <style> block. */
.featured-card[data-genre] {
  --fc: var(--card-color, #70caff);
  background:
    radial-gradient(120% 90% at 50% -12%, color-mix(in srgb, var(--fc) 15%, transparent) 0%, transparent 60%),
    var(--bg-card);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--fc) 48%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fc) 16%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.4);
  /* Not `all`: this card is the largest thing on the page and transitioning
     every property makes the hover cost a full re-layout. */
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.38s ease, border-color 0.38s ease;
}

.featured-card[data-genre]:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--fc) 80%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--fc) 30%, transparent),
    0 26px 64px rgba(0, 0, 0, 0.5),
    0 0 48px color-mix(in srgb, var(--fc) 26%, transparent);
}

/* The floor, the same solid bar the category tiles stand on. */
.featured-card[data-genre]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--fc) 85%, transparent) 24%,
    var(--fc) 50%,
    color-mix(in srgb, var(--fc) 85%, transparent) 76%,
    transparent 100%);
  opacity: 0.85;
  transition: opacity 0.28s ease, height 0.28s ease;
  pointer-events: none;
}

.featured-card[data-genre]:hover::after { height: 6px; opacity: 1; }

/* The art ends in the card instead of being cut off by the info panel. */
.featured-card[data-genre] .featured-preview::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--fc) 6%, var(--bg-card)) 96%);
  pointer-events: none;
  z-index: 2;
}

.featured-card[data-genre] .featured-preview-inner img,
.featured-card[data-genre] .featured-preview-inner video {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.featured-card[data-genre]:hover .featured-preview-inner img,
.featured-card[data-genre]:hover .featured-preview-inner video { transform: scale(1.035); }

.featured-card[data-genre] .featured-info {
  position: relative;
  z-index: 3;
  padding: 18px 26px 22px;
  border-radius: 0 0 18px 18px;
  border-top: 1px solid color-mix(in srgb, var(--fc) 20%, transparent);
}

/* Title and the boost share a line: the reward sits next to the name of the
   game that pays it, instead of floating over the bottom corner. */
.featured-card[data-genre] .featured-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.featured-card[data-genre] .featured-title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--text-bright);
  text-shadow: 0 0 24px color-mix(in srgb, var(--fc) 32%, transparent);
  margin-bottom: 0;
}

.featured-card[data-genre] .featured-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 9px 0 15px;
}

.featured-card[data-genre] .featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-card[data-genre] .featured-countdown,
.featured-card[data-genre] .featured-award {
  margin-top: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.featured-card[data-genre] .featured-countdown:empty,
.featured-card[data-genre] .featured-award:empty { display: none; }

/* The card is one big link, so this is an affordance rather than a button:
   it says where the click goes and answers the hover. */
.featured-card[data-genre] .featured-play {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fc) 58%, transparent);
  background: color-mix(in srgb, var(--fc) 14%, rgba(8, 12, 22, 0.88));
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fc) 26%, #ffffff);
  transition: background 0.28s ease, border-color 0.28s ease;
}

.featured-card[data-genre] .featured-play::after {
  content: '\2192';
  font-size: 14px;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.featured-card[data-genre]:hover .featured-play {
  background: color-mix(in srgb, var(--fc) 30%, rgba(8, 12, 22, 0.88));
  border-color: color-mix(in srgb, var(--fc) 86%, transparent);
}

.featured-card[data-genre]:hover .featured-play::after { transform: translateX(4px); }

/* The boost keeps its gold and its pulse, as a chip that can sit in a row
   without landing on the description. */
.featured-card[data-genre] .featured-xp-boost {
  position: static;
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 92, 0.7);
  background: linear-gradient(180deg, rgba(58, 42, 12, 0.95), rgba(26, 19, 8, 0.92));
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffdd78;
  text-shadow: 0 0 12px rgba(255, 198, 88, 0.58);
  box-shadow: 0 0 18px rgba(255, 176, 52, 0.24);
}

.featured-card.xp-boost-active .featured-xp-boost {
  opacity: 1;
  transform: translateY(0);
  animation: featuredXpPulseSmall 1.8s ease-in-out infinite;
}

/* The label over the top edge: a lit pill in the game's colour, with a dot
   that says the thing is live today. */
.featured-card[data-genre] .featured-badges .featured-badge:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #eaf5ff;
  border: 1px solid color-mix(in srgb, var(--fc) 68%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fc) 30%, rgba(8, 12, 22, 0.94)),
    rgba(8, 12, 22, 0.94));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--fc) 26%, transparent),
    0 0 18px color-mix(in srgb, var(--fc) 26%, transparent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--fc) 40%, transparent);
  white-space: nowrap;
}

.featured-card[data-genre] .featured-badges .featured-badge:first-child::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--fc);
  box-shadow: 0 0 10px var(--fc);
  animation: featuredLiveDot 2.4s ease-in-out infinite;
}

@keyframes featuredLiveDot {
  0%, 100% { opacity: 0.5; transform: scale(0.82); }
  50%      { opacity: 1;   transform: scale(1); }
}

@media (max-width: 860px) {
  .featured-card[data-genre] .featured-info { padding: 14px 16px 18px; }
  .featured-card[data-genre] .featured-title { font-size: 21px; }
  .featured-card[data-genre] .featured-desc { font-size: 12.5px; margin: 7px 0 12px; }
  .featured-card[data-genre] .featured-headline { gap: 10px; }
  .featured-card[data-genre] .featured-xp-boost { font-size: 11px; padding: 5px 10px; }
  .featured-card[data-genre] .featured-play { padding: 7px 13px; font-size: 11px; letter-spacing: 0.14em; }
  .featured-card[data-genre] .featured-badges .featured-badge:first-child { font-size: 11px; padding: 6px 14px; letter-spacing: 0.13em; }
  /* The phone rules used to float this note over the card, from when it was a
     stray line under the meta row. It lives in the row now, and .featured-info
     is a positioned box, so an absolute note would land on the title. */
  .featured-card[data-genre] .featured-award {
    position: static;
    transform: none;
    padding: 0;
    border: 0;
    background: none;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card[data-genre],
  .featured-card[data-genre] .featured-preview-inner img,
  .featured-card[data-genre] .featured-preview-inner video { transition: none; }
  .featured-card[data-genre]:hover { transform: none; }
  .featured-card[data-genre]:hover .featured-preview-inner img,
  .featured-card[data-genre]:hover .featured-preview-inner video { transform: none; }
  .featured-card[data-genre] .featured-badges .featured-badge:first-child::before { animation: none; }
  .featured-card.xp-boost-active .featured-xp-boost { animation: none; }
}

.featured-preview img,
.featured-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.void-runner-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.preview-ground {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(140, 160, 200, 0.3);
}

.preview-player {
  position: absolute;
  bottom: 61px;
  left: 80px;
  width: 20px;
  height: 38px;
  background: linear-gradient(180deg, rgba(180, 200, 230, 0.95), rgba(140, 165, 200, 0.85));
  border-radius: 6px;
  animation: playerBounce 7s linear infinite;
  animation-delay: 0.9s;
  box-shadow: 0 0 20px rgba(160, 190, 230, 0.4);
}

@keyframes playerBounce {
  0%, 11% { transform: translateY(0) scaleY(1) scaleX(1); }
  15% { transform: translateY(0) scaleY(0.8) scaleX(1.2); }
  20% { transform: translateY(-84px) scaleY(1.18) scaleX(0.82); }
  27% { transform: translateY(0) scaleY(0.95) scaleX(1.05); }
  42% { transform: translateY(0) scaleY(1) scaleX(1); }
  46% { transform: translateY(6px) scaleY(0.55) scaleX(1.35); }
  60% { transform: translateY(6px) scaleY(0.55) scaleX(1.35); }
  64% { transform: translateY(0) scaleY(1) scaleX(1); }
  72% { transform: translateY(0) scaleY(0.8) scaleX(1.2); }
  76% { transform: translateY(-92px) scaleY(1.18) scaleX(0.82); }
  83% { transform: translateY(0) scaleY(0.95) scaleX(1.05); }
  88% { transform: translateY(0) scaleY(1) scaleX(1); }
  100% { transform: translateY(0) scaleY(1) scaleX(1); }
}

.preview-obstacle.low {
  width: 34px;
  height: 46px;
  animation: obstacleLow 7s linear infinite;
}

.preview-obstacle.high {
  width: 68px;
  height: 26px;
  bottom: 92px;
  animation: obstacleHigh 7s linear infinite;
}

.preview-powerup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 180, 255, 0.95), rgba(140, 170, 220, 0.95));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 18px rgba(200, 180, 255, 0.7);
  animation: orbPulse 1.2s ease-in-out infinite;
}

.preview-powerup::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 225, 255, 0.75), rgba(200, 215, 255, 0) 60%);
  box-shadow: 0 0 24px rgba(180, 210, 255, 0.6);
  opacity: 0;
  animation: orbBurst 7s linear infinite;
  pointer-events: none;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes orbBurst {
  0%, 90% { opacity: 0; transform: scale(0.3); }
  94% { opacity: 1; transform: scale(1.8); }
  98% { opacity: 0; transform: scale(3.2); }
  100% { opacity: 0; transform: scale(3.2); }
}

.hex-stack-preview {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-stack-grid {
  position: relative;
  width: 220px;
  height: 150px;
}

.hex-cell {
  position: absolute;
  width: 34px;
  height: 38px;
  background: rgba(120, 140, 175, 0.35);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: inset 0 0 0 1px rgba(140, 160, 200, 0.25);
  opacity: 0.5;
}

.hex-token {
  position: absolute;
  width: 34px;
  height: 38px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 20px rgba(140, 170, 220, 0.25);
  animation: hexPulse 2.4s ease-in-out infinite;
}

.hex-token.a {
  background: linear-gradient(135deg, rgba(120, 200, 180, 0.9), rgba(80, 140, 150, 0.9));
  top: 26px;
  left: 58px;
  animation-delay: 0.2s;
}

.hex-token.b {
  background: linear-gradient(135deg, rgba(200, 170, 120, 0.9), rgba(150, 110, 80, 0.9));
  top: 60px;
  left: 96px;
  animation-delay: 0.5s;
}

.hex-token.c {
  background: linear-gradient(135deg, rgba(140, 150, 220, 0.9), rgba(100, 120, 190, 0.9));
  top: 94px;
  left: 58px;
  animation-delay: 0.8s;
}

.hex-token.d {
  background: linear-gradient(135deg, rgba(200, 140, 200, 0.9), rgba(150, 90, 150, 0.9));
  top: 60px;
  left: 20px;
  animation-delay: 1.1s;
}

.hex-token.e {
  background: linear-gradient(135deg, rgba(180, 200, 120, 0.9), rgba(120, 150, 70, 0.9));
  top: 26px;
  left: 96px;
  animation-delay: 1.4s;
}

.hex-stack-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(120, 160, 220, 0.25), transparent 70%);
  filter: blur(8px);
  opacity: 0.8;
}

@keyframes hexPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.apex-preview {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apex-track {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(140, 170, 220, 0.35);
  box-shadow: 0 0 18px rgba(120, 160, 210, 0.25);
}

.apex-track::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(120, 150, 200, 0.25);
}

.apex-gate {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: rgba(140, 200, 255, 0.6);
  border-right-color: rgba(140, 200, 255, 0.6);
  filter: drop-shadow(0 0 12px rgba(140, 200, 255, 0.45));
  animation: apexGatePulse 2.2s ease-in-out infinite;
}

.apex-gate.second {
  transform: rotate(140deg);
  animation-delay: 0.6s;
  border-top-color: rgba(255, 215, 150, 0.6);
  border-right-color: rgba(255, 215, 150, 0.6);
  filter: drop-shadow(0 0 12px rgba(255, 200, 140, 0.45));
}

.apex-car {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, rgba(200, 220, 255, 0.95), rgba(140, 180, 240, 0.9));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 14px rgba(140, 200, 255, 0.6);
  animation: apexSpin 5.6s linear infinite;
}

.apex-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 215, 150, 0.95);
  box-shadow: 0 0 14px rgba(255, 210, 160, 0.7);
  animation: apexSpark 5.6s linear infinite;
}

@keyframes apexSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(76px); }
  55% { transform: translate(-50%, -50%) rotate(220deg) translateX(58px); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(86px); }
}

@keyframes apexSpark {
  0% { transform: translate(-50%, -50%) rotate(30deg) translateX(62px); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(210deg) translateX(78px); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(390deg) translateX(62px); opacity: 0.8; }
}

@keyframes apexGatePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.vector-preview {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vector-ship {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(180, 210, 255, 0.95), rgba(120, 160, 220, 0.9));
  clip-path: polygon(50% 0%, 100% 85%, 50% 100%, 0% 85%);
  box-shadow: 0 0 18px rgba(140, 180, 240, 0.6);
  animation: vectorShip 3s ease-in-out infinite;
}

.vector-bullet {
  position: absolute;
  bottom: 54px;
  left: 50%;
  width: 4px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(200, 220, 255, 0.95), rgba(120, 170, 230, 0.6));
  box-shadow: 0 0 12px rgba(160, 200, 255, 0.6);
  animation: vectorBullet 1.6s linear infinite;
}

.vector-bullet.secondary {
  left: 46%;
  animation-delay: 0.3s;
  opacity: 0.7;
}

.vector-enemy {
  position: absolute;
  top: -30px;
  left: 30%;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 120, 150, 0.9), rgba(180, 70, 110, 0.9));
  box-shadow: 0 0 16px rgba(255, 140, 170, 0.55);
  animation: vectorEnemy 2.4s linear infinite;
}

.vector-enemy.second {
  left: 68%;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  animation-delay: 0.5s;
  opacity: 0.75;
}

@keyframes vectorShip {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes vectorBullet {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-220px); opacity: 0; }
}

@keyframes vectorEnemy {
  0% { transform: translateY(0) scale(0.9); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(220px) scale(1); opacity: 0; }
}

#featuredVanishBadge {
  display: none;
}

.meta-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-stat svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.section-header {
  padding: 60px 48px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--genre-runner);
  box-shadow: 0 0 10px var(--genre-runner);
  border-radius: 50%;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), rgba(0, 240, 255, 0.2), var(--border-subtle));
  margin-left: 32px;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(140, 170, 220, 0.25), transparent 50%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

.game-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card.preview-video-active .game-preview .game-preview-image {
  opacity: 0;
}

.game-card.preview-video-active .game-preview .game-preview-loop {
  opacity: 1;
}

.game-card.xp-boost-active .game-xp-boost {
  opacity: 1;
  transform: translateY(0);
  animation: featuredXpPulseSmall 1.9s ease-in-out infinite;
}

.game-card[data-genre="endless-runner"] { --card-color: var(--genre-runner); --tag-color: var(--genre-runner); }

.game-card[data-genre="puzzle"] { --card-color: var(--genre-puzzle); --tag-color: var(--genre-puzzle); }

.game-card[data-genre="shooter"] { --card-color: var(--genre-shooter); --tag-color: var(--genre-shooter); }

.game-card[data-genre="racing"] { --card-color: var(--genre-racing); --tag-color: var(--genre-racing); }

.game-card[data-genre="arcade"] { --card-color: var(--genre-arcade); --tag-color: var(--genre-arcade); }

.game-card[data-genre="survival"] { --card-color: var(--genre-survival); --tag-color: var(--genre-survival); }

.game-card[data-genre="rhythm"] { --card-color: var(--genre-rhythm); --tag-color: var(--genre-rhythm); }

.game-card[data-genre="platformer"] { --card-color: var(--genre-platformer); --tag-color: var(--genre-platformer); }

.game-card[data-genre="strategy"] { --card-color: var(--genre-strategy); --tag-color: var(--genre-strategy); }

.game-card[data-genre]::before {
  background: linear-gradient(135deg, var(--card-color, rgba(140, 170, 220, 0.25)), transparent 50%);
}

.game-preview-placeholder {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(100, 120, 150, 0.2);
  border: 1px solid rgba(100, 120, 150, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.game-card[data-accent="purple"] .game-preview {
  background: linear-gradient(135deg, #0d0d14 0%, #161622 100%);
}

.game-card[data-accent="teal"] .game-preview {
  background: linear-gradient(135deg, #0a1214 0%, #121d20 100%);
}

.game-card[data-accent="amber"] .game-preview {
  background: linear-gradient(135deg, #12100a 0%, #1d1810 100%);
}

.game-card[data-accent="rose"] .game-preview {
  background: linear-gradient(135deg, #120a0d 0%, #1d1015 100%);
}

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 12, 0.8);
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 900px) {

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }

  #heroStatsLoggedOut {
    width: min(360px, 100%);
    column-gap: 18px;
  }

  #heroStatsLoggedOut .stat-number {
    font-size: clamp(72px, 18vw, 108px);
  }

  #heroStatsLoggedOut .stat-label {
    font-size: 12px;
    margin-top: 8px;
  }

  .stat-number {
    font-size: 72px;
  }

  .section-header {
    padding: 40px 24px 24px;
  }

  .leaderboard-header > div {
    width: 100%;
    text-align: center;
  }

  .leaderboard-row.header .lb-location-label {
    display: none;
  }

  .leaderboard-row.header .lb-location-icon {
    display: block;
  }

  .lb-country-cell span:not(.lb-country-flag) {
    display: none;
  }

}

.page-view.hidden {
  display: none;
}

.leaderboard-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-top: 2px solid rgba(0, 240, 255, 0.4);
  border-left: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 24px 0 0 0;
  pointer-events: none;
}

.leaderboard-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid rgba(255, 32, 128, 0.4);
  border-right: 2px solid rgba(255, 32, 128, 0.4);
  border-radius: 0 0 24px 0;
  pointer-events: none;
}

.leaderboard-row:not(.header):hover {
  background: rgba(30, 40, 60, 0.7);
  border-color: rgba(140, 170, 220, 0.3);
  border-left-color: var(--genre-runner);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.leaderboard-row.highlight:hover {
  background: rgba(55, 45, 80, 0.75);
  border-color: rgba(220, 200, 255, 0.7);
  transform: translateX(4px);
}

@keyframes goldRowGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.25), inset 0 0 24px rgba(251, 191, 36, 0.04); }
  50%       { box-shadow: 0 0 30px rgba(251, 191, 36, 0.55), inset 0 0 40px rgba(251, 191, 36, 0.09); }
}

@keyframes goldTextPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(251, 191, 36, 0.7), 0 0 22px rgba(251, 191, 36, 0.35); }
  50%       { text-shadow: 0 0 20px rgba(251, 191, 36, 1), 0 0 40px rgba(251, 191, 36, 0.6), 0 0 64px rgba(255, 215, 0, 0.3); }
}

@keyframes silverRowGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(192, 192, 192, 0.2); }
  50%       { box-shadow: 0 0 24px rgba(192, 192, 192, 0.5); }
}

@keyframes silverTextPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(200, 210, 220, 0.6); }
  50%       { text-shadow: 0 0 20px rgba(220, 232, 244, 0.95), 0 0 38px rgba(192, 192, 192, 0.5); }
}

@keyframes bronzeRowGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(205, 127, 50, 0.2); }
  50%       { box-shadow: 0 0 22px rgba(205, 127, 50, 0.45); }
}

@keyframes bronzeTextPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(205, 127, 50, 0.65); }
  50%       { text-shadow: 0 0 20px rgba(205, 127, 50, 0.95), 0 0 36px rgba(205, 127, 50, 0.45); }
}

.leaderboard-row.rank-1:not(.header):hover {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2) 0%, rgba(18, 24, 38, 0.72) 52%);
  border-color: rgba(251, 191, 36, 0.42);
  border-left-color: #fbbf24;
  transform: translateX(4px);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.28);
}

.leaderboard-row.rank-2:not(.header):hover {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.17) 0%, rgba(18, 24, 38, 0.72) 52%);
  border-color: rgba(210, 220, 232, 0.38);
  border-left-color: #c0c0c0;
  transform: translateX(4px);
  box-shadow: 0 0 22px rgba(192, 192, 192, 0.24);
}

.leaderboard-row.rank-3:not(.header):hover {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.17) 0%, rgba(18, 24, 38, 0.72) 52%);
  border-color: rgba(205, 127, 50, 0.4);
  border-left-color: #cd7f32;
  transform: translateX(4px);
  box-shadow: 0 0 22px rgba(205, 127, 50, 0.24);
}

.leaderboard-row.rank-1 .lb-rank { color: #fbbf24; animation: goldTextPulse 2.5s ease-in-out infinite; }

.leaderboard-row.rank-2 .lb-rank { color: #d8d8d8; animation: silverTextPulse 3s ease-in-out infinite; }

.leaderboard-row.rank-3 .lb-rank { color: #cd7f32; animation: bronzeTextPulse 3s ease-in-out infinite; }

.lb-location-icon {
  display: none;
  width: 13px;
  height: 16px;
  color: rgba(194, 216, 248, 0.86);
  vertical-align: middle;
}

.shop-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-top: 2px solid rgba(0, 240, 255, 0.4);
  border-left: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 24px 0 0 0;
  pointer-events: none;
}

.shop-page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid rgba(255, 32, 128, 0.4);
  border-right: 2px solid rgba(255, 32, 128, 0.4);
  border-radius: 0 0 24px 0;
  pointer-events: none;
}

.shop-page-header > div {
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.chat-btn:hover:not(:disabled) {
  color: var(--text-bright);
  border-color: rgba(140, 180, 255, 0.3);
  background: rgba(20, 30, 45, 0.6);
  transform: translateY(-1px);
}

.chat-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(160, 200, 255, 0.95), rgba(120, 160, 240, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(140, 180, 255, 0.4);
}

.chat-feed::-webkit-scrollbar {
  width: 8px;
}

.chat-feed::-webkit-scrollbar-track {
  background: rgba(10, 15, 25, 0.3);
  border-radius: 4px;
}

.chat-feed::-webkit-scrollbar-thumb {
  background: rgba(120, 150, 190, 0.4);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.chat-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 170, 210, 0.6);
}

.message-card:hover {
  border-color: rgba(140, 180, 255, 0.25);
  background: rgba(18, 25, 38, 0.95);
  box-shadow: 0 8px 24px rgba(5, 10, 18, 0.3);
}

.message-card.pinned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 210, 120, 0.8), rgba(255, 180, 80, 0.8));
  border-radius: 16px 16px 0 0;
}

@keyframes replyFormAppear {
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.inline-reply-form::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(140, 180, 255, 0.3);
  border-top: 1px solid rgba(140, 180, 255, 0.3);
  background: rgba(20, 30, 45, 0.98);
  transform: rotate(45deg);
  z-index: 1;
}

.inline-reply-input:focus {
  outline: none;
  border-color: rgba(140, 180, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(140, 180, 255, 0.2);
  background: rgba(18, 25, 38, 0.95);
}

.inline-reply-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(140, 180, 255, 0.3);
}

.inline-reply-cancel:hover:not(:disabled) {
  background: rgba(50, 60, 85, 0.9);
  color: var(--text-bright);
  border-color: rgba(140, 160, 200, 0.5);
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

.message-btn:hover {
  color: var(--text-bright);
  border-color: rgba(140, 180, 255, 0.4);
  background: rgba(30, 45, 70, 0.6);
  transform: translateY(-1px);
}

.pinned-tag::before {
  content: '📌';
  font-size: 10px;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(140, 180, 255, 0.4);
  background: rgba(15, 20, 30, 0.85);
  box-shadow: 0 0 0 2px rgba(140, 180, 255, 0.1);
}

.chat-input.disabled-for-reply::placeholder {
  color: rgba(140, 160, 190, 0.5);
  font-style: italic;
}

.reply-mode-notice {
  font-size: 12px;
  color: rgba(140, 180, 255, 0.8);
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(20, 30, 50, 0.4);
  border: 1px solid rgba(140, 180, 255, 0.2);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.tool-chip strong {
  color: var(--text-bright);
}

.icon-btn:hover:not(:disabled) {
  border-color: rgba(140, 180, 255, 0.5);
  background: rgba(30, 45, 70, 0.7);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(140, 180, 255, 0.2);
}

.fx-select:focus {
  outline: none;
  border-color: rgba(140, 180, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(140, 180, 255, 0.15);
}

.sidebar-card:hover {
  border-color: rgba(140, 180, 255, 0.25);
  box-shadow: 0 12px 32px rgba(5, 10, 18, 0.4);
}

.sidebar-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(140, 180, 255, 0.8), rgba(100, 140, 220, 0.8));
  border-radius: 2px;
}

.presence-list::-webkit-scrollbar {
  width: 4px;
}

.presence-list::-webkit-scrollbar-thumb {
  background: rgba(120, 150, 190, 0.3);
  border-radius: 2px;
}

.presence-item:hover {
  color: var(--text-bright);
  transform: translateX(4px);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-main);
}

.badge-row .badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(10, 15, 25, 0.9);
}

.badge-row .badge-icon.bronze {
  background: linear-gradient(135deg, #ad6f3b, #f2c16d);
  animation: badgeGlow 2s ease-in-out infinite;
}

.badge-row .badge-icon.silver {
  background: linear-gradient(135deg, #9aa8b8, #e7f0ff);
  animation: badgeGlow 2s ease-in-out infinite;
}

.badge-row .badge-icon.gold {
  background: linear-gradient(135deg, #f0b43a, #ffe7a0);
  animation: badgeGlow 2s ease-in-out infinite;
}

.award-panel {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 180, 0.2);
  background: rgba(15, 20, 30, 0.85);
  gap: 8px;
}

.award-panel.active {
  display: flex;
  flex-direction: column;
}

.award-options {
  display: flex;
  gap: 8px;
}

.award-btn {
  flex: 1;
  border: 1px solid rgba(120, 140, 180, 0.2);
  background: rgba(20, 30, 45, 0.6);
  color: var(--text-bright);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.award-note {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fx-cosmic-glow {
  box-shadow: 0 0 14px rgba(140, 180, 255, 0.3);
  border-color: rgba(140, 180, 255, 0.4);
}

.fx-retro-scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(120, 150, 190, 0.08), rgba(120, 150, 190, 0.08) 1px, transparent 1px, transparent 4px);
  opacity: 0.5;
  animation: scanlineMove 6s linear infinite;
  pointer-events: none;
}

.fx-nova-burst {
  background: radial-gradient(circle at 10% 20%, rgba(255, 200, 140, 0.15), transparent 50%),
    rgba(15, 20, 30, 0.9);
  border-color: rgba(255, 200, 140, 0.35);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 16px rgba(255, 255, 255, 0.45); }
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

@media (max-width: 1024px) {

  .chat-feed {
    max-height: min(60vh, 600px);
  }

}

@media (max-width: 768px) {

  .chat-sidebar {
    order: -1;
  }

  .inline-reply-form::before {
    left: 16px;
    top: -4px;
    width: 8px;
    height: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .message-card:hover,
  .chat-btn:hover,
  .icon-btn:hover {
    transform: none;
  }

}

.player-popup-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.player-popup.has-profile-fx {
  --popup-fx-safe-pad: 84px;
}

.player-popup > *:not(.player-popup-fx-layer):not(.player-popup-close):not(.player-popup-developer-badge) {
  position: relative;
  z-index: 2;
}

.player-popup-fx-particle {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: popupFxParticle 0.8s ease-out forwards;
}

.player-popup-fx-particle.fire {
  background: radial-gradient(circle at 30% 30%, rgba(255, 248, 215, 0.95), rgba(255, 132, 40, 0.7) 45%, rgba(255, 60, 20, 0.05));
  box-shadow: 0 0 16px rgba(255, 110, 30, 0.7);
}

.player-popup-fx-particle.lightning {
  background: radial-gradient(circle at 40% 40%, rgba(245, 252, 255, 0.96), rgba(126, 182, 255, 0.76) 50%, rgba(61, 110, 255, 0.05));
  box-shadow: 0 0 20px rgba(140, 190, 255, 0.8);
}

.player-popup-fx-particle.explosion {
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.95), rgba(255, 186, 80, 0.8) 45%, rgba(255, 65, 50, 0.1));
  box-shadow: 0 0 22px rgba(255, 120, 55, 0.75);
}

.player-popup-fx-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  animation: popupFxFlash 0.65s ease-out forwards;
}

.player-popup-fx-flash.fire {
  border-color: rgba(255, 165, 80, 0.85);
  box-shadow: 0 0 38px rgba(255, 115, 52, 0.55);
}

.player-popup-fx-flash.lightning {
  border-color: rgba(150, 205, 255, 0.9);
  box-shadow: 0 0 38px rgba(130, 190, 255, 0.62);
}

.player-popup-fx-flash.explosion {
  border-color: rgba(255, 205, 130, 0.9);
  box-shadow: 0 0 42px rgba(255, 144, 74, 0.62);
}

@keyframes popupFxParticle {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.4); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.05);
  }
}

@keyframes popupFxFlash {
  0% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

.player-popup-overlay.active .player-popup {
  transform: translateY(0) scale(1);
}

.player-popup-close:hover {
  border-color: rgba(200, 100, 120, 0.5);
  color: rgba(255, 150, 150, 0.9);
}

@keyframes developerBadgeGlow {
  0%, 100% {
    filter: saturate(1);
    box-shadow:
      0 0 0 1px rgba(131, 255, 231, 0.24) inset,
      0 0 24px rgba(65, 242, 198, 0.34),
      0 0 42px rgba(84, 152, 255, 0.22);
  }
  50% {
    filter: saturate(1.16);
    box-shadow:
      0 0 0 1px rgba(131, 255, 231, 0.34) inset,
      0 0 30px rgba(65, 242, 198, 0.46),
      0 0 54px rgba(84, 152, 255, 0.3);
  }
}

#playerPopupRankStat.rank-1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.05));
  border-color: rgba(251, 191, 36, 0.4);
}

#playerPopupRankStat.rank-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.14), rgba(192, 192, 192, 0.04));
  border-color: rgba(192, 192, 192, 0.35);
}

#playerPopupRankStat.rank-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.14), rgba(205, 127, 50, 0.04));
  border-color: rgba(205, 127, 50, 0.35);
}

#playerPopupGlobalRank.rank-1 { color: #fbbf24; animation: goldTextPulse 2.5s ease-in-out infinite; }

#playerPopupGlobalRank.rank-2 { color: #d8d8d8; animation: silverTextPulse 3s ease-in-out infinite; }

#playerPopupGlobalRank.rank-3 { color: #cd7f32; animation: bronzeTextPulse 3s ease-in-out infinite; }

.player-popup-highscores-list::-webkit-scrollbar {
  width: 8px;
}

.player-popup-highscores-list::-webkit-scrollbar-track {
  background: rgba(22, 30, 46, 0.65);
  border-radius: 999px;
}

.player-popup-highscores-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(154, 182, 232, 0.7), rgba(104, 132, 186, 0.7));
  border-radius: 999px;
}

.player-popup-highscores-list.is-loaded .popup-highscore-row {
  animation: popupScoreRowIn 320ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--row-delay, 0ms);
}

@keyframes popupScoreRowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#playerPopupGlobalRank {
  text-shadow: 0 0 24px rgba(196, 218, 255, 0.26);
}

.player-popup-tabs .shop-subtab:hover {
  color: rgba(244, 252, 255, 0.99);
  border-color: rgba(148, 236, 255, 0.84);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(220, 252, 255, 0.26), 0 8px 16px rgba(26, 114, 156, 0.34);
}

.player-popup-tabs .shop-subtab.active::after {
  content: '';
  position: absolute;
  inset: auto 10px -3px 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(98, 228, 255, 0.1), rgba(98, 228, 255, 0.92), rgba(98, 228, 255, 0.1));
  box-shadow: 0 0 12px rgba(98, 228, 255, 0.66);
}

.player-popup-tabs .shop-subtab:focus-visible {
  outline: 2px solid rgba(148, 236, 255, 0.96);
  outline-offset: 1px;
}

.player-popup-tab-panel.active {
  display: block;
}

.popup-highscore-loading.skeleton-list {
  place-items: stretch;
  gap: 7px;
  padding: 0;
  background: transparent;
  min-height: auto;
}

.popup-highscore-skeleton {
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(104, 125, 164, 0.18);
  background: linear-gradient(100deg, rgba(26, 37, 59, 0.68), rgba(47, 65, 95, 0.42), rgba(26, 37, 59, 0.68));
  background-size: 220% 100%;
  animation: popupSkeletonShift 1.4s ease-in-out infinite;
}

@keyframes popupSkeletonShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (max-width: 680px) {

  .player-popup-fx-pill {
    max-width: 46%;
  }

}

.leaderboard-side-stack .rank-card {
  position: static;
  top: auto;
}

.rank-card-value.top-earner {
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  font-weight: 800;
  color: rgba(225, 237, 255, 0.95);
  text-shadow: 0 0 16px rgba(162, 196, 245, 0.3);
  word-break: break-word;
}

.rank-card-value.live-active {
  margin: 14px 0 8px;
  font-size: 46px;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: rgba(214, 234, 255, 0.96);
  text-shadow: 0 0 18px rgba(142, 182, 245, 0.34);
}

.rank-card-split .rank-card-value.live-active {
  font-size: 36px;
  line-height: 1;
}

.rank-card-split .rank-card-value.top-earner {
  font-size: 36px;
  line-height: 1;
}

.rank-card-value.top-earner .top-earner-name {
  display: block;
  line-height: 1;
  font-size: 0.84em;
}

.rank-card-value.top-earner .top-earner-amount {
  display: block;
  margin-top: 5px;
  font-size: 0.34em;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: rgba(194, 216, 248, 0.9);
}

.rank-card-value.top-earner .top-earner-token-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.rank-card-value.top-earner .top-earner-token-icon {
  position: relative;
  width: 13px;
  height: 13px;
  object-fit: contain;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 0 5px rgba(182, 116, 255, 0.55));
}

.rank-card-value.top-earner .top-earner-token-line::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(162, 94, 255, 0.48), rgba(162, 94, 255, 0));
  transform: translate(-2px, 0);
  pointer-events: none;
}

.rank-card-value.top-earner .top-earner-token-text {
  position: relative;
  z-index: 1;
}

.hero-live-card.tokens .shop-wallet-label {
  color: rgba(232, 212, 255, 0.92);
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  text-align: left;
}

.hero-live-card.tokens .shop-wallet-value {
  font-size: clamp(48px, 5.2vw, 70px);
  line-height: 0.92;
  font-weight: 800;
  color: rgba(250, 240, 255, 0.98);
  text-shadow: 0 0 22px rgba(214, 150, 255, 0.5);
}

.hero-live-card.tokens .shop-wallet-value.digits-5 {
  font-size: clamp(42px, 4.4vw, 58px);
}

.hero-live-card.tokens .shop-wallet-value.digits-6plus {
  font-size: clamp(34px, 3.6vw, 48px);
  letter-spacing: -0.02em;
}

@keyframes tokenCounterPop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  45% {
    transform: scale(1.065);
    filter: brightness(1.14);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.hero-live-value.small {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.08;
}

.daily-reward-track-shell::before,
.daily-reward-track-shell::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -2px;
  width: 30px;
  pointer-events: none;
  z-index: 3;
  display: none;
}

.daily-reward-track-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(16, 24, 45, 0.98), rgba(16, 24, 45, 0));
}

.daily-reward-track-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(16, 24, 45, 0.98), rgba(16, 24, 45, 0));
}

.daily-reward-track-shell.at-start::before {
  width: 14px;
  opacity: 0.58;
}

.daily-reward-track-shell.at-start {
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 1) 8px,
    rgba(0, 0, 0, 1) calc(100% - 18px),
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 1) 8px,
    rgba(0, 0, 0, 1) calc(100% - 18px),
    rgba(0, 0, 0, 0) 100%
  );
}

@supports not ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {

  .daily-reward-track-shell::before,
  .daily-reward-track-shell::after {
    display: block;
  }

}

.season-strip-panel {
  border-radius: 14px;
  border: 1px solid rgba(132, 162, 236, 0.24);
  background: rgba(16, 24, 45, 0.62);
  padding: 11px;
  display: grid;
  gap: 8px;
}

.season-pass-track-shell {
  position: relative;
  overflow: hidden;
  margin: 0 -2px;
  padding: 12px 0 10px;
  min-height: 98px;
  isolation: isolate;
}

.season-pass-track-shell::before,
.season-pass-track-shell::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -2px;
  width: 30px;
  pointer-events: none;
  z-index: 3;
}

.season-pass-track-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(16, 24, 45, 0.98), rgba(16, 24, 45, 0));
}

.season-pass-track-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(16, 24, 45, 0.98), rgba(16, 24, 45, 0));
}

.season-pass-track-shell.at-start::before {
  width: 14px;
  opacity: 0.58;
}

.season-pass-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  padding: 6px 12px 4px;
  width: calc(100% + 68px);
  margin-left: -34px;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(116, 148, 216, 0), rgba(116, 148, 216, 0.46) 14%, rgba(116, 148, 216, 0.46) 86%, rgba(116, 148, 216, 0));
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 28px) 1px;
}

.season-pass-track-shell.at-start .season-pass-track {
  width: calc(100% + 34px);
  margin-left: -6px;
}

.season-pass-node {
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(115, 144, 218, 0.34);
  background: linear-gradient(145deg, rgba(22, 34, 60, 0.98), rgba(16, 25, 46, 0.98));
  display: grid;
  align-content: center;
  text-align: center;
  gap: 4px;
  padding: 8px 14px;
  box-shadow: inset 0 1px 0 rgba(150, 176, 224, 0.08);
}

.season-pass-node .tier {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(174, 196, 238, 0.92);
  font-weight: 700;
}

.season-pass-node .reward {
  font-size: 24px;
  font-weight: 900;
  line-height: 0.95;
  color: rgba(236, 242, 255, 0.98);
  text-shadow: 0 0 14px rgba(136, 172, 236, 0.24);
}

.season-pass-token-reward {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.season-pass-token {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(194, 152, 255, 0.62));
}

.season-pass-token-amt {
  font-size: 15px;
  font-weight: 900;
  color: rgba(236, 242, 255, 0.98);
  letter-spacing: 0.02em;
  line-height: 1;
}

.season-pass-node:not(.unlocked):not(.current) {
  border-color: rgba(96, 122, 186, 0.42);
  background: linear-gradient(145deg, rgba(18, 28, 50, 0.99), rgba(12, 20, 38, 0.99));
}

.season-pass-node.unlocked {
  border-color: rgba(112, 192, 255, 0.86);
  box-shadow: 0 0 20px rgba(86, 164, 255, 0.34), inset 0 1px 0 rgba(206, 232, 255, 0.24);
  background: linear-gradient(145deg, rgba(34, 58, 98, 0.94), rgba(22, 39, 70, 0.94));
}

.season-pass-node.current {
  border-color: rgba(142, 188, 255, 0.74);
  box-shadow: 0 0 16px rgba(112, 168, 255, 0.3);
  transform: translateY(-1px);
}

.hero-claim-btn:hover {
  border-color: rgba(190, 220, 255, 0.9);
  box-shadow: 0 0 26px rgba(134, 186, 255, 0.58), 0 8px 22px rgba(20, 34, 58, 0.4);
}

@keyframes heroClaimPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(122, 170, 255, 0.42), 0 6px 18px rgba(22, 34, 58, 0.34);
  }
  50% {
    box-shadow: 0 0 28px rgba(138, 192, 255, 0.6), 0 8px 22px rgba(22, 36, 62, 0.4);
  }
}

@keyframes dailyClaimButtonFlash {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(116, 174, 255, 0.3), inset 0 1px 0 rgba(214, 232, 255, 0.24);
  }
  24% {
    transform: scale(1.08);
    box-shadow: 0 0 36px rgba(156, 214, 255, 0.7), 0 0 60px rgba(136, 188, 255, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(116, 174, 255, 0.3), inset 0 1px 0 rgba(214, 232, 255, 0.24);
  }
}

@keyframes dailyClaimShineSweep {
  0% {
    transform: rotate(16deg) translateX(-10%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: rotate(16deg) translateX(460%);
    opacity: 0;
  }
}

@keyframes dailyCardBlast {
  0% {
    transform: scale(1.01);
    box-shadow: 0 0 24px rgba(144, 206, 255, 0.44);
  }
  42% {
    transform: scale(1.08);
    box-shadow: 0 0 44px rgba(178, 236, 255, 0.78), 0 0 70px rgba(114, 226, 186, 0.45);
  }
  100% {
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes dailyClaimablePulse {
  0%, 100% {
    transform: translateY(-2px) scale(1.01);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

@keyframes dailyPanelPulse {
  0% {
    box-shadow: inset 0 1px 0 rgba(196, 220, 255, 0.12), 0 0 24px rgba(100, 150, 255, 0.18);
  }
  38% {
    box-shadow: inset 0 1px 0 rgba(212, 232, 255, 0.34), 0 0 44px rgba(142, 206, 255, 0.42), 0 0 76px rgba(124, 228, 196, 0.24);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(196, 220, 255, 0.12), 0 0 24px rgba(100, 150, 255, 0.18);
  }
}

.shop-spotlight-rail .shop-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name price"
    "icon desc price";
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  text-align: left;
  min-height: 96px;
  padding: 12px 14px;
  position: relative;
}

.shop-spotlight-rail .shop-item-icon {
  grid-area: icon;
  margin-bottom: 0;
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
}

.powerup-wide-grid .shop-item[data-item="life"],
.shop-spotlight-rail .shop-item[data-item="life"] {
  --powerup-outline-rgb: 236, 130, 146;
  --powerup-glow-rgb: 238, 92, 116;
  --powerup-hover-top-rgb: 152, 54, 68;
  --powerup-hover-bottom-rgb: 82, 28, 40;
}

.powerup-wide-grid .shop-item[data-item="shield"],
.shop-spotlight-rail .shop-item[data-item="shield"] {
  --powerup-outline-rgb: 136, 186, 248;
  --powerup-glow-rgb: 102, 170, 255;
  --powerup-hover-top-rgb: 58, 98, 156;
  --powerup-hover-bottom-rgb: 28, 52, 96;
}

.powerup-wide-grid .shop-item[data-item="magnet"],
.shop-spotlight-rail .shop-item[data-item="magnet"] {
  --powerup-outline-rgb: 204, 216, 236;
  --powerup-glow-rgb: 176, 196, 228;
  --powerup-hover-top-rgb: 108, 116, 138;
  --powerup-hover-bottom-rgb: 62, 70, 88;
}

.powerup-wide-grid .shop-item[data-item="score"],
.shop-spotlight-rail .shop-item[data-item="score"] {
  --powerup-outline-rgb: 234, 196, 112;
  --powerup-glow-rgb: 246, 194, 74;
  --powerup-hover-top-rgb: 128, 98, 36;
  --powerup-hover-bottom-rgb: 70, 52, 18;
}

.powerup-wide-grid .shop-item[data-item="slow"],
.shop-spotlight-rail .shop-item[data-item="slow"] {
  --powerup-outline-rgb: 234, 168, 224;
  --powerup-glow-rgb: 222, 134, 222;
  --powerup-hover-top-rgb: 134, 66, 126;
  --powerup-hover-bottom-rgb: 78, 34, 74;
}

#shopCatalogPanel .powerup-wide-grid .shop-item[data-item]:hover,
#shopCatalogPanel .powerup-wide-grid .shop-item[data-item]:focus-visible,
.shop-spotlight-rail .shop-item[data-item]:hover,
.shop-spotlight-rail .shop-item[data-item]:focus-visible {
  border-color: rgba(var(--powerup-outline-rgb), 0.96);
  background: linear-gradient(
    145deg,
    rgba(var(--powerup-hover-top-rgb), 0.9),
    rgba(var(--powerup-hover-bottom-rgb), 0.95)
  );
  box-shadow:
    0 14px 36px rgba(6, 20, 46, 0.56),
    0 0 30px rgba(var(--powerup-glow-rgb), 0.54),
    0 0 58px rgba(var(--powerup-glow-rgb), 0.34),
    inset 0 0 0 1px rgba(var(--powerup-outline-rgb), 0.62);
}

#shopCatalogPanel .powerup-wide-grid .shop-item[data-item]:hover::before,
#shopCatalogPanel .powerup-wide-grid .shop-item[data-item]:focus-visible::before,
.shop-spotlight-rail .shop-item[data-item]:hover::before,
.shop-spotlight-rail .shop-item[data-item]:focus-visible::before {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--powerup-outline-rgb), 0.9),
    transparent
  );
  height: 2px;
}

.shop-spotlight-rail .shop-item-name {
  grid-area: name;
  justify-self: start;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(228, 238, 255, 0.97);
  line-height: 1.08;
  align-self: end;
}

.shop-spotlight-rail .shop-item-desc {
  grid-area: desc;
  justify-self: start;
  margin: 0;
  font-size: 11px;
  line-height: 1.36;
  color: rgba(178, 196, 226, 0.9);
  align-self: start;
}

.shop-spotlight-rail .shop-item-price,
.shop-spotlight-rail .shop-fx-price {
  grid-area: price;
  justify-self: end;
  margin-top: 0;
}

.powerup-wide-grid .shop-item.shop-bundle-item {
  min-height: 96px;
}

.powerup-wide-grid .shop-item.shop-bundle-item .shop-item-name {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0.11em;
}

.powerup-wide-grid .shop-item.shop-bundle-item .shop-item-subdesc {
  display: none;
}

.powerup-wide-grid .shop-item.shop-bundle-item .shop-item-desc.shop-bundle-desc {
  margin: 0;
  align-self: start;
  color: rgba(188, 210, 244, 0.92);
}

.shop-bundle-bullets li {
  position: relative;
  padding-left: 12px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.shop-bundle-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(176, 130, 255, 0.92);
  font-weight: 900;
}

.powerup-wide-grid .shop-item.shop-bundle-item .shop-item-icon.bundle {
  width: 56px;
  height: 56px;
  font-size: 44px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-self: start;
  margin-left: 0;
}

.powerup-wide-grid .shop-item.shop-bundle-item .shop-item-icon.bundle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mobile-bottom-nav::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 196, 255, 0.32), transparent);
  pointer-events: none;
}

body.mobile-profile-modal-open .mobile-bottom-nav {
  display: none !important;
}

body.mobile-guest .mobile-nav-btn {
  display: none !important;
}

body.mobile-guest .mobile-nav-auth-btn {
  display: flex;
}

body.mobile-guest .mobile-bottom-nav {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-bg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 224, 255, 0.52), transparent);
  pointer-events: none;
}

.mobile-nav-bg img {
  display: none !important;
}

.mobile-nav-btn[data-mobile-view="home"] .mobile-nav-icon {
  transform: translateY(-1px);
}

.mobile-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mobile-nav-icon svg {
  display: none !important;
}

.mobile-nav-label {
  display: none;
}

.mobile-nav-btn.active .mobile-nav-icon {
  filter: drop-shadow(0 0 14px rgba(196, 242, 255, 0.98)) drop-shadow(0 0 26px rgba(102, 222, 255, 0.72));
}

.mobile-nav-btn:active {
  transform: scale(0.96);
}

.mobile-context-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-context-menu.guest .mobile-context-avatar {
  filter: blur(1.2px) saturate(0.68) brightness(0.72);
  opacity: 0.78;
}

.mobile-context-menu.guest .mobile-context-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.22), rgba(8, 12, 20, 0.42));
  pointer-events: none;
}

.mobile-context-menu.guest .mobile-context-nav {
  display: none;
}

.mobile-context-nav-btn:active {
  border-color: rgba(114, 198, 255, 0.46);
  background: rgba(42, 76, 126, 0.26);
}

.mobile-a2hs-banner.active {
  display: flex;
  animation: mobileWarnPulse 1.15s ease-in-out infinite;
}

.portrait-lock-overlay strong {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: rgba(170, 232, 255, 0.98);
}

@keyframes mobileWarnPulse {
  0%, 100% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34), 0 0 12px rgba(255, 188, 72, 0.28), inset 0 1px 0 rgba(255, 236, 170, 0.24);
    border-color: rgba(255, 220, 130, 0.72);
  }
  50% {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36), 0 0 26px rgba(255, 206, 88, 0.54), inset 0 1px 0 rgba(255, 242, 184, 0.32);
    border-color: rgba(255, 236, 162, 0.92);
  }
}
