/* --- daily-gift.css ----------------------------------------------------------
 *
 * The daily gift dialog, on every page that has a rail. It is the same story
 * as wallet.css: the gift was markup on the lobby, so the rail's "Daily gift"
 * on the other twenty pages was an <a href="/#daily-gift"> that took you off
 * whatever you were doing to reach it. It is one dialog now, opened in place.
 *
 * Every rule is scoped to #daily-gift-modal, for the reason wallet.css sets
 * out at length: a new class name protects against nothing when the rule that
 * reaches in is addressed to the element, and this dialog carries a button
 * onto eighteen game pages whose control panels all style buttons themselves.
 * An id outranks any element, attribute or class rule a page can have,
 * whatever order the sheets load in.
 *
 * .rank-badge and .rank-GOLD and friends are NOT redefined here: they are in
 * shell.css, which every one of these pages already loads, and the badge
 * should read the same in the dialog as it does in the header.
 */

#daily-gift-modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(4, 2, 10, 0.78);
    backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 20px;
    font-family: var(--font-ui);
}
#daily-gift-modal.open { display: flex; }

#daily-gift-modal .gift-box {
    width: 350px; max-width: 100%;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 14px; padding: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
#daily-gift-modal .gift-title {
    font-size: 17px; font-weight: 900; letter-spacing: 1px; color: #fff;
    text-align: center; margin-bottom: 18px;
}

#daily-gift-modal .gift-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 15px;
}
#daily-gift-modal .gift-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
#daily-gift-modal .gift-label {
    font-size: 10px; font-weight: 800; letter-spacing: 0.9px;
    color: var(--text-muted);
}
#daily-gift-modal .gift-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; min-height: 34px;
}
#daily-gift-modal .gift-amount {
    font-size: 20px; font-weight: 800; color: #fff;
}
#daily-gift-modal .gift-btn {
    background: var(--accent); color: var(--surface-sunken);
    border: none; padding: 8px 16px; border-radius: 4px;
    font-family: var(--font-ui); font-size: 11px; font-weight: 800;
    letter-spacing: 0.5px; cursor: pointer;
}
#daily-gift-modal .gift-btn:disabled { opacity: 0.55; cursor: default; }
#daily-gift-modal .gift-timer {
    display: none;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    color: var(--text-muted);
}

/* Fills over the 24 hours, so a glance says how close the next one is. */
#daily-gift-modal .gift-track {
    width: 100%; height: 2px; background: var(--surface); margin-top: 10px;
}
#daily-gift-modal .gift-bar {
    width: 0; height: 100%; background: var(--accent);
    transition: width 1s linear;
}

#daily-gift-modal .gift-status {
    min-height: 16px; margin-top: 12px;
    font-size: 11px; font-weight: 700; text-align: center;
    color: var(--text-muted);
}
#daily-gift-modal .gift-status.good { color: var(--accent); }
#daily-gift-modal .gift-status.bad  { color: var(--danger); }

#daily-gift-modal .gift-close {
    width: 100%; margin-top: 14px;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 8px; padding: 10px;
    font-family: var(--font-ui); font-size: 11px; font-weight: 800;
    letter-spacing: 0.5px; cursor: pointer;
}
#daily-gift-modal .gift-close:hover { color: #fff; border-color: var(--border-strong); }
