.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #F5F7FA; /* Body background from custom palette */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-slot-games__hero-section {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    padding: 60px 0; /* Small top padding, body handles header offset */
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.page-slot-games__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-slot-games__cta-buttons--center {
    margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-slot-games__btn-secondary:hover {
    background: #f0f0f0;
    color: #c62828;
    transform: translateY(-2px);
}

.page-slot-games__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #E53935;
}

.page-slot-games__section-description {
    font-size: 17px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

/* Game Trial Section */
.page-slot-games__game-trial-section {
    padding: 40px 0;
    background: #F5F7FA;
}

.page-slot-games__game-trial {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 20px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__game-trial-shell {
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-slot-games__game-trial-topbar,
.page-slot-games__game-trial-bottombar {
    background: #333333;
    color: #ffffff;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.page-slot-games__game-trial-full-version-btn {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__game-trial-full-version-btn:hover {
    color: #ffffff;
}

.page-slot-games__game-trial-viewport {
    flex: 1;
    min-height: 250px; /* Minimum height for iframe on smaller screens */
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768; /* Default aspect ratio */
}

.page-slot-games__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
}

.page-slot-games__game-trial-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.page-slot-games__game-trial-overlay.is-hidden {
    opacity: 0;
    pointer-events: none !important;
    display: none !important; /* Ensure it's hidden from layout */
}

.page-slot-games__game-trial-start {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #333333;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 6;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    touch-action: manipulation;
}

.page-slot-games__game-trial-start:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.page-slot-games__reward-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 15px;
    box-sizing: border-box;
}

.page-slot-games__reward-modal[hidden] {
    display: none;
}

.page-slot-games__reward-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__reward-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.page-slot-games__reward-modal-close:hover {
    color: #333;
}

.page-slot-games__reward-modal-title {
    font-size: 28px;
    color: #E53935;
    margin-bottom: 15px;
}

.page-slot-games__reward-modal-text {
    font-size: 18px;
    color: #333333;
    margin-bottom: 30px;
}

/* Features Section */
.page-slot-games__features-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-slot-games__dark-section {
    background: #E53935;
    color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__section-description,
.page-slot-games__dark-section .page-slot-games__feature-title,
.page-slot-games__dark-section .page-slot-games__feature-text {
    color: #ffffff;
}

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

.page-slot-games__feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
    justify-content: flex-start;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__feature-icon {
    width: 100%; /* Ensure images are responsive */
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
}

.page-slot-games__feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-slot-games__feature-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Game Types Section */
.page-slot-games__game-types-section {
    padding: 60px 0;
    background: #F5F7FA;
    margin-bottom: 40px;
}

.page-slot-games__game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__game-type-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-slot-games__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-slot-games__game-type-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__game-type-title {
    font-size: 20px;
    font-weight: 600;
    margin: 15px 15px 10px;
    color: #E53935;
}

.page-slot-games__game-type-text {
    font-size: 15px;
    color: #333333;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
    background: #F5F7FA; /* Custom background from palette */
    margin-bottom: 40px;
}

.page-slot-games__how-to-play-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}