:root {
  --xbox-green: #10b981;
  --playstation-blue: #2563eb;
  --switch-red: #ef4444;
  --neutral-900: #0b0f1a;
  --neutral-800: #131a2b;
  --neutral-700: #1f2740;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f6f8fc;
  --accent-gold: #f59e0b;
  --accent-primary: #6366f1;
  --accent-primary-strong: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-pink: #ec4899;
  --border-soft: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 20px 45px -18px rgba(15, 23, 42, 0.28);
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  --gradient-cool: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-50);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(6, 182, 212, 0.10), transparent 55%),
    radial-gradient(700px 400px at 50% 100%, rgba(236, 72, 153, 0.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

a {
  text-decoration: none;
  color: var(--accent-primary-strong);
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent-primary);
}

::selection {
  background: rgba(99, 102, 241, 0.25);
  color: var(--neutral-900);
}

/* Navigation */
.main-nav {
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 20px -12px rgba(15, 23, 42, 0.15);
}

.main-nav .nav-link {
  color: var(--neutral-700);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary-strong);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.brand-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gradient-brand);
  box-shadow: 0 6px 14px -4px rgba(99, 102, 241, 0.55);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 60%);
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6)),
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.25), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.22), transparent 55%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.3), rgba(236, 72, 153, 0.3), rgba(99, 102, 241, 0.35));
  right: -160px;
  top: -200px;
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1.display-5 {
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hero .lead {
  max-width: 720px;
  color: var(--neutral-500);
  font-size: 1.1rem;
}

.hero .badge.text-bg-dark {
  background: var(--neutral-900) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.5em 0.9em;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero .form-control {
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.hero .form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.hero .btn-dark {
  border-radius: 999px;
  background: var(--neutral-900);
  border: none;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.5);
}

.hero .btn-dark:hover {
  background: var(--accent-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.55);
}

/* Platform chips */
.platform-chip {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--neutral-900);
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.platform-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: var(--neutral-900);
}

.platform-chip.xbox {
  border-color: rgba(16, 185, 129, 0.4);
}
.platform-chip.xbox:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0));
  border-color: var(--xbox-green);
}

.platform-chip.playstation {
  border-color: rgba(37, 99, 235, 0.4);
}
.platform-chip.playstation:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0));
  border-color: var(--playstation-blue);
}

.platform-chip.switch {
  border-color: rgba(239, 68, 68, 0.4);
}
.platform-chip.switch:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0));
  border-color: var(--switch-red);
}

/* Section titles */
.section-title {
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--gradient-brand);
  margin-top: 0.5rem;
}

.section-subtitle {
  color: var(--neutral-500);
  margin-bottom: 1.6rem;
  font-size: 0.98rem;
}

/* Feature buckets */
.feature-bucket {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.feature-bucket:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--border-strong);
}

.feature-bucket h3 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.feature-section-body {
  width: 100%;
}

.feature-card-grid--static,
.feature-card-grid--carousel {
  width: 100%;
}

.feature-card-grid--carousel {
  padding-bottom: 0.25rem;
}

.feature-card-shell {
  min-width: 0;
  height: 100%;
}

.feature-card-shell .game-card {
  height: 100%;
  max-width: none;
  margin-inline: 0;
}

.feature-carousel {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.feature-carousel .carousel-inner {
  overflow: hidden;
  padding-top: 1px;
}

.feature-carousel .carousel-item {
  padding: 0.15rem 0.05rem 0.35rem;
}

.feature-carousel-control {
  width: 60px;
  opacity: 1;
}

.feature-carousel-control:hover,
.feature-carousel-control:focus {
  opacity: 1;
}

.feature-carousel-control .homepage-carousel-control-icon {
  background: rgba(15, 23, 42, 0.9);
}

/* Grid layouts for platform/game pages */
#platformGrid,
#similarGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-left: 0;
  margin-right: 0;
}

#platformGrid > [class*="col-"],
#similarGrid > [class*="col-"] {
  width: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#platformGrid .game-card,
#similarGrid .game-card {
  max-width: none;
  margin-inline: 0;
}

/* Game cards */
.game-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  height: 100%;
  max-width: 240px;
  margin-inline: auto;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  isolation: isolate;
}

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

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.25);
}

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

.game-card img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

#bestSellerGrid .game-card img {
  object-fit: cover;
}

.game-card:hover img {
  transform: scale(1.04);
}

.game-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1rem 1.1rem;
}

.game-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.game-card .small.text-secondary {
  color: var(--neutral-500) !important;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Trending carousel */
#trendingCarousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

#trendingTrack .carousel-item img {
  max-height: 460px;
  object-fit: cover;
}

.homepage-carousel-control {
  width: 60px;
  opacity: 1;
}

.homepage-carousel-control:hover,
.homepage-carousel-control:focus {
  opacity: 1;
}

.homepage-carousel-control-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.5);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.homepage-carousel-control:hover .homepage-carousel-control-icon {
  transform: scale(1.06);
  background: var(--accent-primary-strong);
}

.homepage-carousel-control-icon i {
  font-size: 1.35rem;
  line-height: 1;
}

#productImage {
  width: 100%;
  max-width: 360px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-bucket .game-card {
  max-width: none;
}

.feature-bucket.is-primary {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 252, 0.95));
}

.feature-bucket.is-primary .game-card img {
  height: 300px;
}

.feature-bucket.is-preview {
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.feature-bucket.is-preview h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.feature-bucket.is-preview .feature-grid {
  --bs-gutter-x: 0.7rem;
  --bs-gutter-y: 0.7rem;
}

.feature-bucket.is-preview .game-card {
  border-radius: var(--radius-sm);
}

.feature-bucket.is-preview .game-card img {
  height: 170px;
  margin: 10px auto;
}

.feature-bucket.is-preview .game-card h3 {
  min-height: 2.6rem;
  font-size: 0.88rem;
}

.feature-bucket.is-preview .game-card .small.text-secondary {
  min-height: 1.8rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.76rem;
}

#platform .game-card .small.text-secondary {
  min-height: 9rem;
  -webkit-line-clamp: 7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-bucket.is-preview .game-card .buy-btn {
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
}

.feature-bucket.is-preview .game-card .price-pill {
  font-size: 0.75rem;
  padding: 3px 8px;
}

.feature-bucket .game-card h3 {
  min-height: 3.2rem;
  line-height: 1.3;
}

.feature-bucket .game-card .small.text-secondary {
  min-height: 4.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.genre-bucket .game-card img {
  height: 220px;
}

.genre-bucket .game-card .card-body .d-flex {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-bucket .game-card .buy-btn {
  white-space: normal;
  word-break: break-word;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}

.genre-bucket .game-card .price-pill {
  font-size: 0.75rem;
  padding: 3px 8px;
  flex-shrink: 0;
}

.meta-row {
  font-size: 0.86rem;
  color: var(--neutral-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.price-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* Platform banner */
.platform-banner {
  border-radius: var(--radius-xl);
  color: #fff;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    135deg,
    var(--platform-hex-dark, #0b1f4d),
    var(--platform-hex, #2563eb) 55%,
    var(--platform-hex-light, #60a5fa) 100%
  );
  position: relative;
  overflow: hidden;
}

.platform-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(0, 0, 0, 0.25), transparent 55%);
  pointer-events: none;
}

.platform-banner > * {
  position: relative;
  z-index: 1;
}

.display-6 { color: var(--text-color); }

.platform-banner.playstation {
  background: linear-gradient(135deg, #0b1f4d, #2563eb 50%, #60a5fa 100%);
}

.platform-banner.xbox {
  background: linear-gradient(135deg, #064e3b, #10b981 50%, #6ee7b7 100%);
}

.platform-banner.switch {
  background: linear-gradient(135deg, #7f1d1d, #ef4444 50%, #fca5a5 100%);
}

/* Surface containers */
.filter-box {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.comparison-table table {
  margin: 0;
}

.comparison-table thead th {
  background: var(--neutral-50);
  color: var(--neutral-700);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}

.comparison-table tbody tr {
  transition: background 0.15s var(--ease-out);
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.faq-wrap,
.disclaimer,
.detail-panel,
.similar-wrap {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.disclaimer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 252, 0.85));
}

/* Buttons */
.buy-btn {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -8px rgba(99, 102, 241, 0.6);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}

.buy-btn:hover,
.buy-btn:focus {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.7);
}

.btn-outline-dark {
  border-radius: 999px;
  border-color: var(--border-strong);
  color: var(--neutral-900);
  font-weight: 600;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn-outline-dark:hover {
  background: var(--neutral-900);
  border-color: var(--neutral-900);
  color: #fff;
}

/* Badges */
.badge.text-bg-dark {
  border-radius: 999px;
  padding: 0.45em 0.8em;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* Forms - general */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Footer */
.footer {
  margin-top: auto;
  background: linear-gradient(180deg, #0f172a 0%, #0b0f1a 100%);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer a {
  color: #e2e8f0;
  transition: color 0.2s var(--ease-out);
}

.footer a:hover {
  color: #fff;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.7s var(--ease-out) forwards;
}

.reveal-delay-1 {
  animation-delay: 0.1s;
}

.reveal-delay-2 {
  animation-delay: 0.2s;
}

.reveal-delay-3 {
  animation-delay: 0.3s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .game-card,
  .game-card img,
  .buy-btn,
  .platform-chip,
  .brand-pill {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2.4rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .hero::after {
    width: 320px;
    height: 320px;
    right: -140px;
    top: -140px;
  }

  .platform-banner {
    padding: 1.75rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .feature-bucket {
    padding: 1rem;
  }

  .feature-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  #platformGrid,
  #similarGrid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .game-card {
    max-width: none;
  }

  .game-card img {
    height: 220px;
  }

  #trendingTrack .carousel-item img {
    max-height: 300px;
  }

  .homepage-carousel-control {
    width: 48px;
  }

  .homepage-carousel-control-icon {
    width: 38px;
    height: 38px;
  }

  #productImage {
    max-width: 280px;
    max-height: 360px;
  }
}

/* Star ratings */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-gold);
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.star-rating-value {
  margin-left: 4px;
  color: var(--neutral-500);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Card media overlay (platform tag + wishlist heart) */
.game-card-media {
  position: relative;
  overflow: hidden;
  margin: 10px auto;
}

.platform-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--neutral-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 3;
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.wishlist-btn:hover {
  transform: scale(1.1);
  color: var(--accent-pink);
}

.wishlist-btn.active {
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.14);
}

.wishlist-btn.pulse {
  animation: heartPulse 0.4s var(--ease-out);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Wishlist nav button */
.wishlist-nav-btn {
  position: relative;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  box-shadow: var(--shadow-xs);
  margin-left: auto;
  margin-right: 0.75rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.wishlist-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: var(--accent-pink);
}

.wishlist-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--neutral-900);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .wishlist-nav-btn {
    margin-left: 0.75rem;
    margin-right: 0;
  }
}

/* Wishlist drawer */
.wishlist-drawer {
  max-width: 380px;
}

.wishlist-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.wishlist-item:last-child {
  border-bottom: none;
}

.wishlist-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.wishlist-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.wishlist-item-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--neutral-900);
  line-height: 1.3;
}

.wishlist-item-title:hover {
  color: var(--accent-primary-strong);
}

.wishlist-remove-btn {
  border: none;
  background: transparent;
  color: var(--neutral-400);
  padding: 0.25rem;
  flex-shrink: 0;
  transition: color 0.2s var(--ease-out);
}

.wishlist-remove-btn:hover {
  color: var(--switch-red);
}

.wishlist-empty {
  color: var(--neutral-400);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: var(--neutral-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s, background 0.2s var(--ease-out);
  z-index: 1040;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-primary-strong);
}

/* Loading skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--neutral-200);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: skeletonShimmer 1.4s infinite;
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skeleton-grid--half {
  grid-template-columns: repeat(2, 1fr);
}

.skeleton-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.skeleton-img {
  width: 100%;
  height: 220px;
  border-radius: 0;
}

.skeleton-hero-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 0;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
}

.skeleton-line-lg {
  height: 22px;
}

/* Search empty state */
.search-empty {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after,
  .wishlist-btn.pulse,
  .back-to-top {
    animation: none !important;
    transition: none !important;
  }
}
