/* Pass-and-reveal panel: one player at a time, secret visible only while pressed. */
.reveal-panel {
    background-color: #dce5dc;
    color: #1b1b1b;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    min-height: 80vh;
    min-height: 80dvh;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reveal-title {
    margin: 0;
    text-align: center;
    font-size: 1.6rem;
    overflow-wrap: anywhere;
}

.reveal-title:focus {
    outline: none;
}

.reveal-hold {
    flex: 1 1 auto;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #ffffff;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    overflow-wrap: anywhere;
}

.reveal-hold:focus-visible,
.reveal-next:focus-visible {
    outline: 3px solid #ffd54a;
    outline-offset: 3px;
}

.reveal-secret {
    font-size: 1.5rem;
    font-weight: bold;
}

.reveal-secret:empty {
    display: none;
}

.reveal-hint {
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
}

.reveal-next {
    margin-top: 0;
    min-height: 44px;
}

.reveal-next:disabled {
    background: #5a5a5a;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
}

@media (min-width: 1024px) {
    .reveal-panel {
        min-height: 60vh;
    }
}

#revealModal {
    padding: 20px 0;
}

.reveal-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reveal-role {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.reveal-role-icon {
    font-size: 2.6rem;
}

.reveal-role-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.reveal-role-team {
    color: #ffd54a;
}

.reveal-role-description {
    margin: 0;
    line-height: 1.5;
}

.reveal-return {
    justify-content: center;
}

/* QR share dialog: one hold-to-see panel for a single player. */
#qrModal {
    z-index: 1100;
    padding: 20px 0;
}

#qrModal .reveal-panel {
    min-height: 0;
}

.qr-close {
    position: absolute;
    top: 8px;
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.qr-close:focus-visible {
    outline: 3px solid #333366;
    outline-offset: 3px;
}

.reveal-secret svg {
    display: block;
    max-width: 100%;
    height: auto;
    background: #ffffff;
}

/* "Giocatore 2 di 5" under the name: how far the round has gone. */
.reveal-progress {
    margin: -6px 0 12px;
    text-align: center;
    font-size: 0.95em;
    font-weight: 600;
    color: #444444;
}

/* Nebbie: who the narrator is, visible to every player while the phone goes round. */
.reveal-narrator {
    box-sizing: border-box;
    max-width: 600px;
    margin: 20px 16px 14px;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #1d1d3a;
    background: #ffd700;
}

@media (min-width: 632px) {
    .reveal-narrator {
        margin: 20px auto 14px;
    }
}

/* ruolo.html: an unreadable link explains itself and leads to the games. */
.role-message-help {
    margin-top: 10px;
    text-align: center;
    font-size: 0.95em;
}

.role-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: #2a2a2a;
}

.role-home-link:focus-visible {
    outline: 3px solid #1d1d3a;
    outline-offset: 3px;
}
