/* PRELOADER GAME LOADING SCREEN */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #060910 url('assets/bg.png') no-repeat center center / cover;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.preloader-overlay.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 460px;
    text-align: center;
    position: relative;
    gap: 32px;
}

.preloader-logo-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo-img {
    width: 100%;
    max-width: 310px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.75));
    user-select: none;
    pointer-events: none;
}

.preloader-bar-container {
    width: 100%;
    max-width: 440px;
    height: 15px;
    background: rgba(10, 16, 26, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    padding: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0052cc 0%, #0084ff 50%, #00d4ff 100%);
    border-radius: 50px;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: width 0.15s ease-out;
}

.preloader-status {
    display: none !important;
}

@media (max-width: 768px) {
    .preloader-content {
        max-width: 90%;
        gap: 26px;
    }

    .preloader-logo-img {
        max-width: 260px;
    }

    .preloader-bar-container {
        max-width: 340px;
        height: 13px;
    }
}

@media (max-width: 480px) {
    .preloader-content {
        gap: 20px;
    }

    .preloader-logo-img {
        max-width: 220px;
    }

    .preloader-bar-container {
        max-width: 260px;
        height: 12px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .preloader-content {
        gap: 14px;
    }

    .preloader-logo-img {
        max-width: 170px;
    }

    .preloader-bar-container {
        max-width: 280px;
        height: 11px;
    }
}

/* CUSTOM SLEEK SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* GLOBAL DISABLE SELECTION & IMAGE DRAGGING */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* ALLOW SELECTION IN INPUT FIELDS FOR EDITING NICKNAME/SETTINGS */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #060910 url('assets/bg.png') no-repeat center center / cover fixed;
    color: #ffffff;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* MAIN CONTAINER FRAME */
.game-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* HEADER BAR */
.top-header {
    height: 70px;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('assets/topbar.png') no-repeat center center / 100% 100%;
    border-bottom: none;
    z-index: 20;
    flex-shrink: 0;
}

.balance-display {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.balance-add-popup {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: none;
    pointer-events: none;
    z-index: 100;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    will-change: transform, opacity;
    transform-origin: left center;
}

.balance-label {
    display: none !important;
}

.balance-amount {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
}

/* MODE SWITCHER BUTTON (DEMO vs LIVE) */
.mode-switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

#btn-mode-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* DEMO MODE BADGE STYLE */
#btn-mode-toggle.demo-active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18) 0%, rgba(0, 100, 255, 0.25) 100%);
    border: 1px solid rgba(0, 212, 255, 0.55);
    color: #00e5ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.3), inset 0 0 12px rgba(0, 212, 255, 0.15);
}

/* LIVE MODE BADGE STYLE */
#btn-mode-toggle.live-active {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.22) 0%, rgba(255, 85, 0, 0.3) 100%);
    border: 1px solid rgba(255, 170, 0, 0.7);
    color: #ffaa00;
    box-shadow: 0 0 18px rgba(255, 170, 0, 0.4), inset 0 0 12px rgba(255, 170, 0, 0.18);
}

.mode-text {
    text-transform: uppercase;
    white-space: nowrap;
}

.mode-switch-icon {
    font-size: 0.65rem;
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.2s ease;
}

/* HOVER & ACTIVE STATES */
#btn-mode-toggle:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.2);
}

#btn-mode-toggle:hover .mode-switch-icon {
    transform: rotate(180deg);
    opacity: 1;
}

#btn-mode-toggle:active {
    transform: translateY(1px) scale(0.97);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.turbo-logo {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.turbo-logo-img {
    height: 35px;
    object-fit: contain;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.45rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: transparent;
    filter: brightness(1.25);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(1px);
}

.header-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    pointer-events: none;
}

/* MAIN CONTENT AREA */
.game-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    position: relative;
    gap: 40px;
    overflow: hidden;
    height: calc(100vh - 110px);
}

/* VORTEX CANVAS STAGE */
.vortex-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: min(56vw, 600px);
    height: min(56vw, 600px);
    max-height: calc(100vh - 120px);
    aspect-ratio: 1 / 1;
    flex-shrink: 1;
    overflow: visible;
    box-sizing: border-box;
}

#vortex-canvas {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

/* WIN / CASHOUT CENTER OVERLAY POPUP */
.win-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 160px;
    max-width: min(80vw, 230px);
    padding: 12px 22px;
    background: linear-gradient(180deg, #101622 0%, #090e17 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    box-sizing: border-box;
}

/* FREE CASHOUT FLYING TEXT (WATER 7X & EARTH 20.5X) */
.free-cashout-fly-badge {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1200;
    opacity: 0;
    will-change: transform, opacity, left, top;
    text-shadow: none;
    filter: none;
}

.win-multiplier {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.win-divider {
    width: 28px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.4);
    margin: 5px 0;
    border-radius: 2px;
}

.win-amount {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.0rem, 3.5vw, 1.25rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px),
(max-height: 550px) {
    .win-banner {
        top: 50%;
        padding: 9px 16px;
        min-width: 135px;
        max-width: 175px;
        border-radius: 16px;
    }

    .win-divider {
        width: 20px;
        margin: 4px 0;
    }
}

/* HOLD CHARGE INDICATOR RING */
.charge-ring-container {
    display: none !important;
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 15;
}

.charge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.charge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.charge-bar {
    fill: none;
    stroke: #00e676;
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.05s linear;
    filter: drop-shadow(0 0 8px #00e676);
}

.charge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: #00e676;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

/* RIGHT CONTROL PANEL */
.control-panel {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
}

/* BET ADJUSTMENT SECTION */
.bet-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
    transform: none;
    margin-top: -10px;
}

.bet-label-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    transform: translateY(-16px);
}

.bet-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bet-info-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bet-info-btn {
    width: 16px;
    height: 16px;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bet-info-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.bet-info-popup {
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    min-width: 130px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.info-popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: -1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.info-popup-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
    transform: translateY(-4px);
}

.bet-info-container:hover .bet-info-popup,
.bet-info-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.bet-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 4px 0;
}

.bet-adjust-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: url('assets/plusminusbg.png') no-repeat center center / contain;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, filter 0.15s ease;
    padding: 0;
}

.bet-adjust-btn:hover {
    filter: brightness(1.2);
}

.bet-adjust-btn:active {
    filter: brightness(0.9);
}

.bet-adjust-btn:active:not(:disabled):not(.disabled) .bet-btn-icon {
    transform: scale(0.88);
}

#btn-bet-plus {
    transform: none;
}

.bet-btn-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.1s ease;
}

.bet-value-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    transform: translateY(-40px);
}

.quick-bets {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.quick-bet-btn {
    flex: 1;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-bet-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* SPIN CONTROLS ROW */
.spin-controls-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    position: relative;
    padding: 4px 0;
}

.action-btn {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.15s ease, filter 0.15s ease;
    padding: 0;
}

.cashout-btn {
    width: 120px;
    height: 120px;
    background: url('assets/cashoutbg.png') no-repeat center center / contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    margin-right: -48px;
    z-index: 1;
}

.part-payout-btn {
    width: 120px;
    height: 120px;
    background: url('assets/partpayoutbg.png') no-repeat center center / contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    margin-left: -48px;
    z-index: 1;
}

.action-btn-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.1s ease;
}

.cashout-btn .action-btn-icon {
    transform: translateX(-14px);
}

.cashout-btn:active:not(:disabled):not(.disabled) .action-btn-icon {
    transform: translateX(-14px) scale(0.88);
}

.part-payout-btn .action-btn-icon {
    transform: translateX(14px);
}

.part-payout-btn:active:not(:disabled):not(.disabled) .action-btn-icon {
    transform: translateX(14px) scale(0.88);
}

.action-btn:hover:not(:disabled):not(.disabled) {
    filter: brightness(1.2);
}

.action-btn:active:not(:disabled):not(.disabled) {
    filter: brightness(0.9);
}

.action-btn:disabled,
.action-btn.disabled,
.bet-adjust-btn:disabled,
.bet-adjust-btn.disabled,
.quick-bet-btn:disabled,
.quick-bet-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.8) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* HOLD TO SPIN BUTTON (CENTERPIECE) */
.hold-spin-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hold-spin-btn {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    transition: transform 0.15s ease, filter 0.15s ease;
    padding: 0;
}

.hold-spin-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.15);
}

.hold-spin-btn:active,
.hold-spin-btn.pressing {
    transform: scale(0.94);
    filter: brightness(0.9);
}

.spin-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.vortex-swirl-icon {
    width: 44px;
    height: 44px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    animation: swirl-spin 12s linear infinite;
}

@keyframes swirl-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spiral-svg {
    width: 100%;
    height: 100%;
}

.ring-text-svg {
    position: absolute;
    width: 92px;
    height: 92px;
    pointer-events: none;
    animation: text-spin 20s linear infinite;
}

@keyframes text-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ring-text {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    fill: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* PAYOUT STATS FOOTER */
.payout-stats {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
    border: none;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-box.left {
    transform: none;
}

.stat-box.right {
    transform: none;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

/* BOTTOM FOOTER */
.bottom-footer,
.htp-bottom-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-top: none;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    box-sizing: border-box;
    z-index: 50;
    pointer-events: none;
}

/* MODAL OVERLAYS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.97);
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

/* HOW TO PLAY FULL VIEW OVERLAY */
.modal-overlay.htp-full-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/bg2.png') no-repeat center center / cover;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.modal-overlay.htp-full-view.active {
    opacity: 1;
    pointer-events: auto;
}

.htp-top-bar {
    height: 70px;
    min-height: 70px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    background: url('assets/topbar.png') no-repeat center center / 100% 100%;
    border-bottom: none;
    box-sizing: border-box;
}

.htp-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

@media (orientation: portrait),
(max-width: 768px) {
    .htp-top-bar {
        height: 56px;
        min-height: 56px;
        padding: 0 12px;
    }

    .htp-title {
        font-size: 1.15rem;
    }

    .modal-close-box {
        right: 12px;
    }

    .modal-close-img {
        width: 28px;
        height: 28px;
    }
}

.modal-close-box {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: filter 0.2s ease;
}

.modal-close-box:hover {
    filter: brightness(1.25);
}

.modal-close-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
}

.htp-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 84px;
    padding: 16px 30px;
    position: relative;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
}

.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.htp-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.htp-graphic {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.htp-spin-img {
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.5));
}

.htp-btns-wrapper {
    gap: 10px;
}

.htp-btn-img {
    max-width: 65px;
    max-height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.htp-ring-img {
    max-width: 135px;
    max-height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.75));
}

img[src*="info4.png"] {
    max-width: 155px;
    max-height: 155px;
    object-fit: contain;
}

.htp-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0;
    max-width: 220px;
}

.htp-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.lets-go-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

.lets-go-btn:hover {
    background: transparent;
    filter: brightness(1.2);
}

.lets-go-img {
    height: 44px;
    object-fit: contain;
}

/* RESPONSIVE HOW TO PLAY OVERRIDES */
@media (orientation: portrait),
(max-width: 768px) {
    .htp-modal-body {
        padding: 12px 16px;
        justify-content: center;
        gap: 12px;
    }

    .how-to-play-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
        max-width: 500px;
    }

    .htp-graphic {
        height: 95px;
        margin-bottom: 6px;
    }

    .htp-spin-img,
    .htp-ring-img {
        max-width: 85px;
        max-height: 85px;
    }

    img[src*="info4.png"] {
        max-width: 100px;
        max-height: 100px;
    }

    .htp-btn-img {
        max-width: 44px;
        max-height: 44px;
    }

    .htp-text {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .lets-go-img {
        height: 38px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .htp-modal-body {
        padding: 8px 16px;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .how-to-play-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .htp-graphic {
        height: 75px;
        margin-bottom: 4px;
    }

    .htp-spin-img,
    .htp-ring-img {
        max-width: 70px;
        max-height: 70px;
    }

    img[src*="info4.png"] {
        max-width: 80px;
        max-height: 80px;
    }

    .htp-btn-img {
        max-width: 38px;
        max-height: 38px;
    }

    .htp-text {
        font-size: 0.7rem;
        line-height: 1.25;
    }

    .lets-go-img {
        height: 34px;
    }
}

/* SETTINGS OVERLAY SPECIFIC STYLES */
.settings-top-bar {
    height: 70px;
    min-height: 70px;
    width: 100%;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px 0 24px;
    background: url('assets/topbar.png') no-repeat center center / 100% 100%;
    border-bottom: none;
    box-sizing: border-box;
}

.playtime-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.playtime-badge span {
    color: #ffffff;
    font-weight: 700;
}

.version-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
    line-height: 1.35;
    margin-right: 12px;
}

@media (max-width: 600px),
(orientation: portrait) {
    .settings-top-bar {
        height: 56px;
        min-height: 56px;
        padding: 0 75px 0 10px !important;
    }

    .playtime-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .version-info {
        font-size: 0.62rem;
        line-height: 1.25;
        margin-right: 8px;
    }
}

.settings-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 20px 56px 20px;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.settings-container {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    max-width: 780px;
    width: 100%;
}

.settings-card {
    background: #252b37;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
    width: 380px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.setting-sub-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-bottom: 6px;
}

.setting-nickname-box {
    background: #313847;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 10px 16px;
}

.nickname-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nickname-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.pencil-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    padding: 4px;
}

.pencil-icon:hover {
    color: #00e676;
    transform: scale(1.2);
}

.nickname-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}

.settings-nickname-input-field {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
}

.settings-nickname-input-field:focus {
    border-color: #00e676;
}

.settings-nickname-save-btn {
    flex-shrink: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    color: #060910;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.settings-nickname-save-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.setting-slider-box {
    background: #1c222e;
    border-radius: 10px;
    padding: 10px 16px;
}

.slider-control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.sound-min-icon,
.sound-max-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.custom-green-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, #00e676 80%, rgba(255, 255, 255, 0.2) 80%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    touch-action: none;
}

.custom-green-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.9);
    transition: transform 0.15s ease, background 0.15s ease;
}

.custom-green-range::-webkit-slider-thumb:hover,
.custom-green-range::-webkit-slider-thumb:active {
    transform: scale(1.3);
    background: #00e676;
}

.custom-green-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.9);
    transition: transform 0.15s ease, background 0.15s ease;
}

.custom-green-range::-moz-range-thumb:hover,
.custom-green-range::-moz-range-thumb:active {
    transform: scale(1.3);
    background: #00e676;
}

.setting-toggle-box {
    background: #1c222e;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-toggle-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

/* CUSTOM TOGGLE SWITCH */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #313847;
    transition: 0.3s;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.custom-switch input:checked+.switch-slider {
    background-color: #00e676;
}

.custom-switch input:checked+.switch-slider:before {
    transform: translateX(22px);
}

/* RIGHT MENU COLUMN */
.settings-menu-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 280px;
}

.user-banner {
    background: transparent;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
}

.banner-turbo-img {
    height: 20px;
    object-fit: contain;
}

.banner-username {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.settings-menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.settings-menu-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    padding: 10px 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.settings-menu-item:hover,
.settings-menu-item.active {
    background: linear-gradient(90deg, #591924 0%, #3e121a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(89, 25, 36, 0.4);
}

.settings-menu-item.red-highlight span {
    color: #ffffff;
    font-weight: 900;
}

.menu-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.red-icon {
    color: #ff334b;
}

/* FREE BETS OVERLAY STYLES */
.back-btn-box {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.back-btn-box:hover {
    background: transparent;
    filter: brightness(1.25);
    transform: translateY(-50%) translateX(-2px);
}

.back-icon-img {
    height: 22px;
    width: 22px;
    object-fit: contain;
}

.back-btn-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.freebets-modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-state-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
}

/* MY BETS OVERLAY STYLES */
.mybets-modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    overflow-y: auto;
}

.mybets-container {
    max-width: 860px;
    width: 100%;
}

.mybets-header-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 24px 12px 24px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.mybets-list-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mybets-row {
    background: #2b3240;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.mybets-row:hover {
    background: #333c4d;
}

.payout-val {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #ffffff;
}

/* LIMITS OVERLAY STYLES */
.limits-modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.limits-img {
    max-width: 380px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7));
}

/* EXIT CONFIRMATION MODAL STYLES */
#modal-exit-confirm {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit-confirm-card {
    background: url('assets/exitbg.png') no-repeat center center / 100% 100%;
    border: none;
    border-radius: 16px;
    padding: 24px 20px;
    width: 90%;
    max-width: 340px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.exit-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.exit-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.38;
    margin: 0 0 20px 0;
    max-width: 280px;
}

.exit-btns-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.exit-img-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.exit-img-btn:hover {
    filter: brightness(1.25);
    transform: translateY(-1px);
}

.exit-img-btn:active {
    transform: translateY(1px);
}

.exit-btn-image {
    height: 44px;
    max-width: 120px;
    object-fit: contain;
}

/* RULES FULL VIEW OVERLAY STYLES */
.rules-modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 24px 40px;
    overflow: hidden;
}

.rules-container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    height: 100%;
}

/* LEFT SIDEBAR NAV */
.rules-sidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    background: url('assets/exitbg.png') no-repeat center center / 100% 100%;
    padding: 20px 16px;
    border-radius: 14px;
    box-sizing: border-box;
    align-self: flex-start;
}

.rules-nav-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rules-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.rules-nav-item.active {
    background: #12151D;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 800;
}

/* RIGHT CONTENT SCROLL PANE */
.rules-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    scroll-behavior: smooth;
}

.rules-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.rules-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 10px;
}

.rules-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.rules-sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 14px 0 2px 0;
}

.rules-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    margin: 0;
}

.rules-bullet-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.paytable-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 6px;
}

.paytable-symbol {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

/* MODAL OVERLAY BACKGROUND SPECIFIC OVERRIDES */
#modal-help,
#modal-settings {
    background: url('assets/bg.png') no-repeat center center / cover !important;
}

#modal-profile,
#modal-freebets,
#modal-mybets,
#modal-limits,
#modal-rules-full {
    background: url('assets/bg2.png') no-repeat center center / cover !important;
}

.limits-modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.limits-img {
    max-width: 90%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.profile-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 24px 20px 16px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 520px;
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    box-sizing: border-box;
}

.profile-top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-main-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: 1;
    gap: 12px;
}

.profile-turbo-logo {
    height: 58px;
    object-fit: contain;
    margin-bottom: 8px;
}

.profile-id-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 0.3px;
    text-align: center;
}

.profile-card {
    background: #252b37;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 28px;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}

.profile-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    margin: 0 0 14px 0;
    text-align: center;
}

.profile-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.profile-rank-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.badge-arrow-box {
    background: #313847;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
}

.rating-details-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    text-align: center;
}

.rating-trophy-btn {
    background: #313847;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 100%;
    padding: 9px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rating-trophy-btn .trophy-icon {
    font-size: 1.25rem;
}

.rating-trophy-btn .arrow-icon {
    font-size: 0.75rem;
}

.play-of-day-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    padding-bottom: 8px;
}

.play-day-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

.play-day-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.play-tab-btn {
    background: #252b37;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 70px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-tab-btn .tab-icon {
    font-size: 1.35rem;
}

.play-tab-btn.active-tab {
    background: #a8202d;
    border: 1px solid #ff334b;
    color: #ffffff;
}

.play-tab-btn.active-tab .tab-icon {
    color: #ffffff;
}

.records-content-box {
    width: 100%;
    max-width: 480px;
    max-height: min(340px, calc(100vh - 290px));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 6px;
    margin-top: 12px;
    box-sizing: border-box;
}

.records-content-box::-webkit-scrollbar {
    width: 5px;
}

.records-content-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.record-item-card {
    background: #1d232f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s ease, transform 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.record-item-card:hover {
    background: #252c3b;
    transform: translateY(-1px);
}

.record-rank {
    font-size: 0.92rem;
    font-weight: 900;
    width: 30px;
    color: rgba(255, 255, 255, 0.5);
}

.record-rank.top-1 {
    color: #ffd700;
}

.record-rank.top-2 {
    color: #c0c0c0;
}

.record-rank.top-3 {
    color: #cd7f32;
}

.record-player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    margin-left: 10px;
}

.record-player-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.record-date-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.record-stats-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.record-multi-tag {
    font-size: 0.88rem;
    font-weight: 800;
    color: #3aec0e;
    background: rgba(58, 236, 14, 0.12);
    padding: 3px 10px;
    border-radius: 5px;
    border: 1px solid rgba(58, 236, 14, 0.3);
}

.record-win-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.empty-records-msg {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 24px 12px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.rule-item {
    display: flex;
    gap: 12px;
}

.rule-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00e676;
    color: #000000;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.color-tag {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.color-tag.blue {
    background: rgba(13, 122, 227, 0.2);
    color: rgba(13, 122, 227, 1);
}

.color-tag.green {
    background: rgba(58, 236, 14, 0.2);
    color: rgba(58, 236, 14, 1);
}

.color-tag.red {
    background: rgba(204, 8, 31, 0.2);
    color: rgba(204, 8, 31, 1);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.history-table th,
.history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-table th {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* BONUS CARD */
.bonus-card {
    text-align: center;
    background: radial-gradient(circle, #240b10 0%, #100609 100%);
    border-color: rgba(204, 8, 31, 1);
    box-shadow: 0 0 40px rgba(204, 8, 31, 0.4);
}

.bonus-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: rgba(204, 8, 31, 1);
    margin-bottom: 10px;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.bonus-orb {
    height: 80px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #ff4d6d 0%, #800f2f 100%);
    border: 2px solid #ff758f;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.bonus-card {
    text-align: center;
    background: radial-gradient(circle at center, #2b0b15 0%, #0d0812 100%);
    border: 2px solid #ff4d4d;
    box-shadow: 0 0 40px rgba(255, 77, 77, 0.4), inset 0 0 20px rgba(255, 77, 77, 0.2);
    max-width: 440px;
    padding: 28px 24px;
}

.bonus-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ff4d4d;
    text-shadow: 0 0 12px rgba(255, 77, 77, 0.6);
    margin-bottom: 4px;
}

.bonus-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 20px;
}

.fire-bonus-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.bonus-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bonus-box.fixed-box {
    border-color: rgba(255, 183, 3, 0.4);
    background: rgba(255, 183, 3, 0.08);
}

.bonus-box.random-box {
    border-color: rgba(255, 77, 77, 0.5);
    background: rgba(255, 77, 77, 0.1);
}

.bonus-box-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-box-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
}

.bonus-box.fixed-box .bonus-box-val {
    color: #ffb703;
}

.bonus-box.random-box .bonus-box-val {
    color: #ff4d4d;
}

.bonus-plus {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
}

.bonus-total-container {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.bonus-total-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 4px;
}

.bonus-total-multi {
    font-size: 1.6rem;
    font-weight: 900;
    color: #00e676;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.claim-bonus-btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    border: none;
    border-radius: 12px;
    color: #060910;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.claim-bonus-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.claim-bonus-btn:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}

/* BONUS INFO OVERLAY CARD (MATCHING REFERENCE UI) */
.bonus-info-card {
    background: radial-gradient(circle at center, #192334 0%, #0c121e 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 36px 24px 24px 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(13, 122, 227, 0.15);
    position: relative;
    box-sizing: border-box;
}

.bonus-info-card .modal-close-box {
    position: absolute;
    top: 20px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 2px;
}

.bonus-info-card .modal-close-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.9;
}

.bonus-info-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.bonus-info-icon-col {
    flex-shrink: 0;
    padding-top: 4px;
}

.bonus-info-circle-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bonus-info-text-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.bonus-info-p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin: 0;
}

/* ==========================================
   RESPONSIVE DESIGN (LANDSCAPE & PORTRAIT)
   ========================================== */

/* TABLETS & MEDIUM LANDSCAPE SCREENS (<= 1024px) */
@media (max-width: 1024px) and (orientation: landscape) {
    .top-header {
        padding: 0 16px;
    }

    .vortex-stage {
        max-width: 520px;
        max-height: 520px;
    }
}

/* PORTRAIT MODE ONLY (ALL DEVICES IN PORTRAIT ORIENTATION) */
@media (orientation: portrait) {
    body {
        overflow-y: auto;
    }

    .game-container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .top-header,
    .htp-top-bar {
        height: 56px;
        min-height: 56px;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .settings-top-bar {
        height: 56px;
        min-height: 56px;
        padding: 0 75px 0 10px !important;
        box-sizing: border-box;
    }

    .balance-display {
        font-size: 0.88rem;
    }

    .balance-amount {
        font-size: 0.98rem;
    }

    .header-controls {
        gap: 3px;
    }

    .mode-switcher-container {
        margin-right: 2px;
    }

    #btn-mode-toggle {
        padding: 3px 6px;
        font-size: 0.6rem;
        gap: 3px;
        border-radius: 5px;
    }

    .turbo-logo {
        margin-right: 2px;
    }

    .turbo-logo-img {
        height: 22px;
    }

    .icon-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.95rem;
    }

    .header-icon-img {
        width: 20px;
        height: 20px;
    }

    .game-main {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        gap: 8px;
        overflow: hidden !important;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
    }

    .vortex-stage {
        width: min(88vw, 45vh);
        height: min(88vw, 45vh);
        max-width: 400px;
        max-height: 400px;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto;
        flex: none;
        position: relative;
        overflow: visible;
        box-sizing: border-box;
    }

    #vortex-canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
        aspect-ratio: 1 / 1 !important;
        display: block;
        object-fit: contain;
    }

    /* CONTROL PANEL RESET FOR PORTRAIT SCREENS */
    .control-panel {
        transform: none !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 4px;
        padding: 0 8px 8px 8px;
    }

    .bet-section {
        transform: none !important;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .bet-label-wrapper {
        transform: translateY(-12px) !important;
        margin-bottom: 2px;
    }

    .bet-controls {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .bet-adjust-btn {
        width: 50px;
        height: 50px;
    }

    .bet-btn-icon {
        width: 38px;
        height: 38px;
    }

    #btn-bet-plus {
        transform: none !important;
    }

    .bet-value-display {
        transform: translateY(-30px) !important;
        font-size: 1.35rem;
    }

    .spin-controls-row {
        gap: 0;
        width: 100%;
        justify-content: center;
    }

    .payout-stats {
        width: 100%;
        gap: 0;
        justify-content: space-around;
    }

    .stat-box.left,
    .stat-box.right {
        transform: none !important;
        text-align: center;
    }

    .how-to-play-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .htp-graphic {
        height: 140px;
    }

    .htp-spin-img {
        width: 120px;
        height: 120px;
    }

    .htp-ring-img {
        width: 130px;
        height: 130px;
    }

    img[src*="info4.png"] {
        width: 150px;
        height: 150px;
    }

    .settings-container,
    .rules-container {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
    }

    .settings-card,
    .settings-menu-column,
    .rules-sidebar {
        width: 100%;
        max-width: 440px;
    }

    .rules-sidebar {
        flex-direction: row;
        overflow-x: auto;
        align-self: center;
        white-space: nowrap;
    }

    .rules-nav-item {
        flex: none;
    }

    .mybets-header-row,
    .mybets-row {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

@media (orientation: portrait) and (max-width: 480px) {

    .top-header,
    .htp-top-bar,
    .settings-top-bar {
        padding: 0 6px;
        height: 56px;
        min-height: 56px;
        box-sizing: border-box;
    }

    .balance-label {
        display: none;
    }

    .balance-amount {
        font-size: 0.95rem;
    }

    #btn-mode-toggle {
        padding: 3px 6px;
        font-size: 0.62rem;
    }

    .icon-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .header-icon-img {
        width: 20px;
        height: 20px;
    }

    .game-main {
        justify-content: center;
        overflow: hidden !important;
    }

    .vortex-stage {
        width: min(86vw, 43vh);
        height: min(86vw, 43vh);
        max-width: 370px;
        max-height: 370px;
        aspect-ratio: 1 / 1 !important;
    }

    .control-panel {
        max-width: 300px;
        gap: 2px;
    }

    .cashout-btn,
    .part-payout-btn {
        width: 76px;
        height: 76px;
    }

    .action-btn-icon {
        width: 38px;
        height: 38px;
    }

    .cashout-btn .action-btn-icon {
        transform: translateX(-8px);
    }

    .part-payout-btn .action-btn-icon {
        transform: translateX(8px);
    }

    .cashout-btn {
        margin-right: -26px;
    }

    .part-payout-btn {
        margin-left: -26px;
    }

    .hold-spin-wrapper,
    .hold-spin-btn {
        width: 84px;
        height: 84px;
    }

    .spin-main-img {
        width: 84px;
        height: 84px;
    }

    .how-to-play-grid {
        grid-template-columns: 1fr;
    }

    .htp-modal-body {
        padding: 10px 20px;
    }

    .lets-go-img {
        height: 50px;
    }

    /* SETTINGS MODAL PORTRAIT OVERRIDES */
    .settings-modal-body {
        padding: 16px 16px 60px 16px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        box-sizing: border-box;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    }

    .settings-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        max-width: 560px;
        margin-top: 4px;
        margin-bottom: 16px;
    }

    .settings-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 18px 16px;
        gap: 12px;
    }

    .settings-menu-column {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }

    .settings-menu-list {
        gap: 10px;
        margin-top: 0;
    }

    .settings-menu-item {
        padding: 10px 14px;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* RULES FULL VIEW MODAL PORTRAIT OVERRIDES */
    .rules-modal-body {
        padding: 10px 16px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .rules-container {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .rules-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 6px;
        gap: 6px;
        align-self: stretch;
        flex-shrink: 0;
        border-radius: 10px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .rules-nav-item {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 0.78rem;
        border-radius: 6px;
    }

    .rules-content-scroll {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;
        gap: 18px;
    }

    .rules-bullet-list {
        padding-left: 24px;
        box-sizing: border-box;
    }

    /* BONUS MODALS PORTRAIT OVERRIDES */
    .bonus-card {
        padding: 20px 16px;
        max-width: 340px;
        width: 92%;
        border-radius: 16px;
    }

    .bonus-title {
        font-size: 1.15rem;
    }

    .bonus-subtitle {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }

    .fire-bonus-display {
        gap: 8px;
        margin-bottom: 16px;
    }

    .bonus-box {
        padding: 8px;
    }

    .bonus-box-label {
        font-size: 0.68rem;
    }

    .bonus-box-val {
        font-size: 1.1rem;
    }

    .bonus-total-container {
        padding: 10px;
        margin-bottom: 14px;
    }

    .bonus-total-multi {
        font-size: 1.3rem;
    }

    .bonus-info-card {
        padding: 30px 20px 20px 20px;
        max-width: 360px;
        width: 92%;
        border-radius: 16px;
    }

    .bonus-info-p {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    /* TURBO UNIVERSE MODAL PORTRAIT OVERRIDES */
    .profile-modal-body {
        padding: 12px 16px;
        justify-content: center;
        align-items: center;
    }

    .profile-container {
        gap: 12px;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .profile-turbo-logo {
        height: 42px;
        max-width: 80%;
        object-fit: contain;
        margin-bottom: 2px;
    }

    .profile-id-text {
        font-size: 0.74rem;
        word-break: break-all;
    }

    .profile-card {
        padding: 14px 20px;
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }

    .profile-card-title {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }

    .profile-badge-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .profile-rank-img {
        width: 40px;
        height: 40px;
    }

    .rating-details-label {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .play-of-day-section {
        width: 100%;
        gap: 8px;
    }

    .play-day-title {
        font-size: 1.05rem;
    }

    .play-day-tabs {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .play-tab-btn {
        flex: 1;
        max-width: 90px;
        height: 52px;
        font-size: 0.64rem;
    }
}

/* ─── SETTINGS MODAL ONLY: PORTRAIT 480–600px FIX ──────────────────────────
   Targets the exact viewport range where the modal body was being cut from
   the top and the scroll area was not fully filling the available height.   */
@media (orientation: portrait) and (max-width: 600px) {

    #modal-settings {
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    #modal-settings .settings-top-bar {
        flex-shrink: 0;
        height: 56px;
        min-height: 56px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 75px 0 10px !important;
        position: relative;
        z-index: 2;
    }

    #modal-settings .settings-modal-body {
        flex: 1;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        padding: 12px 14px 56px 14px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    }

    #modal-settings .settings-container {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    #modal-settings .settings-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px 14px;
        gap: 12px;
    }

    #modal-settings .settings-menu-column {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #modal-settings .settings-menu-list {
        gap: 8px;
        margin-top: 0;
    }

    #modal-settings .settings-menu-item {
        padding: 10px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}

/* TABLET & LARGE SCREEN PORTRAIT MODE (iPad Mini, iPad Air, iPad Pro, Surface Pro 7, Nexus 10, ZenBook Fold) */
@media (orientation: portrait) and (min-width: 600px) {

    .top-header,
    .htp-top-bar,
    .settings-top-bar {
        height: 76px;
        min-height: 76px;
        padding: 0 28px;
    }

    .balance-display {
        font-size: 1.3rem;
    }

    .balance-amount {
        font-size: 1.5rem;
    }

    #btn-mode-toggle {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .turbo-logo-img {
        height: 36px;
    }

    .icon-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.35rem;
    }

    .header-icon-img {
        width: 30px;
        height: 30px;
    }

    .game-main {
        gap: 28px;
        padding: 24px;
    }

    .vortex-stage {
        width: min(84vw, 46vh);
        height: min(84vw, 46vh);
        max-width: 530px;
        max-height: 530px;
    }

    .control-panel {
        max-width: 480px;
        gap: 12px;
    }

    .bet-label {
        font-size: 1.05rem;
    }

    .bet-amount {
        font-size: 1.6rem;
    }

    .bet-adjust-btn {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    .bet-btn-icon {
        width: 36px;
        height: 36px;
    }

    .quick-bet-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .cashout-btn,
    .part-payout-btn {
        width: 145px;
        height: 145px;
    }

    .action-btn-icon {
        width: 72px;
        height: 72px;
    }

    .cashout-btn .action-btn-icon {
        transform: translateX(-16px);
    }

    .part-payout-btn .action-btn-icon {
        transform: translateX(16px);
    }

    .cashout-btn {
        margin-right: -52px;
    }

    .part-payout-btn {
        margin-left: -52px;
    }

    .hold-spin-wrapper,
    .hold-spin-btn {
        width: 165px;
        height: 165px;
    }

    .spin-main-img {
        width: 165px;
        height: 165px;
    }

    /* SHORT TABLET PORTRAIT OVERRIDES (e.g. 612x636) */
    @media (max-height: 720px) {
        .vortex-stage {
            width: min(78vw, 40vh);
            height: min(78vw, 40vh);
            max-width: 360px;
            max-height: 360px;
        }

        .control-panel {
            max-width: 360px;
            gap: 4px;
        }

        .cashout-btn,
        .part-payout-btn {
            width: 90px;
            height: 90px;
        }

        .action-btn-icon {
            width: 44px;
            height: 44px;
        }

        .cashout-btn .action-btn-icon {
            transform: translateX(-10px);
        }

        .part-payout-btn .action-btn-icon {
            transform: translateX(10px);
        }

        .cashout-btn {
            margin-right: -32px;
        }

        .part-payout-btn {
            margin-left: -32px;
        }

        .hold-spin-wrapper,
        .hold-spin-btn,
        .spin-main-img {
            width: 100px;
            height: 100px;
        }

        .bet-adjust-btn {
            width: 40px;
            height: 40px;
            font-size: 1.1rem;
        }

        .bet-btn-icon {
            width: 30px;
            height: 30px;
        }

        .quick-bet-btn {
            padding: 6px 12px;
            font-size: 0.82rem;
        }

        .payout-stats {
            margin-top: -8px;
            padding: 2px 0;
        }

        .stat-label {
            font-size: 0.72rem;
        }

        .stat-value {
            font-size: 0.95rem;
        }
    }

    /* ALL POPUPS & MODALS TABLET PORTRAIT SCALING */
    .settings-modal-body {
        padding: 20px 20px 60px 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .settings-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        max-width: 540px;
        width: 100%;
        margin-top: 12px;
        margin-bottom: 24px;
    }

    .settings-card {
        padding: 26px 24px;
        gap: 16px;
    }

    .settings-menu-item {
        padding: 12px 18px;
        font-size: 1.15rem;
    }

    .exit-confirm-card {
        padding: 36px 30px;
        max-width: 440px;
        border-radius: 20px;
    }

    .exit-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .exit-subtext {
        font-size: 1.1rem;
        margin-bottom: 28px;
        max-width: 340px;
    }

    .exit-btns-row {
        gap: 24px;
    }

    .exit-btn-image {
        height: 56px;
        max-width: 150px;
    }

    .rules-modal-body {
        padding: 20px 28px;
    }

    .rules-sidebar {
        padding: 10px;
        gap: 10px;
        border-radius: 12px;
    }

    .rules-nav-item {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .rules-section-title {
        font-size: 1.65rem;
    }

    .rules-sub-title {
        font-size: 1.2rem;
    }

    .rules-text,
    .rules-bullet-list,
    .rules-tagline {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .how-to-play-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
        max-width: 750px;
    }

    .htp-graphic {
        height: 150px;
        margin-bottom: 10px;
    }

    .htp-spin-img,
    .htp-ring-img {
        max-width: 135px;
        max-height: 135px;
    }

    img[src*="info4.png"] {
        max-width: 155px;
        max-height: 155px;
    }

    .htp-btn-img {
        max-width: 65px;
        max-height: 65px;
    }

    .htp-text {
        font-size: 1.02rem;
        line-height: 1.45;
        max-width: 290px;
    }

    .lets-go-img {
        height: 56px;
    }

    .bonus-card {
        padding: 32px 28px;
        max-width: 520px;
        width: 90%;
        border-radius: 24px;
    }

    .bonus-title {
        font-size: 1.7rem;
    }

    .bonus-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .fire-bonus-display {
        gap: 14px;
        margin-bottom: 20px;
    }

    .bonus-box {
        padding: 14px;
    }

    .bonus-box-label {
        font-size: 0.85rem;
    }

    .bonus-box-val {
        font-size: 1.5rem;
    }

    .bonus-total-container {
        padding: 16px;
        margin-bottom: 18px;
    }

    .bonus-total-multi {
        font-size: 1.85rem;
    }

    .claim-bonus-btn {
        padding: 16px 0;
        font-size: 1.2rem;
    }

    .bonus-info-card {
        padding: 44px 32px 32px 32px;
        max-width: 620px;
        width: 90%;
        border-radius: 24px;
    }

    .bonus-info-p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .profile-modal-body {
        padding: 24px 32px;
    }

    .profile-container {
        gap: 20px;
        max-width: 540px;
    }

    .profile-turbo-logo {
        height: 64px;
        margin-bottom: 4px;
    }

    .profile-id-text {
        font-size: 0.95rem;
    }

    .profile-card {
        padding: 22px 32px;
        width: 380px;
    }

    .profile-card-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .profile-rank-img {
        width: 54px;
        height: 54px;
    }

    .rating-details-label {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .play-of-day-section {
        gap: 12px;
    }

    .play-day-title {
        font-size: 1.3rem;
    }

    .play-day-tabs {
        gap: 14px;
    }

    .play-tab-btn {
        width: 90px;
        height: 72px;
        font-size: 0.8rem;
    }
}

/* LANDSCAPE MODE (ALL DEVICES: TABLETS, MOBILE PHONES, DESKTOP) */
@media (orientation: landscape) {
    .game-main {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 3vw, 40px);
        padding: 6px 16px;
        overflow: hidden;
        height: calc(100vh - 65px);
    }

    .vortex-stage {
        width: min(50vw, 76vh, 580px);
        height: min(50vw, 76vh, 580px);
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 1;
        margin: 0;
    }

    .control-panel {
        width: min(44vw, 320px);
        flex-shrink: 0;
        gap: clamp(8px, 1.8vh, 16px);
    }
}

/* ─── SETTINGS MODAL: DESKTOP / PC LANDSCAPE (tall screens) ─────────────────
   Restores centered layout for #modal-settings on wide landscape screens
   (PC, laptop, tablet landscape) where content should sit in the middle.   */
@media (orientation: landscape) and (min-height: 601px) {

    #modal-settings .settings-modal-body {
        justify-content: center;
        align-items: center;
    }

    #modal-settings .settings-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 36px;
        max-width: 780px;
        width: 100%;
        margin: 0 auto;
    }
}


@media (orientation: landscape) and (max-height: 600px) {

    .top-header,
    .htp-top-bar {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .settings-top-bar {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 75px 0 12px !important;
        box-sizing: border-box;
    }

    .htp-title {
        font-size: 1.05rem;
    }

    .balance-display {
        font-size: 0.95rem;
    }

    .balance-amount {
        font-size: 1.1rem;
    }

    .turbo-logo-img {
        height: 24px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .header-icon-img,
    .modal-close-img {
        width: 24px;
        height: 24px;
    }

    .game-main {
        height: calc(100vh - 50px);
        padding: 4px 16px;
        gap: clamp(16px, 3vw, 28px);
    }

    .vortex-stage {
        width: min(52vw, 88vh);
        height: min(52vw, 88vh);
        max-width: 480px;
        max-height: 480px;
    }

    .control-panel {
        width: clamp(280px, 46vw, 350px);
        gap: 8px;
    }

    .bet-section {
        gap: 8px;
    }

    .bet-label-wrapper {
        transform: none !important;
    }

    .bet-controls {
        padding: 0;
        gap: 12px;
    }

    .bet-adjust-btn {
        width: 58px;
        height: 58px;
    }

    .bet-btn-icon {
        width: 46px;
        height: 46px;
    }

    .bet-value-display {
        font-size: 1.35rem;
        transform: none !important;
    }

    .spin-controls-row {
        padding: 0;
    }

    .hold-spin-wrapper,
    .hold-spin-btn {
        width: 110px;
        height: 110px;
    }

    .spin-main-img {
        width: 110px;
        height: 110px;
    }

    .cashout-btn,
    .part-payout-btn {
        width: 100px;
        height: 100px;
    }

    .action-btn-icon {
        width: 50px;
        height: 50px;
    }

    .cashout-btn .action-btn-icon {
        transform: translateX(-12px);
    }

    .cashout-btn:active:not(:disabled):not(.disabled) .action-btn-icon {
        transform: translateX(-12px) scale(0.88);
    }

    .part-payout-btn .action-btn-icon {
        transform: translateX(12px);
    }

    .part-payout-btn:active:not(:disabled):not(.disabled) .action-btn-icon {
        transform: translateX(12px) scale(0.88);
    }

    .cashout-btn {
        margin-right: -40px;
    }

    .part-payout-btn {
        margin-left: -40px;
    }

    .payout-stats {
        padding: 2px 0;
        gap: 16px;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    /* BONUS MODALS MOBILE LANDSCAPE OVERRIDES */
    .bonus-card {
        padding: 16px 20px;
        max-width: 420px;
        width: 90%;
        border-radius: 14px;
    }

    .bonus-title {
        font-size: 1.1rem;
    }

    .bonus-subtitle {
        font-size: 0.72rem;
        margin-bottom: 10px;
    }

    .fire-bonus-display {
        margin-bottom: 10px;
        gap: 8px;
    }

    .bonus-box {
        padding: 6px 12px;
    }

    .bonus-box-val {
        font-size: 1.05rem;
    }

    .bonus-total-container {
        padding: 8px;
        margin-bottom: 10px;
    }

    .bonus-total-multi {
        font-size: 1.2rem;
    }

    .bonus-info-card {
        padding: 24px 20px 16px 20px;
        max-width: 440px;
        width: 90%;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 14px;
    }

    .bonus-info-text-col {
        gap: 10px;
    }

    .bonus-info-p {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    /* SETTINGS MODAL MOBILE LANDSCAPE OVERRIDES */
    .settings-modal-body {
        display: flex;
        flex-direction: column;
        padding: 8px 16px;
        overflow-y: auto;
        justify-content: center;
        align-items: center;
        min-height: 0;
    }

    .settings-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        max-width: 720px;
        width: 100%;
        margin: auto 0;
    }

    .settings-card {
        width: 320px;
        padding: 14px 16px;
        gap: 10px;
        border-radius: 12px;
    }

    .setting-nickname-box,
    .setting-slider-box,
    .setting-toggle-box {
        padding: 8px 12px;
    }

    .settings-menu-column {
        width: 240px;
        gap: 8px;
    }

    .settings-menu-list {
        gap: 6px;
        margin-top: 0;
    }

    .settings-menu-item {
        padding: 8px 12px;
        font-size: 0.92rem;
        border-radius: 8px;
    }

    /* RULES FULL VIEW MODAL MOBILE LANDSCAPE OVERRIDES */
    .rules-modal-body {
        padding: 6px 14px;
        overflow: hidden;
    }

    .rules-container {
        gap: 16px;
        width: 100%;
        height: 100%;
    }

    .rules-sidebar {
        width: 160px;
        padding: 8px 6px;
        gap: 4px;
        overflow-y: auto;
        max-height: 100%;
        border-radius: 10px;
    }

    .rules-nav-item {
        padding: 6px 10px;
        font-size: 0.72rem;
        border-radius: 6px;
    }

    .rules-content-scroll {
        gap: 16px;
        padding-right: 8px;
    }

    .rules-section-title {
        font-size: 1.15rem;
    }

    .rules-sub-title {
        font-size: 0.92rem;
        margin: 8px 0 2px 0;
    }

    .rules-text,
    .rules-bullet-list,
    .rules-tagline {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    /* LIMITS MODAL MOBILE LANDSCAPE OVERRIDES */
    .limits-modal-body {
        padding: 4px 12px;
    }

    .limits-img {
        max-width: 78%;
        max-height: calc(100vh - 110px);
    }

    /* EXIT CONFIRMATION MODAL MOBILE LANDSCAPE OVERRIDES */
    .exit-confirm-card {
        padding: 14px 16px;
        max-width: 310px;
        border-radius: 12px;
    }

    .exit-title {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .exit-subtext {
        font-size: 0.78rem;
        margin-bottom: 12px;
        max-width: 240px;
    }

    .exit-btn-image {
        height: 36px;
        max-width: 100px;
    }

    /* TURBO UNIVERSE MODAL MOBILE LANDSCAPE OVERRIDES */
    .profile-modal-body {
        padding: 4px 12px;
        justify-content: flex-start;
        align-items: center;
    }

    .profile-container {
        gap: 4px;
        max-width: 480px;
        width: 100%;
        min-height: calc(100vh - 85px);
        margin: 0 auto;
    }

    .profile-main-panel {
        gap: 4px;
        flex: 1;
        width: 100%;
    }

    .profile-turbo-logo {
        height: 28px;
        max-width: 70%;
        object-fit: contain;
        margin-bottom: 2px;
    }

    .profile-id-text {
        font-size: 0.68rem;
        word-break: break-all;
        margin-bottom: 2px;
    }

    .profile-card {
        padding: 8px 16px;
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }

    .profile-card-title {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .profile-badge-row {
        gap: 6px;
        margin-bottom: 4px;
    }

    .profile-rank-img {
        width: 30px;
        height: 30px;
    }

    .rating-details-label {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .rating-trophy-btn {
        padding: 4px 0;
    }

    .play-day-title {
        font-size: 0.88rem;
        margin-bottom: 2px;
    }

    .records-content-box {
        max-width: 460px;
        max-height: calc(100vh - 135px);
        gap: 4px;
        margin-top: 4px;
        padding-right: 4px;
    }

    .record-item-card {
        padding: 5px 10px;
        border-radius: 6px;
    }

    .record-rank {
        font-size: 0.78rem;
        width: 24px;
    }

    .record-player-info {
        gap: 1px;
        margin-left: 6px;
    }

    .record-player-name {
        font-size: 0.78rem;
    }

    .record-date-text {
        font-size: 0.62rem;
    }

    .record-stats-right {
        gap: 1px;
    }

    .record-multi-tag {
        font-size: 0.72rem;
        padding: 1px 6px;
        border-radius: 3px;
    }

    .record-win-val {
        font-size: 0.75rem;
    }

    .play-of-day-section {
        width: 100%;
        gap: 2px;
        margin-top: auto;
        padding-bottom: 2px;
    }

    .play-day-tabs {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .play-tab-btn {
        flex: 1;
        max-width: 100px;
        height: 34px;
        flex-direction: row;
        gap: 6px;
        font-size: 0.65rem;
        padding: 4px 8px;
        border-radius: 6px;
    }

    .play-tab-btn .tab-icon {
        font-size: 0.85rem;
    }
}

/* IPAD / TABLET LANDSCAPE SCREENS (max-width <= 1180px and min-height: 601px) */
@media (orientation: landscape) and (max-width: 1180px) and (min-height: 601px) {
    .top-header {
        height: 60px;
        min-height: 60px;
        padding: 0 20px;
    }

    .game-main {
        height: calc(100vh - 60px);
        padding: 10px 24px;
        gap: clamp(20px, 4vw, 40px);
    }

    .vortex-stage {
        width: min(48vw, 72vh, 480px);
        height: min(48vw, 72vh, 480px);
    }

    .control-panel {
        width: 300px;
        gap: 12px;
    }
}


/* =====================================================
   SERVER OFFLINE BANNER OVERLAY
   ===================================================== */
.server-offline-overlay {
    position: fixed;
    inset: 0;
    z-index: 99000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.server-offline-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.server-offline-card {
    background: linear-gradient(145deg, #1b2336 0%, #111824 100%);
    border: 1px solid rgba(255, 82, 82, 0.28);
    border-radius: 16px;
    padding: 22px 24px 20px;
    max-width: 240px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    box-shadow:
        0 0 0 1px rgba(255, 82, 82, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(255, 82, 82, 0.08);
    animation: offlineCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes offlineCardIn {
    from {
        transform: translateY(14px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offline-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ff6b6b;
    margin: 0;
    letter-spacing: 0.2px;
}

.offline-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
    margin: 0;
}

.offline-desc strong {
    color: #00e676;
    font-weight: 700;
}

.offline-demo-btn {
    margin-top: 4px;
    background: linear-gradient(135deg, #00b09b 0%, #00e676 100%);
    border: none;
    border-radius: 9px;
    padding: 9px 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #081812;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.3);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.offline-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 230, 118, 0.45);
    filter: brightness(1.07);
}

.offline-demo-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 230, 118, 0.25);
}

/* Responsive — landscape small screens */
@media (orientation: landscape) and (max-height: 500px) {
    .server-offline-card {
        padding: 14px 20px 14px;
        gap: 8px;
        max-width: 280px;
    }

    .offline-title {
        font-size: 0.95rem;
    }

    .offline-desc {
        font-size: 0.72rem;
    }

    .offline-demo-btn {
        padding: 7px 18px;
        font-size: 0.78rem;
    }
}

/* =====================================================
   SERVER CHECKING LOADER OVERLAY
   ===================================================== */
.server-check-overlay {
    position: fixed;
    inset: 0;
    z-index: 98000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.server-check-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.server-check-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.check-spinner-ring {
    width: 64px;
    height: 64px;
}

.check-spinner-svg {
    width: 64px;
    height: 64px;
    animation: checkSpinRotate 1.1s linear infinite;
}

@keyframes checkSpinRotate {
    to {
        transform: rotate(360deg);
    }
}

.check-spinner-track {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-linecap: round;
}

.check-spinner-arc {
    stroke: #00e676;
    stroke-linecap: round;
    stroke-dasharray: 80 126;
    stroke-dashoffset: 0;
}

.check-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    letter-spacing: 0.3px;
}

.check-dots span {
    display: inline-block;
    opacity: 0;
    animation: checkDotBlink 1.4s infinite;
}

.check-dots span:nth-child(1) {
    animation-delay: 0s;
}

.check-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.check-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes checkDotBlink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}