* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #0b0b0b;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Video de fondo */
.video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

/* Barra superior y selector de idioma */
.top-bar {
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 20;
}
.lang-selector {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid #333;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: #777;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.lang-btn.active {
    color: #ffffff;
}
.lang-divider {
    color: #444;
    font-size: 0.75rem;
}

/* Contenedor del Logo */
.master-brand-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}
.master-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

/* Tarjeta Central con opacidad ajustada y efecto cristal */
.clock-container {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 40px 35px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Vista Reloj */
#clock {
    font-size: 3rem;
    font-family: monospace;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 5px;
}
#date {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
#action-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
#action-btn:hover {
    background: #d4af37;
    color: #0b0b0b;
}

/* Vista Contenido / Resultado */
.hidden {
    display: none !important;
}
#view-content {
    text-align: left;
}
.kodeX-badge {
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
#verse-title {
    text-align: center;
    font-size: 1.1rem;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
#verse-text {
    font-style: italic;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pearl-box {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}
.decree-box {
    background: rgba(28, 28, 28, 0.85);
    border-left: 3px solid #d4af37;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.decree-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
#decree-text {
    font-size: 0.9rem;
    color: #f0f0f0;
    line-height: 1.5;
    font-style: italic;
}
.rules-notice {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.sub-btn {
    background: #ffffff;
    color: #0b0b0b;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}
.sub-btn:hover {
    background: #e0e0e0;
}
.sub-btn.secondary {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}
.sub-btn.secondary:hover {
    border-color: #888;
    color: #fff;
}

/* Lienzo de exportación 9:16 oculto */
.export-card-hidden {
    display: none;
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1080px;
    height: 1920px;
    background-color: #0b0b0b;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 140px 90px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
}
.export-logo-container {
    text-align: center;
}
.export-logo-container img {
    width: 200px;
    height: auto;
}
.export-content-body {
    background: rgba(20, 20, 20, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 70px 60px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.export-content-body .kodeX-badge {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-align: center;
    color: #888;
}
.export-content-body h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #d4af37;
    margin-bottom: 30px;
}
.export-content-body p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
}
.export-content-body .pearl-box {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #bbb;
}
.export-content-body .decree-box {
    padding: 30px;
    border-left: 5px solid #d4af37;
    background: rgba(28, 28, 28, 0.95);
}
.export-content-body .decree-label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #888;
}
.export-content-body #decree-text-export {
    font-size: 1.5rem;
    font-style: italic;
}
.export-footer {
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
}