:root {
    --bg-primary: #0b0d15;
    --bg-secondary: #11131f;
    --card-bg: rgba(17, 19, 31, 0.55);
    --card-border: rgba(99, 102, 241, 0.12);
    --text-primary: #f1f3f5;
    --text-secondary: #9198a5;
    --text-muted: #6b7280;

    --primary: #3F4A80;
    --primary-hover: #2E3760;
    --primary-glow: rgba(63, 74, 128, 0.3);

    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);

    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.2);

    --warning: #f59e0b;

    --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 1rem;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(63, 74, 128, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(63, 74, 128, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.logo-img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 16px var(--primary-glow));
}

.main-title {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #f1f3f5 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.header-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color var(--transition-fast);
}

.form-section { margin-bottom: 2rem; }

.form-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-num {
    background: var(--primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0 15px var(--primary-glow);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .input-grid { grid-template-columns: 1fr; }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.required { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
}

input[type="password"] {
    letter-spacing: 0.18em;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

select option {
    background-color: #11131f;
    color: var(--text-primary);
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    height: 1.2rem;
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
}

.error-msg.centered {
    text-align: center;
    height: auto;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.badge.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: #a5b4fc;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.course-item {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.course-item:hover:not(.disabled) {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.course-header {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    user-select: none;
}

.course-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.course-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.course-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.course-checkbox:checked::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.course-checkbox:disabled {
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    cursor: not-allowed;
}

.course-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.course-name {
    font-weight: 600;
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.course-capacity-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-weight: 600;
}

.course-item.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.05);
}

.course-item.selected .course-name {
    color: #a5b4fc;
}

.course-item.selected .course-capacity-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
}

.course-item.disabled { opacity: 0.5; }
.course-item.disabled .course-header { cursor: not-allowed; }

.course-item.full .course-capacity-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.country-selector-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    background: rgba(0, 0, 0, 0.2);
    border-top: 0px solid transparent;
}

.course-item.selected .country-selector-panel {
    max-height: 180px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* El desplegable de sugerencias necesita escapar del contenedor */
.course-item.has-partner { overflow: visible; }

/* Panel ampliado para UNSC: países + sección de compañero sin recortes */
.course-item.selected.has-partner .country-selector-panel {
    max-height: 1000px;
    overflow: visible;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.country-grid-inner {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height var(--transition-smooth), opacity var(--transition-fast), transform var(--transition-fast);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.partner-section.visible {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.9rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
}

.partner-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.partner-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.partner-input.filled {
    border-color: var(--success);
    font-weight: 600;
}

.partner-clear-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.partner-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.partner-suggestions {
    margin-top: 0.35rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    display: none;
    max-height: 190px;
    overflow-y: auto;
}

.partner-suggestions.open { display: block; }

.partner-suggestion-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.partner-suggestion-item:hover,
.partner-suggestion-item.active { background: rgba(99, 102, 241, 0.18); }

.partner-suggestion-item.taken { opacity: 0.55; cursor: not-allowed; }
.partner-suggestion-item.taken:hover { background: transparent; }
.partner-suggestion-badge { font-weight: 700; }

.partner-suggestion-name { font-size: 0.85rem; font-weight: 600; }

.partner-suggestion-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
}

.partner-suggestion-empty {
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.country-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 580px) {
    .country-selectors { grid-template-columns: 1fr; gap: 0.5rem; }
    .course-item.selected .country-selector-panel { max-height: 300px; }
    .course-item.has-partner { overflow: visible; }
    .course-item.selected.has-partner .country-selector-panel { max-height: 1200px; overflow: visible; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
}

.country-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.country-select-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.country-select-group select {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
}

.form-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2E3760 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(63, 74, 128, 0.5);
    background: linear-gradient(135deg, #2E3760 0%, #252D50 100%);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.loading-spinner {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(17, 19, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform var(--transition-smooth);
}

.toast.show { transform: translateX(0); }

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 21, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 1rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
}

@supports (height: 100dvh) {
    .modal {
        max-height: calc(100dvh - 2rem);
    }
}

.modal-overlay.active .modal { transform: scale(1); }

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--success);
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.modal h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.receipt-details {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 0.9rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--text-muted); }
.receipt-row .value { color: var(--text-primary); font-weight: 500; }

.receipt-courses-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.receipt-course-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.receipt-course-name { font-weight: 600; color: #c7d2fe; }
.receipt-course-countries { font-size: 0.75rem; color: var(--text-secondary); }

.verify-step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verify-status {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.verify-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.verify-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.verify-status.warning {
    display: block;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.confirm-step { animation: fadeIn 0.4s ease; }

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

.confirm-step input:disabled {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--success);
    color: #e2e8f0;
    font-weight: 600;
    cursor: default;
}

.confirm-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.confirm-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-buttons .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.locked-msg {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.locked-msg svg {
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Locked section overlay */
#courses-section.locked,
#shirt-section.locked {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

#courses-section.locked .section-header,
#shirt-section.locked .section-header {
    pointer-events: none;
}

/* Talla camisa MUN */
.unisex-badge {
    font-size: 0.5em;
    vertical-align: middle;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.size-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-option { cursor: pointer; }

.size-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.size-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    user-select: none;
}

.size-option:hover span {
    border-color: rgba(99, 102, 241, 0.55);
    color: #c7d2fe;
}

.size-option input:checked + span {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.size-option input:focus-visible + span {
    outline: 2px solid rgba(165, 180, 252, 0.7);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .logo-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    .logo-img {
        max-width: 60px;
        max-height: 60px;
    }
    .main-title {
        font-size: 1.6rem;
    }
}

/* ===== Pantalla de espera / cierre (ventana de inscripciones) ===== */
.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(1200px 800px at 50% 20%, rgba(63, 74, 128, 0.35), transparent 60%), var(--bg-primary);
}
.gate-overlay.active { display: flex; }
.gate-card { text-align: center; max-width: 640px; width: 100%; }
.gate-logo { max-width: min(420px, 78vw); width: 100%; height: auto; margin-bottom: 2rem; filter: drop-shadow(0 10px 40px var(--primary-glow)); }
#gate-title { color: var(--text-primary); font-weight: 700; letter-spacing: .08em; font-size: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1rem; }
.gate-countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    font-size: clamp(3rem, 14vw, 7rem);
    line-height: 1;
    text-shadow: 0 0 30px var(--primary-glow);
}
.gate-countdown.hidden { display: none; }
#gate-subtitle { color: var(--text-secondary); margin-top: 1.25rem; font-size: clamp(.95rem, 2.5vw, 1.15rem); }
