/* ===== CEREMONY MODE ===== */
#ceremony-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a1628;
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

#ceremony-overlay.active { display: flex; }

#ceremony-intro { text-align: center; animation: ceremonyFadeIn 0.8s ease; }
#ceremony-intro h1 { font-size: 3.5rem; color: #f0c040; font-weight: 900; letter-spacing: 0.05em; margin-bottom: 1rem; }
#ceremony-intro h2 { font-size: 1.8rem; color: rgba(255,255,255,0.8); font-weight: 400; }

#ceremony-card {
    display: none;
    width: 94vw;
    max-width: 1400px;
    height: 72vh;
    min-height: unset;
    background: white;
    border-radius: 16px;
    border: 6px solid #1e6b3a;
    box-shadow: 0 0 60px rgba(30,107,58,0.5);
    padding: 3rem 5rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ceremony-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#ceremony-card.top3  { border-color: #b8860b; box-shadow: 0 0 80px rgba(184,134,11,0.6); }
#ceremony-card.first { border-color: #f0c040; box-shadow: 0 0 100px rgba(240,192,64,0.7); }

.ceremony-tournament-name { font-size: 0.9rem; color: #666; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.ceremony-main-title      { font-size: 1.3rem; font-weight: 800; color: #1e6b3a; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.ceremony-certifica       { font-size: 1rem; color: #555; margin-bottom: 0.5rem; }
.ceremony-player-name     { font-size: 3rem; font-weight: 900; color: #1a1a1a; margin-bottom: 0.2rem; line-height: 1.1; }
.ceremony-player-nick     { font-size: 1.1rem; color: #777; font-style: italic; margin-bottom: 2rem; }
.ceremony-ha-raggiunto    { font-size: 1rem; color: #555; margin-bottom: 0.5rem; }
.ceremony-title-name      { font-size: 3rem; font-weight: 900; margin-bottom: 0.8rem; }
.ceremony-data            { font-size: 0.85rem; color: #888; margin-bottom: 0.5rem; }
.ceremony-next            { font-size: 0.85rem; color: #1e6b3a; font-style: italic; }
.ceremony-next strong     { display: block; font-size: 0.95rem; font-style: normal; }

.ceremony-pos-badge {
    background: #f0c040;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    margin-bottom: 1.2rem;
}

#ceremony-controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10001;
}

#ceremony-controls button {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

#ceremony-controls button:hover { background: rgba(255,255,255,0.3); }

#ceremony-progress {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    z-index: 10001;
}

#fireworks-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 999999;
    display: none;
}

@keyframes ceremonyFadeIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}
