/* Add to Home Screen Icon */
#add-to-home-screen-container {
    position: fixed;
    z-index: 1000;
    cursor: pointer;
    text-align: center;
    display: none; /* Hidden by default, shown by JS */
}

#add-to-home-screen-container img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#add-to-home-screen-container .prompt-text {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #333;
    margin-top: 4px;
    background: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Portrait */
@media (orientation: portrait) {
    #add-to-home-screen-container {
        top: 12px;
        right: 12px;
    }
}

/* Landscape */
@media (orientation: landscape) {
    #add-to-home-screen-container {
        bottom: 12px;
        left: 12px;
    }
}

/* Modal from helper file */
:root { --bg: #0b0b0c; --fg: #f5f7fb; --muted: #9aa3b2; --brand: #3b82f6; --border: #21242a; }

.a2hs-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 9998; }
.a2hs-backdrop[aria-hidden="false"] { display: flex; }
.a2hs-modal { width: min(720px, 95vw); background: #121317; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,0.55); color: var(--fg); }
.a2hs-modal header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.a2hs-modal header h2 { font-size: 18px; margin: 0; }
.a2hs-modal header small { color: var(--muted); font-weight: 500; }
.a2hs-modal .content { padding: 16px 18px; line-height: 1.55; }
.a2hs-steps { margin: 0; padding: 0 0 0 20px; }
.a2hs-steps li { margin: 6px 0; }
.a2hs-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.a2hs-modal footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 18px 18px; border-top: 1px solid var(--border); }
.a2hs-btn { appearance: none; border: 1px solid var(--border); background: #1a1c22; color: var(--fg); padding: 10px 14px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.a2hs-btn:hover { filter: brightness(1.05); }
.a2hs-btn.done { background: var(--brand); border-color: var(--brand); color: white; }
.kwd { background: #181a20; border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
