.home-hint {
    position: fixed;
    left: 0.9rem;
    right: 0.9rem;
    bottom: calc(5.1rem + env(safe-area-inset-bottom));
    z-index: 40;
    animation: home-hint-in 280ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.home-hint-card {
    background: #FFF8EC;
    border: 1px solid rgba(27, 42, 74, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(45, 34, 53, 0.12);
    padding: 0.85rem 0.95rem 0.75rem;
}

.home-hint-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--text, #1B2A4A);
    line-height: 1.3;
}

.home-hint-body {
    margin: 0.28rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted, #7A6A78);
    line-height: 1.4;
}

.home-hint-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.home-hint-dismiss,
.home-hint-add {
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 750;
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

.home-hint-dismiss {
    background: transparent;
    color: var(--muted, #7A6A78);
}

.home-hint-add {
    background: #1B2A4A;
    color: #FFF8EC;
}

.home-hint-add.hidden,
.home-hint.hidden {
    display: none;
}

body.record-path-own .home-hint,
body.record-path-type .home-hint,
body.record-path-tell .home-hint,
body.record-path-teller .home-hint,
body.teller-open .home-hint,
body.keyboard-open .home-hint,
body.room-counting .home-hint,
body.room-recording .home-hint,
body.room-review .home-hint,
body.room-sent .home-hint,
body:has(.credits-overlay:not(.hidden)) .home-hint,
body:has(.lib-detail-overlay:not(.hidden)) .home-hint,
body:has(.story-detail-overlay:not(.hidden)) .home-hint {
    display: none !important;
}

html[data-daypart="night"] .home-hint-card {
    background: #1F345C;
    border-color: rgba(255, 248, 236, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
html[data-daypart="night"] .home-hint-title {
    color: #FFF8EC;
}
html[data-daypart="night"] .home-hint-body,
html[data-daypart="night"] .home-hint-dismiss {
    color: rgba(255, 248, 236, 0.78);
}
html[data-daypart="night"] .home-hint-add {
    background: #FFD65C;
    color: #1B2A4A;
}

@media (min-width: 500px) {
    body:not(.admin-mode) .home-hint {
        left: 50%;
        right: auto;
        width: calc(min(430px, 100vw) - 1.8rem);
        transform: translateX(-50%);
    }
}

@keyframes home-hint-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
