:root {
    --color-primary: #F2C14E;
    --color-secondary: #FFD36B;
    --color-background: #0A0A0A;
    --color-card-bg: #111111;
    --color-text-main: #FFF6D6;
    --color-border: #3A2A12;
    --color-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-arcade-games {
    padding-top: 10px; /* Small top padding, main offset handled by body in shared.css */
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
}

.page-arcade-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-arcade-games__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.page-arcade-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-arcade-games__main-title {
    color: var(--color-secondary);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    max-width: 600px; /* Constraint for title length */
    margin-left: auto;
    margin-right: auto;
}

.page-arcade-games__subtitle {
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 30px;
    max-width: 800px; /* Constraint for description length */
    margin-left: auto;
    margin-right: auto;
}

.page-arcade-games__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--color-background);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.page-arcade-games__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__introduction-section,
.page-arcade-games__featured-games-section,
.page-arcade-games__trial-section,
.page-arcade-games__cta-section,
.page-arcade-games__faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-arcade-games__section-title {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

.page-arcade-games__text-content {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 246, 214, 0.9);
}

.page-arcade-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-arcade-games__game-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--color-border);
}

.page-arcade-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-glow);
}

.page-arcade-games__game-card-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
}

.page-arcade-games__game-card-title {
    font-size: 1.4em;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.page-arcade-games__game-card-title a {
    color: var(--color-secondary);
    text-decoration: none;
}

.page-arcade-games__game-card-title a:hover {
    text-decoration: underline;
}

.page-arcade-games__game-card-description {
    font-size: 0.95em;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 20px;
}

.page-arcade-games__game-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: var(--color-background);
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 120px;
}

.page-arcade-games__game-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.page-arcade-games__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: var(--color-background);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}

.page-arcade-games__game-trial-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.page-arcade-games__cta-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
    padding: 40px;
}

.page-arcade-games__cta-content {
    flex: 1;
}

.page-arcade-games__cta-title {
    color: var(--color-primary);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.page-arcade-games__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 30px;
}

.page-arcade-games__cta-buttons {
    display: flex;
    gap: 20px;
}

.page-arcade-games__cta-button--secondary {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.page-arcade-games__cta-button--secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 0 10px var(--color-primary);
}

.page-arcade-games__cta-image {
    flex: 0 0 400px;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    min-width: 200px;
}

.page-arcade-games__faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.page-arcade-games__faq-item:last-child {
    border-bottom: none;
}

.page-arcade-games__faq-question {
    color: var(--color-secondary);
    font-size: 1.25em;
    margin-bottom: 10px;
}

.page-arcade-games__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.85);
}

@media (max-width: 768px) {
    .page-arcade-games__hero-section {
        padding: 15px;
    }

    .page-arcade-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-arcade-games__subtitle {
        font-size: 1em;
    }

    .page-arcade-games__cta-button {
        padding: 12px 25px;
        min-width: unset;
    }

    .page-arcade-games__introduction-section,
    .page-arcade-games__featured-games-section,
    .page-arcade-games__trial-section,
    .page-arcade-games__cta-section,
    .page-arcade-games__faq-section {
        margin: 20px auto;
        padding: 15px;
    }

    .page-arcade-games__section-title {
        font-size: 1.8em;
    }

    .page-arcade-games__game-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .page-arcade-games__game-card-image {
        min-height: 150px; /* Adjust min-height for mobile if needed, but still > 200px display */
    }

    .page-arcade-games__game-card-title {
        font-size: 1.2em;
    }

    .page-arcade-games__cta-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .page-arcade-games__cta-image {
        order: -1;
        max-width: 100%;
        margin-bottom: 20px;
        flex: none;
    }

    .page-arcade-games__cta-title {
        font-size: 1.8em;
    }

    .page-arcade-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-arcade-games__faq-question {
        font-size: 1.1em;
    }

    .page-arcade-games__hero-section img,
    .page-arcade-games__featured-games-section img,
    .page-arcade-games__trial-section img,
    .page-arcade-games__cta-section img,
    .page-arcade-games__faq-section img,
    .page-arcade-games__game-card-image {
        max-width: 100%;
        height: auto;
    }

    .page-arcade-games__game-card-image {
        min-width: 200px;
        min-height: 200px;
    }
    
    .page-arcade-games__cta-image {
        min-width: 200px;
        min-height: 200px;
    }

    .page-arcade-games__hero-image {
        min-width: 200px;
        min-height: 200px;
    }

    /* Ensure no content area images are smaller than 200px on mobile */
    .page-arcade-games img {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-arcade-games__game-grid > div > img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

}

@media (max-width: 480px) {
    .page-arcade-games__game-grid {
        grid-template-columns: 1fr;
    }
}