/* ===== Modern Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --text-primary: #191F28;
    --text-secondary: #4E5968;
    --text-tertiary: #8B95A1;
    --border: #E5E8EB;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===== Header ===== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.language-btn:hover {
    background-color: var(--bg-gray);
    border-color: var(--text-tertiary);
}

.language-btn svg {
    flex-shrink: 0;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1000;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: var(--bg-gray);
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 12px 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

/* ===== Main ===== */
main {
    min-height: calc(100vh - 64px - 280px);
}

/* ===== Hero Section ===== */
.hero {
    background-color: var(--bg-white);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
    z-index: -1;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    top: 60%;
    right: 15%;
    animation: float2 8s ease-in-out infinite;
    z-index: -1;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    bottom: 20%;
    left: 15%;
    animation: float3 7s ease-in-out infinite;
    z-index: -1;
}

.shape-4 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #a78bfa, var(--primary-dark));
    top: 40%;
    right: 20%;
    animation: float4 9s ease-in-out infinite;
    z-index: -1;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-25px, 25px) rotate(-120deg);
    }
    66% {
        transform: translate(25px, -15px) rotate(-240deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -40px) scale(1.1);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons .btn {
    pointer-events: auto;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-gray);
    border-color: var(--text-tertiary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== Section ===== */
.section {
    padding: 100px 0;
}

.section-gray {
    background-color: var(--bg-gray);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

/* ===== Game Grid ===== */
/* ===== Game Cards ===== */
/* ===== Game Grid ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 360px);
    gap: 32px;
    justify-content: center;
}

/* ===== Game Card Container ===== */
.game-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    width: 360px;
    min-height: 520px;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* ===== Game Image ===== */
.game-image {
    position: relative;
    width: 100%;
    padding-bottom: 80%;
    background-color: #f3f4f6;
    overflow: hidden;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #9ca3af;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* ===== Game Body ===== */
.game-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 240px;
}

/* ===== Game Tag ===== */
.game-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 12px;
    width: fit-content;
}

/* ===== Game Title ===== */
.game-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* ===== Game Description ===== */
.game-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

/* ===== Game Actions (버튼 영역) ===== */
.game-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

/* ===== Start Button ===== */
.btn-start {
    padding: 10px 24px;
    height: 38px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.btn-start:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ===== Store Buttons Container ===== */
.store-buttons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

/* ===== Store Button ===== */
.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    transition: all 0.2s;
    text-decoration: none;
    flex-shrink: 0;
    background-color: white;
}

.store-btn:hover {
    background-color: #f9fafb;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.store-btn svg {
    width: 18px;
    height: 18px;
}
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.game-platform {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.game-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.game-link:hover {
    color: var(--primary-dark);
}

/* ===== About Section ===== */
.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 24px;
}

/* ===== Page Header ===== */
.page-header {
    background-color: var(--bg-white);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Game Detail ===== */
.game-detail {
    max-width: 900px;
    margin: 0 auto;
}

.detail-image {
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detail-content {
    background-color: var(--bg-white);
}

.detail-info {
    background-color: var(--bg-gray);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.info-value {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.detail-description,
.detail-features {
    margin-bottom: 48px;
}

.detail-description h2,
.detail-features h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.detail-description p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 14px 0 14px 28px;
    position: relative;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 48px;
}

/* ===== Blog ===== */
.blog-list {
    max-width: 900px;
    margin: 0 auto;
}

.blog-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.blog-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-header {
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.blog-date {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.blog-author {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.blog-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.blog-link:hover {
    color: var(--primary-dark);
}

/* ===== Blog Detail ===== */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 24px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.blog-content p {
    margin-bottom: 24px;
}

.blog-actions {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ===== Content Page ===== */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 0;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.content-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.footer-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
        isolation: isolate;
    }

    .floating-shape {
        opacity: 0.08;
        z-index: -1;
        pointer-events: none;
    }

    .shape-1, .shape-3 {
        width: 60px;
        height: 60px;
        z-index: -1;
    }

    .shape-2, .shape-4 {
        width: 50px;
        height: 50px;
        z-index: -1;
    }

    .hero-bg-animation {
        z-index: -1;
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }

    .hero-title,
    .hero-subtitle {
        z-index: auto;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 280px;
        margin: 0 auto;
        position: relative;
        z-index: auto;
    }

    .hero-buttons .btn {
        width: 100%;
        pointer-events: auto;
    }

    .section {
        padding: 60px 0;
    }

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

    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .header-actions {
        display: none;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 0;
        gap: 0;
        margin-left: 0;
        margin-right: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        display: block;
        color: var(--text-secondary);
        font-size: 16px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .detail-actions .btn {
        width: 100%;
    }

    .blog-item {
        padding: 28px;
    }

    .game-body {
        padding: 20px;
    }

    .game-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 56px;
    }

    .logo {
        font-size: 18px;
    }

    .mobile-toggle {
        padding: 4px;
    }

    .nav {
        top: 56px;
    }

    .nav-link {
        padding: 18px 20px;
        font-size: 15px;
    }

    .hero {
        padding: 60px 0 40px;
        isolation: isolate;
    }

    .floating-shape {
        z-index: -1;
        pointer-events: none;
    }

    .hero-content {
        z-index: 1;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        gap: 10px;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        pointer-events: auto;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 40px;
        font-size: 36px;
    }

    .game-card,
    .blog-item,
    .detail-info {
        border-radius: 16px;
    }

    .game-body {
        padding: 16px;
    }

    .game-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .container {
        padding: 0 16px;
    }
}

