/**
 * Lottószámok.eu — kártyás UI, enyhén szürke oldalháttér, főoldalon üveg fejléc.
 * Paletta: primary #0A2540, secondary #10B981, bronz kiemelés, háttér ~#e4e6eb.
 */

html {
    color-scheme: only light;
    background-color: #e4e6eb;
}

:root {
    --color-primary: #0a2540;
    --color-primary-soft: #132f4d;
    --color-secondary: #10b981;
    --color-secondary-hover: #0d9668;
    --color-secondary-muted: #d1fae5;
    --color-tertiary: #f59e0b;
    --color-tertiary-soft: #fef3c7;
    --color-tertiary-dark: #b45309;
    --color-bronze: #c9a227;
    --color-bronze-mid: #a67c2e;
    --color-bronze-dark: #6b4e1e;
    --color-bronze-glow: rgba(201, 162, 39, 0.45);
    --color-neutral-bg: #eef0f4;
    --color-bg: #e4e6eb;
    --color-bg-card: #ffffff;
    --color-border: rgba(10, 37, 64, 0.08);
    --color-border-medium: rgba(10, 37, 64, 0.14);
    --color-text-primary: #0a2540;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-link: #0a2540;
    --color-accent-link: #f59e0b;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 8px 32px rgba(10, 37, 64, 0.09);
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
    --site-max-width: 1120px;
    color-scheme: only light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-primary);
    background: var(--color-bg);
}

body.is-home {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #e8eaef 0%, #e4e6eb 42%, #e0e2e8 100%);
}

a {
    color: var(--color-link);
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
    color: var(--color-tertiary-dark);
}

section {
    margin-bottom: 0;
}

/* —— Layout —— */

.site-header-outer {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #0a2540;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.site-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 1.15rem 1.25rem;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.site-header .logo {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-header .logo a {
    color: #ffffff;
    text-decoration: none;
}

.site-header .logo a:hover {
    color: #f5e0a8;
}

.site-header .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .site-nav a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-header .site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.site-header .site-nav a.active {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    box-shadow: inset 0 -2px 0 var(--color-bronze-mid);
    border-radius: 0;
    padding-bottom: 6px;
}

.site-main {
    position: relative;
    z-index: 1;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
}

.site-main .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}

.site-main .site-nav a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-main .site-nav a:hover {
    border-color: var(--color-border-medium);
    color: var(--color-text-primary);
}

.site-main .site-nav a.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(10, 37, 64, 0.04);
}

.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 1.25rem 2.75rem;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a2540;
}

.site-footer__inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1fr auto 1fr;
    }

    .site-footer__inner p {
        margin: 0;
        justify-self: start;
    }

    .site-footer__inner .site-footer__nav {
        justify-self: center;
        grid-column: 2;
    }

    .site-footer__legal {
        grid-column: 3;
        justify-self: end;
    }

    .site-footer__legal-list {
        align-items: flex-end;
    }
}

.site-footer p {
    margin: 0 0 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer p small {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: #f5e0a8;
    text-decoration: underline;
}

.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
}

.site-footer__legal {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.site-footer__cookie-settings {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.site-footer__cookie-settings:hover {
    color: #f5e0a8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* —— Archív: év lenyíló —— */

.archiv-year-filter {
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.archiv-year-filter__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.archiv-year-select {
    min-width: 9rem;
    max-width: 100%;
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    color: var(--color-text-primary);
    background-color: var(--color-bg-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: var(--shadow-card);
}

.archiv-year-select:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.archiv-year-select:hover {
    border-color: rgba(16, 185, 129, 0.45);
}

.breadcrumb {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
}

.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-accent-link);
}

/* —— Cards —— */

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-card);
}

.card + .card,
.lottery-top-grid .card + .card {
    margin-top: 0;
}

.page-lottery > .card + .card,
.page-lottery > .lottery-draw-block + .lottery-draw-block,
.page-lottery > .lottery-draw-block + .countdown-banner,
.page-lottery > .countdown-banner + .card {
    margin-top: 1.25rem;
}

.lottery-top-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 960px) {
    .lottery-top-grid:has(.prize-table-section) {
        grid-template-columns: 1fr minmax(300px, 420px);
        align-items: start;
    }
}

.lottery-draw-block + .lottery-draw-block {
    margin-top: 1.5rem;
}

/* Archív: egymás utáni heti blokkok (pl. skandináv), ha több sor jön ugyanarra a hétre */
.page-lottery > .lottery-top-grid + .lottery-top-grid {
    margin-top: 1.5rem;
}

.section-kicker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0 0 0.35rem;
}

/* Második húzás napja (pl. csütörtök) — a kicker alatt, a dátum felett */
.section-kicker-sub {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.card--results .section-kicker + .section-kicker-sub {
    margin-top: -0.1rem;
}

/* —— Hero —— */

.hero-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--color-text-primary);
}

.page-lottery > .hero-title {
    margin-bottom: 1.15rem;
}

.hero-meta {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 1.25rem;
}

.hero-meta p {
    margin: 0 0 0.25rem;
}

.hero-meta p:last-child {
    margin-bottom: 0;
}

.jackpot-block {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: var(--color-tertiary-soft);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.jackpot-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-tertiary-dark);
    margin: 0 0 6px;
    font-weight: 600;
}

.jackpot-amount {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-tertiary-dark);
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.jackpot-sub {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0;
}

/* —— Lottery balls —— */

.balls-row {
    display: flex;
    gap: clamp(0.45rem, 1.5vw, 0.9rem);
    flex-wrap: wrap;
    margin: 1rem 0 0;
    width: 100%;
}

.balls-group-label + .balls-row {
    margin-top: 0.55rem;
}

/* Nagyobb golyók: kitöltik a sor szélességét, max. méretkorláttal (kevés számú golyó nem nő túl nagyra) */
.balls-row > .ball {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 2.75rem;
    max-width: 6.25rem;
    aspect-ratio: 1;
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.95rem, 2.5vw, 1.75rem);
    font-weight: 700;
    background: var(--color-primary);
    border: none;
    color: #ffffff;
    box-shadow: 0 3px 14px rgba(10, 37, 64, 0.22);
}

/* Módosító osztályok: felül kell írni a .balls-row > .ball alap stílust (magasabb specifikusság) */
.balls-row > .ball.ball--joker {
    background: var(--color-tertiary);
    color: var(--color-primary);
    /* Ugyanaz a szín mint a táblázatos mini joker golyóknál; nagyobb méretnél enyhe narancs árnyék */
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
}

.balls-row > .ball.ball--alt {
    background: var(--color-secondary-muted);
    color: var(--color-primary);
    box-shadow: none;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.balls-row > .ball.ball--digit {
    background: var(--color-primary-soft);
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    box-shadow: 0 3px 14px rgba(10, 37, 64, 0.22);
}

.mini-balls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ball-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--color-primary);
    border: none;
    color: #ffffff;
}

.balls-group-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 1.25rem 0 0.35rem;
}

/* Első számsor címkéje: ne duplázza a hero-meta alsó margóját */
.card--results .hero-meta + .balls-group-label {
    margin-top: 0.35rem;
}

.ball--alt {
    background: var(--color-secondary-muted);
    color: var(--color-primary);
    box-shadow: none;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ball--joker {
    background: var(--color-tertiary);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.ball--digit {
    background: var(--color-primary-soft);
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
}

.ball-mini--joker {
    background: var(--color-tertiary);
    color: var(--color-primary);
}

.ball-mini--alt {
    background: var(--color-secondary-muted);
    color: var(--color-primary);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ball-mini--digit {
    background: var(--color-primary-soft);
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
}

/* —— Prize table card —— */

.prize-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-text-primary);
}

.prize-card__title .prize-card__icon {
    display: inline-flex;
    font-size: 1.15rem;
    line-height: 1;
    filter: grayscale(0.2);
    flex-shrink: 0;
}

/* Nyeremények widget — alap: ugyanaz a megjelenés mint a főoldali kártya hover */
.lottery-top-grid .prize-table-section.card {
    padding: 1.65rem 1.5rem 1.45rem 1.45rem;
    border: 2px solid var(--color-bronze-mid);
    border-radius: 18px;
    background: linear-gradient(165deg, #fffefb 0%, #ffffff 45%, #fffaf0 100%);
    box-shadow:
        0 8px 32px rgba(10, 37, 64, 0.08),
        0 0 0 1px rgba(201, 162, 39, 0.25),
        0 12px 40px var(--color-bronze-glow);
}

.lottery-top-grid .prize-table-section .prize-card__title {
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(166, 124, 46, 0.22);
    color: var(--color-primary);
}

.lottery-top-grid .prize-table-section .prize-card__icon {
    font-size: 1.4rem;
    filter: none;
}

.lottery-top-grid .prize-table-section .prize-table {
    font-size: 15px;
}

.lottery-top-grid .prize-table-section .prize-table th,
.lottery-top-grid .prize-table-section .prize-table td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.lottery-top-grid .prize-table-section .prize-table thead th {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--color-bronze-dark);
}

.lottery-top-grid .prize-table-section .prize-table tr.top-prize td,
.lottery-top-grid .prize-table-section .prize-table tr.top-prize th {
    color: var(--color-bronze-dark);
}

.prize-table-section .prize-footnote {
    font-size: 12px;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 1.05rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.lottery-top-grid .prize-table-section .prize-footnote {
    border-top-color: rgba(166, 124, 46, 0.22);
}

/* Lottó aloldalak: csak nagyon enyhe árnyék (főoldal / erősebb kártyák érintetlenek) */
.page-lottery .card {
    box-shadow:
        0 1px 2px rgba(10, 37, 64, 0.06),
        0 4px 14px rgba(10, 37, 64, 0.038);
}

.page-lottery .countdown-banner {
    box-shadow:
        0 1px 2px rgba(10, 37, 64, 0.06),
        0 4px 14px rgba(10, 37, 64, 0.038);
}

.page-lottery .lottery-top-grid .prize-table-section.card {
    box-shadow:
        0 1px 2px rgba(10, 37, 64, 0.065),
        0 5px 16px rgba(10, 37, 64, 0.042);
}

.page-lottery .archiv-year-select {
    box-shadow:
        0 1px 2px rgba(10, 37, 64, 0.05),
        0 3px 10px rgba(10, 37, 64, 0.032);
}

/* —— Countdown —— */

.countdown-banner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.35rem;
    box-shadow: var(--shadow-card);
    margin: 0 0 1.25rem;
}

.countdown-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

/* —— Tables —— */

.prize-table-section .prize-table,
.recent-draws table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.prize-table-section .prize-table th,
.recent-draws table th,
.prize-table-section .prize-table td,
.recent-draws table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.prize-table-section .prize-table thead th,
.recent-draws table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.prize-table-section .prize-table tbody tr:last-child th,
.prize-table-section .prize-table tbody tr:last-child td,
.recent-draws table tbody tr:last-child td {
    border-bottom: none;
}

.prize-table-section .prize-table tr.top-prize td,
.prize-table-section .prize-table tr.top-prize th {
    font-weight: 600;
    color: var(--color-secondary-hover);
}

.prize-table-section .prize-table td:last-child,
.prize-table-section .prize-table th:last-child {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Telitalálat / nyeremény oszlop kiemelése (oszlopszámtól függően) */
.recent-draws table:has(thead tr th:first-child:nth-last-child(4)) tbody td:nth-child(3),
.recent-draws table:has(thead tr th:first-child:nth-last-child(5)) tbody td:nth-child(4) {
    font-weight: 700;
}

.recent-draws table tbody td a {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-link);
    text-decoration: none;
}

.recent-draws table tbody td a:hover {
    color: var(--color-tertiary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Skandináv: gépi + kézi húzás két sorban táblázatban */
.skandi-draw-rows {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.skandi-draw-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.skandi-draw-row .mini-balls {
    gap: 5px;
}

/* —— Badges —— */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.badge-nyertes {
    background: var(--color-secondary-muted);
    color: var(--color-secondary-hover);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-halmoz {
    background: var(--color-tertiary-soft);
    color: var(--color-tertiary-dark);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* —— Recent draws —— */

.recent-draws h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.recent-draws__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1.5rem 1.6rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.recent-draws__all {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-link);
    text-decoration: none;
    white-space: nowrap;
}

.recent-draws__all:hover {
    color: var(--color-tertiary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recent-draws.card {
    padding: 0;
    overflow: hidden;
}

.recent-draws.card .no-data {
    padding: 0 1.6rem 1.5rem;
    margin: 0;
}

.recent-draws.card table {
    margin: 0;
}

.recent-draws.card thead th:first-child,
.recent-draws.card tbody td:first-child {
    padding-left: 1.6rem;
}

.recent-draws.card thead th:last-child,
.recent-draws.card tbody td:last-child {
    padding-right: 1.6rem;
}

.recent-draws.card tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.recent-draws__more {
    text-align: center;
    margin: 0;
    padding: 1rem 1.6rem 1.5rem;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
    background: var(--color-neutral-bg);
}

.recent-draws__more a {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.recent-draws__more a:hover {
    color: var(--color-accent-link);
}

.no-data {
    color: var(--color-text-secondary);
    font-style: italic;
}

/* —— Homepage —— */

.page-home {
    margin: 0;
}

.page-home__intro {
    margin-bottom: 2.25rem;
    text-align: center;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.page-home__title {
    font-size: clamp(1.35rem, 3.8vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin: 0 0 0.65rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.page-home__subtitle {
    margin: 0;
    font-size: clamp(0.8rem, 1.35vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: var(--color-primary-soft);
    text-transform: uppercase;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Főoldal: szöveges blokk a kártyák alatt */
.home-editorial {
    margin-top: 2.75rem;
    padding: 0 0 0.5rem;
}

.home-editorial__inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1.85rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(10, 37, 64, 0.09);
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(10, 37, 64, 0.06),
        0 12px 36px rgba(10, 37, 64, 0.06);
}

@media (min-width: 640px) {
    .home-editorial__inner {
        padding: 2.15rem 2.25rem 2.35rem;
    }
}

.home-editorial__title {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0 0 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.45);
    color: var(--color-text-primary);
}

.home-editorial__lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin: 0 0 1.75rem;
    font-weight: 500;
}

.home-editorial__subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.75rem 0 0.65rem;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

.home-editorial__lead + .home-editorial__subtitle {
    margin-top: 1.2rem;
}

.home-editorial__inner > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
}

.home-editorial__inner > p:last-child {
    margin-bottom: 0;
}

.home-editorial__before-list {
    margin-bottom: 0.85rem !important;
}

.home-editorial__lotto-list {
    list-style: none;
    margin: 0 0 0.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.home-editorial__lotto-list li {
    margin: 0;
    padding: 1rem 1.05rem 1.05rem;
    background: rgba(241, 245, 249, 0.65);
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 14px;
    border-left: 3px solid var(--color-bronze-mid);
}

.home-editorial__lotto-list p {
    font-size: 15px;
    line-height: 1.68;
    color: var(--color-text-secondary);
    margin: 0;
}

.home-editorial__lotto-list p + p {
    margin-top: 0.65rem;
}

.home-editorial__lotto-kicker {
    font-weight: 600;
    color: var(--color-text-primary) !important;
}

.home-editorial__lotto-list strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.home-editorial__tip {
    margin: 1.35rem 0 0;
    padding: 1rem 1.1rem 1.05rem;
    font-size: 15px;
    line-height: 1.68;
    color: var(--color-text-secondary);
    background: rgba(209, 250, 229, 0.45);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    border-left: 3px solid var(--color-secondary);
}

.home-editorial__tip strong {
    color: var(--color-text-primary);
}

.home-editorial__tip a {
    font-weight: 600;
    color: var(--color-secondary-hover);
}

.home-editorial__tip a:hover {
    color: var(--color-tertiary-dark);
}

.lottery-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 600px) {
    .lottery-grid:not(.lottery-grid--home) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .lottery-grid:not(.lottery-grid--home) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Főoldal: 3 oszlop fent, 2 kártya középen lent */
.lottery-grid--home {
    gap: 1.35rem;
}

@media (min-width: 960px) {
    .lottery-grid--home {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }

    .lottery-grid--home .lottery-card:nth-child(1),
    .lottery-grid--home .lottery-card:nth-child(2),
    .lottery-grid--home .lottery-card:nth-child(3) {
        grid-column: span 2;
    }

    .lottery-grid--home .lottery-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .lottery-grid--home .lottery-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    .lottery-grid--home {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lottery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem 1.45rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 37, 64, 0.1);
    border-radius: 18px;
    box-shadow:
        0 2px 4px rgba(10, 37, 64, 0.09),
        0 10px 28px rgba(10, 37, 64, 0.085),
        0 22px 48px rgba(10, 37, 64, 0.05);
    color: inherit;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.lottery-card:hover,
.lottery-card:focus-within {
    transform: translateY(-2px);
    border: 2px solid var(--color-bronze-mid);
    box-shadow:
        0 8px 32px rgba(10, 37, 64, 0.08),
        0 0 0 1px rgba(201, 162, 39, 0.25),
        0 12px 40px var(--color-bronze-glow);
    background: linear-gradient(165deg, #fffefb 0%, #ffffff 45%, #fffaf0 100%);
}

.lottery-card__name {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--color-text-primary);
    display: block;
}

h2.lottery-card__name {
    font-family: inherit;
    line-height: inherit;
}

.lottery-card__slug {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0 0 0.65rem;
    display: block;
}

.lottery-card__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
    line-height: 1.5;
    display: block;
}

.lottery-card__snapshot {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 0 1rem;
    padding: 1rem 1.05rem;
    min-height: 5.5rem;
    background: rgba(241, 245, 249, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 14px;
}

.lottery-card:hover .lottery-card__snapshot,
.lottery-card:focus-within .lottery-card__snapshot {
    background: rgba(255, 252, 245, 0.9);
    border-color: rgba(166, 124, 46, 0.15);
}

.lottery-card__no-snapshot {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.lottery-card__snap-date {
    margin: 0 0 1rem;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.lottery-card__snap-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.lottery-card__skandi-snapshot {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lottery-card__snapshot .mini-balls {
    justify-content: center;
    gap: 8px;
}

.lottery-card__skandi-snapshot-row .mini-balls {
    gap: 6px;
}

/* Skandináv: 7 szám egy sorban — kisebb golyók, szűkebb rés */
.lottery-card--skandinavlotto .lottery-card__snapshot .mini-balls {
    flex-wrap: nowrap;
    gap: 4px;
}

.lottery-card--skandinavlotto .lottery-card__snapshot .ball-mini {
    width: 30px;
    height: 30px;
    font-size: 11px;
    flex-shrink: 0;
}

/* Joker (6 számjegy), Hatoslottó (6 szám / sor): egy sor, nagyobb golyók */
.lottery-card--joker .lottery-card__snapshot .mini-balls,
.lottery-card--hatoslotto .lottery-card__snapshot .mini-balls {
    flex-wrap: nowrap;
    gap: 5px;
}

.lottery-card--joker .lottery-card__snapshot .ball-mini,
.lottery-card--hatoslotto .lottery-card__snapshot .ball-mini {
    width: 36px;
    height: 36px;
    font-size: 13px;
    flex-shrink: 0;
}

.lottery-card__draw-chunk + .lottery-card__draw-chunk {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(10, 37, 64, 0.1);
}

.lottery-card__euro-jokers {
    margin-top: 0.5rem;
}

.lottery-card__snapshot .ball-mini {
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
}

/* Főoldal: Skandináv kézi húzás — telt zöld golyók */
.lottery-card--skandinavlotto .ball-mini--alt {
    background: #0d9488;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

/* Főoldal: Joker számjegyek — sötét meleg szürke */
.lottery-card--joker .ball-mini--digit {
    background: linear-gradient(160deg, #5c5a56 0%, #3d3c3a 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Eurojackpot pótszámok (ball-mini--joker): bronz csak kártya hover / fókusz alatt */
.lottery-card:hover .ball-mini--joker,
.lottery-card:focus-within .ball-mini--joker {
    background: linear-gradient(145deg, #d4af37 0%, var(--color-bronze-mid) 40%, var(--color-bronze-dark) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(107, 78, 30, 0.4);
}

/* Alapállapot: Eurojackpot pótszám golyók — narancs, a főszámoktól színnel elkülönítve */
.lottery-card:not(:hover):not(:focus-within) .ball-mini--joker {
    background: var(--color-tertiary);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.lottery-card__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 0.55rem 1.15rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-neutral-bg);
    border: 1px solid var(--color-border-medium);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.lottery-card:not(:hover):not(:focus-within) .lottery-card__details:hover {
    border-color: var(--color-bronze-mid);
    color: var(--color-bronze-dark);
    background: #f8fafc;
}

.lottery-card:hover .lottery-card__details,
.lottery-card:focus-within .lottery-card__details {
    color: #ffffff;
    background: linear-gradient(180deg, #d4a84b 0%, var(--color-bronze-mid) 38%, var(--color-bronze-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(107, 78, 30, 0.35);
}

.lottery-card:hover .lottery-card__details:hover,
.lottery-card:focus-within .lottery-card__details:hover {
    color: #ffffff;
    filter: brightness(1.06);
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, #ddb55a 0%, #b8892e 38%, #5a4218 100%);
}

/* —— Responsive —— */

@media (max-width: 600px) {
    .site-header {
        align-items: flex-start;
    }

    .site-header .site-nav {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .site-nav ul {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .jackpot-amount {
        font-size: 1.35rem;
    }

    .balls-row > .ball {
        min-width: 2.35rem;
        max-width: 4.75rem;
        font-size: clamp(0.8rem, 4.2vw, 1.2rem);
    }

    .ball-mini {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .lottery-card__snapshot .ball-mini {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .lottery-card__snapshot .mini-balls {
        gap: 6px;
    }

    .lottery-card--skandinavlotto .lottery-card__snapshot .ball-mini {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .lottery-card--skandinavlotto .lottery-card__snapshot .mini-balls {
        gap: 3px;
    }

    .lottery-card--joker .lottery-card__snapshot .ball-mini,
    .lottery-card--hatoslotto .lottery-card__snapshot .ball-mini {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .lottery-card--joker .lottery-card__snapshot .mini-balls,
    .lottery-card--hatoslotto .lottery-card__snapshot .mini-balls {
        gap: 4px;
    }

    .countdown-banner {
        padding: 1rem;
    }
}

/* —— Süti hozzájárulás —— */

.cookie-consent {
    position: fixed;
    z-index: 10000;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    pointer-events: none;
}

.cookie-consent__inner {
    pointer-events: auto;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 1.15rem 1.25rem;
    background: #0a2540;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cookie-consent__text {
    margin: 0 0 1rem;
    font-size: 13px;
    line-height: 1.55;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent__text a {
    color: #f5e0a8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__text a:hover {
    color: #ffffff;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-consent__btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-transform: none;
    letter-spacing: normal;
}

.cookie-consent__btn--primary {
    background: linear-gradient(180deg, #d4a84b 0%, var(--color-bronze-mid) 40%, var(--color-bronze-dark) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-consent__btn--primary:hover {
    filter: brightness(1.06);
}

.cookie-consent__btn--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.cookie-consent__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.cookie-consent__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-consent__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.cookie-consent-modal[hidden] {
    display: none;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cookie-consent-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    max-height: min(90vh, 36rem);
    overflow-y: auto;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-medium);
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.18);
}

.cookie-consent-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
}

.cookie-consent-modal__intro {
    margin: 0 0 1.15rem;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-secondary);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.cookie-consent-modal__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.cookie-consent-modal__item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cookie-consent-modal__item:last-of-type {
    border-bottom: none;
}

.cookie-consent-modal__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.cookie-consent-modal__item-head--toggle {
    cursor: pointer;
}

.cookie-consent-modal__item-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.cookie-consent-modal__badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--color-neutral-bg);
    border: 1px solid var(--color-border);
}

.cookie-consent-modal__item-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.cookie-consent-modal__checkbox {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-consent-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.page-legal {
    max-width: 46rem;
}

.page-legal h2 {
    font-size: 1.05rem;
    margin: 1.75rem 0 0.65rem;
    color: var(--color-text-primary);
}

.page-legal h2:first-of-type {
    margin-top: 1.25rem;
}

.page-legal p,
.page-legal li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.page-legal ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.page-legal .legal-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
