/* Luogo segreto: reuses the site theme (style.css, reveal.css); only layout and game widgets live here. */
.luogo-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.luogo-heading {
    font-size: 2.2em;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.luogo-main > .howto-button {
    align-self: center;
    margin-top: 0;
}

.luogo-card {
    background-color: #dce5dc;
    color: #1b1b1b;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.luogo-card button,
.luogo-card .btn-primary,
.luogo-card .btn-secondary,
.luogo-home {
    min-height: 44px;
    margin-top: 0;
}

/* style.css sizes .btn-secondary for two-up rows (14px); stacked here under primary buttons it read as a slip. */
.luogo-card .btn-secondary {
    font-size: 18px;
}

.luogo-card:focus-within .luogo-title {
    outline: none;
}

.luogo-title {
    font-size: 1.5rem;
    text-align: center;
    overflow-wrap: anywhere;
}

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

.luogo-intro,
.luogo-hint,
.luogo-why,
.luogo-message {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.luogo-hint {
    color: #333;
}

.luogo-why {
    text-align: center;
}

.luogo-player-row {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    align-items: end;
    margin-bottom: 4px;
}

.luogo-player-row label {
    grid-column: 1 / -1;
}

.luogo-remove {
    flex: none;
    min-width: 44px;
    font-size: 20px;
}

.luogo-error {
    color: #8a1c1c;
    font-weight: 600;
    min-height: 1.2em;
}

.luogo-clock {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.luogo-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.luogo-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.luogo-choice {
    overflow-wrap: anywhere;
}

.luogo-secret {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.luogo-secret-name {
    font-size: 1.6rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.luogo-secret-body {
    line-height: 1.5;
}

.luogo-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 15px;
    flex: none;
}

.luogo-card button:focus-visible,
.luogo-home:focus-visible,
.luogo-card input:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.luogo-card input:focus-visible {
    outline-color: #1b1b1b;
}

@media (max-width: 480px) {
    .luogo-card {
        padding: 16px;
    }

    .luogo-clock {
        font-size: 3.2rem;
    }
}

/* Quick discussion lengths above the minutes field. */
.luogo-quick-minutes {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.luogo-quick-pick {
    flex: 1;
    min-height: 44px;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    color: #2a2a2a;
    background: #ffffff;
    cursor: pointer;
}

.luogo-quick-pick[aria-pressed="true"] {
    color: #ffffff;
    background: #2a2a2a;
}

.luogo-quick-pick:focus-visible {
    outline: 3px solid #1d1d3a;
    outline-offset: 2px;
}
