/* Custom Font */
@font-face {
    font-family: 'Hatter Display Pro';
    src: url('../fonts/HatterDisplayPro-Dirt.woff2') format('woff2'),
        url('../fonts/HatterDisplayPro-Dirt.woff') format('woff'),
        url('../fonts/HatterDisplayPro-Dirt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #198d8c;
    --primary-hover: #15706f;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #ffffff;
    --text-muted: #ffffff;
    --border: #ffffff;
    --occupied: #fca5a5;
    --available: #86efac;
    --selected: #198d8c;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.white {
    color: #ffffff !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Contenedor principal del shortcode con pantalla completa */
.porra-navidena-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #198d8c 0%, #15706f 100%);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
}

.porra-navidena-wrapper p {
	padding: 0 !important;
}

/* Nieve cayendo */
.porra-navidena-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 80px 10px, white, transparent),
        radial-gradient(2px 2px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, white, transparent);
    background-size: 200px 200px;
    animation: snow 10s linear infinite;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

@keyframes snow {
    0% {
        background-position: 0px 0px, 40px 0px, 80px 0px, 120px 0px, 160px 0px, 200px 0px, 240px 0px;
    }

    100% {
        background-position: 0px 200px, 40px 240px, 80px 200px, 120px 220px, 160px 210px, 200px 230px, 240px 200px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 2;
    padding: 60px 20px 40px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.hero-logo {
    max-width: 600px !important;
    width: 100%;
    height: auto !important;
    margin-bottom: 24px;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
	text-align: center;
}

.hero-subtitle strong {
    color: #ffd700;
    font-weight: 700;
}

/* Decoración */
.decoration-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.decoration-img {
    max-width: 400px !important;
    width: 100%;
    height: auto !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Info Highlights */
.info-highlights-wrapper {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.info-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.highlight-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.highlight-card h3 {
    font-family: 'Hatter Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-content {
    text-align: center;
    padding: 20px;
}

.welcome-content h2 {
    font-family: 'Hatter Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-content p {
    font-size: 1.125rem;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.welcome-content p:last-child {
    margin-bottom: 0;
}

.welcome-content .highlight-text {
    font-size: 1.25rem;
    color: #ffd700;
    margin-top: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Main Container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    position: relative;
}

.card h2 {
    font-family: 'Hatter Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    margin-bottom: 36px;
    color: #1e293b;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 0px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    font-weight: 500 !important;
	height: auto !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none !important;
    border-color: #198d8c !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(25, 141, 140, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

.form-group input.error {
    border-color: var(--danger);
}

.error-message {
    display: block;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 4px;
    min-height: 20px;
}

/* Buttons */
.btn,
.btn[type="submit"],
button[type="submit"] {
    padding: 12px 28px;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.btn-primary[type="submit"],
button.btn-primary[type="submit"] {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #475569 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary) !important;
    border-radius: 50% !important;
    color: white !important;
    border: none !important;
}

.btn-icon:hover:not(:disabled) {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon svg {
	min-width: 24px;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f1f5f9;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Selected Display */
.selected-display {
    background-color: #dbeafe;
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.selected-display strong {
    color: var(--primary);
    font-size: 1.25rem;
}

.selected-display p {
    color: #334155;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
}

.number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.number-cell.available {
    background-color: var(--available);
    border-color: var(--success);
}

.number-cell.available:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.number-cell.occupied {
    background-color: var(--occupied);
    border-color: var(--danger);
    cursor: not-allowed;
    opacity: 0.6;
}

.number-cell.selected {
    background-color: var(--selected);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#page-info {
    font-weight: 500;
    color: #64748b;
}

/* Actions */
.actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Confirmation */
.confirmation-details {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.large {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.number-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Success */
.success-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(220, 252, 231, 0.95)) !important;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(22, 163, 74, 0.4);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(22, 163, 74, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(22, 163, 74, 0.6);
    }
}

.success-card h2 {
    color: #16a34a;
    margin-bottom: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.success-card p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Floating Success Message */
.floating-message {
    position: relative;
    z-index: 2;
    padding: 32px 20px;
    text-align: center;
}

.floating-message p {
    font-family: 'Hatter Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    margin: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Info Block Cards */
.info-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.info-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.info-block h3 {
    font-family: 'Hatter Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.info-block p {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block .small-text {
    font-size: 0.875rem;
    color: #64748b;
}

.info-block ol {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 12px 0 0 0;
    text-align: left;
}

.info-block ol li {
    counter-increment: step;
    padding: 10px 0 10px 36px;
    position: relative;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
}

.info-block ol li:first-child {
	padding-top: 10px;
}

.info-block ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 10px;
    background: #198d8c;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.compact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.compact-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.5;
}

.compact-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: 1.125rem;
}

.link-legal {
    display: inline-block;
    margin-top: 12px;
    color: #198d8c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link-legal:hover {
    color: #15706f;
    text-decoration: underline;
}

/* Footer - Privacy & Legal */
.footer-privacy {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 48px 20px 32px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.footer-block h4 {
    font-family: 'Hatter Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.375rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-block p {
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-block p:last-child {
    margin-bottom: 0;
}

.footer-block a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.footer-block a:hover {
    text-decoration: underline;
}

.link-legal-footer {
    display: inline-block;
    margin-top: 12px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.link-legal-footer:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .info-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-logo {
        max-width: 400px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .decoration-img {
        max-width: 300px;
    }

    .welcome-section {
        max-width: 700px;
    }

    .welcome-content {
        padding: 20px;
    }

    .welcome-content h2 {
        font-size: 1.75rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 16px 30px;
    }

    .hero-logo {
        max-width: 300px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .decoration-wrapper {
        padding: 15px;
    }

    .decoration-img {
        max-width: 250px;
    }

    .info-highlights-wrapper {
        padding: 20px 16px;
    }

    .highlight-card {
        padding: 24px 20px;
    }

    .highlight-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .highlight-card h3 {
        font-size: 1.5rem;
    }

    .main-container {
        padding: 0 16px 30px;
    }

    .welcome-section {
        padding: 30px 16px;
        max-width: 600px;
    }

    .welcome-content {
        padding: 16px;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .floating-message p {
        font-size: 1.5rem;
    }

    .info-block {
        padding: 24px;
    }

    .info-block h3 {
        font-size: 1.5rem;
    }

    .card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .footer-privacy {
        padding: 32px 16px 24px;
    }

    .footer-block h4 {
        font-size: 1.25rem;
    }

    .controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
        max-height: 350px;
    }

    .actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .pagination {
        gap: 12px;
    }

    #page-info {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 32px 12px 24px;
    }

    .hero-logo {
        max-width: 250px;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .decoration-wrapper {
        padding: 10px;
    }

    .decoration-img {
        max-width: 200px;
    }

    .info-highlights-wrapper {
        padding: 20px 12px;
    }

    .info-highlights {
        gap: 12px;
    }

    .highlight-card {
        padding: 20px 16px;
    }

    .highlight-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .highlight-card h3 {
        font-size: 1.25rem;
    }

    .highlight-card p {
        font-size: 0.875rem;
    }

    .main-container {
        padding: 0 12px 24px;
    }

    .welcome-section {
        padding: 24px 12px;
        max-width: 100%;
    }

    .welcome-content {
        padding: 12px;
    }

    .welcome-content h2 {
        font-size: 1.25rem;
    }

    .welcome-content p {
        font-size: 0.9375rem;
    }

    .welcome-content .highlight-text {
        font-size: 1rem;
    }

    .floating-message p {
        font-size: 1.25rem;
    }

    .info-block {
        padding: 20px;
    }

    .info-block h3 {
        font-size: 1.25rem;
    }

    .info-block p {
        font-size: 0.875rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card {
        padding: 20px 16px;
    }

    .card h2 {
        font-size: 1.125rem;
        margin-bottom: 20px;
    }

    .footer-privacy {
        padding: 32px 12px 20px;
    }

    .footer-grid {
        gap: 24px;
    }

    .footer-block h4 {
        font-size: 1.125rem;
        margin-bottom: 16px;
    }

    .footer-block p {
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-icon svg {
        width: 20px;
        height: 20px;
    }

    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 4px;
        max-height: 300px;
    }

    .number-cell {
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    #page-info {
        font-size: 0.8125rem;
    }

    .selected-display {
        padding: 12px;
    }

    .selected-display strong {
        font-size: 1.125rem;
    }

    .confirmation-details {
        padding: 16px;
    }

    .detail-item {
        font-size: 0.9375rem;
        padding: 10px 0;
    }

    .prize-item {
        padding: 16px;
    }
}

/* Legal Modal */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.legal-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.legal-modal-header {
    background: linear-gradient(135deg, #198d8c 0%, #15706f 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.legal-modal-header h2 {
    margin: 0;
    font-family: 'Hatter Display Pro', sans-serif;
    font-size: 1.5rem;
    flex: 1;
}

.legal-modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.legal-modal-close:hover,
.legal-modal-close:focus {
    transform: scale(1.2);
}

.legal-modal-body {
    padding: 32px;
    overflow-y: auto;
    color: #334155;
    line-height: 1.7;
}

.legal-modal-body h3 {
    color: #198d8c;
    font-family: 'Hatter Display Pro', sans-serif;
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 12px;
    color: #475569;
}

.legal-modal-body ul,
.legal-modal-body ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-modal-body li {
    margin-bottom: 8px;
    color: #475569;
}

.legal-modal-body strong {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }

    .legal-modal-header {
        padding: 20px 24px;
        flex-direction: row;
    }

    .legal-modal-header h2 {
        font-size: 1.125rem;
    }

    .legal-modal-close {
        font-size: 28px;
    }

    .legal-modal-body {
        padding: 24px 20px;
    }

    .legal-modal-body h3 {
        font-size: 1.125rem;
    }
}

.prize-description {
    font-size: 0.9375rem;
}

.rules-list li {
    font-size: 0.9375rem;
    padding: 10px 0;
    padding-left: 24px;
}