/* Stats block (4 tiles + winnings) */
.duel-stats-block {
    background: rgba(30, 30, 50, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 12px;
}
.duel-stats-block .duel-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.duel-stat-cell { text-align: center; }
.duel-stat-cell b {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #e8e8f0;
    margin-bottom: 2px;
}
.duel-stat-cell span {
    font-size: 10px;
    color: #8b8ba7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.duel-stat-cell-win b { color: #10b981; }
.duel-stat-cell-lose b { color: #ef4444; }
.duel-stats-winnings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
    text-align: center;
    font-size: 13px;
    color: #8b8ba7;
}
.duel-stats-winnings b {
    font-size: 16px;
    font-weight: 900;
    color: #10b981;
}
.duel-stats-ingame {
    margin-top: 4px;
    text-align: center;
    font-size: 11px;
    color: #f59e0b;
    min-height: 14px;
}

/* Nav row (История / Топ) */
.duel-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 16px;
}
.duel-nav-btn {
    padding: 14px 12px;
    background: rgba(30, 30, 50, 0.9);
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #c4b5fd;
    cursor: pointer;
    transition: all 0.15s;
}
.duel-nav-btn:hover { background: rgba(124, 58, 237, 0.2); border-color: #a78bfa; }

/* Sub-screen wrappers */
.duel-subwrap {
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}
.duel-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.duel-sub-back {
    background: transparent;
    border: none;
    color: #a78bfa;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
}
.duel-sub-title {
    font-size: 18px;
    font-weight: 800;
    color: #e8e8f0;
}
.duel-sub-content { margin-top: 8px; }

/* History cards */
.duel-hist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
}
.duel-hist-win { border-left: 4px solid #10b981; }
.duel-hist-lose { border-left: 4px solid #ef4444; }
.duel-hist-draw { border-left: 4px solid #fbbf24; }
.duel-hist-icon { font-size: 26px; flex-shrink: 0; }
.duel-hist-info { flex: 1; min-width: 0; }
.duel-hist-title { font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.duel-hist-win .duel-hist-title { color: #10b981; }
.duel-hist-lose .duel-hist-title { color: #ef4444; }
.duel-hist-draw .duel-hist-title { color: #fbbf24; }
.duel-hist-sub { font-size: 12px; color: #8b8ba7; }
.duel-hist-delta {
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
    text-align: right;
    min-width: 70px;
}
.duel-hist-delta small { font-size: 10px; font-weight: 700; opacity: 0.7; margin-left: 2px; }
.duel-hd-win { color: #10b981; }
.duel-hd-lose { color: #ef4444; }
.duel-hd-zero { color: #8b8ba7; }

/* Leaderboard */
.duel-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 10px;
}
.duel-lb-row.duel-lb-me {
    background: rgba(124, 58, 237, 0.2);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}
.duel-lb-rank {
    font-size: 22px;
    font-weight: 900;
    width: 42px;
    text-align: center;
    color: #a78bfa;
}
.duel-lb-name {
    flex: 1;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.duel-lb-wins { font-weight: 800; font-size: 14px; color: #fbbf24; }
