/* Frontend dinamis RosarioLotto */
* { box-sizing: border-box; }
body { min-width: 0; }
.wrapper { width: 100%; max-width: 1044px; }

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 190px;
}

#header #logo {
    float: none;
    width: 310px;
    height: auto;
    margin: 20px 0;
    flex: 0 0 auto;
}

#header #logo img { display: block; max-height: 150px; }
#menu { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
#menu a { float: none; margin: 0; }
#menu a.active { color: #fff; background-color: #01293d; border-color: #01293d; }
.frontend-menu-button { display: none; border: 1px solid rgba(255,255,255,.5); border-radius: 7px; padding: 7px 11px; color: #fff; background: rgba(255,255,255,.12); font-weight: bold; }

.banner-grid { margin-bottom: 12px; }
.banner-grid > div { padding-left: 5px; padding-right: 5px; }
.banner-grid img { width: 100%; display: block; border-radius: 3px; }
.result-grid { display: flex; flex-wrap: wrap; }
.result-column { display: flex; }
.result-card { width: 100%; overflow: hidden; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.07); }
.period-label { display: inline-block; float: right; min-width: 22px; padding: 0 7px; color: #fff; background-color: #045f8e; text-align: center; border-radius: 3px; }
.result-line { display: flex; align-items: flex-start; min-height: 34px; padding: 2px 5px; }
.result-name { flex: 0 0 25%; line-height: 28px; }
.result-balls { flex: 1 1 auto; white-space: nowrap; }
.bola { box-sizing: border-box; vertical-align: top; }
.more-result-link { padding: 8px 5px 12px; }
.more-result-link a { display: inline-block; padding: 4px 10px; border: 1px solid #045f8e; border-radius: 4px; }
.more-result-link a:hover { color: #fff; background: #045f8e; }

.page-heading { margin: 0 0 15px; padding: 10px 15px; background: #045f8e; }
.page-heading h1 { margin: 0; color: #fff; font-size: 22px; text-align: center; }
.frontend-empty { padding: 35px 20px; border: 1px solid #d0d0d0; background: #fff; text-align: center; }
.frontend-empty h1 { margin-bottom: 10px; font-size: 26px; }
.frontend-empty p { text-align: center; }
.frontend-back { display: inline-block; padding: 8px 14px; border-radius: 5px; color: #fff; background: #045f8e; font-weight: bold; }
.frontend-back:hover { color: #fff; background: #01293d; }

.detail-card { overflow: hidden; background: #fff; }
.detail-main-prizes { padding: 12px 0; }
.detail-prize-row { display: flex; align-items: center; padding: 6px 10px; border-bottom: 1px dashed #d7e1e7; }
.detail-prize-name, .detail-prize-balls { width: 50%; text-align: center; }
.detail-prize-name { font-weight: bold; color: #045f8e; }
.detail-secondary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 14px 20px 22px; }
.secondary-column { text-align: center; border: 1px solid #d7e1e7; border-radius: 5px; padding: 12px; }
.secondary-column h3 { margin-bottom: 10px; color: #fff; background: #045f8e; padding: 7px; font-size: 15px; font-weight: bold; }
.secondary-number { min-height: 34px; margin-bottom: 4px; white-space: nowrap; }
.detail-actions { padding: 5px 10px 18px; }
.no-result { display: inline-block; line-height: 28px; }

@media (max-width: 767px) {
    .wrapper { padding-left: 8px; padding-right: 8px; }
    #middle { margin: 8px 0; padding: 10px; }
    .site-header-row { min-height: 0; flex-direction: column; gap: 8px; padding: 10px 0 12px; }
    #header #logo { width: min(310px,90%); margin: 0 auto; }
    .frontend-menu-button { display: block; }
    #menu { display: none; width: 100%; justify-content: center; }
    #menu.is-open { display: flex; }
    #menu a { padding: 6px 9px; font-size: 12px; }
    .banner-grid > div { margin-bottom: 8px; }
    .result-line { padding-left: 4px; padding-right: 4px; }
    .result-name { flex-basis: 24%; font-size: 12px; }
    .bola { width: 25px; height: 25px; margin-right: 1px; padding-top: 3px; font-size: 14px; }
    .detail-secondary-grid { gap: 8px; padding-left: 4px; padding-right: 4px; }
    .detail-prize-row { padding-left: 4px; padding-right: 4px; }
    .secondary-column { padding: 6px 3px; }
    .secondary-column h3 { font-size: 13px; }
}

@media (max-width: 380px) {
    .bola { width: 22px; height: 22px; padding-top: 2px; font-size: 13px; }
    .result-name { flex-basis: 26%; }
}


/* Scheduled Reveal */
.live-reveal-card { position: relative; border-color: #045f8e; }
.live-reveal-status { display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 8px 5px;padding:7px 8px;border-radius:5px;color:#fff;background:linear-gradient(135deg,#01293d,#045f8e);font-size:11px;letter-spacing:.4px; }
.live-reveal-countdown { min-width:70px;padding:3px 6px;border-radius:4px;background:rgba(255,255,255,.15);font-variant-numeric:tabular-nums;text-align:center; }
.live-spin-digit { animation: revealPulse .55s ease-in-out infinite alternate; will-change: transform,filter; }
.live-spin-digit.is-stopped { animation: revealStop .36s ease-out both; background:#064f76; }
.more-results-locked { display:inline-block;padding:5px 9px;border:1px dashed #7b9daf;border-radius:4px;color:#5d7785;font-size:11px;font-weight:bold; }
.detail-live-status { flex-wrap:wrap;margin:12px 18px; }
.detail-live-status small { width:100%;text-align:center;opacity:.86;letter-spacing:0; }
.secondary-locked { margin:12px 20px 22px;padding:25px 14px;border:1px dashed #8aa8b8;border-radius:6px;background:#f4f9fb;color:#365464;text-align:center; }
.status-pill.scheduled { color:#854d0e;background:#fef3c7;border-color:#fde68a; }
.reveal-complete .live-reveal-status { background:linear-gradient(135deg,#166534,#15803d); }
@keyframes revealPulse { from{transform:translateY(-1px) scale(.97);filter:brightness(.92)} to{transform:translateY(1px) scale(1.04);filter:brightness(1.15)} }
@keyframes revealStop { 0%{transform:scale(1.22)} 65%{transform:scale(.92)} 100%{transform:scale(1)} }
@media (prefers-reduced-motion: reduce) { .live-spin-digit { animation:none; } }
