        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        :root {
            /* Light Theme Colors */
            --bg-primary: #f5f5f7;
            --bg-secondary: rgba(255, 255, 255, 0.85);
            --text-primary: #1d1d1f;
            --text-secondary: #86868b;
            --accent-blue: #007aff;
            --accent-green: #34c759;
            --accent-orange: #ff9500;
            --accent-red: #ff3b30;
            --accent-purple: #af52de;
            --accent-pink: #ff2d55;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            --border: rgba(0, 0, 0, 0.08);
            --glow: 0 0 20px rgba(0, 122, 255, 0.3);
        }

        .dark-theme {
            /* Dark Theme Colors */
            --bg-primary: #000000;
            --bg-secondary: rgba(28, 28, 30, 0.85);
            --text-primary: #f5f5f7;
            --text-secondary: #98989d;
            --accent-blue: #0a84ff;
            --accent-green: #30d158;
            --accent-orange: #ff9f0a;
            --accent-red: #ff453a;
            --accent-purple: #bf5af2;
            --accent-pink: #ff375f;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            --border: rgba(255, 255, 255, 0.08);
            --glow: 0 0 20px rgba(10, 132, 255, 0.4);
        }

        body {
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            transition: background-color 0.5s ease, color 0.5s ease;
            overflow-x: hidden;
            font-weight: 400;
        }

        /* Enhanced Animated Background */
        .rgb-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .rgb-light {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.6;
            animation: float 20s infinite ease-in-out;
            mix-blend-mode: overlay;
        }

        .light-1 {
            width: 400px;
            height: 400px;
            background: linear-gradient(45deg, #ff0080, #ff8a00);
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .light-2 {
            width: 500px;
            height: 500px;
            background: linear-gradient(45deg, #0080ff, #00ffaa);
            top: 60%;
            left: 70%;
            animation-delay: -5s;
        }

        .light-3 {
            width: 450px;
            height: 450px;
            background: linear-gradient(45deg, #80ff00, #ff0080);
            top: 30%;
            left: 80%;
            animation-delay: -10s;
        }

        .light-4 {
            width: 350px;
            height: 350px;
            background: linear-gradient(45deg, #ff8000, #8000ff);
            top: 70%;
            left: 20%;
            animation-delay: -7s;
        }

        .light-5 {
            width: 300px;
            height: 300px;
            background: linear-gradient(45deg, #ff0080, #0080ff);
            top: 20%;
            left: 50%;
            animation-delay: -12s;
        }

        .light-6 {
            width: 320px;
            height: 320px;
            background: linear-gradient(45deg, #00ff80, #ff0080);
            top: 80%;
            left: 40%;
            animation-delay: -15s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translate(0, 0) rotate(0deg) scale(1);
            }

            20% {
                transform: translate(100px, 50px) rotate(72deg) scale(1.1);
            }

            40% {
                transform: translate(50px, 100px) rotate(144deg) scale(1.2);
            }

            60% {
                transform: translate(-50px, 75px) rotate(216deg) scale(1.1);
            }

            80% {
                transform: translate(-100px, -50px) rotate(288deg) scale(0.9);
            }
        }

        /* Particle Background */
        /* Particle Background (Canvas) */
        #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        /* Enhanced Glass Morphism Effect */
        .glass-card {
            background: var(--bg-secondary);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid var(--border);
            border-radius: 24px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg,
                    rgba(255, 0, 128, 0.1) 0%,
                    rgba(0, 128, 255, 0.1) 50%,
                    rgba(128, 255, 0, 0.1) 100%);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .glass-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow), var(--glow);
        }

        .glass-card:hover::before {
            opacity: 1;
        }

        /* Enhanced Loading Screen */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-primary);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity 0.8s ease;
        }

        .loading-content {
            text-align: center;
            max-width: 400px;
            padding: 3rem;
        }

        .loading-icon {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .loading-icon div {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            animation: bounce 1.5s infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .loading-icon .rock {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            animation-delay: 0s;
        }

        .loading-icon .paper {
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            animation-delay: 0.2s;
        }

        .loading-icon .scissors {
            background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
            animation-delay: 0.4s;
        }

        .loading-bar {
            width: 100%;
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            overflow: hidden;
            margin-top: 2rem;
        }

        .loading-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
            border-radius: 3px;
            animation: loading 2.5s ease-in-out infinite;
            width: 40%;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        @keyframes loading {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(250%);
            }
        }

        .hidden {
            display: none !important;
        }

        /* Game Container */
        .game-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Header */
        .header {
            padding: 1.5rem 2.5rem;
            margin-bottom: 1.5rem;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .game-title {
            font-size: 2.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
        }

        .header-controls {
            display: flex;
            gap: 0.75rem;
        }

        .icon-button {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            padding: 0.75rem;
            border-radius: 14px;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
        }

        .icon-button:hover {
            background: var(--accent-blue);
            color: white;
            transform: scale(1.08) rotate(5deg);
        }

        .icon-button:active {
            transform: scale(0.95);
        }

        /* Main Content */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .game-section {
            animation: fadeIn 0.6s ease;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-header h2 {
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            letter-spacing: -0.5px;
        }

        .section-header p {
            font-size: 1.2rem;
            color: var(--text-secondary);
            font-weight: 400;
        }

        /* Mode Selection */
        .mode-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .mode-card {
            padding: 2.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .mode-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .mode-card:hover::after {
            opacity: 0.1;
        }

        .mode-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: var(--accent-blue);
        }

        .mode-icon {
            margin-bottom: 1.5rem;
            color: var(--accent-blue);
            font-size: 3.5rem;
            transition: all 0.3s ease;
        }

        .mode-card:hover .mode-icon {
            transform: scale(1.2) rotate(10deg);
            color: var(--accent-purple);
        }

        .mode-card h3 {
            font-size: 1.6rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .mode-card p {
            color: var(--text-secondary);
            font-size: 1.1rem;
            line-height: 1.5;
        }

        /* Settings */
        .settings-container {
            max-width: 600px;
            margin: 0 auto;
            width: 100%;
        }

        .setting-group {
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .setting-group h3 {
            margin-bottom: 1.5rem;
            font-size: 1.4rem;
            font-weight: 600;
        }

        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            padding: 1rem;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .radio-option:hover {
            background: var(--border);
            transform: translateX(5px);
        }

        .radio-option input {
            display: none;
        }

        .radio-custom {
            width: 24px;
            height: 24px;
            border: 2px solid var(--text-secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .radio-custom::after {
            content: '';
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent-blue);
            transform: scale(0);
            transition: transform 0.3s ease;
        }

        .radio-option input:checked+.radio-custom {
            border-color: var(--accent-blue);
            transform: scale(1.1);
        }

        .radio-option input:checked+.radio-custom::after {
            transform: scale(1);
        }

        /* Buttons */
        .primary-button {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            color: white;
            border: none;
            padding: 1.2rem 2.5rem;
            border-radius: 16px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 100%;
            margin-top: 1.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
        }

        .primary-button::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;
        }

        .primary-button:hover::before {
            left: 100%;
        }

        .primary-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 122, 255, 0.4);
        }

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

        .secondary-button {
            background: transparent;
            color: var(--text-primary);
            border: 1px solid var(--border);
            padding: 1rem 2rem;
            border-radius: 14px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .secondary-button:hover {
            background: var(--border);
            transform: translateY(-3px);
        }

        .back-button {
            background: none;
            border: none;
            color: var(--accent-blue);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.1rem;
            margin-top: 1.5rem;
            transition: all 0.3s ease;
        }

        .back-button:hover {
            transform: translateX(-5px);
        }

        /* Game Play */
        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
            padding: 1.5rem;
        }

        .player-info {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .player-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .player-avatar::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }

            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }

        .player-stats h3 {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .score {
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        .game-status {
            text-align: center;
        }

        .round-indicator {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .game-message {
            color: var(--text-secondary);
            font-size: 1.3rem;
            transition: all 0.3s ease;
        }

        .game-area {
            margin: 2.5rem 0;
        }

        .choices-container {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 3rem;
            align-items: center;
            margin-bottom: 4rem;
        }

        .player-choice,
        .computer-choice {
            text-align: center;
        }

        .player-choice h3,
        .computer-choice h3 {
            margin-bottom: 1.5rem;
            font-size: 1.4rem;
            font-weight: 600;
        }

        .choice-display {
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
            border-radius: 24px;
            border: 2px dashed var(--border);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .choice-placeholder {
            font-size: 3.5rem;
            color: var(--text-secondary);
        }

        .choice-icon {
            font-size: 5rem;
            animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
        }

        @keyframes popIn {
            0% {
                transform: scale(0) rotate(-180deg);
                opacity: 0;
            }

            70% {
                transform: scale(1.2) rotate(10deg);
            }

            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }

        .vs-indicator {
            text-align: center;
        }

        .vs-circle {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.5rem;
            box-shadow: var(--shadow);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
            }
        }

        .choice-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .choice-button {
            background: var(--bg-secondary);
            border: 2px solid transparent;
            padding: 2rem 1rem;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            font-weight: 600;
            font-size: 1.3rem;
            position: relative;
            overflow: hidden;
        }

        .choice-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .choice-button:hover::before {
            opacity: 0.1;
        }

        .choice-button:hover {
            transform: translateY(-8px) scale(1.05);
            border-color: var(--accent-blue);
        }

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

        .choice-button.rock:hover {
            border-color: var(--accent-blue);
        }

        .choice-button.paper:hover {
            border-color: var(--accent-green);
        }

        .choice-button.scissors:hover {
            border-color: var(--accent-orange);
        }

        .choice-button kbd {
            background: var(--border);
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            font-size: 1rem;
            font-family: inherit;
        }

        .game-controls {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
        }

        /* Results */
        .results-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 4rem 2.5rem;
            text-align: center;
        }

        .result-icon {
            font-size: 6rem;
            margin-bottom: 2rem;
            animation: bounce 1s ease, glow 2s infinite alternate;
        }

        @keyframes glow {
            from {
                filter: drop-shadow(0 0 5px rgba(0, 122, 255, 0.5));
            }

            to {
                filter: drop-shadow(0 0 20px rgba(0, 122, 255, 0.8));
            }
        }

        .result-stats {
            display: flex;
            justify-content: center;
            gap: 4rem;
            margin: 2.5rem 0;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            display: block;
            font-size: 3.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 1.2rem;
        }

        .result-actions {
            display: flex;
            gap: 1.5rem;
            margin-top: 2.5rem;
        }

        /* Footer */
        .footer {
            margin-top: 3rem;
            padding: 1.5rem 2.5rem;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-info {
            display: flex;
            gap: 1.5rem;
            color: var(--text-secondary);
            font-size: 1rem;
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-link {
            color: var(--accent-blue);
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .footer-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-blue);
            transition: width 0.3s ease;
        }

        .footer-link:hover {
            color: var(--accent-purple);
        }

        .footer-link:hover::after {
            width: 100%;
        }

        /* Confetti */
        .confetti-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 999;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .game-title {
                font-size: 1.8rem;
            }

            .section-header h2 {
                font-size: 2.2rem;
            }

            .mode-cards {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .game-header {
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
            }

            .choices-container {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto auto;
                gap: 2rem;
            }

            .vs-indicator {
                order: -1;
            }

            .choice-buttons {
                grid-template-columns: 1fr;
            }

            .game-controls {
                flex-direction: column;
            }

            .result-actions {
                flex-direction: column;
            }

            .footer-content {
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
            }

            .player-avatar {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }

            .choice-display {
                min-height: 150px;
            }

            .choice-icon {
                font-size: 4rem;
            }
        }

        @media (max-width: 480px) {
            .game-container {
                padding: 1rem;
            }

            .header {
                padding: 1rem 1.5rem;
            }

            .game-title {
                font-size: 1.5rem;
            }

            .section-header h2 {
                font-size: 1.8rem;
            }

            .mode-card {
                padding: 1.5rem;
            }

            .setting-group {
                padding: 1.5rem;
            }

            .results-container {
                padding: 2.5rem 1.5rem;
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }