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

html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-red: #8b0000;
    --secondary-red: #cc0000;
    --dark-red: #4a0000;
    --blood-red: #660000;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #1a1a1a;
    --text-light: #e0e0e0;
    --text-dim: #999;
    --text-bright: #ffffff;
    --border-dark: #333;
    --shadow-red: rgba(139, 0, 0, 0.3);
    --accent-orange: #ff6b35;
    --warning-yellow: #ffaa00;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-red), var(--bg-darker));
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    color: var(--text-bright);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.8), 0 0 10px rgba(139, 0, 0, 0.5);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-red);
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.8);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-red);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - New Layout */
.hero-section {
    padding: 1rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    min-height: 100vh;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    box-sizing: border-box;
}

/* Left Side - Main Game Showcase */
.main-game-showcase {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    border: 1px solid var(--border-dark);
    max-width: 100%;
    overflow: hidden;
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-logo {
    margin-bottom: 1rem;
}

.game-logo img {
    max-width: 300px;
    height: auto;
}

.showcase-title {
    font-size: 2.5rem;
    color: var(--secondary-red);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(139, 0, 0, 0.6);
    margin-bottom: 0.5rem;
    animation: flicker 4s infinite;
}

.showcase-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.showcase-game {
    position: relative;
}

.game-preview {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
    border: 2px solid var(--dark-red);
}

#gameFrame {
    width: 100%;
    height: 500px;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 0, 0, 0.9);
    color: white;
    border: 2px solid var(--secondary-red);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
}

.game-preview:hover .play-overlay {
    opacity: 1;
    pointer-events: auto;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(204, 0, 0, 0.95);
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.8);
}

.showcase-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--text-bright);
    border: 1px solid var(--secondary-red);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.6);
    transform: translateY(-2px);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn-small {
    padding: 0.4rem 0.8rem;
    background: var(--bg-darker);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.share-btn-small:hover {
    background: var(--primary-red);
    color: var(--text-bright);
    border-color: var(--secondary-red);
    transform: translateY(-1px);
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.stat-item {
    color: var(--text-dim);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Right Side - Other Games */
.other-games-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    border: 1px solid var(--border-dark);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.other-games-section::-webkit-scrollbar {
    width: 8px;
}

.other-games-section::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

.other-games-section::-webkit-scrollbar-thumb {
    background: var(--dark-red);
    border-radius: 4px;
}

.other-games-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

.section-title {
    color: var(--secondary-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.game-card {
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--border-dark);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    border-color: var(--primary-red);
}

.game-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.game-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.game-info {
    padding: 0.75rem;
    background: var(--bg-card);
    text-align: center;
}

.game-info h3 {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card.add-more .game-thumb {
    background: linear-gradient(135deg, var(--dark-red), var(--bg-darker));
}

.game-card.add-more:hover {
    background: var(--bg-darker);
}

/* Inline Controls Section */
.inline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(240, 240, 240, 0.95);
    border-radius: 6px;
    margin-top: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: #999 #f0f0f0;
}

.inline-controls::-webkit-scrollbar {
    height: 6px;
}

.inline-controls::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.inline-controls::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 3px;
}

.inline-controls::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.controls-label {
    font-weight: bold;
    color: #333;
    margin-right: 0.5rem;
}

.control-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.control-item kbd {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 0 0 2px #fff;
    font-family: monospace;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.control-item span {
    color: #555;
    font-size: 0.85rem;
}

/* Compact Share Section */
.compact-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 6px;
    margin-top: 0.75rem;
    border: 1px solid var(--border-dark);
}

.compact-share > span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.compact-share .share-btn {
    padding: 0.4rem 0.8rem;
    background: var(--bg-darker);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.compact-share .share-btn:hover {
    background: var(--primary-red);
    color: var(--text-bright);
    border-color: var(--secondary-red);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
}

/* Game Details Section */
.game-details-section {
    padding: 2rem 0;
    background: var(--bg-dark);
}

/* Inline Controls Section */
.inline-controls {
    background: var(--bg-darker);
    padding: 0.5rem 0.75rem;
    margin-top: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    font-size: 0.75rem;
}

.controls-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.controls-label {
    color: var(--secondary-red);
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.controls-rows {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.inline-controls .control-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    background: none;
    border: none;
    margin: 0;
}

.inline-controls .control-item kbd {
    background: linear-gradient(135deg, var(--dark-red), rgba(139, 0, 0, 0.3));
    color: var(--accent-orange);
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    border: 1px solid rgba(139, 0, 0, 0.6);
    font-family: monospace;
    font-weight: bold;
    font-size: 0.7rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    min-width: auto;
}

.inline-controls .control-item span {
    color: var(--text-dim);
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Old Controls Section - Keep for other pages */
.controls-info {
    background: var(--bg-card);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.controls-info h3 {
    color: var(--secondary-red);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.controls-grid .control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-darker);
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.controls-grid .control-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
}

.controls-grid .control-item kbd {
    background: linear-gradient(135deg, var(--dark-red), var(--bg-darker));
    color: var(--accent-orange);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--primary-red);
    font-family: monospace;
    font-weight: bold;
    font-size: 0.95rem;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 -1px 2px rgba(139, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.controls-grid .control-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid var(--border-dark);
}

.share-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-dark);
    background: var(--bg-darker);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: var(--primary-red);
    color: var(--text-bright);
    border-color: var(--secondary-red);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

/* Info Section */
.info-section {
    padding: 3rem 0;
    background: var(--bg-darker);
    background-image: 
        linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.05)),
        radial-gradient(circle at 50% 0%, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.content-main h2 {
    color: var(--secondary-red);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.content-block {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid var(--border-dark);
}

.content-block h3 {
    color: var(--accent-orange);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.content-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-light);
    transition: all 0.3s;
}

.feature-list li:hover {
    padding-left: 10px;
    color: var(--text-bright);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Sidebar */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-dark);
}

.sidebar-card h3 {
    color: var(--secondary-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.game-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.game-info dt {
    font-weight: 600;
    color: var(--accent-orange);
}

.game-info dd {
    color: var(--text-light);
}

/* Reviews */
.reviews {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    background: var(--bg-darker);
    border-radius: 6px;
    border: 1px solid var(--border-dark);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-user {
    font-weight: 600;
    color: var(--accent-orange);
}

.review-rating {
    color: var(--warning-yellow);
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.3);
}

.review-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Guide Section */
.guide-section {
    padding: 3rem 0;
    background: var(--bg-dark);
    background-image: 
        linear-gradient(180deg, rgba(139, 0, 0, 0.05), transparent);
}

.guide-section h2 {
    text-align: center;
    color: var(--secondary-red);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(139, 0, 0, 0.6);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: all 0.3s;
    border: 1px solid var(--border-dark);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.4);
    border-color: var(--primary-red);
}

.guide-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.5));
}

.guide-card h3 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.guide-card ul {
    list-style: none;
}

.guide-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.guide-card kbd {
    background: var(--bg-darker);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--border-dark);
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-orange);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Tips Section */
.tips-section {
    padding: 3rem 0;
    background: var(--bg-darker);
}

.tips-section h2 {
    text-align: center;
    color: var(--secondary-red);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(139, 0, 0, 0.6);
}

.tips-content {
    max-width: 900px;
    margin: 0 auto;
}

.tip-block {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.tip-block.warning {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), var(--bg-card));
    border-left-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.tip-block h3 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.tip-block p {
    color: var(--text-light);
    line-height: 1.8;
}

.tip-block ul {
    list-style: none;
    margin-top: 1rem;
}

.tip-block li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Simple Footer */
.simple-footer {
    background: linear-gradient(90deg, #00a8cc, #0091b3);
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.simple-footer .footer-content p {
    margin: 0;
    opacity: 0.95;
}

/* Old Footer - kept for reference */
footer.old-footer {
    background: linear-gradient(135deg, var(--bg-darker), var(--dark-red));
    color: var(--text-light);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    border-top: 2px solid var(--primary-red);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--accent-orange);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.3rem 0;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-red);
    opacity: 1;
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    opacity: 0.8;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--dark-red), var(--bg-darker));
    color: var(--text-bright);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--secondary-red);
    display: none;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.6);
}

.toast.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Horror Effect Animations */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.game-title {
    animation: flicker 4s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr 350px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .other-games-section {
        max-height: none;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .showcase-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .showcase-title {
        font-size: 1.5rem;
    }
    
    #gameFrame {
        height: 400px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-grid .control-item {
        justify-content: flex-start;
    }
    
    .inline-controls {
        padding: 0.4rem 0.5rem;
    }
    
    .controls-row {
        gap: 0.5rem;
    }
    
    .inline-controls .control-item kbd {
        font-size: 0.65rem;
        padding: 0.1rem 0.2rem;
    }
    
    .inline-controls .control-item span {
        font-size: 0.65rem;
    }
    
    .controls-label {
        font-size: 0.75rem;
    }
    
    .share-section {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-game-showcase {
        padding: 1.5rem;
    }
    
    .play-overlay {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 10px;
    }
    
    .showcase-title {
        font-size: 1.3rem;
    }
    
    .showcase-subtitle {
        font-size: 0.9rem;
    }
    
    #gameFrame {
        height: 300px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-thumb {
        height: 100px;
    }
    
    .showcase-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .action-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    
    .share-buttons {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }
    
    .share-btn-small {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .game-stats {
        flex: 1 1 auto;
        justify-content: center;
    }
    
    .inline-controls {
        font-size: 0.75rem;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .control-item kbd {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
    
    .control-item span {
        font-size: 0.75rem;
    }
    
    .compact-share {
        flex-wrap: wrap;
    }
    
    .compact-share .share-btn {
        flex: 1;
        min-width: 80px;
    }
}