:root{
  /* Core palette (dark, minimal, studio-grade) */
  --bg:#06060b;
  --fg:#f5f6f7;
  --muted:#a3a7b2;

  --line: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.06);
  --soft: rgba(255,255,255,.08);

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --maxw: 1120px;

  /* Accent system HI */
  --a1:#7c3aed;   /* violet */
  --a2:#ec4899;   /* pink */
  --a3:#22d3ee;   /* cyan */
  --glow: 0 0 0 rgba(0,0,0,0);
}

*{box-sizing:border-box}
html,body{min-height:100%}
html,body,#root,main{background: transparent;}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--fg);
  line-height:1.45;
  position:relative;
  /* overflow-x removed to avoid clipping on smaller widths */
}
html{
  position:relative;
  background: transparent;
}
html::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1200px 700px at 14% -10%, rgba(124,58,237,.45), transparent 60%),
    radial-gradient(900px 560px at 92% 8%, rgba(34,211,238,.28), transparent 58%),
    radial-gradient(1600px 1200px at 50% 48%, rgba(124,58,237,.16), transparent 72%),
    radial-gradient(900px 520px at 58% 110%, rgba(236,72,153,.22), transparent 60%),
    radial-gradient(1100px 520px at 50% 100%, rgba(236,72,153,.18), transparent 65%),
    radial-gradient(1200px 620px at 12% 92%, rgba(124,58,237,.24), transparent 60%),
    var(--bg);
  background-repeat:no-repeat;
  background-size: 120% 120%;
  pointer-events:none;
}

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

.container{
  width:min(var(--maxw), calc(100% - 48px));
  margin:0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto;
  background:rgba(10,10,14,.92);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  box-shadow:var(--shadow);
}

/* Header */
header{
  position:sticky;
  top:0;
  background:rgba(6,6,11,.58);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.10);
  z-index:10;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.brand-mark{
  width:28px; height:28px;
  display:grid; place-items:center;
  color:var(--fg);
}
.brand-mark svg{width:100%; height:100%}
.brand-name{
  font-weight:750;
  letter-spacing:-.02em;
}

.nav-links{
  display:flex;
  gap:10px;
  align-items:center;
}
.nav-links a{
  color:rgba(245,246,247,.72);
  font-weight:650;
  padding:10px 12px;
  border-radius:12px;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.nav-links a:hover{
  text-decoration:none;
  background:rgba(255,255,255,.07);
  transform:translateY(-1px);
  color:var(--fg);
}
.nav-links a.active{
  color:var(--fg);
  background:rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--fg);
  font-weight:750;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform:translateY(-1px);
  text-decoration:none;
  background:rgba(255,255,255,.07);
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.18);
}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  box-shadow: 0 18px 44px rgba(124,58,237,.22);
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(236,72,153,.95));
  box-shadow: 0 24px 60px rgba(124,58,237,.25);
}

main{padding:56px 0 72px}

/* Hero */
.hero-shell{
  position:relative;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(900px 600px at 25% 0%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(800px 520px at 90% 20%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.hero-shell::after{
  content:"";
  position:absolute; inset:-2px;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity:.12;
  pointer-events:none;
  mix-blend-mode: overlay;
}

.hero{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:start;
  padding:28px;
}

@media (max-width: 880px){
  .hero{grid-template-columns: 1fr; padding:18px}
  .brand{min-width:auto}
  .nav{flex-wrap:wrap}
}

.h-eyebrow{
  color:rgba(245,246,247,.72);
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
}

.h-title{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing:-.04em;
  line-height:1.02;
  margin:10px 0 10px;
  text-transform: uppercase;
}
.h-title .accent{
  background: linear-gradient(135deg, var(--a3), var(--a2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.h-sub{
  color:rgba(245,246,247,.72);
  font-size:16px;
  margin:0;
  max-width: 60ch;
}

.panel{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding:16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.panel h3{
  margin:0 0 10px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(245,246,247,.68);
}
.panel p{margin:0; color:rgba(245,246,247,.72)}

.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.badge{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding:8px 12px;
  font-weight:750;
  color:rgba(245,246,247,.92);
  font-size:13px;
}

.section{
  margin-top: 36px;
}

.section h2{
  margin:0 0 14px;
  font-size: 22px;
  letter-spacing:-.02em;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:14px;
}

@media (max-width: 900px){ .grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:14px;
}
 }

.card{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  padding: 16px;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.card h3{margin:0 0 6px; font-size:16px; letter-spacing:-.01em}
.card p{margin:0; color:rgba(245,246,247,.72)}
.card .small{margin-top:10px; font-size:13px; color:rgba(245,246,247,.64)}

.footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding:22px 0;
  color:rgba(245,246,247,.62);
  font-size:13px;
}
.footer .row{
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
}

/* KPI blocks */
.kpi{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:10px;
  margin-top:12px;
}

@media (max-width: 900px){ .kpi{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:10px;
  margin-top:12px;
}
 }

.kpi .k{
  min-width:0;

  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.05);
}
.k .label{color:rgba(245,246,247,.62); font-size:12px; letter-spacing:.12em; text-transform:uppercase}
.k .value{font-size:18px; font-weight:850; letter-spacing:-.02em; margin-top:4px}

/* Games page */
.games-toolbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin: 14px 0 10px;
}
.muted{color:rgba(245,246,247,.66)}

hr.sep{
  border:none;
  border-top:1px solid rgba(255,255,255,.10);
  margin: 18px 0;
}

.games-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap:14px;
}
@media (max-width: 980px){ .games-grid{grid-template-columns: 1fr} }

@media (max-width: 900px){ .games-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap:14px;
}
@media (max-width: 980px){ .games-grid{grid-template-columns: 1fr} }
 }

.game-card{
  min-width:0;

  display:grid;
  grid-template-columns: 80px 1fr;
  gap:14px;
  align-items:start;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255,255,255,.05);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.game-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.game-icon{
  width:80px; height:80px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  overflow:hidden;
}
.game-icon img{width:100%; height:100%; object-fit:cover; display:block}

.game-top{
  min-width:0;

  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.game-name{
  margin:0;
  font-size:16px;
  font-weight:900;
  letter-spacing:-.01em;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.game-meta{
  margin-top:6px;
  color:rgba(245,246,247,.66);
  font-size:13px;
}

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

.pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-weight:750;
  font-size:13px;
  color:rgba(245,246,247,.92);
  text-decoration:none;
}
.pill:hover{
  background: rgba(255,255,255,.07);
  text-decoration:none;
}
.pill.live{
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.10);
}

/* Form */
.form{
  display:grid;
  gap:12px;
  max-width: 560px;
}

.input{
  border:1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding:12px 12px;
  font-size:14px;
  background: rgba(255,255,255,.04);
  color: var(--fg);
  outline: none;
}
.input:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}
textarea.input{min-height: 140px; resize: vertical}

.notice{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.05);
  color: rgba(245,246,247,.66);
  font-size: 13px;
}
