/* Custom layout for index.html: Horizontal How to Play */
.game-info-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: block;
    width: 100%;
    padding: 0 1rem;
}

.control-instructions {
    width: 100%;
    background-color: #242424;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.control-instructions h3 {
    color: #ff6b6b;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-instructions h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #ff6b6b, #ff8e53);
    border-radius: 3px;
}

.game-description {
    background-color: #2f2f2f;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin: 0 0 1.5rem 0;
    border-left: 4px solid #ff6b6b;
}

.game-description p {
    color: #e0e0e0;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0.8rem;
}

.game-description p:last-child {
    margin-bottom: 0;
}

.instructions-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.instructions-panel {
    background-color: #2f2f2f;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.instructions-panel h4 {
    color: #ffd166;
    font-size: 1.15rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions-panel h4::before {
    content: "🎮";
    font-size: 1.1rem;
}

.game-tips.instructions-panel h4::before {
    content: "💡";
}

.control-instructions ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.control-instructions li {
    background-color: #3b3b3b;
    color: #f0f0f0;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.control-instructions li:hover {
    background-color: #444;
    transform: translateX(3px);
}

.game-tips ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.game-tips li {
    background-color: #3b3b3b;
    color: #f0f0f0;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    border-left: 3px solid #06d6a0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.game-tips li:hover {
    background-color: #444;
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .instructions-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .control-instructions {
        padding: 1.25rem;
    }

    .control-instructions ul {
        grid-template-columns: 1fr;
    }
}

/* Sections for New Games and Hot Games on index.html */
.games-section {
    max-width: 1200px;
    margin: 2.5rem auto 1rem;
    padding: 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.new-games-section .section-header {
    border-bottom: 2px solid rgba(0, 242, 254, 0.25);
}

.new-games-section .section-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 160px;
    height: 3px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    box-shadow: 0 0 12px #00f2fe;
    border-radius: 2px;
}

.hot-games-section .section-header {
    border-bottom: 2px solid rgba(255, 75, 43, 0.25);
}

.hot-games-section .section-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 160px;
    height: 3px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b, #f9d423);
    box-shadow: 0 0 12px #ff4b2b;
    border-radius: 2px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.8px;
    margin: 0;
}

/* Icon Badges */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.new-icon {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.12));
    border: 1px solid rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.4), inset 0 0 8px rgba(0, 242, 254, 0.2);
    animation: sparkle-float 3s ease-in-out infinite;
}

.hot-icon {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.25), rgba(255, 75, 43, 0.15));
    border: 1px solid rgba(255, 75, 43, 0.6);
    box-shadow: 0 0 16px rgba(255, 75, 43, 0.45), inset 0 0 8px rgba(255, 65, 108, 0.2);
    animation: flame-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(6deg) scale(1.08);
    }
}

@keyframes flame-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(255, 75, 43, 0.4);
    }
    50% {
        transform: scale(1.1) rotate(-3deg);
        box-shadow: 0 0 22px rgba(255, 75, 43, 0.65);
    }
}

/* Text Gradient Titles */
.section-title-text {
    text-transform: uppercase;
    font-weight: 800;
}

.new-title {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #38ef7d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.3));
}

.hot-title {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 45%, #f9d423 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 75, 43, 0.35));
}

/* View All Buttons */
.section-header .view-all-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.new-view-all {
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.new-view-all:hover {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    color: #0d1117;
    border-color: #00f2fe;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transform: translateX(3px);
}

.hot-view-all {
    color: #ff6b6b;
    background: rgba(255, 75, 43, 0.08);
    border: 1px solid rgba(255, 75, 43, 0.35);
}

.hot-view-all:hover {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: #fff;
    border-color: #ff4b2b;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.45);
    transform: translateX(3px);
}

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

/* Custom 5-column symmetrical layout for New Games section with central 300x250 ad */
.new-games-section .games-display-grid {
    grid-template-columns: repeat(2, 1fr) 316px repeat(2, 1fr);
    align-items: stretch;
}

/* Custom 5-column symmetrical layout for Hot Games section with central 336x280 ad */
.hot-games-section .games-display-grid {
    grid-template-columns: repeat(2, 1fr) 352px repeat(2, 1fr);
    align-items: stretch;
}

.games-display-grid .game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.games-display-grid .game-card {
    background-color: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    height: 310px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.games-display-grid .game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 24px rgba(255, 107, 107, 0.25);
    border-color: #ff6b6b;
}

.games-display-grid .game-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.games-display-grid .game-card:hover img {
    transform: scale(1.05);
}

.games-display-grid .game-card h4 {
    color: #f0f0f0;
    padding: 0.6rem 0.5rem;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    background: #242424;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ad Card Slot Base Styles */
.ad-card-slot {
    background-color: #242424;
    border: 1px solid #383838;
    border-radius: 12px;
    height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 6px;
    box-sizing: border-box;
}

.ad-card-slot .ad-badge {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 500;
}

.ad-card-slot .ad-300x250-inner {
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-card-slot .ad-300x250-inner ins.adsbygoogle {
    display: inline-block;
    width: 300px;
    height: 250px;
}

/* 336x280 Ad Card Specific Styles */
.ad-card-slot .ad-336x280-inner {
    width: 336px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-card-slot .ad-336x280-inner ins.adsbygoogle {
    display: inline-block;
    width: 336px;
    height: 280px;
}

@media (max-width: 1150px) {
    .games-display-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .new-games-section .games-display-grid {
        grid-template-columns: repeat(2, 1fr) 306px 1fr;
    }
    .hot-games-section .games-display-grid {
        grid-template-columns: repeat(2, 1fr) 342px 1fr;
    }
}

@media (max-width: 950px) {
    .games-display-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .new-games-section .games-display-grid,
    .hot-games-section .games-display-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 680px) {
    .games-display-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .new-games-section .games-display-grid,
    .hot-games-section .games-display-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .new-games-section .ad-card-slot {
        grid-column: span 2;
        width: 100%;
        max-width: 316px;
        margin: 0 auto;
    }
    .hot-games-section .ad-card-slot {
        grid-column: span 2;
        width: 100%;
        max-width: 348px;
        margin: 0 auto;
    }
    .games-display-grid .game-card {
        height: 205px;
    }
    .games-display-grid .game-card img {
        height: 145px;
    }
}

/* 970x90 Large Leaderboard Ad Styles */
.ad-large-leaderboard-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto 1.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.ad-large-leaderboard-container {
    width: 970px;
    max-width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
}

.ad-large-leaderboard-container ins.adsbygoogle {
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .ad-large-leaderboard-wrapper {
        margin: 2rem auto 1rem;
    }
}

@media (max-width: 768px) {
    .ad-large-leaderboard-wrapper {
        margin: 1.5rem auto 0.5rem;
        padding: 0 0.5rem;
    }
}

/* 970x250 Billboard Ad Styles */
.ad-billboard-wrapper {
    width: 100%;
    background-color: #ffffff;
    margin: 0;
    padding: 2rem 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.ad-billboard-container {
    width: 970px;
    max-width: 100%;
    min-height: 250px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
}

.ad-billboard-container ins.adsbygoogle {
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .ad-billboard-wrapper {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .ad-billboard-wrapper {
        padding: 1rem 0.5rem;
    }
}


