/* Zakop — mini-game demo
   Minimal, clean, slightly "arena" vibe. */

:root{
  --bg0:#07070a;
  --bg1:#0b0a12;
  --bg2:#151028;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.09);
  --line:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --accent:#b9ff67;
  --accent2:#7bdcff;
  --danger:#ff5a7a;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 65% 20%, rgba(123,220,255,.16), transparent 60%),
    radial-gradient(1000px 600px at 30% 5%, rgba(185,255,103,.11), transparent 60%),
    radial-gradient(800px 600px at 50% 85%, rgba(172,100,255,.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg2));
}

.app{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 24px;
}

.top{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.dot{
  width:14px;height:14px;border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  box-shadow: 0 0 26px rgba(185,255,103,.25);
}
.title{font-weight:800;letter-spacing:.3px}
.subtitle{color:var(--muted);font-size:13px;margin-top:2px}

.hud{display:flex;gap:10px;flex-wrap:wrap}
.hudItem{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 14px;
  min-width: 110px;
}
.hudLabel{color:var(--muted);font-size:12px}
.hudValue{font-weight:800;font-size:16px;margin-top:2px}

.stage{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
@media (max-width: 980px){
  .stage{grid-template-columns:1fr}
}

.arena{
  position:relative;
  min-height: 620px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(900px 420px at 50% 70%, rgba(0,0,0,.65), rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 80%, transparent 100%),
    radial-gradient(600px 240px at 50% 85%, rgba(255,255,255,.08), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
  overflow:hidden;
}

.arena:before{
  content:"";
  position:absolute; inset:-40px -40px auto -40px;
  height:220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%);
  transform: translateY(-60px);
  filter: blur(2px);
  opacity:.7;
}

.hoop{
  position:absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 180px;
  opacity:.95;
  pointer-events:none;
}
.board{
  position:absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  width: 150px;
  height: 95px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.rim{
  position:absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
}
.net{
  position:absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 70px;
  border-radius: 0 0 22px 22px;
  border: 1px dashed rgba(255,255,255,.18);
  border-top: none;
  opacity:.75;
}

.target{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.cross{
  position:absolute;
  width: 62px;
  height: 62px;
  left: 50%;
  top: 52%;
  transform: translate(-50%,-50%);
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.45));
}

.cross .h,
.cross .v{
  position:absolute;
  background: linear-gradient(90deg, rgba(185,255,103,.08), rgba(185,255,103,.90), rgba(185,255,103,.08));
  border-radius: 999px;
}
.cross .h{ left:0; right:0; top: 50%; height: 4px; transform: translateY(-50%); }
.cross .v{
  top:0; bottom:0; left: 50%; width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(185,255,103,.08), rgba(185,255,103,.90), rgba(185,255,103,.08));
}
.cross .c{
  position:absolute;
  left:50%; top:50%;
  width: 10px; height: 10px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent));
  box-shadow: 0 0 0 5px rgba(185,255,103,.16), 0 0 40px rgba(185,255,103,.22);
}

.ball{
  position:absolute;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  left: 50%;
  top: 52%;
  transform: translate(-50%,-50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 45%),
    radial-gradient(circle at 60% 60%, rgba(0,0,0,.25), rgba(0,0,0,0) 55%),
    conic-gradient(from 180deg, rgba(255,255,255,.05), rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.toast{
  position:absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  backdrop-filter: blur(10px);
  opacity:0;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(6px);
}

.panel{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: 0 10px 34px rgba(0,0,0,.25);
}

.card h2{
  margin:0 0 10px;
  font-size: 14px;
  letter-spacing:.2px;
}
.card ul{
  margin: 0 0 10px 18px;
  padding:0;
}
.card li{margin:6px 0;color: rgba(255,255,255,.83)}
.muted{color:var(--muted)}
.small{font-size:12.5px;line-height:1.35}

.row{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 10px 0;
}
.row label{
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,.82);
}
.row input[type="range"]{flex: 1.3}

.pill{
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: rgba(255,255,255,.86);
  min-width: 80px;
  text-align:center;
}

.btn{
  width:100%;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  color: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 800;
  cursor:pointer;
  transition: transform .08s ease, background .18s ease, border-color .18s ease;
  margin-top:8px;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(185,255,103,.35)}
.btn:active{transform: translateY(0px) scale(.99)}
.btnGhost{
  background: transparent;
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
}

.statusLine{
  display:flex;
  justify-content:space-between;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  margin: 8px 0;
}
.statusLine span{color: var(--muted)}

.foot{
  display:flex;
  justify-content:space-between;
  margin-top: 14px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
