/* =====================================================================
   JACUZZI - main stylesheet
   Dark gaming-store theme. No frameworks.
   ===================================================================== */

:root {
  --bg: #0c120f;
  --bg-2: #121b17;
  --panel: #17231e;
  --panel-2: #1f2f28;
  --panel-3: #2a3e35;
  --border: #384f44;
  --text: #f3ece1;
  --text-dim: #c3b6a4;
  --text-muted: #8a7f70;
  --accent: #d8b268;
  --accent-2: #a97f36;
  --accent-glow: rgba(216, 178, 104, 0.28);
  --buy: #347c58;
  --buy-2: #22563c;
  --danger: #d95b66;
  --danger-2: #9c2b38;
  --warning: #e0a952;
  --success: #68b888;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
  --nav-h: 64px;
  --max-w: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------
   Ambient Aurora Backdrop & Scroll Progress
   --------------------------------------------------------------------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 640px at 8% 35%, rgba(22, 69, 51, 0.42) 0%, transparent 65%),
    radial-gradient(900px 640px at 92% 45%, rgba(110, 32, 46, 0.32) 0%, transparent 65%),
    radial-gradient(1200px 600px at 50% -180px, #194735 0%, var(--bg) 68%);
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 178, 104, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 178, 104, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 18%, transparent 88%);
}
.side-wing {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: clamp(160px, 27vw, 460px);
  pointer-events: none;
  will-change: transform, opacity;
}
.side-wing-left {
  left: -40px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(31, 99, 73, 0.24) 0px,
      rgba(12, 18, 15, 0.02) 24px,
      rgba(216, 178, 104, 0.09) 44px,
      rgba(140, 45, 62, 0.14) 64px,
      rgba(12, 18, 15, 0.03) 84px
    );
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.65) 52%, transparent 100%);
  animation: wingDriftLeft 16s ease-in-out infinite alternate;
}
.side-wing-right {
  right: -40px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(140, 45, 62, 0.22) 0px,
      rgba(12, 18, 15, 0.02) 26px,
      rgba(216, 178, 104, 0.09) 46px,
      rgba(31, 99, 73, 0.2) 66px,
      rgba(12, 18, 15, 0.03) 88px
    );
  mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.65) 52%, transparent 100%);
  animation: wingDriftRight 20s ease-in-out infinite alternate;
}
@keyframes wingDriftLeft {
  0% { transform: translate3d(0, 0, 0) skewY(-2deg) scaleY(1); opacity: 0.78; }
  50% { transform: translate3d(20px, -18px, 0) skewY(1.5deg) scaleY(1.04); opacity: 0.96; }
  100% { transform: translate3d(-10px, 16px, 0) skewY(-1deg) scaleY(1.01); opacity: 0.84; }
}
@keyframes wingDriftRight {
  0% { transform: translate3d(0, 0, 0) skewY(2deg) scaleY(1); opacity: 0.8; }
  50% { transform: translate3d(-22px, 16px, 0) skewY(-1.5deg) scaleY(1.04); opacity: 0.98; }
  100% { transform: translate3d(12px, -18px, 0) skewY(1deg) scaleY(1.02); opacity: 0.85; }
}
.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.36;
  will-change: transform;
}
.ambient-bg .orb-1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, #257a5a, transparent 70%);
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.ambient-bg .orb-2 {
  width: 500px;
  height: 500px;
  top: 14%;
  right: -130px;
  background: radial-gradient(circle, #9c2b38, transparent 70%);
  animation: orbFloat 20s ease-in-out -6s infinite alternate-reverse;
}
.ambient-bg .orb-3 {
  width: 440px;
  height: 440px;
  bottom: -100px;
  left: -90px;
  background: radial-gradient(circle, #d8b268, transparent 70%);
  opacity: 0.24;
  animation: orbFloat 22s ease-in-out -11s infinite alternate;
}
.ambient-bg .orb-4 {
  width: 460px;
  height: 460px;
  bottom: -110px;
  right: -90px;
  background: radial-gradient(circle, #347c58, transparent 70%);
  opacity: 0.3;
  animation: orbFloat 19s ease-in-out -4s infinite alternate-reverse;
}
@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(46px, 32px, 0) scale(1.1); }
  100% { transform: translate3d(-32px, 52px, 0) scale(0.95); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: linear-gradient(90deg, var(--accent), #b88aa8, #3d8c65);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

.fx-burst-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 300;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding: 28px 0 56px;
}

.muted { color: var(--text-dim); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--mono); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(12, 18, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.navbar.scrolled {
  background: rgba(10, 15, 12, 0.95);
  border-bottom-color: rgba(216, 178, 104, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
.brand svg {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s;
}
.brand:hover svg {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(216, 178, 104, 0.6));
}
.brand span { background: linear-gradient(90deg, #f7f0e4, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  position: relative;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(29, 44, 37, 0.78);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-search-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.nav-search-btn kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wallet-pill:hover {
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(216, 178, 104, 0.25);
}
.wallet-pill.wallet-pop {
  animation: walletPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes walletPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); border-color: var(--buy); box-shadow: 0 0 16px rgba(52, 124, 88, 0.48); }
  100% { transform: scale(1); }
}
.wallet-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--buy);
  box-shadow: 0 0 8px var(--buy);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.user-chip:hover { text-decoration: none; color: var(--accent); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-2), #8c2d3e);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------------------------------------------------------------------
   Buttons & forms
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.2s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: #354f43; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn.is-loading { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #161009;
  box-shadow: 0 4px 14px rgba(169, 127, 54, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #e7c785, var(--accent));
  box-shadow: 0 6px 20px rgba(216, 178, 104, 0.44);
}
.btn-buy {
  background: linear-gradient(180deg, var(--buy), var(--buy-2));
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 14px rgba(52, 124, 88, 0.3);
}
.btn-buy:hover {
  background: linear-gradient(180deg, #43996e, var(--buy));
  box-shadow: 0 6px 20px rgba(67, 153, 110, 0.48);
}
.btn-primary::before,
.btn-buy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-buy:hover::before {
  left: 140%;
}
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(1.6); opacity: 0; }
}
.btn-danger { background: var(--danger-2); color: #fff; }
.btn-danger:hover { background: var(--danger); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.input,
select.input,
textarea.input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { resize: vertical; min-height: 110px; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; min-height: 1em; }
.hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 700;
}
.input-prefix > .input { padding-left: 26px; }

/* ---------------------------------------------------------------------
   Cards / panels
   --------------------------------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.panel + .panel { margin-top: 20px; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.panel-header h2,
.panel-header h3 { margin: 0; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-header h1 { margin: 0; }
.page-header p { margin: 4px 0 0; color: var(--text-dim); }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.alert-info { background: rgba(216, 178, 104, 0.1); border-color: rgba(216, 178, 104, 0.35); color: #f0ddb3; }
.alert-error { background: rgba(239, 83, 80, 0.1); border-color: rgba(239, 83, 80, 0.4); color: #ffcdd2; }
.alert-success { background: rgba(102, 187, 106, 0.1); border-color: rgba(102, 187, 106, 0.4); color: #c8e6c9; }
.alert-warning { background: rgba(255, 183, 77, 0.1); border-color: rgba(255, 183, 77, 0.4); color: #ffe0b2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--panel-3);
  color: var(--text-dim);
}
.badge-success { background: rgba(102, 187, 106, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 83, 80, 0.15); color: var(--danger); }
.badge-warning { background: rgba(255, 183, 77, 0.15); color: var(--warning); }
.badge-info { background: rgba(216, 178, 104, 0.16); color: var(--accent); }
.badge-owned { background: rgba(52, 124, 88, 0.22); color: #8ad4ab; }

/* ---------------------------------------------------------------------
   Game cards & grid
   --------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s, border-color 0.22s;
  will-change: transform;
}
.game-card.is-tilting {
  transition: box-shadow 0.15s, border-color 0.15s;
}
.game-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent), 0 0 22px rgba(216, 178, 104, 0.22);
  border-color: var(--accent);
  text-decoration: none;
}
.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 178, 104, 0.18), transparent 65%);
  transition: opacity 0.25s;
}
.game-card:hover .card-spotlight,
.feature:hover .card-spotlight {
  opacity: 1;
}
.game-card .cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--panel-2);
  overflow: hidden;
}
.game-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-card:hover .cover img { transform: scale(1.06); }
.card-hover-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 10px 9px;
  background: linear-gradient(to top, rgba(12, 16, 13, 0.94) 35%, transparent);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.game-card:hover .card-hover-cta {
  opacity: 1;
  transform: translateY(0);
}
.card-hover-cta .cta-dev {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-hover-cta .cta-pill {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(216, 178, 104, 0.18);
  border: 1px solid rgba(216, 178, 104, 0.5);
  color: var(--accent);
  font-weight: 700;
}

/* Staggered viewport entrance */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
}
.reveal-item.is-visible {
  animation: cardReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms) forwards;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.game-card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.game-card .title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.game-card .genre { color: var(--text-muted); font-size: 0.8rem; }
.price {
  font-weight: 800;
  color: var(--text);
}
.price-tag {
  background: rgba(52, 124, 88, 0.2);
  color: #9ce0b9;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
}
.price-tag.free { color: var(--accent); background: rgba(216, 178, 104, 0.14); }
.game-card .owned-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius);
}
.skeleton-card { aspect-ratio: 2 / 3.6; }
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--panel-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

/* Empty / error states */
.state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-dim);
  grid-column: 1 / -1;
}
.state .icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
  opacity: 0.8;
}
.state h3 { color: var(--text); }
.state .btn { margin-top: 10px; }

/* ---------------------------------------------------------------------
   Toolbar (search / filters)
   --------------------------------------------------------------------- */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toolbar .form-group { margin: 0; flex: 1; min-width: 160px; }
.toolbar .search { flex: 2; min-width: 220px; }
.toolbar .actions { display: flex; gap: 8px; }
.result-count { color: var(--text-dim); margin-bottom: 14px; font-size: 0.9rem; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.pagination button.current { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .gap { color: var(--text-muted); padding: 0 4px; }

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  white-space: nowrap;
}
.table tbody tr { background: var(--panel); }
.table tbody tr:hover { background: var(--panel-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--panel-3);
}
.table .cell-game { display: flex; align-items: center; gap: 12px; }
.table .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.amount-pos { color: var(--success); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }

/* ---------------------------------------------------------------------
   Toasts & modal
   --------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease-out;
  font-size: 0.92rem;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.leaving { animation: toast-out 0.25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 10, 8, 0.76);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.15s;
}
.modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease-out;
}
.modal.modal-lg { max-width: 760px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; }
.modal-close {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* ---------------------------------------------------------------------
   Home page
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: center;
  padding: 38px 54px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(125deg, #16372a 0%, #16110e 68%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 42px;
  min-height: 400px;
}
.hero-bg {
  position: absolute;
  inset: -16px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.3) brightness(0.42);
  transform: scale(1.1);
  transition: opacity 0.45s ease;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 15, 0.9) 0%, rgba(16, 18, 15, 0.72) 55%, rgba(18, 13, 11, 0.88) 100%),
    radial-gradient(600px 300px at 80% 20%, rgba(216, 178, 104, 0.16), transparent 70%);
}
.hero-cover {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7), 0 0 30px rgba(216, 178, 104, 0.18);
  aspect-ratio: 2 / 3;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-cover:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.78), 0 0 36px rgba(216, 178, 104, 0.35);
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; animation: heroFade 0.35s ease-out; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.hero-content h1 { font-size: 2.6rem; margin: 10px 0 12px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.hero-content p { color: var(--text-dim); max-width: 560px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hero-stat-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: var(--text);
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.hero-dots { display: flex; gap: 8px; margin-top: 26px; }
.hero-dots button {
  position: relative;
  overflow: hidden;
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.hero-dots button.active {
  width: 54px;
  background: rgba(255, 255, 255, 0.25);
}
.hero-dots button.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  animation: heroDotProgress 6s linear forwards;
}
.hero.is-paused .hero-dots button.active::after {
  animation-play-state: paused;
}
@keyframes heroDotProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 18, 15, 0.68);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.hero-arrow:hover {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(31, 47, 40, 0.92);
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

.section { margin-bottom: 44px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.section-header h2 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.genre-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(23, 35, 30, 0.86);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.18s, border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 6px 18px rgba(216, 178, 104, 0.2);
  text-decoration: none;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}
.feature:hover {
  border-color: rgba(216, 178, 104, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.feature .icon { font-size: 1.7rem; margin-bottom: 8px; }
.feature h3 { font-size: 1rem; }
.feature p { color: var(--text-dim); margin: 0; font-size: 0.9rem; }

/* ---------------------------------------------------------------------
   Game details
   --------------------------------------------------------------------- */
.details-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.details-banner-bg {
  position: absolute;
  inset: -12px;
  z-index: 0;
  pointer-events: none;
}
.details-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.25) brightness(0.32);
  transform: scale(1.1);
}
.details-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 15, 0.56) 0%, rgba(18, 27, 23, 0.96) 100%);
}
.details-banner > .breadcrumbs,
.details-banner > .details {
  position: relative;
  z-index: 1;
}
.breadcrumbs { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-dim); }
.details {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: start;
}
.details-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
  aspect-ratio: 2 / 3;
  background: var(--panel-2);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.details-cover:hover {
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.75), 0 0 28px rgba(216, 178, 104, 0.26);
}
.details-cover img { width: 100%; height: 100%; object-fit: cover; }
.review-pill {
  background: rgba(52, 124, 88, 0.2);
  border: 1px solid rgba(104, 184, 136, 0.35);
  color: #9ce0b9;
}
.details h1 { font-size: 2.3rem; margin-bottom: 8px; }
.details .description { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin: 18px 0 24px; white-space: pre-line; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.meta-grid > div { background: var(--panel); padding: 12px 16px; }
.meta-grid dt { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.6px; }
.meta-grid dd { margin: 2px 0 0; font-weight: 600; }
.buy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(90deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.buy-box .label { color: var(--text-dim); font-size: 0.9rem; }
.buy-box .price-big { font-size: 1.6rem; font-weight: 800; }
.buy-box .buy-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.summary-list li:last-child { border-bottom: 0; font-weight: 800; }

/* ---------------------------------------------------------------------
   Auth pages
   --------------------------------------------------------------------- */
.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h) - 180px);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-dim); margin-bottom: 24px; }
.auth-card .switch { text-align: center; margin-top: 18px; color: var(--text-dim); font-size: 0.9rem; }
.password-field { position: relative; }
.password-field .input { padding-right: 64px; }
.password-field .toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}
.strength { height: 4px; border-radius: 2px; background: var(--panel-3); margin-top: 6px; overflow: hidden; }
.strength > span { display: block; height: 100%; width: 0; transition: width 0.2s, background 0.2s; }

/* ---------------------------------------------------------------------
   Wallet / profile
   --------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}
.balance-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b4333, #241914 75%);
  border: 1px solid #486354;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}
.balance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 178, 104, 0.24), transparent 65%);
  transition: opacity 0.25s;
}
.balance-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 24px rgba(216, 178, 104, 0.24);
}
.balance-card:hover::before { opacity: 1; }
.balance-card .label { color: #e4d1aa; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 1.5px; font-weight: 700; }
.balance-card .amount { font-size: 2.6rem; font-weight: 800; margin: 6px 0 4px; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.preset-grid .btn.selected { background: var(--accent-2); color: #fff; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.stat .value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.stat .sub { color: var(--text-dim); font-size: 0.8rem; margin-top: 2px; }

.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 1.8rem; }

.library-card .cover { aspect-ratio: 2 / 3; }
.library-card .added { color: var(--text-muted); font-size: 0.78rem; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 26px 0;
}
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1260px) {
  .navbar .container { gap: 12px; }
  .nav-links a { padding: 7px 9px; font-size: 0.85rem; }
  .nav-search-btn kbd { display: none; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links,
  .nav-right {
    display: none;
  }
  .navbar.open .nav-links,
  .navbar.open .nav-right {
    display: flex;
  }
  .navbar.open { height: auto; }
  .navbar.open .container {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .navbar .container { min-height: var(--nav-h); }
  .navbar.open .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .navbar.open .nav-right {
    order: 4;
    flex-basis: 100%;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 220px 1fr; padding: 28px; }
  .details { grid-template-columns: 260px 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .feature-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.6rem; }
  .side-wing { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .hero-cover { max-width: 200px; margin: 0 auto; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-actions,
  .hero-dots,
  .hero-stats { justify-content: center; }
  .hero-arrow { display: none; }
  .gtavi-body h2 { font-size: 1.75rem; }
  .plus-hero h1 { font-size: 1.55rem; }
  .details-banner { padding: 18px; }
  .details { grid-template-columns: 1fr; }
  .details-cover { max-width: 260px; margin: 0 auto; }
  .details h1 { font-size: 1.8rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .game-grid,
  .vault-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar .form-group,
  .toolbar .search { min-width: 100%; }
  .auth-card { padding: 24px; }
  .buy-box { flex-direction: column; align-items: stretch; text-align: center; }
  .buy-box .buy-actions { justify-content: center; }
}

@media (max-width: 380px) {
  .game-grid,
  .vault-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
}

/* ---------------------------------------------------------------------
   Global Ctrl+K Quick Search Palette
   --------------------------------------------------------------------- */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(8, 11, 9, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 20px;
  animation: fade-in 0.14s ease-out;
}
.cmdk-dialog {
  width: 100%;
  max-width: 600px;
  background: var(--panel);
  border: 1px solid rgba(216, 178, 104, 0.38);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(216, 178, 104, 0.16);
  overflow: hidden;
  animation: modal-in 0.18s ease-out;
}
.cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.cmdk-icon { font-size: 1.05rem; opacity: 0.75; }
.cmdk-input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.cmdk-kbd,
.cmdk-footer kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.cmdk-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.cmdk-item:hover { text-decoration: none; }
.cmdk-item.selected {
  background: var(--panel-2);
  border-color: rgba(216, 178, 104, 0.48);
}
.cmdk-thumb {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--panel-3);
  flex-shrink: 0;
}
.cmdk-meta { flex: 1; min-width: 0; }
.cmdk-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk-sub { font-size: 0.8rem; color: var(--text-dim); }
.cmdk-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.cmdk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg .orb,
  .ambient-bg .side-wing,
  .hero-dots button.active::after,
  .wallet-pill.wallet-pop,
  .reveal-item.is-visible,
  .brand span,
  .nav-excl-dot,
  .marquee-track,
  .card-preview .preview-img {
    animation: none !important;
  }
  .ambient-canvas { display: none !important; }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .game-card,
  .hero-cover,
  .details-cover,
  .balance-card,
  .feature,
  .platform-tab-card {
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Interactive Alive Engine, Live Card Previews, Exclusives & Media
   ===================================================================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

body[data-platform-theme="playstation"] {
  --accent: #4aa3ff;
  --accent-2: #0070d1;
  --accent-glow: rgba(0, 112, 209, 0.36);
}
body[data-platform-theme="xbox"] {
  --accent: #52e052;
  --accent-2: #107c10;
  --accent-glow: rgba(43, 182, 43, 0.36);
}
body[data-platform-theme="nintendo"] {
  --accent: #ff5764;
  --accent-2: #e60012;
  --accent-glow: rgba(230, 0, 18, 0.36);
}

/* Animated brand wordmark + Exclusives nav indicator */
.brand span {
  background: linear-gradient(90deg, #f7f0e4 0%, var(--accent) 42%, #cfa0b8 70%, #f7f0e4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShimmer 7s linear infinite;
}
@keyframes brandShimmer {
  to { background-position: 200% center; }
}

.nav-excl-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-excl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d5a;
  box-shadow: 0 0 8px #ff4d5a;
  animation: exclPulse 2s ease-in-out infinite;
}
@keyframes exclPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

/* Magnetic pull on primary/buy CTAs */
.btn-primary,
.btn-buy {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
}
.btn-primary:hover,
.btn-buy:hover {
  transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 1px), 0);
}

/* Platform badges & per-console hover glows */
.platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.platform-badge-inline {
  position: static;
  box-shadow: none;
}
.plat-playstation {
  background: rgba(0, 112, 209, 0.88);
  color: #fff;
  border-color: rgba(110, 187, 255, 0.55);
}
.plat-xbox {
  background: rgba(16, 124, 16, 0.9);
  color: #fff;
  border-color: rgba(102, 224, 102, 0.55);
}
.plat-nintendo {
  background: rgba(230, 0, 18, 0.9);
  color: #fff;
  border-color: rgba(255, 130, 140, 0.55);
}
.plat-pc {
  background: rgba(23, 35, 30, 0.88);
  color: var(--accent);
  border-color: rgba(216, 178, 104, 0.42);
}

.game-card[data-platform="playstation"]:hover {
  border-color: #3d9bff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.58), 0 0 0 1px #3d9bff, 0 0 26px rgba(0, 112, 209, 0.38);
}
.game-card[data-platform="xbox"]:hover {
  border-color: #4ad94a;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.58), 0 0 0 1px #4ad94a, 0 0 26px rgba(16, 124, 16, 0.42);
}
.game-card[data-platform="nintendo"]:hover {
  border-color: #ff4d5a;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.58), 0 0 0 1px #ff4d5a, 0 0 26px rgba(230, 0, 18, 0.38);
}

/* Live hover gameplay screenshot slideshow inside .game-card .cover */
.card-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: #090e0c;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.game-card.is-previewing .card-preview {
  opacity: 1;
}
.card-preview .preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.game-card.is-previewing .card-preview .preview-img {
  animation: kenBurns 5s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-2%, -2%, 0); }
}
.preview-bars {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  gap: 4px;
}
.preview-bars > span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s, transform 0.2s;
}
.preview-bars > span.active {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
}
.preview-live-pill {
  position: absolute;
  bottom: 42px;
  left: 10px;
  z-index: 4;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(12, 18, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

/* Kinetic Marquee Ribbon */
.marquee-section {
  margin-bottom: 40px;
}
.marquee-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 27, 23, 0.76);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.marquee-item:hover {
  border-color: var(--accent);
  background: var(--panel-2);
  transform: translateY(-2px);
  text-decoration: none;
}
.marquee-item img {
  width: 28px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}
.marquee-item .m-title { font-weight: 700; font-size: 0.86rem; }
.marquee-item .m-price { font-size: 0.78rem; color: var(--accent); font-weight: 700; }

/* Console Exclusives Vault (Home & /exclusives.html) */
.vault-section {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(23, 35, 30, 0.92), rgba(14, 15, 13, 0.96));
  overflow: hidden;
  margin-bottom: 44px;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.vault-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: background 0.4s;
  background: radial-gradient(680px 300px at 85% 0%, rgba(216, 178, 104, 0.16), transparent 70%);
}
.vault-section[data-vault-theme="playstation"] {
  border-color: rgba(0, 112, 209, 0.55);
  box-shadow: 0 20px 50px rgba(0, 112, 209, 0.14);
}
.vault-section[data-vault-theme="playstation"]::before {
  background: radial-gradient(700px 320px at 85% 0%, rgba(0, 112, 209, 0.28), transparent 70%);
}
.vault-section[data-vault-theme="xbox"] {
  border-color: rgba(43, 182, 43, 0.55);
  box-shadow: 0 20px 50px rgba(16, 124, 16, 0.16);
}
.vault-section[data-vault-theme="xbox"]::before {
  background: radial-gradient(700px 320px at 85% 0%, rgba(43, 182, 43, 0.26), transparent 70%);
}
.vault-section[data-vault-theme="nintendo"] {
  border-color: rgba(230, 0, 18, 0.55);
  box-shadow: 0 20px 50px rgba(230, 0, 18, 0.15);
}
.vault-section[data-vault-theme="nintendo"]::before {
  background: radial-gradient(700px 320px at 85% 0%, rgba(230, 0, 18, 0.26), transparent 70%);
}
.vault-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.vault-head h2 { margin: 0; font-size: 1.45rem; }
.vault-head p { margin: 4px 0 0; color: var(--text-dim); font-size: 0.92rem; }
.vault-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vault-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 27, 23, 0.86);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.vault-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.vault-tab.active[data-plat="playstation"] {
  background: #0070d1;
  border-color: #4aa3ff;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 112, 209, 0.45);
}
.vault-tab.active[data-plat="xbox"] {
  background: #107c10;
  border-color: #52e052;
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 124, 16, 0.45);
}
.vault-tab.active[data-plat="nintendo"] {
  background: #e60012;
  border-color: #ff6b76;
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.45);
}
.vault-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

/* Exclusives Hub Hero & 4-card Platform Selector */
.excl-hero {
  position: relative;
  padding: 34px 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(23, 35, 30, 0.92), rgba(16, 13, 11, 0.96));
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.excl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(620px 260px at 90% 10%, var(--accent-glow), transparent 70%);
}
.excl-hero h1 { position: relative; font-size: 2.2rem; margin-bottom: 6px; }
.excl-hero p { position: relative; color: var(--text-dim); margin: 0; max-width: 680px; }

.platform-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.platform-tab-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.platform-tab-card:hover {
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.28);
}
.platform-tab-card .pt-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  flex-shrink: 0;
  font-size: 1.25rem;
}
.platform-tab-card .pt-title { font-weight: 800; font-size: 1rem; }
.platform-tab-card .pt-sub { font-size: 0.78rem; color: var(--text-dim); }
.platform-tab-card.active[data-plat="exclusives"] {
  border-color: var(--accent);
  background: rgba(216, 178, 104, 0.14);
  box-shadow: 0 10px 28px rgba(216, 178, 104, 0.22);
}
.platform-tab-card.active[data-plat="playstation"] {
  border-color: #3d9bff;
  background: rgba(0, 112, 209, 0.22);
  box-shadow: 0 10px 28px rgba(0, 112, 209, 0.28);
}
.platform-tab-card.active[data-plat="xbox"] {
  border-color: #4ad94a;
  background: rgba(16, 124, 16, 0.22);
  box-shadow: 0 10px 28px rgba(16, 124, 16, 0.28);
}
.platform-tab-card.active[data-plat="nintendo"] {
  border-color: #ff4d5a;
  background: rgba(230, 0, 18, 0.22);
  box-shadow: 0 10px 28px rgba(230, 0, 18, 0.28);
}

/* Game Details Interactive Screenshot Gallery + Lightbox */
.media-gallery {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.media-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  width: 100%;
  background: #090e0c;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.media-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.media-stage:hover img { transform: scale(1.02); }
.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 18, 15, 0.76);
  color: #fff;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.media-arrow:hover { border-color: var(--accent); background: rgba(31, 47, 40, 0.92); }
.media-arrow.prev { left: 12px; }
.media-arrow.next { right: 12px; }
.media-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
}
.media-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.media-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}
.media-thumb:hover { opacity: 1; transform: translateY(-2px); }
.media-thumb.active { opacity: 1; border-color: var(--accent); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(6, 9, 7, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.15s ease-out;
}
.lightbox-dialog {
  position: relative;
  max-width: 1120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-height: 85vh;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 35, 30, 0.88);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); }

@media (max-width: 960px) {
  .platform-tabs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .platform-tabs-grid { grid-template-columns: 1fr; }
  .vault-section { padding: 20px 16px; }
}

/* =====================================================================
   Discounts, Sales Badges, Countdown & Curated Bundles
   ===================================================================== */
.nav-deals-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-deals-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #c29749, #e5c47c);
  color: #161009;
  font-size: 0.72rem;
  font-weight: 900;
}

.price-combo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.discount-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #9c2b38, #c94757);
  color: #fdf6ee;
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.3px;
}
.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.78rem;
}
.price-tag.sale {
  background: rgba(216, 178, 104, 0.18);
  color: #efd191;
  border: 1px solid rgba(216, 178, 104, 0.4);
}
.discount-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #9c2b38, #c94757);
  color: #fdf6ee;
  font-weight: 900;
  font-size: 0.74rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}
.toggle-check input {
  accent-color: var(--buy);
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Deals Hero + Countdown */
.deals-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 34px 32px;
  border-radius: 18px;
  border: 1px solid rgba(216, 178, 104, 0.42);
  background: linear-gradient(135deg, rgba(22, 54, 41, 0.92), rgba(32, 19, 17, 0.96));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 32px rgba(156, 43, 56, 0.16);
  margin-bottom: 34px;
  overflow: hidden;
}
.deals-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 260px at 85% 20%, rgba(216, 178, 104, 0.2), transparent 70%);
}
.deals-hero-copy { position: relative; max-width: 620px; }
.deals-hero-copy h1 { font-size: 2.2rem; margin-bottom: 8px; }
.deals-hero-copy p { color: var(--text-dim); margin: 0; }

.countdown-panel {
  position: relative;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(12, 18, 15, 0.78);
  border: 1px solid rgba(216, 178, 104, 0.35);
  backdrop-filter: blur(8px);
}
.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #e5c47c;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}
.countdown-grid {
  display: flex;
  gap: 10px;
}
.countdown-box {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-align: center;
}
.countdown-box strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  line-height: 1.1;
  color: #fff;
}
.countdown-box span {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Curated Bundles Grid & Fanned Cover Collage */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.bundle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}
.bundle-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 24px var(--accent-glow);
}
.bundle-card[data-bundle-theme="playstation"]:hover { border-color: #3d9bff; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 112, 209, 0.35); }
.bundle-card[data-bundle-theme="xbox"]:hover { border-color: #4ad94a; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(16, 124, 16, 0.38); }
.bundle-card[data-bundle-theme="nintendo"]:hover { border-color: #ff4d5a; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(230, 0, 18, 0.35); }
.bundle-card[data-bundle-theme="gold"]:hover { border-color: #ffd54f; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 213, 79, 0.28); }
.bundle-card[data-bundle-theme="purple"]:hover { border-color: #b388ff; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(179, 136, 255, 0.32); }

.bundle-top {
  position: relative;
  padding: 20px 20px 14px;
  background: linear-gradient(145deg, var(--panel-2), var(--bg-2));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bundle-collage {
  display: flex;
  align-items: center;
  padding-left: 4px;
}
.collage-item {
  width: 68px;
  height: 98px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  margin-left: -18px;
  transform: rotate(calc((var(--ci, 0) - 1.5) * 3.5deg));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), margin 0.28s;
  background: var(--panel-3);
}
.collage-item:first-child { margin-left: 0; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.bundle-card:hover .collage-item {
  margin-left: -6px;
  transform: rotate(0deg) translateY(calc((var(--ci, 0) % 2) * -4px));
}
.bundle-card:hover .collage-item:first-child { margin-left: 0; }

.bundle-save-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9c2b38, #c94757);
  color: #fdf6ee;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 16px rgba(156, 43, 56, 0.38);
}

.bundle-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bundle-body h3 { margin: 0 0 4px; font-size: 1.18rem; }
.bundle-games-list {
  list-style: none;
  margin: 10px 0 16px;
  padding: 0;
  border-top: 1px solid var(--border);
}
.bundle-games-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(56, 79, 68, 0.75);
  font-size: 0.88rem;
}
.bundle-games-list li a {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bundle-games-list li a:hover { color: var(--accent); }
.b-item-right { flex-shrink: 0; }

.bundle-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.bundle-pricing {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-top { flex-wrap: wrap; gap: 10px; }
  .bundle-footer { flex-wrap: wrap; gap: 10px; }
  .collage-item { width: 52px; height: 76px; margin-left: -16px; }
  .deals-hero { padding: 24px 18px; }
  .countdown-box { min-width: 48px; padding: 6px 8px; }
}

/* =====================================================================
   JACUZZI+ Subscription, Yellow Category Badges & GTA VI Special Showcase
   ===================================================================== */
.nav-plus-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-plus-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f5c518, #ffe066);
  color: #181204;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.35);
}
.plus-nav-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c518, #ffe066);
  color: #181204;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.35);
}
.plus-nav-pill:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f5c518, #ffe066);
  color: #181204;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(245, 197, 24, 0.3);
  vertical-align: middle;
}
.plus-badge-card {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  transition: opacity 0.2s;
}
.game-card:hover .plus-badge-card {
  opacity: 0;
}

.plus-chip {
  background: linear-gradient(135deg, #f5c518, #ffe066) !important;
  color: #181204 !important;
  border-color: #ffe885 !important;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 197, 24, 0.28);
}
.plus-chip:hover {
  color: #181204 !important;
  box-shadow: 0 8px 22px rgba(245, 197, 24, 0.45) !important;
}

.btn-plus {
  background: linear-gradient(180deg, #ffe066, #e6b400);
  color: #181204;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.32);
}
.btn-plus:hover {
  background: linear-gradient(180deg, #ffeb99, #f5c518);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.5);
}

.toggle-check-plus {
  border-color: rgba(245, 197, 24, 0.48);
  color: #ffe066;
}
.toggle-check-plus input {
  accent-color: #f5c518;
}

/* Scrollable bundle list for mega-collections (RE 16, COD 23) */
.bundle-games-list {
  max-height: 225px;
  overflow-y: auto;
  padding-right: 4px;
}
.bundle-count-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* Library locked / Jacuzzi+ card state */
.library-card.is-locked .cover img {
  filter: grayscale(0.75) brightness(0.45);
}
.lock-banner {
  position: absolute;
  inset: auto 10px 12px 10px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(18, 14, 6, 0.92);
  border: 1px solid rgba(245, 197, 24, 0.6);
  color: #ffe066;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

/* Dedicated JACUZZI+ Hub */
.plus-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: 18px;
  border: 1px solid rgba(245, 197, 24, 0.45);
  background:
    radial-gradient(640px 280px at 90% 15%, rgba(245, 197, 24, 0.16), transparent 70%),
    linear-gradient(135deg, #1b2821 0%, #16140c 100%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5), 0 0 32px rgba(245, 197, 24, 0.12);
  margin-bottom: 30px;
}
.plus-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.plus-perk-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.35);
  color: #ffe68a;
  font-size: 0.8rem;
  font-weight: 600;
}
.plus-plan-card {
  padding: 22px;
  border-radius: 14px;
  background: rgba(12, 18, 15, 0.86);
  border: 1px solid rgba(245, 197, 24, 0.38);
}
.plus-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 12px;
}
.plus-price-row strong {
  font-size: 2.1rem;
  color: #ffe066;
}
.plus-card-footer {
  padding: 0 14px 14px;
  margin-top: -4px;
}

/* GTA VI Special Feature Showcase */
.gtavi-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 24, 0.42);
  background: linear-gradient(125deg, #211420 0%, #19261e 50%, #241911 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56), 0 0 38px rgba(217, 91, 102, 0.18);
}
.gtavi-bg {
  position: absolute;
  inset: -16px;
  z-index: 0;
  pointer-events: none;
}
.gtavi-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.35) brightness(0.36);
  transform: scale(1.1);
}
.gtavi-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 85% 15%, rgba(245, 197, 24, 0.18), transparent 70%),
    radial-gradient(540px 300px at 18% 90%, rgba(217, 91, 102, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(16, 13, 15, 0.9) 0%, rgba(16, 18, 15, 0.72) 60%, rgba(18, 14, 12, 0.88) 100%);
}
.gtavi-cover {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 24, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.72), 0 0 28px rgba(245, 197, 24, 0.22);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease;
}
.gtavi-cover img { width: 100%; height: 100%; object-fit: cover; }
.gtavi-body { position: relative; z-index: 1; }
.gtavi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(217, 91, 102, 0.22));
  border: 1px solid rgba(245, 197, 24, 0.48);
  color: #ffe066;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.gtavi-body h2 {
  font-size: 2.25rem;
  margin: 12px 0 8px;
  background: linear-gradient(90deg, #fff6e6 0%, #ffe066 55%, #f4a4ab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gtavi-countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

@media (max-width: 820px) {
  .plus-hero,
  .gtavi-showcase {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .gtavi-cover {
    max-width: 210px;
    margin: 0 auto;
  }
  .gtavi-showcase { text-align: center; }
  .gtavi-countdown { justify-content: center; }
}
