/* Tap Rush styles */
:root{
  --bg:#0b1020;
  --card:#111a33;
  --muted:#96a0c6;
  --text:#eaf0ff;
  --accent:#6ee7ff;
  --accent2:#a78bfa;
  --danger:#ff6b6b;
  --good:#34d399;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Hebrew", sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(110,231,255,.18), transparent 55%),
              radial-gradient(900px 600px at 90% 0%, rgba(167,139,250,.18), transparent 55%),
              var(--bg);
  color: var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:16px 14px 22px}

.top{
  display:flex;gap:14px;justify-content:space-between;align-items:center;
  padding:10px 12px;border-radius:var(--radius);
  background: rgba(17,26,51,.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(110,231,255,.25), rgba(167,139,250,.25));
  border:1px solid rgba(255,255,255,.08);
  font-weight:800;
}
.h1{font-size:18px;font-weight:800;letter-spacing:.2px}
.sub{font-size:12px;color:var(--muted);margin-top:2px}

.stats{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pill{
  display:flex;gap:8px;align-items:baseline;
  padding:8px 10px;border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  min-width:110px;justify-content:space-between;
}
.pill span{font-size:12px;color:var(--muted)}
.pill b{font-size:16px}

.main{display:grid;grid-template-columns: 1.2fr .8fr;gap:14px;margin-top:14px}
.panel{
  padding:12px;border-radius:var(--radius);
  background: rgba(17,26,51,.55);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.lbl{font-size:12px;color:var(--muted)}
.select{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
}
.btn{
  border:0; cursor:pointer;
  padding:10px 14px;
  border-radius:14px;
  color:#07101d;
  background: linear-gradient(135deg, rgba(110,231,255,1), rgba(167,139,250,1));
  font-weight:800;
}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border:1px solid rgba(255,255,255,.12);
  font-weight:700;
}
.btn.big{padding:12px 18px;border-radius:16px}
.hint{
  margin-top:10px;
  font-size:12px;
  color: var(--muted);
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px dashed rgba(255,255,255,.14);
}

.touchzone{position:relative;margin-top:12px}
canvas{
  width:100%;
  height:auto;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(4,8,18,.55);
  border: 1px solid rgba(255,255,255,.10);
  display:block;
}

.overlay{
  position:absolute;inset:0;
  display:grid;place-items:center;
  background: rgba(0,0,0,.38);
  border-radius: calc(var(--radius) + 6px);
}
.overlay .card{
  width:min(420px, 92%);
  background: rgba(17,26,51,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  box-shadow: var(--shadow);
  padding:16px;
  text-align:center;
}
.overlay .title{font-size:22px;font-weight:900}
.overlay .text{margin-top:6px;color:var(--muted);font-size:13px}
.actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.how{margin-top:12px;text-align:right;color:var(--text)}
.how ul{margin:0;padding-inline-start:18px}
.how li{color:var(--muted);margin:6px 0}

.toast{
  position:absolute;
  left:50%;transform:translateX(-50%);
  bottom:12px;
  background: rgba(17,26,51,.92);
  border:1px solid rgba(255,255,255,.12);
  padding:10px 12px;
  border-radius:14px;
  box-shadow: var(--shadow);
  font-size:12px;
  color: var(--text);
}

.side .box{
  padding:12px;border-radius:var(--radius);
  background: rgba(17,26,51,.55);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.side .box + .box{margin-top:14px}
.boxTitle{font-weight:900}
.p{margin:8px 0 0;color:var(--muted);line-height:1.55}
.small{margin-top:6px;color:var(--muted);font-size:12px}

.bestList{margin-top:10px;display:grid;gap:8px}
.bestItem{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.bestItem span{color:var(--muted);font-size:12px}
.bestItem b{font-size:14px}

.foot{margin-top:14px;color:var(--muted);font-size:12px;text-align:center}

@media (max-width: 900px){
  .main{grid-template-columns: 1fr}
  .stats{justify-content:flex-start}
}
