* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
			--primary: #0a2540;
			--primary-red: #e63946;
            --primary-blue: #1d3557;
			--white: #ffffff;
            --gray: #f5f5f5;
			--accent: #c41e3a;
			--accent-dark: #b01b34;
            --accent-yellow: #f9c74f;
            --accent-orange: #f77f00;
            --dark: #0a0e27;
            --light: #f8f9fa;
            --secondary: #d4af37;
            --grass-dark: #1a5f2a;
            --grass-light: #2d8b3f; 
            --text-dark: #1a1a1a;
        }

       
		
		body {
    font-family: 'Bitter', serif;
    background: linear-gradient(135deg, var(--dark) 0%, #23232a 50%, var(--dark) 100%) fixed;
    background-attachment: fixed; /* Force background to stay fixed */
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 70px), repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.01) 35px, rgba(255,255,255,0.01) 70px);
            pointer-events: none;
			z-index: -1;
        }

        /* Animated stadium lights effect */
        @keyframes pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.7; }
        }
		
		.flex {display:flex;}
		.align-center {align-items:center;}
		.justify-content: {justify-content:center;}
		.center {text-align: center;}

        .stadium-lights {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 200px;
            background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
            animation: pulse 4s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            padding: 60px 20px;
            position: relative;
            z-index: 10;
        }

        header {
            text-align: center;
            margin-bottom: 80px;
            opacity: 0;
            animation: fadeInDown 1s ease forwards;
        }
		
		header h2 {
			margin-top: 35px;
		}

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        h1 {
            font-family: 'Oswald', sans-serif;
			font-size: clamp(2.3rem, 8vw, 4.6rem);
            color: var(--light);
            text-transform: uppercase;
            letter-spacing: 0.02em;
            margin-bottom: 15px;
        }

        .subtitle {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
            color: var(--accent-yellow);
            font-weight: 400;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
		
		.contest-card {
            position: relative;
            background: rgba(29, 53, 87, 0.6);
            border-radius: 20px;
            padding: 40px;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
            border: 3px solid transparent;
            opacity: 0;
            transform: translateY(100px) scale(0.9);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            text-decoration: none;
            display: block;
        }

        .contest-card:nth-child(1) {
            animation: slideInUp 0.8s ease forwards 0.3s;
        }

        .contest-card:nth-child(2) {
            animation: slideInUp 0.8s ease forwards 0.6s;
        }

        @keyframes slideInUp {
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .contest-card:focus-visible {
            outline: 3px solid var(--accent-yellow);
            outline-offset: 5px;
        }

        .btn-play:focus-visible {
            outline: 3px solid white;
            outline-offset: 3px;
        }

        /* Loading animation pulse */
        @keyframes pulseCard {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.6;
            }
        }

        .contest-card:active {
            animation: pulseCard 0.3s ease;
        }
		
		.contest-card.loaded {
            animation: none;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .contest-card.loaded:hover {
            transform: translateY(-10px) scale(1);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
        }

        /* Not allowed cursor for coming soon */
        .contest-card.coming-soon {
            cursor: not-allowed;
        }

        .contest-card.super-bowl {
            border-color: transparent;
        }

        .contest-card.march-madness {
            border-color: transparent;
        }

        .logo-container {
            width: 100%;
            height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
			padding: 20px;
            position: relative;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.03);
        }

        .logo-container img {
            width: 85%;
            height: auto;
            max-height: 100%;
            object-fit: cover;
            filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
        }

        .contest-title {
            font-family: 'Oswald', sans-serif;
            font-size: clamp(1.6rem, 4vw, 1.8rem);
            color: var(--light);
            text-align: center;
            margin-bottom: 15px;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .contest-description {
            font-family: 'Oswald', sans-serif;
            font-size: 1.1rem;
            color: rgba(248, 249, 250, 0.8);
            text-align: center;
            line-height: 1.6;
            margin-bottom: 25px;
            font-weight: 300;
        }

        .btn-play {
            display: block;
            width: 100%;
            padding: 18px 40px;
            font-family: 'Russo One', sans-serif;
            font-size: 1.2rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
			text-align: center;
        }

        .btn-play:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .btn-play span {
            position: relative;
            z-index: 1;
        }

        .super-bowl .btn-play {
            background: linear-gradient(135deg, var(--primary-red), #d62839);
            color: white;
        }

        .march-madness .btn-play {
            background: linear-gradient(135deg, var(--accent-orange), #e67300);
            color: white;
        }

        /* Change button color for coming soon */
        .coming-soon .btn-play {
            background: linear-gradient(135deg, var(--accent-orange), #e67300);
            color: white;
            cursor: not-allowed;
        }

        .coming-soon .btn-play:hover {
            transform: none;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .contests-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 60px;
            max-width: 900px;
            margin: 0 auto;
        }

        .available-counter {
            background: rgba(212, 175, 55, 0.2);
            border: 2px solid var(--secondary);
            border-radius: 8px;
            padding: 15px 25px;
            text-align: center;
            font-family: 'Bebas Neue', sans-serif;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
			margin-top: 20px;
        }

        .counter-label {
            font-size: 1.6rem;
            color: var(--white);
            letter-spacing: 2px;
        }

        .counter-number {
            font-size: 3rem;
            color: var(--secondary);
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            min-width: 60px;
			letter-spacing: 0.03em;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            gap: 40px;
            align-items: stretch;
        }

        .sidebar {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            animation: fadeIn 0.8s ease-out 0.4s both;
        }

        .grid-container {
            background-color: rgba(29, 53, 87, 0.6);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
            position: relative;
            overflow: hidden;
            animation: fadeIn 0.8s ease-out 0.2s both;
            width: 100%;
            max-width: 100%;
        }

        .grid-wrapper {
            display: grid;
            grid-template-columns: 35px 1fr;
            grid-template-rows: 40px 1fr;
            gap: 10px;
            position: relative;
        }

        .corner-label {
            grid-column: 1;
            grid-row: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 1px;
        }

        .afc-header {
            grid-column: 2;
            grid-row: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nfc-header {
            grid-column: 1;
            grid-row: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: stretch;
        }

        .team-label {
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2.4rem;
            color: var(--white);
            font-weight: bold;
            letter-spacing: 2px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        .afc-header .team-label {
            height: 40px;
            width: 100%;
        }

        .nfc-header .team-label {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            padding: 8px;
            width: 35px;
            height: auto;
        }

        .grid-content {
            grid-column: 2;
            grid-row: 2;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Field lines pattern */
        .grid-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.05) 49px, rgba(255,255,255,0.05) 50px);
            pointer-events: none;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 0;
            position: relative;
        }
		
        .square {
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid #999;
            border-radius: 0;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: var(--text-dark);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
			min-width: 80px;
            min-height: 80px;
			padding: 0 5px;
        }

        .square::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.9) 100%);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .square:hover::before {
            opacity: 1;
        }

        .square:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
            border: 2px solid #888888;
        }

        .square.selected {
            background: var(--secondary);
            color: var(--primary);
            border-color: #888888;
            box-shadow: 
                0 0 20px rgba(212, 175, 55, 0.6),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
            animation: selectPulse 0.4s ease-out;
        }

        @keyframes selectPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }

        .square.locked {
            background: #7e7e7e;
            color: var(--white);
            cursor: not-allowed;
            border-color: #888888;
        }

        .square.locked::before {
            display: none;
        }

        .square.locked:hover {
            transform: none;
            box-shadow: none;
            border-color: #888888;
        }

        .square.purchased {
            background: var(--accent);
            color: var(--white);
            cursor: not-allowed;
        }

        .square.purchased::before {
            display: none;
        }

        .square.purchased:hover {
            transform: none;
            box-shadow: none;
        }

        .square-number {
            font-size: 1.8rem;
            opacity: 0.7;
            font-weight: bold;
			padding: 0 5px;
        }

        .square-owner {
            font-size: 1.2rem;
            text-align: center;
            font-family: 'Bitter', serif;
            font-weight: 700;
            line-height: 1.2;
        }
		
		.square.winning-square {
			background: #74B72E!important;
		}

        .info-card {
            background: rgba(29, 53, 87, 0.6);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }

        .info-card h2 {
            font-size: 1.9rem;
            color: var(--white);
            margin-bottom: 25px;
            letter-spacing: 2px;
			text-transform: uppercase;
			text-align: center;
        }

        .price-display {
            background: linear-gradient(135deg, var(--accent) 0%, #8a1626 100%);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .price-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            opacity: 0.9;
            margin-bottom: 8px;
			color: #FFF;
        }

        .price-amount {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 3.5rem;
            color: var(--secondary);
            line-height: 1;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
		
		.choose-squares {
			color: var(--secondary);
			margin-bottom: 25px;
		}

        .selected-count {
            font-size: 1rem;
            margin-top: 10px;
            color: var(--white);
        }

        .timer-display {
            background: rgba(196, 30, 58, 0.3);
            border: 2px solid var(--accent);
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            margin-bottom: 20px;
            text-align: center;
            display: none;
        }

        .timer-display.active {
            display: block;
            animation: fadeIn 0.3s;
        }

        .timer-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.9;
            margin-bottom: 5px;
			color: var(--white);
        }

        .timer-countdown {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2.5rem;
            color: var(--secondary);
            line-height: 1;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        }

        .timer-countdown.warning {
            color: var(--accent);
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.05); }
        }

        .timer-message {
            font-size: 0.8rem;
            margin-top: 8px;
            color: rgba(255, 255, 255, 0.8);
        }

        .checkout-btn {
            width: 100%;
            padding: 18px;
            background: var(--secondary);
            color: var(--primary);
            border: none;
            border-radius: 8px;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.8rem;
            letter-spacing: 2px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
            position: relative;
            overflow: hidden;
        }

        .checkout-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .checkout-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
        }

        .checkout-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .checkout-btn span {
            position: relative;
            z-index: 1;
        }

        .legend {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }
		
		.overtime {
		margin: 25px 0 10px;
		font-weight: 700;
		}

        .sb-logo-container {
            text-align: center;
            margin: 20px 0 40px 0;
        }

        .sb-logo {
            max-width: 240px;
            width: 100%;
            height: auto;
        }

        .sb-date {
            text-align: center;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.8rem;
            color: var(--secondary);
            letter-spacing: 2px;
            margin-bottom: 30px;
        }

        .sb-countdown {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            text-align: center;
        }

        .countdown-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(212, 175, 55, 0.1);
            padding: 15px 10px;
            border-radius: 8px;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }

        .countdown-number {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2rem;
            color: var(--white);
            line-height: 1;
            margin-bottom: 5px;
        }

        .countdown-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--white);
            opacity: 0.8;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1rem;
			color: var(--white);
        }

        .legend-box {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .legend-box.available {
            background: rgba(255, 255, 255, 0.95);
        }

        .legend-box.selected {
            background: var(--secondary);
        }

        .legend-box.locked {
            background: #7e7e7e;
        }

        .legend-box.purchased {
            background: var(--accent);
        }
		
		.legend-box.winner {
			background: #74B72E;
		}

        .prizes {
            width: 100%;
        }

        .prizes ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .prizes li {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .prize-label {
            font-weight: 700;
            color: var(--secondary);
        }

        .prize-amount {
            color: var(--white);
            font-weight: 600;
        }
		
		/* Tooltip Icon */

		
		.tooltip-icon {
			display: inline-flex;
			position: relative;
			align-items: center;
			justify-content: center;
			margin-left: 5px;
			cursor: pointer;
			color: rgba(255, 255, 255, 0.7);
			transition: all 0.3s ease;
			width: 16px;
			height: 16px;
			top: 3px;
		}


		/* Tooltip Modal */
		.tooltip-modal {
			display: none;
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: rgba(0, 0, 0, 0.85);
			z-index: 10000;
			align-items: center;
			justify-content: center;
			backdrop-filter: blur(5px);
		}

		.tooltip-modal.active {
			display: flex;
		}

		.tooltip-modal-content {
			background: linear-gradient(135deg, rgba(26, 58, 95, 0.98) 0%, rgba(10, 37, 64, 0.98) 100%);
			padding: 40px;
			border-radius: 16px;
			max-width: 500px;
			width: 90%;
			position: relative;
			box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
			border: 2px solid var(--secondary);
		}

		.tooltip-modal-content h3 {
			color: var(--secondary);
			margin-bottom: 20px;
			font-size: 1.8rem;
			text-transform: uppercase;
			letter-spacing: 1px;
			font-weight: 700;
			line-height: 1.2;
		}

		.tooltip-modal-content p {
			color: rgba(255, 255, 255, 0.9);
			line-height: 1.8;
			margin-bottom: 15px;
			font-size: 1rem;
		}

		.tooltip-modal-content ul {
			color: rgba(255, 255, 255, 0.9);
			line-height: 1.8;
			margin: 10px 0 15px 20px;
			list-style: disc;
		}

		.tooltip-modal-content p:last-of-type {
			margin-bottom: 0;
		}

		.tooltip-modal-close {
			position: absolute;
			top: 15px;
			right: 15px;
			width: 35px;
			height: 35px;
			background: rgba(255, 255, 255, 0.1);
			border: 2px solid rgba(255, 255, 255, 0.3);
			border-radius: 50%;
			cursor: pointer;
			display: flex;
			align-items: center;
			justify-content: center;
			transition: all 0.3s ease;
			z-index: 10;
		}

		.tooltip-modal-close::before,
		.tooltip-modal-close::after {
			content: '';
			position: absolute;
			width: 18px;
			height: 2px;
			background: var(--white);
			transition: background 0.3s ease;
		}

		.tooltip-modal-close::before {
			transform: rotate(45deg);
		}

		.tooltip-modal-close::after {
			transform: rotate(-45deg);
		}

		.tooltip-modal-close:hover {
			background: rgba(212, 175, 55, 0.2);
			border-color: var(--secondary);
			transform: rotate(90deg);
		}

		.tooltip-modal-close:hover::before,
		.tooltip-modal-close:hover::after {
			background: var(--secondary);
		}

        #paypal-button-container {
            margin-top: 20px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s;
            overflow-y: auto;
            padding: 20px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--primary);
            padding: 40px;
            border-radius: 12px;
            max-width: 500px;
            width: 90%;
            border: 2px solid var(--secondary);
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: slideUp 0.4s ease-out;
            max-height: 90vh;
            overflow-y: auto;
            margin: auto;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-content h2 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2.5rem;
            color: var(--secondary);
            margin-bottom: 20px;
            letter-spacing: 2px;
        }
		
		.modal-close {
			position: absolute;
			top: 15px;
			right: 15px;
			width: 35px;
			height: 35px;
			background: rgba(255, 255, 255, 0.1);
			border: 2px solid rgba(255, 255, 255, 0.3);
			border-radius: 50%;
			cursor: pointer;
			display: flex;
			align-items: center;
			justify-content: center;
			transition: all 0.3s ease;
			z-index: 10;
		}

		.modal-close:hover {
			background: rgba(255, 255, 255, 0.2);
			border-color: var(--secondary);
			transform: rotate(90deg);
		}

		.modal-close::before,
		.modal-close::after {
			content: '';
			position: absolute;
			width: 18px;
			height: 2px;
			background: var(--white);
			transition: background 0.3s ease;
		}

		.modal-close:hover::before,
		.modal-close:hover::after {
			background: var(--secondary);
		}

		.modal-close::before {
			transform: rotate(45deg);
		}

		.modal-close::after {
			transform: rotate(-45deg);
		}

		.modal-content {
			background: var(--primary);
			padding: 40px;
			border-radius: 12px;
			max-width: 500px;
			width: 90%;
			border: 2px solid var(--secondary);
			box-shadow: 0 20px 60px rgba(0,0,0,0.5);
			animation: slideUp 0.4s ease-out;
			max-height: 90vh;
			overflow-y: auto;
			margin: auto;
			position: relative; /* Add this */
		}

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            color: var(--white);
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            font-size: 1rem;
            font-family: 'Bitter', serif;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--secondary);
            background: rgba(255, 255, 255, 0.15);
        }

        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 6px;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.3rem;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background: var(--secondary);
            color: var(--primary);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
        }

        .btn-secondary {
            background: var(--accent);
            color: var(--white);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:hover {
            background: var(--accent-dark);
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: var(--secondary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
		
		.error-container {
            max-width: 800px;
            width: 100%;
            margin: 0 auto;
            padding: 60px 20px;
            text-align: center;
            position: relative;
            z-index: 10;
            animation: fadeInUp 0.8s ease forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .error-code {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(8rem, 20vw, 15rem);
            color: var(--secondary);
            line-height: 1;
            text-shadow: 
                0 0 30px rgba(212, 175, 55, 0.5),
                0 0 60px rgba(212, 175, 55, 0.3),
                5px 5px 0 rgba(0, 0, 0, 0.3);
            margin-bottom: 20px;
            animation: glow 2s ease-in-out infinite;
        }

        @keyframes glow {
            0%, 100% {
                text-shadow: 
                    0 0 30px rgba(212, 175, 55, 0.5),
                    0 0 60px rgba(212, 175, 55, 0.3),
                    5px 5px 0 rgba(0, 0, 0, 0.3);
            }
            50% {
                text-shadow: 
                    0 0 40px rgba(212, 175, 55, 0.8),
                    0 0 80px rgba(212, 175, 55, 0.5),
                    5px 5px 0 rgba(0, 0, 0, 0.3);
            }
        }

        .error-title {
            font-family: 'Oswald', sans-serif;
            font-size: clamp(2rem, 5vw, 3.5rem);
            color: var(--light);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .error-message {
            font-family: 'Bitter', sans-serif;
            font-size: clamp(1rem, 2vw, 1.3rem);
            color: rgba(248, 249, 250, 0.8);
            line-height: 1.6;
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .football-icon {
            font-size: 4rem;
            margin-bottom: 30px;
            animation: spin 3s linear infinite;
            display: inline-block;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .btn-home {
            display: inline-block;
            padding: 18px 50px;
            background: linear-gradient(135deg, var(--secondary), #b89a2e);
            color: var(--primary);
            font-family: 'Russo One', sans-serif;
            font-size: 1.3rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
            position: relative;
            overflow: hidden;
            margin: 10px;
        }

        .btn-home::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn-home:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-home:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
        }

        .btn-home span {
            position: relative;
            z-index: 1;
        }

        .btn-secondary {
            background: linear-gradient(135deg, var(--primary-red), #d62839);
        }

        .btn-secondary:hover {
            box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
        }

        .error-links {
            margin-top: 40px;
        }

        


		@media (min-width: 1025px) {
            .contests-grid {
                grid-template-columns: 1fr 1fr;
                gap: 60px;
            }
        }
		
        @media (max-width: 1024px) {
			
            .sidebar {
                grid-template-columns: 1fr;
            }

            h1 {
                font-size: 3.5rem;
            }
            
            .grid-wrapper {
                gap: 8px;
                grid-template-columns: 32px 1fr;
                grid-template-rows: 35px 1fr;
            }
                    
            
            .nfc-header .team-label {
                width: 32px;
            }
			
			.square-number, .square-owner {
                font-size: 1.2rem;
            }
			
        }

        @media (max-width: 768px) {
			
			.container {
                padding: 40px 15px;
            }

            header {
                margin-bottom: 40px;
            }

            .contests-grid {
                gap: 40px;
            }

            .contest-card {
                padding: 30px 20px;
            }

            .logo-container {
                height: 220px;
            }
			.contests-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
			
            h1 {
                font-size: 2.5rem;
                letter-spacing: 3px;
            }

            .subtitle {
                font-size: 1rem;
            }

            .available-counter {
                padding: 12px 20px;
                margin-bottom: 15px;
                flex-direction: column;
                gap: 5px;
            }

            .counter-label {
                font-size: 1.5rem;
            }

            .counter-number {
                font-size: 2.2rem;
            }

            .grid-container {
                overflow-x: auto;
                width: 100%;
                padding: 20px;
            }

            .grid-wrapper {
                min-width: 600px;
            }

            .grid {
                gap: 0;
            }
            
            .grid-wrapper {
                gap: 8px;
                grid-template-columns: 40px 1fr;
                grid-template-rows: 40px 1fr;
            }
			

            .square {
                font-size: 1.4rem;
                min-height: 50px;
            }

            
            .timer-countdown {
                font-size: 2rem;
            }

            .sb-countdown {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .countdown-number {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
			
            h1 {
                font-size: 1.8rem;
                letter-spacing: 2px;
				line-height: 1.2;
            }

            .grid-container {
                padding: 15px;
            }

            .grid-wrapper {
                min-width: 550px;
            }

            .grid {
                gap: 0;
            }
            
            .grid-wrapper {
                gap: 6px;
                grid-template-columns: 35px 1fr;
                grid-template-rows: 35px 1fr;
            }

            .square {
                min-height: 65px;
				min-width: 65px;
            }

            .square-number, .square-owner {
                font-size: 0.9rem;
            }
            
            .nfc-header .team-label, .afc-header .team-label {
                font-size: 1.4rem;
            }
            
        }