* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
}

#wpadminbar {
    display: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: #EC691F;
    background-image: url(safeopen_bg.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}

.safeopen_nav {
    text-align: center;
    padding: 35px 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 9.3px 0 #BF4C00;
    background-color: #EC691F;
    margin-bottom: 18px;
}

.safeopen_nav .title {
    width: 100%;
    max-width: 265px;
    margin: auto;
    position: relative;
}

.safeopen_nav h1 {
    position: relative;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    color: #F9620C;
    font-weight: 800;
    font-size: 24px;
    z-index: 2;
    background-color: white;
    border-radius: 14px;
}

.safeopen_nav .title .before {
    position: absolute;
    top: -48px;
    left: -50px;
    z-index: 1;
    height: 120px;
}

.safeopen_nav .title .after {
    position: absolute;
    top: -48px;
    right: -57px;
    z-index: 1;
    height: 115px;
}

.safeopen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.safe_spin_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

/* ======== WHEEL STRUCTURE (from old theme wheel.v2.css) ======== */

.wheel-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 600px;
}

.wheel-strips {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
    height: 600px;
    position: relative;
    contain: layout style;
}

.strips-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 30px;
    position: relative;
    contain: layout style;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.wheel-strips .strip {
    --strip-width: 290px;
    --strip-height: 100px;
    width: var(--strip-width);
    height: var(--strip-height);
    display: flex;
    align-items: stretch;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    contain: layout style;
}

@media (width < 375px) {
    .wheel-strips .strip {
        --strip-width: 268px;
        --strip-height: 90px;

        width: var(--strip-width);
        height: var(--strip-height);
    }
}

@media (width < 350px) {
    .wheel-strips .strip {
        --strip-width: 244px;
        --strip-height: 88px;

        width: var(--strip-width);
        height: var(--strip-height);
    }
}

.wheel-strips .strip-img-wrap {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.wheel-strips .strip-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.wheel-strips .strip-content {
    flex: 1;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

/* nth-child scaling — static 5 strips */
.wheel-strips .strip:nth-child(1),
.wheel-strips .strip:nth-child(5) {
    width: calc(var(--strip-width) * 0.8);
    height: calc(var(--strip-height) * 0.8);
}

.wheel-strips .strip:nth-child(2),
.wheel-strips .strip:nth-child(4) {
    width: calc(var(--strip-width) * 0.9);
    height: calc(var(--strip-height) * 0.9);
}

/* Slot-reel — spinning animation */
.slot-reel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 290px;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    contain: layout style;
}

.slot-reel .strip {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: stretch;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    contain: layout style paint;
    transition: none;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 550px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wheel-center img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.wheel-spin-btn {
    width: 229px;
    padding: 18px 45px;
    margin-top: 20px;
    background: linear-gradient(48deg, #0072FF 0%, #00C6FF 86%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 25;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4.7px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    line-height: 0px;
    flex-shrink: 0;
}

.wheel-spin-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 114, 255, 0.4);
}

.wheel-spin-btn:disabled {
    background: linear-gradient(87.29deg, #47586D -11.27%, #E3E3E3 98.34%) !important;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

/* ======== MODAL (kept from original safeopen.css) ======== */

.spin_modal {
    display: none;
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.spin_modal .wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: 712px;
    bottom: 0;
    left: 0;
    background-color: white;
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 24px 12px;
    display: flex;
    flex-direction: column;
}

.spin_modal .heading {
    text-align: center;
    padding-right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.spin_modal .heading img {
    object-fit: contain;
    width: 100%;
}

.spin_modal .icon {
    position: relative;
    margin-bottom: 17px;
    width: 100%;
    height: 172px;
    border-radius: 8px;
    background-color: #FDE6D7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spin_modal .icon img {
    max-width: 100%;
    max-height: 100%;
}

.spin_modal .icon a {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
}

.spin_modal .button_link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    width: 100%;
    height: 48px;
    color: white;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(to right, #0072FF 0%, #00C6FF 86%);
    border: none;
    border-radius: 10px;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.spin_modal .safeopen-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.spin_modal .safeopen-modal-actions [hidden] {
    display: none !important;
}

.spin_modal .heart-exchange-prize-modal-button.ui-button,
.spin_modal .safeopen-modal-button.ui-button {
    --ui-button-color: #fff;
    --ui-button-font-weight: 700;
    --ui-button-white-space: nowrap;
}

.spin_modal .heart-exchange-prize-modal-promo-button.ui-button,
.spin_modal .safeopen-promocode-button {
    --ui-button-color: #001830;
    --ui-button-font-weight: 700;
    --ui-button-white-space: nowrap;

    box-shadow: 4px 8px 9.3px -6px rgb(0 0 0 / 10%);
}

.spin_modal .heart-exchange-prize-modal-promo-button.ui-button.is-copied,
.spin_modal .safeopen-promocode-button.ui-button.is-copied {
    --ui-button-color: #00be39;
}

.spin_modal .content {
    overflow-y: auto;
    height: calc(100% - 372px);
}

.spin_modal .content.content_small {
    height: calc(100% - 432px);
}

.spin_modal .content p.title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
}

.spin_modal .content p.text {
    font-size: 14px;
    font-weight: 500;
}

@media (height <=800px) {
    .safeopen_nav {
        margin-bottom: 0;
    }
}

@media (height <=780px) {
    .wheel-spin-btn {
        margin-top: 0;
    }
}

@media (height <=760px) {
    .safeopen_nav {
        padding: 10px 0;
    }

    .safeopen_nav .title {
        display: none;
    }

    .safeopen_nav__small-header {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0 0 15px 15px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .wheel-spin-btn {
        margin-top: 0;
    }
}

@media (height <=740px) {
    .safeopen_nav {
        padding: 0px 0;
    }
}

/* @media (height <=720px) {
    .wheel-container {
        height: 560px;
    }

    .wheel-strips {
        height: 560px;
    }
} */

@media (height < 720px) {
    .safeopen_nav {
        display: none;
    }

    .safeopen {
        min-height: 100dvh;
    }

    .safe_spin_wrap {
        flex: 1;
        justify-content: space-evenly;
    }

    .wheel-spin-btn {
        margin-top: 0;
    }
}