:root {
    --help-bg: #fff;
    --help-fg: #1a1a1a;
    --help-accent: #007BFF;
    --help-border: #ededed;            /* softer */
    --help-shadow: 0 4px 12px rgba(0,0,0,.05);
    --help-accent-ink: #0f55c7;        /* readable blue for text */
    --help-accent-bg: rgba(0,123,255,.08);
    --help-accent-bg-hover: rgba(0,123,255,.14);
    --help-accent-border: rgba(0,123,255,.28);
}

#help {
    margin-top: 12px;
    min-height: 44px;                  /* slightly smaller */
    margin-bottom: 48px;
}

.hm-help {
    display: flex;
    justify-content: center;           /* center contents */
    align-items: center;
    gap: 1.5rem;                        /* tighter */
    padding: .65rem .85rem;            /* smaller */
    background: var(--help-bg);
    color: var(--help-fg);
    border: 1px solid var(--help-border);
    border-radius: 12px;
    box-shadow: var(--help-shadow);

    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hm-help.is-visible { opacity: 1; transform: translateY(0); }

.hm-help__text {
    margin: 0;
    text-align: center;
    font: 500 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial; /* smaller */
}

.hm-help__link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    padding: .28rem .6rem;             /* compact button */
    border-radius: 9999px;             /* pill */
    white-space: nowrap;

    /* ghost/outline look */
    color: var(--help-accent-ink);
    background: var(--help-accent-bg);
    border: 1px solid var(--help-accent-border);
}
.hm-help__link:hover { background: var(--help-accent-bg-hover); }

/* Sticky variant stays subtle */
.hm-help--sticky {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    border-left: none; border-right: none; border-bottom: none;
    border-radius: 12px 12px 0 0;
    /* box-shadow: 0 -3px 10px rgba(0,0,0,.04); */
    box-shadow: var(--help-shadow);
}

/* Mobile tweaks */
@media (max-width: 540px) {
    .hm-help { border-radius: 12px; }
    .hm-help__text { font-size: 13.5px; }
}

/* Dark mode */
/* @media (prefers-color-scheme: dark) { */
/*     :root { */
/*         --help-bg: #111; */
/*         --help-fg: #eee; */
/*         --help-border: #222; */
/*         --help-shadow: none; */
/*         --help-accent-ink: #7fb4ff; */
/*         --help-accent-bg: rgba(0,123,255,.18); */
/*         --help-accent-bg-hover: rgba(0,123,255,.26); */
/*         --help-accent-border: rgba(0,123,255,.32); */
/*     } */
/* } */
