/* =====================================================================
   Платформа «Ясновидение» — Дополнительные стили (v2)
   Красивая графика, анимации, эффекты для всех 10 игр,
   шкала ясновидения, достижения, ежедневный бонус.
   ===================================================================== */

/* === Общие эффекты === */
.glow-text {
    text-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
}
.glow-box {
    box-shadow: 0 0 20px rgba(212,175,55,0.35), 0 0 40px rgba(155,89,182,0.2);
}
.pulse-anim {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg,
        transparent 0%, rgba(212,175,55,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease-out; }

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
.pop-in { animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes winFlash {
    0%, 100% { box-shadow: 0 0 20px rgba(46,204,113,0.5); }
    50% { box-shadow: 0 0 40px rgba(46,204,113,0.9), 0 0 60px rgba(46,204,113,0.6); }
}
.win-flash { animation: winFlash 1s ease-in-out 3; }

/* === Звёздное небо === */
.starfield {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(212,175,55,0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(155,89,182,0.6), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(78,201,176,0.5), transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(212,175,55,0.7), transparent);
    background-size: 200% 200%;
    background-repeat: repeat;
    animation: starDrift 60s linear infinite;
    opacity: 0.5;
}
@keyframes starDrift {
    from { background-position: 0 0; }
    to { background-position: 200% 200%; }
}

/* === Частицы фона === */
.particles {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.particle {
    position: absolute; width: 4px; height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 8s linear infinite;
}
@keyframes particleRise {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* === Шкала ясновидения (главный компонент) === */
.clairvoyance-meter {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.clairvoyance-meter::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent-purple), var(--accent-gold), var(--accent-cyan));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
.clairvoyance-meter .cm-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.cm-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    position: relative;
    box-shadow: 0 0 24px rgba(155,89,182,0.4);
    flex-shrink: 0;
}
.cm-avatar .cm-level-badge {
    position: absolute;
    bottom: -4px; right: -4px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid var(--bg-card);
}
.cm-info { flex: 1; min-width: 0; }
.cm-rank {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cm-level-text {
    color: var(--text-muted);
    font-size: 13px;
}
.cm-level-text strong { color: var(--accent-gold); }
.cm-xp-bar-wrap {
    margin-top: 8px;
    background: var(--bg-primary);
    border-radius: 20px;
    height: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}
.cm-xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold));
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.cm-xp-bar::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}
.cm-xp-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.cm-xp-text strong { color: var(--accent-gold); }

/* Сета статистики под аватаром */
.cm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.cm-stat {
    text-align: center;
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 12px 8px;
    border: 1px solid var(--border);
}
.cm-stat .v {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
}
.cm-stat .l {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
@media (max-width: 540px) {
    .cm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* === Ежедневный бонус === */
.daily-bonus-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}
.daily-bonus-card.can-claim {
    border-color: var(--accent-gold);
    box-shadow: 0 0 24px rgba(212,175,55,0.25);
    animation: pulse 2s ease-in-out infinite;
}
.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.db-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}
.db-streak {
    font-size: 13px;
    color: var(--text-muted);
}
.db-streak strong { color: var(--accent-cyan); }

.db-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.db-day {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 6px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.db-day .num {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.db-day .reward {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 4px;
}
.db-day.claimed {
    background: rgba(46,204,113,0.12);
    border-color: var(--success);
}
.db-day.claimed .reward { color: var(--success); }
.db-day.claimed::after {
    content: '✓';
    position: absolute;
    top: 4px; right: 6px;
    color: var(--success);
    font-weight: 700;
    font-size: 12px;
}
.db-day.current {
    border-color: var(--accent-gold);
    background: rgba(212,175,55,0.1);
    box-shadow: 0 0 12px rgba(212,175,55,0.3);
}
.db-day.today {
    border-color: var(--accent-purple);
    background: rgba(155,89,182,0.18);
    box-shadow: 0 0 16px rgba(155,89,182,0.4);
    animation: pulse 1.5s ease-in-out infinite;
}
.db-claim-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.db-claim-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212,175,55,0.4); }
.db-claim-btn:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === Достижения === */
.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.ach-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ach-card.awarded {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212,175,55,0.08), var(--bg-card));
}
.ach-card.awarded::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
}
.ach-icon {
    width: 56px; height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    transition: var(--transition);
}
.ach-card.awarded .ach-icon {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 0 16px rgba(212,175,55,0.5);
}
.ach-card:not(.awarded) .ach-icon { filter: grayscale(1); opacity: 0.4; }
.ach-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.ach-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 32px;
}
.ach-tier {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tier-bronze   { background: rgba(205,127,50,0.2); color: #cd7f32; }
.tier-silver   { background: rgba(192,192,192,0.2); color: #c0c0c0; }
.tier-gold     { background: rgba(212,175,55,0.2); color: var(--accent-gold); }
.tier-platinum { background: rgba(224,224,224,0.2); color: #e5e4e2; }
.tier-mythic   { background: rgba(155,89,182,0.25); color: var(--accent-purple); }

.ach-xp {
    margin-top: 6px;
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* === Уведомление о новом достижении (popup) === */
.ach-popup-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.ach-popup {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 0 32px rgba(212,175,55,0.5);
    animation: achPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), achPopOut 0.5s ease-in 4s forwards;
    min-width: 320px;
}
@keyframes achPopIn {
    from { transform: translateY(-80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes achPopOut {
    to { transform: translateY(-80px); opacity: 0; }
}
.ach-popup .ap-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.ach-popup .ap-text {
    flex: 1;
}
.ach-popup .ap-label {
    font-size: 11px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}
.ach-popup .ap-name {
    font-size: 16px;
    font-weight: 700;
}
.ach-popup .ap-xp {
    font-size: 13px;
    color: var(--accent-cyan);
    margin-top: 2px;
}

/* === Уведомление об уровне вверх === */
.levelup-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.4s ease;
}
.levelup-content {
    text-align: center;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.levelup-content .star {
    font-size: 80px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin 4s linear infinite;
    display: inline-block;
}
.levelup-content h2 {
    font-size: 42px;
    color: var(--accent-gold);
    margin: 16px 0 8px;
    text-shadow: 0 0 24px rgba(212,175,55,0.6);
}
.levelup-content p {
    color: var(--text-primary);
    font-size: 22px;
}
.levelup-content .new-rank {
    color: var(--accent-cyan);
    font-weight: 700;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Парящие очки (floating score) === */
.floating-score {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    z-index: 100;
    text-shadow: 0 0 12px currentColor;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { transform: translateY(-20px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
.floating-score.xp { color: var(--accent-cyan); }
.floating-score.score { color: var(--accent-gold); }

/* === Карточки игр (с иконками и подложками) === */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}
.game-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(155,89,182,0.08), transparent 50%);
    pointer-events: none;
    transition: var(--transition);
}
.game-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.game-card:hover::before {
    background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 50%);
}
.game-card .gc-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: inline-block;
}
.game-card .gc-title {
    font-size: 18px;
    color: var(--accent-gold);
    margin-bottom: 6px;
    font-weight: 700;
}
.game-card .gc-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    flex: 1;
}
.game-card .gc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Игровые плитки (стилизация под каждую игру) === */
.game-tile {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    user-select: none;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.game-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(155,89,182,0.15), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}
.game-tile:hover::before { opacity: 1; }
.game-tile:hover {
    border-color: var(--accent-gold);
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.game-tile.selected {
    border-color: var(--accent-purple);
    background: rgba(155,89,182,0.18);
    box-shadow: 0 0 24px rgba(155,89,182,0.5);
}
.game-tile.winner {
    border-color: var(--success);
    background: rgba(46,204,113,0.18);
    box-shadow: 0 0 28px rgba(46,204,113,0.6);
    animation: winFlash 1s ease-in-out 3;
}
.game-tile.loser {
    border-color: var(--danger);
    opacity: 0.5;
    filter: grayscale(0.5);
}

/* === Руны (специальная стилизация) === */
.tile-rune {
    font-size: 42px;
    color: var(--accent-gold);
    text-shadow: 0 0 16px rgba(212,175,55,0.7);
    font-family: 'Segoe UI Symbol', sans-serif;
}
.game-tile:hover .tile-rune {
    animation: runeGlow 0.6s ease;
}
@keyframes runeGlow {
    50% { text-shadow: 0 0 32px var(--accent-gold), 0 0 48px var(--accent-purple); transform: rotate(5deg); }
}

/* === Карты Таро === */
.tile-card {
    width: 90px; height: 130px;
    background: linear-gradient(135deg, #2a1b3d, #1a0f2e);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 8px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tile-card::before {
    content: '✦';
    position: absolute;
    top: 6px; left: 8px;
    color: var(--accent-gold);
    font-size: 12px;
    opacity: 0.7;
}
.tile-card::after {
    content: '✦';
    position: absolute;
    bottom: 6px; right: 8px;
    color: var(--accent-gold);
    font-size: 12px;
    opacity: 0.7;
}
.game-tile:hover .tile-card {
    transform: rotateY(15deg) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.4);
}

/* === Символы === */
.tile-symbol {
    font-size: 48px;
    color: var(--accent-purple);
    text-shadow: 0 0 16px rgba(155,89,182,0.6);
}

/* === Цветовые плитки (с пульсацией) === */
.tile-color {
    width: 80px; height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.4);
    position: relative;
}
.tile-color::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}
.game-tile:hover .tile-color::after {
    border-color: rgba(255,255,255,0.4);
    inset: -8px;
}

/* === Стрелки направлений === */
.tile-direction {
    font-size: 38px;
    color: var(--accent-cyan);
    text-shadow: 0 0 12px rgba(78,201,176,0.6);
    font-weight: 700;
}

/* === Анимация появления результата === */
.result-banner {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-banner.win {
    background: linear-gradient(135deg, rgba(46,204,113,0.2), rgba(212,175,55,0.15));
    border: 2px solid var(--success);
}
.result-banner.partial {
    background: linear-gradient(135deg, rgba(243,156,18,0.2), rgba(155,89,182,0.15));
    border: 2px solid var(--warning);
}
.result-banner.lose {
    background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(142,144,168,0.1));
    border: 2px solid var(--danger);
}
.result-banner .rb-icon {
    font-size: 48px;
    margin-bottom: 8px;
}
.result-banner .rb-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.result-banner .rb-detail {
    color: var(--text-muted);
    font-size: 14px;
}
.result-banner .rb-correct {
    margin-top: 12px;
    font-size: 16px;
}
.result-banner .rb-correct code {
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--accent-gold);
    font-size: 18px;
}

/* === Прогресс-бар времени (для color_flow) === */
.timer-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 16px;
}
.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    width: 0%;
    transition: width 0.1s linear;
}

/* === Подсветка элементов профиля === */
.profile-header {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold), var(--accent-cyan));
}
.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 32px rgba(155,89,182,0.4);
    position: relative;
    flex-shrink: 0;
}
.profile-avatar .pa-level {
    position: absolute;
    bottom: -6px; right: -6px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border: 4px solid var(--bg-card);
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.profile-info .pi-rank {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.profile-info .pi-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}
.profile-info .pi-stats strong { color: var(--accent-gold); }

/* === Медали в рейтинге === */
.medal {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.medal-1 { background: linear-gradient(135deg, #FFD700, #FFA500); box-shadow: 0 0 16px rgba(255,215,0,0.5); }
.medal-2 { background: linear-gradient(135deg, #C0C0C0, #808080); box-shadow: 0 0 12px rgba(192,192,192,0.4); }
.medal-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); box-shadow: 0 0 12px rgba(205,127,50,0.4); }

/* === Секция "Серия побед" === */
.streak-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.streak-display .fire {
    font-size: 36px;
    animation: flameFlicker 1.2s ease-in-out infinite;
}
@keyframes flameFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}
.streak-display .sd-info { flex: 1; }
.streak-display .sd-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
}
.streak-display .sd-max {
    font-size: 12px;
    color: var(--text-muted);
}

/* === Финальная кнопка "Играть снова" с подсветкой === */
.btn-play-again {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(155,89,182,0.4);
    position: relative;
    overflow: hidden;
}
.btn-play-again::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}
.btn-play-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155,89,182,0.6);
}

/* === Прогресс игрока по играм (мини-бар) === */
.game-progress-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}
.game-progress-row .gp-name { font-weight: 600; }
.game-progress-row .gp-bar {
    width: 120px;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}
.game-progress-row .gp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    transition: width 1s ease;
}
.game-progress-row .gp-stat {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 80px;
    text-align: right;
}
