/* Homepage-only layout: the playable cover is the main visual and action. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#play-intro {
    padding: 1.5rem 0 1rem;
    background: #123b55;
    color: #eff8fb;
}

.play-intro .container,
#official .container {
    max-width: 1000px;
}

.play-intro h1 {
    color: #eff8fb;
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.play-intro p {
    margin: 0;
    color: #d9edf4;
}

#official {
    padding: 0 0 2rem;
    background: #123b55;
    scroll-margin-top: 80px;
}

#official .game-player {
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

#official .game-frame-shell {
    margin: 0;
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 60vh;
    border-radius: 0;
}

#official .game-load-button {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    background: #101827;
    box-shadow: none;
}

#official .game-load-button[hidden] {
    display: none;
}

#official .game-load-button:focus-visible {
    outline: 4px solid #fbbf24;
    outline-offset: -4px;
}

.game-play-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 90%;
    padding: 1rem 1.5rem;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #15803d;
    color: #fff;
    font-size: clamp(1rem, 3vw, 1.25rem);
    box-shadow: 0 8px 24px #0006;
}

.game-load-button:hover .game-play-label {
    background: #166534;
}

.game-quick-controls {
    margin: 0;
    padding: 0.85rem 1rem 0;
    font-size: 0.95rem;
}

.game-quick-controls span,
.game-help span {
    margin: 0 0.35rem;
}

#official a:not(.secondary-button) {
    color: #244780;
    text-underline-offset: 0.2em;
}

#official .game-player-actions {
    padding: 0 1rem;
    margin-top: 0.75rem;
}

#official .game-player-actions > * {
    width: auto;
    min-height: 44px;
    flex: 1 1 auto;
}

#official .game-status,
#official .game-help {
    padding: 0 1rem;
    font-size: 0.9rem;
}

#official .game-help {
    margin: 0.4rem 0 1rem;
    text-align: center;
}

#official .homepage-daily-challenge {
    margin: 0;
    border: 0;
    border-top: 1px solid #cbd5e1;
    border-radius: 0;
}

@media (max-width: 600px) {
    #play-intro { padding-top: 1rem; }
    #official .game-frame-shell { max-height: none; }
    #official .game-player-actions { gap: 0.5rem; }
    #official .game-player-actions > * { font-size: 0.85rem; padding: 0.5rem; }
}

body.game-expanded { overflow: hidden; }

#official .game-player.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

#official .is-expanded .game-frame-shell {
    flex: 1 1 0;
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
}

#official .is-expanded .game-quick-controls,
#official .is-expanded .game-help,
#official .is-expanded .homepage-daily-challenge,
#official .is-expanded #game-share,
#official .is-expanded .game-direct-link {
    display: none;
}

#official .is-expanded .game-player-actions {
    flex-shrink: 0;
    margin: 0;
    padding: 0.5rem;
}

#official .is-expanded .game-status {
    flex-shrink: 0;
    margin: 0 0 0.5rem;
}
