/* --- Splash Screen Layout --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--display-bg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    text-align: center;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: auto 0;
}
.splash-logo {
    font-family:
        "Special Elite",
        -apple-system,
        sans-serif;
    font-size: 56px;
    font-weight: bold;
    color: var(--title-text);
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.instructions-card {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px;
    max-width: 425px;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.instructions-card h2 {
    font-size: 18px;
    color: var(--title-text);
    margin-bottom: 14px;
    font-weight: 700;
}
.instructions-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #2c2c2e;
    user-select: none;
}
#play-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 28px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s ease;
}
#play-btn:active {
    transform: scale(0.96);
    background-color: #222222;
}
#facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1877f2;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(24, 119, 242, 0.25);
    border-radius: 24px;
    padding: 10px 24px;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
#facebook-link:hover {
    background: rgba(24, 119, 242, 0.08);
    color: #166fe5;
}
#facebook-link:active {
    transform: scale(0.96);
}
.playlin-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    line-height: 0;
    border-radius: 28px;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.playlin-pill:hover {
    opacity: 0.85;
}
.playlin-pill:active {
    transform: scale(0.97);
}
/* Pin the pill to the bottom of the splash screen */
#splash-screen .playlin-pill {
    margin: 0 0 calc(32px + env(safe-area-inset-bottom)) 0;
}
