
:root{
  --bg1:#0b1222;
  --bg2:#111827;
  --card:rgba(17,24,39,.94);
  --card2:rgba(31,41,55,.82);
  --border:rgba(255,255,255,.12);
  --text:#f8fafc;
  --muted:#cbd5e1;
  --accent:#22c55e;
  --accentText:#052e16;
  --info:#334155;
  --shadow:0 12px 32px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 100%);
  color:var(--text);
}
.app{
  width:min(1080px,100%);
  margin:0 auto;
  padding:max(16px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:16px;
  margin-bottom:14px;
}
h1,h2,h3,p{margin:0}
.hero h1{
  font-size:clamp(40px,7vw,64px);
  line-height:1.02;
  margin-bottom:8px;
}
.hero .sub{
  color:var(--muted);
  font-size:15px;
  line-height:1.45;
  max-width:760px;
}
.hero .mini{
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.section-title{
  font-size:22px;
  font-weight:800;
  margin-bottom:10px;
}
.game-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.game-card{
  background:var(--card2);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  display:flex;
  flex-direction:column;
  min-height:255px;
}
.game-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
.game-tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#0f172a;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.game-card h3{
  font-size:28px;
  line-height:1.04;
}
.game-desc{
  color:var(--muted);
  line-height:1.45;
  font-size:15px;
  margin:12px 0 18px;
  flex:1;
}
.game-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.open-btn{
  flex:1;
  min-height:48px;
  border-radius:14px;
  background:var(--accent);
  color:var(--accentText);
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  padding:12px 14px;
}
.info-btn{
  -webkit-appearance:none;
  appearance:none;
  width:48px;
  height:48px;
  border-radius:999px;
  background:var(--info);
  color:var(--text);
  border:0;
  font-size:20px;
  font-weight:800;
  cursor:pointer;
  flex:0 0 48px;
  touch-action:manipulation;
}
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(6px);
  z-index:90;
}
.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  z-index:100;
}
.modal-card{
  width:min(680px,100%);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.02);
}
.modal-head h3{
  font-size:24px;
  line-height:1.1;
}
.close-btn{
  -webkit-appearance:none;
  appearance:none;
  width:42px;
  height:42px;
  border-radius:999px;
  border:0;
  background:var(--info);
  color:var(--text);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  flex:0 0 42px;
  touch-action:manipulation;
}
.modal-body{
  padding:18px;
}
.modal-body p{
  color:var(--muted);
  line-height:1.5;
  margin:0 0 14px;
  font-size:15px;
}
.hidden{display:none!important}
body.modal-open{
  overflow:hidden;
}

@media (max-width:900px){
  .game-grid{grid-template-columns:1fr}
  .game-card{min-height:auto}
}
