/* ============================================================
   Loterías de Colombia — style.css
   Adapted from design bundle, extended with miloto / colorloto
   types, real lottery logos, and a 3-prediction layout.
   ============================================================ */

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --surface-2: #22263a;
  --border:    #2e3250;
  --border-soft: #232742;
  --accent:    #6c63ff;
  --accent-2:  #00d4aa;
  --warning:   #ff9800;
  --text:      #e8eaf6;
  --text-muted:#7b82b0;
  --danger:    #ff5470;

  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-chip: 8px;
  --pad-card:  20px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --grad-accent: linear-gradient(90deg, #6c63ff 0%, #00d4aa 100%);
  --grad-blue:   linear-gradient(135deg, #1e3a8a 0%, #2a4ed1 60%, #3b82f6 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(108,99,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(0,212,170,0.07), transparent 65%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(26, 29, 39, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  height: 66px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-emoji {
  font-size: 1.25rem;
  display: inline-block;
  transform-origin: 50% 55%;
  animation: spin-slow 9s linear infinite;
}
@keyframes spin-slow {
  0%   { transform: rotate(0deg) translateY(0); }
  45%  { transform: rotate(-12deg) translateY(-1px); }
  55%  { transform: rotate(12deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
.brand-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(0,212,170,0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,170,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0,212,170,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
}

/* ===== Hero ===== */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 28px 2.25rem;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.2rem, 5.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 1.05rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.02;
}
.hero-sub {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.chip-strong {
  border-color: rgba(108,99,255,0.35);
  background: linear-gradient(180deg, rgba(108,99,255,0.16), rgba(108,99,255,0.05));
  color: #d6d3ff;
  font-weight: 600;
}
.chip-dot {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Grid ===== */
.grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 28px 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 0% 0%, rgba(108,99,255,0.06), transparent 60%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* Card head with real logo */
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
}
.icon-tile.emoji {
  background: linear-gradient(160deg, var(--surface-2), #2a2f4d);
  font-size: 1.45rem;
  padding: 0;
}
.icon-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.head-text {
  flex: 1;
  min-width: 0;
}
.lot-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 2px;
}
.lot-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.55;
}

/* Section block */
.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section + .section,
.section + .actions,
.card-head + .section {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-label .ico {
  font-size: 0.85rem;
}
.section-date {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.section-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.28);
}

/* Three predictions stacked */
.predictions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pred-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pred-row .pred-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Number ball — traditional */
.numbers-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.num-rect {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, rgba(108,99,255,0.12), rgba(108,99,255,0.04));
  color: #ece9ff;
  min-width: 140px;
  text-align: center;
}
.num-rect.small {
  font-size: 1.25rem;
  padding: 6px 14px;
  min-width: 96px;
}
.num-rect.dashed {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(108,99,255,0.06), rgba(108,99,255,0.02));
  color: #c7c2ff;
}
.num-rect.blue {
  border-color: #3b82f6;
  background: var(--grad-blue);
  color: #f1f6ff;
}

.serie-chip {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  position: relative;
  min-width: 64px;
  text-align: center;
}
.serie-chip::before {
  content: "SERIE";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--surface);
  padding: 0 6px;
  color: var(--text-muted);
}
.serie-chip.dashed {
  border-style: dashed;
}
.serie-chip.small {
  font-size: 0.78rem;
  padding: 4px 9px;
  min-width: 48px;
}

/* Baloto / MiLoto balls */
.balls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: radial-gradient(circle at 32% 28%, #8b85ff 0%, #6c63ff 55%, #4a40d6 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25);
}
.ball.small {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}
.ball.balota {
  background: radial-gradient(circle at 32% 28%, #ffcc7a 0%, #ff9800 55%, #c96b00 100%);
}
.ball.dashed {
  background: transparent;
  border: 1.5px dashed var(--accent);
  color: #c7c2ff;
  box-shadow: none;
}
.ball.dashed.balota {
  border-color: var(--warning);
  color: #ffd09a;
}
.balls-plus {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 2px;
  font-size: 1rem;
}

/* ColorLOTO — colored balls */
.ball.colorball {
  font-weight: 800;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
}
.cb-azul     { background: radial-gradient(circle at 32% 28%, #6094ff 0%, #1e3a8a 70%, #112564 100%); color: #fff; }
.cb-rojo     { background: radial-gradient(circle at 32% 28%, #ff6f6f 0%, #dc2626 65%, #921313 100%); color: #fff; }
.cb-blanco   { background: radial-gradient(circle at 32% 28%, #fff 0%, #e5e7eb 65%, #9ca3af 100%); color: #111; border-color: #999; }
.cb-negro    { background: radial-gradient(circle at 32% 28%, #555 0%, #111 65%, #000 100%); color: #fff; }
.cb-amarillo { background: radial-gradient(circle at 32% 28%, #fff19a 0%, #facc15 65%, #a18000 100%); color: #1a1a1a; }
.cb-verde    { background: radial-gradient(circle at 32% 28%, #6cf093 0%, #16a34a 65%, #0a5d2a 100%); color: #fff; }
.cb-naranja  { background: radial-gradient(circle at 32% 28%, #ffba6b 0%, #f97316 65%, #a14609 100%); color: #fff; }
.cb-morado   { background: radial-gradient(circle at 32% 28%, #b994ff 0%, #7c3aed 65%, #4a1f99 100%); color: #fff; }
.cb-rosa     { background: radial-gradient(circle at 32% 28%, #ffa3d2 0%, #ec4899 65%, #99275f 100%); color: #fff; }

/* Super Astro layout */
.astro-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sign-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(108,99,255,0.16);
  border: 1px solid rgba(108,99,255,0.35);
  color: #d6d3ff;
  font-size: 0.85rem;
  font-weight: 600;
}
.sign-pill .glyph {
  font-size: 0.95rem;
}
.sign-pill.dashed {
  border-style: dashed;
  background: rgba(108,99,255,0.08);
}
.sign-pill.small { font-size: 0.74rem; padding: 5px 10px; }
.cycle-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Actions */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: #292e47;
  border-color: #3b406a;
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.35);
  color: #d6d3ff;
}
.btn-primary:hover {
  background: rgba(108,99,255,0.22);
  border-color: var(--accent);
  color: #fff;
}
.btn-success {
  background: rgba(0,212,170,0.08);
  border-color: rgba(0,212,170,0.32);
  color: #9af2d8;
}
.btn-success:hover {
  background: rgba(0,212,170,0.18);
  border-color: var(--accent-2);
  color: #d8fff2;
}
.btn .count {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.btn-success:hover .count { color: #b6f7e3; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(26,29,39,0) 0%, rgba(26,29,39,0.6) 100%);
  margin-top: 2rem;
  padding: 2rem 28px 2.25rem;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.foot-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.foot-value {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.foot-value.muted { color: var(--text-muted); }
.foot-base {
  max-width: 1280px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.muted { color: var(--text-muted); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.18s ease-out;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: min(700px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,99,255,0.05);
  animation: pop-in 0.2s cubic-bezier(.18,.84,.4,1.05);
  overflow: hidden;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.modal-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.modal-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(108,99,255,0.12);
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat {
  background: var(--surface);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
}

.modal-table-wrap {
  overflow: auto;
  flex: 1;
}
.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.modal-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-muted);
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.modal-table th.num-col,
.modal-table td.num-col {
  text-align: right;
  font-family: var(--mono);
}
.modal-table tbody td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.modal-table tbody tr:hover td {
  background: rgba(108,99,255,0.05);
}
.modal-table tbody td.date {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.modal-table tbody td.draw {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== SEO content section (home) + per-lottery pages ===== */
.seo-content,
.lot-page {
  max-width: 1100px;
  margin: 1rem auto 2rem;
  padding: 1rem 28px;
}
.seo-content h2,
.lot-page h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}
.seo-content h3,
.lot-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}
.seo-content p,
.lot-page p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}
.seo-content a,
.lot-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-content a:hover,
.lot-page a:hover { color: var(--accent-2); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  font-size: 0.95rem;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-weight: 400;
  transform: translateY(-1px);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Per-lottery page specifics */
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

.lot-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
}
.lot-logo {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  flex-shrink: 0;
  object-fit: contain;
}
.lot-sub { font-size: 0.92rem; }

.lot-section {
  padding: 1rem 0 0.5rem;
}
.lot-meta { font-size: 0.88rem; color: var(--text-muted); }

.lot-result {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.lot-result-num {
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(108,99,255,0.12), rgba(108,99,255,0.04));
  color: #ece9ff;
}
.lot-result-num.lot-result-blue {
  border-color: #3b82f6;
  background: var(--grad-blue);
  color: #f1f6ff;
}
.lot-result-num.lot-result-sm { font-size: 1.3rem; padding: 6px 14px; }
.lot-result-serie {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.lot-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  background: radial-gradient(circle at 32% 28%, #8b85ff, #6c63ff 55%, #4a40d6);
  color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25);
  margin: 0 2px;
}
.lot-ball.lot-ball-red {
  background: radial-gradient(circle at 32% 28%, #ffcc7a, #ff9800 55%, #c96b00);
}
.lot-ball.lot-ball-sm { width: 32px; height: 32px; font-size: 0.78rem; }
.lot-ball.cb-azul     { background: radial-gradient(circle at 32% 28%, #6094ff, #1e3a8a 70%, #112564); color:#fff; }
.lot-ball.cb-rojo     { background: radial-gradient(circle at 32% 28%, #ff6f6f, #dc2626 65%, #921313); color:#fff; }
.lot-ball.cb-blanco   { background: radial-gradient(circle at 32% 28%, #fff, #e5e7eb 65%, #9ca3af); color:#111; border:1px solid #999; }
.lot-ball.cb-negro    { background: radial-gradient(circle at 32% 28%, #555, #111 65%, #000); color:#fff; }
.lot-ball.cb-amarillo { background: radial-gradient(circle at 32% 28%, #fff19a, #facc15 65%, #a18000); color:#1a1a1a; }
.lot-ball.cb-verde    { background: radial-gradient(circle at 32% 28%, #6cf093, #16a34a 65%, #0a5d2a); color:#fff; }
.lot-sign {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(108,99,255,0.16);
  border: 1px solid rgba(108,99,255,0.35);
  color: #d6d3ff;
  font-weight: 600;
  font-size: 0.9rem;
}
.lot-cycle {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.plus { color: var(--text-muted); font-weight: 700; padding: 0 4px; }

.pred-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}
.pred-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.pred-table td.pred-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 160px;
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.hist-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.hist-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.hist-table tr:hover td { background: rgba(108,99,255,0.05); }

.disclaimer {
  font-size: 0.78rem !important;
  background: rgba(255,152,0,0.08);
  border: 1px solid rgba(255,152,0,0.25);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: #ffb966 !important;
  margin-top: 1rem !important;
}

.other-lotteries {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}
.other-lotteries li { padding: 0.4rem 0; }

@media (max-width: 699px) {
  .seo-content, .lot-page { padding: 1rem 14px; }
  .lot-hero { padding: 1rem 0 0.75rem; }
  .lot-logo { width: 60px; height: 60px; }
  .lot-result-num { font-size: 1.7rem; padding: 9px 16px; }
  .pred-table td { padding: 0.55rem 0.4rem; font-size: 0.85rem; }
  .pred-table td.pred-label { width: auto; display: block; padding-bottom: 0; }
  .hist-table { font-size: 0.8rem; }
  .hist-table th, .hist-table td { padding: 8px 10px; }
}

/* ===== AdSense slots ===== */
.ad-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 28px;
  text-align: center;
  min-height: 90px;
}
.ad-leaderboard {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}
.ad-rectangle {
  margin-top: 2rem;
  margin-bottom: 1rem;
  min-height: 250px;
}
.ad-sticky-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding: 6px 36px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.ad-sticky-close {
  position: absolute;
  top: 4px; right: 8px;
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.ad-sticky-close:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 699px) {
  .ad-container { padding: 0.5rem 18px; }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(108,99,255,0.08);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  animation: pop-in 0.25s cubic-bezier(.18,.84,.4,1.05);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.15rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-width: 220px;
}
.cookie-text strong { color: var(--text); margin-right: 4px; }
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-reject {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.cookie-reject:hover {
  color: var(--text);
  border-color: var(--accent);
}
.cookie-accept {
  min-width: 110px;
}
@media (max-width: 560px) {
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast[hidden] { display: none; }
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
}

/* ===== Responsive ===== */

/* Tablet / small desktop (≤1023px) */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .header-inner { padding: 0 20px; }
  .hero { padding: 2.5rem 20px 1.75rem; }
  .ad-container { padding: 0.5rem 20px; }
  .site-footer { padding: 1.75rem 20px 2rem; }
}

/* Mobile (≤699px) */
@media (max-width: 699px) {
  .site-header { height: 58px; }
  .header-inner { height: 58px; padding: 0 14px; }
  .brand { font-size: 0.92rem; gap: 8px; }
  .brand-emoji { font-size: 1.1rem; }
  .brand-meta { display: none; }

  .hero { padding: 1.75rem 14px 1.25rem; }
  .hero-title { font-size: clamp(1.55rem, 7vw, 2.2rem); margin-bottom: 0.8rem; }
  .hero-sub { font-size: 0.78rem; gap: 6px; flex-direction: column; }
  .chip { padding: 5px 10px; font-size: 0.74rem; }
  .chip-dot { display: none; }

  .grid {
    padding: 0.5rem 14px 2.5rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card { padding: 16px; gap: 14px; }
  .card-head .icon-tile, .card-head .icon { width: 48px; height: 48px; }
  .lot-name { font-size: 0.95rem; }
  .lot-meta { font-size: 0.72rem; }

  .num-rect { font-size: 1.55rem; min-width: 120px; padding: 9px 14px; }
  .num-rect.small { font-size: 1.1rem; min-width: 90px; padding: 5px 11px; }
  .ball { width: 34px; height: 34px; font-size: 0.85rem; }
  .ball.small { width: 28px; height: 28px; font-size: 0.72rem; }

  .actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn { padding: 9px 8px; font-size: 0.78rem; }
  .btn .count { font-size: 0.72rem; }

  .ad-container { padding: 0.5rem 14px; }
  .ad-leaderboard { margin-top: -0.5rem; margin-bottom: 1rem; }

  .site-footer { padding: 1.5rem 14px 1.75rem; }
  .footer-grid { gap: 1.25rem; padding-bottom: 1.25rem; }
  .foot-base { flex-direction: column; gap: 6px; align-items: flex-start; font-size: 0.72rem; }

  .modal-backdrop { padding: 8px; }
  .modal { border-radius: 14px; max-height: 92vh; }
  .modal-head { padding: 16px 16px 12px; }
  .modal-title { font-size: 1rem; }
  .modal-logo { width: 32px; height: 32px; }
  .modal-stats { grid-template-columns: 1fr 1fr; }
  .modal-table thead th { font-size: 0.6rem; padding: 8px 12px; }
  .modal-table tbody td { padding: 9px 12px; font-size: 0.8rem; }

  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cookie-banner-inner { padding: 0.8rem 0.95rem; gap: 0.75rem; }
  .cookie-text { font-size: 0.78rem; min-width: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }

  /* Sticky ad takes less space on phones */
  .ad-sticky-bottom { min-height: 60px; padding: 4px 32px 4px 8px; }
  body { padding-bottom: 80px; }
}

/* Small mobile (≤420px) */
@media (max-width: 420px) {
  .header-inner { padding: 0 12px; }
  .brand-text { font-size: 0.85rem; }
  .hero-title { font-size: 1.4rem; }
  .num-rect { font-size: 1.35rem; min-width: 100px; padding: 8px 12px; }
  .ball { width: 30px; height: 30px; font-size: 0.78rem; }
  .balls-row { gap: 5px; }
  .actions { grid-template-columns: 1fr; }
  .btn { font-size: 0.85rem; padding: 10px 12px; }
  .section + .section,
  .section + .actions,
  .card-head + .section { padding-top: 12px; }
}

/* Landscape phones — keep grid 1-col but shorter */
@media (max-width: 920px) and (orientation: landscape) {
  .hero { padding: 1.25rem 20px 0.75rem; }
  .hero-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  .modal { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
