/* V27.7.10.3 — canonical front-door / onboarding layout. */
.rcm-home-page {
    min-height: calc(100dvh - var(--rcm-global-footer-height, 38px));
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.rcm-home-card {
    width: min(92vw, 430px);
    position: relative;
    margin: 10px auto 12px;
    padding: 18px 18px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid #334155;
    border-radius: 18px;
    background: #0b1220;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}


.rcm-home-slogan {
    margin: 0;
    color: #dbeafe;
    font-size: clamp(16px, 4vw, 19px);
    font-style: italic;
    font-weight: 800;
    text-align: center;
}

.rcm-home-logo-link {
    width: min(78vw, 325px);
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.rcm-home-logo {
    width: 100%;
    height: auto;
    display: block;
}

.rcm-home-verify-email,
.rcm-home-verify-email:visited,
.rcm-home-verify-email:hover,
.rcm-home-verify-email:active,
.rcm-home-verify-email:focus {
    width: min(92%, 330px);
    min-height: 38px;
    margin: -1px auto 0;
    padding: 7px 12px;
    border: 2px solid #ef4444;
    border-radius: 9px;
    background: #991b1b;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
    text-transform: none;
}

.rcm-home-stage-name {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.rcm-home-stage-name > span { white-space: nowrap; }

.rcm-home-username,
.rcm-home-username:visited {
    display: inline;
    color: #ffd400;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rcm-home-username:hover { text-decoration: underline; }

.rcm-home-notice {
    width: 100%;
    max-height: 190px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 3px solid #0ea5e9;
    border-radius: 2px;
    background: #0d1726;
    color: #dbeafe;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #0f172a;
}

.rcm-home-notice:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 3px;
}

.rcm-home-notice-tagline {
    margin: 0 0 10px;
    color: #f59e0b;
    font-size: clamp(16px, 4.2vw, 19px);
    font-style: italic;
    font-weight: 950;
    line-height: 1.18;
    text-align: center;
    text-wrap: balance;
}

.rcm-home-notice h2 {
    margin: 0 0 7px;
    color: #38bdf8;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.rcm-home-status-line {
    margin: 0 0 9px;
    padding: 5px 7px;
    border: 1px solid #334155;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
}

.rcm-home-notice-copy p {
    margin: 0 0 9px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.38;
    text-align: left;
}

.rcm-home-notice-copy p:last-child { margin-bottom: 0; }

.rcm-home-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    justify-items: stretch;
}

.rcm-home-actions .entity-action-btn {
    min-width: 0;
    min-height: 39px;
    padding: 8px 10px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.rcm-home-lookaround {
    background: #15803d;
    border-color: #22c55e;
}

.rcm-home-signin,
.rcm-home-create-fan {
    background: #1d7acb;
    border-color: #60a5fa;
}

.rcm-home-actions.is-guest .rcm-home-create-fan {
    grid-column: 1 / -1;
    width: 52%;
    justify-self: center;
}

.rcm-home-actions.is-guest .rcm-home-install-button {
    grid-column: 1 / -1;
    width: 68%;
    justify-self: center;
}

.rcm-home-actions.is-signed-in .rcm-home-lookaround {
    grid-column: 1 / -1;
    width: 52%;
    justify-self: center;
}

.rcm-home-actions.is-signed-in .rcm-home-logout {
    grid-column: 1 / -1;
    width: 34%;
    justify-self: center;
}

.rcm-home-actions.is-signed-in .rcm-home-install-button {
    grid-column: 1 / -1;
    width: 68%;
    justify-self: center;
}

.rcm-home-logout,
.rcm-home-logout:visited,
.rcm-home-logout:hover,
.rcm-home-logout:active,
.rcm-home-logout:focus {
    background: #991b1b;
    border-color: #ef4444;
    color: #fff;
}

.rcm-home-install-button,
.rcm-home-install-button:visited {
    background: #7c3aed;
    border-color: #a78bfa;
    color: #fff;
}

.rcm-home-install-button.is-installed {
    background: #166534;
    border-color: #4ade80;
}


.rcm-home-update-button,
.rcm-home-update-button:visited {
    grid-column: 1 / -1;
    width: 52%;
    justify-self: center;
    background: #0f4c5c;
    border-color: #22d3ee;
    color: #fff;
}

.rcm-home-update-button:hover,
.rcm-home-update-button:active {
    background: #155e75;
    border-color: #67e8f9;
}

.rcm-home-update-button:disabled {
    opacity: .72;
    cursor: wait;
}


@media (max-width: 460px) {
    .rcm-home-card {
        width: calc(100vw - 30px);
        margin-top: 8px;
        padding: 16px 14px 14px;
        gap: 11px;
    }
    .rcm-home-notice { max-height: 184px; }
    .rcm-home-notice-copy p { font-size: 12.5px; }
    .rcm-home-actions .entity-action-btn { font-size: 14px; }
}

