#cgsWrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: transparent;
    font-family: Arial, sans-serif;
}

#cgsWrapper .cgs-game-element {
    display: block;
    border: none !important;
}

#cgsWrapper .cgs-controls-bar {
    background: linear-gradient(135deg, #004953, #007A5E, #3A5A40);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 20px;
    box-sizing: border-box;
    margin-top: 0 !important;
}

#cgsWrapper .cgs-fs-text {
    color: #ffffff;
    font-weight: bold;
    font-size: clamp(16px, 3vw, 20px);
    cursor: pointer;
    white-space: nowrap;
    position: static !important;
    margin: 0 !important;
}

#cgsWrapper .cgs-fs-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    float: none !important;
    padding: 0 !important;
    position: static !important;
}

#cgsWrapper .cgs-fs-icon img {
    width: 35px;
    height: 35px;
}

#cgsWrapper .cgs-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes its content to the bottom */
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.cgs-bottom-content-wrapper {
    display: flex;
    flex-direction: column; /* CORRECTED: This stacks items top-to-bottom */
    align-items: center;
    gap: 20px;
}

.cgs-play-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#cgsWrapper .cgs-play-button {
    padding: 15px 30px;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    color: white;
    background-color: #5a67d8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#cgsWrapper .cgs-play-button:hover {
    background-color: #432584;
}

#cgsWrapper .cgs-loading-message {
     color: #ffffff;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: bold;
    text-align: center;
    padding: 15px 10px;
}

.cgs-ad-container {
    position: relative;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    opacity: 1;
    visibility: visible;
}

#cgsWrapper .cgs-adslot {
    display: inline-block;
    width: 336px;
    height: 280px;
    background-color: transparent !important;
    min-width: 336px;
    min-height: 280px;
}

#cgsWrapper .cgs-ads-close-btn {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 26px;
    height: 26px;
    background-color: #333;
    border: 1px solid #ffffff;
    border-radius: 3px;
    cursor: pointer;
    z-index: 22;
    padding: 0;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

#cgsWrapper .cgs-ads-close-btn::before,
#cgsWrapper .cgs-ads-close-btn::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: #ffffff;
}

#cgsWrapper .cgs-ads-close-btn::before { transform: rotate(45deg); }
#cgsWrapper .cgs-ads-close-btn::after { transform: rotate(-45deg); }

.cgs-simulated-fullscreen {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 2147483640 !important; background-color: #000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#cgsWrapper .cgs-controls-bar.hidden-during-simulated-fullscreen {
    display: none !important;
}

.cgs-close-fullscreen-btn {
    position: fixed !important; top: 15px; right: 15px;
    width: 35px; height: 35px; background-color: rgba(0, 0, 0, 0.5);
    color: white; font-size: 24px; font-weight: bold; border: none;
    border-radius: 50%; cursor: pointer;
    justify-content: center; align-items: center;
    z-index: 2147483641 !important; display: none;
}