/* =========================================================
   KARMASBOX GAMES LANDING PAGE
   Purple / black game hub
   ========================================================= */

.kb-games-page{
  width:100%;
  min-width:0;
  padding:28px 0 46px;
}

.kb-games-shell{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.kb-games-hero{
  position:relative;
  overflow:hidden;
  margin-bottom:18px;
  padding:34px 30px;
  border:1px solid rgba(167,139,250,.18);
  border-radius:20px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,92,246,.20), transparent 46%),
    linear-gradient(180deg, rgba(18,13,28,.98), rgba(7,6,10,.98));
  box-shadow:
    0 20px 60px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.kb-games-kicker{
  margin-bottom:8px;
  color:#a78bfa;
  font-size:.75rem;
  font-weight:950;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.kb-games-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(2.35rem, 6vw, 4rem);
  line-height:.95;
  letter-spacing:-.045em;
}

.kb-games-hero p{
  max-width:650px;
  margin:14px auto 0;
  color:rgba(255,255,255,.66);
  font-size:1rem;
  line-height:1.6;
}

.kb-game-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.kb-game-card{
  position:relative;
  display:flex;
  min-height:320px;
  overflow:hidden;
  border:1px solid rgba(167,139,250,.18);
  border-radius:20px;
  color:#fff;
  text-decoration:none;
  background:
    linear-gradient(145deg, rgba(139,92,246,.12), rgba(7,7,10,.96) 55%),
    #08070c;
  box-shadow:
    0 18px 52px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.025);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.kb-game-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, transparent 25%, rgba(0,0,0,.28) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.012) 0,
      rgba(255,255,255,.012) 1px,
      transparent 1px,
      transparent 12px
    );
}

.kb-game-card-glow{
  position:absolute;
  width:260px;
  height:260px;
  right:-80px;
  top:-100px;
  border-radius:50%;
  background:rgba(139,92,246,.18);
  filter:blur(26px);
  opacity:.8;
  transition:transform .18s ease, opacity .18s ease;
}

.kb-game-card:hover,
.kb-game-card:focus-visible{
  transform:translateY(-4px);
  border-color:rgba(167,139,250,.52);
  box-shadow:
    0 24px 68px rgba(0,0,0,.40),
    0 0 28px rgba(139,92,246,.12);
}

.kb-game-card:hover .kb-game-card-glow{
  transform:scale(1.12);
  opacity:1;
}


.kb-game-logo{
  position:absolute;
  z-index:2;
  top:22px;
  right:22px;
  display:block;
  width:auto;
  max-width:170px;
  height:72px;
  object-fit:contain;
  object-position:right top;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.45));
  opacity:.95;
  pointer-events:none;
}

.kb-game-card--dbd .kb-game-logo{
  max-width:155px;
  height:64px;
}

.kb-game-card-content{
  padding-right:210px;
}

.kb-game-card-content{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:100%;
  padding:28px;
}

.kb-game-eyebrow{
  margin-bottom:10px;
  color:#a78bfa;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.kb-game-card h2{
  margin:0;
  color:#fff;
  font-size:clamp(1.65rem, 3vw, 2.45rem);
  line-height:1.04;
  letter-spacing:-.035em;
}

.kb-game-card p{
  max-width:500px;
  margin:14px 0 26px;
  color:rgba(255,255,255,.64);
  font-size:.94rem;
  line-height:1.6;
}

.kb-game-button{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  margin-top:auto;
  padding:10px 14px;
  border:1px solid rgba(167,139,250,.24);
  border-radius:10px;
  background:rgba(139,92,246,.09);
  color:#fff;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.kb-game-button span{
  color:#a78bfa;
  font-size:1.35rem;
  line-height:0;
  transition:transform .18s ease;
}

.kb-game-card:hover .kb-game-button span{
  transform:translateX(3px);
}

.kb-game-card--dbd{
  background:
    radial-gradient(circle at 100% 0%, rgba(139,92,246,.12), transparent 38%),
    linear-gradient(145deg, rgba(40,15,54,.40), rgba(7,7,10,.97) 55%),
    #08070c;
}

.kb-games-note{
  margin-top:16px;
  padding:13px 16px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:11px;
  background:rgba(7,7,10,.76);
  color:rgba(255,255,255,.45);
  text-align:center;
  font-size:.75rem;
  font-weight:700;
}

@media (max-width:800px){

  .kb-game-logo{
    top:18px;
    right:18px;
    max-width:135px;
    height:56px;
  }

  .kb-game-card--dbd .kb-game-logo{
    max-width:125px;
    height:52px;
  }

  .kb-game-card-content{
    padding-right:165px;
  }

  .kb-game-grid{
    grid-template-columns:1fr;
  }

  .kb-game-card{
    min-height:270px;
  }
}

@media (max-width:560px){

  .kb-game-logo{
    top:16px;
    right:16px;
    max-width:110px;
    height:46px;
  }

  .kb-game-card--dbd .kb-game-logo{
    max-width:104px;
    height:44px;
  }

  .kb-game-card-content{
    padding-right:135px;
  }

  .kb-games-page{
    padding-top:18px;
  }

  .kb-games-shell{
    width:min(100% - 18px, 1180px);
  }

  .kb-games-hero{
    padding:28px 18px;
    border-radius:16px;
  }

  .kb-game-card{
    min-height:245px;
    border-radius:16px;
  }

  .kb-game-card-content{
    padding:22px;
  }
}
