:root{
  --bg0:#070a16;
  --bg1:#0b1020;
  --card:rgba(255,255,255,0.06);
  --card2:rgba(255,255,255,0.04);
  --line:rgba(255,255,255,0.12);

  --text:#eaf0ff;
  --muted:#b8c2e6;

  --accent:#6aa9ff;
  --accent2:#78f0c9;
  --danger:#ff6a6a;
  --warn:#ffd36a;

  --shadow:0 18px 60px rgba(0,0,0,0.45);
  --shadow-soft:0 10px 30px rgba(0,0,0,0.24);
  --radius:18px;
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 8%, rgba(106,169,255,0.25), transparent 60%),
    radial-gradient(1000px 600px at 85% 15%, rgba(120,240,201,0.18), transparent 55%),
    radial-gradient(900px 700px at 60% 100%, rgba(255,211,106,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}

img{
  max-width:100%;
  display:block;
}

.container{
  max-width:1240px;
  margin:0 auto;
  padding:18px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  background:rgba(8,10,18,0.55);
  backdrop-filter:blur(14px);
}

.brand{
  font-weight:900;
  letter-spacing:.5px;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.logo-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow:0 0 18px rgba(106,169,255,0.55);
  flex:0 0 auto;
}

.logo-text{
  font-weight:900;
  letter-spacing:.4px;
  background:linear-gradient(90deg, #dfe9ff, #6aa9ff 45%, #78f0c9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 18px rgba(106,169,255,0.12);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topnav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.topnav a{
  opacity:.9;
  padding:8px 10px;
  border-radius:12px;
  transition:background .15s ease, opacity .15s ease, transform .15s ease;
}

.topnav a:hover{
  opacity:1;
  background:rgba(255,255,255,0.06);
}

.page{
  animation:pageIn .35s ease-out both;
}

@keyframes pageIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

.card.soft{
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.hero{
  margin-top:16px;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(500px 280px at 10% 10%, rgba(106,169,255,0.25), transparent 60%),
    radial-gradient(460px 320px at 90% 20%, rgba(120,240,201,0.18), transparent 60%);
  filter:blur(14px);
  opacity:.55;
  pointer-events:none;
}

.hero > *{
  position:relative;
  z-index:1;
}

.hero-compact{
  padding:22px 20px;
}

.hero h1{
  margin:8px 0 8px;
  font-size:clamp(28px, 4vw, 42px);
  line-height:1.1;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.hero-text{
  max-width:760px;
  font-size:15px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:14px;
  align-items:stretch;
}

.grid .card{
  height:100%;
}

.legend{
  margin:10px 0 0 18px;
  color:var(--muted);
}

.legend li{margin:6px 0}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.06);
  font-weight:800;
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease, background .12s ease;
  user-select:none;
}

.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(1px) scale(.99)}
.btn:disabled{opacity:.5;cursor:not-allowed}

.btn.primary{
  border:none;
  color:#07101f;
  background:linear-gradient(90deg, rgba(106,169,255,0.95), rgba(120,240,201,0.90));
  box-shadow:0 10px 30px rgba(106,169,255,0.22);
}

.btn.ghost{
  background:rgba(255,255,255,0.03);
}

.btn.full{
  width:100%;
}

.link{
  display:inline-block;
  margin-top:6px;
  color:var(--accent);
  font-weight:800;
}

.link:hover{text-decoration:underline}

.footer{
  max-width:1240px;
  margin:22px auto 40px;
  padding:0 18px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  opacity:.95;
  flex-wrap:wrap;
}

.muted{color:var(--muted)}

.hr{
  height:1px;
  background:rgba(255,255,255,0.10);
  margin:14px 0;
}

.game-wrap{
  margin-top:16px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
}

.panel h1{margin:0 0 8px 0}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.18);
  border:1px solid rgba(255,255,255,0.10);
  color:var(--muted);
  font-size:13px;
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.input{
  width:240px;
  max-width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(0,0,0,0.24);
  color:var(--text);
  outline:none;
  font-size:16px;
  letter-spacing:2px;
  transition:border-color .12s ease, transform .12s ease;
}

.input:focus{
  border-color:rgba(106,169,255,0.55);
  box-shadow:0 0 0 4px rgba(106,169,255,0.10);
}

.input::placeholder{
  color:rgba(184,194,230,0.65);
}

.small{font-size:13px;color:var(--muted)}

.kbd{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  padding:2px 6px;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:10px;
  background:rgba(0,0,0,0.18);
}

.list{
  margin:10px 0 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.18);
  transform-origin:top;
  animation:itemIn .22s ease-out both;
}

@keyframes itemIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.item code{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:14px;
  letter-spacing:1px;
}

.pill{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.05);
  color:var(--muted);
  font-size:13px;
}

.pill b{color:var(--text)}
.danger{color:var(--danger);font-weight:900}
.success{color:var(--accent2);font-weight:900}
.warn{color:var(--warn);font-weight:900}

.ads{margin-top:0}

.adbox{
  height:110px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(184,194,230,0.85);
  background:rgba(0,0,0,0.16);
}

.form{display:grid;gap:10px}

label{
  color:var(--muted);
  font-size:14px;
}

select,
input[type="number"]{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(0,0,0,0.24);
  color:var(--text);
  outline:none;
}

.note{
  font-size:13px;
  color:var(--muted);
  line-height:1.55;
}

.shake{animation:shake .28s ease-in-out}

@keyframes shake{
  0%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  50%{transform:translateX(6px)}
  75%{transform:translateX(-4px)}
  100%{transform:translateX(0)}
}

.share-wrap{margin-top:14px}

.share-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.share-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.06);
  font-weight:800;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease;
}

.share-chip:hover{transform:translateY(-1px)}
.share-chip:active{transform:translateY(1px) scale(.99)}
.share-note{margin-top:8px}

textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(0,0,0,0.24);
  color:var(--text);
  outline:none;
  resize:vertical;
  min-height:140px;
  font:inherit;
}

textarea:focus{
  border-color:rgba(106,169,255,0.55);
  box-shadow:0 0 0 4px rgba(106,169,255,0.10);
}

.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select{
  width:100%;
}

/* Splash / Loading screen */
.splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(900px 500px at 20% 15%, rgba(106,169,255,0.22), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(120,240,201,0.16), transparent 60%),
    linear-gradient(180deg, #070a16, #0b1020);
  opacity:1;
  visibility:visible;
  transition:opacity .45s ease, visibility .45s ease;
}

.splash.hidden{
  opacity:0;
  visibility:hidden;
}

.splash-box{
  text-align:center;
  padding:28px 24px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  box-shadow:0 18px 60px rgba(0,0,0,0.45);
  min-width:280px;
  max-width:90vw;
}

.splash-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:14px;
}

.splash-title{
  font-size:28px;
  font-weight:900;
  letter-spacing:.6px;
  background:linear-gradient(90deg, #ffffff, #6aa9ff 45%, #78f0c9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.splash-subtitle{
  color:var(--muted);
  font-size:14px;
  margin-bottom:16px;
}

.loader{
  width:220px;
  max-width:70vw;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
  margin:0 auto;
  border:1px solid rgba(255,255,255,0.10);
}

.loader-bar{
  height:100%;
  width:40%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow:0 0 20px rgba(106,169,255,0.35);
  animation:loaderMove 1.15s ease-in-out infinite;
}

@keyframes loaderMove{
  0%{transform:translateX(-110%)}
  100%{transform:translateX(280%)}
}

.home-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:18px;
  margin-top:16px;
  align-items:start;
}

.home-main,
.home-sidebar{
  min-width:0;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.section-head h2{
  margin:0 0 4px;
  font-size:24px;
}

.section-head p{
  margin:0;
}

.games-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.game-card{
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.game-card:hover{
  transform:translateY(-4px);
  border-color:rgba(106,169,255,0.28);
  box-shadow:0 16px 40px rgba(0,0,0,0.30);
}

.game-cover-link{
  display:block;
  overflow:hidden;
}

.game-cover{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:rgba(255,255,255,0.04);
  border-bottom:1px solid rgba(255,255,255,0.10);
  transition:transform .25s ease;
}

.game-card:hover .game-cover{
  transform:scale(1.035);
}

.game-card-body{
  padding:12px;
  display:grid;
  gap:10px;
}

.game-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.game-card-body h2{
  margin:0;
  font-size:18px;
  line-height:1.2;
}

.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.05);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.info-card{
  margin-top:14px;
}

.sidebar-card{
  margin-top:14px;
}

.sidebar-list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}

.sidebar-list li{
  margin:8px 0;
}

@media (max-width:1100px){
  .home-layout{
    grid-template-columns:1fr;
  }

  .games-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width:820px){
  .games-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

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

@media (max-width:700px){
  .topbar{
    padding:12px 14px;
    align-items:flex-start;
    flex-direction:column;
  }

  .topnav{
    width:100%;
    gap:8px;
  }

  .topnav a{
    padding:8px 9px;
    font-size:14px;
  }

  .container{padding:14px}
  .row{gap:8px}

  .badge{font-size:12px}

  .input{
    width:100%;
    min-width:0;
    font-size:18px;
  }

  .btn,
  .share-chip{
    min-height:46px;
  }

  .share-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .logo-text{
    max-width:70vw;
  }

  .splash-title{
    font-size:24px;
  }
}

@media (max-width:520px){
  .games-grid{
    grid-template-columns:1fr;
  }

  .hero-compact{
    padding:18px 16px;
  }

  .section-head h2{
    font-size:21px;
  }

  .game-card-body{
    padding:11px;
  }
}
