:root {
            --sc-primary: #38a9ff;
            --sc-primary-hover: #1892ed;
            --sc-dark: #1e2024;
            --sc-dark-lighten: #292c31;
            --sc-card-header: #303337;
            --sc-card-border: #34373c;
            --sc-gray: #9a9da2;
            --sc-white: #ffffff;
            --sc-neon: #c2ff1f;
            --sc-gold: #ffb400;
            --sc-silver: #dfe3ee;
            --sc-bronze: #ff7e1f;
        }

        body {
            background-color: #1e2024;
            color: #d8dce5;
            font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3, h4, h5, h6, .font-heading {
            font-family: 'Roboto Condensed', sans-serif;
            letter-spacing: 0.5px;
        }

        /* Custom scrollbar */
        select {
            appearance: none !important;
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            outline: none !important;
            border: none !important;
            background-color: transparent !important;
            color-scheme: dark !important;
        }

        select::-ms-expand {
            display: none;
        }

        select:focus,
        select:active {
            outline: none !important;
            box-shadow: none !important;
        }

        select option {
            background-color: #292c31;
            color: #ffffff;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #191b1e;
        }

        ::-webkit-scrollbar-thumb {
            background: #34373c;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #38a9ff;
        }

        /* Serb-Craft Alchemists Panels & Match Cards */
        .mc-panel {
            background: #292c31;
            border: 1px solid #34373c;
            border-radius: 6px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
        }

        .mc-slot {
            background: #1e2024;
            border: 1px solid #34373c;
            border-radius: 4px;
        }

        .mc-match-card {
            background: #292c31;
            border: 1px solid #34373c;
            border-radius: 6px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        }

        .mc-match-card:hover {
            border-color: #38a9ff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(56, 169, 255, 0.15);
        }

        /* Live Match Highlight - Serb-Craft Electric Pulse */
        .mc-match-live {
            background: linear-gradient(135deg, #182622 0%, #15222e 100%) !important;
            border: 2px solid #c2ff1f !important;
            box-shadow: 0 0 25px rgba(194, 255, 31, 0.45), inset 0 0 15px rgba(194, 255, 31, 0.08) !important;
            position: relative;
            animation: livePulse 2.2s ease-in-out infinite;
        }

        @keyframes livePulse {
            0%, 100% {
                border-color: #c2ff1f;
                box-shadow: 0 0 22px rgba(194, 255, 31, 0.45);
            }
            50% {
                border-color: #38a9ff;
                box-shadow: 0 0 30px rgba(56, 169, 255, 0.6);
            }
        }

        /* Bracket Column styling */
        .bracket-round {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            min-width: 290px;
            max-width: 330px;
        }

        .search-highlight {
            border-color: #38a9ff !important;
            box-shadow: 0 0 20px rgba(56, 169, 255, 0.5) !important;
            transform: scale(1.02);
            z-index: 20;
            position: relative;
            background: #202b38 !important;
        }

        .search-dimmed {
            opacity: 0.25 !important;
            filter: grayscale(80%) !important;
            transition: all 0.2s ease;
        }

        #bracket-zoom-area {
            transform-origin: top left;
            transition: transform 0.15s ease-out;
        }

        /* Serb-Craft Esports Buttons */
        .mc-btn {
            cursor: pointer;
            user-select: none;
            background: #34373c;
            border: 1px solid #3f4246;
            border-radius: 4px;
            font-family: 'Roboto Condensed', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #ffffff;
            transition: all 0.15s ease;
        }

        .mc-btn:hover {
            background: #38a9ff;
            border-color: #38a9ff;
            color: #1e2024;
        }

        .mc-btn:active {
            transform: translateY(1px);
        }

        .mc-btn-primary {
            background: #38a9ff;
            border: 1px solid #38a9ff;
            color: #1e2024;
            font-weight: 800;
        }

        .mc-btn-primary:hover {
            background: #1892ed;
            border-color: #1892ed;
            color: #ffffff;
        }

        /* Podium Blocks */
        .mc-gold-block {
            background: #292c31;
            border: 2px solid #ffb400;
            box-shadow: 0 4px 25px rgba(255, 180, 0, 0.25);
        }

        .mc-iron-block {
            background: #292c31;
            border: 2px solid #dfe3ee;
            box-shadow: 0 4px 20px rgba(223, 227, 238, 0.18);
        }

        .mc-copper-block {
            background: #292c31;
            border: 2px solid #ff7e1f;
            box-shadow: 0 4px 20px rgba(255, 126, 31, 0.18);
        }

        .sc-hero-bg {
            background: linear-gradient(180deg, rgba(30, 32, 36, 0.88) 0%, rgba(41, 44, 49, 0.98) 100%), url('/banner-bg.webp') center/cover no-repeat;
        }

        .dot-canvas {
            background-color: #24272d;
            background-image: radial-gradient(#3a3e47 1.5px, transparent 1.5px);
            background-size: 18px 18px;
        }

        /* ===================================================================
         * MOBILE & TOUCH-SCREEN RESPONSIVENESS OPTIMIZATIONS
         * =================================================================== */

        /* Smooth momentum touch scrolling for bracket areas & modals */
        .overflow-x-auto,
        .overflow-y-auto,
        #bracket-canvas-section,
        #bracket-zoom-area,
        .mc-panel {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
        }

        #bracket-zoom-area {
            touch-action: pan-x pan-y pinch-zoom;
        }

        /* Hide scrollbar for Chrome, Safari and Opera */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        /* Hide scrollbar for IE, Edge and Firefox */
        .no-scrollbar {
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }

        /* Clean custom selects without browser native double arrows */
        select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        /* Mobile adjustments (screens under 640px) */
        @media (max-width: 640px) {
            body {
                font-size: 13px;
            }

            .bracket-round {
                min-width: 225px !important;
                max-width: 260px !important;
            }

            #bracket-canvas-section {
                padding: 0.75rem !important;
            }

            /* Truncate select text on small mobile screens */
            select {
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
                max-width: 100%;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
            }

            /* Better touch targets for buttons and select inputs */
            .mc-btn,
            button,
            select,
            input[type="text"],
            input[type="date"] {
                min-height: 34px;
            }

            /* Compact match cards on small screens */
            .mc-match-card {
                padding: 0.5rem;
            }

            /* Header brand scaling */
            #brand-logo-link .font-black {
                font-size: 1.2rem;
            }

            /* Modal dialogs responsiveness */
            .mc-panel.max-w-xl,
            .mc-panel.max-w-lg,
            .mc-panel.max-w-md,
            .mc-panel.max-w-2xl {
                width: 95vw !important;
                max-height: 92vh !important;
                overflow-y: auto !important;
                margin: auto !important;
                padding: 1rem !important;
            }

            /* Minecraft Inventory slots responsive grid on phones */
            .mc-inv-grid {
                display: grid !important;
                grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
                gap: 2px !important;
            }

            .mc-inv-slot {
                aspect-ratio: 1 / 1 !important;
                min-width: 24px !important;
                max-width: 36px !important;
            }

            /* Topbar quick links wrap gracefully */
            .serb-craft-topbar-links {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
            }
        }

        /* Tablet adjustments (screens under 1024px) */
        @media (max-width: 1024px) {
            .bracket-round {
                min-width: 260px;
                max-width: 300px;
            }
        }
