/* The player home (/home): Overview, Statistics and Progress tabs. Uses the site's own tokens from homepage.css. */

.hd-page [hidden] { display: none !important; }
.hd-page *, .hd-page *::before, .hd-page *::after { box-sizing: border-box; }
.hd-page { display: flex; flex-direction: column; gap: 1.25rem; color: var(--text-primary, #f8f9fa); }
.hd-page > .dashboard-hero { margin-bottom: 0; }

/* top-level tabs */
.hd-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.hd-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted, #8c9ab0); font: inherit; cursor: pointer; }
.hd-tab b { font-size: 0.95rem; font-weight: 700; }
.hd-tab small { font-size: 0.74rem; }
.hd-tab:hover { color: #fff; }
.hd-tab:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.hd-tab.is-active { background: #2a2040; color: #fff; }

/* shared pieces */
.hd-card { background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); border-radius: 16px; }
.hd-panel { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.15rem; min-width: 0; }
.hd-panel > h3, .hd-panel-head h3 { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.hd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.hd-muted { font-size: 0.8rem; color: var(--text-muted, #8c9ab0); }
.hd-sect { display: flex; flex-direction: column; gap: 1rem; }
.hd-h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.hd-sub { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--text-muted, #8c9ab0); }
.hd-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-secondary, #d998ff); }
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.14)); background: transparent; color: var(--text-primary, #f8f9fa); font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.hd-btn:hover { background: var(--bg-hover, #21182d); color: #fff; }
.hd-btn:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.hd-btn--primary { background: #7a42ee; border-color: #7a42ee; color: #fff; }
.hd-btn--primary:hover { background: #8a58f2; border-color: #8a58f2; }
.hd-btn--sm { min-height: 38px; padding: 0 0.85rem; font-size: 0.82rem; }
.hd-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(245, 158, 11, 0.16); color: #fcd34d; font-size: 0.72rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.hd-pill--accent { background: rgba(143, 92, 255, 0.2); color: #e4d3ff; }
.hd-pill--ok { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.hd-pill--bad { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.hd-pill--soft { background: rgba(255, 255, 255, 0.07); color: var(--text-secondary, #c4d1e3); }
.hd-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted, #8c9ab0); }
.hd-delta.is-up { color: #6ee7a8; }
.hd-delta.is-down { color: #fda4af; }
.hd-track { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hd-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent-primary, #8f5cff); }
.hd-track i.is-good { background: #22c55e; }
.hd-track i.is-mid { background: #f59e0b; }
.hd-track i.is-bad { background: #fb7185; }
.hd-seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-dark, #110d18); border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12)); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hd-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 38px; padding: 0 0.95rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-secondary, #c4d1e3); font: inherit; font-size: 0.85rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.hd-seg button em { font-style: normal; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.hd-seg button:hover { color: #fff; }
.hd-seg button.is-active { background: #2a2040; color: #fff; }
.hd-seg button:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.hd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hd-link { color: var(--accent-secondary, #d998ff); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.hd-link:hover { color: #fff; }
button.hd-link { padding: 0; border: 0; background: none; font: inherit; font-size: 0.82rem; cursor: pointer; }

/* next move + quick actions */
.hd-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.hd-next { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 1.3rem; border-color: rgba(143, 92, 255, 0.5); }
.hd-next h2 { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.hd-next p { margin: 0; font-size: 0.88rem; color: var(--text-muted, #8c9ab0); }
.hd-next-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: #fcd34d; }
.hd-next-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.hd-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; align-content: start; }
.hd-qa a { display: flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.4rem 0.6rem 0.4rem 0.5rem; border-radius: 14px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); color: inherit; text-decoration: none; min-width: 0; }
.hd-qa a:hover { border-color: rgba(143, 92, 255, 0.45); background: var(--bg-hover, #21182d); color: inherit; }
.hd-qa a.is-disabled { opacity: 0.55; pointer-events: none; }
.hd-qa a i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(143, 92, 255, 0.18); color: #e4d3ff; flex: none; }
.hd-qa a span { display: flex; flex-direction: column; min-width: 0; }
.hd-qa a b { font-size: 0.85rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-qa a small { display: none; }

/* numbers */
.hd-range { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.hd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.hd-kpi { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; padding: 1.1rem; border-radius: 14px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.hd-kpi.is-hero { background: #1d1530; border-color: rgba(143, 92, 255, 0.45); }
.hd-kpi > span.hd-lab { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.hd-kpi b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.hd-kpi small { font-size: 0.76rem; color: var(--text-secondary, #c4d1e3); }

/* activity and form */
.hd-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.hd-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.hd-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.hd-feed-row { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0.75rem; border-radius: 12px; background: var(--bg-dark, #110d18); color: inherit; text-decoration: none; }
.hd-feed-row:hover { background: var(--bg-hover, #21182d); color: inherit; }
.hd-feed-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(143, 92, 255, 0.18); color: #e4d3ff; }
.hd-feed-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hd-feed-kind { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-secondary, #d998ff); }
.hd-feed-main b { font-size: 0.86rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-feed-main small { font-size: 0.74rem; color: var(--text-muted, #8c9ab0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-feed-res { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hd-feed-res b { font-size: 0.88rem; }
.hd-feed-more { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hd-form { display: flex; gap: 6px; flex-wrap: wrap; }
button.hd-chip { padding: 0; border: 0; font-family: inherit; }
button.hd-chip:hover { filter: brightness(1.25); }
button.hd-chip:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.hd-chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; cursor: help; }
.hd-chip.is-win { background: rgba(34, 197, 94, 0.18); color: #6ee7a8; }
.hd-chip.is-loss { background: rgba(251, 113, 133, 0.18); color: #fda4af; }
.hd-chip.is-draw { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.hd-weeks { display: flex; align-items: flex-end; gap: 6px; height: 86px; }
.hd-weeks div { flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(143, 92, 255, 0.4); min-height: 4px; }
.hd-weeks div.is-now { background: var(--accent-primary, #8f5cff); }

/* the hover card of a match (shown by index-pages.js, same as on the tournaments list) */
.ix-tip { position: fixed; z-index: 2200; max-width: 260px; padding: 0.7rem 0.85rem; border-radius: 12px; border: 1px solid var(--accent-primary, #8f5cff); background: #1f1830; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary, #c4d1e3); pointer-events: none; }
.ix-tip[hidden] { display: none; }
.ix-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; font-weight: 700; color: #fff; }
.ix-tip-head .is-win { color: #6ee7a8; } .ix-tip-head .is-loss { color: #fda4af; } .ix-tip-head .is-draw { color: #fcd34d; }
.ix-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; margin: 0; }
.ix-tip dt { font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-tip dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.ix-tip p { margin: 0.45rem 0 0; font-style: italic; color: var(--text-muted, #8c9ab0); }

/* cards strip (decks, insights, this week, meta) */
.hd-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.hd-slots { display: flex; gap: 5px; }
.hd-slots i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.hd-slots i.is-on { background: var(--accent-primary, #8f5cff); }
.hd-lrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.65rem; border-radius: 12px; background: var(--bg-dark, #110d18); color: inherit; text-decoration: none; }
a.hd-lrow:hover { background: var(--bg-hover, #21182d); color: inherit; }
.hd-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); font-size: 0.74rem; font-weight: 800; }
.hd-lrow b { display: block; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-lrow small { display: block; font-size: 0.7rem; color: var(--text-muted, #8c9ab0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-ins { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.hd-ins i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.hd-ins i.is-good { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.hd-ins i.is-bad { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.hd-ins i.is-mid { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.hd-ins b { display: block; font-size: 0.82rem; }
.hd-ins span { font-size: 0.78rem; color: var(--text-muted, #8c9ab0); }
.hd-task { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; }
.hd-task > i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.hd-task.is-done > i { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.hd-task b { display: block; font-size: 0.82rem; margin-bottom: 5px; }
.hd-task em { font-style: normal; font-size: 0.74rem; color: var(--text-muted, #8c9ab0); }
.hd-level { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border-radius: 14px; background: #1d1530; border: 1px solid rgba(143, 92, 255, 0.4); }
.hd-level b { font-size: 1.05rem; }
.hd-empty { margin: 0; font-size: 0.82rem; color: var(--text-muted, #8c9ab0); }

/* statistics tab */
.hd-filters { padding: 1rem; }
.hd-subtabs { display: flex; }
.hd-pane-gap { display: flex; flex-direction: column; gap: 1rem; }
.hd-bars { display: flex; align-items: flex-end; gap: 0.75rem; height: 170px; padding-top: 8px; }
.hd-bcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; color: inherit; text-decoration: none; min-width: 0; }
.hd-bcol b { font-size: 0.74rem; }
.hd-bcol .hd-bar { width: 100%; border-radius: 8px 8px 3px 3px; background: rgba(143, 92, 255, 0.55); }
.hd-bcol.is-top .hd-bar { background: var(--accent-primary, #8f5cff); }
.hd-bcol:hover .hd-bar { filter: brightness(1.2); }
.hd-bcol span { font-size: 0.7rem; font-weight: 600; color: var(--text-muted, #8c9ab0); }
.hd-brow { display: flex; flex-direction: column; gap: 6px; }
.hd-bhead { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.82rem; font-weight: 600; }
.hd-bhead small { font-weight: 400; color: var(--text-muted, #8c9ab0); }
.hd-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: center; text-align: center; }
.hd-vs b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hd-vs span { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 600; color: var(--text-muted, #8c9ab0); }
.hd-vs em { font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--text-muted, #8c9ab0); }
.hd-decks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hd-deck { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem; min-width: 0; }
.hd-deck-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.hd-deck-top a { color: inherit; font-size: 0.98rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.hd-deck-top a:hover { color: var(--accent-secondary, #d998ff); }
.hd-deck-top small { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--text-muted, #8c9ab0); }
.hd-dkv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.hd-dkv div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0.55rem 0.2rem; border-radius: 10px; background: var(--bg-dark, #110d18); min-width: 0; }
.hd-dkv b { font-size: 0.95rem; }
.hd-dkv span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.hd-edge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.hd-edge div { padding: 0.6rem 0.7rem; border-radius: 10px; background: var(--bg-dark, #110d18); min-width: 0; }
.hd-edge .is-best { border-left: 3px solid #22c55e; }
.hd-edge .is-worst { border-left: 3px solid #fb7185; }
.hd-edge span { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.hd-edge b { display: block; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-edge small { font-size: 0.7rem; color: var(--text-muted, #8c9ab0); }

/* progress tab */
.hd-badges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.hd-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0.9rem 0.5rem; border-radius: 14px; background: var(--bg-dark, #110d18); text-align: center; }
.hd-badge i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.hd-badge.is-locked i { background: rgba(255, 255, 255, 0.06); color: var(--text-muted, #8c9ab0); }
.hd-badge b { font-size: 0.76rem; line-height: 1.25; }
.hd-badge small { font-size: 0.66rem; color: var(--text-muted, #8c9ab0); }

/* tablet */
@media (max-width: 1100px) {
    .hd-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hd-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* phone: less scrolling */
@media (max-width: 767.98px) {
    .hd-page { gap: 0.9rem; }
    .hd-page .dashboard-kicker { display: none !important; }
    .hd-page .dashboard-subtitle { display: none; }
    .hd-tabs { position: sticky; top: 8px; z-index: 20; padding: 4px; gap: 4px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
    .hd-tab { min-height: 46px; padding: 6px; border-radius: 10px; }
    .hd-tab b { font-size: 0.85rem; }
    .hd-tab small { display: none; }
    .hd-next { padding: 1rem; gap: 0.45rem; }
    .hd-next h2 { font-size: 1.1rem; }
    .hd-next-actions .hd-btn { flex: 1 1 140px; }
    .hd-top { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .hd-qa { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -0.75rem; padding: 0 0.75rem 2px; }
    .hd-qa a { flex: 0 0 auto; scroll-snap-align: start; }
    .hd-range .hd-sub { display: none; }
    .hd-range { align-items: center; }
    .hd-range > div:last-child, .hd-range .hd-seg { width: 100%; }
    .hd-range .hd-seg button { flex: 1; }
    .hd-kpis { gap: 0.5rem; }
    .hd-kpi { padding: 0.8rem; gap: 0.35rem; }
    .hd-kpi b { font-size: 1.45rem; }
    .hd-kpi.is-hero { grid-column: 1 / -1; }
    .hd-kpi.is-hero b { font-size: 2.1rem; }
    .hd-kpi .hd-hm { display: none; }
    .hd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hd-split, .hd-two, .hd-decks { grid-template-columns: minmax(0, 1fr); }
    .hd-panel { padding: 0.95rem; gap: 0.7rem; }
    .hd-feed-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 0.55rem; gap: 0.6rem; }
    .hd-feed-ic { width: 34px; height: 34px; }
    .hd-feed-more { display: none; }
    .hd-form { flex-wrap: nowrap; gap: 4px; }
    .hd-form .hd-chip { flex: 1; width: auto; height: 32px; border-radius: 8px; }
    .hd-weeks-card { display: none; }
    .hd-strip { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -0.75rem; padding: 0 0.75rem 6px; scrollbar-width: none; }
    .hd-strip > .hd-card { flex: 0 0 84%; scroll-snap-align: start; }
    .hd-kpi-hidden-m { display: none; }
    .hd-bars { height: 150px; gap: 0.5rem; }
    .hd-dkv { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
    .hd-vs b { font-size: 1.4rem; }
    .hd-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hd-edge { grid-template-columns: minmax(0, 1fr); }
}

/* the header of /home: greeting on the left, the three things you do most on the right, the invite as a quiet link under them */
.hd-page .dashboard-hero { padding: 1.15rem 1.5rem; }
.hd-page .dashboard-hero__content { align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.hd-page .dashboard-hero__copy { min-width: 0; }
.hd-page .dashboard-kicker { display: flex; align-items: center; gap: 0.45rem; width: auto; padding: 0; margin: 0 0 0.35rem; border: 0; background: none; border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.hd-page .dashboard-kicker, .hd-page .dashboard-kicker span { color: var(--text-muted, #8c9ab0) !important; }
.hd-page .dashboard-title-row { flex-wrap: wrap; margin-bottom: 0; }
.hd-page .dashboard-premium-gem { display: inline-flex; align-items: center; gap: 0.4rem; width: auto; height: auto; flex: 0 0 auto; padding: 0.3rem 0.75rem; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #2b1a00 !important; }
.hd-page .dashboard-premium-gem--supporter { color: #fff !important; }
.hd-page .dashboard-hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; }
.hd-page .dashboard-hero__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.hd-page .dashboard-invite { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.1rem; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.hd-page .dashboard-invite, .hd-page .dashboard-invite span { color: var(--text-muted, #8c9ab0) !important; }
.hd-page .dashboard-invite span { font-weight: 500; }
.hd-page .dashboard-invite span::before { content: '·'; margin-right: 0.45rem; }
.hd-page .dashboard-invite:hover, .hd-page .dashboard-invite:hover span { color: #fff !important; }
.hd-page .dashboard-invite:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; border-radius: 6px; }

.friend-code-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; margin-bottom: 1rem; border-radius: 12px; background: rgba(143, 92, 255, 0.12); border: 1px solid rgba(143, 92, 255, 0.32); }
.friend-code-box span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0) !important; }
.friend-code-box strong { display: block; font-size: 1.25rem; letter-spacing: 0.06em; color: #fff; }

@media (max-width: 767.98px) {
    .hd-page .dashboard-hero { padding: 0.9rem 1rem; }
    .hd-page .dashboard-hero__actions { display: none; }
    .hd-page .dashboard-hero__side { align-items: flex-start; width: 100%; }
    .friend-code-box { flex-wrap: wrap; }
}
