:root{
  --bg-main:#0a0a0f;
  --bg-secondary:#14141c;
  --card:#181826;
  --border:rgba(255,255,255,0.08);

  --accent-primary:#8a2be2;
  --accent-secondary:#ff304f;

  --text-primary:#ffffff;
  --text-secondary:#a0a0b0;

  --bottom-nav-height:70px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color:var(--bg-main);
  color:var(--text-primary);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  overflow-x:hidden;
  position:relative;
  min-height:100vh;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background: url("/assets/img/background.webp") center/cover no-repeat fixed;
  opacity:0.18;
  pointer-events:none;
  z-index:-2;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  background: radial-gradient(ellipse at top, rgba(138,43,226,0.10), rgba(10,10,15,0.86) 60%);
  pointer-events:none;
  z-index:-1;
}

a{color:inherit;text-decoration:none;}
img{max-width:100%;height:auto;display:block;}
button{font-family:inherit;}

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.4px;
  text-transform:uppercase;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  user-select:none;
}
.btn:active{transform:scale(0.96);}
.btn-glow{
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color:#fff;
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.35);
}
.btn-outline{
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.18);
  color:#fff;
}
.btn-outline:hover{border-color: rgba(255,255,255,0.30);}

.btn-link{
  color: var(--text-secondary);
  font-weight:700;
  font-size:13px;
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.btn-link:hover{color:#fff;}

/* Header */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 14px 20px;
  background: rgba(10,10,15,0.82);
  backdrop-filter: blur(12px);
  position:sticky;
  top:0;
  z-index:100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo{
  font-size:22px;
  font-weight:900;
  letter-spacing:1px;
  background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.top-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color:#fff;
}
.top-icon i{font-size:20px;}
.top-icon:hover{background: rgba(255,255,255,0.08);}

/* Hero */
.mobile-hero{
  margin: 18px 20px 0;
  height: 390px;
  border-radius: 22px;
  overflow:hidden;
  position:relative;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-bg{
  width:100%;
  height:100%;
  background: url("/assets/img/hero.webp") no-repeat center/cover;
  transform: scale(1.02);
}
.hero-content{
  position:absolute;
  bottom:0; left:0;
  width:100%;
  padding: 28px 18px;
  background: linear-gradient(to top, rgba(10,10,15,0.98), rgba(10,10,15,0.0));
}
.hero-title{
  font-size:30px;
  line-height:1.08;
  margin-bottom:10px;
  text-transform:uppercase;
}
.hero-subtitle{
  color: var(--text-secondary);
  margin-bottom:16px;
  max-width: 520px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Sections */
.section-container{
  padding: 26px 20px;
}
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.section-title{
  font-size:20px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
}
.section-title i{color: var(--accent-secondary); font-size:20px;}

.section-note{
  color: var(--text-secondary);
  margin-top:8px;
  line-height:1.55;
}

/* Grids */
.games-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Game card */
.game-card{
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(20,20,28,0.78);
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 194 / 257;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:active{transform: scale(0.985);}

.game-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.game-title-badge{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 10px 10px 11px;
  font-size:12px;
  font-weight:700;
  text-align:center;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.0));
  transition: opacity .25s ease;
}

/* Overlay */
.game-overlay{
  position:absolute;
  inset:0;
  background: rgba(10,10,15,0.86);
  backdrop-filter: blur(6px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap: 12px;
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.game-card.show-overlay .game-overlay{
  opacity:1;
  visibility:visible;
}
.game-card.show-overlay .game-title-badge{opacity:0;}

.overlay-btn{
  width: 82%;
  padding: 12px 12px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.4px;
  text-transform: uppercase;
  text-align:center;
  border: 1px solid transparent;
}
.btn-play-overlay{
  background: var(--accent-secondary);
  color:#fff;
  box-shadow: 0 0 18px rgba(255, 48, 79, 0.55);
}
.btn-demo-overlay{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color:#fff;
}

/* Info table */
.table-wrap{
  background: rgba(20,20,28,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow:hidden;
}
.table-scroll{
  width:100%;
  overflow:auto;
}
.info-table{
  width:100%;
  border-collapse: collapse;
  min-width: 520px;
}
.info-table th,
.info-table td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align:top;
  font-size: 14px;
  line-height:1.4;
}
.info-table thead th{
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing:.4px;
  background: rgba(255,255,255,0.03);
}
.info-table tbody th{
  width: 40%;
  text-align:left;
  font-weight:800;
}
.info-table tbody td{
  color:#e9e9ef;
}
.info-table tr:last-child th,
.info-table tr:last-child td{border-bottom:none;}

/* Feature cards */
.cards{
  display:grid;
  gap:14px;
}
.card{
  background: rgba(20,20,28,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
}
.card h3{
  font-size:16px;
  margin-bottom:10px;
}
.card p{color: var(--text-secondary); line-height:1.55;}
.card ul{
  margin-top:10px;
  padding-left:18px;
  color: var(--text-secondary);
  line-height:1.55;
}
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tag{
  font-size:12px;
  color:#fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 999px;
}

/* Search */
.search-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.search{
  width:100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color:#fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  outline:none;
}
.search::placeholder{color: rgba(255,255,255,0.55);}

/* FAQ */
.faq{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.faq details{
  background: rgba(20,20,28,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px 14px;
}
.faq summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
}
.faq summary::-webkit-details-marker{display:none;}
.faq p{
  color: var(--text-secondary);
  margin-top:10px;
  line-height:1.55;
}

/* Breadcrumbs */
.breadcrumbs{
  font-size: 12px;
  color: var(--text-secondary);
  margin: 8px 0 0;
}
.breadcrumbs a{color: var(--text-secondary);}
.breadcrumbs a:hover{color:#fff;}
.breadcrumbs .sep{margin:0 8px; opacity:.6;}

/* Tournament banners */
.banner-grid{
  display:grid;
  gap:14px;
}
.banner{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20,20,28,0.75);
}
.banner img{width:100%; height:auto; display:block;}
.banner-body{
  padding: 14px 14px 16px;
}
.banner-title{
  font-weight:900;
  margin-bottom:8px;
}
.banner-body p{color: var(--text-secondary); line-height:1.55;}

/* Footer */
.footer{
  padding: 30px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,15,0.65);
  backdrop-filter: blur(10px);
}
.footer-grid{
  display:grid;
  gap:18px;
}
.footer h3{
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing:.4px;
  color:#fff;
  margin-bottom: 10px;
}
.footer p, .footer a, .footer li{
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.footer a:hover{color:#fff;}
.footer ul{padding-left: 16px;}
.footer-bottom{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* Bottom nav */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height: var(--bottom-nav-height);
  background: rgba(20,20,28,0.92);
  backdrop-filter: blur(15px);
  display:flex;
  justify-content:space-around;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index:999;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  width:100%;
  height:100%;
  transition: color .2s ease;
  position:relative;
}
.nav-item i{font-size:20px; margin-bottom:2px;}
.nav-item.active{color: var(--accent-primary);}
.nav-item.active::after{
  content:"";
  position:absolute;
  top:0;
  width:30px;
  height:3px;
  background: var(--accent-primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 12px rgba(138,43,226,0.6);
}

@media (min-width: 768px){
  .games-grid{grid-template-columns: repeat(4, 1fr);}
  .mobile-hero{height: 320px;}
  .cards{grid-template-columns: repeat(3, 1fr);}
  .banner-grid{grid-template-columns: repeat(2, 1fr);}
  /* Hover on desktop */
  .game-card:hover .game-overlay{opacity:1; visibility:visible;}
  .game-card:hover .game-title-badge{opacity:0;}
}
@media (min-width: 1024px){
  body{
    max-width: 1200px;
    margin:0 auto;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .bottom-nav{
    max-width: 1200px;
    left:50%;
    transform: translateX(-50%);
  }
  .top-bar{padding: 14px 24px;}
}
