/* Boosts (js/boosts.js, docs/boosts.md): the banner in the bottom corner of every page while a boost runs, and the
   account page's "Your boosts". Below the sticky header (z-index 100) and the image viewers (200); the "What's new"
   popup is a modal <dialog> in the top layer, so it always covers the banner. */
.boost-toasts {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;   /* only the cards take clicks */
}

.boost-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 40px 12px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-line);
    background: rgba(14, 13, 22, 0.96);
    box-shadow: var(--shadow), 0 0 32px rgba(143, 123, 255, 0.18);
    font-size: 0.86rem;
    line-height: 1.4;
}

.boost-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-hi);
    box-shadow: 0 0 14px rgba(143, 123, 255, 0.28);
}

.boost-body { min-width: 0; }
.boost-name {
    font-family: var(--font-head);
    font-weight: 600;
    color: #fff;
}
.boost-target { margin-left: 4px; font-size: 0.68rem; vertical-align: 1px; }
.boost-bonus { color: var(--muted); }
.boost-bonus b { color: var(--accent-hi); font-weight: 600; }
.boost-play { white-space: nowrap; }
.boost-left { margin-top: 2px; color: var(--muted); }
.boost-count { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.boost-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
}
.boost-close:hover,
.boost-close:focus-visible {
    transform: none;
    filter: none;
    box-shadow: none;
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

/* "Together: +100% EXP" over the cards while two or more boosts run */
.boost-total {
    pointer-events: auto;
    align-self: flex-end;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent-line);
    background: rgba(30, 24, 60, 0.96);
    box-shadow: 0 0 22px rgba(143, 123, 255, 0.22);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
}

/* the next start of a boost ("starts in 01:12:00"): quieter than a running one */
.boost-toast.boost-next { border-style: dashed; box-shadow: var(--shadow); }
.boost-toast.boost-next .boost-ico { background: transparent; box-shadow: none; }

/* the account page's "Your boosts" */
.boost-row-total .boost-total { align-self: auto; display: inline-block; }
.boost-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.boost-row { display: flex; align-items: flex-start; gap: 12px; }
.boost-sep { margin: 0 6px; color: var(--faint); }

@media (max-width: 600px) {
    .boost-toasts { right: 16px; left: 16px; width: auto; }
    .boost-toast { padding: 10px 38px 10px 10px; font-size: 0.82rem; }
    .boost-ico { width: 30px; height: 30px; }
}

@media print {
    .boost-toasts { display: none; }
}

/* It slides up once when it appears (state, docs/branding.md "Motion"); with reduce motion it just appears. */
@media (prefers-reduced-motion: no-preference) {
    .boost-toast.boost-new { animation: boost-in 0.3s ease-out both; }
}
@keyframes boost-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
