/* Venue-themed games: playful accents, large touch targets and optional finite celebrations. */
.games-shell {
    max-width: 1000px;
    padding-bottom: 32px;
}
.games-back {
    display: inline-block;
    margin: 16px 0;
    font-size: 14px;
}
.games-intro {
    text-align: center;
    padding: 26px 0 20px;
}
.games-intro h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    margin: 16px 0;
}
.games-intro p:last-child {
    color: var(--muted);
}
.games-dot {
    color: var(--accent);
}
.games-worlds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border: 0;
    padding: 0;
    margin: 8px 0 24px;
}
.games-world {
    position: relative;
    cursor: pointer;
}
.games-world input,
.games-mode input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.games-world-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 24px 14px;
    border: 2px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    transition: transform 180ms ease, border-color 180ms ease;
}
.games-world-art {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
    border-radius: 40% 60% 50% 45%;
    font-size: 48px;
    background: #f8e4ac;
    transform: rotate(-5deg);
}
.games-world-explorers .games-world-art {
    background: #d6e9e5;
    transform: rotate(6deg);
}
.games-world-grownups .games-world-art {
    background: #e5dcf3;
}
.games-world strong {
    display: block;
    font-size: 20px;
    margin-bottom: 7px;
}
.games-world small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}
.games-world-check {
    position: absolute;
    right: 14px;
    top: 12px;
    opacity: 0;
}
.games-world input:checked + .games-world-content {
    border-color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 8px 0 -4px var(--line);
}
.games-world input:checked + .games-world-content .games-world-check {
    opacity: 1;
}
.games-world input:focus-visible + .games-world-content,
.games-mode input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
.games-join {
    max-width: 620px;
    margin: 0 auto 28px;
    padding: 28px;
}
.games-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 0;
    padding: 6px;
    background: var(--paper);
    border-radius: 16px;
}
.games-mode label {
    position: relative;
    cursor: pointer;
}
.games-mode span {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid transparent;
}
.games-mode input:checked + span {
    background: var(--surface);
    border-color: var(--line);
    font-weight: 700;
}
.games-team-help {
    font-size: 14px;
    margin: 12px 0 0;
}
.games-alias {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}
.games-alias small,
.games-alias strong {
    display: block;
}
.games-alias small {
    color: var(--muted);
    margin-bottom: 6px;
}
.games-start {
    width: 100%;
    text-align: center;
}
.games-join .fine-print,
.games-privacy {
    font-size: 12px;
    text-align: center;
    margin: 18px 0 0;
    color: var(--muted);
}
.games-arena {
    max-width: 720px;
    margin: 20px auto 32px;
    padding: 36px;
    min-height: 380px;
    position: relative;
}
.games-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 26px;
}
.games-progress-track {
    display: flex;
    gap: 6px;
}
.games-progress-track i {
    width: 28px;
    height: 5px;
    background: var(--line);
    border-radius: 8px;
}
.games-progress-track .is-done {
    background: var(--accent);
}
.games-question-title {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    margin: 14px 0 24px;
}
.games-question-title:focus {
    outline: none;
}
.games-clue {
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--paper);
    border-left: 3px solid var(--accent);
    animation: games-arrive 260ms ease both;
}
.games-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}
.games-option {
    position: relative;
    min-height: 66px;
    padding: 15px 18px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    overflow-wrap: anywhere;
    transition: transform 140ms ease, border-color 140ms ease;
}
.games-option:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}
.games-option[aria-pressed='true'] {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}
.games-option-index {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #f8e4ac;
    color: #173d30;
    margin-right: 8px;
}
.games-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}
.games-actions .button {
    flex-grow: 1;
    text-align: center;
}
.games-hint-note {
    font-size: 12px;
    color: var(--muted);
}
.games-feedback,
.games-finale {
    text-align: center;
    animation: games-arrive 300ms ease both;
}
.games-success-art {
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    width: 94px;
    height: 94px;
    border-radius: 40% 55% 45% 55%;
    background: #f8e4ac;
    color: #173d30;
    font-size: 48px;
    animation: games-pop 550ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.games-feedback h2,
.games-finale h2 {
    font-size: clamp(32px, 5vw, 46px);
}
.games-score {
    display: block;
    font-size: 64px;
    font-weight: 700;
    margin: 18px 0 0;
    color: var(--ink);
    animation: games-pop 500ms ease both;
}
.games-solution {
    font-size: 20px;
    font-weight: 700;
    padding: 18px;
    border-radius: 16px;
    background: var(--paper);
}
.games-report {
    margin: 24px auto 0;
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-decoration: underline;
}
.games-ranking {
    max-width: 720px;
    margin: 24px auto;
}
.games-ranking-heading {
    display: flex;
    gap: 18px;
    align-items: center;
}
.games-ranking-heading > span {
    font-size: 32px;
}
.games-ranking h2 {
    font-size: 26px;
    margin: 0 0 6px;
}
.games-ranking p {
    font-size: 13px;
    color: var(--muted);
}
.games-ranking ol {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.games-ranking li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.games-ranking li strong {
    margin-left: auto;
}
.games-ranking .games-empty {
    color: var(--muted);
    font-size: 14px;
}
.games-error {
    position: relative;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--accent);
    border-radius: 16px;
    margin: 16px 0;
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    scroll-margin: 20px;
}
.games-error-message {
    margin: 0 28px 14px 0;
    font-size: 14px;
    line-height: 1.5;
}
.games-error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.games-error-close {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-size: 26px;
    cursor: pointer;
}
.games-error:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.games-countdown {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
    padding: 24px;
    text-align: center;
}
.games-countdown span {
    font-size: clamp(64px, 13vw, 150px);
    font-weight: 700;
    animation: games-pop 700ms ease infinite;
}
.games-confetti {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow: hidden;
    pointer-events: none;
}
.games-confetti i {
    position: absolute;
    top: -24px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    animation: games-fall 2.8s ease-in forwards;
}
.games-invite {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}
.games-invite-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #f8e4ac;
    color: #173d30;
    font-size: 28px;
}
.games-invite strong,
.games-invite small {
    display: block;
}
.games-invite small {
    color: var(--muted);
    margin-top: 4px;
}
.games-invite > span:last-child {
    margin-left: auto;
}
.games-admin-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin: 24px 0;
}
.games-big-number {
    font-size: 64px;
    font-weight: 700;
}
.games-calendar-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 18px;
}
.games-table-scroll {
    overflow-x: auto;
}
.games-editor-preview article {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.games-editor-preview a {
    overflow-wrap: anywhere;
}
.games-withdraw {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.games-admin .panel {
    margin-bottom: 24px;
}
.games-shell [hidden] {
    display: none !important;
}
.games-shell button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.games-shell button:disabled {
    opacity: 0.55;
    cursor: default;
}
@keyframes games-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    65% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes games-arrive {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes games-fall {
    to {
        transform: translate(var(--game-drift), 110vh) rotate(630deg);
        opacity: 0;
    }
}
@media (max-width: 600px) {
    .games-intro {
        padding-top: 10px;
    }
    .games-worlds {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .games-world-content {
        flex-direction: row;
        text-align: left;
        padding: 14px;
        gap: 14px;
    }
    .games-world-art {
        width: 56px;
        height: 56px;
        font-size: 34px;
        flex-shrink: 0;
        margin: 0;
    }
    .games-world strong {
        font-size: 18px;
    }
    .games-world small {
        font-size: 12px;
        padding-right: 12px;
    }
    .games-world-check {
        top: 9px;
        right: 10px;
    }
    .games-join,
    .games-arena,
    .games-ranking {
        padding: 22px 18px;
    }
    .games-alias {
        flex-wrap: wrap;
    }
    .games-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .games-option {
        min-height: 58px;
    }
    .games-admin-summary {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .games-shell *,
    .games-shell *::before,
    .games-shell *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .games-confetti {
        display: none;
    }
}

/* Archive navigation stays lightweight and uses the venue's existing theme tokens. */
.games-archive-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 8px 0 20px;
    font-size: 14px;
}
.games-archive-navigation a {
    padding: 10px 0;
}
.games-archive-context {
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--surface);
}
.games-archive-context p {
    margin: 6px 0 0;
}
.games-archive-panel {
    max-width: 720px;
    margin: 12px auto 24px;
    padding: 8px 24px;
}
.games-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.games-archive-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
}
.games-archive-list li + li {
    border-top: 1px solid var(--line);
}
.games-archive-list time {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.games-archive-list .button {
    min-height: 44px;
}
@media (max-width: 480px) {
    .games-archive-panel {
        padding: 4px 20px;
    }
    .games-archive-list .button {
        width: 100%;
        text-align: center;
    }
}
