/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(127, 29, 29, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 29, 29, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(31, 41, 55, 0.8);
    color: #e5e7eb;
    padding: 10px 20px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(55, 65, 81, 0.9);
    border-color: #4b5563;
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc2626;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #dc2626;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    padding-bottom: 0.5rem; /* 扩大悬停区域，防止鼠标移动时菜单消失 */
}

.nav-dropdown > .nav-link {
    cursor: pointer;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 0.5rem); /* 减少与触发按钮的距离 */
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 0.5rem 0;
    padding-top: 0.75rem; /* 顶部增加一点内边距 */
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* 在下拉菜单顶部创建一个不可见的桥接区域，确保鼠标移动时不会丢失hover */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-dropdown-content a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding-left: 2rem;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    color: #d1d5db;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(55, 65, 81, 0.9);
    border-color: #4b5563;
}

.control-btn.active {
    background: #dc2626;
    border-color: #dc2626;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #d1d5db;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

.section {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 2rem 0;
}

.section.active {
    display: block !important; /* override any accidental inline display:none */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #dc2626;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

/* Hero Section */
.hero-container {
    position: relative;
    height: 62vh; /* slightly shorter to avoid pushing below viewport */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../images/4467209-silent-hill-f_nh33.jpg');
    background-size: cover;
    /* Shift focus upward so the character's head is fully visible */
    background-position: center 20%;
    background-repeat: no-repeat;
}

/* Dim background to improve text readability */
.hero-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(100, 100, 100, 0.05) 25%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(100, 100, 100, 0.05) 75%, 
        rgba(0, 0, 0, 0.1) 100%);
    animation: fog-drift 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-description {
    max-width: 950px;
    margin: 1rem auto 0 auto;
    padding: 0 1.5rem;
}

.hero-description p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: clamp(1.0rem, 1.2vw + 0.6rem, 1.8rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.title-line {
    display: inline;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #9ca3af;
    margin: 0.75rem auto 1.25rem auto;
    font-weight: 300;
    line-height: 1.6;
    max-width: 1100px;
    padding: 0 1.5rem; /* left/right gutter so text doesn't kiss edges */
}

.hero-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fog-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Game Modules */
.game-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 560px));
    gap: 2rem;
    justify-content: center;
    margin: 1rem auto; /* tighten vertical spacing */
    padding: 0 1rem;
    width: 100%;
}

/* Blog preview on homepage - optimize for 5 articles */
#home-blog-preview {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Force home key blocks visible when active */
#home .hero-container { display: flex !important; }
#home .game-modules { display: grid !important; }
#home .related-games-section { display: block !important; }

.module-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.module-card p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* Blog Preview Cards */
.blog-preview-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 !important;
    height: 100%;
    overflow: hidden;
}

.blog-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.05);
}

.blog-preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-preview-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #dc2626;
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.blog-preview-snippet {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    flex: 1;
    min-height: calc(0.95rem * 1.6 * 2); /* Ensure space for 2 lines */
    max-height: calc(0.95rem * 1.6 * 2); /* Lock to exactly 2 lines */
}

.blog-preview-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-preview-views,
.blog-preview-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-preview-btn {
    align-self: flex-start;
    margin-top: auto;
}

.blog-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #9ca3af;
}

/* Game Section */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.game-info-section {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.game-info-section:hover {
    border-color: #dc2626;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.1);
}

.info-section-title {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.info-content {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-list {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.feature-list li::marker {
    color: #dc2626;
}

.game-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.game-canvas-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.game-canvas {
    width: 100%;
    height: 500px;
    display: block;
}

.game-ui {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.game-stats {
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.stat-label {
    color: #9ca3af;
}

.stat-value {
    color: #dc2626;
    font-weight: 600;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Story Section */
.story-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #dc2626, #7f1d1d);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #dc2626;
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.timeline-content {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #d1d5db;
}

/* Activity Section */
.activity-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.activity-card h3 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.challenge-info {
    margin-top: 1rem;
}

.challenge-time {
    display: block;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.leaderboard {
    margin-top: 1rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.rank {
    color: #dc2626;
    font-weight: 600;
    width: 30px;
}

.player {
    flex: 1;
    margin-left: 1rem;
}

.score {
    color: #9ca3af;
    font-weight: 500;
}

/* About Section */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    margin-top: 2rem;
}

.about-text h3 {
    color: #dc2626;
    margin: 2rem 0 1rem 0;
}

.about-text p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.about-text ul {
    margin-left: 2rem;
    color: #9ca3af;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-links {
    margin-top: 3rem;
    text-align: center;
}

.social-link {
    color: #dc2626;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* Games Section */
.games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-games-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.games-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
}

.game-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(11, 17, 26, 0.9));
    border: 1px solid #243b5a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    /* Defer rendering of off-screen cards to speed up initial paint */
    content-visibility: auto;
    contain-intrinsic-size: 320px 350px;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.game-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1f2937;
    overflow: hidden;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.game-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #9ca3af;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.game-info {
    padding: 0.9rem 1.2rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.35rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* 更紧凑的无衬线字体，提升单行容纳度 */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 两行标题 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.4em; /* 两行固定高度 */
    letter-spacing: -0.2px; /* 轻微负字距让更多字符容纳 */
}

.game-description {
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 一行简介 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    height: 1.2em;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.game-category {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-tags {
    color: #9ca3af;
    font-size: 0.8rem;
}

.game-play-btn {
    width: 100%;
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 0.9rem;
}

.game-play-btn:hover {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
    transform: translateY(-1px);
}

/* Game Detail Page */
.game-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Detail Header */
.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.detail-title {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0,0,0,.8);
    font-family: 'Cinzel', serif;
    margin: 0;
    flex: 1;
}
.badge-group { display:flex; gap:0.5rem; flex-wrap:wrap; }
.badge { background: rgba(220,38,38,0.2); color:#fca5a5; border:1px solid rgba(220,38,38,0.4); padding:0.2rem 0.6rem; border-radius:999px; font-size:0.8rem; }

/* Layout */
.detail-layout { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    margin-top: 1.5rem; 
    max-width: 1000px;
    margin-left: 0;
    margin-right: 0;
}
.detail-main { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}
.detail-aside { 
    display: none; 
}
.detail-section { padding: 0.5rem 0 1rem; border-bottom: 1px solid rgba(55,65,81,0.3); }
.detail-section:last-of-type { border-bottom:none; }
.detail-section h3 { color:#dc2626; margin-bottom:0.5rem; }
.detail-description { color:#d1d5db; line-height:1.7; }
.info-card { background: transparent; border: none; padding: 0; }
.info-list { display:flex; flex-direction:column; gap:0.5rem; margin-bottom:0.75rem; }
.info-row { display:flex; gap:0.75rem; color:#9ca3af; }
.info-label { width:120px; color:#9ca3af; }
.sticky { position:sticky; top:90px; }

/* Recommendations */
.recommend-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:1rem; }
.recommend-card { background: rgba(31,41,55,0.6); border:1px solid #374151; border-radius:10px; cursor:pointer; overflow:hidden; transition:transform .2s ease, box-shadow .2s ease; }
.recommend-card:hover { transform: translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.4); }
.recommend-thumb { height: 110px; background:#111827; }
.recommend-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.recommend-title { padding:0.6rem 0.8rem; color:#ef4444; font-size:0.95rem; font-weight:600; }

.game-detail-description {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.game-instructions {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.game-instructions h3 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.game-instructions p {
    color: #9ca3af;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #dc2626;
}

.game-iframe-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Fullscreen toggle button */
.fullscreen-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.fullscreen-toggle:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: #dc2626;
    transform: scale(1.1);
}

.fullscreen-toggle svg {
    width: 24px;
    height: 24px;
    color: #d1d5db;
}

.fullscreen-toggle:hover svg {
    color: #ffffff;
}

/* When container is fullscreen */
.game-iframe-container:fullscreen {
    background: #000;
}

.game-iframe-container:fullscreen .game-iframe {
    height: 100vh;
}

.game-iframe-container:fullscreen .fullscreen-toggle {
    top: 20px;
    right: 20px;
}

.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-back {
    background: rgba(55, 65, 81, 0.8);
    color: #d1d5db;
    border: 1px solid #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-back:hover {
    background: rgba(75, 85, 99, 0.9);
    color: white;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(55, 65, 81, 0.3);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dc2626;
}

/* Updated About Section Styles */
.about-content-wrapper {
    margin-top: 3rem;
}

.about-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    position: relative;
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.about-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #dc2626, #991b1b);
    border-radius: 2px;
    opacity: 0.7;
}

.about-section-title {
    color: #dc2626;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.2);
    position: relative;
    padding-left: 1rem;
}

.about-text {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 1rem;
    text-align: justify;
}

.about-feature-list {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 2rem;
    text-align: justify;
}

.about-feature-list li {
    margin-bottom: 0.8rem;
    position: relative;
    list-style: none;
}

.about-feature-list li::before {
    content: '▶';
    color: #dc2626;
    font-size: 0.8rem;
    position: absolute;
    left: -1.5rem;
    top: 0.1rem;
}

/* Updated Story Section Styles */
.story-image-container {
    margin: 2rem 0;
    text-align: center;
}

.story-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.story-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.6);
}

.story-content {
    margin-top: 3rem;
}

.story-paragraph {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    position: relative;
}

.story-paragraph::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #dc2626, #991b1b);
    border-radius: 2px;
    opacity: 0.6;
}

.story-paragraph p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
    padding-left: 1.5rem;
    text-indent: 2rem;
}

.story-paragraph:first-child p {
    font-size: 1.1rem;
    font-weight: normal;
    color: #d1d5db;
}

.story-paragraph:last-child p {
    font-style: italic;
    color: #9ca3af;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ============================================
   Blog Section Styles
   ============================================ */

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

/* Blog Hero Section */
.blog-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.3) 0%, transparent 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.blog-main-title {
    font-size: 3rem;
    color: #dc2626;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Search */
.blog-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.blog-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-search-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.blog-search-input::placeholder {
    color: #6b7280;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
    font-size: 1.2rem;
}

/* Article Card */
.article-card {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: #dc2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1f2937;
}

.article-thumbnail-container {
    position: relative;
    width: 280px;
    height: 200px;
    overflow: hidden;
    background: #1f2937;
}

.article-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 1.5rem;
    color: #f3f4f6;
    margin-bottom: 0.75rem;
    font-family: 'Cinzel', serif;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-snippet {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.article-date {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.article-date::before {
    content: '📅';
    font-size: 0.85rem;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.pagination-btn {
    background: rgba(31, 41, 55, 0.8);
    color: #d1d5db;
    border: 1px solid #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(55, 65, 81, 0.9);
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
}

.pagination-info span {
    color: #dc2626;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    color: #dc2626;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.category-link::before {
    content: '▶';
    position: absolute;
    left: 0.5rem;
    color: #dc2626;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-link:hover,
.category-link.active {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.15);
}

.category-link:hover::before,
.category-link.active::before {
    opacity: 1;
}

/* Popular List */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.popular-link:hover {
    color: #dc2626;
}

.popular-views {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.tag-item:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

/* Article Detail Page */
.article-detail {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

.article-detail-header {
    text-align: center;
    padding: 2rem 0 3rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    margin-bottom: 3rem;
}

.article-detail-title {
    font-size: 2.5rem;
    color: #f3f4f6;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.article-detail-body {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
    color: #dc2626;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.article-detail-body p {
    margin-bottom: 1.5rem;
}

.article-detail-body ul,
.article-detail-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-detail-body li {
    margin-bottom: 0.5rem;
}

.article-detail-body code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #fca5a5;
}

.article-detail-body pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-left: 3px solid #dc2626;
}

.article-back-btn {
    background: rgba(55, 65, 81, 0.8);
    color: #d1d5db;
    border: 1px solid #4b5563;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 3rem;
}

.article-back-btn:hover {
    background: rgba(75, 85, 99, 0.9);
    color: white;
    transform: translateY(-2px);
}