.ios_1.popup-dark-screen.popup-ios_1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.ios_1.popup-dark-screen.ios_1.not-visible {
    visibility: hidden;
}

.ios_1.slotmachine-wrapper {
    width: 100%;
    background: radial-gradient(circle at top, #1e0c3b 0%, #050412 60%, #000 100%);
    border-radius: 20px;
    padding: 80px 20px 40px;
    margin: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.ios_1.slotmachine-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 230px;
}

.ios_1.popup-title {
    text-align: center;
    font-size: 23px;
    color: #ffffff;
    text-shadow:
        -1px -1px 0 #2b1a45,
        1px -1px 0 #2b1a45,
        -1px 1px 0 #2b1a45,
        1px 1px 0 #2b1a45,
        0 0 12px rgba(255, 215, 0, 0.5);
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.ios_1.popup-title.hidden {
    display: none;
}

.ios_1.slotmachine-interactive {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.ios_1.slotmachine-frame-background-slotmachine {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    max-width: 310px;
}

.ios_1.slotmachine-frame-background-slot-promotion {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    max-width: 310px;
    opacity: 0;
}

.ios_1.slotmachine-frame-background-slot-promotion.promotion-active {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}


.ios_1.promotion-image {
    width: 100%;
    max-width: 180px;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.ios_1.promotion-image.hide {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ios_1.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.ios_1.slotmachine-frame-background-slotmachine img,
.ios_1.slotmachine-frame-background-slot-promotion img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ios_1.symbols-row-center {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    box-shadow:
        0 10px 10px 0 #000000,
        inset 2px 0 8px rgba(0, 0, 0, 0.6),
        inset -2px 0 8px rgba(0, 0, 0, 0.6);
}

.ios_1.slotmachine-frame-border {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: flex;
    justify-content: center;
    max-width: 340px;
    z-index: 2;
}

.ios_1.slotmachine-frame-border img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.ios_1.cta-wrapper {
    position: absolute;
    width: 200px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.3s ease-in-out;
}

.ios_1.cta-wrapper:hover {
    transform: translateX(-50%) scale(1.05);
    filter: brightness(1.1);
}

.ios_1.cta-wrapper:active {
    transform: translateX(-50%) scale(0.98);
    filter: brightness(0.95);
}

.ios_1.cta-wrapper:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.ios_1.cta-wrapper.clicked {
    animation: pulse 0.6s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

.ios_1.cta-background-img {
    width: 100%;
    height: 100%;
}

.ios_1.cta-background-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ios_1.cta-text-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease-in-out;
}

.ios_1.cta-text-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ios_1.hide {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ios_1.removed {
    display: none;
}

.ios_1.symbols-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 2%;
    display: flex;
    justify-content: center;
    z-index: 0;
    perspective: 1000px;
}

.ios_1.symbols-row {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    will-change: transform;
    width: 85px;
    height: 95%;
    align-items: center;
}

.ios_1.symbols-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 70px;
    height: 100%;
    align-items: center;
    position: absolute;
    z-index: 1;
}

.ios_1.symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 70px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.ios_1.symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ios_1.symbol.winning-symbol {
    opacity: 1;
}

.ios_1.symbol.winning-symbol img {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* Animation for winning symbol highlight */
@keyframes winningPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    }
}

.ios_1.symbols-row:has(.winning-symbol) .ios_1.symbol.winning-symbol img {
    animation: winningPulse 1s ease-in-out infinite;
}

/* Reels live on top of the frame */
.ios_1.reels {
    position: absolute;
    inset: 18% 10% 30% 10%;
    /* tweak to align with visible window in frame */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ios_1.reel {
    flex: 1;
    margin: 0 3px;
    background: radial-gradient(circle, #12294a 0%, #00081c 70%);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ios_1.reel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.ios_1.promotion-details-wrapper {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 10px;
}

.ios_1.promotion-text {
    color: white;
    font-size: 25px;
    font-weight: 800;
    text-align: center;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
}

.ios_1.close-button-wrapper {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 1010;
    cursor: pointer;
}

.ios_1.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000007a;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ios_1.close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ios_1.close-btn:active {
    background: rgba(0, 0, 0, 0.9);
}

.ios_1.slot-instructions {
    color: white;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    flex-grow: 1;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.ios_1.slot-instructions.hide {
    opacity: 0;
    visibility: hidden;
}

.ios_1.slot-stages-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 340px;
}

.ios_1.stage {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120PX;
}

.ios_1.stage-number {
    font-size: 40px;
    font-weight: 800;
}

.ios_1.stage-text {
    font-size: 13px;
}

.ios_1.terms-and-conditions-wrapper {
    text-align: center;
    position: absolute;
    bottom: 1%;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.ios_1.terms-and-conditions-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.ios_1.terms-and-conditions-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 8px;
    text-align: center;
    margin: 0;
}