.timed-lottery-entry {
  position: fixed;
  right: 22px;
  bottom: 146px;
  z-index: 2147482598;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.timed-lottery-fab {
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 14px 34px rgba(15, 118, 110, .32);
  font: 800 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.timed-lottery-fab:hover { background: #115e59; }
.timed-lottery-fab svg { width: 19px; height: 19px; flex: 0 0 auto; }
.timed-lottery-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482603;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
}
.timed-lottery-modal.is-open { display: grid; }
.timed-lottery-panel {
  position: relative;
  width: min(100%, 450px);
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .36);
  padding: 24px;
}
.timed-lottery-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #172033;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.timed-lottery-close:hover { background: #e2e8f0; }
.timed-lottery-close svg { width: 18px; height: 18px; }
.timed-lottery-visual {
  position: relative;
  height: 122px;
  display: grid;
  place-items: center;
}
.timed-lottery-ring {
  position: absolute;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #0f766e, #2563eb, #f59e0b, #0f766e);
  opacity: .16;
}
.timed-lottery-clock {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  transition: transform .18s ease;
}
.timed-lottery-clock svg { width: 96px; height: 96px; filter: drop-shadow(0 14px 20px rgba(15, 118, 110, .18)); }
.timed-lottery-clock.is-drawing { animation: timed-lottery-pulse .58s linear infinite; }
.timed-lottery-copy { text-align: center; }
.timed-lottery-copy h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}
.timed-lottery-copy p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}
.timed-lottery-status {
  margin-top: 16px;
  border-radius: 8px;
  padding: 11px 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.timed-lottery-status strong { display: block; font-size: 14px; }
.timed-lottery-status span { display: block; margin-top: 4px; color: #475569; font-size: 12px; line-height: 1.45; }
.timed-lottery-status.is-live {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #115e59;
}
.timed-lottery-status.is-ended {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.timed-lottery-prizes {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.timed-lottery-prizes span,
.timed-lottery-empty {
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: #115e59;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}
.timed-lottery-email-label {
  display: block;
  margin: 17px 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.timed-lottery-email {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  color: #172033;
  background: #fff;
  font: 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
}
.timed-lottery-email:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.timed-lottery-result {
  display: none;
  margin-top: 14px;
  border-radius: 8px;
  padding: 13px;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.timed-lottery-result.is-visible { display: grid; gap: 4px; }
.timed-lottery-result strong { font-size: 16px; }
.timed-lottery-result span,
.timed-lottery-result small { font-size: 13px; color: #475569; line-height: 1.45; }
.timed-lottery-result.is-win {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.timed-lottery-result.is-win span,
.timed-lottery-result.is-win small { color: #15803d; }
.timed-lottery-result.is-registered {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.timed-lottery-result.is-registered span,
.timed-lottery-result.is-registered small { color: #2563eb; }
.timed-lottery-draw {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #172033;
  font: 800 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  padding: 10px 12px;
}
.timed-lottery-draw:hover { background: #0f172a; }
.timed-lottery-draw:disabled { opacity: .7; cursor: not-allowed; }
.timed-lottery-rules {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
@keyframes timed-lottery-pulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.08) rotate(-3deg); }
  50% { transform: scale(1.03) rotate(3deg); }
  75% { transform: scale(1.08) rotate(-2deg); }
}
@media (max-width: 760px) {
  .timed-lottery-entry { right: 14px; bottom: 128px; }
  .timed-lottery-fab { height: 42px; padding: 0 13px; font-size: 13px; }
  .timed-lottery-panel { padding: 20px 16px; }
  .timed-lottery-copy h2 { font-size: 22px; }
}
