.page-arcade-games {
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 20px; /* Small padding at the bottom */
}

.page-arcade-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.page-arcade-games__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Ensure image doesn't stretch too wide */
    margin-bottom: 20px; /* Space between image and content */
}

.page-arcade-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-arcade-games__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-arcade-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-arcade-games__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-arcade-games__hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-arcade-games__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.page-arcade-games__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: none;
}

.page-arcade-games__btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-arcade-games__btn--secondary {
    background-color: transparent;
    color: #FFD36B;
    border: 2px solid #3A2A12;
}

.page-arcade-games__btn--secondary:hover {
    background-color: #3A2A12;
    color: #FFF6D6;
    transform: translateY(-2px);
}

.page-arcade-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #FFD36B;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    padding-top: 40px;
}

.page-arcade-games__section-description {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.page-arcade-games__games-showcase-section,
.page-arcade-games__features-section,
.page-arcade-games__how-to-play-section,
.page-arcade-games__cta-section {
    padding: 20px 0;
    margin-bottom: 40px;
}

.page-arcade-games__game-grid,
.page-arcade-games__feature-grid,
.page-arcade-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-arcade-games__game-card,
.page-arcade-games__feature-item,
.page-arcade-games__step-card {
    background-color: #111111;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__game-card:hover,
.page-arcade-games__feature-item:hover,
.page-arcade-games__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px #FFD36B40;
}

.page-arcade-games__game-iframe {
    width: 100%;
    /* No fixed height, let parent or aspect ratio control */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #0d0d0d; /* Fallback background for iframe */
}

.page-arcade-games__game-title,
.page-arcade-games__feature-title,
.page-arcade-games__step-title {
    font-size: 1.4rem;
    color: #F2C14E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-arcade-games__game-provider {
    font-size: 0.9rem;
    color: #FFF6D6;
    opacity: 0.7;
    margin-bottom: 20px;
}

.page-arcade-games__btn--small {
    padding: 8px 18px;
    font-size: 0.9rem;
    margin-top: auto; /* Push button to bottom */
}

.page-arcade-games__view-all-games {
    text-align: center;
    margin-top: 40px;
}

.page-arcade-games__feature-icon {
    width: 100%;
    max-width: 250px; /* Constrain feature icon size */
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block;
}

.page-arcade-games__feature-text,
.page-arcade-games__step-text {
    font-size: 1rem;
    color: #FFF6D6;
    margin-bottom: 20px;
}

.page-arcade-games__btn--lg {
    padding: 15px 35px;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-arcade-games__hero-content {
        padding: 0 15px;
    }

    .page-arcade-games__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-arcade-games__btn {
        width: 100%;
        max-width: 300px;
    }

    .page-arcade-games__game-grid,
    .page-arcade-games__feature-grid,
    .page-arcade-games__steps-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-arcade-games__section-title {
        padding-top: 30px;
    }

    .page-arcade-games__section-description {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    /* Mobile content area images must be max-width: 100% */
    .page-arcade-games img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content area images are not smaller than 200px on desktop */
@media (min-width: 769px) {
    .page-arcade-games__feature-icon {
        min-width: 200px;
        min-height: 200px;
    }
}