:root {
    --bg: #f8f6ec;
    --bg-soft: #fffdf6;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #3d3423;
    --muted: #766a52;
    --line: rgba(127, 109, 69, 0.15);
    --gold: #d5a93d;
    --gold-strong: #bf8d22;
    --green: #6fb66d;
    --green-strong: #4d9650;
    --shadow: 0 18px 50px rgba(124, 103, 53, 0.14);
    --radius: 28px;
    --text-panel: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(255, 250, 238, 0.72);
}

body.theme-dark {
    --bg: #101712;
    --bg-soft: #19221b;
    --surface: rgba(23, 34, 27, 0.86);
    --surface-strong: #162119;
    --text: #eef3e7;
    --muted: #bed1bf;
    --line: rgba(194, 215, 181, 0.12);
    --gold: #dcb85d;
    --gold-strong: #f2cf79;
    --green: #63b36d;
    --green-strong: #8fdb9a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --text-panel: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(16, 23, 18, 0.78);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(111, 182, 109, 0.22), transparent 25%),
        radial-gradient(circle at top right, rgba(213, 169, 61, 0.18), transparent 28%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    backdrop-filter: blur(16px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav a,
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-nav a {
    padding: 12px 20px;
    border: 1px solid rgba(191, 141, 34, 0.12);
    background: linear-gradient(120deg, rgba(255,255,255,0.88), rgba(248, 237, 196, 0.88), rgba(232, 250, 222, 0.88));
    background-size: 220% 220%;
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(174, 147, 83, 0.08);
}

.site-nav a:hover,
.btn:hover {
    transform: translateY(-2px);
    animation: gradientFlow 2.4s linear infinite;
    box-shadow: 0 16px 30px rgba(174, 147, 83, 0.16);
}

.site-nav a.is-active {
    color: #fffdf8;
    background: linear-gradient(135deg, var(--gold), var(--green));
    border-color: transparent;
    box-shadow: 0 18px 35px rgba(116, 153, 74, 0.24);
}

body.theme-dark .site-nav a {
    color: #152015;
    background: linear-gradient(120deg, rgba(245, 231, 190, 0.98), rgba(226, 247, 213, 0.98), rgba(255,255,255,0.95));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

body.theme-dark .site-nav a.is-active {
    color: #f6fff2;
    background: linear-gradient(135deg, #1d2b1f, #2c4a31);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(191, 141, 34, 0.12);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(248, 237, 196, 0.88), rgba(232, 250, 222, 0.88));
    background-size: 220% 220%;
    box-shadow: 0 10px 20px rgba(174, 147, 83, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    animation: gradientFlow 2.4s linear infinite;
    box-shadow: 0 16px 30px rgba(174, 147, 83, 0.16);
}

.theme-toggle.is-dark-mode {
    color: #fffdf8;
    background: linear-gradient(135deg, var(--gold), var(--green));
    border-color: transparent;
    box-shadow: 0 18px 35px rgba(116, 153, 74, 0.24);
}

body.theme-dark .theme-toggle {
    color: #152015;
    background: linear-gradient(120deg, rgba(245, 231, 190, 0.98), rgba(226, 247, 213, 0.98), rgba(255,255,255,0.95));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

body.theme-dark .theme-toggle.is-dark-mode {
    color: #f6fff2;
    background: linear-gradient(135deg, #1d2b1f, #2c4a31);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
}

.theme-toggle__icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.theme-toggle__label {
    font-weight: 800;
    color: var(--text);
}

body:not(.theme-dark) .theme-toggle__icon::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: #243021;
    box-shadow: 9px -2px 0 0 #f5f0dc;
}

body.theme-dark .theme-toggle__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ffd66b;
    box-shadow:
        0 0 0 5px rgba(255, 214, 107, 0.16),
        0 0 18px rgba(255, 214, 107, 0.35);
}

body.theme-dark .theme-toggle__icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 214, 107, 0.5);
}

.hero {
    padding: 56px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.hero-grid-single {
    grid-template-columns: 1fr;
    max-width: 980px;
    margin: 0 auto;
}

.hero-copy,
.card,
.media-card {
    border: 2px solid rgba(191, 141, 34, 0.12);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 42px;
}

.hero-copy--centered {
    text-align: center;
}

.hero-carousel {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    margin: auto;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slideshow.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-carousel__line {
    margin: 0;
}

.hero-carousel__subline {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1rem, 1.9vw, 1.25rem);
    line-height: 1.8;
    color: var(--muted);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.05;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
}

.login-api-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    text-align: left;
}

.login-api-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.login-api-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(191, 141, 34, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
}

.login-response {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(191, 141, 34, 0.12);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.auth-panel {
    display: grid;
    gap: 18px;
    margin: 0 auto;
}

.auth-panel--login {
    max-width: 540px;
}

.auth-panel--wide {
    max-width: 580px;
}

.auth-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-links--single {
    justify-content: center;
}

.auth-links a {
    color: var(--green-strong);
    font-weight: 700;
}

.auth-message {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-step {
    display: none;
}

.auth-step.is-active {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}

.btn-primary {
    color: #fffef8;
    background: linear-gradient(135deg, var(--gold), var(--green));
    background-size: 240% 240%;
    box-shadow: 0 18px 35px rgba(116, 153, 74, 0.24);
}

.btn-secondary {
    color: var(--text);
    background: linear-gradient(135deg, #fffaf0, #f7edc8, #eef8e6);
    background-size: 220% 220%;
    border: 1px solid rgba(191, 141, 34, 0.14);
}

.card-highlight {
    padding: 32px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.82), rgba(242, 249, 233, 0.95)),
        url("../imagens/img12_prosperidade.jpg") center/cover;
    background-blend-mode: screen;
}

.mini-tag {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(111, 182, 109, 0.14);
    color: var(--green-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.card-highlight h2 {
    margin: 0 0 12px;
    font-size: 1.9rem;
}

.card-highlight p,
.benefits li,
.text-card p,
.lottery-card__text,
.prize-item,
.info-box strong {
    line-height: 1.75;
}

.benefits {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.content-block {
    padding: 18px 0 32px;
}

.story-stack {
    display: grid;
    gap: 24px;
}

.story-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
    overflow: hidden;
    border: 2px solid rgba(191, 141, 34, 0.12);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(28px);
    animation: softReveal 0.9s ease forwards;
}

.content-block:nth-of-type(2) .story-card {
    animation-delay: 0.12s;
}

.content-block:nth-of-type(3) .story-card {
    animation-delay: 0.24s;
}

.content-block:nth-of-type(4) .story-card {
    animation-delay: 0.36s;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(111, 182, 109, 0.34);
    box-shadow: 0 28px 52px rgba(111, 182, 109, 0.16);
}

.story-card--reverse {
    grid-template-columns: 1.05fr 0.95fr;
}

.story-card--reverse .story-card__media {
    order: 2;
}

.story-card--reverse .story-card__content {
    order: 1;
}

.story-card__media img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.story-card__content {
    display: flex;
    align-items: center;
    padding: 18px;
}

.story-card__text {
    width: 100%;
    padding: 26px;
    border-radius: 28px;
    background: var(--text-panel);
    backdrop-filter: blur(10px);
}

.story-card__text h2 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

.story-card__text p {
    margin: 0 0 14px;
    color: var(--text);
}

.split-grid,
.feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.split-grid.reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.media-card {
    overflow: hidden;
}

.media-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.text-card {
    padding: 34px;
}

.text-card h2 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

.text-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.stats-card {
    padding: 28px;
}

.stat-pill {
    padding: 18px 18px 16px;
    margin-top: 14px;
    border-radius: 22px;
    border: 1px solid rgba(111, 182, 109, 0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(239, 247, 230, 0.94));
}

.stat-pill strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.stat-pill span,
.site-footer p,
.info-label {
    color: var(--muted);
}

.site-footer {
    padding: 24px 0 42px;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

body.theme-dark .footer-shell {
    background: linear-gradient(135deg, rgba(234, 224, 188, 0.95), rgba(222, 244, 213, 0.95));
    border-color: rgba(220, 207, 157, 0.4);
}

body.theme-dark .footer-shell p {
    color: #162119;
}

.results-main {
    padding: 108px 0 42px;
}

.dashboard-main {
    padding: 108px 0 48px;
}

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    backdrop-filter: blur(16px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
}

.dashboard-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-exit {
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--green));
    color: #fffef8;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(116, 153, 74, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-exit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(174, 147, 83, 0.16);
}

.dashboard-layout {
    width: min(1220px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 18px;
}

.dashboard-lotofacil,
.dashboard-menu a {
    display: block;
    padding: 18px 20px;
    border-radius: 24px;
    border: 2px solid rgba(191, 141, 34, 0.12);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dashboard-lotofacil {
    background: linear-gradient(135deg, rgba(213, 169, 61, 0.18), rgba(111, 182, 109, 0.22));
    color: var(--green-strong);
    text-align: center;
}

.dashboard-menu {
    display: grid;
    gap: 12px;
}

.dashboard-menu a:hover,
.dashboard-lotofacil:hover {
    transform: translateY(-3px);
    border-color: rgba(111, 182, 109, 0.34);
    box-shadow: 0 24px 40px rgba(111, 182, 109, 0.14);
}

.dashboard-content {
    display: grid;
    gap: 24px;
}

.dashboard-welcome,
.dashboard-feature,
.dashboard-card {
    border: 2px solid rgba(191, 141, 34, 0.12);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(24px);
    animation: softReveal 0.7s ease forwards;
}

.dashboard-welcome {
    padding: 36px;
    text-align: left;
}

.dashboard-welcome h1,
.dashboard-feature h2,
.dashboard-card h3 {
    margin-top: 0;
}

.dashboard-validity,
.dashboard-feature p,
.dashboard-card p {
    color: var(--muted);
    line-height: 1.8;
}

.dashboard-feature {
    padding: 34px;
    animation-delay: 0.12s;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dashboard-card {
    padding: 28px;
    display: grid;
    gap: 16px;
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.18s;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.24s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 0.3s;
}

.results-grid-wrap {
    width: min(1220px, calc(100% - 24px));
    margin: 0 auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lottery-card {
    --lottery-card-bg: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249, 246, 234, 0.96));
    --lottery-card-border: rgba(191, 141, 34, 0.12);
    --lottery-panel-bg: rgba(255,255,255,0.68);
    --lottery-panel-border: var(--line);
    --lottery-text: var(--text);
    --lottery-muted: var(--muted);
    margin: 10px;
    padding: 26px;
    border-radius: 30px;
    border: 2px solid var(--lottery-card-border);
    background: var(--lottery-card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: softReveal 0.7s ease forwards;
}

body.theme-dark .status-card {
    background: linear-gradient(180deg, rgba(24, 35, 29, 0.96), rgba(14, 22, 18, 0.98));
    border-color: rgba(120, 174, 118, 0.24);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

body.theme-dark .lottery-card__title,
body.theme-dark .lottery-card__text,
body.theme-dark .info-box strong,
body.theme-dark .status-card,
body.theme-dark .js-data,
body.theme-dark .js-acumulou {
    color: #f4f8ef;
}

body.theme-dark .lottery-card__contest {
    background: linear-gradient(135deg, rgba(220, 184, 93, 0.2), rgba(99, 179, 109, 0.24));
    color: #fff3bc;
}

body.theme-dark .info-box,
body.theme-dark .lottery-card__section {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(210, 226, 202, 0.12);
}

body.theme-dark .prize-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(219, 206, 154, 0.14);
    color: #eef5e9;
}

.lottery-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(111, 182, 109, 0.42);
    box-shadow: 0 28px 50px rgba(111, 182, 109, 0.16);
}

.lottery-card__top,
.lottery-card__info-grid {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.lottery-card__top {
    align-items: start;
}

.lottery-card__title {
    margin: 0;
    font-size: 1.8rem;
    color: var(--lottery-text);
}

.lottery-card__contest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(213, 169, 61, 0.18), rgba(111, 182, 109, 0.2));
    color: var(--gold-strong);
    font-weight: 800;
}

.lottery-card__info-grid {
    margin-top: 18px;
}

.info-box,
.lottery-card__section {
    flex: 1;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    text-align: center;
}

.lottery-card__section {
    margin-top: 16px;
}

.info-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d3423;
}

.numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.number-ball {
    --ball-color: linear-gradient(135deg, var(--gold), var(--green));
    --ball-text: #fffef9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ball-color);
    color: var(--ball-text);
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(111, 182, 109, 0.2);
}

.prize-list {
    display: grid;
    gap: 10px;
}

.prize-item {
    padding: 12px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #3d3423;
    text-align: center;
}

.status-card {
    margin: 10px;
    padding: 28px;
    border-radius: 30px;
    border: 10px solid rgba(191, 141, 34, 0.12);
    background: rgba(255,255,255,0.82);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(24px);
    animation: softReveal 0.7s ease forwards;
}

.premios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.premio-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 2px solid rgba(191, 141, 34, 0.12);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: softReveal 0.7s ease forwards;
}

.premio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(111, 182, 109, 0.34);
    box-shadow: 0 28px 52px rgba(111, 182, 109, 0.16);
}

.premio-card__media {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    aspect-ratio: 4 / 5;
}

.premio-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.premio-card:hover .premio-card__media img {
    transform: scale(1.03);
}

.premio-card__caption {
    display: grid;
    gap: 4px;
    text-align: center;
}

.premio-card__lottery,
.premio-card__title {
    margin: 0;
}

.premio-card__lottery {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-strong);
}

.premio-card__title {
    color: var(--muted);
    line-height: 1.5;
    word-break: break-word;
}

.premio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.premio-lightbox[hidden] {
    display: none;
}

.premio-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
}

.premio-lightbox__card {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 20px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 18, 18, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
    overflow: auto;
    cursor: pointer;
    animation: softReveal 0.24s ease forwards;
}

.premios-status {
    min-height: 72px;
}

.premios-status::after {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid rgba(191, 141, 34, 0.18);
    border-top-color: var(--gold-strong);
    animation: premioSpin 0.9s linear infinite;
}

.premio-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.premio-lightbox__image {
    width: 100%;
    height: auto;
    border-radius: 22px;
    background: #ffffff;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes softReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes premioSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 940px) {
    .hero-grid,
    .split-grid,
    .split-grid.reverse,
    .feature-grid,
    .dashboard-grid,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .lottery-card__top,
    .lottery-card__info-grid,
    .footer-shell,
    .nav-shell,
    .nav-actions,
    .dashboard-header__inner,
    .dashboard-header__actions {
        flex-direction: column;
        align-items: start;
    }

    .dashboard-sidebar {
        position: static;
    }

    .lottery-card__contest {
        min-width: 0;
    }

    .story-card,
    .story-card--reverse {
        grid-template-columns: 1fr;
    }

    .story-card--reverse .story-card__media,
    .story-card--reverse .story-card__content {
        order: initial;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 0;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 12px);
        text-align: center;
    }

    .hero-copy,
    .text-card,
    .card-highlight,
    .stats-card,
    .lottery-card,
    .story-card__text {
        padding: 22px;
    }

    .hero {
        padding-top: 36px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .results-main {
        padding-top: 98px;
    }

    .dashboard-main {
        padding-top: 98px;
    }

    .number-ball {
        width: 44px;
        height: 44px;
    }

    .theme-toggle {
        min-height: 52px;
        padding: 0 16px;
    }

    .story-card__media img {
        min-height: 260px;
    }
}
