/* ============================================================================
   Broadcast theme — foundation (Phase 5.1)
   Live sports-broadcast dark treatment. Token system + base layer + shared atoms.
   Normative values from hardcoredraft-overhaul/07-design-spec.md §2–§3.
   Sharp cuts (radius 0), hairline grids (no depth shadows), Archivo + IBM Plex Mono,
   colour-coded position tags. Per-view styling lands in 5.2–5.5; this file is the base.
   ============================================================================ */

:root {
    /* — Core palette (§2.1) — */
    --hd-ink: #180320;
    --hd-pink: #ff2d7e;
    --hd-green: #00ff87;
    --hd-cyan: #21e6ff;
    --hd-amber: #ffcc00;
    --hd-purple: #37003c; /* legacy --pl-purple, reused in gradients */

    /* — Position tag pairs (§2.2) — */
    --hd-gk-bg: #ffcc00;  --hd-gk-text: #2a2100;
    --hd-def-bg: #21e6ff; --hd-def-text: #05232b;
    --hd-mid-bg: #00ff87; --hd-mid-text: #06301d;
    --hd-fwd-bg: #ff2d7e; --hd-fwd-text: #2b0413;

    /* — Dark surface ramp (§2.3) — */
    --hd-bg-tv-frame: #0a0110;
    --hd-bg-host: #0d0114;
    --hd-bg: #0f0117;            /* desktop app base */
    --hd-bg-mobile-end: #100118;
    --hd-header-dark: #12021a;   /* header gradient dark end; ticker bg */
    --hd-rail: #120219;          /* best-available rail */
    --hd-cell-empty: #140320;    /* empty / future pick cell */
    --hd-card: #160320;          /* manager/roster card; modal panel */
    --hd-cell-filled: #1a0522;   /* filled pick cell */
    --hd-app-grad-start: #1a0422;
    --hd-mobile-grad-start: #1c0424;
    --hd-surface: #1c0525;       /* meter tiles, search fields, player cards */
    --hd-col-header: #210528;    /* board column header (dense) */
    --hd-avatar: #2a0730;        /* up-next avatar fill */
    --hd-hatch-alt: #22072c;

    /* — Text ramp (§2.4) — */
    --hd-text: #f6eefa;
    --hd-text-max: #ffffff;
    --hd-text-2: #d9c8e2;
    --hd-text-3: #c9b8d4;
    --hd-text-legend: #b79cc2;
    --hd-text-muted: #9b86a8;
    --hd-text-muted-2: #8f7a9c;
    --hd-text-faint: #6b5674;
    --hd-text-empty: #5a4a64;
    --hd-text-empty-2: #4a3a54;
    --hd-text-faintest: #3d2f47;

    /* — Status / semantic (§2.5) — */
    --hd-success: #00ff87;
    --hd-deficit: #ff6a6a;
    --hd-rank: #ff8a3d;   /* draft-rank refs (orange) */
    --hd-live: #ff2d7e;
    --hd-live-red: #ff0033;

    /* — Recurring gradients (§2.3) — */
    --hd-grad-header: linear-gradient(90deg, #37003c, #12021a);
    --hd-grad-body: linear-gradient(180deg, #1a0422, #0f0117);
    --hd-grad-body-mobile: linear-gradient(180deg, #1c0424, #100118);
    --hd-grad-tv-bar: linear-gradient(90deg, #37003c 0%, #210528 60%, #12021a 100%);
    --hd-grad-onclock-hero: linear-gradient(135deg, rgba(0,255,135,.16), rgba(255,45,126,.08));
    --hd-grad-onclock-strip: linear-gradient(90deg, rgba(0,255,135,.16), rgba(0,255,135,.02));

    /* — Typography (§2.7) — */
    --hd-font: 'Archivo', system-ui, -apple-system, sans-serif;
    --hd-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

    /* — Glow shadows (§2.8) — */
    --hd-glow-cta: 0 0 34px rgba(0,255,135,.45);
    --hd-glow-soft: 0 0 22px rgba(0,255,135,.18);
    --hd-elevation-modal: 0 30px 80px rgba(0,0,0,.6);

    /* — Bootstrap dark overrides (kills old Bug A structurally) — */
    --bs-body-bg: #0f0117;
    --bs-body-color: #f6eefa;
    --bs-heading-color: #f6eefa;
    --bs-emphasis-color: #ffffff;
    --bs-border-color: rgba(255, 255, 255, .1);
    --bs-secondary-color: rgba(246, 238, 250, .7);
    --bs-tertiary-color: rgba(246, 238, 250, .5);
    --bs-link-color: #00ff87;
    --bs-link-hover-color: #66ffb4;

    /* Map Bootstrap's semantic colours onto the broadcast palette so NOTHING renders in
       stock Bootstrap blue / light-blue / cream. This is the single source of truth — every
       .btn-primary, .text-primary, .bg-primary, .alert-* inherits from here. */
    --bs-primary: #21e6ff;
    --bs-primary-rgb: 33, 230, 255;
    --bs-info: #21e6ff;
    --bs-info-rgb: 33, 230, 255;
    --bs-success: #00ff87;
    --bs-success-rgb: 0, 255, 135;
    --bs-warning: #ffcc00;
    --bs-warning-rgb: 255, 204, 0;
    --bs-danger: #ff2d7e;
    --bs-danger-rgb: 255, 45, 126;
}

/* ============================== Base layer ============================== */

html, body {
    background: var(--hd-grad-body) fixed;
    /* Solid dark base under the gradient so a mid-scroll repaint gap can never flash the
       browser's white default (esp. Android Chrome with attachment:fixed). */
    background-color: #0f0117;
    color: var(--hd-text);
    font-family: var(--hd-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { color: var(--hd-text); font-family: var(--hd-font); }
a { color: var(--hd-green); }
a:hover { color: #66ffb4; }

/* Sharp cuts everywhere; circles are opt-in (avatars, medallion). */
.btn, .card, .form-control, .form-select, .modal-content, .badge,
.alert, .dropdown-menu, .input-group-text, .list-group-item { border-radius: 0 !important; }

/* Dark the common admin-template + Bootstrap containers so there are no white-card
   flashes of the old theme before per-view styling lands in 5.2–5.5. */
.pc-container, .pcoded-main-container, .pcoded-content, .pc-content,
main, .container, .container-fluid { background: transparent; color: var(--hd-text); }

.card {
    background: var(--hd-card);
    color: var(--hd-text);
    border: 1px solid rgba(255, 255, 255, .08);
}
.card-header, .card-footer {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
    color: var(--hd-text);
}

.modal-content {
    background: var(--hd-card);
    color: var(--hd-text);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--hd-elevation-modal);
}
.modal-header, .modal-footer { border-color: rgba(255, 255, 255, .08); }

.form-control, .form-select, .input-group-text {
    background: var(--hd-surface);
    color: var(--hd-text);
    border: 1px solid rgba(255, 255, 255, .1);
}
.form-control::placeholder { color: var(--hd-text-muted-2); }
.form-control:focus, .form-select:focus {
    background: var(--hd-surface);
    color: var(--hd-text);
    border-color: rgba(0, 255, 135, .4);
    box-shadow: none;
}

.dropdown-menu { background: var(--hd-card); border: 1px solid rgba(255, 255, 255, .1); }
.dropdown-item { color: var(--hd-text); }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(255, 255, 255, .06); color: var(--hd-text-max); }

.table { color: var(--hd-text); --bs-table-bg: transparent; --bs-table-color: var(--hd-text); }
.text-muted { color: var(--hd-text-muted) !important; }

/* ---- Semantic-colour centralisation: no stock Bootstrap blue/cream anywhere ---- */
/* Alerts → dark tinted panels with readable text (was: light-blue info / cream warning) */
.alert-info    { background: rgba(33, 230, 255, .08); border-color: rgba(33, 230, 255, .3); color: var(--hd-text); }
.alert-success { background: rgba(0, 255, 135, .08);  border-color: rgba(0, 255, 135, .3);  color: var(--hd-text); }
.alert-warning { background: rgba(255, 204, 0, .08);  border-color: rgba(255, 204, 0, .3);  color: var(--hd-text); }
.alert-danger  { background: rgba(255, 45, 126, .08); border-color: rgba(255, 45, 126, .3); color: var(--hd-text); }
.alert-info *, .alert-success *, .alert-warning *, .alert-danger * { color: var(--hd-text); }
.alert-info .fw-bold, .alert-info strong { color: var(--hd-cyan); }
.alert-warning .fw-bold, .alert-warning strong { color: var(--hd-amber); }

/* Buttons: kill blue. Primary/info → cyan action; secondary/outline → neutral hairline. */
.btn-primary, .btn-info {
    background: var(--hd-cyan); border-color: var(--hd-cyan); color: #05232b;
}
.btn-primary:hover, .btn-info:hover { filter: brightness(1.08); color: #05232b; }
.btn-outline-primary, .btn-outline-info {
    color: var(--hd-cyan); border-color: rgba(33, 230, 255, .5); background: transparent;
}
.btn-outline-primary:hover, .btn-outline-info:hover { background: var(--hd-cyan); color: #05232b; border-color: var(--hd-cyan); }
.btn-outline-secondary { color: var(--hd-text-3); border-color: rgba(255, 255, 255, .18); background: transparent; }
.btn-outline-secondary:hover { border-color: var(--hd-green); color: var(--hd-green); }

/* Colour utilities → tokens */
.text-primary, .text-info { color: var(--hd-cyan) !important; }
.text-success { color: var(--hd-green) !important; }
.text-warning { color: var(--hd-amber) !important; }
.text-danger  { color: var(--hd-pink) !important; }
.bg-primary, .bg-info { background-color: var(--hd-cyan) !important; color: #05232b !important; }
.bg-success { background-color: var(--hd-green) !important; color: #06301d !important; }
.badge.bg-primary, .badge.text-bg-primary, .badge.bg-info, .badge.text-bg-info { color: #05232b !important; }
.badge.bg-secondary, .badge.text-bg-secondary { background-color: var(--hd-surface) !important; color: var(--hd-text-2) !important; border: 1px solid rgba(255,255,255,.14); }

/* Light-surface utilities → dark surfaces (no white cards / white pills) */
.bg-light, .bg-white, .card.bg-light {
    background-color: var(--hd-surface) !important; color: var(--hd-text) !important;
}
.text-dark, .text-black { color: var(--hd-text) !important; }
.badge.bg-light, .badge.text-bg-light {
    background-color: rgba(255, 255, 255, .06) !important; color: var(--hd-text-2) !important;
    border: 1px solid rgba(255, 255, 255, .14);
}

/* ============================== Keyframes (§2.9) ============================== */

@keyframes hd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@keyframes hd-glow {
    0%, 100% { box-shadow: 0 0 0 1px #00ff87, 0 0 22px rgba(0,255,135,.35); }
    50%      { box-shadow: 0 0 0 1px #00ff87, 0 0 40px rgba(0,255,135,.6); }
}

@keyframes hd-live {
    0%, 100% { transform: scale(1);  opacity: 1; }
    50%      { transform: scale(.7); opacity: .5; }
}

@keyframes hd-shimmer { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Ticker marquee — no keyframe in the design; implementer-added (§2.9). Content is
   duplicated in markup so a -50% translate loops seamlessly. */
@keyframes hd-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Animation utilities */
.hd-mono { font-family: var(--hd-mono); }
.hd-pulse { animation: hd-pulse 1s infinite; }

/* ============================== Shared atoms (§3) ============================== */

/* Position tag chip — solid mono square, per-position bg/text. */
.hd-postag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-family: var(--hd-mono);
    font-weight: 800;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 5px;
}
.hd-postag.gk  { background: var(--hd-gk-bg);  color: var(--hd-gk-text); }
.hd-postag.def { background: var(--hd-def-bg); color: var(--hd-def-text); }
.hd-postag.mid { background: var(--hd-mid-bg); color: var(--hd-mid-text); }
.hd-postag.fwd { background: var(--hd-fwd-bg); color: var(--hd-fwd-text); }

/* // section marker + uppercase Archivo title. */
.hd-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hd-font);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hd-text);
    margin: 0;
}
.hd-section-title::before {
    content: "//";
    font-family: var(--hd-mono);
    font-weight: 800;
    color: var(--hd-pink);
}

/* Segmented position meter tile. Set --hd-seg via .gk/.def/.mid/.fwd on the tile. */
.hd-meter {
    background: var(--hd-surface);
    border: 1px solid rgba(255, 255, 255, .07);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hd-meter.gk  { --hd-seg: var(--hd-gk-bg); }
.hd-meter.def { --hd-seg: var(--hd-def-bg); }
.hd-meter.mid { --hd-seg: var(--hd-mid-bg); }
.hd-meter.fwd { --hd-seg: var(--hd-fwd-bg); }
.hd-meter__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--hd-mono);
    font-weight: 700;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hd-meter__label { color: var(--hd-text-muted); }
.hd-meter__ratio { color: var(--hd-seg, var(--hd-text-muted)); }
.hd-meter__ratio.met  { color: var(--hd-green); }
.hd-meter__ratio.zero { color: var(--hd-deficit); }
.hd-meter__bar { display: flex; gap: 2px; }
.hd-meter__seg { flex: 1; height: 4px; background: rgba(255, 255, 255, .12); }
.hd-meter__seg.filled { background: var(--hd-seg, var(--hd-green)); }

/* Player list row. */
.hd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.hd-row__rank { font-family: var(--hd-mono); font-weight: 700; font-size: 12px; color: var(--hd-text-faint); }
.hd-row__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hd-row__name { font-family: var(--hd-font); font-weight: 800; font-size: 14px; color: var(--hd-text); line-height: 1.1; }
.hd-row__team {
    font-family: var(--hd-mono);
    font-weight: 500;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hd-text-muted);
}
.hd-row__ref {
    margin-left: auto;
    font-family: var(--hd-mono);
    font-weight: 500;
    font-size: 9px;
    color: var(--hd-text-faint);
}

/* Session / join code pill. */
.hd-code-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 6px 10px;
}
.hd-code-pill__label {
    font-family: var(--hd-mono);
    font-weight: 600;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hd-text-muted);
}
.hd-code-pill__code {
    font-family: var(--hd-mono);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--hd-green);
}

/* Buttons — solid-green CTA + outlined variants. */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--hd-font);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: var(--hd-green);
    color: #08281a;
    box-shadow: var(--hd-glow-cta);
    transition: filter .15s ease;
}
.hd-btn:hover { filter: brightness(1.08); color: #08281a; }
.hd-btn--outline {
    background: transparent;
    color: var(--hd-text-3);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none;
}
.hd-btn--outline:hover { color: var(--hd-text-max); border-color: rgba(255, 255, 255, .3); filter: none; }
.hd-btn--ghost {
    background: transparent;
    color: var(--hd-green);
    border: 1px solid rgba(0, 255, 135, .4);
    box-shadow: none;
}
.hd-btn--ghost:hover { background: rgba(0, 255, 135, .08); color: var(--hd-green); filter: none; }

/* Filter chip (+ dot swatch). */
.hd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--hd-font);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--hd-text-3);
    background: transparent;
    cursor: pointer;
}
.hd-chip.active, .hd-chip--all {
    background: var(--hd-text);
    color: var(--hd-ink);
    border-color: var(--hd-text);
    font-weight: 800;
}
.hd-chip__dot { width: 7px; height: 7px; flex: none; }
.hd-chip__dot.gk  { background: var(--hd-gk-bg); }
.hd-chip__dot.def { background: var(--hd-def-bg); }
.hd-chip__dot.mid { background: var(--hd-mid-bg); }
.hd-chip__dot.fwd { background: var(--hd-fwd-bg); }

/* ============================== Toast stack ============================== */
/* One fixed column, top-right on desktop; toasts flow down instead of piling
   on the same coordinate. Duplicates collapse into an ×N counter (see draft-shared). */
#hd-toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.hd-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hd-card);
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 3px solid var(--hd-text-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    padding: 11px 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(14px);
    transition: opacity .2s ease, transform .2s ease;
}
.hd-toast.in { opacity: 1; transform: translateX(0); }
.hd-toast.out { opacity: 0; transform: translateX(14px); }
.hd-toast--success { border-left-color: var(--hd-green); }
.hd-toast--warning { border-left-color: var(--hd-amber); }
.hd-toast--danger  { border-left-color: var(--hd-pink); }
.hd-toast--info    { border-left-color: var(--hd-cyan); }
.hd-toast__msg { flex: 1; min-width: 0; font: 600 12.5px/1.35 var(--hd-font); color: var(--hd-text); }
.hd-toast__count {
    flex: none; font: 700 10px var(--hd-mono); color: var(--hd-ink);
    background: var(--hd-text-3); padding: 2px 6px; border-radius: 10px;
}
.hd-toast__close {
    flex: none; background: none; border: none; color: var(--hd-text-muted);
    font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.hd-toast__close:hover { color: var(--hd-text); }
.hd-toast__action {
    flex: none; border: 1px solid var(--hd-pink); background: transparent; color: var(--hd-pink);
    font: 800 10px var(--hd-mono); letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 10px; cursor: pointer;
}
.hd-toast__action:hover { background: var(--hd-pink); color: var(--hd-ink); }

/* "Keep it live" tips popover (shared: host lobby + host-mode display) */
.hd-tips-overlay {
    position: fixed;
    inset: 0;
    z-index: 10600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 1, 16, .72);
    padding: 20px;
}
.hd-tips-overlay[hidden] { display: none; }
.hd-tips-panel {
    max-width: 460px;
    width: 100%;
    background: var(--hd-card);
    border: 1px solid rgba(255, 255, 255, .12);
    border-top: 3px solid var(--hd-green);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}
.hd-tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    font: 800 13px var(--hd-mono);
    letter-spacing: 2px;
    color: var(--hd-green);
}
.hd-tips-close {
    background: none; border: none; color: var(--hd-text-muted);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.hd-tips-close:hover { color: var(--hd-text); }
.hd-tips-list {
    margin: 0; padding: 4px 18px 18px 34px;
    display: flex; flex-direction: column; gap: 10px;
    font: 500 13.5px/1.5 var(--hd-font);
    color: var(--hd-text-muted);
}
.hd-tips-list strong { color: var(--hd-text); font-weight: 700; }

/* Code blocks + CTA for the hd-tips-shell modals (broadcast-ready / save-your-codes) */
.hd-codes-row { display: flex; gap: 12px; padding: 4px 18px 6px; }
.hd-code-block {
    flex: 1; min-width: 0; text-align: center;
    background: var(--hd-surface);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 12px 8px;
}
.hd-code-block .lbl {
    display: block; font: 700 10px var(--hd-mono); letter-spacing: 2px;
    color: var(--hd-text-muted); margin-bottom: 6px;
}
.hd-code-block .val {
    display: block; font: 800 26px var(--hd-mono); letter-spacing: 4px;
    color: var(--hd-green);
}
.hd-tips-note { padding: 8px 18px 0; font: 500 13px/1.5 var(--hd-font); color: var(--hd-text-muted); }
.hd-tips-note strong { color: var(--hd-text); }
.hd-tips-cta {
    display: block; width: calc(100% - 36px); margin: 14px 18px 18px;
    background: var(--hd-green); color: var(--hd-ink); border: none;
    font: 800 14px var(--hd-font); letter-spacing: 2px; text-transform: uppercase;
    padding: 14px; cursor: pointer; box-shadow: var(--hd-glow-soft);
}
.hd-tips-cta:hover { box-shadow: var(--hd-glow-cta); }

@media (max-width: 768px) {
    /* attachment:fixed on mobile makes Android Chrome flash a white box at the bottom during
       momentum scroll (the fixed layer repaints out of sync). Let it scroll with the page and
       keep the solid dark base as the fallback. */
    html, body { background: var(--hd-grad-body-mobile); background-color: #100118; }

    /* Toasts span the top, clear of any sticky bottom CTA, and never cover the timer. */
    #hd-toast-stack {
        top: calc(8px + env(safe-area-inset-top, 0px));
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
    }
    .hd-toast { padding: 10px 11px; }
    .hd-toast__msg { font-size: 12px; }
}

/* ---------- Voluntary support prompt (_SupportPrompt.cshtml) ----------
   Lobby + post-draft only. Deliberately quiet: a muted panel, not a call to action that
   competes with START DRAFT or the board share. */
.hd-support {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .03);
    padding: 13px 17px; margin-top: 16px;
}
.hd-support > i { color: var(--hd-amber); font-size: 17px; flex: none; }
.hd-support-tx { font: 500 13px/1.5 var(--hd-font); color: var(--hd-text-max, #fff); flex: 1 1 260px; }
.hd-support-btn {
    flex: none; text-decoration: none;
    border: 1px solid var(--hd-amber); color: var(--hd-amber); background: transparent;
    font: 800 11px var(--hd-mono); letter-spacing: 1.5px; padding: 10px 15px;
}
.hd-support-btn:hover { background: var(--hd-amber); color: #2b1d00; }

@media (max-width: 620px) {
    .hd-support { flex-direction: column; align-items: flex-start; }
    .hd-support-btn { width: 100%; text-align: center; }
}

/* The support prompt stacks on narrow screens, which on the drafter completion panel made it
   taller than the share buttons it sits under. Tighten it on phones. */
@media (max-width: 620px) {
    .hd-support { padding: 10px 12px; gap: 8px; }
    .hd-support > i { font-size: 14px; }
    .hd-support-tx { font-size: 12px; line-height: 1.4; flex-basis: auto; }
    .hd-support-btn { padding: 8px 12px; font-size: 10px; }
}
