/* TODO: al subir fonts locales, agregar las URL fraunces-*.woff2 e inter-tight-*.woff2; se mantienen Georgia y Arial como fallbacks. */
@font-face {
    font-family: "Fraunces";
    src: local("Fraunces");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: local("Inter Tight");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ink: #0C0A09;
    --surface: #1C1917;
    --surface-raised: #292524;
    --border: #44403C;
    --amber: #D97706;
    --amber-hover: #B45309;
    --bone: #FAFAF9;
    --muted: #A8A29E;
    --faint: #78716C;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter Tight", "Arial Narrow", Arial, sans-serif;
    --content: 1160px;
    --radius: 18px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(ellipse at 50% -18rem, rgba(217, 119, 6, 0.075), transparent 42rem),
        var(--ink);
    color: var(--bone);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
    position: fixed;
    z-index: 20;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    transform: translateY(-180%);
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(68, 64, 60, 0.55);
    background: rgba(12, 10, 9, 0.88);
    backdrop-filter: blur(16px);
}
.header-inner {
    display: flex;
    width: min(100% - 2rem, var(--content));
    min-height: 76px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    flex: 0 0 auto;
    color: var(--bone);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}
.logo-dot { color: var(--amber); }
.nav-links {
    display: flex;
    max-width: 72%;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    flex: 0 0 auto;
    padding: 0.6rem 0.72rem;
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 180ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--bone); }

.page-shell { min-height: 60vh; }
.container { width: min(100% - 2rem, var(--content)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-rule { border-top: 1px solid rgba(68, 64, 60, 0.55); }
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.section-side-copy { max-width: 360px; margin: 0; }
.page-eyebrow { display: block; margin-top: 1.5rem; }
.narrow-container { max-width: 850px; }
.panel-title { margin: 0 0 1.2rem; font-size: 1.65rem; }
.summary-note { margin: 0.9rem 0 1.2rem; }
.footer-blurb { max-width: 360px; margin: 0.6rem 0 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }
.results-section { margin-top: 2rem; }
.results-title { margin-bottom: 1rem; font-size: 1.8rem; }
.purchase-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.winner-draw-list { display: grid; gap: 3rem; }
.contact-form-panel { margin-top: 2rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--amber);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.3;
    text-transform: uppercase;
}
.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.7);
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
h1 { margin-bottom: 1.1rem; font-size: clamp(2.65rem, 11vw, 6.7rem); }
h2 { margin-bottom: 0.45rem; font-size: clamp(2rem, 6vw, 3.7rem); }
h3 { margin-bottom: 0.55rem; font-size: clamp(1.35rem, 4vw, 1.75rem); }
.lede { max-width: 650px; color: var(--muted); font-size: clamp(1.04rem, 2.5vw, 1.2rem); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.accent { color: var(--amber); }
.serif { font-family: var(--serif); }
.text-small { font-size: 0.88rem; }
.inline-link { color: var(--amber); text-decoration-color: rgba(217, 119, 6, 0.45); text-underline-offset: 0.2em; }
.inline-link:hover { color: #F59E0B; }

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0.78rem 1.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 8px 26px rgba(217, 119, 6, 0.18);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.button:hover, .button:focus-visible {
    transform: translateY(-2px);
    background: var(--amber-hover);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.27);
}
.button svg { width: 18px; height: 18px; }
.button-secondary {
    border-color: var(--border);
    background: var(--surface-raised);
    box-shadow: none;
    color: var(--bone);
}
.button-secondary:hover, .button-secondary:focus-visible {
    border-color: var(--amber);
    background: #33271D;
    color: var(--bone);
}
.button-block { width: 100%; }
.button-large { min-height: 58px; padding-inline: 1.6rem; font-size: 1.06rem; }
.hero .button:hover, .hero .button:focus-visible {
    transform: translateY(-2px);
    background: var(--amber);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
}
.hero .button:active { transform: scale(0.97); }
.hero .button .ticket-icon { width: 16px; height: 16px; transition: transform 220ms ease; }
.hero .button:hover .ticket-icon, .hero .button:focus-visible .ticket-icon { transform: rotate(-8deg); }

.hero {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100svh - 76px));
    padding: 4.5rem 0 4rem;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(217, 119, 6, 0.11), transparent 36rem),
        linear-gradient(180deg, #0C0A09 0%, #1C1917 100%);
}
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(250, 250, 249, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 250, 249, 0.025) 1px, transparent 1px);
    background-size: 46px 46px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero::after {
    position: absolute;
    z-index: -1;
    right: -9rem;
    bottom: -16rem;
    width: min(75vw, 50rem);
    aspect-ratio: 1;
    border: 1px solid rgba(217, 119, 6, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 2.6rem rgba(217, 119, 6, 0.025), 0 0 0 5.2rem rgba(217, 119, 6, 0.018);
    content: "";
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-brand-eyebrow { display: block; margin-bottom: 0.9rem; color: var(--amber); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; }
.hero-slogan { margin: -0.65rem 0 1.3rem; color: var(--muted); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.12em; }
.hero h1 { max-width: 900px; margin-block: 1rem 1.35rem; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-copy { max-width: 610px; margin-bottom: 1.75rem; color: #D6D3D1; font-size: 1.1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.65rem 1.6rem; margin: 1.6rem 0 2rem; }
.meta-item { display: grid; gap: 0.12rem; }
.meta-item strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.meta-item span { color: var(--muted); font-size: 0.8rem; }
.hero-watermark {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: clamp(0.5rem, 5vw, 4rem);
    color: #1C1917;
    font-family: var(--serif);
    line-height: 0.8;
    opacity: 0.6;
    pointer-events: none;
    text-shadow: 0 0 42px rgba(217, 119, 6, 0.06);
    transform: translateY(-50%) rotate(-8deg);
    user-select: none;
    white-space: nowrap;
}
.hero-watermark.watermark-sm { font-size: clamp(12rem, 25vw, 28rem); }
.hero-watermark.watermark-md { font-size: clamp(10rem, 20vw, 22rem); }
.hero-watermark.watermark-lg { font-size: clamp(8rem, 15vw, 16rem); }
.hero-watermark.watermark-xl { font-size: clamp(6rem, 12vw, 12rem); }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 0.42rem 0.75rem; border: 1px solid rgba(217, 119, 6, 0.3); border-radius: 999px; background: #1C1917; color: #FBBF24; font-size: 0.78rem; }
.hero-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #D97706; animation: hero-status-pulse 2s ease-in-out infinite; }
@keyframes hero-status-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.youtube-video { width: min(100%, 980px); margin: 1.5rem auto 0; }
.youtube-video-frame { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius); background: #0C0A09; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); }
.youtube-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.live-room-action { margin: 1.5rem 0 0; }
.live-room-note { margin: 1.5rem 0 0; font-size: 0.9rem; }
.brand-values { border-top: 1px solid rgba(68, 64, 60, 0.55); border-bottom: 1px solid rgba(68, 64, 60, 0.55); background: rgba(28, 25, 23, 0.4); }
.brand-values-list { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin: 0; padding: 1.4rem 0; list-style: none; }
.brand-value { display: flex; align-items: center; justify-content: center; gap: 0.7rem; color: #D6D3D1; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-value svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; color: var(--amber); }

.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(68, 64, 60, 0.72);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.card:hover {
    transform: translateY(-5px) scale(1.008);
    border-color: rgba(217, 119, 6, 0.52);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), 0 0 30px rgba(217, 119, 6, 0.055);
}
.prize-card { display: flex; min-height: 100%; flex-direction: column; }
.prize-image {
    display: grid;
    min-height: 210px;
    aspect-ratio: 1.45;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 46%, rgba(217, 119, 6, 0.16), transparent 54%),
        var(--surface-raised);
}
.prize-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.prize-card:hover .prize-image img { transform: scale(1.04); }
.prize-image svg { width: 58px; height: 58px; color: rgba(217, 119, 6, 0.82); }
.prize-image-fallback { color: var(--faint); font-size: 0.85rem; }
.prize-body { padding: 1.1rem 1.15rem 1.3rem; }
.prize-order { margin-bottom: 0.45rem; color: var(--amber); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.prize-body p { margin-bottom: 0; color: var(--muted); font-size: 0.91rem; }

.steps-grid { display: grid; gap: 0.85rem; }
.step-card { min-height: 220px; padding: 1.35rem; }
.step-number { display: flex; width: 42px; height: 42px; margin-bottom: 1.3rem; align-items: center; justify-content: center; border: 1px solid rgba(217, 119, 6, 0.36); border-radius: 50%; color: var(--amber); font-family: var(--serif); font-size: 1.2rem; }
.step-icon { width: 24px; height: 24px; margin-bottom: 1rem; color: var(--amber); }
.step-card p { margin-bottom: 0; color: var(--muted); font-size: 0.93rem; }

.draw-card {
    display: grid;
    gap: 1.5rem;
    padding: 1.35rem;
    border: 1px solid rgba(217, 119, 6, 0.32);
    border-radius: calc(var(--radius) + 4px);
    background:
        radial-gradient(ellipse at 100% 0, rgba(217, 119, 6, 0.12), transparent 30rem),
        var(--surface);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}
.draw-card h3 { margin-block: 0.55rem; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.draw-stats { display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; margin: 1.2rem 0 1.5rem; }
.draw-stat { color: var(--muted); font-size: 0.88rem; }
.draw-stat strong { display: block; color: var(--bone); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.draw-side { display: flex; min-height: 185px; align-items: center; justify-content: center; border: 1px solid rgba(217, 119, 6, 0.2); border-radius: 14px; background: linear-gradient(155deg, rgba(217, 119, 6, 0.09), rgba(12, 10, 9, 0.28)); color: var(--amber); }
.draw-side svg { width: 74px; }
.empty-state { padding: 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius); background: rgba(28, 25, 23, 0.5); color: var(--muted); }

.faq-list { display: grid; gap: 0.65rem; }
.faq-item { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: rgba(28, 25, 23, 0.78); }
.faq-question { display: flex; width: 100%; padding: 1rem 1.05rem; align-items: center; justify-content: space-between; gap: 1rem; border: 0; background: transparent; color: var(--bone); cursor: pointer; font-weight: 650; text-align: left; }
.faq-question svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--amber); transition: transform 180ms ease; }
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { padding: 0 1.05rem 1rem; color: var(--muted); }
.faq-answer[hidden] { display: none; }
.faq-answer p:last-child { margin-bottom: 0; }

.page-hero { padding: 3.4rem 0 2.2rem; border-bottom: 1px solid rgba(68, 64, 60, 0.55); background: linear-gradient(180deg, rgba(28, 25, 23, 0.7), transparent); }
.page-hero h1 { margin-block: 0.7rem 0.8rem; font-size: clamp(2.5rem, 8vw, 5rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--faint); font-size: 0.82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}
.countdown-unit { min-width: 72px; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(28, 25, 23, 0.9); text-align: center; }
.countdown-unit strong { display: block; color: var(--amber); font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.1; }
.countdown-unit span { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }

.package-card { display: flex; min-height: 100%; flex-direction: column; padding: 1.2rem; }
.package-card .package-quantity { color: var(--amber); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.package-card .package-price { margin: 0.45rem 0 1rem; font-family: var(--serif); font-size: 2rem; }
.package-card p { flex: 1; color: var(--muted); font-size: 0.9rem; }
.package-card .button { margin-top: 0.5rem; }

.checkout-layout { display: grid; gap: 1rem; }
.form-panel, .summary-panel { padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-grid { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
.field label { color: #D6D3D1; font-size: 0.88rem; font-weight: 600; }
.field input, .field textarea, .field select {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--ink);
    color: var(--bone);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14); }
.field-hint { color: var(--faint); font-size: 0.8rem; }
.field-error { color: #FCA5A5; font-size: 0.82rem; }
.form-errors { margin-bottom: 1rem; padding: 0.9rem 1rem; border: 1px solid #7F1D1D; border-radius: 12px; background: rgba(127, 29, 29, 0.28); color: #FECACA; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-errors li + li { margin-top: 0.25rem; }
.notice {
    margin-block: 1rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--amber);
    border-radius: 0 10px 10px 0;
    background: rgba(217, 119, 6, 0.08);
    color: #D6D3D1;
    font-size: 0.92rem;
}
.summary-panel { position: relative; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.72rem 0; border-bottom: 1px solid rgba(68, 64, 60, 0.65); color: var(--muted); }
.summary-line strong { color: var(--bone); text-align: right; }
.summary-total { margin-top: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 1.08rem; }
.summary-total strong { color: var(--amber); font-family: var(--serif); font-size: 1.55rem; }
.bank-card { display: grid; gap: 0.65rem; margin: 1.1rem 0; padding: 1rem; border: 1px solid rgba(217, 119, 6, 0.3); border-radius: 14px; background: rgba(12, 10, 9, 0.62); }
.bank-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.88rem; }
.bank-row strong { color: var(--bone); text-align: right; }
.success-mark { display: grid; width: 66px; height: 66px; margin-bottom: 1rem; place-items: center; border: 1px solid rgba(217, 119, 6, 0.42); border-radius: 50%; background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.success-mark svg { width: 31px; height: 31px; }
.success-panel { max-width: 720px; margin: 2rem auto; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

.numbers-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.65rem; }
.number-chip { display: inline-grid; min-width: 42px; height: 42px; padding-inline: 0.4rem; place-items: center; border: 1px solid rgba(217, 119, 6, 0.34); border-radius: 10px; background: rgba(217, 119, 6, 0.09); color: #FBBF24; font-family: var(--serif); font-size: 1rem; }
.purchase-card { padding: 1.15rem; }
.purchase-card + .purchase-card { margin-top: 0.8rem; }
.purchase-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.6rem 0; color: var(--muted); font-size: 0.84rem; }
.status-pill { display: inline-flex; padding: 0.25rem 0.55rem; border: 1px solid rgba(74, 222, 128, 0.24); border-radius: 99px; background: rgba(20, 83, 45, 0.25); color: #BBF7D0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.winner-card { padding: 1.1rem; }
.winner-number { margin-top: 0.8rem; color: var(--amber); font-family: var(--serif); font-size: 1.1rem; }
.winner-name { color: var(--muted); font-size: 0.9rem; }

.rich-content { max-width: 850px; color: #D6D3D1; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 1.8em; color: var(--bone); }
.rich-content h1 { font-size: 2.2rem; }
.rich-content h2 { font-size: 1.8rem; }
.rich-content h3 { font-size: 1.4rem; }
.rich-content a { color: var(--amber); }
.rich-content blockquote { margin-inline: 0; padding: 0.6rem 1rem; border-left: 3px solid var(--amber); color: var(--muted); }
.rich-content table { width: 100%; border-collapse: collapse; }
.rich-content th, .rich-content td { padding: 0.55rem; border: 1px solid var(--border); text-align: left; }

.site-footer { margin-top: 4rem; border-top: 1px solid rgba(68, 64, 60, 0.6); background: #100E0D; }
.footer-inner { display: grid; gap: 2rem; padding: 2.5rem 0; }
.footer-brand { color: var(--bone); font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.1em; text-decoration: none; }
.footer-fullname { margin: 0.5rem 0 0; color: var(--bone); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; }
.footer-slogan { width: fit-content; margin: 0.65rem 0 0; padding-top: 0.55rem; border-top: 1px solid rgba(168, 162, 158, 0.25); color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; }
.footer-pillars { margin: 0.7rem 0 0; color: rgba(168, 162, 158, 0.56); font-size: clamp(0.58rem, 2vw, 0.68rem); letter-spacing: 0.05em; white-space: nowrap; }
.footer-pillars span { padding-inline: 0.18rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1.2rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: var(--bone); }
.footer-legal { color: var(--faint); font-size: 0.78rem; }
.footer-legal p { margin-bottom: 0.35rem; }
.footer-bottom { padding: 1rem 0; border-top: 1px solid rgba(68, 64, 60, 0.45); color: var(--faint); font-size: 0.76rem; }

.js-enabled .reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (min-width: 600px) {
    .section { padding: 5.5rem 0; }
    .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-values-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .draw-card { grid-template-columns: 1.3fr 0.7fr; align-items: center; padding: 2rem; }
    .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-span-2 { grid-column: 1 / -1; }
    .form-panel, .summary-panel { padding: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
    .footer-legal { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
    .hero { padding-block: 5rem; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    .checkout-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); align-items: start; gap: 1.25rem; }
    .summary-panel { position: sticky; top: 1.25rem; }
    .page-hero { padding-top: 4.2rem; }
}

@media (max-width: 599px) {
    .header-inner { width: min(100% - 1.25rem, var(--content)); min-height: 68px; flex-wrap: wrap; gap: 0.35rem; padding-block: 0.65rem; }
    .brand { font-size: 1.16rem; }
    .nav-links { order: 2; width: 100%; max-width: 100%; margin-inline: -0.1rem; flex-wrap: wrap; overflow: visible; }
    .nav-links a { padding: 0.32rem 0.5rem; font-size: 0.81rem; }
    .container { width: min(100% - 1.35rem, var(--content)); }
    .hero { min-height: 610px; min-height: min(720px, calc(100svh - 68px)); padding-block: 3.6rem; }
    .hero-meta { gap: 0.8rem 1.2rem; }
    .button-large { width: 100%; }
    .section-heading { align-items: start; }
    .section { padding: 3.75rem 0; }
    .prize-image { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js-enabled .reveal, .js-enabled .reveal.is-visible { opacity: 1; transform: none; }
}

.number-selection-layout {
    display: grid;
    gap: 1rem;
}
.number-selection-main, .selection-panel, .map-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.number-selection-main { padding: 1.1rem; }
.selection-panel {
    position: fixed;
    z-index: 4;
    right: 0.65rem;
    bottom: 0.5rem;
    left: 0.65rem;
    max-height: 38svh;
    overflow-y: auto;
    padding: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}
.number-selection-layout { padding-bottom: 17rem; }
.selection-panel h3 { margin: 0.45rem 0; font-size: 1.25rem; }
.field-label { display: block; margin-bottom: 0.4rem; color: #D6D3D1; font-weight: 650; }
.number-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; }
.number-entry input, .map-toolbar input {
    min-width: 0;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--ink);
    color: var(--bone);
}
.number-entry input:focus, .map-toolbar input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14); }
.number-feedback, .selection-message, .map-status { min-height: 1.5rem; margin: 0.5rem 0; color: var(--muted); font-size: 0.88rem; }
.number-feedback.is-available { color: #86EFAC; }
.number-feedback.is-unavailable, .selection-message.is-error { color: #FCA5A5; }
.number-selection-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.number-selection-actions > * { flex: 1 1 170px; }
.selection-progress { margin: 0.5rem 0; color: var(--muted); font-size: 0.85rem; }
.selected-number-list { display: flex; min-height: 2rem; flex-wrap: wrap; gap: 0.4rem; margin: 0.65rem 0; }
.selected-number-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.45rem 0.1rem 0.65rem;
    border: 1px solid rgba(217, 119, 6, 0.55);
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.16);
    color: var(--bone);
    font-variant-numeric: tabular-nums;
}
.selected-number-remove { border: 0; background: transparent; color: var(--amber); cursor: pointer; font-size: 1.25rem; line-height: 1; }
.selection-total { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--border); color: var(--muted); }
.selection-total strong { color: var(--amber); font-family: var(--serif); font-size: 1.25rem; }
.button:disabled { cursor: not-allowed; opacity: 0.48; transform: none; box-shadow: none; }
.package-card .button.is-selected, .map-package-option.is-selected { outline: 2px solid var(--amber); outline-offset: 2px; }
.map-layout { align-items: start; }
.map-panel { min-width: 0; padding: 0.85rem; }
.map-toolbar { display: grid; gap: 0.7rem; }
.map-toolbar .field { min-width: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; color: var(--muted); font-size: 0.78rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.map-legend i { width: 10px; height: 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.map-legend .legend-sold { background: var(--surface-raised); }
.number-blocks { display: flex; gap: 0.45rem; margin: 0.85rem 0; overflow-x: auto; padding: 0.25rem 0 0.55rem; }
.number-block-button, .map-package-option {
    flex: 0 0 auto;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-raised);
    color: var(--bone);
    cursor: pointer;
    font-size: 0.8rem;
}
.number-block-button.is-active, .map-package-option.is-selected { border-color: var(--amber); background: rgba(217, 119, 6, 0.18); }
.number-map-grid {
    display: grid;
    max-height: 68vh;
    grid-template-columns: repeat(auto-fill, 32px);
    gap: 4px;
    align-content: start;
    overflow: auto;
    padding: 0.4rem 0.2rem 0.8rem;
}
.number-cell {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
    color: var(--bone);
    cursor: pointer;
    font-size: 0.58rem;
    font-variant-numeric: tabular-nums;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.number-cell:not(:disabled):hover { border-color: var(--amber); }
.number-cell.is-selected { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.number-cell.is-sold { border-color: var(--surface-raised); background: var(--surface-raised); color: var(--faint); cursor: not-allowed; }
.number-cell.is-highlighted { outline: 2px solid var(--bone); outline-offset: 2px; }
.map-package-options { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.7rem 0; }
.map-package-option { flex: 1 1 auto; }
.map-back-link { display: block; margin-top: 0.85rem; color: var(--muted); font-size: 0.86rem; text-align: center; }
.selected-checkout-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1rem; color: var(--muted); }
.selected-checkout-numbers span { padding: 0.25rem 0.55rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--bone); }

@media (min-width: 900px) {
    .number-selection-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 1.25rem; }
    .number-selection-layout { padding-bottom: 0; }
    .selection-panel { position: sticky; top: 1rem; right: auto; bottom: auto; left: auto; max-height: none; overflow: visible; }
    .number-selection-main { padding: 1.5rem; }
    .map-layout { grid-template-columns: minmax(0, 1fr) 330px; }
    .map-toolbar { grid-template-columns: minmax(180px, 1fr) auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
    .number-cell { transition: none; }
}
