:root {
            --bg-primary: #0a0a1a;
            --bg-secondary: #12122a;
            --accent-gold: #ffd700;
            --accent-pink: #ff6b9d;
            --accent-cyan: #00d4ff;
            --accent-purple: #a855f7;
            --accent-green: #22c55e;
            --accent-orange: #ff8c00;
            --text-primary: #ffffff;
            --text-secondary: rgba(255,255,255,0.7);
            --card-bg: rgba(255,255,255,0.05);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            background: var(--bg-primary);
            font-family: 'Noto Sans KR', sans-serif;
            color: var(--text-primary);
            overflow-x: hidden;
        }

        /* 배경 효과 */
        .bg-effects {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .bg-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.4;
            animation: float 20s ease-in-out infinite;
        }

        .bg-orb:nth-child(1) {
            width: 400px;
            height: 400px;
            background: var(--accent-purple);
            top: -100px;
            left: -100px;
        }

        .bg-orb:nth-child(2) {
            width: 300px;
            height: 300px;
            background: var(--accent-cyan);
            top: 50%;
            right: -100px;
            animation-delay: -5s;
        }

        .bg-orb:nth-child(3) {
            width: 350px;
            height: 350px;
            background: var(--accent-pink);
            bottom: -100px;
            left: 30%;
            animation-delay: -10s;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -30px) scale(1.05); }
            66% { transform: translate(-20px, 20px) scale(0.95); }
        }

        /* 그리드 패턴 오버레이 */
        .grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            pointer-events: none;
            z-index: 1;
        }

        .container {
            position: relative;
            z-index: 10;
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* 헤더 */
        header {
            text-align: center;
            margin-bottom: 60px;
        }

        .logo {
            display: inline-flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .logo-icon {
            font-size: 3.5rem;
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        h1 {
            font-family: 'Black Han Sans', sans-serif;
            font-size: clamp(2.5rem, 8vw, 4.5rem);
            background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange), var(--accent-pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
            text-shadow: 0 0 60px rgba(255,215,0,0.3);
        }

        .subtitle {
            font-family: 'Jua', sans-serif;
            font-size: 1.3rem;
            color: var(--text-secondary);
            margin-top: 15px;
            letter-spacing: 3px;
        }

        .subtitle span {
            display: inline-block;
            animation: wave 2s ease-in-out infinite;
        }

        .subtitle span:nth-child(2) { animation-delay: 0.1s; }
        .subtitle span:nth-child(3) { animation-delay: 0.2s; }
        .subtitle span:nth-child(4) { animation-delay: 0.3s; }
        .subtitle span:nth-child(5) { animation-delay: 0.4s; }

        @keyframes wave {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        /* 게임 그리드 */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            padding: 10px;
        }

        /* 게임 카드 */
        .game-card {
            position: relative;
            background: var(--card-bg);
            border-radius: 24px;
            padding: 30px;
            border: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .game-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--card-accent) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.4s;
            border-radius: 24px;
        }

        .game-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: var(--card-accent);
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.4),
                0 0 30px var(--card-glow);
        }

        .game-card:hover::before {
            opacity: 0.15;
        }

        .game-card:hover .card-icon {
            transform: scale(1.2) rotate(10deg);
        }

        .game-card:hover .play-btn {
            opacity: 1;
            transform: translateX(0);
        }

        /* 카드 상단 */
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .card-icon {
            font-size: 3.5rem;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            filter: drop-shadow(0 5px 15px var(--card-glow));
        }

        .card-badge {
            background: var(--card-accent);
            color: #000;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 5px 12px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .card-badge.new {
            background: var(--accent-green);
            animation: pulse 2s infinite;
        }

        .card-badge.hot {
            background: var(--accent-orange);
        }

        .card-badge.coming {
            background: rgba(255,255,255,0.2);
            color: var(--text-secondary);
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
            50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
        }

        /* 카드 내용 */
        .card-title {
            font-family: 'Black Han Sans', sans-serif;
            font-size: 1.6rem;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .card-description {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* 플레이 버튼 */
        .play-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--card-accent);
            color: #000;
            font-family: 'Jua', sans-serif;
            font-size: 1rem;
            padding: 10px 20px;
            border-radius: 25px;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.3s;
        }

        .play-btn svg {
            width: 16px;
            height: 16px;
        }

        /* 개별 카드 색상 */
        .game-card[data-game="lotto"] {
            --card-accent: var(--accent-gold);
            --card-glow: rgba(255, 215, 0, 0.3);
        }

        .game-card[data-game="roulette"] {
            --card-accent: var(--accent-pink);
            --card-glow: rgba(255, 107, 157, 0.3);
        }

        .game-card[data-game="dice"] {
            --card-accent: var(--accent-cyan);
            --card-glow: rgba(0, 212, 255, 0.3);
        }

        .game-card[data-game="coin"] {
            --card-accent: #fbbf24;
            --card-glow: rgba(251, 191, 36, 0.3);
        }

        .game-card[data-game="fortune"] {
            --card-accent: var(--accent-purple);
            --card-glow: rgba(168, 85, 247, 0.3);
        }

        .game-card[data-game="rps"] {
            --card-accent: var(--accent-green);
            --card-glow: rgba(34, 197, 94, 0.3);
        }

        .game-card[data-game="slots"] {
            --card-accent: #ef4444;
            --card-glow: rgba(239, 68, 68, 0.3);
        }

        .game-card[data-game="tarot"] {
            --card-accent: #8b5cf6;
            --card-glow: rgba(139, 92, 246, 0.3);
        }

        /* Coming Soon 카드 */
        .game-card.coming-soon {
            opacity: 0.6;
            cursor: default;
        }

        .game-card.coming-soon:hover {
            transform: none;
            box-shadow: none;
        }

        .game-card.coming-soon .card-icon {
            filter: grayscale(0.5);
        }

        /* Contact Section */
        .contact-section {
            position: relative;
            background: var(--card-bg);
            border-radius: 24px;
            padding: 40px;
            margin-top: 60px;
            border: 1px solid rgba(255,255,255,0.1);
            text-align: center;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.7s ease-out, padding 0.7s ease-out, opacity 0.5s ease-out;
            opacity: 0;
            padding-top: 0;
            padding-bottom: 0;
        }

        .contact-section .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .contact-section .close-btn:hover {
            opacity: 1;
        }
        
        .contact-section.visible {
            max-height: 1000px; /* A large enough value */
            opacity: 1;
            padding: 40px;
        }

        .contact-section .section-title {
            font-family: 'Black Han Sans', sans-serif;
            font-size: clamp(2rem, 6vw, 3rem);
            color: var(--accent-gold);
            margin-bottom: 15px;
            text-shadow: 0 0 30px rgba(255,215,0,0.2);
        }

        .contact-section .section-description {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 30px;
        }

        .contact-form {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            text-align: left;
        }

        .contact-form .form-group {
            display: flex;
            flex-direction: column;
        }

        .contact-form label {
            font-size: 0.95rem;
            color: var(--text-primary);
            margin-bottom: 8px;
            font-weight: bold;
        }

        .contact-form input[type="text"],
        .contact-form input[type="email"],
        .contact-form textarea {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 12px;
            padding: 12px 18px;
            font-size: 1rem;
            color: var(--text-primary);
            width: 100%;
            transition: border-color 0.3s, background-color 0.3s;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: var(--accent-gold);
            background-color: rgba(255,255,255,0.15);
            outline: none;
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 120px;
        }

        .contact-form .submit-btn {
            background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
            color: #000;
            font-family: 'Jua', sans-serif;
            font-size: 1.2rem;
            padding: 14px 25px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            box-shadow: 0 5px 20px rgba(255,215,0,0.3);
        }

        .contact-form .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255,215,0,0.5);
            filter: brightness(1.1);
        }


        /* 푸터 */
        footer {
            text-align: center;
            margin-top: 80px;
            padding: 30px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .footer-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .footer-links {
            margin-top: 15px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--accent-gold);
        }

        /* 모바일 대응 */
        @media (max-width: 768px) {
            .container {
                padding: 30px 15px;
            }

            header {
                margin-bottom: 40px;
            }

            .logo-icon {
                font-size: 2.5rem;
            }

            .subtitle {
                font-size: 1rem;
            }

            .games-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .game-card {
                padding: 25px;
            }

            .card-icon {
                font-size: 2.8rem;
            }

            .play-btn {
                opacity: 1;
                transform: translateX(0);
            }

            .contact-section {
                padding: 30px 20px;
            }

            .contact-section .section-title {
                font-size: 2rem;
            }

            .contact-section .section-description {
                font-size: 1rem;
            }
        }

        /* 로딩 애니메이션 */
        .game-card {
            opacity: 0;
            transform: translateY(30px);
            animation: cardAppear 0.6s forwards;
        }

        .game-card:nth-child(1) { animation-delay: 0.1s; }
        .game-card:nth-child(2) { animation-delay: 0.2s; }
        .game-card:nth-child(3) { animation-delay: 0.3s; }
        .game-card:nth-child(4) { animation-delay: 0.4s; }
        .game-card:nth-child(5) { animation-delay: 0.5s; }
        .game-card:nth-child(6) { animation-delay: 0.6s; }
        .game-card:nth-child(7) { animation-delay: 0.7s; }
        .game-card:nth-child(8) { animation-delay: 0.8s; }

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

        /* 반짝이 효과 */
        .sparkle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            pointer-events: none;
            animation: sparkle 1.5s ease-out forwards;
        }

        @keyframes sparkle {
            0% { transform: scale(0); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }
