@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Inter:wght@400;600;700&display=swap');

:root{
  --text:#eaf2ff;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --glow: 0 0 18px rgba(124,247,255,.35), 0 0 38px rgba(181,107,255,.22);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
  background:#050814;
}

.bg{
  min-height:100vh;
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.bg::before{
  content:"";
  position:absolute;
  inset:-40vh -40vw;
  z-index:-2;
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(124,247,255,.25), transparent 55%),
    radial-gradient(35% 30% at 85% 25%, rgba(181,107,255,.22), transparent 60%),
    radial-gradient(40% 35% at 55% 85%, rgba(0,255,168,.18), transparent 60%),
    linear-gradient(120deg, #0b0f1e, #111b44, #2b124a, #071a3a, #0b0f1e);
  background-size: 140% 140%;
  animation: gradientShift 14s ease-in-out infinite;
  filter:saturate(1.2) contrast(1.05);
}

@keyframes gradientShift{
  0%{ transform:translate3d(0,0,0) scale(1.05); background-position: 0% 50%; }
  50%{ transform:translate3d(0,-2%,0) scale(1.08); background-position: 100% 50%; }
  100%{ transform:translate3d(0,0,0) scale(1.05); background-position: 0% 50%; }
}

.particles{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
}

.particles span{
  position:absolute;
  width:8px;
  height:8px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.2) 55%, transparent 70%);
  opacity:.55;
  filter: drop-shadow(0 0 12px rgba(124,247,255,.25));
  animation: floatUp linear infinite;
  transform: translate3d(0, 120vh, 0);
}

@keyframes floatUp{
  0%   { transform: translate3d(0, 120vh, 0) scale(.8); opacity:0; }
  10%  { opacity:.55; }
  60%  { opacity:.55; }
  100% { transform: translate3d(0, -20vh, 0) scale(1.35); opacity:0; }
}

/* Sprinkle particles across the screen */
.particles span:nth-child(1)  { left: 8%;  width:5px; height:5px;  animation-duration: 16s; animation-delay: -2s; }
.particles span:nth-child(2)  { left: 15%; width:9px; height:9px;  animation-duration: 20s; animation-delay: -7s; }
.particles span:nth-child(3)  { left: 22%; width:6px; height:6px;  animation-duration: 14s; animation-delay: -9s; }
.particles span:nth-child(4)  { left: 28%; width:10px;height:10px; animation-duration: 22s; animation-delay: -4s; }
.particles span:nth-child(5)  { left: 36%; width:4px; height:4px;  animation-duration: 13s; animation-delay: -10s; }
.particles span:nth-child(6)  { left: 42%; width:7px; height:7px;  animation-duration: 18s; animation-delay: -6s; }
.particles span:nth-child(7)  { left: 49%; width:11px;height:11px; animation-duration: 24s; animation-delay: -12s; }
.particles span:nth-child(8)  { left: 56%; width:6px; height:6px;  animation-duration: 15s; animation-delay: -5s; }
.particles span:nth-child(9)  { left: 63%; width:9px; height:9px;  animation-duration: 21s; animation-delay: -11s; }
.particles span:nth-child(10) { left: 70%; width:5px; height:5px;  animation-duration: 17s; animation-delay: -3s; }
.particles span:nth-child(11) { left: 77%; width:10px;height:10px; animation-duration: 23s; animation-delay: -8s; }
.particles span:nth-child(12) { left: 84%; width:6px; height:6px;  animation-duration: 16s; animation-delay: -13s; }
.particles span:nth-child(13) { left: 90%; width:8px; height:8px;  animation-duration: 19s; animation-delay: -6s; }
.particles span:nth-child(14) { left: 6%;  width:12px;height:12px; animation-duration: 26s; animation-delay: -14s; opacity:.35; }
.particles span:nth-child(15) { left: 33%; width:5px; height:5px;  animation-duration: 12s; animation-delay: -1s; }
.particles span:nth-child(16) { left: 58%; width:7px; height:7px;  animation-duration: 18s; animation-delay: -9s; }
.particles span:nth-child(17) { left: 74%; width:4px; height:4px;  animation-duration: 11s; animation-delay: -2s; opacity:.45; }
.particles span:nth-child(18) { left: 12%; width:9px; height:9px;  animation-duration: 21s; animation-delay: -15s; }
.particles span:nth-child(19) { left: 46%; width:6px; height:6px;  animation-duration: 14s; animation-delay: -7s; }
.particles span:nth-child(20) { left: 88%; width:10px;height:10px; animation-duration: 25s; animation-delay: -5s; opacity:.4; }

.container{
  width:min(1180px, 92vw);
  padding: 34px 0 70px;
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,247,255,.9), rgba(181,107,255,.75) 55%, rgba(0,255,168,.2) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 0 30px rgba(124,247,255,.25);
  position:relative;
  overflow:hidden;
}
.logo::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: conic-gradient(from 180deg, rgba(255,255,255,.0), rgba(255,255,255,.35), rgba(255,255,255,.0));
  animation: spin 3.2s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg);} }

.title-wrap{ min-width:0; }

h1{
  margin:0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: .5px;
  line-height:1.05;
  color: #eaffff;
  text-shadow:
    0 0 10px rgba(124,247,255,.55),
    0 0 22px rgba(124,247,255,.25),
    0 0 40px rgba(181,107,255,.20);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.subtitle{
  margin:6px 0 0;
  color: rgba(234,242,255,.80);
  font-size: 14px;
  line-height: 1.35;
  max-width: 52ch;
}

.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing:.6px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(234,242,255,.9);
  background: rgba(10,16,40,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset;
  backdrop-filter: blur(10px);
}

.hero{
  padding: 20px 6px 10px;
}
.hero h2{
  margin: 22px 12px 8px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-size: clamp(18px, 2.0vw, 22px);
  letter-spacing: .3px;
  color: rgba(234,242,255,.92);
}
.hero p{
  margin: 0 12px 18px;
  color: rgba(234,242,255,.70);
  max-width: 70ch;
  line-height: 1.6;
  font-size: 14.5px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 8px 6px 0;
}

.card{
  grid-column: span 4;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  backdrop-filter: blur(10px);
  transform: translate3d(0,0,0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(70% 60% at 30% 10%, rgba(124,247,255,.22), transparent 60%),
              radial-gradient(55% 50% at 85% 25%, rgba(181,107,255,.18), transparent 55%);
  opacity:.0;
  transition: opacity .22s ease;
  pointer-events:none;
}

.card:hover{
  transform: translate3d(0,-8px,0);
  border-color: rgba(124,247,255,.28);
  box-shadow: 0 22px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(124,247,255,.16), var(--glow);
  filter: saturate(1.05);
}
.card:hover::before{ opacity:1; }

.thumb{
  padding: 14px 14px 0;
}
.thumb img{
  width:100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  display:block;
  transition: transform .22s ease, filter .22s ease;
}
.card:hover .thumb img{
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.1);
}

.content{
  padding: 14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.game-title{
  margin: 2px 0 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 16px;
  color: rgba(234,242,255,.96);
}

.meta{
  margin: 0;
  color: rgba(234,242,255,.66);
  font-size: 13px;
  line-height: 1.45;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration:none;
  color: #061016;
  font-weight: 800;
  letter-spacing: .25px;
  background: linear-gradient(90deg, rgba(0,255,168,.95), rgba(124,247,255,.95), rgba(181,107,255,.85));
  box-shadow: 0 14px 28px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.16) inset;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  position:relative;
  overflow:hidden;
}
.btn::after{
  content:"";
  position:absolute;
  inset:-60% -40%;
  background: conic-gradient(from 180deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0));
  transform: rotate(0deg);
  opacity: .0;
  transition: opacity .18s ease;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.55), 0 0 28px rgba(124,247,255,.22);
  filter: saturate(1.05) contrast(1.03);
}
.btn:hover::after{
  opacity: .9;
  animation: sheen 1.2s linear infinite;
}
@keyframes sheen{
  to{ transform: rotate(360deg); }
}

.btn small{
  font-weight: 900;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  color: rgba(6,16,22,.9);
}

footer{
  margin-top: 26px;
  padding: 18px 10px 0;
  color: rgba(234,242,255,.55);
  font-size: 12.5px;
  text-align:center;
}

@media (max-width: 980px){
  .card{ grid-column: span 6; }
  .top-actions{ display:none; }
}

@media (max-width: 640px){
  header{
    padding: 16px;
    align-items:flex-start;
  }
  .subtitle{ max-width: 100%; }
  .grid{ gap: 14px; }
  .card{ grid-column: span 12; }
  .thumb img{ height: 180px; }
}

@media (prefers-reduced-motion: reduce){
  .bg::before, .particles span, .logo::after, .btn:hover::after{
    animation: none !important;
  }
  .card, .thumb img, .btn{
    transition: none !important;
  }
}
