:root {
    --bg-main: #0e1013;
    --bg-surface: #14171c;
    --bg-inset: #1a1e24;
    --border-dim: #262b33;
    --border-bright: #3c4452;
    --text-high: #e6edf3;
    --text-mid: #8b949e;
    --text-low: #545d68;
    --bounty-red: #da3633;
    --accent-land: #4ba2d6;
    --rank-gold: #d29922;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-high);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", monospace, sans-serif;
    padding: 30px 15px;
    display: flex;
    justify-content: center;
    line-height: 1.4;
}

.shell {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Верхняя служебная панель */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dim);
}

.system-tag {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--text-low);
    font-weight: 700;
}

.topbar h1 {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sync-status {
    font-size: 0.8rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #3fb950;
    border-radius: 50%;
}

/* Блоки категорий */
.sections-wrap {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.board-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.block-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.block-header h2 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.block-desc {
    font-size: 0.8rem;
    color: var(--text-mid);
}

/* Сетка: слева крупный #1, справа #2 и #3 */
.target-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 12px;
}

@media (max-width: 680px) {
    .target-layout {
        grid-template-columns: 1fr;
    }
}

/* Левая доминирующая карточка */
.spot-primary {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--rank-gold);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--rank-gold);
}

.primary-visual {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    border: 1px solid var(--border-dim);
    image-rendering: pixelated;
    background-color: var(--bg-inset);
}

.primary-name-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.primary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--border-dim);
    padding-top: 14px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric.highlight .m-value {
    color: var(--bounty-red);
    font-weight: 800;
}

.m-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: 0.5px;
}

.m-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Правая колонка карточек #2 и #3 */
.spot-secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.sub-rank {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-low);
    min-width: 20px;
}

.rank-2 .sub-rank { color: #b4b4b4; }
.rank-3 .sub-rank { color: #a07a50; }

.avatar-sm {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-dim);
    image-rendering: pixelated;
    background-color: var(--bg-inset);
}

.sub-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sub-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.player-name {
    font-weight: 700;
}

.sub-stat {
    margin-left: auto;
    color: var(--text-mid);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.sub-row-bounty {
    font-size: 0.75rem;
    color: var(--text-mid);
}

.sub-row-bounty strong {
    color: var(--bounty-red);
    font-weight: 700;
}

/* Общие бейджи */
.land-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-land);
    border: 1px solid rgba(75, 162, 214, 0.3);
    padding: 1px 5px;
    border-radius: 2px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
