/* ============================================================
   Home page — extends admin.css design system
   ============================================================ */

.home-loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.home-loading-overlay i {
    font-size: 2rem;
    color: var(--accent);
}

.home-body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   HERO
   ============================================================ */

.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 24px;
    width: 100%;
    max-width: 360px;
}

.home-hero {
    text-align: center;
}

.home-title {
    font-family: 'Young Serif', serif;
    font-size: 3rem;
    font-weight: normal;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.home-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ============================================================
   ACTIONS
   ============================================================ */

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#homeDefaultActions,
#joinGameForm,
#joinForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}

.home-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.home-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.home-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.home-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 6px;
}

.home-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.875rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: color 0.15s;
}

.home-install-btn:hover {
    color: var(--text);
}

/* ============================================================
   iOS INSTALL PROMPT
   ============================================================ */

.ios-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 24px 20px 32px;
    transform: translateY(0);
    transition: transform 0.35s ease;
    z-index: 9999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.ios-prompt.hidden {
    display: none;
}

.ios-prompt.visible {
    transform: translateY(0);
}

.ios-prompt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--border);
    border: none;
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.ios-prompt-close:hover {
    background: var(--muted);
    color: var(--surface);
}

.ios-prompt-title {
    font-family: 'Young Serif', serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 12px;
    padding-right: 32px;
}

.ios-prompt-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 14px;
}

.ios-prompt-instructions {
    display: none;
}

.ios-prompt-instructions p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 4px;
}

.ios-prompt-instructions p:first-child {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}
