:root {
  --bg: #12160f;
  --card: #1c2418;
  --card-2: #24301f;
  --line: rgba(243, 234, 215, 0.12);
  --cream: #f4ecdc;
  --muted: #c9c1ae;
  --gold: #e2b657;
  --ink: #1a140c;
  --baloto: #e23b42;
  --revancha: #ef7d32;
  --miloto: #e25c98;
  --colorloto: #3cb8a9;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(226, 182, 87, 0.18), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(226, 59, 66, 0.14), transparent 50%),
    var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .num { font-family: Fraunces, Georgia, serif; font-weight: 560; }
h1 { margin: 0; font-size: 3rem; letter-spacing: -0.04em; }
h2 { margin: 0 0 0.4rem; font-size: 1.7rem; }
h3 { margin: 0 0 0.7rem; font-size: 1.15rem; }
p { line-height: 1.5; }

.top, main, footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding: 28px 0 8px; }
.eyebrow { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold); }
.banner, .note, .disclaimer { background: rgba(226, 182, 87, 0.1); border: 1px solid rgba(226, 182, 87, 0.28); border-radius: 16px; padding: 12px 14px; color: var(--cream); }
.banner { width: min(1120px, calc(100% - 32px)); margin: 12px auto 0; }
.note { margin: 12px 0; }
footer { color: var(--muted); font-size: 0.92rem; padding: 10px 0 40px; }

.solid, .ghost, .chip {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
}
.solid { background: var(--gold); color: var(--ink); font-weight: 640; }
.solid:disabled, .ghost:disabled, .chip:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost, .chip { background: transparent; border-color: var(--line); }
.chip.active { background: var(--cream); color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; align-items: start; }
.proposal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.proposal.checked { background: rgba(226, 182, 87, 0.06); border-radius: 16px; padding: 10px 12px; }
.proposal h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.proposal .figure { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.panel { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%), var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); overflow-x: auto; }
td, th { white-space: nowrap; }
.card { text-align: left; width: 100%; cursor: pointer; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%), var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.card header, .split { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kicker { margin: 0; color: var(--muted); font-size: 0.85rem; }
.price { color: var(--gold); }
.game-baloto { box-shadow: inset 4px 0 0 var(--baloto); }
.game-revancha { box-shadow: inset 4px 0 0 var(--revancha); }
.game-miloto { box-shadow: inset 4px 0 0 var(--miloto); }
.game-colorloto { box-shadow: inset 4px 0 0 var(--colorloto); }
.countdown { font-variant-numeric: tabular-nums; color: var(--gold); }
.balls { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ball {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font-family: Fraunces, Georgia, serif; font-size: 1rem;
}
.ball.super { background: var(--baloto); color: white; }
.ball.hit { outline: 3px solid white; }
.ball.c-amarillo { background: #f2d23a; }
.ball.c-azul { background: #2f6fed; color: white; }
.ball.c-rojo { background: #d7263d; color: white; }
.ball.c-verde { background: #2f9e62; color: white; }
.ball.c-blanco { background: #f7f4ea; }
.ball.c-negro { background: #1b1b1b; color: white; }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.heat button, .heat i {
  aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-family: Fraunces, Georgia, serif; font-size: 0.95rem;
}
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; color: var(--muted); font-size: 0.92rem; }
.bar span { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
tr.mark { background: rgba(226, 182, 87, 0.12); }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.figure { margin: 0.15rem 0 0.4rem; font-family: Fraunces, Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; color: var(--gold); }
.grid > * { min-width: 0; }
.rank { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank span { color: var(--muted); text-align: left; white-space: normal; }
.archive { max-height: 440px; overflow: auto; display: grid; gap: 12px; padding-right: 4px; }
.stack { display: grid; gap: 14px; margin-top: 14px; }
.back { margin: 8px 0 0; }
.login { max-width: 420px; margin: 28px auto 0; }
.login form { display: grid; gap: 12px; margin-top: 14px; }
.login input {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

@media (max-width: 980px) {
  .cards, .grid { grid-template-columns: 1fr; }
  .top { align-items: start; flex-direction: column; }
  h1 { font-size: 2.4rem; }
}
