:root{
  --bg:#0b0b10;
  --card:#131320;
  --text:#f2f2f7;
  --muted:#9b9baa;
  --btn:#2b2b3c;
  --btn2:#1d1d2a;
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(80% 80% at 50% 20%, #1a1a2a 0%, var(--bg) 60%);
  color:var(--text);
}

.app{
  min-height:100%;
  display:flex;
  flex-direction:column;
  padding:16px 16px 28px;
  gap:14px;
}

.top{
  padding-top: env(safe-area-inset-top);
}
.title{
  font-weight:800;
  font-size:20px;
  letter-spacing:0.2px;
}
.sub{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}

.stage{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex:1;
}

.wheel-wrap{
  position:relative;
  width:min(340px, 88vw);
  aspect-ratio:1 / 1;
  display:grid;
  place-items:center;
}

.pointer{
  position:absolute;
  top:-6px;
  width:64px;
  height:auto;
  z-index:5;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  transform-origin: 50% 20%;
}

/* “щёлк” стрелки */
.pointer.tick {
  animation: pointerTick 90ms ease;
}
@keyframes pointerTick {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(2px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.wheel{
  width:100%;
  height:100%;
  border-radius:999px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-img{
  width:92%;
  height:92%;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

.controls{
  display:flex;
  gap:10px;
  width:min(360px, 92vw);
}

.btn{
  flex:1;
  border:none;
  border-radius: var(--radius);
  padding:14px 14px;
  font-weight:700;
  font-size:16px;
  color:var(--text);
  background: var(--btn);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: translateY(1px); }

.primary{
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}
.ghost{
  background: var(--btn2);
  color: var(--muted);
}

.small{
  color:var(--muted);
  font-size:13px;
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:50;
}

.modal.show{ display:flex; }

.modal-card{
  width:min(420px, 96vw);
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%), var(--card);
  border-radius: 22px;
  padding:16px;
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
}

.modal-card.wide{
  width:min(520px, 96vw);
}

.modal-title{
  font-weight:900;
  font-size:18px;
  margin-bottom:8px;
}
.modal-text{
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
  margin-bottom:14px;
}

.modal-actions{
  display:flex;
  gap:10px;
}

.video{
  width:100%;
  max-height: 58vh;
  border-radius: 16px;
  background:#000;
  margin:10px 0 12px;
  border:1px solid rgba(255,255,255,.08);
}

.hint{
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
}
