* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Crimson Pro', serif;
    background: #0a0812;
    min-height: 100vh;
    color: #e8d9ff;
    padding-top: 40px;
}

.stars {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    background:
            radial-gradient(1px 1px at 10% 15%, rgba(200,170,255,0.6) 0%, transparent 100%),
            radial-gradient(1px 1px at 25% 40%, rgba(255,220,180,0.5) 0%, transparent 100%),
            radial-gradient(1px 1px at 60% 10%, rgba(200,170,255,0.7) 0%, transparent 100%),
            radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
            radial-gradient(1px 1px at 45% 65%, rgba(200,170,255,0.5) 0%, transparent 100%),
            radial-gradient(1px 1px at 90% 70%, rgba(255,220,180,0.6) 0%, transparent 100%),
            radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
            radial-gradient(1px 1px at 35% 90%, rgba(200,170,255,0.5) 0%, transparent 100%),
            radial-gradient(2px 2px at 70% 55%, rgba(255,200,100,0.3) 0%, transparent 100%),
            radial-gradient(1px 1px at 55% 85%, rgba(200,170,255,0.4) 0%, transparent 100%);
}

.header {
    position: relative; z-index: 1;
    text-align: center;
    padding-top: 20px;
}

/*SPLASH*/

#splash {
    position: fixed; inset: 0; z-index: 9999;
    background: #0a0812;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 32px;
    transition: opacity 0.8s ease;
}

#splash.hidden { opacity: 0; pointer-events: none; }

.splash-eye {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7c3aed, #1a0a3c);
    border: 2px solid rgba(180,120,255,0.6);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 0 0 60px rgba(130,60,220,0.5), inset 0 0 30px rgba(0,0,0,0.5);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(130,60,220,0.4), inset 0 0 20px rgba(0,0,0,0.5); }
    50%       { box-shadow: 0 0 80px rgba(180,100,255,0.7), inset 0 0 30px rgba(0,0,0,0.5); }
}

.splash-pupil {
    width: 40px; height: 40px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd700, #c8860a);
    box-shadow: 0 0 20px rgba(255,200,0,0.7);
}

.splash-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(180,120,255,0.3);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.splash-title {
    font-family: 'Cinzel', serif;
    font-size: 48px; font-weight: 700;
    color: #c084fc; letter-spacing: 4px;
    text-align: center;
}

.splash-sub {
    font-family: 'Crimson Pro', serif;
    font-style: italic; font-size: 18px;
    color: #6b4f9e; letter-spacing: 1px;
    text-align: center;
}

.splash-loader {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.splash-bar-wrap {
    width: 260px; height: 3px;
    background: rgba(130,60,220,0.15);
    border-radius: 2px; overflow: hidden;
}

.splash-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #7c3aed, #c084fc);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.splash-status {
    font-family: 'Cinzel', serif;
    font-size: 11px; letter-spacing: 3px;
    color: #4a3070;
}

.splash-start-btn {
    display: none;
    font-family: 'Cinzel', serif;
    font-size: 14px; letter-spacing: 4px;
    color: #c084fc;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.5);
    border-radius: 8px;
    padding: 13px 40px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.splash-start-btn:hover {
    background: rgba(124,58,237,0.35);
    border-color: rgba(180,120,255,0.8);
    box-shadow: 0 0 20px rgba(130,60,220,0.3);
}

.splash-user {
    display: flex;
    align-items: center;
    gap: 13px;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 16px;
    color: #9d7fbe;
}

.splash-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(130,60,220,0.5);
}

/*END SPLASH*/

.neiball img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: neiball-spin-reverse 4s linear infinite, neiball-glow 3s ease-in-out infinite;
}

.neiball-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neiball-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: neiball-spin 12s linear infinite;
    font-size: 22px;
    transform-origin: 50% 50%;
}

.neiball {
    width: 120px;
    height: 120px;
    margin: 0;
    position: relative;
    z-index: 1;
}

@keyframes neiball-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes neiball-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(180,120,255,0.4)); }
    50%       { filter: drop-shadow(0 0 20px rgba(180,120,255,0.8)); }
}

@keyframes neiball-spin-reverse {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

.title-main {
    font-family: 'Cinzel', serif;
    font-size: 35px;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.1;
}

.title-sub {
    font-family: 'Crimson Pro', serif;
    font-size: 18px;
    color: #9d7fbe;
    font-style: italic;
    margin-top: 6px;
    font-weight: 300;
}

.neibucks-bar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 19px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #fbbf24;
    letter-spacing: 1px;
}

.phase-section {
    position: relative;
    z-index: 1;
    padding: 32px 24px 0;
    text-align: center;
}

.phase-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 19px;
}

.phase-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(180,120,255,0.15);
}

.phase-btn {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: #6b4f9e;
    background: rgba(20,8,45,0.6);
    border: 1px solid rgba(130,60,220,0.25);
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    width: calc(100% / 6 - 8px);
}

.phase-btn:hover { color: #c084fc; border-color: rgba(180,120,255,0.45); }
.phase-btn.active { color: #c084fc; border-color: #c084fc; background: rgba(124,58,237,0.2); }
.phase-nav::-webkit-scrollbar { display: none; }

.content {
    position: relative;
    z-index: 1;
    padding: 32px 24px 16px;
    max-width: 960px;
    margin: 0 auto;
}

.phase-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: #6b4f9e;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.match-card {
    background: linear-gradient(135deg, rgba(30,15,60,0.8) 0%, rgba(20,8,45,0.9) 100%);
    border: 1px solid rgba(130,60,220,0.25);
    border-radius: 12px;
    padding: 19px;
    transition: border-color 0.2s;
}

.match-card:hover { border-color: rgba(180,120,255,0.45); }
.match-card.has-prono { border-color: rgba(251,191,36,0.35); }

.match-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 3px;
}

.match-date {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    color: #c084fc;
    letter-spacing: 1px;
}

.match-group {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: #c084fc;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 1px;
}

.match-card.is-live {
    border-color: rgba(255, 80, 80, 0.5);
    box-shadow: 0 0 16px rgba(255, 60, 60, 0.15);
}

.knockout-round-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    text-align: center;
    letter-spacing: 3px;
    color: #6b4f9e;
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-top: 24px;
}

.live-score {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 11px;
    font-family: 'Cinzel', serif;
}

.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 6px #ff4444;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.live-label {
    font-size: 10px; letter-spacing: 2px;
    color: #ff6666;
}

.live-result {
    font-size: 18px; font-weight: 700;
    color: #ffd700;
    letter-spacing: 1px;
}

.live-score.finished .live-label { color: #6b4f9e; }
.live-score.finished .live-result { color: #c084fc; }

.match-venue {
    font-size: 11px;
    color: #6b4f9e;
    font-style: italic;
    margin-bottom: 16px;
    letter-spacing: 0px;
    cursor: pointer;
    transition: color 0.2s;
}

.match-venue:hover { color: #c084fc; }

.teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

.match-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.score-status {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #e8d9ff;
    text-align: center;
    min-height: 16px;
}

.score-line {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Cinzel', serif;
    font-size: 21px;
    font-weight: 700;
    color: #4a3070;
}

.score-separator { color: #4a3070; }

.match-card.is-live .score-line  { color: #ffd700; }
.match-card.is-live .score-status { color: #ff6666; }
.match-card.is-live .score-separator { color: #ffd700; }

.match-card.finished .score-line { color: #c084fc; }
.match-card.finished .score-status { color: #e8d9ff; }
.match-card.finished .score-separator { color: #c084fc; }

.team {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; flex: 1;
    cursor: pointer;
}

.team-flag { font-size: 29px; line-height: 1; }

.team-name {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: #c084fc;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 600;
}

.team:hover .team-name { color: #e8d9ff; }

.prono-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
}

.prono-section { margin-top: 8px; }

.prono-label {
    font-size: 12px;
    color: #6b4f9e;
    font-style: italic;
    margin-bottom: 6px;
    display: block;
}

.score-inputs {
    display: flex; align-items: center; gap: 8px;
}

.score-input {
    width: 44px; height: 36px;
    background: rgba(20,8,45,0.9);
    border: 1px solid rgba(130,60,220,0.4);
    border-radius: 6px;
    color: #e8d9ff;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
    -moz-appearance: textfield;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-input:focus { border-color: rgba(180,120,255,0.8); }
.score-input::placeholder { color: rgba(180,120,255,0.2); font-size: 13px; }

.prono-save-btn {
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: 6px;
    color: #c084fc;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 0 10px; height: 36px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    min-width: 70px;
    text-align: center;
}

.prono-save-btn:hover { background: rgba(124,58,237,0.4); border-color: rgba(180,120,255,0.6); }

.prono-save-btn.prono-save-dirty {
    background: rgba(251,146,60,0.3);
    border-color: rgba(251,146,60,0.7);
    color: #fb923c;
}

.prono-save-flash {
    background: rgba(76, 237, 58, 0.5) !important;
    border-color: rgba(43, 202, 0, 0.9) !important;
    color: #fff !important;
}

.score-dash {
    color: #4a3070;
    font-family: 'Cinzel', serif;
    font-size: 16px;
}

.prono-saved {
    margin-left: auto;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: #fbbf24;
    letter-spacing: 1px;
    display: flex; align-items: center; gap: 4px;
}

.match-card-wrapper {
    position: relative;
    padding-top: 13px;
}

.card-points {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: #fbbf24;
    background: rgba(20,8,45,0.99);
    border: 1px solid rgba(251,191,36,0.4);
    border-radius: 20px;
    padding: 3px 13px;
    white-space: nowrap;
    z-index: 1;
}

.card-points-zero {
    color: #ff4444;
    border-color: rgba(255,60,60,0.4);
}

.card-points-low {
    color: #fb923c;
    border-color: rgba(251,146,60,0.4);
}

.card-points-mid {
    color: #4ade80;
    border-color: rgba(74,222,128,0.4);
}

.card-points-epic {
    color: #ffd700;
    border-color: rgba(255,215,0,0.6);
    box-shadow: 0 0 12px rgba(255,215,0,0.4), 0 0 24px rgba(255,215,0,0.2);
    animation: glow-gold 2s ease-in-out infinite;
}

@keyframes glow-gold {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3), 0 0 16px rgba(255,215,0,0.15); }
    50%       { box-shadow: 0 0 16px rgba(255,215,0,0.6), 0 0 32px rgba(255,215,0,0.3); }
}

.neibaf-quip {
    position: relative; z-index: 1;
    margin: 0 24px 32px;
    padding: 16px 19px;
    background: rgba(20,8,45,0.7);
    border-left: 3px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 16px;
    color: #9d7fbe;
    font-weight: 300;
}

.neibaf-quip span { color: #c084fc; font-weight: 400; }

.header-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 320px;
    z-index: 0;
    overflow: hidden;
}

.header-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.mute-btn {
    position: fixed;
    right: 16px;
    top: 60px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.4);
    color: #c084fc;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 1000;
}

.mute-btn:hover { background: rgba(124,58,237,0.35); }

.mute-btn.mute-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nuke-btn {
    display: block;
    width: 100px;
    margin: 10px auto 0;
    padding: 10px;
    background: rgba(106,10,10,0.8);
    border: 1px solid #ff4444;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s;
    border-radius: 12px;
}

.nuke-btn.visible { opacity: 1; }
.nuke-btn:hover { background: rgba(255,30,30,0.25); }

.kaboom-gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    pointer-events: none;
}

.mute-video-wrap {
    position: fixed;
    top: -480px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    z-index: 500;
    transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mute-video-wrap video {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(180,120,255,0.4);
    box-shadow: 0 0 30px rgba(130,60,220,0.4);
}

.mute-video-wrap.hide-instant { transition: none !important; }
.mute-video-wrap.visible { top: 25vh; }

.mute-video-inner {
    position: relative;
    width: 100%;
}

.confetti {
    position: fixed;
    top: -10px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.team-flag {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(180,120,255,0.3));
}

@media (max-width: 600px) {
    .title-main { font-size: 24px; }
    .matches-grid { grid-template-columns: 1fr; }
}

/*HEADER BAR*/
.stats-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 8px 24px;
    background: rgba(10,8,18,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(180,120,255,0.1);
    align-items: center;
}

.stat-pill {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: #9d7fbe;
    letter-spacing: 1px;
}

.stat-num { color: #fbbf24; font-weight: 600; }

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.user-name {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: #c084fc;
    letter-spacing: 1px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(130,60,220,0.5);
    box-shadow: 0 0 8px rgba(130,60,220,0.3);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(20,8,45,0.97);
    border: 1px solid rgba(130,60,220,0.4);
    overflow: hidden;
    min-width: 120px;
    z-index: 200;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: #c084fc;
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover { background: rgba(124,58,237,0.2); }
.user-dropdown.open { display: block; }

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.user-neibucks {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: #fbbf24;
    letter-spacing: 1px;
}

.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #c084fc;
    border-radius: 2px;
    transition: background 0.2s;
}

.burger-btn:hover span { background: #e8d9ff; }
/*END HEADER BAR*/

/*TESTIMONIALS*/
.testimonials-section {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    text-align: center;
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 960px;
    margin: 0 auto;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #c084fc;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    padding-bottom: 3px;
}

.carousel-btn:hover {
    background: rgba(124,58,237,0.35);
    border-color: rgba(180,120,255,0.7);
}

.testimonials-grid {
    flex: 1;
    min-width: 0;
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 24px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-grid::-webkit-scrollbar { display: none; }

.testimonial-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 280px;
    background: linear-gradient(135deg, rgba(30,15,60,0.8), rgba(20,8,45,0.9));
    border: 1px solid rgba(130,60,220,0.25);
    border-radius: 12px;
    padding: 22px;
    text-align: left;
}

.testimonial-text {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 16px;
    color: #c084fc;
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 72px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 13px;
}

.testimonial-name {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: #e8d9ff;
    letter-spacing: 1px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(130,60,220,0.5);
    box-shadow: 0 0 10px rgba(130,60,220,0.3);
    flex-shrink: 0;
}
/*END TESTIMONIALS*/

/*ADS*/
.ads-section {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    text-align: center;
}

.ads-video {
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    border: 1px solid rgba(130,60,220,0.25);
}
/*END ADS*/

/*RANKING*/
.standing-table {
    max-width: 960px;
    margin: 24px auto 40px;
    overflow-x: auto;
}

.standing-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.standing-table th {
    color: #4a3070;
    padding: 8px 13px;
    text-align: center;
    border-bottom: 1px solid rgba(130,60,220,0.2);
    font-size: 12px;
}

.standing-table td {
    padding: 8px 13px;
    text-align: center;
    color: #9d7fbe;
    border-bottom: 1px solid rgba(130,60,220,0.08);
}

.standing-table tr.qualify td { color: #c084fc; }

.standing-table .pts {
    color: #fbbf24;
    font-weight: 700;
}

.standing-team {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left !important;
}

.standing-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.standing-table th:nth-child(2),
.standing-table td:nth-child(2) {
    width: 300px;
    min-width: 200px;
}
/*END RANKING*/

/*MODAL*/
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal.open { display: flex; }

.modal-box {
    position: relative;
    background: linear-gradient(135deg, rgba(30,15,60,0.98), rgba(20,8,45,0.99));
    border: 1px solid rgba(130,60,220,0.4);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: #6b4f9e;
    font-size: 16px;
    cursor: pointer;
}

.modal-close:hover { color: #c084fc; }

.venue-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 19px;
    object-fit: cover;
    max-height: 200px;
}

.venue-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #c084fc;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.venue-city {
    font-size: 14px;
    color: #6b4f9e;
    font-style: italic;
    margin-bottom: 16px;
}

.venue-stat {
    font-size: 14px;
    color: #9d7fbe;
    margin-bottom: 6px;
}

.modal-loading {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: #6b4f9e;
    letter-spacing: 3px;
    text-align: center;
    padding: 32px;
}

.modal-img-team {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 19px;
}
/*END MODAL*/

/*ACHIEVEMENTS*/
.achievement-toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(30,15,60,0.97), rgba(20,8,45,0.99));
    border: 1px solid rgb(251,191,36);
    padding: 16px;
    z-index: 9000;
    box-shadow: 0 0 20px rgba(130,60,220,0.3);
    transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-toast.visible { top: 24px; }

.achievement-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    border: 2px solid rgb(157,127,190);
}

.achievement-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    color: #fbbf24;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.achievement-desc {
    font-family: 'Crimson Pro', serif;
    font-size: 16px;
    color: #9d7fbe;
    font-style: italic;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.achievement-unlocked {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #fbbf24;
    background: rgba(20,8,45,0.99);
    padding: 0 8px;
    white-space: nowrap;
}
/*END ACHIEVEMENTS*/