/* =========================================================
   LA TINKA — Floating Live Widget (2026)
   All classes prefixed .lt-wgt- to avoid clashes.
   ========================================================= */

.lt-wgt-root,
.lt-wgt-root * {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lt-wgt-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  color: #f3f4f6;
  pointer-events: none;
  animation: lt-wgt-slideInUp 480ms cubic-bezier(.2,.9,.3,1.2) both;
}

.lt-wgt-root > * { pointer-events: auto; }

@keyframes lt-wgt-slideInUp {
  0%   { transform: translateY(32px) scale(.92); opacity: 0; }
  60%  { transform: translateY(-6px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ------- Glass surface shared ------- */
.lt-wgt-pill,
.lt-wgt-panel {
  position: relative;
  background: rgba(10, 20, 14, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  color: #f3f4f6;
  overflow: hidden;
  box-shadow:
    0 20px 48px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.lt-wgt-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.25'/></svg>");
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ------- Pill (collapsed) ------- */
.lt-wgt-pill {
  display: none;
  width: 260px;
  height: 60px;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(.2,.9,.3,1.2), box-shadow 240ms;
  animation: lt-wgt-pulseGlow 2.8s ease-in-out infinite;
}
.lt-wgt-pill:hover { transform: translateY(-2px); }
.lt-wgt-pill:focus-visible { outline: 2px solid #F7E92A; outline-offset: 3px; }

@keyframes lt-wgt-pulseGlow {
  0%, 100% { box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 0 0 rgba(247,233,42,0.35), inset 0 1px 0 rgba(255,255,255,0.06); }
  50%      { box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 0 10px rgba(247,233,42,0.00), inset 0 1px 0 rgba(255,255,255,0.06); }
}

.lt-wgt-pill-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #fffde8 0%, #F7E92A 45%, #c7b50a 100%);
  color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(199,181,10,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.lt-wgt-pill-icon svg { width: 20px; height: 20px; }

.lt-wgt-pill-mid { flex: 1; min-width: 0; line-height: 1.1; }
.lt-wgt-pill-eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
}
.lt-wgt-pill-amount {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
  margin-top: 1px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.lt-wgt-pill-cd {
  font-size: 10px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  margin-top: 2px;
  white-space: nowrap;
}
.lt-wgt-pill-cd b { color: #F7E92A; font-weight: 700; }

.lt-wgt-pill-chev {
  width: 22px; height: 22px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 180ms;
}
.lt-wgt-pill:hover .lt-wgt-pill-chev { color: #F7E92A; }
.lt-wgt-pill-chev svg { width: 22px; height: 22px; }

/* ------- Panel (expanded) ------- */
.lt-wgt-panel {
  display: none;
  width: 340px;
  max-height: 480px;
  padding: 14px 14px 12px;
  flex-direction: column;
  gap: 12px;
}

.lt-wgt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.lt-wgt-head-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.lt-wgt-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ED202A;
  box-shadow: 0 0 0 0 rgba(237,32,42,0.6);
  animation: lt-wgt-redPulse 1.6s ease-in-out infinite;
}
@keyframes lt-wgt-redPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,32,42,0.6); }
  50%      { box-shadow: 0 0 0 7px rgba(237,32,42,0); }
}

.lt-wgt-icon-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 180ms cubic-bezier(.2,.9,.3,1.2);
  padding: 0;
}
.lt-wgt-icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; transform: scale(1.08); }
.lt-wgt-icon-btn:focus-visible { outline: 2px solid #F7E92A; outline-offset: 2px; }
.lt-wgt-icon-btn svg { width: 15px; height: 15px; }

/* ------- Pozo card ------- */
.lt-wgt-pozo {
  position: relative;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    radial-gradient(600px 180px at 20% 0%, rgba(247,233,42,0.14), transparent 60%),
    linear-gradient(135deg, rgba(26,133,81,0.35), rgba(9,61,36,0.6));
  border: 1px solid rgba(247,233,42,0.22);
  overflow: hidden;
}
.lt-wgt-pozo-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F7E92A;
  font-weight: 700;
  margin-bottom: 4px;
}
.lt-wgt-pozo-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
  background: linear-gradient(180deg, #fffde8 0%, #F7E92A 55%, #c7b50a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(247,233,42,0.25);
}

/* ------- Countdown row ------- */
.lt-wgt-cd {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.lt-wgt-cd-cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
}
.lt-wgt-cd-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lt-wgt-cd-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-top: 4px;
  font-weight: 600;
}

/* ------- Buttons ------- */
.lt-wgt-btns { display: flex; flex-direction: column; gap: 8px; }

.lt-wgt-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms cubic-bezier(.2,.9,.3,1.2), box-shadow 200ms, background 200ms;
  letter-spacing: 0.01em;
}
.lt-wgt-btn svg { width: 16px; height: 16px; }
.lt-wgt-btn:focus-visible { outline: 2px solid #F7E92A; outline-offset: 2px; }

.lt-wgt-btn-primary {
  background: linear-gradient(135deg, #F7E92A 0%, #F38C2C 100%);
  color: #0d1117;
  box-shadow: 0 8px 24px rgba(247,233,42,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}
.lt-wgt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(247,233,42,0.42), inset 0 1px 0 rgba(255,255,255,0.5); }

.lt-wgt-btn-ghost {
  background: rgba(237,32,42,0.14);
  color: #ffd4d7;
  border-color: rgba(237,32,42,0.4);
}
.lt-wgt-btn-ghost:hover { background: rgba(237,32,42,0.25); color: #fff; }
.lt-wgt-btn-ghost .lt-wgt-live-dot { margin-right: 2px; }

/* ------- Mini results ------- */
.lt-wgt-recent-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
  margin: 2px 0 2px;
}
.lt-wgt-recent {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lt-wgt-recent-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.lt-wgt-recent-date {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 600;
  min-width: 56px;
}
.lt-wgt-recent-balls {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
}
.lt-wgt-mini-ball { width: 20px; height: 20px; flex-shrink: 0; }

/* ------- Footer ------- */
.lt-wgt-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lt-wgt-foot a {
  font-size: 10px;
  color: #9ca3af;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: color 180ms;
}
.lt-wgt-foot a:hover { color: #F7E92A; }

/* ------- FAB (minimized) ------- */
.lt-wgt-fab {
  display: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: radial-gradient(circle at 30% 30%, #fffde8 0%, #F7E92A 45%, #c7b50a 100%);
  color: #1a1a1a;
  cursor: pointer;
  place-items: center;
  box-shadow: 0 10px 30px rgba(199,181,10,0.5), inset 0 2px 0 rgba(255,255,255,0.6);
  transition: transform 240ms cubic-bezier(.2,.9,.3,1.2);
  animation: lt-wgt-fabPulse 2.4s ease-in-out infinite;
  padding: 0;
}
.lt-wgt-fab:hover { transform: scale(1.08) rotate(-6deg); }
.lt-wgt-fab:focus-visible { outline: 2px solid #F7E92A; outline-offset: 3px; }
.lt-wgt-fab svg { width: 26px; height: 26px; }

@keyframes lt-wgt-fabPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(199,181,10,0.5), 0 0 0 0 rgba(247,233,42,0.5), inset 0 2px 0 rgba(255,255,255,0.6); }
  50%      { box-shadow: 0 10px 30px rgba(199,181,10,0.5), 0 0 0 12px rgba(247,233,42,0.0), inset 0 2px 0 rgba(255,255,255,0.6); }
}

/* ------- State switches ------- */
.lt-wgt-root[data-state="pill"]     .lt-wgt-pill  { display: flex; }
.lt-wgt-root[data-state="expanded"] .lt-wgt-panel { display: flex; }
.lt-wgt-root[data-state="fab"]      .lt-wgt-fab   { display: grid; }

/* ------- Responsive ------- */
@media (max-width: 540px) {
  .lt-wgt-root { right: 14px; bottom: 14px; }
  .lt-wgt-pill { width: 220px; }
  .lt-wgt-panel {
    width: calc(100vw - 28px);
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt-wgt-root,
  .lt-wgt-pill,
  .lt-wgt-fab,
  .lt-wgt-live-dot { animation: none; }
  .lt-wgt-btn:hover,
  .lt-wgt-pill:hover,
  .lt-wgt-fab:hover,
  .lt-wgt-icon-btn:hover { transform: none; }
}
