        /* Ensure dark background extends to iOS status bar area */
        html {
            background-color: #0f172a;
            min-height: 100vh;
        }
        body {
            max-width: 100%;
            overflow-x: clip; /* Prevent horizontal scroll without breaking position:sticky */
        }
        /* Prize distribution tooltip */
        .prize-tooltip-container {
            position: relative;
            display: inline-block;
            cursor: help;
        }
        
        .prize-tooltip {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(234, 88, 12, 0.95) 100%);
            color: white;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 13px;
            white-space: nowrap;
            z-index: 1000;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.3);
            transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
            pointer-events: none;
        }
        
        .prize-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: rgba(249, 115, 22, 0.95);
        }
        
        .prize-tooltip-container:hover .prize-tooltip {
            visibility: visible;
            opacity: 1;
            transform: translateX(-50%) translateY(-4px);
        }
        
        .prize-tooltip-line {
            padding: 2px 0;
            font-weight: 500;
        }
        
        .prize-tooltip-line:first-child {
            padding-top: 0;
        }
        
        .prize-tooltip-line:last-child {
            padding-bottom: 0;
        }
        
        /* Team ranking tooltip */
        .team-ranking-badge {
            position: relative;
            display: inline-block;
        }
        
        .team-ranking-tooltip {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-4px);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
            pointer-events: none;
            font-weight: 600;
        }
        
        .team-ranking-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 4px solid transparent;
            border-top-color: rgba(37, 99, 235, 0.95);
        }
        
        .team-ranking-badge:hover .team-ranking-tooltip {
            visibility: visible;
            opacity: 1;
            transform: translateX(-50%) translateY(-8px);
        }

        /* Rank badge wrapper for tournament page team cards */
        .rank-tip-wrap {
            position: relative;
            display: inline-block;
        }

        .rank-tip-wrap:hover .team-ranking-tooltip {
            visibility: visible;
            opacity: 1;
            transform: translateX(-50%) translateY(-8px);
        }

        /* Tournament strength tooltip */
        .strength-badge-wrap {
            position: relative;
            display: inline-flex;
            cursor: help;
        }
        
        .strength-tooltip {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-4px);
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
            color: white;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 1000;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 116, 139, 0.2);
            transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
            pointer-events: none;
        }
        
        .strength-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: rgba(30, 41, 59, 0.98);
        }
        
        .strength-badge-wrap:hover .strength-tooltip {
            visibility: visible;
            opacity: 1;
            transform: translateX(-50%) translateY(-8px);
        }
        
        /* Team info modal */
        .team-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.2s ease-out;
        }
        
        .team-modal.active {
            display: flex;
        }
        
        .team-modal-content {
            background: linear-gradient(135deg, rgb(30, 41, 59) 0%, rgb(15, 23, 42) 100%);
            border: 2px solid rgba(249, 115, 22, 0.3);
            border-radius: 16px;
            padding: 24px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease-out;
            position: relative;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .team-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid rgba(248, 113, 113, 0.3);
            color: #f87171;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .team-modal-close:hover {
            background: rgba(248, 113, 113, 0.2);
            border-color: rgba(248, 113, 113, 0.5);
        }
        
        /* Registration countdown */        
        [data-reg-date] .reg-countdown {
            letter-spacing: 0.5px;
            font-variant-numeric: tabular-nums;
        }
        
        /* Line clamp utility */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* Signup Ticker Bar */
        .signup-ticker {
            display: flex;
            align-items: center;
            background: rgba(18, 32, 48, 0.5);
            border: 1px solid rgba(249, 115, 22, 0.3);
            border-radius: 10px;
            margin-bottom: 8px;
            height: 40px;
            overflow: hidden;
            transition: border-color 0.3s;
        }

        .signup-ticker:hover {
            border-color: rgba(249, 115, 22, 0.5);
        }

        .ticker-label {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0 12px;
            flex-shrink: 0;
            border-right: 1px solid rgba(249, 115, 22, 0.2);
            height: 100%;
            background: rgba(249, 115, 22, 0.05);
            white-space: nowrap;
        }

        .live-dot {
            width: 6px;
            height: 6px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse-dot 2s infinite;
            flex-shrink: 0;
        }

        @keyframes pulse-dot {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
        }

        .ticker-label-text {
            font-size: 11px;
            font-weight: 600;
            color: #e5e7eb;
            letter-spacing: 0.03em;
        }

        .ticker-viewport {
            flex: 1;
            overflow: hidden;
            position: relative;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .ticker-panel {
            display: flex;
            align-items: center;
            white-space: nowrap;
            width: 100%;
            height: 100%;
        }

        .ticker-panel.ticker-flip-out {
            animation: ticker-fade-out 0.3s ease-in forwards;
        }

        .ticker-panel.ticker-flip-in {
            animation: ticker-fade-in 0.3s ease-out forwards;
        }

        @keyframes ticker-fade-out {
            from { opacity: 1; }
            to   { opacity: 0; }
        }

        @keyframes ticker-fade-in {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        .ticker-tournament-sep {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0 10px 0 16px;
            color: #fb923c;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .ticker-tournament-sep::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 4px;
            background: #fb923c;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .ticker-team {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0 8px;
            flex-shrink: 0;
            cursor: pointer;
            border-radius: 5px;
            transition: background 0.15s;
            height: 28px;
        }

        .ticker-team:hover {
            background: rgba(249, 115, 22, 0.12);
        }

        .ticker-team-logo {
            width: 20px;
            height: 20px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .ticker-team-name {
            font-size: 12px;
            font-weight: 600;
            color: #e5e7eb;
            white-space: nowrap;
        }

        .ticker-entry-tournament {
            font-size: 10px;
            font-weight: 700;
            color: #fb923c;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            white-space: nowrap;
            flex-shrink: 0;
            padding-right: 5px;
        }

        .ticker-divider {
            display: inline-block;
            width: 1px;
            height: 18px;
            background: rgba(100, 116, 139, 0.25);
            margin: 0 6px;
            flex-shrink: 0;
            vertical-align: middle;
        }
        
        /* Highlight flash when scrolling to tournament */
        @keyframes highlight-flash {
            0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
            50% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.5); }
        }

        .highlight-flash {
            animation: highlight-flash 2s ease-out;
        }

        /* Hide horizontal scrollbar on the nav/toolbar row */
        .nav-no-scrollbar {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .nav-no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        /* Mobile layout optimizations */
        @media (max-width: 767px) {
            /* Reduce padding/gap between elements by 30% */
            #upcoming-content,
            #past-content {
                gap: 11px !important;
            }

            #upcoming-content,
            #past-content,
            #calendar-content,
            #matches-content,
            #rankings-content,
            #news-content,
            #tournament-page-content {
                padding-top: 6px !important;
            }

            /* clash.gg ad height override (115px * 1.14 ≈ 131px for mobile) */
            .clash-ad-banner iframe {
                height: 131px !important;
            }

            /* Reduce padding above and below mobile matches preview by 50% */
            #mobile-matches-preview > div {
                padding-top: 6px !important;
                padding-bottom: 2px !important;
            }
        }


