:root {
    --primary: #ff80ab;
    --primary-light: #ffacc8;
    --secondary: #9c27b0;
    --accent: #f48fb1;
    --dark-bg: #0a0612;
    --dark-card: #15101f;
    --text-main: #f5f5f7;
    --text-dim: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/images/hero.png') no-repeat center center/cover;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(10, 6, 18, 0.2) 0%,
            rgba(10, 6, 18, 0.8) 70%,
            var(--dark-bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 128, 171, 0.15);
    border: 1px solid rgba(255, 128, 171, 0.3);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Game Card */
.game-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 128, 171, 0.05), transparent 60%);
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 128, 171, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.card-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.game-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, var(--dark-card), transparent);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title-group h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.eng-title {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.2);
}

.btn-play:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(156, 39, 176, 0.4);
    filter: brightness(1.1);
}

/* Footer */
footer {
    padding: 100px 40px;
    background: #050308;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }

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

    .game-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 60vh;
    }
}

/* Payment Section */
.payment-section {
    margin-top: 120px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease forwards 1s;
    opacity: 0;
}

.payment-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 60px;
    max-width: 800px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.payment-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.payment-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.price {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

#paypal-button-container {
    width: 100%;
}

@media (max-width: 768px) {
    .payment-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        text-align: center;
    }

    .payment-section {
        margin-top: 80px;
    }
}