/* ==========================================================================
   M-Addon
   Flat surfaces, hairline borders, one accent. No gradients, no glow, no
   blur except the single overlay layer. Reskin by changing --accent.
   ========================================================================== */

:root {
    /* one accent only */
    --accent:      #E0E0E0;
    --accent-dim:  rgba(224, 224, 224, .12);
    --accent-line: rgba(224, 224, 224, .30);
    --accent-ink:  #0E0F11;   /* text drawn on top of --accent */

    --base:  #0E0F11;
    --panel: #16181B;
    --high:  #1D2024;

    --line:      rgba(255, 255, 255, .07);
    --line-hard: rgba(255, 255, 255, .12);

    --text:  #EDEFF2;
    --dim:   rgba(255, 255, 255, .62);
    --micro: rgba(255, 255, 255, .45);

    --danger: #C85A50;
    --good:   #5A9E72;

    /* 4px spacing scale */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;

    --r:    8px;
    --r-sm: 6px;
    --r-shell: 22px;

    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: transparent;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    color: var(--text);
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

body { pointer-events: none; }        /* only the tablet re-enables input */
#stage { pointer-events: auto; }

.hidden { display: none !important; }

button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--micro);
    white-space: nowrap;
}

/* numbers everywhere are tabular */
.stat-value, .progress-value, .hud-count, .hud-time, .rank-no, .rank-score,
.row-stock, .row-level, .node, .facts b, .drop-qty, .drop-odds, .hud-xp b { font-variant-numeric: tabular-nums; }

/* ========================================================== TABLET SHELL */
.stage { position: fixed; inset: 0; display: grid; place-items: center; }

.backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, .68);
    opacity: 0;
    transition: opacity 140ms var(--ease);
}
.stage.in .backdrop { opacity: 1; }

.tablet {
    position: relative;
    opacity: 0;
    transform: scale(.94);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.stage.in .tablet { opacity: 1; transform: none; }
.stage.out .tablet { opacity: 0; transform: scale(.96); transition-duration: 160ms; }
.stage.out .backdrop { opacity: 0; transition-duration: 160ms; }

.bezel {
    position: relative;
    width: min(1260px, 82vw);
    height: min(760px, 80vh);
    padding: 14px 14px 22px;
    border-radius: var(--r-shell);
    background: #0A0B0D;
    border: 1px solid var(--line-hard);
}

.camera {
    position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #05060700;
    border: 1px solid var(--line-hard);
}

.screen {
    position: relative;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--base);
}
/* power-on flash, decays once */
.stage.in .screen { animation: power 180ms var(--ease); }
@keyframes power { from { filter: brightness(1.6) } to { filter: none } }

.glare { position: absolute; inset: 0; pointer-events: none; }

.gesture-bar {
    position: absolute; bottom: 8px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.16);
}

/* ============================================================ STATUS BAR */
.statusbar {
    flex: 0 0 28px;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--s4);
    font-size: 11px;
    color: var(--micro);
    border-bottom: 1px solid var(--line);
}
.status-left  { display: flex; align-items: center; gap: var(--s2); letter-spacing: .06em; }
.status-right { display: flex; align-items: center; gap: var(--s2); justify-self: end; }
.status-center { color: var(--dim); }

.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.signal i { width: 2px; background: var(--micro); border-radius: 1px; }
.signal i:nth-child(1) { height: 3px } .signal i:nth-child(2) { height: 5px }
.signal i:nth-child(3) { height: 7px } .signal i:nth-child(4) { height: 9px }
.signal i.dim { background: rgba(255,255,255,.16) }

.battery {
    position: relative; width: 20px; height: 10px;
    border: 1px solid var(--line-hard); border-radius: 3px; padding: 1.5px;
}
.battery::after {
    content: ''; position: absolute; right: -3px; top: 3px;
    width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: var(--line-hard);
}
.battery-fill { display: block; height: 100%; background: var(--good); border-radius: 1px; }

/* ================================================================ LAYOUT */
.app { flex: 1; display: flex; min-height: 0; }

/* ---------------------------------------------------------- SIDEBAR ---- */
.sidebar {
    flex: 0 0 208px;
    display: flex; flex-direction: column; gap: var(--s5);
    padding: var(--s5) 0 var(--s4);
    border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); }
.brand-mark {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--accent); color: var(--accent-ink);
    font-size: 13px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-text strong { font-size: 13px; font-weight: 600; }
.brand-text span { font-size: 11px; color: var(--micro); }

.nav-groups { display: flex; flex-direction: column; gap: var(--s5); }
.nav-group { display: flex; flex-direction: column; gap: var(--s2); }
.nav-heading { padding: 0 var(--s4); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--micro); }

.nav { position: relative; display: flex; flex-direction: column; }

.nav-item {
    position: relative;
    display: flex; align-items: center; gap: var(--s3);
    height: 36px;
    padding: 0 var(--s4);
    font-size: 13px;
    color: var(--dim);
    text-align: left;
    transition: background 120ms var(--ease), color 120ms var(--ease);
}
.nav-item::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 180ms var(--ease);
}
.nav-item:hover { background: rgba(255,255,255,.02); color: var(--text); }
.nav-item.active { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active::before { transform: scaleY(1); }

.nav-ico { flex: 0 0 16px; height: 16px; display: grid; place-items: center; color: var(--micro); }
.nav-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.nav-item.active .nav-ico { color: var(--accent); }

.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 11px; color: var(--micro); font-variant-numeric: tabular-nums; }

.quit {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    margin-inline: var(--s4);
    height: 34px; padding: 0 var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 12px; color: var(--dim);
    transition: border-color 120ms var(--ease), color 120ms var(--ease);
}
.quit:hover { border-color: var(--line-hard); color: var(--text); }
.key { font-size: 11px; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.05); color: var(--micro); }

/* ------------------------------------------------------------- MAIN ---- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.header {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: var(--s5);
    padding: var(--s4) var(--s5);
    border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: var(--s1); }
.stat-end { text-align: right; }
.stat-value { font-size: 20px; font-weight: 700; line-height: 1.2; }

.progress {
    display: flex; flex-direction: column; gap: var(--s2);
    min-width: 0; padding: 0 var(--s5);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.progress-value { font-size: 12px; }

.track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.track-fill { height: 100%; background: var(--accent); transition: width 400ms var(--ease); }
.track-fill.pulse { animation: pulse 400ms var(--ease); }
@keyframes pulse { 50% { opacity: .55 } }

.progress-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--micro); }
.node { min-width: 16px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.05); color: var(--dim); text-align: center; }
.node.hidden-node { visibility: hidden; }
.remaining { color: var(--micro); }

.content {
    flex: 1; overflow-y: auto;
    padding: var(--s5);
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
}
.content::-webkit-scrollbar { width: 6px }
.content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px }

/* tab switch + staggered entry */
.view { animation: viewIn 200ms var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.view.leaving { animation: viewOut 90ms var(--ease) forwards; }
@keyframes viewOut { to { opacity: 0 } }

.stagger { opacity: 0; animation: rowIn 220ms var(--ease) both; animation-delay: calc(var(--i) * 20ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* ====================================================== RESOURCE CARDS */
.rows { display: flex; flex-direction: column; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--s3);
    align-content: start;
}

.card {
    display: flex; flex-direction: column; gap: var(--s3);
    padding: var(--s4);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.card:hover { background: var(--high); border-color: var(--line-hard); }
.card.locked { opacity: .45; }
.card.locked:hover { background: var(--panel); border-color: var(--line); }
.card.working { border-color: var(--accent-line); box-shadow: inset 2px 0 0 var(--accent); }

.card-top { display: flex; align-items: center; gap: var(--s3); }

.card-img {
    position: relative;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: var(--micro);
    overflow: hidden;
}
.card-img.no-image { background: rgba(255,255,255,.04); border-radius: var(--r-sm); }

.card-title { flex: 1; min-width: 0; }
.card-title strong { display: block; font-size: 13px; font-weight: 600; }
.card-title span { font-size: 11px; color: var(--micro); }

.card-meta { display: flex; flex-direction: column; gap: var(--s2); }
.meta-line { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: 12px; }
.meta-line em { font-style: normal; color: var(--micro); }
.meta-line b { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 500; color: var(--dim); min-width: 0; }
.meta-line b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-stock { display: flex; flex-direction: column; gap: var(--s1); }
.card-stock .stock-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }

.card-actions { display: flex; gap: var(--s2); margin-top: auto; }
.card-actions .btn:not(.help) { flex: 1; }

.pill {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255,255,255,.06);
    color: var(--micro);
    white-space: nowrap;
}
.pill.on { background: var(--accent); color: var(--accent-ink); }

.row {
    display: grid;
    grid-template-columns: 40px minmax(0,1.4fr) minmax(0,1fr) 64px 132px auto;
    align-items: center;
    gap: var(--s4);
    height: 64px;
    padding: 0 var(--s3);
    border-bottom: 1px solid var(--line);
    transition: background 120ms var(--ease);
}
.row:hover { background: var(--panel); }
.row.locked { opacity: .45; cursor: not-allowed; }
.row.locked:hover { background: none; }
.row.working { background: var(--panel); box-shadow: inset 2px 0 0 var(--accent); }

.row-img {
    position: relative;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: var(--micro);
    overflow: hidden;
}
.row-img.no-image { background: rgba(255,255,255,.04); border-radius: var(--r-sm); }
.thumb-img { width: 100%; height: 100%; object-fit: contain; }
.inline-img { width: 16px; height: 16px; object-fit: contain; }

.row-name { min-width: 0; }
.row-name strong { display: block; font-size: 13px; font-weight: 600; }
.row-name span { font-size: 11px; color: var(--micro); }

.row-tool { display: flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--dim); min-width: 0; }
.row-tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.row-level { font-size: 12px; color: var(--dim); }

.row-stock { display: flex; flex-direction: column; gap: var(--s1); font-size: 12px; color: var(--dim); }
.bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); transition: width 400ms var(--ease); }

.row-actions { display: flex; align-items: center; gap: var(--s2); }

.lock { display: inline-flex; align-items: center; gap: var(--s1); font-size: 11px; color: var(--micro); }
.lock svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* --------------------------------------------------------- BUTTONS ---- */
.btn {
    height: 30px; padding: 0 var(--s3);
    border-radius: var(--r-sm);
    background: var(--accent); color: var(--accent-ink);
    font-size: 12px; font-weight: 600;
    transition: background 120ms var(--ease);
}
.btn:hover { background: #FFFFFF; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.btn.ghost { background: transparent; color: var(--dim); border: 1px solid var(--line-hard); }
.btn.ghost:hover { background: rgba(255,255,255,.04); color: var(--text); }

.btn.stop { background: transparent; color: var(--danger); border: 1px solid rgba(200,90,80,.4); }
.btn.stop:hover { background: rgba(200,90,80,.1); }

.btn.help { width: 30px; padding: 0; text-align: center; }

/* ========================================================== QUEST ROWS */
.qrow {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) 150px minmax(0,1fr) auto;
    align-items: center; gap: var(--s4);
    min-height: 64px; padding: var(--s3);
    border-bottom: 1px solid var(--line);
    transition: background 120ms var(--ease);
}
.qrow:hover { background: var(--panel); }
.qrow.done { opacity: .5; }

.qrow-name strong { display: block; font-size: 13px; font-weight: 600; }
.qrow-name span { font-size: 11px; color: var(--micro); }

.qrow-progress { display: flex; flex-direction: column; gap: var(--s1); font-size: 12px; color: var(--dim); }

.qrow-rewards { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.tagline { display: inline-flex; align-items: center; gap: var(--s1); }
.tagline.xp { color: var(--accent); }
.tagline.cash { color: var(--good); }

/* ========================================================= LEADERBOARD */
.table { width: 100%; border-collapse: collapse; }
.table thead th {
    padding: 0 var(--s3) var(--s2);
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--micro); text-align: left; font-weight: 500;
    border-bottom: 1px solid var(--line);
}
.table th.num, .table td.num { text-align: right; }
.table th.rank, .table td.rank { width: 48px; text-align: center; }

.table td { padding: var(--s3); border-bottom: 1px solid var(--line); font-size: 13px; }
.table tr.top td.rank { color: var(--accent); font-weight: 700; }
.table td.rank { color: var(--micro); font-variant-numeric: tabular-nums; }
.table td.num { font-variant-numeric: tabular-nums; }
.table tr.self td { border-top: 1px solid var(--line-hard); background: var(--panel); }
.table tr.self td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

.empty { display: grid; place-items: center; padding: var(--s6); color: var(--micro); font-size: 13px; }

/* ======================================================== DETAIL PANEL */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 30; }

.overlay-scrim {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);      /* the only blurred layer in the UI */
    animation: fade 140ms var(--ease);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.panel {
    position: relative;
    width: min(720px, 92%);
    max-height: min(540px, 88%);
    display: flex; flex-direction: column;
    background: var(--base);
    border: 1px solid var(--line-hard);
    border-radius: var(--r);
    animation: panelIn 200ms var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: scale(.97) } to { opacity: 1; transform: none } }

.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
    padding: var(--s4) var(--s5);
    border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.panel-title h2 { font-size: 15px; font-weight: 600; }
.panel-title span { font-size: 11px; color: var(--micro); }

.panel-thumb {
    position: relative; width: 40px; height: 40px;
    display: grid; place-items: center;
    font-size: 14px; font-weight: 700; color: var(--micro);
    overflow: hidden;
}
.panel-thumb.no-image { background: rgba(255,255,255,.04); border-radius: var(--r-sm); }

.panel-close {
    width: 26px; height: 26px; border-radius: var(--r-sm);
    color: var(--micro); font-size: 12px;
    transition: background 120ms var(--ease), color 120ms var(--ease);
}
.panel-close:hover { background: rgba(255,255,255,.06); color: var(--text); }

.panel-body {
    flex: 1; overflow-y: auto;
    padding: var(--s5);
    display: flex; flex-direction: column; gap: var(--s5);
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
}
.panel-body::-webkit-scrollbar { width: 6px }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px }

.panel-section h4 {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--micro); font-weight: 500;
    margin-bottom: var(--s3);
}
.panel-section p { font-size: 13px; line-height: 1.6; color: var(--dim); }

.banner {
    padding: var(--s3) var(--s4);
    border: 1px solid rgba(200,90,80,.35);
    border-radius: var(--r-sm);
    font-size: 12px; color: var(--danger);
}

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--s3); }
.steps li {
    position: relative; counter-increment: step;
    padding-left: var(--s6);
    font-size: 13px; line-height: 1.6; color: var(--dim);
}
.steps li::before {
    content: counter(step) '.';
    position: absolute; left: 0; top: 0;
    width: 20px; text-align: right;
    color: var(--accent); font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.needs { display: flex; align-items: center; gap: var(--s3); }
.needs-img { width: 36px; height: 36px; display: grid; place-items: center; }
.needs-text strong { display: block; font-size: 13px; }
.needs-text span { font-size: 11px; color: var(--micro); }

.drops { display: flex; flex-direction: column; }
.drop {
    display: grid; grid-template-columns: 20px 1fr auto 56px;
    align-items: center; gap: var(--s3);
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.drop:last-child { border-bottom: 0 }
.drop-qty { color: var(--dim) }
.drop-odds { color: var(--micro); text-align: right }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--base); font-size: 12px; }
.facts em { font-style: normal; color: var(--micro) }
.facts b { font-weight: 600 }

.panel-foot { display: flex; gap: var(--s2); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.panel-foot .btn { height: 34px; }
.panel-foot .spacer { flex: 1 }

/* ============================================================== HUD ==== */
.hud {
    position: fixed; top: 50%;
    width: 236px;
    display: flex; flex-direction: column; gap: var(--s3);
    padding: var(--s4);
    background: rgba(14, 15, 17, .92);
    border: 1px solid var(--line);
    border-radius: var(--r);
    pointer-events: none;                 /* never blocks the game */
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.hud.right { right: var(--s5); transform: translate(16px, -50%); }
.hud.left  { left:  var(--s5); transform: translate(-16px, -50%); }
.hud { opacity: 0; }
.hud.in.right, .hud.in.left { opacity: 1; transform: translate(0, -50%); }
.hud.muted { opacity: 0; }

.hud-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.hud-id { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.hud-thumb { width: 18px; height: 18px; display: grid; place-items: center; }
.hud-thumb .thumb-img { width: 18px; height: 18px; }
.hud-id strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-time { font-size: 11px; color: var(--micro); }

.hud-main { display: flex; flex-direction: column; gap: var(--s1); }
.hud-count { font-size: 28px; font-weight: 700; line-height: 1; transition: color 200ms var(--ease); }
.hud-count.flash { color: var(--accent); }

.hud-breakdown { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 11px; color: var(--dim); }
.hud-chip { display: inline-flex; align-items: center; gap: var(--s1); }
.hud-chip .inline-img { width: 13px; height: 13px; }

.hud-xp { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--micro); padding-top: var(--s2); border-top: 1px solid var(--line); }
.hud-xp b { color: var(--text); font-size: 12px; }

.hud-quest { display: flex; flex-direction: column; gap: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--line); }
.hud-quest-name { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-quest-count { font-size: 11px; color: var(--micro); font-variant-numeric: tabular-nums; }

.hud-hint { font-size: 11px; color: var(--micro); }

/* ============================================================ TOAST ==== */
.toast {
    position: fixed; top: 40px; left: 50%;
    width: 380px;
    display: flex; flex-direction: column; gap: var(--s1);
    padding: var(--s3) var(--s4);
    background: rgba(14, 15, 17, .95);
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: var(--r-sm);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

.toast-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.toast-name { font-size: 15px; font-weight: 600; }
.toast-rewards { display: flex; align-items: center; gap: var(--s3); font-size: 12px; color: var(--dim); margin-top: var(--s1); }
.toast-rewards:empty { display: none; }
.toast-rewards .inline-img { width: 15px; height: 15px; }

/* ======================================================== RESPONSIVE === */
@media (min-width: 2200px) { .bezel { width: 1480px; height: 860px } }
@media (max-height: 820px) { .bezel { height: 90vh } }
@media (max-width: 1200px) {
    .bezel { width: 95vw }
    .sidebar { flex-basis: 176px }
    .row { grid-template-columns: 40px minmax(0,1.3fr) minmax(0,1fr) 52px 108px auto; gap: var(--s3) }
    .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }

    /* .stagger starts at opacity 0 and is revealed by its animation, so with
       animations disabled the rows would never appear. */
    .stagger, .view { opacity: 1 !important; transform: none !important; }
}
