@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes store-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-1 * var(--store-marquee-distance, 50%)), 0, 0);
  }
}
@keyframes marquee-reverse {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
.animate-marquee {
  animation: marquee 90s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.animate-marquee-reverse {
  animation: marquee-reverse 90s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.store-marquee-shell {
  position: relative;
  padding: 20px 0;
}
.store-marquee-container {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.store-marquee-inner {
  padding: 0;
  overflow: hidden;
}
.store-marquee-track {
  --store-marquee-gap: 1rem;
  --store-marquee-duration: 45s;
  display: flex;
  align-items: center;
  gap: var(--store-marquee-gap);
  width: max-content;
  min-height: 200px;
  transform: translateZ(0);
  animation: store-marquee-scroll var(--store-marquee-duration) linear infinite;
}
.store-marquee-track:hover {
  animation-play-state: paused;
}
@media (min-width: 768px) {
  .store-marquee-container {
    margin: 0 -60px;
    overflow: visible;
  }
  .store-marquee-inner {
    padding: 0 60px;
    overflow: visible;
  }
}
@media (min-width: 1024px) {
  .store-marquee-container {
    margin: 0 -150px;
  }
  .store-marquee-inner {
    padding: 0 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-marquee-track {
    animation: none;
  }
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #151521;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  border-radius: 5px;
}

/* Starfield Background */
.starfield {
  background: radial-gradient(
    ellipse at center,
    rgba(16, 16, 32, 0.9) 0%,
    rgba(10, 10, 15, 0.98) 100%
  );
  z-index: 0;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: 200px 200px;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.stars-small {
  background-image:
    radial-gradient(
      1px 1px at 20px 30px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1px 1px at 40px 70px, rgba(147, 51, 234, 0.7), transparent),
    radial-gradient(
      1px 1px at 90px 40px,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(192, 132, 252, 0.6),
      transparent
    ),
    radial-gradient(
      1px 1px at 160px 30px,
      rgba(255, 255, 255, 0.55),
      transparent
    );
  background-size: 200px 100px;
  animation: stars-move 20s linear infinite;
}

.stars-medium {
  background-image:
    radial-gradient(
      2px 2px at 30px 40px,
      rgba(255, 255, 255, 0.4),
      transparent
    ),
    radial-gradient(2px 2px at 70px 80px, rgba(147, 51, 234, 0.5), transparent),
    radial-gradient(
      1px 1px at 110px 10px,
      rgba(192, 132, 252, 0.4),
      transparent
    ),
    radial-gradient(
      1px 1px at 150px 60px,
      rgba(255, 255, 255, 0.3),
      transparent
    );
  background-size: 200px 120px;
  animation: stars-move 30s linear infinite;
}

.stars-large {
  background-image:
    radial-gradient(3px 3px at 50px 50px, rgba(147, 51, 234, 0.6), transparent),
    radial-gradient(
      2px 2px at 120px 20px,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(
      2px 2px at 180px 90px,
      rgba(192, 132, 252, 0.4),
      transparent
    );
  background-size: 200px 150px;
  animation: stars-move 45s linear infinite;
}

@keyframes stars-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200px);
  }
}

/* Review Card Styles */
.review-card {
  flex: 0 0 auto;
  width: var(--card-width, 380px); /* Dynamic width based on content */
  min-width: 360px;
  max-width: 520px;
  min-height: 260px; /* Minimum height, can grow as needed */
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.15),
    rgba(126, 34, 206, 0.08)
  );
  backdrop-filter: blur(15px);
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: 1rem;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible; /* Allow content to be fully visible */
  will-change: transform;
  transform: translateZ(0) translateY(var(--float-start, 0px))
    rotate(var(--card-rotation, 0deg)) scale(var(--card-scale, 1));
  backface-visibility: hidden;
  animation: space-float var(--float-duration, 8s) infinite ease-in-out;
  z-index: 20; /* Increased base z-index */
  box-shadow:
    0 8px 32px rgba(147, 51, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateZ(0) translateY(calc(var(--float-start, 0px) - 8px))
    rotate(0deg) scale(1.05) !important;
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow:
    0 20px 40px rgba(147, 51, 234, 0.25),
    0 10px 20px rgba(147, 51, 234, 0.2),
    0 0 0 1px rgba(147, 51, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 9999 !important; /* Highest z-index when hovered */
  opacity: 1 !important;
  filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.3)) !important;
  position: relative;
}

/* Simple shimmer line - 90% width centered */
.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(147, 51, 234, 0.6) 50%,
    transparent 100%
  );
  background-size: 50% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

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

@keyframes space-float {
  0% {
    transform: translateZ(0) translateY(var(--float-start, 0px))
      rotate(var(--card-rotation, 0deg)) scale(var(--card-scale, 1));
  }
  25% {
    transform: translateZ(0)
      translateY(
        calc(var(--float-start, 0px) - var(--float-amplitude, 8px) * 0.7)
      )
      rotate(calc(var(--card-rotation, 0deg) + var(--rotation-variation, 3deg)))
      scale(calc(var(--card-scale, 1) * var(--scale-variation, 1.03)));
  }
  50% {
    transform: translateZ(0)
      translateY(calc(var(--float-start, 0px) - var(--float-amplitude, 8px)))
      rotate(
        calc(var(--card-rotation, 0deg) + var(--rotation-variation, 3deg) * 0.5)
      )
      scale(calc(var(--card-scale, 1) * var(--scale-mid, 0.97)));
  }
  75% {
    transform: translateZ(0)
      translateY(
        calc(var(--float-start, 0px) - var(--float-amplitude, 8px) * 0.3)
      )
      rotate(
        calc(var(--card-rotation, 0deg) - var(--rotation-variation, 3deg) * 0.5)
      )
      scale(calc(var(--card-scale, 1) * var(--scale-variation, 1.02)));
  }
  100% {
    transform: translateZ(0) translateY(var(--float-start, 0px))
      rotate(var(--card-rotation, 0deg)) scale(var(--card-scale, 1));
  }
}

@keyframes space-drift {
  0% {
    transform: translateZ(0) translateY(var(--float-start, 0px))
      rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1));
  }
  33% {
    transform: translateZ(0)
      translateY(calc(var(--float-start, 0px) - var(--drift-amplitude, 6px)))
      rotate(calc(var(--base-rotation, 0deg) + var(--drift-rotation, 5deg)))
      scale(calc(var(--base-scale, 1) * var(--drift-scale, 1.05)));
  }
  66% {
    transform: translateZ(0)
      translateY(
        calc(var(--float-start, 0px) + var(--drift-amplitude, 6px) * 0.5)
      )
      rotate(
        calc(var(--base-rotation, 0deg) - var(--drift-rotation, 5deg) * 0.7)
      )
      scale(calc(var(--base-scale, 1) * var(--drift-scale-alt, 0.95)));
  }
  100% {
    transform: translateZ(0) translateY(var(--float-start, 0px))
      rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1));
  }
}

.review-icon {
  display: inline-block;
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.review-rating {
  display: inline-block;
  margin-left: 0.5rem;
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.875rem;
}

.review-title {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.review-body {
  color: #a0a0c0;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.75rem 0 1rem 0;
  flex: 1;
  overflow: visible; /* Show all text */
  word-wrap: break-word;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto; /* Push to bottom */
  padding-top: 0.75rem;
  border-top: 1px solid rgba(147, 51, 234, 0.2); /* More visible */
  position: relative;
  z-index: 1;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-author {
  color: #e0e0ff;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.375rem;
}

.review-badges {
  display: flex;
  gap: 0.5rem;
}

.collector-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.25),
    rgba(126, 34, 206, 0.15)
  );
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: 9999px;
  color: #c084fc;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.review-date {
  color: #8080a0;
  font-size: 0.75rem;
  display: block;
  margin-top: 0.125rem;
}

#reviews-row-1,
#reviews-row-2 {
  display: flex;
  width: max-content;
  overflow: visible !important; /* Force cards to extend beyond track */
  position: relative;
  z-index: 15;
  clip: unset !important;
  clip-path: none !important;
  contain: none !important; /* Remove any containment */
}

#reviews-row-1 {
  margin-bottom: 0.5rem !important;
}

/* Responsive review marquee container */
.review-marquee-container {
  margin: 0;
  position: relative;
  overflow: visible !important; /* Force visible to prevent card cutoff */
  padding: 10px 0; /* Reduced vertical padding */
  z-index: 10; /* Ensure cards stay on top */
  clip: unset !important;
  clip-path: none !important;
}

.review-marquee-inner {
  padding: 0;
  overflow: visible !important; /* Force visible */
  position: relative;
  z-index: 10;
  clip: unset !important;
  clip-path: none !important;
}

/* Tablet and desktop */
@media (min-width: 768px) {
  .review-marquee-container {
    margin: 0 -60px;
    overflow: visible;
    padding: 10px 0; /* Reduced vertical padding */
  }

  .review-marquee-inner {
    padding: 0 60px;
    overflow: visible;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  .review-marquee-container {
    margin: 0 -150px;
    padding: 10px 0; /* Reduced vertical padding */
  }

  .review-marquee-inner {
    padding: 0 150px;
  }
}

/* Store Logo Glass Effect */
.store-logo-container {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  will-change: transform;
  transform: translateZ(0);
}

.store-logo-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(147, 51, 234, 0.02)
  );
  backdrop-filter: blur(12px) saturate(110%);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.store-logo-container img {
  position: relative;
  z-index: 1;
  filter: brightness(1.2) contrast(1.1);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.store-card:hover .store-logo-container::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(147, 51, 234, 0.04)
  );
  border-color: rgba(147, 51, 234, 0.2);
  box-shadow:
    0 8px 24px rgba(147, 51, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.store-card:hover .store-logo-container img {
  filter: brightness(1.3) contrast(1.15);
  transform: scale(1.05);
}

.store-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
  filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.4)) !important;
  transform: translateY(-8px) scale(1.05) !important;
  z-index: 1000 !important;
  border-color: rgba(147, 51, 234, 0.6) !important;
  opacity: 1 !important;
}

.store-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(12px) saturate(180%);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.store-card:hover .store-hover-overlay {
  opacity: 1;
}

.store-count-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  font-weight: 600;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.025em;
}

/* Clean fade from content edge to black */
.viewport-fade-left {
  width: 400px;
  right: calc(50vw + 640px); /* Start at left edge of content */
  background: linear-gradient(
    to left,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 80%,
    #000000 100%
  );
}

/* Solid black beyond fade zone (left) */
.viewport-fade-left::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 400px;
  width: 9999px;
  background: #000000;
  z-index: inherit;
}

.viewport-fade-right {
  width: 400px;
  left: calc(50vw + 640px); /* Start at right edge of content */
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 80%,
    #000000 100%
  );
}

/* Solid black beyond fade zone (right) */
.viewport-fade-right::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 400px;
  width: 9999px;
  background: #000000;
  z-index: inherit;
}

/* Grid Background Effect */
.grid-background {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
  will-change: transform;
}

.grid-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-image:
    radial-gradient(
      circle at 0px 0px,
      rgba(147, 51, 234, 0.3) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 60px 60px,
      rgba(192, 132, 252, 0.2) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 120px 0px,
      rgba(147, 51, 234, 0.25) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 0px 120px,
      rgba(168, 85, 247, 0.2) 2px,
      transparent 2px
    );
  background-size: 120px 120px;
  animation:
    grid-pulse 8s ease-in-out infinite,
    grid-drift 25s linear infinite reverse;
  will-change: transform, opacity;
}

@keyframes grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-60px, -60px, 0);
  }
}

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Discord Mockup Background - Decorative Only */
.discord-mockup {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

.discord-sidebar {
  width: 320px;
  background: rgba(47, 49, 54, 0.4);
  padding: 20px;
  border-right: 1px solid rgba(147, 51, 234, 0.1);
}

.server-icon {
  width: 64px;
  height: 64px;
  background: rgba(147, 51, 234, 0.9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-bottom: 24px;
  font-size: 20px;
  padding: 8px;
}

.server-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.channel-list {
  font-size: 16px;
}

.channel-category {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin: 24px 0 12px 0;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.8px;
}

.channel-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.channel-item.active {
  background: rgba(79, 84, 92, 0.5);
  color: rgba(255, 255, 255, 1);
}

.discord-chat {
  flex: 1;
  background: rgba(54, 57, 63, 0.3);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.1);
  background: rgba(47, 49, 54, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-hash {
  color: rgba(185, 187, 190, 1);
  font-weight: bold;
  font-size: 24px;
}

.channel-name {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
  font-size: 20px;
}

.chat-messages {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-embed {
  background: rgba(47, 49, 54, 0.5);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  max-width: 600px;
  animation: embed-appear 2s ease-in-out infinite;
}

.alert-embed:nth-child(1) {
  animation-delay: 0s;
}
.alert-embed:nth-child(2) {
  animation-delay: 2s;
}
.alert-embed:nth-child(3) {
  animation-delay: 4s;
}

.embed-left-border {
  width: 6px;
  background: rgba(147, 51, 234, 0.8);
  flex-shrink: 0;
}

.embed-left-border.price-drop {
  background: rgba(255, 165, 0, 0.8);
}

.embed-content {
  padding: 20px;
  flex: 1;
}

.embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.embed-author {
  color: rgba(200, 150, 255, 1);
  font-weight: 600;
  font-size: 14px;
}

.embed-time {
  color: rgba(200, 200, 200, 0.9);
  font-size: 12px;
}

.embed-title {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}

.embed-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.field-name {
  color: rgba(200, 200, 220, 1);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.field-value {
  color: rgba(255, 255, 255, 1);
  font-size: 14px;
}

.old-price {
  text-decoration: line-through;
  color: rgba(200, 200, 200, 0.8);
  margin-left: 4px;
}

@keyframes embed-appear {
  0%,
  80% {
    opacity: 0.4;
    transform: translateY(2px);
  }
  85%,
  95% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.4;
    transform: translateY(2px);
  }
}

/* Pokemon-style logo text */
.pokemon-logo {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.5),
    1px 1px 2px rgba(147, 51, 234, 0.4),
    -1px -1px 2px rgba(147, 51, 234, 0.4);
  position: relative;
  display: inline-block;
}

@media (min-width: 768px) {
  .pokemon-logo {
    font-size: 1.75rem;
  }
}
