/* existing block styles (корзина) */
.lab-lottery-box{
  border:1px solid #2a2f3a;
  background:#141821;
  color:#c7d0e0;
  padding:16px;
  border-radius:12px;
  max-width:520px;
}
.lab-lottery-title{ font-size:18px; font-weight:700; margin-bottom:6px; }
.lab-lottery-sub{ font-size:13px; opacity:.85; margin-bottom:10px; }
.lab-lottery-hint{ font-size:13px; opacity:.8; margin:10px 0; }
.lab-lottery-btn{
  background:#2b6cff;
  color:#fff;
  border:0;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}
.lab-lottery-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.lab-lottery-result{ margin-top:12px; background:#0f131b; border:1px solid #252b36; padding:12px; border-radius:10px; }
.lab-lottery-note{ margin-top:10px; font-size:12px; opacity:.75; }

/* overlay */
html.lab-noscroll, body.lab-noscroll { overflow: hidden !important; }

.lab-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}
.lab-overlay.hidden{ display:none; }

.lab-scene{
  position: relative;
  width: min(980px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid rgba(120,150,255,0.18);
  background: radial-gradient(1200px 600px at 50% 40%, rgba(70,90,160,0.18), rgba(10,12,18,0.95));
  box-shadow: 0 30px 100px rgba(0,0,0,0.6);
  overflow: hidden;
}

#lab-canvas{
  width: 100%;
  height: auto;
  display: block;
}

.lab-hud{
  position: absolute;
  left: 18px;
  top: 14px;
  right: 18px;
  pointer-events: none;
  color: #d7e2ff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.lab-title{
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 16px;
  opacity: 0.95;
}
.lab-status{
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}
.lab-progress{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(160,190,255,0.10);
  overflow: hidden;
}
.lab-progress-bar{
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110,170,255,0.95), rgba(140,255,220,0.95));
  box-shadow: 0 0 25px rgba(120,200,255,0.35);
  transition: width 180ms linear;
}

.lab-start{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(50,110,255,0.92);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(40,90,255,0.35);
}
.lab-start.disabled, .lab-start:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.lab-result{
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  background: rgba(10,12,18,0.78);
  border: 1px solid rgba(140,170,255,0.18);
  border-radius: 14px;
  padding: 14px;
  color: #e7efff;
  backdrop-filter: blur(8px);
}
.lab-result.hidden{ display:none; }

.lab-result-head{
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 14px;
  opacity: 0.95;
}
.lab-prize{
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
}
.lab-code-wrap{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.lab-code-label{
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: 0.75;
}
.lab-code{
  font-size: 16px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(160,190,255,0.14);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-copy{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(160,190,255,0.18);
  color: #e7efff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.lab-expire{
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}
.lab-foot{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.lab-close{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(160,190,255,0.14);
  color: #e7efff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.lab-x{
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(160,190,255,0.16);
  background: rgba(0,0,0,0.35);
  color: #e7efff;
  cursor: pointer;
  font-size: 22px;
  line-height: 28px;
}

.lab-coupon-flash{
  outline: 2px solid rgba(120,200,255,0.8) !important;
  box-shadow: 0 0 0 6px rgba(120,200,255,0.18) !important;
  transition: all .2s ease;
}

