/* Base */
:root{
  --bg-dark:#080812;
  --bg-dark-grad:linear-gradient(180deg,#080812 0%,#121224 100%);
  --bg-card:#1a1a2e;
  --accent-red:#ff004c;
  --accent-red-dark:#cf003d;
  --accent-gold:#ffd700;
  --text-main:#ffffff;
  --text-muted:#a0a0b0;
  --border-radius:12px;
  --neon-glow:0 0 10px rgba(255,0,76,.55);
  --shadow-soft:0 12px 30px rgba(0,0,0,.35);
  --font-head:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  background:var(--bg-dark-grad);
  color:var(--text-main);
  font-family:var(--font-body);
  overflow-x:hidden;
  padding-bottom:70px; /* space for bottom nav on mobile */
}
a{text-decoration:none;color:inherit;transition:.25s;}
ul{list-style:none;}

.container-pad{padding-left:5%;padding-right:5%;}

/* Top bar */
.top-bar{
  background:rgba(0,0,0,.45);
  padding:8px 5%;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--text-muted);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.top-bar-left,.top-bar-right{display:flex;gap:15px;align-items:center;}
.top-bar i{margin-right:6px;color:var(--accent-gold);}
.top-bar a:hover{color:var(--text-main);}

/* Header */
.main-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,8,18,.92);
  backdrop-filter:blur(10px);
  padding:14px 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,0,76,.22);
}

.logo{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.logo .brand{
  font-family:var(--font-head);
  font-size:28px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
}
.logo .brand span{color:var(--accent-red);text-shadow:var(--neon-glow);}
.logo .tag{
  margin-top:2px;
  font-size:11px;
  color:var(--text-muted);
  letter-spacing:.06em;
}

.nav-menu{display:flex;gap:24px;align-items:center;}
.nav-link{
  font-weight:600;
  font-size:13px;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:8px;
  opacity:.92;
}
.nav-link i{opacity:.95;}
.nav-link:hover{color:var(--accent-red);}
.nav-link.gold{color:var(--accent-gold);}
.nav-link.crash i{color:var(--accent-red);}

.auth-buttons{display:flex;gap:12px;align-items:center;}
.mobile-toggle{display:none;font-size:24px;cursor:pointer;}

/* Buttons (3D + shine on primary) */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:.03em;
  user-select:none;
  border:0;
  transition:transform .12s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  will-change:transform;
}

.btn:active{transform:translateY(2px);}

.btn-login{
  background:rgba(255,255,255,.04);
  border:2px solid rgba(255,0,76,.75);
  color:#fff;
  box-shadow:0 6px 0 rgba(0,0,0,.35), 0 16px 30px rgba(0,0,0,.25);
}
.btn-login:hover{filter:brightness(1.08);}

.btn-reg{
  background:linear-gradient(180deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  border:2px solid rgba(255,0,76,.8);
  color:#fff;
  box-shadow:0 7px 0 rgba(0,0,0,.35), 0 18px 34px rgba(255,0,76,.18);
  overflow:hidden;
}
.btn-reg:hover{filter:brightness(1.06);}
.btn-reg::after{
  content:"";
  position:absolute;
  top:-50%;
  left:-40%;
  width:35%;
  height:200%;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  transform:rotate(18deg);
  animation:shine 2.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shine{
  0%{left:-60%;opacity:0;}
  20%{opacity:.9;}
  45%{left:120%;opacity:0;}
  100%{left:120%;opacity:0;}
}

/* Mobile menu overlay */
.mobile-menu{
  position:fixed;
  top:64px;
  left:0;
  width:100%;
  background:#080812;
  padding:18px 20px;
  z-index:999;
  display:none;
  border-bottom:1px solid rgba(255,0,76,.6);
}
.mobile-menu.open{display:block;}
.mobile-menu a{
  display:block;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:17px;
}
.mobile-menu a:last-child{border-bottom:0;}
.mobile-menu a.primary{
  color:var(--accent-red);
  font-weight:900;
}

/* Hero */
.hero{
  position:relative;
  height:520px;
  background: url("../img/hero-bg.webp") center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 5%;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 120% at 20% 50%, rgba(8,8,18,.95) 0%, rgba(8,8,18,.55) 60%, rgba(8,8,18,.25) 100%),
    linear-gradient(90deg, rgba(8,8,18,.86) 0%, rgba(8,8,18,.32) 60%, rgba(8,8,18,.18) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:720px;
}
.hero-title{
  font-family:var(--font-head);
  font-size:56px;
  line-height:1.08;
  margin-bottom:14px;
  letter-spacing:.02em;
  background:linear-gradient(45deg,#fff,#cfcfe0);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero-title .hero-highlight{
  -webkit-text-fill-color:var(--accent-gold);
  text-shadow:0 0 16px rgba(255,215,0,.35);
}
.hero-lead{
  color:#e3e3ef;
  font-size:18px;
  line-height:1.5;
  max-width:620px;
}
.hero-pills{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(26,26,46,.78);
  border:1px solid rgba(255,255,255,.08);
  color:#e9e9f1;
  font-size:13px;
}
.pill i{color:var(--accent-gold);}

/* Ticker */
.ticker-wrap{
  width:100%;
  background:var(--accent-red);
  overflow:hidden;
  height:32px;
  line-height:32px;
}
.ticker{
  display:inline-block;
  white-space:nowrap;
  animation:ticker 18s linear infinite;
  font-weight:800;
  font-size:13px;
}
.ticker span{margin-right:55px;}
@keyframes ticker{
  0%{transform:translateX(100%);}
  100%{transform:translateX(-100%);}
}

/* Lobby controls */
.lobby-controls{
  padding:20px 5%;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  background:#0f0f1a;
}
.search-bar{flex:1;position:relative;min-width:220px;}
.search-bar input{
  width:100%;
  background:#1a1a2e;
  border:1px solid rgba(255,255,255,.12);
  padding:12px 14px 12px 42px;
  border-radius:10px;
  color:#fff;
  font-family:var(--font-body);
  outline:none;
}
.search-bar input:focus{border-color:rgba(255,0,76,.75);box-shadow:0 0 0 3px rgba(255,0,76,.12);}
.search-bar i{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text-muted);
}
.filters{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:4px;
}
.filter-chip{
  background:#1a1a2e;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:7px;
  user-select:none;
}
.filter-chip i{opacity:.9;}
.filter-chip.active{
  background:var(--accent-red);
  border-color:var(--accent-red);
  box-shadow:var(--neon-glow);
}

/* Sections / grids */
.section-title{
  padding:30px 5% 14px;
  font-family:var(--font-head);
  font-size:24px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:10px;
}
.section-title i{color:var(--accent-red);}
.section-sub{
  padding:0 5% 18px;
  color:var(--text-muted);
  max-width:900px;
  line-height:1.55;
}

.games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:15px;
  padding:0 5%;
}
.game-card{
  background:var(--bg-card);
  border-radius:var(--border-radius);
  overflow:hidden;
  position:relative;
  aspect-ratio:3/4;
  transition:transform .18s ease, border-color .18s ease;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.06);
}
.game-card:hover{transform:translateY(-5px);border-color:rgba(255,0,76,.55);}
.game-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.game-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  opacity:0;
  transition:.25s;
  z-index:5;
}
.game-card:hover .game-overlay{opacity:1;}
.game-card.is-active .game-overlay{opacity:1;}
.game-overlay .game-name{
  font-weight:800;
  font-size:14px;
  text-align:center;
  padding:0 10px;
  color:#fff;
}
.game-actions{display:flex;gap:10px;}
.btn-mini{
  padding:9px 14px;
  font-size:12px;
  border-radius:10px;
  box-shadow:0 6px 0 rgba(0,0,0,.32), 0 16px 28px rgba(0,0,0,.22);
}
.btn-mini.btn-login{border-width:1px;}
.btn-mini:active{transform:translateY(2px);}

/* Crash section */
.crash-section{
  background:linear-gradient(135deg,#2b0d18 0%, #080812 100%);
  padding-bottom:34px;
  margin-top:34px;
  border-top:1px solid rgba(255,0,76,.55);
}
.crash-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:18px;
  padding:0 5%;
}
.crash-card{
  background:#151525;
  padding:14px;
  border-radius:var(--border-radius);
  border:1px solid rgba(255,0,76,.25);
}
.crash-card img{width:100%;border-radius:10px;display:block;}
.crash-meta{margin-top:10px;color:var(--text-muted);font-size:13px;line-height:1.45;}
.crash-actions{margin-top:12px;display:flex;gap:10px;}
.crash-actions .btn{width:100%;}

/* Live grid */
.live-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:18px;
  padding:0 5%;
}
.live-card{
  aspect-ratio:16/9;
  border-radius:var(--border-radius);
  overflow:hidden;
  position:relative;
  border:1px solid rgba(255,255,255,.06);
  background:#121224;
}
.live-card img{width:100%;height:100%;object-fit:cover;display:block;}
.live-card .live-badge{
  position:absolute;
  top:12px; left:12px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
}

/* Trust + content */
.trust-section{
  padding:52px 5%;
  background:#0d0d18;
  text-align:center;
}
.trust-icons{
  display:flex;
  justify-content:center;
  gap:34px;
  margin-bottom:34px;
  flex-wrap:wrap;
}
.trust-item{max-width:240px;}
.trust-item i{font-size:32px;color:var(--accent-gold);margin-bottom:10px;}
.trust-item h4{font-family:var(--font-head);margin-bottom:6px;}
.trust-item p{font-size:13px;color:var(--text-muted);line-height:1.55;}

.reviews-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}
.review-card{
  background:#1a1a2e;
  padding:18px;
  border-radius:var(--border-radius);
  border:1px solid rgba(255,255,255,.06);
  text-align:left;
}
.review-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.review-name{font-weight:800;}
.review-stars{color:var(--accent-gold);letter-spacing:1px;}
.review-text{color:#d6d6e2;font-style:italic;line-height:1.55;font-size:13px;}

/* Article / guide */
.article{
  padding:46px 5%;
}
.article h2{
  font-family:var(--font-head);
  font-size:26px;
  margin-bottom:12px;
}
.article h3{
  font-family:var(--font-head);
  font-size:18px;
  margin:18px 0 10px;
}
.article p{
  color:#d7d7e4;
  line-height:1.7;
  margin-bottom:12px;
}
.article ul, .article ol{
  margin:10px 0 14px 18px;
  color:#d7d7e4;
  line-height:1.7;
}
.article li{margin:6px 0;}
.note{
  background:rgba(26,26,46,.75);
  border:1px solid rgba(255,255,255,.08);
  border-left:4px solid var(--accent-red);
  padding:14px 14px 14px 16px;
  border-radius:var(--border-radius);
  margin:14px 0;
  color:#e4e4f0;
  line-height:1.6;
}
.procons{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:14px;
  margin:14px 0 18px;
}
.pc-card{
  background:#141428;
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--border-radius);
  padding:14px;
}
.pc-card h4{font-family:var(--font-head);margin-bottom:8px;}
.pc-card ul{margin-left:18px;}
.pc-card li{color:#d7d7e4;}

.table-wrap{
  overflow:auto;
  border-radius:var(--border-radius);
  border:1px solid rgba(255,255,255,.08);
  background:#111122;
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width:680px;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.07);
  text-align:left;
  font-size:13px;
  color:#d7d7e4;
  vertical-align:top;
}
.table th{
  color:#fff;
  font-weight:900;
  background:rgba(26,26,46,.65);
}
.table tr:last-child td{border-bottom:0;}

/* FAQ */
.faq{
  padding:10px 0 0;
}
.faq-item{
  border:1px solid rgba(255,255,255,.08);
  background:#141428;
  border-radius:var(--border-radius);
  padding:14px 14px;
  margin:10px 0;
}
.faq-q{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  cursor:pointer;
  font-weight:900;
}
.faq-a{
  margin-top:10px;
  color:#d7d7e4;
  line-height:1.65;
  display:none;
}
.faq-item.open .faq-a{display:block;}
.faq-q i{color:var(--accent-gold);}

/* Footer */
footer{
  background:#000;
  padding:46px 5% 110px;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:30px;
}
.footer-col h4{
  color:#fff;
  margin-bottom:18px;
  font-family:var(--font-head);
}
.footer-col ul li{margin-bottom:10px;}
.footer-col ul li a{color:var(--text-muted);font-size:14px;}
.footer-col ul li a:hover{color:var(--accent-red);}

.license{
  margin-top:36px;
  text-align:center;
  color:#777;
  font-size:12px;
  line-height:1.6;
}
.age-limit{
  display:inline-block;
  border:2px solid #fff;
  border-radius:50%;
  width:40px;height:40px;
  line-height:36px;
  font-weight:900;
  margin-bottom:10px;
}

/* Bottom nav (mobile) */
.bottom-nav{
  display:none;
  position:fixed;
  bottom:0; left:0;
  width:100%;
  background:#0f0f1a;
  border-top:1px solid rgba(255,255,255,.14);
  z-index:2000;
  justify-content:space-around;
  padding:10px 0;
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:10px;
  color:var(--text-muted);
  gap:4px;
  min-width:54px;
}
.nav-item i{font-size:20px;}
.nav-item.active{color:var(--accent-red);}

/* Responsive */
@media (max-width: 900px){
  .top-bar{display:none;}
  .nav-menu{display:none;}
  .mobile-toggle{display:block;}
  .auth-buttons .btn{padding:8px 14px;font-size:12px;}
  .hero{height:430px;background-position:center;}
  .hero-title{font-size:34px;}
  .hero-lead{font-size:15px;}
  .bottom-nav{display:flex;}
  .games-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width: 360px){
  .auth-buttons{gap:8px;}
  .auth-buttons .btn{padding:7px 10px;}
}
/* Subpages */
.hero.hero-small{height:360px;}
.hero.hero-small .hero-title{font-size:44px;}
.hero.hero-small .hero-pills{display:none;}

.page-intro{
  padding:18px 5% 0;
  color:var(--text-muted);
  max-width:900px;
  line-height:1.6;
}

.section-actions{
  padding:18px 5% 34px;
  display:flex;
  justify-content:center;
}
.section-actions .btn{
  min-width:260px;
  text-align:center;
}

.card-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:6;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
}
.card-badge.live{color:var(--accent-gold);}
.card-badge.crash{color:var(--accent-red);}

@media (max-width: 900px){
  .hero.hero-small{height:320px;}
  .hero.hero-small .hero-title{font-size:30px;}
}
