﻿/* HEADER */
 

.menu {
    font-size: 26px;
    color: #222;
}



.wallet {
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
}

/* PERIOD */
.period-box {
    position: relative;
    margin: 0 15px;
    padding: 18px 20px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    box-shadow: 0 12px 25px rgba(249,89,89,.25), inset 0 1px 1px rgba(255,255,255,.3);
    text-align: center;
}

    /* GLOW */

    .period-box::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,.12);
        border-radius: 50%;
    }

    .period-box::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 140px;
        height: 140px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
    }

/* LABEL */

.period-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* PERIOD NUMBER */

.period-number {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

/* DOTS */

.period-dots {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

    .period-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.7);
    }
/* TIMER */

.timer-section {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-coin {
    width: 90px;
    opacity: .15;
}
.timer {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fff;
    color: #f95959;
    box-shadow: 0 10px 25px rgba(249, 89, 89, 0.15);
}

    /* Smooth Rotating Ring */
    .timer svg {
        position: absolute;
        inset: 0;
        transform: rotate(-90deg);
    }

    .timer circle {
        fill: none;
        stroke-width: 10;
        stroke-linecap: round;
    }

    .timer .bg {
        stroke: #e5e5e5;
    }

    .timer .progress {
        stroke: #f95959;
        stroke-dasharray: 408;
        stroke-dashoffset: 0;
        transition: stroke-dashoffset 0.05s linear;
    }

    /* Content */
    .timer h1,
    .timer p {
        position: relative;
        z-index: 2;
    }

    .timer h1 {
        margin: 0;
        font-size: 42px;
        font-weight: 700;
    }

    .timer p {
        margin-top: 8px;
        color: #555;
        font-size: 12px;
        font-weight: 700;
    }

/* CARD */

.card {
    background: #fff;
    margin: 0 15px 20px;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 5px 30px rgba(0,0,0,.07);
    border: 1px solid #f1f1f1;
}


.title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.line {
    flex: 1;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, #ff867a, #f95959, transparent);
}

.titlerush {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f95959;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

    .title i {
        font-size: 18px;
        color: #ff867a;
    }

.result-coin {
    display: block;
    margin: auto;
}

.result-text {
    text-align: center;
    font-size: 58px;
    font-weight: 900;
    color: #f95959;
    margin-top: 15px;
}

.win-box {
    width: max-content;
    margin: 15px auto;
    padding: 10px 18px;
    border-radius: 12px;
    background: #fff2f2;
    color: #14a44d;
    font-weight: 700;
}

/* BET */

.bet-title {
    text-align: center;
    color: #f95959;
    font-size: 22px;
    font-weight: 800;
    margin-top: 25px;
}

.bet-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.bet-btn {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.bet-amount {
    width: 170px;
    height: 55px;
    border-radius: 14px;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.chips {
    display: flex;
    gap: 10px;
    overflow: auto;
    margin-top: 20px;
}



    .chips button {
        flex: 1 1 calc(25% - 10px); /* auto responsive */
        min-width: 60px;
        padding: 12px 8px;
        border-radius: 12px;
        border: 1px solid #ddd;
        background: #fff;
        font-size: clamp(14px, 3vw, 18px);
        font-weight: 700;
        text-align: center;
        transition: 0.3s;
    }

    .chips .active {
        background: linear-gradient(135deg,#16a34a,#22c55e);
        color: #fff;
        border: none;
        transform: scale(0.96);
    }

/* PLAY BUTTON */

.play-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.play-btn {
    flex: 1;
    border: none;
    border-radius: 18px;
    padding: 4px 10px;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

    .play-btn img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        transform: translateZ(0);
        flex-shrink: 0;
    }

/* HEAD BUTTON */

.head-btn {
    background: linear-gradient(180deg, #ffb347, #ff9800);
}

/* TAIL BUTTON */

.tail-btn {
    background: linear-gradient(180deg, #8e9eab, #5f6d7a);
}

/* HISTORY */

.history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .history-top h2 {
        font-size: 24px;
    }

.view {
    color: #f95959;
    font-weight: 800;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding-bottom: 12px;
    color: #999;
    font-size: 13px;
}

td {
    text-align: center;
    padding: 14px 5px;
    border-top: 1px solid #f2f2f2;
    font-weight: 700;
    font-size: 14px;
}

.green {
    color: #12b95a;
}

.red {
    color: #f95959;
}

/* BOTTOM NAV */

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
}

.nav {
    text-align: center;
    color: #999;
    font-size: 14px;
}

    .nav i {
        display: block;
        margin-bottom: 5px;
        font-size: 22px;
    }

.active-nav {
    color: #f95959;
    font-weight: 700;
}

::-webkit-scrollbar {
    display: none;
}

.wallet-card {
    margin: 15px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    border: 1px solid #f2f2f2;
}

/* LEFT */

.wallet-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ICON */

.wallet-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(249,89,89,.25);
}

/* TEXT */

.wallet-details span {
    display: block;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wallet-details h2 {
    color: #222;
    font-size: 22px;
    font-weight: 900;
}

/* BUTTON */

.add-money-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(249,89,89,.25);
}
/* ========================= */
/* POPUP */
/* ========================= */

.bet-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 999;
}

.bet-popup-content {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 32px 32px 0 0;
    padding: 20px 18px 15px;
    animation: popupUp .25s ease;
}

/* ANIMATION */

@keyframes popupUp {

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* HANDLE */

/* ========================= */
/* MODERN POPUP UI */
/* ========================= */

.bet-popup {
    position: fixed;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.65), rgba(0,0,0,.35));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* POPUP BODY */

.bet-popup-content {
    width: 100%;
    max-width: 430px;
    background: linear-gradient(180deg,#ffffff,#fafafa);
    border-radius: 34px 34px 0 0;
    padding: 16px 16px 22px;
    position: relative;
    overflow: hidden;
    animation: popupUp .25s ease;
    box-shadow: 0 -10px 35px rgba(0,0,0,.12);
}

    /* TOP GLOW */

    .bet-popup-content::before {
        content: '';
        position: absolute;
        top: -100px;
        left: -80px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,134,122,.18), transparent 70%);
    }

    .bet-popup-content::after {
        content: '';
        position: absolute;
        bottom: -120px;
        right: -80px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(249,89,89,.14), transparent 70%);
    }

/* ANIMATION */

@@keyframes popupUp {

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* HANDLE */

.popup-handle {
    width: 75px;
    height: 6px;
    border-radius: 50px;
    margin: auto auto 18px;
    background: linear-gradient(90deg, #ffd1cb, #f95959, #ffd1cb);
}

/* HEADER */

.popup-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg,#fff,#f9f9f9);
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

/* TITLE */

.popup-title {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CLOSE */

.popup-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(249,89,89,.22);
}

/* SIDE CARD */

.selected-side {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    border-radius: 28px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    color: #fff;
}

/* HEAD */

.head-side {
    background: linear-gradient(180deg,#ffb347,#ff9800);
    box-shadow: 0 12px 24px rgba(255,152,0,.24);
}

/* TAIL */

.tail-side {
    background: linear-gradient(180deg,#8e9eab,#5f6d7a);
    box-shadow: 0 12px 24px rgba(95,109,122,.22);
}

/* SIDE ICON */

.side-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

    .side-icon img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

/* SIDE TEXT */

.selected-side h2 {
    font-size: 30px;
    font-weight: 900;
}

.selected-side p {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    opacity: .9;
}

/* AMOUNT */

.bet-amount-box {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    text-align: center;
}

    .bet-amount-box span {
        color: #999;
        font-size: 15px;
        font-weight: 700;
    }

    .bet-amount-box h1 {
        margin-top: 6px;
        color: #222;
        font-size: 28px;
        font-weight: 900;
    }

/* QTY */

.qty-control {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

    .qty-control button {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 14px;
        background: linear-gradient(135deg,#16a34a,#22c55e);
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(249,89,89,.2);
    }

    /* INPUT */

    .qty-control input {
        width: 95px;
        height: 42px;
        border: none;
        border-radius: 16px;
        background: #fff;
        text-align: center;
        font-size: 22px;
        font-weight: 900;
        color: #222;
        outline: none;
        box-shadow: inset 0 2px 5px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
    }

/* CHIPS */

.popup-coins {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    overflow: auto;
    margin-top: 24px;
    padding-bottom: 5px;
}

/* CHIP */

.bet-chip {
    min-width: 78px;
    height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #f95959;
    transition: .2s;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
}

    /* ACTIVE CHIP */

    .bet-chip.active {
        background: linear-gradient(135deg,#16a34a,#22c55e);
        color: #fff;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(249,89,89,.22);
    }

/* ACTIONS */

.popup-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

    /* BUTTON */

    .popup-actions button {
        flex: 1;
        height: 50px;
        border: none;
        border-radius: 18px;
        font-size: 17px;
        font-weight: 800;
    }

/* CANCEL */

.cancel-btn {
    background: #f4f4f4;
    color: #666;
}

/* CONFIRM */

.confirm-btn {
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    box-shadow: 0 10px 20px rgb(34 197 94 / 26%);
}
/* ========================= */
/* HEAD POPUP THEME */
/* ========================= */

.head-side {
    background: linear-gradient(180deg,#ffb347,#ff9800);
}

/* HEAD BUTTON */

.confirm-btn.head-theme {
    background: linear-gradient(180deg,#ffb347,#ff9800);
    box-shadow: 0 10px 20px rgba(255,152,0,.25);
}

/* HEAD QTY BUTTON */

.head-theme .qty-control button {
    background: linear-gradient(180deg,#ffb347,#ff9800);
    box-shadow: 0 8px 18px rgba(255,152,0,.25);
}

/* HEAD ACTIVE CHIP */

.head-theme .bet-chip.active {
    background: linear-gradient(180deg,#ffb347,#ff9800);
    box-shadow: 0 10px 22px rgba(255,152,0,.25);
}

/* ========================= */
/* TAIL POPUP THEME */
/* ========================= */

.tail-side {
    background: linear-gradient(180deg,#8e9eab,#5f6d7a);
}

/* TAIL BUTTON */

.confirm-btn.tail-theme {
    background: linear-gradient(180deg,#8e9eab,#5f6d7a);
    box-shadow: 0 10px 20px rgba(95,109,122,.25);
}

/* TAIL QTY BUTTON */

.tail-theme .qty-control button {
    background: linear-gradient(180deg,#8e9eab,#5f6d7a);
    box-shadow: 0 8px 18px rgba(95,109,122,.25);
}

/* TAIL ACTIVE CHIP */

.tail-theme .bet-chip.active {
    background: linear-gradient(180deg,#8e9eab,#5f6d7a);
    box-shadow: 0 10px 22px rgba(95,109,122,.25);
}

.qty-control input {
    width: 90px;
    height: 42px;
    border: 2px solid #f1f1f1;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #222;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    transition: .2s;
}

    /* FOCUS */

    .qty-control input:focus {
        border-color: #f95959;
        box-shadow: 0 0 0 4px rgba(249,89,89,.08);
    }

    /* REMOVE ARROWS */

    .qty-control input::-webkit-outer-spin-button,
    .qty-control input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }


.timer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .timer-text span {
        width: 36px;
        height: 48px;
        border-radius: 14px;
        background: linear-gradient(180deg, #ff867a, #f95959);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 900;
        box-shadow: 0 8px 18px rgba(249, 89, 89, .22);
    }

/* ========================= */
/* HEAD TAIL TIMER */
/* ========================= */

.ht-timer-box {
    gap: 8px;
    width: 100%;
    max-width: 400px;
    height: 280px;
    background: rgba(0, 0, 0, .6);
    position: absolute;
    z-index: 99;
    top: 50%;
    color: #fff;
    border-radius: .26667rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

/* DIGIT */
.ht-timer-digit { 
    border-radius: 16px; 
    color: #fff; 
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(249, 89, 89, .22);
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: .4rem;
    padding: 0 .4rem;
    background-image: -webkit-linear-gradient(0deg, #f95959, #f95959 20%, #ff9a8e);
    background-image: linear-gradient(90deg, #f95959 0%, #ff9a8e 100%);
    font-weight: 700;
    font-size: 3.73333rem;
}

    /* TOP LIGHT */

    .ht-timer-digit::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient( to bottom, rgba(255,255,255,.22), transparent);
    }

    /* INNER LINE */

    .ht-timer-digit::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 8px;
        right: 8px;
        height: 1px;
        background: rgba(255,255,255,.15);
    }



/* ========================= */
/* SIMPLE REALISTIC FLIP */
/* ========================= */

.coin-result-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    perspective: 1000px;
}

/* COIN */

.result-coin { 
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,.18));
}

    /* FLIP */

    .result-coin.flip {
        animation: realFlip 5s linear;
    }

/* ========================= */
/* ANIMATION */
/* ========================= */

@keyframes realFlip {

    0% {
        transform: rotateY(0deg) translateY(0);
    }

    10% {
        transform: rotateY(360deg) translateY(-20px);
    }

    20% {
        transform: rotateY(720deg) translateY(-40px);
    }

    30% {
        transform: rotateY(1080deg) translateY(-55px);
    }

    40% {
        transform: rotateY(1440deg) translateY(-65px);
    }

    50% {
        transform: rotateY(1800deg) translateY(-70px);
    }

    60% {
        transform: rotateY(2160deg) translateY(-60px);
    }

    70% {
        transform: rotateY(2520deg) translateY(-45px);
    }

    80% {
        transform: rotateY(2880deg) translateY(-28px);
    }

    90% {
        transform: rotateY(3240deg) translateY(-12px);
    }

    100% {
        transform: rotateY(3600deg) translateY(0);
    }
}

/* ========================= */
/* RESULT BOX */
/* ========================= */

.coin-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 14px;
    width: max-content;
    max-height: 35px;
    min-width: 100px;
}

    /* IMAGE */

    .coin-result img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    /* TEXT */

    .coin-result span {
        font-size: 14px;
        font-weight: 800;
        letter-spacing: .5px;
    }

    /* HEAD */

    .coin-result.head {
        background: linear-gradient(180deg,#ffb347,#ff9800);
        box-shadow: 0 6px 14px rgba(255,152,0,.18);
    }

        .coin-result.head span {
            color: #fff;
        }

    /* TAIL */

    .coin-result.tail {
        background: linear-gradient(180deg,#8e9eab,#5f6d7a);
        box-shadow: 0 6px 14px rgba(95,109,122,.18);
    }

        .coin-result.tail span {
            color: #fff;
        }

.MyGameRecordList__C-item-l-head[data-v-373b3197] {
    background: #ffad38;
    font-size: .32rem;
}

.MyGameRecordList__C-item-l-tail[data-v-373b3197] {
    background: #6f7e8b;
    font-size: .32rem;
}



/* ======================================== */
/* OVERLAY */
/* ======================================== */

.WinningTip__C {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px; 
   
    z-index: 99999;
}

/* ======================================== */
/* MAIN CARD */
/* ======================================== */

.winning-card {
    backdrop-filter: blur(6px);
    background: rgb(0 0 0 / 86%);
    position: relative;
    width: 100%;
    max-width: 380px;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    padding: 28px 22px 24px;
    text-align: center;
    box-sizing: border-box;
    animation: popupShow .28s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

/* ======================================== */
/* THEMES */
/* ======================================== */

.headTheme {
    background: linear-gradient( 180deg, #ffd27d 0%, #ffb347 35%, #ff9800 100% );
}

.tailTheme {
    background: linear-gradient( 180deg, #b3bcc4 0%, #8e9eab 35%, #5f6d7a 100% );
}

/* ======================================== */
/* GLOW EFFECT */
/* ======================================== */

.top-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    filter: blur(10px);
}

/* ======================================== */
/* CLOSE BUTTON */
/* ======================================== */

.close-win {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(5px);
    transition: .2s;
}

    .close-win:active {
        transform: scale(.92);
    }

/* ======================================== */
/* COIN SECTION */
/* ======================================== */

.coin-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 10px auto 0;
}

/* RING */

.coin-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px dashed rgba(255,255,255,.35);
    animation: spinRing 10s linear infinite;
}

/* COIN IMAGE */

.coin-wrap img {
    position: absolute;
    inset: 18px;
    width: 124px;
    height: 124px;
    object-fit: contain;
    animation: coinBounce 1s infinite alternate;
}

/* ======================================== */
/* RESULT BADGE */
/* ======================================== */

.result-badge {
    width: max-content;
    margin: 18px auto 0;
    padding: 10px 28px;
    border-radius: 50px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

/* ======================================== */
/* TITLE */
/* ======================================== */

.congratText {
    margin-top: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ======================================== */
/* WIN BOX */
/* ======================================== */

.win-amount-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
}

    /* LABEL */

    .win-amount-box span {
        color: rgba(255,255,255,.82);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    /* AMOUNT */

    .win-amount-box h1 {
        margin-top: 10px;
        color: #fff;
        font-size: 52px;
        font-weight: 900;
        text-shadow: 0 6px 15px rgba(0,0,0,.18);
    }

/* ======================================== */
/* PERIOD */
/* ======================================== */

.period-pill {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    line-height: 1.5;
}

/* ======================================== */
/* BUTTON */
/* ======================================== */

.claim-btn {
    width: 100%;
    height: 56px;
    margin-top: 28px;
    border: none;
    border-radius: 20px;
    background: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

    .claim-btn:active {
        transform: scale(.97);
    }

/* BUTTON COLORS */

.headTheme .claim-btn {
    color: #ff9800;
}

.tailTheme .claim-btn {
    color: #5f6d7a;
}

/* ======================================== */
/* ANIMATIONS */
/* ======================================== */

@keyframes popupShow {

    from {
        opacity: 0;
        transform: scale(.75) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spinRing {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes coinBounce {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

/* ======================================== */
/* MOBILE */
/* ======================================== */

@media(max-width:480px) {

    .winning-card {
        max-width: 100%;
        min-height: auto;
        border-radius: 30px;
    }

    .coin-wrap {
        width: 140px;
        height: 140px;
    }

        .coin-wrap img {
            inset: 16px;
            width: 108px;
            height: 108px;
        }

    .result-badge {
        font-size: 28px;
    }

    .congratText {
        font-size: 24px;
    }

    .win-amount-box h1 {
        font-size: 44px;
    }
}