:root{
  --bg: #0b0b12;
  --orange: #ff7a18;
  --cyan: #00c8ff;
  --yellow: #ffd84a;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);

  --shadow: 0 24px 80px rgba(0,0,0,0.55);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
img{ max-width: 100%; height: auto; }
body{
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 540px at 50% 10%, rgba(0, 200, 255, 0.14), transparent 60%),
    radial-gradient(900px 620px at 20% 40%, rgba(255, 122, 24, 0.12), transparent 65%),
    radial-gradient(900px 540px at 80% 75%, rgba(255, 216, 74, 0.10), transparent 60%),
    linear-gradient(180deg, #06060c 0%, var(--bg) 45%, #05050a 100%);
  overflow-x: hidden;
}

a{ color: inherit; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Hero */
.hero{
  padding: 54px 0 22px;
}
.hero-inner{
  text-align: center;
}
.hero-title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: clamp(28px, 5vw, 52px);
  text-shadow: 0 18px 60px rgba(0,0,0,0.70);
}
.hero-subtitle{
  margin: 12px auto 0;
  max-width: 70ch;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  line-height: 1.65;
}

.section{ padding: 26px 0 70px; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.35px;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  user-select: none;
}

.btn-primary{
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.22), rgba(255, 122, 24, 0.24));
  border-color: rgba(0, 200, 255, 0.30);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.48),
    0 0 26px rgba(0, 200, 255, 0.16);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.55),
    0 0 30px rgba(0, 200, 255, 0.18);
}
.btn:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

/* Carousel */
.carousel{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.carousel-viewport{
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.carousel-track{
  display: flex;
  gap: 18px;
  padding: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }

.game{
  flex: 0 0 auto;
  width: clamp(260px, 52vw, 520px);
  scroll-snap-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow:
    0 22px 70px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.game.is-active{
  transform: scale(1);
  border-color: rgba(0, 200, 255, 0.28);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    0 0 30px rgba(255, 122, 24, 0.12),
    0 0 26px rgba(0, 200, 255, 0.14);
}

.game:hover{
  transform: translateY(-4px) scale(0.92);
}

.game.is-active:hover{
  transform: translateY(-4px) scale(1);
}

.game-media{
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 180px;
  --media-x: 50%;
  --media-y: 50%;
  background:
    radial-gradient(640px 380px at 60% 20%, rgba(0, 200, 255, 0.22), transparent 62%),
    radial-gradient(640px 380px at 30% 60%, rgba(255, 122, 24, 0.18), transparent 62%),
    radial-gradient(640px 380px at 70% 85%, rgba(255, 216, 74, 0.12), transparent 60%),
    rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.game-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 10px);
  opacity: 0.14;
  pointer-events: none;
}

.game-media-img{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--media-x) var(--media-y);
  display: block;
  filter:
    drop-shadow(0 22px 70px rgba(0,0,0,0.55))
    drop-shadow(0 0 22px rgba(0, 200, 255, 0.14));
}

.game-body{
  padding: 18px;
  display: grid;
  gap: 12px;
}

.game-title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 18px;
}

.game-desc{
  margin: 0;
  color: rgba(255,255,255,0.74);
  line-height: 1.65;
}

.carousel-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.26);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.carousel-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255, 216, 74, 0.22);
  box-shadow: 0 26px 80px rgba(0,0,0,0.48);
}
.carousel-btn:active{ transform: translateY(0); }
.carousel-btn:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.62);
  outline-offset: 3px;
}
.carousel-btn span{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.carousel-hint{
  margin: 12px 0 0;
  text-align: center;
  color: rgba(255,255,255,0.60);
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 720px){
  .carousel{ grid-template-columns: 1fr; }
  .carousel-btn{ display: none; }
  .carousel-viewport{ border-radius: 18px; }
  .carousel-track{ padding: 16px; }
}

@media (prefers-reduced-motion: reduce){
  .carousel-track{ scroll-behavior: auto; }
  .game{ transition-duration: 1ms !important; }
  .btn{ transition-duration: 1ms !important; }
  .carousel-btn{ transition-duration: 1ms !important; }
}
