/* ===== The Tool Bakery - Lottery Number Generator (Modern Theme) ===== */
.ttb-lott-wrapper{
  max-width: 860px;
  margin: 24px auto;
  padding: 0 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111827;
}

.ttb-lott-card{
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #eef2f7;
}

.ttb-lott-card-head{
  padding: 20px 22px;
  background: linear-gradient(135deg, #f0f7ff, #fef6ff);
  border-bottom: 1px solid #eef2f7;
}
.ttb-lott-title{
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ttb-lott-sub{
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.ttb-lott-card-body{
  padding: 20px 22px 22px;
}

.ttb-lott-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.ttb-lott-field label{
  display: block;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 6px;
}
.ttb-lott-field input[type="number"]{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.ttb-lott-field input[type="number"]:focus{
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.ttb-lott-actions{
  display: flex;
  gap: 10px;
  margin: 8px 0 10px;
  flex-wrap: wrap;
}
.ttb-lott-btn{
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.98rem;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(99,102,241,0.3);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.ttb-lott-btn:hover{ filter: brightness(1.05); }
.ttb-lott-btn:active{ transform: translateY(1px); }
.ttb-lott-btn-ghost{
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
  border: 1px solid #e5e7eb;
}
.ttb-lott-btn-ghost:hover{ background: #eef2f7; }

.ttb-lott-error{
  margin: 4px 0 2px;
  color: #b91c1c;
  font-weight: 600;
  min-height: 1.25em;
}

/* Output */
.ttb-lott-output{
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.ttb-lott-hidden{ display: none; }

.ttb-lott-balls{
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed #e5e7eb;
  background: radial-gradient(1200px 240px at 20% 0%, rgba(99,102,241,0.08), transparent 50%),
              radial-gradient(1200px 240px at 80% 0%, rgba(16,185,129,0.08), transparent 50%);
}

/* Ball styling */
.ttb-lott-ball{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.35) 25%, hsla(var(--hue, 240), 90%, 60%, 1) 60%);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 16px rgba(0,0,0,0.18), inset 0 2px 8px rgba(255,255,255,0.6);
  border: 2px solid hsla(var(--hue, 240), 80%, 35%, 0.9);
  transform: translateY(-260px) scale(0.98);
  opacity: 0;
}
.ttb-lott-ball .ttb-lott-ball-num{
  font-size: 1.2rem;
  font-weight: 800;
  color: #0b1020;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

/* Drop + bounce */
@keyframes ttb-lott-drop-bounce {
  0%   { transform: translateY(-260px) scale(0.98); opacity: 0; }
  70%  { transform: translateY(0) scale(1.0); opacity: 1; }
  82%  { transform: translateY(-16px) scale(1.02); }
  92%  { transform: translateY(0) scale(1.0); }
  96%  { transform: translateY(-6px) scale(1.01); }
  100% { transform: translateY(0) scale(1.0); }
}
.ttb-lott-ball-drop{
  animation: ttb-lott-drop-bounce 0.9s cubic-bezier(.22,1.0,.36,1.0) forwards;
}

/* Sorted numbers list */
.ttb-lott-list{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fafafa;
}
.ttb-lott-list-head{
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #1f2937;
}
.ttb-lott-list-body{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ttb-lott-chip{
  padding: 6px 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
@media (max-width: 420px){
  .ttb-lott-ball{ width: 56px; height: 56px; }
}
