/* UX enhancements – animations, podium, dashboard, mobile nav, chat, reduced motion */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .landing-particles, .particle, .hof-card, .lb-podium-slot, .match-countdown-urgent {
        animation: none !important;
    }
}

/* --- View transitions --- */
.view-wrapper {
    animation: viewEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes viewEnter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Personalized dashboard --- */
.dash-personalized {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dash-quick-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(0, 255, 170, 0.04));
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    animation: dashCardIn 0.5s ease-out both;
}
.dash-quick-card:nth-child(2) { animation-delay: 0.06s; }
.dash-quick-card:nth-child(3) { animation-delay: 0.12s; }
.dash-quick-card:nth-child(4) { animation-delay: 0.18s; }
@keyframes dashCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dash-quick-card strong {
    display: block;
    font-size: 22px;
    color: var(--accent-neon);
    margin: 4px 0;
}
.dash-quick-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
}
.dash-quick-card a {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-cyan);
    text-decoration: none;
}
.dash-quick-card a:hover { text-decoration: underline; }

/* --- League activity ticker --- */
.league-activity-feed {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.league-activity-feed h4 {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.league-activity-track {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    animation: leagueTicker 40s linear infinite;
}
.league-activity-track:hover { animation-play-state: paused; }
.league-activity-item {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
}
@keyframes leagueTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Leaderboard podium --- */
.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 20px 12px 0;
    min-height: 200px;
}
.lb-podium-slot {
    flex: 1;
    max-width: 200px;
    text-align: center;
    animation: podiumRise 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.lb-podium-slot.rank-1 { animation-delay: 0.12s; }
.lb-podium-slot.rank-2 { animation-delay: 0.04s; }
.lb-podium-slot.rank-3 { animation-delay: 0.2s; }
@keyframes podiumRise {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.lb-podium-pedestal {
    border-radius: 14px 14px 0 0;
    padding: 16px 10px 12px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.lb-podium-slot.rank-1 .lb-podium-pedestal {
    min-height: 110px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.04));
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.12);
}
.lb-podium-slot.rank-2 .lb-podium-pedestal { min-height: 85px; }
.lb-podium-slot.rank-3 .lb-podium-pedestal { min-height: 70px; }
.lb-podium-medal { font-size: 28px; line-height: 1; }
.lb-podium-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin: 6px 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-podium-pts {
    font-size: 13px;
    color: var(--accent-neon);
    font-weight: 800;
}
.lb-podium-acc {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
}
.lb-podium-name a.lb-player-link {
    color: #fff;
    text-decoration: none;
}
.lb-podium-name a.lb-player-link:hover { color: var(--accent-cyan); }
.lb-podium-you {
    display: block;
    font-size: 10px;
    color: var(--accent-cyan);
    margin-top: 2px;
}
.lb-podium-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.lb-podium-streak { display: inline-block; margin-top: 4px; font-size: 12px; }
.lb-podium-delta { display: block; margin-top: 4px; }
.lb-podium-actions { margin-top: 10px; }
.lb-rank-animate {
    animation: rankPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}
@keyframes rankPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Win streak --- */
.streak-fire {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.35);
    animation: streakFlicker 1.2s ease-in-out infinite;
}
@keyframes streakFlicker {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 159, 67, 0); }
    50% { box-shadow: 0 0 12px rgba(255, 159, 67, 0.35); }
}

/* --- Hall of Fame --- */
.hof-hero {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.15), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 12, 24, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.hof-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.hof-card-enhanced {
    position: relative;
    overflow: hidden;
    animation: hofCardIn 0.55s ease-out both;
}
.hof-card-enhanced:nth-child(2) { animation-delay: 0.07s; }
.hof-card-enhanced:nth-child(3) { animation-delay: 0.14s; }
.hof-card-enhanced:nth-child(4) { animation-delay: 0.21s; }
.hof-card-enhanced:nth-child(n+5) { animation-delay: 0.28s; }
@keyframes hofCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.hof-card-enhanced::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(0, 240, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.hof-card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(255, 215, 0, 0.12);
}
.hof-card-enhanced.hof-archived-card {
    filter: sepia(0.35) saturate(0.7);
    opacity: 0.82;
}
.hof-trophy-glow {
    font-size: 32px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    animation: trophyGlow 2.5s ease-in-out infinite;
}
@keyframes trophyGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* --- Match countdown --- */
.match-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.match-card.match-upcoming .match-countdown-urgent,
.match-card.match-countdown-urgent {
    animation: countdownUrgent 1s ease-in-out infinite;
    border-color: rgba(255, 159, 67, 0.5);
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.1);
}
@keyframes countdownUrgent {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 159, 67, 0); }
    50% { box-shadow: 0 0 14px rgba(255, 159, 67, 0.35); }
}

/* --- Score reveal (FT) --- */
.score-reveal-wrap {
    display: inline-block;
    animation: scoreFlipIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes scoreFlipIn {
    from { opacity: 0; transform: rotateX(-70deg) scale(0.85); }
    to { opacity: 1; transform: rotateX(0) scale(1); }
}
.match-card.tip-correct-flash {
    animation: tipCorrectFlash 1.2s ease-out;
}
@keyframes tipCorrectFlash {
    0% { box-shadow: 0 0 0 rgba(0, 255, 170, 0); }
    30% { box-shadow: 0 0 24px rgba(0, 255, 170, 0.35); border-color: rgba(0, 255, 170, 0.5); }
    100% { box-shadow: none; }
}

/* --- Empty states --- */
.empty-state-box.empty-state-animated .empty-state-icon {
    animation: emptyBounce 2s ease-in-out infinite;
}
@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.empty-state-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent-cyan);
    color: #000 !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s;
}
.empty-state-cta:hover { transform: translateY(-2px); }

/* --- Arena duel VS --- */
.duel-vs-card {
    padding: 16px !important;
    margin-bottom: 12px !important;
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.06), rgba(0, 240, 255, 0.04)) !important;
    border: 1px solid rgba(255, 0, 85, 0.2) !important;
    border-radius: 14px !important;
    animation: duelVsIn 0.45s ease-out both;
}
@keyframes duelVsIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
.duel-vs-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.duel-vs-badge {
    font-size: 22px;
    font-weight: 900;
    color: #ff0055;
    text-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
    animation: vsPulse 1.5s ease-in-out infinite;
}
@keyframes vsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
.belt-holder-spin .user-avatar-wrap {
    animation: beltSpin 8s linear infinite;
}
@keyframes beltSpin {
    0% { box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.45); }
    100% { box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
}
.duel-accept-flash {
    animation: acceptFlash 0.6s ease-out;
}
@keyframes acceptFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); background: #00ffaa !important; }
    100% { transform: scale(1); }
}

/* --- Chat bubbles --- */
.chat-msg-row {
    margin-bottom: 10px;
}
.chat-msg-row.chat-msg-new {
    animation: chatSlideIn 0.35s ease-out both;
}
.chat-msg-row.chat-msg-new.chat-msg-own {
    animation-name: chatSlideInOwn;
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
.chat-msg-row.chat-msg-own {
    text-align: right;
}
@keyframes chatSlideInOwn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}
.chat-bubble {
    display: inline-block;
    max-width: 85%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}
.chat-msg-own .chat-bubble {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.22);
}
.chat-typing-indicator {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    padding: 4px 0;
    animation: typingPulse 1.2s ease-in-out infinite;
}
@keyframes typingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Achievement unlock overlay --- */
.achievement-unlock-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    animation: overlayFadeIn 0.3s ease-out both;
}
.achievement-unlock-card {
    text-align: center;
    padding: 32px 40px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 20, 50, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: profilePopIn 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) both;
    max-width: 360px;
}
.achievement-unlock-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
    animation: trophyGlow 1.5s ease-in-out infinite;
}
.league-ann-overlay { z-index: 10055; }
.league-ann-card {
    border-color: rgba(0, 240, 255, 0.35);
    max-width: 420px;
    text-align: left;
}
.league-ann-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}
.league-ann-scope {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.league-ann-body {
    font-size: 14px;
    line-height: 1.55;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-ann-section textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

/* --- Mobile bottom nav --- */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    body.is-app {
        padding-bottom: 72px;
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        background: rgba(6, 11, 19, 0.92);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: stretch;
    }
    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 4px;
        font-size: 10px;
        font-weight: 600;
        color: var(--text-muted);
        text-decoration: none;
        border-radius: 10px;
        transition: background 0.2s, color 0.2s;
    }
    .mobile-bottom-nav a .mbn-icon {
        font-size: 20px;
        line-height: 1;
    }
    .mobile-bottom-nav a.active {
        color: var(--accent-cyan);
        background: rgba(0, 240, 255, 0.1);
    }
    .mobile-bottom-nav .nav-badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 22px);
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .mobile-bottom-nav a { position: relative; }
}

html.landing-light body.is-app .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: #e5e7eb;
}

/* --- SuperAdmin unified theme --- */
body.admin-super-panel {
    background: #060b13;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}
.admin-super-panel .glass-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.admin-super-panel .glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.admin-super-panel .stat-card {
    transition: transform 0.25s ease;
}
.admin-super-panel .stat-card:hover {
    transform: translateY(-3px);
}

/* --- Liga: dnes v lige --- */
.today-league-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: var(--text-muted);
    animation: todayBarIn 0.45s ease both;
}
@keyframes todayBarIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.today-league-item strong { color: #fff; }
.today-league-sep { opacity: 0.35; user-select: none; }
.today-league-warn strong { color: #ff6b6b; }

/* --- Rýchly tip --- */
.quick-tip-panel {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
}
.quick-tip-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-cyan);
}
.quick-tip-list { display: flex; flex-direction: column; gap: 8px; }
.quick-tip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}
.quick-tip-meta { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; flex-wrap: wrap; }
.quick-tip-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.quick-tip-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #fff;
    min-width: 0;
}
.quick-tip-teams .team-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.quick-tip-teams .match-vs {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}
.quick-tip-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.quick-tip-inputs .bet-input {
    width: 36px;
    text-align: center;
    padding: 4px;
    font-size: 14px;
}

/* --- Progress sezóny --- */
.season-progress-wrap {
    margin: 10px 0 12px;
    max-width: 320px;
}
.season-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.season-progress-label strong { color: var(--accent-neon); }
.season-progress-track {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.season-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    animation: seasonFillPulse 2.5s ease-in-out infinite;
}
@keyframes seasonFillPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

/* --- Sezónny skin MS / WC --- */
.competition-header-box.league-skin-wc {
    position: relative;
    overflow: hidden;
    border-color: rgba(34, 197, 94, 0.35) !important;
    background:
        linear-gradient(180deg, rgba(22, 101, 52, 0.35) 0%, rgba(15, 23, 42, 0.85) 45%),
        repeating-linear-gradient(
            90deg,
            rgba(34, 197, 94, 0.08) 0px,
            rgba(34, 197, 94, 0.08) 2px,
            rgba(22, 163, 74, 0.04) 2px,
            rgba(22, 163, 74, 0.04) 8px
        ) !important;
}
.competition-header-box.league-skin-wc::before {
    content: '🏳️ ⚽ 🏳️ ⚽ 🏳️';
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 14px;
    opacity: 0.35;
    letter-spacing: 6px;
    pointer-events: none;
}

/* --- Match of the day --- */
.match-of-day-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 240, 255, 0.06));
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.08);
    animation: motdGlow 3s ease-in-out infinite;
}
.match-of-day-boss {
    border-color: rgba(255, 0, 85, 0.4);
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.12), rgba(139, 0, 0, 0.08));
    box-shadow: 0 0 28px rgba(255, 0, 85, 0.12);
}
@keyframes motdGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.06); }
    50% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.14); }
}
.match-of-day-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd700;
    flex: 0 0 100%;
}
.match-of-day-boss .match-of-day-kicker { color: #ff6b8a; }
.match-of-day-body { flex: 1; min-width: 0; }
.match-of-day-time { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.match-of-day-teams { font-size: 16px; color: #fff; }
.match-of-day-hint { margin: 6px 0 0; font-size: 11px; line-height: 1.35; color: var(--text-muted); }
.match-of-day-cta { flex-shrink: 0; text-decoration: none; }
.match-card.match-of-day-in-list {
    border-color: rgba(255, 215, 0, 0.35) !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.1);
}

/* --- Rebríček: delta poradia --- */
.lb-rank-delta {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
    animation: rankDeltaPop 0.5s ease both;
}
@keyframes rankDeltaPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.lb-rank-up { color: #00ffaa; }
.lb-rank-down { color: #ff6b6b; }
.lb-rank-same { color: rgba(255, 255, 255, 0.2); font-size: 8px; }

/* --- Avatar rámce podľa achievementu --- */
.user-avatar-wrap.av-frame-champion {
    box-shadow: 0 0 0 2px #ffd700, 0 0 10px rgba(255, 215, 0, 0.45);
    border-radius: 50%;
}
.user-avatar-wrap.av-frame-duelist {
    box-shadow: 0 0 0 2px #ff0055, 0 0 8px rgba(255, 0, 85, 0.35);
    border-radius: 50%;
}
.user-avatar-wrap.av-frame-champion .user-avatar-img,
.user-avatar-wrap.av-frame-duelist .user-avatar-img,
.user-avatar-wrap.av-frame-champion .user-avatar-fallback,
.user-avatar-wrap.av-frame-duelist .user-avatar-fallback {
    border-radius: 50%;
}
.user-avatar-wrap.has-tooltip {
    position: relative;
    cursor: help;
    outline: none;
}
.avatar-frame-tooltip strong { white-space: nowrap; }
.user-avatar-wrap.av-frame-champion .avatar-frame-tooltip strong { color: #ffd700; }
.user-avatar-wrap.av-frame-duelist .avatar-frame-tooltip strong { color: #ff6b8a; }
.user-avatar-wrap.av-frame-champion .avatar-frame-tooltip {
    border-color: rgba(255, 215, 0, 0.35);
}
.user-avatar-wrap.av-frame-duelist .avatar-frame-tooltip {
    border-color: rgba(255, 0, 85, 0.35);
}

/* --- Vianočný sneh (landing) --- */
.landing-snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.landing-snow::before,
.landing-snow::after {
    content: '';
    position: absolute;
    inset: -100px 0 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 80px 120px, rgba(255,255,255,0.35), transparent),
        radial-gradient(1.5px 1.5px at 140px 60px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 200px 180px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 260px 40px, rgba(255,255,255,0.45), transparent);
    background-size: 280px 220px;
    animation: landingSnowDrift 18s linear infinite;
    opacity: 0.55;
}
.landing-snow::after {
    animation-duration: 28s;
    animation-direction: reverse;
    opacity: 0.35;
    background-size: 320px 260px;
}
@keyframes landingSnowDrift {
    from { transform: translateY(0); }
    to { transform: translateY(220px); }
}
html.landing-light .landing-snow::before,
html.landing-light .landing-snow::after {
    opacity: 0.25;
}

@media (max-width: 600px) {
    .today-league-bar { font-size: 12px; padding: 8px 12px; }
    .quick-tip-row { flex-direction: column; align-items: stretch; }
    .quick-tip-inputs { justify-content: flex-end; }
    .match-of-day-card { flex-direction: column; align-items: flex-start; }
}

/* --- Match list pagination --- */
.pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 0 8px;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
}
.pagination-btn.pagination-active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}
.pagination-btn.pagination-nav { min-width: 40px; }
.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 2px;
    user-select: none;
}
.pagination-meta {
    flex: 0 0 100%;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
@media (max-width: 480px) {
    .pagination-btn { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; }
    .pagination-meta { font-size: 11px; }
}

.match-card.match-scroll-highlight {
    outline: 2px solid var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.15);
    transition: box-shadow 0.3s ease, outline 0.3s ease;
}

/* --- Help / návod (predtým help.css) --- */
.help-page { max-width: 820px; margin: 0 auto; padding-bottom: 48px; }
.help-hero { margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 20px; }
.help-hero h2 { font-size: 26px; margin: 0 0 8px; color: #fff; }
.help-hero p { color: var(--text-muted); margin: 0; font-size: 14px; }
.help-comp-badge { margin-top: 12px; font-size: 13px; color: var(--accent-cyan); background: rgba(0,240,255,0.08); display: inline-block; padding: 6px 12px; border-radius: 6px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.help-toc a { font-size: 12px; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 20px; color: var(--text-muted); text-decoration: none; border: 1px solid rgba(255,255,255,0.06); }
.help-toc a:hover { color: var(--accent-cyan); border-color: rgba(0,240,255,0.3); }
.help-section { margin-bottom: 36px; }
.help-section h3 { font-size: 20px; color: #fff; margin: 0 0 14px; padding-top: 8px; }
.help-section h4 { font-size: 15px; color: var(--accent-cyan); margin: 18px 0 8px; }
.help-section p, .help-section li { font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.help-section ul, .help-section ol { padding-left: 20px; }
.help-section li { margin-bottom: 6px; }
.help-points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.help-point-card { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px; text-align: center; }
.help-point-card span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.help-point-card strong { font-size: 22px; color: var(--accent-neon); }
.help-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.help-table th, .help-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.help-table th { color: var(--text-muted); font-size: 11px; text-transform: uppercase; }
.help-note { font-size: 12px; font-style: italic; opacity: 0.8; }
.help-duel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.help-duel-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 14px; }
.help-duel-card h4 { margin: 0 0 8px; font-size: 14px; color: #fff; }
.help-duel-card p { margin: 0; font-size: 12px; }
.help-faq { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
.help-faq summary { cursor: pointer; color: #fff; font-weight: 600; font-size: 14px; }
.help-faq p { margin: 10px 0 0; font-size: 13px; }
html.landing-light .help-hero { border-bottom-color: #dbe3ee; }
html.landing-light .help-hero h2,
html.landing-light .help-section h3,
html.landing-light .help-duel-card h4,
html.landing-light .help-faq summary { color: #111827; }
html.landing-light .help-hero p,
html.landing-light .help-section p,
html.landing-light .help-section li,
html.landing-light .help-point-card span,
html.landing-light .help-table th,
html.landing-light .help-note { color: #4b5563; }
html.landing-light .help-toc a,
html.landing-light .help-point-card,
html.landing-light .help-duel-card,
html.landing-light .help-faq { background: #fff; border-color: #dbe3ee; }
html.landing-light .help-table th,
html.landing-light .help-table td { border-bottom-color: #e5e7eb; }

/* Portal UX improvements */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
}
.coach-mark-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}
.coach-mark-card {
    position: absolute;
    max-width: 280px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    pointer-events: auto;
}
.coach-mark-target {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 8px;
}
.profile-overview-block {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0,240,255,0.04);
    border: 1px solid rgba(0,240,255,0.15);
    border-radius: 10px;
}
.profile-overview-block h4 {
    margin: 0 0 12px;
    color: var(--accent-cyan);
    font-size: 14px;
}
.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.profile-overview-stat {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}
.profile-overview-stat span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.profile-overview-stat strong {
    font-size: 18px;
    color: var(--accent-neon);
}
.push-status-on { color: var(--accent-neon) !important; }
.push-status-off { color: var(--text-muted) !important; }
.ios-pwa-hint {
    margin-bottom: 24px;
    padding: 14px 16px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 10px;
}
.ios-pwa-hint h4 { margin: 0 0 6px; font-size: 14px; color: #ffd700; }
.ios-pwa-hint p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.admin-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-tab-btn {
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.admin-tab-btn.active {
    background: rgba(0,240,255,0.12);
    border-color: rgba(0,240,255,0.35);
    color: var(--accent-cyan);
    font-weight: 700;
}
.admin-tabs-nav:has(.admin-tab-indicator) .admin-tab-btn.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.live-nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 4px;
    animation: live-pulse 1.5s ease-in-out infinite;
}
.mobile-bottom-nav a { position: relative; }
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}
.chat-emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
}
.chat-emoji-btn:hover { background: rgba(255,255,255,0.08); }
.landing-mockup-animated .mockup-row:nth-child(1) { animation: mockup-tip 4s ease-in-out infinite; }
.landing-mockup-animated .mockup-row:nth-child(4) { animation: mockup-lb 4s ease-in-out infinite 0.5s; }
.landing-mockup-animated .mockup-tab:nth-child(3) { animation: mockup-arena-tab 4s ease-in-out infinite 2s; }
@keyframes mockup-tip {
    0%, 40%, 100% { border-color: transparent; }
    10%, 30% { border-color: rgba(0,240,255,0.5); box-shadow: 0 0 12px rgba(0,240,255,0.2); }
}
@keyframes mockup-lb {
    0%, 60%, 100% { transform: none; }
    70%, 90% { transform: scale(1.02); color: var(--accent-neon); }
}
@keyframes mockup-arena-tab {
    0%, 75%, 100% { opacity: 0.6; }
    80%, 95% { opacity: 1; color: #ff0055; }
}
.landing-demo-media { position: relative; }
.landing-demo-video {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
    margin: 0 auto 12px;
}
button.auth-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: inherit;
}
