        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&family=Playfair+Display:wght@400;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --primary-color: #FFD700;
            --secondary-color: #9D4EDD;
            --accent-color: #FF006E;
            --dark-bg: #0A0E27;
            --darker-bg: #05071b;
            --text-light: #E0E1DD;
            --text-dim: #A8A9AD;
            --card-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --vh: 1vh;
        }

        html {
            overflow: hidden;
            width: 100%;
            height: 100%;
            overscroll-behavior: none;
            position: fixed;
            -webkit-overflow-scrolling: touch;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--darker-bg);
            color: var(--text-light);
            overflow: hidden;
            line-height: 1.6;
            width: 100%;
            height: 100vh;
            height: calc(var(--vh, 1vh) * 100);
            position: fixed;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            touch-action: auto;
            -webkit-user-select: auto;
            user-select: auto;
            -webkit-tap-highlight-color: transparent;
        }

        @media (max-width: 768px) {
            body {
                font-size: 0.9rem;
                line-height: 1.4;
            }

            html,
            body {
                filter: brightness(1.18) saturate(1.08);
            }
        }

        html.device-mobile,
        body.device-mobile {
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            height: auto;
            min-height: 100vh;
            touch-action: pan-y;
            -webkit-user-select: auto;
            user-select: auto;
            filter: brightness(1.18) saturate(1.08);
        }

        /* Animated Background */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            background: radial-gradient(ellipse at center, transparent 0%, var(--darker-bg) 100%);
            pointer-events: none;
        }

        .animated-bg::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg at 50% 50%, 
                transparent 0deg, 
                var(--secondary-color) 60deg, 
                transparent 120deg, 
                var(--accent-color) 180deg, 
                transparent 240deg, 
                var(--primary-color) 300deg, 
                transparent 360deg);
            animation: rotate 20s linear infinite;
            opacity: 0.1;
        }

        @keyframes rotate {
            to { transform: rotate(360deg); }
        }

        /* Floating Particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 50%;
            opacity: 0;
            animation: float 10s infinite;
        }

        @keyframes float {
            0% {
                opacity: 0;
                transform: translateY(100vh) scale(0);
            }
            20% {
                opacity: 1;
                transform: translateY(80vh) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-10vh) scale(0);
            }
        }

        /* Navigation - match other pages */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 0.75vw 4vw;
            background: rgba(10, 14, 39, 0.8);
            backdrop-filter: blur(20px);
            z-index: 1000;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        nav * {
            pointer-events: auto;
        }
        nav.scrolled {
            padding: 0.5vw 4vw;
            background: rgba(10, 14, 39, 0.95);
        }

        /* Mobile specific nav padding */
        @media (max-width: 768px) {
            nav {
                padding: 12px 16px;  /* More generous padding for mobile */
            }

            nav.scrolled {
                padding: 10px 16px;
            }
        }

        /* Main Container */
        .main-container {
            position: relative;
            z-index: 10;
            height: 100vh;
            height: calc(var(--vh, 1vh) * 100);
            padding-top: 45px;
            padding-bottom: 20px;
            width: 100%;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
        }

        /* Games Container Styles for Step 2 */
        .games-container {
            max-height: calc(100vh - 350px); /* Viewport height minus space for header, title, buttons, and bottom progress */
            overflow-y: auto;
            overflow-x: hidden;
            margin-bottom: 15px;
        }

        /* Make Step 2 button container sticky at bottom */

        .league-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.65);
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding: clamp(16px, 4vh, 36px);
            z-index: 1000;
            overflow-y: auto;
        }

        .league-modal-overlay.open {
            display: flex;
        }

        .league-modal {
            width: min(960px, calc(100vw - 32px));
            max-height: min(90vh, calc(100vh - 80px));
            background: rgba(14, 18, 39, 0.95);
            border: 1px solid rgba(138, 162, 255, 0.4);
            border-radius: 18px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow: hidden;
        }

        .league-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            flex-wrap: wrap;
        }

        .league-modal-left {
            flex: 1 1 auto;
            min-width: 60%;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .league-modal-title-row {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .league-modal-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }

        .league-modal-tab {
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid rgba(128, 146, 255, 0.35);
            background: rgba(128, 146, 255, 0.12);
            color: #e4e6ff;
            border-radius: 999px;
            padding: 6px 14px;
            font-size: 0.9rem;
            cursor: pointer;
            min-width: 180px;
            gap: 12px;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .league-modal-tab.is-disabled {
            opacity: 0.6;
        }

        .league-modal-tab__label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .league-modal-tab__icon {
            font-size: 1rem;
        }

        .league-modal-tab__toggle {
            position: relative;
            width: 32px;
            height: 18px;
            border-radius: 999px;
            background: rgba(120, 138, 255, 0.35);
            flex: 0 0 auto;
            transition: background 0.2s ease;
        }

        .league-modal-tab__toggle::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #f8f8ff;
            transition: transform 0.2s ease;
        }

        .league-modal-tab__toggle[aria-checked="true"] {
            background: rgba(34, 197, 94, 0.45);
        }

        .league-modal-tab__toggle[aria-checked="true"]::after {
            transform: translateX(12px);
        }

        .league-modal-tab.active {
            background: linear-gradient(120deg, rgba(121, 137, 255, 0.7), rgba(141, 81, 255, 0.8));
            border-color: transparent;
            box-shadow: 0 0 12px rgba(114, 141, 255, 0.35);
        }

        .selected-league-chips {
            list-style: none;
            padding: 0;
            margin: 8px 0 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .selected-league-chips[data-empty="true"]::after {
            content: 'No leagues selected yet.';
            color: #8f96c8;
            font-size: 0.85rem;
        }

        .selected-league-chip {
            display: inline-flex;
            align-items: center;
            cursor: grab;
            user-select: none;
            gap: 6px;
        }

        .selected-league-chip__drag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px;
            border: 1px solid rgba(138, 162, 255, 0.4);
            border-radius: 999px;
            background: rgba(138, 162, 255, 0.18);
            color: #dbe2ff;
            min-height: 34px;
            line-height: 1;
            box-sizing: border-box;
            cursor: inherit;
        }

        .selected-league-chip__label {
            font-size: 0.82rem;
        }

        .selected-league-chip__remove {
            border: none;
            background: rgba(255, 255, 255, 0.12);
            color: #f5f5ff;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.7rem;
            line-height: 1;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .selected-league-chip__remove:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .selected-league-chip--dragging {
            opacity: 0.55;
        }

        .selected-league-chip--drag-over {
            border-style: dashed;
            background: rgba(138, 162, 255, 0.3);
        }
        .selected-league-chip--placeholder {
            position: relative;
            width: 6px;
            min-width: 6px;
            height: 34px;
            padding: 0;
            margin: 4px 0;
            background: transparent;
            pointer-events: none;
        }
        .selected-league-chip--placeholder::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 2px;
            border-radius: 2px;
            background: #4ade80;
            box-shadow: 0 0 6px rgba(74, 222, 128, 0.65);
        }

        .league-modal-search-row {
            display: flex;
            justify-content: flex-end;
            margin: 0;
        }

        .league-modal-header-actions {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            flex-wrap: nowrap;
            justify-content: flex-end;
        }

        .league-modal-header .info-tooltip {
            left: auto;
            right: 0;
        }

        .modal-apply {
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: linear-gradient(120deg, rgba(87, 101, 255, 0.6), rgba(140, 82, 255, 0.7));
            color: #fff;
            padding: 6px 14px;
            border-radius: 999px;
            cursor: pointer;
            font-weight: 600;
        }

        .modal-apply:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            background: rgba(87, 101, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .league-modal-search-row .league-modal-search {
            flex: 0 0 33%;
            min-width: 220px;
            max-width: 360px;
        }

        .league-modal-search input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            color: #f5f5ff;
            font-size: 0.95rem;
        }

        .league-modal-header h3 {
            margin: 0;
            color: #f4f4ff;
        }

        .league-modal-header p {
            margin: 4px 0 0;
            color: #b5bcff;
            font-size: 0.85rem;
        }

        .modal-close {
            border: none;
            background: transparent;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .modal-message {
            margin: 0;
            font-size: 0.85rem;
            color: #8aa2ff;
        }

        .modal-message[data-variant="error"] {
            color: #ff9d9d;
        }

        .league-modal-body {
            overflow-y: auto;
            padding-right: 6px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .league-modal-search {
            width: 100%;
        }
        .league-modal-search input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            color: #f5f5ff;
            font-size: 0.95rem;
        }
        .league-modal-search input::placeholder {
            color: #9da3d4;
        }

        @media (max-width: 768px) {
            .league-modal-search-row {
                justify-content: flex-start;
            }

            .league-modal-search-row .league-modal-search {
                flex: 1 1 100%;
                max-width: 100%;
            }
        }

        .league-modal-section {
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 14px;
            background: rgba(10, 16, 38, 0.8);
        }

        .league-modal-section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .league-modal-section-title {
            border: none;
            background: transparent;
            color: #f5f5ff;
            font-size: 1rem;
            padding: 0;
            cursor: pointer;
            font-weight: 600;
            text-align: left;
        }

        .league-modal-section-title:focus-visible {
            outline: 2px solid rgba(138, 162, 255, 0.5);
            outline-offset: 4px;
        }

        .league-modal-section-actions {
            display: flex;
            gap: 8px;
        }

        .league-modal-section-actions button {
            border: 1px solid rgba(138, 162, 255, 0.4);
            background: transparent;
            color: #c7ceff;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            cursor: pointer;
        }

        .league-modal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px;
        }

        .league-modal-section.is-collapsed .league-modal-grid {
            display: none;
        }

        .league-modal-section.is-collapsed .league-modal-section-title {
            opacity: 0.7;
        }

        .league-checkbox {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 4px 10px;
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            background: rgba(16, 20, 40, 0.8);
            font-size: 0.85rem;
        }

        .league-checkbox input {
            margin-top: 4px;
        }

        .league-checkbox .league-name {
            font-weight: 600;
            color: #f4f7ff;
            grid-column: 2 / 3;
        }

        .league-checkbox .league-meta {
            color: #8aa2ff;
            font-size: 0.75rem;
            grid-column: 2 / 3;
        }

        .api-sports-widget-root {
            min-height: 420px;
            background: rgba(9, 14, 30, 0.7);
            border: 1px dashed rgba(82, 108, 255, 0.35);
            border-radius: 16px;
            padding: 16px;
            position: relative;
            overflow: hidden;
        }
        .widget-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            height: 100%;
        }
        .widget-loader .spinner {
            width: 36px;
            height: 36px;
            border: 3px solid rgba(82, 108, 255, 0.2);
            border-top-color: #526cff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        .widget-loader p {
            margin: 0;
            color: #c6d0ff;
            font-size: 14px;
        }
        .widget-error {
            padding: 24px;
            text-align: center;
            color: #ff9d9d;
            font-size: 14px;
        }
        .widget-error-details {
            color: #ffcece;
            margin-top: 6px;
        }
                .game-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        .league-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .league-name {
            color: #f4f7ff;
            font-size: 0.95rem;
            font-weight: 600;
        }
        .league-country {
            color: #aebcff;
            font-size: 0.8rem;
        }
        .status {
            color: #c6d0ff;
            font-size: 0.85rem;
        }
        .status.live {
            color: #ff8080;
            font-weight: 600;
        }
        .game-card-body {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .team-row {
            display: flex;
            justify-content: space-between;
            color: #f4f7ff;
            font-size: 0.95rem;
        }
        .score-line {
            margin-top: 8px;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 700;
            color: #ffffff;
        }
.widget-empty {
            text-align: center;
            color: #c6d0ff;
            font-size: 14px;
            padding: 24px 0;
        }

        /* Bottom Progress Bar */

        .progress-steps {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .progress-step {
            text-align: center;
            flex: 1;
        }

        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--card-bg);
            border: 2px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .step-number.active {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: var(--darker-bg);
            border-color: var(--primary-color);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .step-label {
            font-size: 0.85rem;
            color: var(--text-dim);
        }

        /* Steps Container */
        .steps-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .step {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .step.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Glass Card Container */
        .glass-card {
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 50px;
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            margin-bottom: 20px;
        }

        .selected-game-info {
            margin: 20px 0;
        }

        .step-title {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .step-subtitle {
            font-size: 1.2rem;
            text-align: center;
            color: var(--text-dim);
            margin-bottom: 30px;
            line-height: 1.8;
        }

        /* Fancy card selection text */
        .card-selection-text {
            font-size: 2rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 30px;
            line-height: 1.8;
            background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientShift 3s ease infinite, pulseGlow 2s ease-in-out infinite;
            text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
            letter-spacing: 2px;
            text-transform: uppercase;
            position: relative;
        }

        .card-selection-text::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 120%;
            height: 120%;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
            animation: glowPulse 2s ease-in-out infinite;
            pointer-events: none;
            z-index: -1;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes pulseGlow {
            0%, 100% { 
                transform: scale(1);
                filter: brightness(1) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
            }
            50% { 
                transform: scale(1.05);
                filter: brightness(1.2) drop-shadow(0 0 40px rgba(255, 215, 0, 1));
            }
        }

        @keyframes glowPulse {
            0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
        }

        .selection-transition {
            animation: fadeInScale 0.8s ease-out;
        }

        @keyframes fadeInScale {
            0% { 
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }
            100% { 
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Spread Selection */
        .spread-options {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .spread-option {
            background: var(--card-bg);
            border: 2px solid var(--glass-border);
            border-radius: 20px;
            padding: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            min-width: 280px;
            position: relative;
            overflow: hidden;
        }

        .spread-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.1), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }

        .spread-option:hover::before {
            transform: translateX(100%);
        }

        .spread-option:hover {
            border-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
        }

        .spread-option.selected {
            border-color: var(--primary-color);
            background: rgba(255, 215, 0, 0.1);
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
        }

        .spread-icon {
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            height: 100px;
        }

        .tarot-card-icon {
            width: 66px;  /* 110% of 60px */
            height: 99px; /* 110% of 90px */
            background-image: url('../assets/tarot-cards/tarot-back.jpg');
            background-size: cover;
            background-position: center;
            border: none; /* Removed yellow border */
            border-radius: 8px;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .spread-icon.two-cards .tarot-card-icon:first-child {
            transform: rotate(-10deg) translateX(-15px);
        }

        .spread-icon.two-cards .tarot-card-icon:last-child {
            transform: rotate(10deg) translateX(15px);
        }

        .spread-name {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-light);
        }

        .spread-desc {
            color: var(--text-dim);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Card Deck Container */
        .deck-container {
            min-height: 600px;
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Tarot Cloth Mat */
        .tarot-cloth {
            position: absolute;
            width: 85%;
            max-width: 700px;
            height: 75%;
            max-height: 500px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
            z-index: 0;
            overflow: hidden;
            transition: opacity 0.3s ease;
        }

        .tarot-cloth.landscape {
            background-image: url('../assets/tarot-cards/other_assets/tarot-cloth-landscape.png');
        }

        .tarot-cloth.portrait {
            background-image: url('../assets/tarot-cards/other_assets/tarot-cloth-portrait.png');
        }

        /* Fancy Card Shuffling */
        .shuffle-container {
            position: relative;
            width: 100%;
            height: 100%;
            perspective: 1000px;
            touch-action: none;
            -webkit-user-select: none;
            user-select: none;
            z-index: 2;
        }

        .deck-card.hovered {
            z-index: 500 !important;
        }

        .deck-card {
            position: absolute;
            width: 70px;
            height: 105px;
            background: linear-gradient(135deg, #2d1b69, #0f3460);
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
            cursor: pointer;
            transition: none;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            -webkit-tap-highlight-color: transparent;
            touch-action: none;
            visibility: hidden;
            will-change: transform;
            pointer-events: auto;
        }

        .deck-card::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            height: 80%;
            background: radial-gradient(circle, var(--primary-color), transparent);
            opacity: 0.3;
            border-radius: 50%;
            filter: blur(20px);
        }

        /* Remove glow on mobile for performance */
        @media (max-width: 768px) {
            .deck-card::before {
                display: none;
            }
        }

        .deck-card.shuffling {
            transition: none !important;
        }

        .deck-card.grabbed {
            transition: none !important;
            z-index: 1000 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
            transform: scale(1.02); /* Slight lift when grabbed */
        }

        .deck-card.on-table {
            /* Remove transition during shuffle */
            transition: none !important;
        }

        /* Gathering animation class */
        .deck-card.gathering {
            transition: all 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
        }

        /* Golden glow effect for deck alignment */
        .deck-card.aligning {
            animation: goldenGlow 0.8s ease-in-out;
        }

        @keyframes goldenGlow {
            0% {
                box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
                filter: brightness(1);
            }
            40% {
                box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.2);
                filter: brightness(1.08);
            }
            60% {
                box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.2);
                filter: brightness(1.08);
            }
            100% {
                box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
                filter: brightness(1);
            }
        }


        .deck-card.spreading {
            /* Keep transition for spreading animation only */
            transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        }

        .deck-card.selected {
            box-shadow: 0 30px 60px rgba(255, 215, 0, 0.6);
            border-color: var(--accent-color);
            z-index: 300 !important;
            /* Remove animation that overrides transform */
        }

        /* Mobile preview state */
        .deck-card.previewed {
            box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
            border-color: var(--primary-color);
            z-index: 250 !important;
            transition: all 0.3s ease;
        }

        /* Confirm UI for mobile */
        .confirm-selection-container {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2000;
            display: flex;
            align-items: center;
        }

        /* Guidance text style - currently not used
        .confirm-guidance {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            z-index: 1500;
            white-space: nowrap;
        } */

        .confirm-button {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
        }

        .confirm-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
        }

        .confirm-button:active {
            transform: translateY(0);
        }

        .deck-card.selected::before {
            opacity: 0.6;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            50% { transform: translate(-50%, -50%) scale(1.2); }
        }

        .deck-card.revealed {
            transform: rotateY(180deg);
        }

        .deck-card.illuminated {
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000 !important;
        }

        .deck-card.illuminated::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
            animation: illuminateGlow 1.5s ease-out;
            pointer-events: none;
            z-index: -1;
        }

        .deck-card.illuminated {
            box-shadow: 0 10px 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6) !important;
        }

        @keyframes illuminateGlow {
            0% {
                opacity: 0;
                transform: scale(0.5);
            }
            50% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(1.5);
            }
        }

        .deck-card .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 8px;
            overflow: hidden;
            background-image: url('../assets/tarot-cards/tarot-back.jpg');
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
        }

        .deck-card .card-front {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            transform: rotateY(180deg);
            border-radius: 8px;
            overflow: visible;
        }

        .deck-card .card-front img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* Shuffle Instructions */
        .shuffle-instruction {
            position: absolute;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            padding: 20px 40px;
            border-radius: 50px;
            backdrop-filter: blur(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            z-index: 10;
            font-size: 1.1rem;
            color: var(--text-light);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.05); }
        }

        .magic-cursor {
            position: fixed; /* Use fixed to avoid layout issues */
            width: 120px;
            height: 120px;
            pointer-events: none;
            z-index: 1000;
            transform: translate(-50%, -50%);
            transition: none; /* Remove transition for instant response */
        }

        .hand-icon {
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: url('../assets/tarot-cards/other_assets/tarot-hand-right.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transform: rotate(-20deg);
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
            animation: handFloat 2s ease-in-out infinite;
            transition: transform 0.1s ease-out;
        }

        .hand-icon.pushing {
            transform: rotate(-10deg) scale(0.95);
        }

        @keyframes handFloat {
            0%, 100% { transform: rotate(-20deg) translateY(0); }
            50% { transform: rotate(-15deg) translateY(-5px); }
        }

        .magic-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .magic-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 50%;
            opacity: 0;
            animation: particleFloat 1.5s ease-out;
            box-shadow: 0 0 6px var(--primary-color);
        }

        @keyframes particleFloat {
            0% {
                opacity: 0;
                transform: translate(0, 0) scale(0);
            }
            20% {
                opacity: 1;
                transform: translate(var(--tx), var(--ty)) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(calc(var(--tx) * 2), calc(var(--ty) * 2)) scale(0);
            }
        }

        .selection-particle {
            position: fixed;
            width: 6px;
            height: 6px;
            background: var(--accent-color);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            animation: selectionBurst 1s ease-out forwards;
        }

        @keyframes selectionBurst {
            0% {
                transform: translate(-50%, -50%) scale(0);
                opacity: 1;
            }
            100% {
                transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
                opacity: 0;
            }
        }

        /* Card Selection */
        .selection-instruction {
            position: absolute;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            padding: 15px 30px;
            border-radius: 50px;
            backdrop-filter: blur(10px);
            font-size: 1rem;
            color: var(--text-light);
            z-index: 10;
        }

        /* Interpretation Display */
        .interpretation-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .selected-cards {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .result-card {
            background: var(--card-bg);
            border: 2px solid var(--glass-border);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .result-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
        }

        .result-card img {
            width: 150px;
            height: 225px;
            object-fit: contain;
            border-radius: 8px;
            margin-bottom: 15px;
            border: none;
        }

        .result-card-name {
            margin-bottom: 5px;
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--primary-color);
        }

        .card-orientation {
            font-size: 1rem;
            font-weight: 400;
            color: var(--text-light);
        }


        .interpretation-text {
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 20px 40px;
            backdrop-filter: blur(10px);
            line-height: 1.8;
            font-size: 1.1rem;
        }

        .interpretation-text h2 {
            color: var(--primary-color);
            margin: 30px 0 15px;
            font-size: 1.6rem;
        }

        .interpretation-text h2:first-child {
            margin-top: 15px;
        }

        .interpretation-text h3 {
            color: var(--accent-color);
            margin: 20px 0 10px;
            font-size: 1.3rem;
        }

        .interpretation-text p {
            margin-bottom: 15px;
            color: var(--text-light);
        }

        .interpretation-text blockquote {
            border-left: 3px solid var(--primary-color);
            padding-left: 20px;
            margin: 20px 0;
            font-style: italic;
            color: var(--text-dim);
        }

        .interpretation-text small {
            display: block;
            margin-bottom: 10px;
        }

        .interpretation-text small:last-child {
            margin-bottom: 0;
        }

        /* Improved list styles */
        .interpretation-text ul {
            list-style: none;
            padding-left: 0;
            margin: 15px 0;
        }

        .interpretation-text ul li {
            position: relative;
            padding-left: 25px;
            margin-bottom: 10px;
            color: var(--text-light);
            line-height: 1.8;
        }

        .interpretation-text ul li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
        }

        .interpretation-text ol {
            padding-left: 25px;
            margin: 15px 0;
        }

        .interpretation-text ol li {
            margin-bottom: 10px;
            color: var(--text-light);
            line-height: 1.8;
        }

        /* Remove excessive margins between sections */
        .interpretation-text > *:first-child {
            margin-top: 0;
        }

        .interpretation-text > *:last-child {
            margin-bottom: 0;
        }

        /* Buttons */
        .button-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            margin-bottom: 0;
            flex-wrap: wrap;
            position: relative;
            z-index: 20;
            pointer-events: auto;
        }

        .btn {
            padding: 15px 40px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: var(--darker-bg);
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            pointer-events: auto;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
        }

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

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-secondary:hover {
            background: var(--primary-color);
            color: var(--darker-bg);
        }

        /* Odds Section Styles */
        .odds-section {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 184, 0, 0.05));
            border: 1px solid rgba(255, 215, 0, 0.25);
            border-radius: 20px;
            padding: 25px;
            margin: 25px 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
        }

        .odds-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
            animation: pulse 3s ease-in-out infinite;
        }

        .odds-header {
            font-size: 1.2em;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .odds-data {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
        }

        .odds-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        }

        .odds-item:last-child {
            border-bottom: none;
        }

        .odds-team {
            font-weight: 600;
            color: var(--text-primary);
        }

        .odds-value {
            font-size: 1.1em;
            color: var(--primary-color);
            font-weight: bold;
        }

        .odds-trend {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 5px;
            font-size: 0.9em;
            margin-left: 10px;
        }

        .odds-trend.rising {
            background: rgba(255, 107, 107, 0.2);
            color: #ff6b6b;
        }

        .odds-trend.falling {
            background: rgba(82, 196, 26, 0.2);
            color: #52c41a;
        }

        .market-sentiment {
            background: rgba(138, 43, 226, 0.1);
            border: 1px solid rgba(138, 43, 226, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
        }

        .market-sentiment h4 {
            color: #8a2be2;
            margin-bottom: 10px;
        }

        .sentiment-insight {
            padding: 5px 0;
            color: var(--text-dim);
            font-size: 0.95em;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.5; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.1); }
        }

        /* Loading Animation */
        .loading-container {
            text-align: center;
            padding: 40px 20px;
        }

        .cosmic-loader {
            width: 100px;
            height: 100px;
            margin: 0 auto 30px;
            position: relative;
        }

        .cosmic-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 3px solid transparent;
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: cosmicSpin 1s linear infinite;
        }

        .cosmic-ring:nth-child(2) {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-top-color: var(--accent-color);
            animation-duration: 0.8s;
            animation-direction: reverse;
        }

        .cosmic-ring:nth-child(3) {
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            border-top-color: var(--secondary-color);
            animation-duration: 0.6s;
        }

        @keyframes cosmicSpin {
            to { transform: rotate(360deg); }
        }

        .loading-text {
            font-size: 1.2rem;
            color: var(--text-dim);
            animation: loadingPulse 1.5s ease-in-out infinite;
        }

        @keyframes loadingPulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        /* Simple Progress Bar Styles */
        .progress-bar-simple {
            display: flex;
            width: 100%;
            height: 6px;
            background: var(--glass-border);
            border-radius: 3px;
            overflow: hidden;
            gap: 2px;
        }

        .progress-text {
            font-size: 0.85rem;
            color: var(--text-light);
            text-align: center;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .progress-segment {
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.5s ease;
            position: relative;
            cursor: pointer;
        }

        .progress-segment:first-child {
            border-radius: 3px 0 0 3px;
        }

        .progress-segment:last-child {
            border-radius: 0 3px 3px 0;
        }

        .progress-segment.active {
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .progress-segment.completed {
            background: var(--primary-color);
            opacity: 0.7;
        }

        /* Tooltip on hover - desktop only */
        @media (hover: hover) {
            .progress-segment:hover::after {
                content: attr(data-label);
                position: absolute;
                bottom: 150%;
                left: 50%;
                transform: translateX(-50%);
                background: rgba(0, 0, 0, 0.9);
                color: var(--text-light);
                padding: 5px 10px;
                border-radius: 4px;
                font-size: 0.75rem;
                white-space: nowrap;
                opacity: 1;
                pointer-events: none;
            }
        }

        /* Mobile specific fixes */
        @supports (-webkit-touch-callout: none) {
            /* iOS specific */
            .main-container {
                height: -webkit-fill-available;
            }

            html, body {
                height: -webkit-fill-available;
            }

            .main-container {
                height: -webkit-fill-available;
                padding-bottom: 0;
            }
        }

        /* Step content mobile fix */
        .step {
            touch-action: pan-y;
        }

        /* Deck container mobile fix */
        .deck-container {
            touch-action: none;
            position: relative;
            overflow: visible;
        }

        /* Shuffle container mobile positioning */
        #shuffleContainer {
            position: relative;
            width: 100%;
            max-width: 600px;
            height: 600px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
            touch-action: none;
            overflow: hidden;
            -webkit-user-select: none;
            user-select: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            nav {
                height: 50px;
                padding: 10px 15px;
            }

            nav.scrolled {
                height: 46px;
                padding: 8px 15px;
            }

            .nav-container {
                padding: 0;
            }

            .logo {
                font-size: 1.2rem;
            }

            .nav-links {
                gap: 8px;
            }

            .nav-link {
                font-size: 0.75rem;
            }

            .main-container {
                height: auto;
                min-height: calc(100vh + 120px);
                margin-top: 40px;
                padding: 0 0 60px 0; /* Extra room for taller widget */
            }

            .selection-instruction {
                white-space: nowrap;
                font-size: 0.9rem;
                padding: 10px 20px;
            }



            .glass-card {
                padding: 15px 10px;
                margin: 0;
            }

            .steps-container {
                padding: 10px;
            }

            .step-title {
                font-size: 1.5rem;
                margin-bottom: 5px;
            }

            .step-subtitle {
                font-size: 0.9rem;
                margin-bottom: 10px;
            }

            .spread-options {
                flex-direction: column;
                align-items: center;
                margin: 10px 0;
                gap: 10px;
            }

            .spread-option {
                min-width: 100%;
                max-width: 350px;
                padding: 15px;
                margin: 0;
            }

            .deck-card {
                width: 50px;
                height: 75px;
            }

            .deck-container {
                min-height: 300px;
                margin: 0;
            }

            #shuffleContainer {
                height: 350px;
                margin: 0;
            }

            .selected-cards {
                gap: 15px;
                margin-bottom: 10px;
            }

            .interpretation-text {
                padding: 20px;
                margin: 0;
            }

            .loading-container {
                padding: 20px;
            }

            .cosmic-loader {
                width: 80px;
                height: 80px;
                margin-bottom: 20px;
            }

            .loading-text {
                max-width: 280px;
                margin: 0 auto;
                line-height: 1.4;
            }

            .interpretation-container {
                margin: 10px 0;
            }

            .button-container {
                flex-direction: column;
                align-items: center;
                gap: 8px;
                margin-top: 10px;
            }

            .btn {
                width: 100%;
                max-width: 300px;
                padding: 10px 20px;
                font-size: 0.9rem;
            }

            .interpretation-text {
                padding: 15px 20px;
                font-size: 1rem;
            }

            .glass-card {
                padding: 20px;
            }

            /* Card selection text mobile adjustments */
            .card-selection-text {
                font-size: 1.5rem; /* Same as step-title on mobile */
                margin-top: 25px; /* Add space between title and selection text */
                margin-bottom: 20px;
                letter-spacing: 1px; /* Reduce letter spacing on mobile */
            }
        }

        /* Accessibility */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--darker-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--glass-border);
            border-radius: 5px;
            transition: background 0.3s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }



        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-light);
            font-weight: 500;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            color: var(--text-light);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary-color);
            background: rgba(255, 255, 255, 0.08);
        }

        .form-buttons {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            margin-top: 30px;
        }
