.hero{
  padding:28px 0 8px
}

.hero-card{
  border:1px solid var(--line);
  border-radius:calc(var(--radius) + 4px);
  padding:18px;
  background:linear-gradient(180deg,rgba(37,99,235,.06),rgba(225,29,72,.04));
  box-shadow:var(--shadow)
}

.hero h1{
  margin:0 0 10px;
  font:700 34px/1.15 var(--head);
  letter-spacing:-.2px
}

.hero p{
  margin:0 0 14px;
  max-width:860px;
  color:var(--text2)
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:var(--pill);
  background:#fff;
  font-family:var(--head);
  font-weight:700;
  text-decoration:none
}

.btn:hover{
  text-decoration:none
}

.btn-primary{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
  box-shadow:0 10px 22px rgba(225,29,72,.18)
}

.btn-primary:hover{
  filter:brightness(.98)
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px
}

.chip{
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:var(--pill);
  background:#fff;
  color:var(--text2);
  font:700 13px/1.6 var(--head)
}

.featured-series{
  margin-top:22px
}

.featured-title{
  margin:0 0 12px;
  font-size:16px;
  font-weight:700;
  color:var(--text)
}

.series-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px
}

.series-card{
  display:block;
  overflow:hidden;
  border:1px solid #eee;
  border-radius:12px;
  background:#fff;
  text-decoration:none;
  transition:transform .18s,box-shadow .18s,border-color .18s
}

.series-card:hover{
  transform:translateY(-3px);
  border-color:#ddd;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  text-decoration:none
}

.series-card img{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover
}

.series-card span{
  display:block;
  padding:8px 6px;
  font-size:13px;
  font-weight:600;
  color:#222;
  text-align:center
}

.home-container{
  padding:18px 0 40px
}

.platform-section{
  margin-top:22px;
  scroll-margin-top:90px
}

.platform-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  font:700 22px/1.1 var(--head)
}

.platform-title::before{
  content:"";
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-radius:var(--pill);
  background:var(--blue);
  box-shadow:0 0 0 4px rgba(37,99,235,.12)
}

.game-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:14px
}

.game-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadowS);
  transition:transform .15s,box-shadow .15s
}

.game-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadowM)
}

.card-img{
  overflow:hidden;
  background:var(--soft)
}

.card-link{
  display:block
}

.card-thumb-img{
  width:100%;
  height:100%;
  max-height:240px;
  object-fit:initial;
  image-rendering:-webkit-optimize-contrast;
  image-rendering:crisp-edges
}

.card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:10px;
  padding:12px
}

.card-title{
  margin:0;
  font:700 16px/1.2 var(--head)
}

.btn-play{
  display:block;
  margin-top:auto;
  padding:10px 12px;
  border:1px solid var(--line);
  background:var(--soft3);
  color:var(--text);
  font-family:var(--head);
  font-weight:700;
  text-align:center;
  text-decoration:none;
  transition:transform .2s,background .2s,border-color .2s
}

.btn-play:hover{
  transform:scale(1.05);
  border-color:#d1d5db;
  background:#fff;
  text-decoration:none
}


body.dark .btn:not(.btn-primary),
body.dark .chip{
  background:var(--surface);
  border-color:var(--line);
  color:var(--text)
}

body.dark .hero-card,
body.dark .game-card,
body.dark .series-card{
  background:var(--surface);
  border-color:var(--line)
}

body.dark .card-img{
  background:#000
}

body.dark .card-title,
body.dark .featured-title{
  color:var(--text)
}

body.dark .btn-play{
  background:var(--bg);
  color:var(--text2);
  border-color:var(--line)
}

body.dark .btn-play:hover{
  background:var(--line);
  color:var(--text);
  border-color:var(--text2)
}

body.dark .series-card span{
  color:var(--text)
}

@media (max-width:768px){
  .series-grid{
    grid-template-columns:repeat(3,1fr);
    gap:8px
  }

  .series-card span{
    padding:6px 4px;
    font-size:12px
  }

  .card-title{
    font-size:14px
  }
}

@media (max-width:520px){
  .hero h1{
    font-size:28px
  }

  .game-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media (max-width:480px){
  .series-grid{
    grid-template-columns:repeat(3,1fr)
  }
}