/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    width: 100%;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 50% 20%,
            #3b1268 0%,
            #190833 38%,
            #090316 100%
        );

    overflow-x: hidden;
}


/* =====================================================
   BACKGROUND
===================================================== */

.background-effects {
    position: fixed;
    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 0;
}

.glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.20;
}

.glow-1 {
    top: -250px;
    left: -200px;

    background: #ff1595;
}

.glow-2 {
    right: -250px;
    top: 20%;

    background: #763cff;
}

.glow-3 {
    left: 30%;
    bottom: -350px;

    background: #b928ff;
}

.stars {
    position: absolute;
    inset: 0;
}

.stars span {
    position: absolute;

    color: #ffd83d;

    opacity: 0.65;

    animation: twinkle 2s infinite alternate;
}

.stars span:nth-child(1) {
    top: 8%;
    left: 8%;
}

.stars span:nth-child(2) {
    top: 18%;
    left: 85%;
}

.stars span:nth-child(3) {
    top: 35%;
    left: 5%;
}

.stars span:nth-child(4) {
    top: 48%;
    right: 8%;
}

.stars span:nth-child(5) {
    top: 70%;
    left: 12%;
}

.stars span:nth-child(6) {
    top: 80%;
    right: 15%;
}

.stars span:nth-child(7) {
    top: 12%;
    left: 48%;
}

.stars span:nth-child(8) {
    top: 60%;
    left: 45%;
}

.stars span:nth-child(9) {
    top: 90%;
    left: 70%;
}

.stars span:nth-child(10) {
    top: 40%;
    left: 70%;
}

@keyframes twinkle {
    from {
        opacity: 0.25;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}


/* =====================================================
   HEADER
===================================================== */

.top-header {
    position: relative;
    z-index: 5;

    width: 100%;

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 28px;

    background:
        linear-gradient(
            90deg,
            #ff1595,
            #a83cf4,
            #724cff
        );

    border-bottom:
        2px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 27px;

    background:
        linear-gradient(
            145deg,
            #ffd936,
            #ff8d00
        );

    border: 2px solid #fff;

    box-shadow:
        0 0 20px rgba(255, 202, 45, 0.7);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-text strong {
    font-size: 25px;
    font-weight: 1000;
    letter-spacing: 1px;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 15px;

    border-radius: 14px;

    background: rgba(0, 0, 0, 0.22);
}

.user-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #a92aff,
            #5b22c8
        );
}

.user-label {
    display: block;

    font-size: 9px;

    opacity: 0.7;

    letter-spacing: 1.5px;
}

.user-info strong {
    font-size: 14px;
}

.top-balance {
    min-width: 130px;

    padding: 10px 18px;

    text-align: center;

    border-radius: 14px;

    background:
        rgba(0, 0, 0, 0.25);

    border:
        1px solid rgba(255, 255, 255, 0.2);
}

.top-balance span {
    display: block;

    font-size: 9px;

    opacity: 0.7;

    letter-spacing: 1px;
}

.top-balance strong {
    display: block;

    margin-top: 2px;

    color: #ffd63d;

    font-size: 25px;

    font-weight: 1000;

    text-shadow:
        0 0 12px rgba(255, 214, 61, 0.8);
}


/* =====================================================
   MAIN
===================================================== */

.main-container {
    position: relative;
    z-index: 2;

    width: min(1500px, 100%);

    margin: 0 auto;

    min-height: calc(100vh - 150px);

    padding: 30px 25px 100px;

    display: grid;

    grid-template-columns:
        190px
        minmax(450px, 1fr)
        290px;

    gap: 28px;

    align-items: start;
}


/* =====================================================
   LEFT PANEL
===================================================== */

.left-panel {
    width: 100%;
}

.menu-card {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.menu-item {
    width: 100%;

    min-height: 55px;

    border: 0;

    border-radius: 15px;

    color: #fff;

    cursor: pointer;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 16px;

    font-size: 14px;
    font-weight: 800;

    text-align: left;

    background:
        linear-gradient(
            100deg,
            rgba(255, 20, 145, 0.95),
            rgba(119, 66, 255, 0.95)
        );

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s,
        filter 0.2s;
}

.menu-item:hover {
    transform: translateX(4px);
    filter: brightness(1.15);
}

.menu-item.active {
    border:
        2px solid #ffd633;
}

.menu-icon {
    font-size: 18px;
}

.info-card {
    margin-top: 25px;

    padding: 20px 15px;

    text-align: center;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(102, 29, 173, 0.65),
            rgba(39, 9, 70, 0.8)
        );

    border:
        1px solid rgba(255, 255, 255, 0.15);
}

.info-card-icon {
    font-size: 30px;

    margin-bottom: 8px;
}

.info-card strong {
    color: #ffd83c;

    font-size: 15px;
}

.info-card p {
    margin-top: 8px;

    color: #d8c8e9;

    font-size: 11px;

    line-height: 1.5;
}


/* =====================================================
   CENTER GAME
===================================================== */

.spin-section {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
}

.game-title {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 15px;

    text-align: center;
}

.title-line {
    flex: 1;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #c03cff,
            transparent
        );
}

.title-content {
    flex-shrink: 0;
}

.title-small {
    font-size: 10px;

    font-weight: 800;

    color: #ffd83c;

    letter-spacing: 2px;
}

.game-title h1 {
    margin-top: 4px;

    font-size: clamp(38px, 5vw, 70px);

    line-height: 0.9;

    font-weight: 1000;

    letter-spacing: -2px;

    color: #fff;

    text-shadow:
        0 4px 0 #6320a3,
        0 0 25px rgba(255, 255, 255, 0.25);
}

.game-title h1 span {
    color: #ff3cac;

    text-shadow:
        0 0 20px rgba(255, 60, 172, 0.7);
}

.game-title p {
    margin-top: 9px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;

    color: #d9bfff;
}


/* =====================================================
   WHEEL AREA
===================================================== */

.wheel-area {
    position: relative;

    width: 100%;

    margin-top: 25px;

    display: flex;
    flex-direction: column;

    align-items: center;
}


/* =====================================================
   WHEEL
===================================================== */

.wheel-frame {
    position: relative;

    width: min(70vw, 560px);

    aspect-ratio: 1 / 1;

    padding: 13px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #ff4eb4,
            #9a38ff,
            #ff47b7
        );

    box-shadow:
        0 0 0 3px #ffdc39,
        0 0 25px rgba(193, 61, 255, 0.8),
        0 0 70px rgba(190, 50, 255, 0.35);

    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-frame::before {
    content: "";

    position: absolute;

    inset: 6px;

    border-radius: 50%;

    border:
        3px dotted #ffd83c;

    z-index: 5;

    pointer-events: none;
}

.wheel {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    overflow: hidden;

    background:
        conic-gradient(
            from -11.25deg,

            #f23ba7 0deg 22.5deg,
            #ff9dd0 22.5deg 45deg,

            #f23ba7 45deg 67.5deg,
            #ff9dd0 67.5deg 90deg,

            #f23ba7 90deg 112.5deg,
            #ff9dd0 112.5deg 135deg,

            #f23ba7 135deg 157.5deg,
            #ff9dd0 157.5deg 180deg,

            #f23ba7 180deg 202.5deg,
            #ff9dd0 202.5deg 225deg,

            #f23ba7 225deg 247.5deg,
            #ff9dd0 247.5deg 270deg,

            #f23ba7 270deg 292.5deg,
            #ff9dd0 292.5deg 315deg,

            #f23ba7 315deg 337.5deg,
            #ff9dd0 337.5deg 360deg
        );

    border:
        4px solid #7d24dc;

    box-shadow:
        inset 0 0 35px rgba(55, 0, 100, 0.45);

    transition:
        transform 5s cubic-bezier(
            0.12,
            0.75,
            0.18,
            1
        );
}


/* =====================================================
   WHEEL LABELS
===================================================== */

.wheel-segment {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 85px;
    height: 35px;

    margin-left: -42px;
    margin-top: -17px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;

    font-weight: 1000;

    color: #fff;

    text-align: center;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8);

    transform-origin: center center;

    z-index: 2;
}


/* 16 positions */

.segment-1 {
    transform: translateY(-205px);
}

.segment-2 {
    transform: rotate(22.5deg) translateY(-205px) rotate(-22.5deg);
}

.segment-3 {
    transform: rotate(45deg) translateY(-205px) rotate(-45deg);
}

.segment-4 {
    transform: rotate(67.5deg) translateY(-205px) rotate(-67.5deg);
}

.segment-5 {
    transform: rotate(90deg) translateY(-205px) rotate(-90deg);
}

.segment-6 {
    transform: rotate(112.5deg) translateY(-205px) rotate(-112.5deg);
}

.segment-7 {
    transform: rotate(135deg) translateY(-205px) rotate(-135deg);
}

.segment-8 {
    transform: rotate(157.5deg) translateY(-205px) rotate(-157.5deg);
}

.segment-9 {
    transform: rotate(180deg) translateY(-205px) rotate(-180deg);
}

.segment-10 {
    transform: rotate(202.5deg) translateY(-205px) rotate(-202.5deg);
}

.segment-11 {
    transform: rotate(225deg) translateY(-205px) rotate(-225deg);
}

.segment-12 {
    transform: rotate(247.5deg) translateY(-205px) rotate(-247.5deg);
}

.segment-13 {
    transform: rotate(270deg) translateY(-205px) rotate(-270deg);
}

.segment-14 {
    transform: rotate(292.5deg) translateY(-205px) rotate(-292.5deg);
}

.segment-15 {
    transform: rotate(315deg) translateY(-205px) rotate(-315deg);
}

.segment-16 {
    transform: rotate(337.5deg) translateY(-205px) rotate(-337.5deg);
}


/* =====================================================
   WHEEL CENTER
===================================================== */

.wheel-center {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 145px;
    height: 145px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 35% 25%,
            #9e85ff,
            #5832db 65%,
            #35149e
        );

    border:
        7px solid #f3c6ff;

    box-shadow:
        0 0 0 6px #5820b5,
        0 0 30px rgba(255, 103, 223, 0.7);

    z-index: 10;
}

.center-crown {
    font-size: 28px;

    margin-bottom: 2px;
}

.wheel-center strong {
    font-size: 15px;
}

.wheel-center span {
    color: #ffd83c;

    font-size: 12px;

    font-weight: 1000;

    letter-spacing: 2px;
}


/* =====================================================
   POINTER
===================================================== */

.wheel-pointer {
    position: absolute;

    top: -7px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 30;

    color: #ffd83c;

    font-size: 35px;

    line-height: 1;

    text-shadow:
        0 0 10px #ff9e00;
}


/* =====================================================
   COINS
===================================================== */

.coin {
    position: absolute;

    z-index: 15;

    font-size: 30px;

    filter:
        drop-shadow(
            0 0 8px
            rgba(255, 195, 40, 0.7)
        );
}

.coin-1 {
    left: 5%;
    top: 15%;
}

.coin-2 {
    right: 6%;
    top: 22%;
}

.coin-3 {
    left: 9%;
    bottom: 22%;
}

.coin-4 {
    right: 8%;
    bottom: 15%;
}


/* =====================================================
   SPIN BUTTON
===================================================== */

.spin-button {
    position: relative;

    width: min(90%, 420px);

    min-height: 100px;

    margin-top: 25px;

    border-radius: 28px;

    border:
        6px solid #ffd62f;

    cursor: pointer;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #b72cf4,
            #6318b9
        );

    box-shadow:
        0 0 25px rgba(218, 41, 255, 0.7),
        inset 0 0 25px rgba(255, 255, 255, 0.12);

    transition:
        transform 0.15s,
        filter 0.15s;
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.03);

    filter: brightness(1.15);
}

.spin-button:active:not(:disabled) {
    transform: scale(0.98);
}

.spin-button:disabled {
    cursor: not-allowed;

    opacity: 0.65;
}

.spin-text {
    display: block;

    font-size: clamp(28px, 4vw, 48px);

    line-height: 1;

    font-weight: 1000;

    text-shadow:
        0 4px 0 #64249d,
        0 0 15px rgba(255, 255, 255, 0.4);
}

.spin-cost {
    position: absolute;

    left: 50%;
    bottom: -18px;

    transform:
        translateX(-50%);

    min-width: 120px;

    padding: 8px 18px;

    border-radius: 20px;

    background: #13052d;

    border:
        3px solid #a83cff;

    color: #fff;

    font-size: 12px;

    font-weight: 1000;
}


/* =====================================================
   BALANCE
===================================================== */

.current-balance {
    margin-top: 35px;

    text-align: center;
}

.balance-label {
    display: block;

    color: #cbb4dc;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}

.current-balance strong {
    display: inline-block;

    margin-top: 3px;

    color: #ffd83c;

    font-size: 28px;

    font-weight: 1000;

    text-shadow:
        0 0 15px rgba(255, 214, 61, 0.7);
}


/* =====================================================
   MESSAGE
===================================================== */

.message {
    width: min(90%, 550px);

    margin-top: 20px;

    padding: 12px 18px;

    border-radius: 12px;

    text-align: center;

    font-size: 13px;

    background:
        rgba(57, 15, 90, 0.9);

    border:
        1px solid #a944e8;

    opacity: 0;

    transform:
        translateY(-10px);

    pointer-events: none;

    transition:
        opacity 0.25s,
        transform 0.25s;
}

.message.show {
    opacity: 1;

    transform:
        translateY(0);
}

.message.error {
    border-color: #ff3b6b;

    color: #ff9ab4;
}

.message.success {
    border-color: #39ff88;

    color: #8affb7;
}


/* =====================================================
   RIGHT PANEL
===================================================== */

.right-panel {
    width: 100%;
}

.claim-card,
.balance-card,
.reward-card {
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(72, 22, 111, 0.85),
            rgba(24, 7, 47, 0.95)
        );

    border:
        1px solid rgba(190, 93, 255, 0.35);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3);
}

.claim-card {
    padding: 22px;
}

.claim-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 22px;
}

.claim-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ff30a4,
            #8039ff
        );

    font-size: 22px;
}

.claim-header span {
    display: block;

    font-size: 9px;

    color: #c8b2d9;

    letter-spacing: 2px;
}

.claim-header h2 {
    margin-top: 2px;

    font-size: 18px;
}

.claim-card label {
    display: block;

    margin: 13px 0 7px;

    color: #c9b0da;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;

    top: 50%;
    left: 13px;

    transform:
        translateY(-50%);

    font-size: 15px;

    z-index: 2;
}

.input-wrapper input {
    width: 100%;

    height: 48px;

    padding:
        0 14px 0 42px;

    border-radius: 12px;

    outline: none;

    border:
        1px solid #7634a8;

    background:
        #17072e;

    color: #fff;

    font-size: 13px;
}

.input-wrapper input:focus {
    border-color: #d74cff;

    box-shadow:
        0 0 0 3px rgba(215, 76, 255, 0.12);
}

.input-wrapper input::placeholder {
    color: #755f85;
}

.claim-button {
    width: 100%;

    min-height: 50px;

    margin-top: 18px;

    border: 0;

    border-radius: 13px;

    cursor: pointer;

    color: #fff;

    font-size: 13px;

    font-weight: 1000;

    background:
        linear-gradient(
            90deg,
            #ff1595,
            #9c3df3,
            #693cff
        );

    box-shadow:
        0 8px 20px rgba(173, 42, 255, 0.35);

    transition:
        transform 0.2s,
        filter 0.2s;
}

.claim-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.12);
}

.claim-button:disabled {
    opacity: 0.6;

    cursor: wait;
}

.claim-note {
    margin-top: 12px;

    text-align: center;

    color: #806d90;

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
   BALANCE CARD
===================================================== */

.balance-card {
    margin-top: 15px;

    padding: 18px;
}

.balance-card-top {
    display: flex;

    justify-content: space-between;

    color: #aa91bb;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.balance-number {
    margin-top: 10px;

    display: flex;

    align-items: baseline;

    gap: 7px;
}

.balance-number strong {
    color: #ffd83c;

    font-size: 40px;

    font-weight: 1000;
}

.balance-number span {
    color: #c7b2d3;

    font-size: 12px;
}

.balance-bar {
    height: 7px;

    margin-top: 10px;

    border-radius: 20px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.08);
}

.balance-bar-fill {
    width: 65%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #ff1595,
            #a13cff,
            #6b43ff
        );
}


/* =====================================================
   REWARD CARD
===================================================== */

.reward-card {
    margin-top: 15px;

    padding: 16px;

    display: flex;

    gap: 12px;

    align-items: center;
}

.reward-icon {
    font-size: 28px;
}

.reward-content strong {
    color: #ffd83c;

    font-size: 12px;
}

.reward-content p {
    margin-top: 4px;

    color: #a994b8;

    font-size: 10px;

    line-height: 1.4;
}


/* =====================================================
   BOTTOM BAR
===================================================== */

.bottom-bar {
    position: fixed;

    z-index: 20;

    bottom: 0;

    left: 0;

    width: 100%;

    min-height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 30px;

    padding: 10px 20px;

    background:
        rgba(12, 3, 26, 0.92);

    border-top:
        1px solid rgba(192, 78, 255, 0.3);

    backdrop-filter:
        blur(12px);
}

.footer-item {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #d7c5e1;

    font-size: 10px;

    letter-spacing: 1px;
}

.footer-item span {
    font-size: 16px;
}

.footer-divider {
    width: 1px;

    height: 25px;

    background:
        rgba(255, 255, 255, 0.15);
}


/* =====================================================
   MODALS
===================================================== */

.modal {
    position: fixed;

    z-index: 100;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(5, 0, 15, 0.82);

    backdrop-filter:
        blur(8px);
}

.modal-box {
    position: relative;

    z-index: 2;

    width: min(440px, 100%);

    padding: 35px 25px;

    border-radius: 25px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #32105a,
            #130522
        );

    border:
        2px solid #b93cff;

    box-shadow:
        0 0 50px rgba(192, 58, 255, 0.45);
}

.modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: 0;

    border-radius: 50%;

    cursor: pointer;

    color: #fff;

    background:
        rgba(255, 255, 255, 0.08);

    font-size: 22px;
}

.modal-crown {
    font-size: 50px;
}

.winner-stars {
    margin-top: 5px;

    color: #ffd83c;

    font-size: 20px;
}

.modal-small-title {
    display: block;

    margin-top: 10px;

    color: #ffd83c;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}

.modal-box h2 {
    margin-top: 5px;

    font-size: 32px;

    font-weight: 1000;
}

.prize-text {
    margin-top: 20px;

    padding: 15px;

    border-radius: 15px;

    color: #ffd83c;

    background:
        rgba(255, 216, 60, 0.08);

    border:
        1px solid rgba(255, 216, 60, 0.35);

    font-size: 25px;

    font-weight: 1000;

    text-shadow:
        0 0 15px rgba(255, 216, 60, 0.5);
}

.modal-description {
    margin-top: 14px;

    color: #bda9c9;

    font-size: 12px;
}

.modal-button {
    min-width: 150px;

    min-height: 45px;

    margin-top: 22px;

    border: 0;

    border-radius: 12px;

    cursor: pointer;

    color: #fff;

    background:
        linear-gradient(
            90deg,
            #ff1595,
            #773cff
        );

    font-weight: 900;
}

.info-content h2 {
    color: #ffd83c;

    font-size: 25px;
}

.info-content p {
    margin-top: 16px;

    color: #d3c2df;

    font-size: 13px;

    line-height: 1.6;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .main-container {
        grid-template-columns:
            150px
            minmax(350px, 1fr)
            250px;

        gap: 18px;

        padding-left: 15px;
        padding-right: 15px;
    }

    .wheel-frame {
        width: min(60vw, 480px);
    }

    .wheel-segment {
        font-size: 8px;
    }

    .segment-1,
    .segment-2,
    .segment-3,
    .segment-4,
    .segment-5,
    .segment-6,
    .segment-7,
    .segment-8,
    .segment-9,
    .segment-10,
    .segment-11,
    .segment-12,
    .segment-13,
    .segment-14,
    .segment-15,
    .segment-16 {
        --wheel-radius: 175px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    body {
        padding-bottom: 75px;
    }

    .top-header {
        min-height: auto;

        padding: 12px 14px;

        flex-wrap: wrap;

        gap: 10px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;

        font-size: 22px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .user-panel {
        width: 100%;

        justify-content: space-between;
    }

    .user-info {
        flex: 1;
    }

    .top-balance {
        min-width: 110px;
    }

    .main-container {
        display: flex;

        flex-direction: column;

        width: 100%;

        padding:
            20px 12px 30px;

        gap: 18px;
    }

    .left-panel {
        order: 2;
    }

    .spin-section {
        order: 1;

        width: 100%;
    }

    .right-panel {
        order: 3;

        width: 100%;
    }

    .menu-card {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }

    .menu-item {
        min-height: 48px;

        justify-content: center;

        padding: 8px;

        font-size: 11px;

        text-align: center;
    }

    .info-card {
        display: none;
    }

    .game-title {
        gap: 8px;
    }

    .title-line {
        display: none;
    }

    .title-small {
        font-size: 8px;
    }

    .game-title h1 {
        font-size:
            clamp(42px, 14vw, 65px);
    }

    .game-title p {
        font-size: 9px;

        letter-spacing: 2px;
    }

    .wheel-frame {
        width:
            min(
                calc(100vw - 32px),
                440px
            );

        padding: 9px;
    }

    .wheel-center {
        width: 105px;
        height: 105px;

        border-width: 5px;
    }

    .center-crown {
        font-size: 20px;
    }

    .wheel-center strong {
        font-size: 11px;
    }

    .wheel-center span {
        font-size: 9px;
    }

    .wheel-segment {
        width: 60px;
        height: 25px;

        margin-left: -30px;
        margin-top: -12px;

        font-size: 7px;
    }

    .segment-1,
    .segment-2,
    .segment-3,
    .segment-4,
    .segment-5,
    .segment-6,
    .segment-7,
    .segment-8,
    .segment-9,
    .segment-10,
    .segment-11,
    .segment-12,
    .segment-13,
    .segment-14,
    .segment-15,
    .segment-16 {
        transform:
            rotate(
                calc(
                    (var(--i, 0)) * 22.5deg
                )
            )
            translateY(-150px);
    }

    .segment-1 {
        transform: translateY(-150px);
    }

    .segment-2 {
        transform:
            rotate(22.5deg)
            translateY(-150px)
            rotate(-22.5deg);
    }

    .segment-3 {
        transform:
            rotate(45deg)
            translateY(-150px)
            rotate(-45deg);
    }

    .segment-4 {
        transform:
            rotate(67.5deg)
            translateY(-150px)
            rotate(-67.5deg);
    }

    .segment-5 {
        transform:
            rotate(90deg)
            translateY(-150px)
            rotate(-90deg);
    }

    .segment-6 {
        transform:
            rotate(112.5deg)
            translateY(-150px)
            rotate(-112.5deg);
    }

    .segment-7 {
        transform:
            rotate(135deg)
            translateY(-150px)
            rotate(-135deg);
    }

    .segment-8 {
        transform:
            rotate(157.5deg)
            translateY(-150px)
            rotate(-157.5deg);
    }

    .segment-9 {
        transform:
            rotate(180deg)
            translateY(-150px)
            rotate(-180deg);
    }

    .segment-10 {
        transform:
            rotate(202.5deg)
            translateY(-150px)
            rotate(-202.5deg);
    }

    .segment-11 {
        transform:
            rotate(225deg)
            translateY(-150px)
            rotate(-225deg);
    }

    .segment-12 {
        transform:
            rotate(247.5deg)
            translateY(-150px)
            rotate(-247.5deg);
    }

    .segment-13 {
        transform:
            rotate(270deg)
            translateY(-150px)
            rotate(-270deg);
    }

    .segment-14 {
        transform:
            rotate(292.5deg)
            translateY(-150px)
            rotate(-292.5deg);
    }

    .segment-15 {
        transform:
            rotate(315deg)
            translateY(-150px)
            rotate(-315deg);
    }

    .segment-16 {
        transform:
            rotate(337.5deg)
            translateY(-150px)
            rotate(-337.5deg);
    }

    .coin {
        font-size: 20px;
    }

    .spin-button {
        width: 90%;

        min-height: 82px;

        border-width: 4px;

        border-radius: 22px;
    }

    .spin-text {
        font-size: 32px;
    }

    .spin-cost {
        bottom: -15px;

        min-width: 95px;

        padding: 6px 12px;

        font-size: 10px;
    }

    .right-panel {
        display: flex;

        flex-direction: column;
    }

    .claim-card {
        width: 100%;
    }

    .bottom-bar {
        gap: 10px;

        min-height: 58px;

        padding:
            8px 10px;
    }

    .footer-item {
        font-size: 8px;

        letter-spacing: 0;
    }

    .footer-divider {
        height: 18px;
    }

}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 480px) {

    .brand-text {
        display: none;
    }

    .top-header {
        justify-content: center;
    }

    .user-panel {
        width: 100%;
    }

    .user-info {
        padding: 7px 10px;
    }

    .top-balance {
        min-width: 100px;

        padding:
            8px 10px;
    }

    .top-balance strong {
        font-size: 21px;
    }

    .menu-card {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .menu-item {
        font-size: 10px;
    }

    .wheel-frame {
        width:
            calc(100vw - 24px);
    }

    .wheel-pointer {
        font-size: 27px;

        top: -4px;
    }

    .spin-button {
        width: 95%;
    }

    .spin-text {
        font-size: 28px;
    }

    .current-balance {
        margin-top: 28px;
    }

    .footer-item strong {
        display: none;
    }

    .footer-item span {
        font-size: 19px;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

button:focus-visible,
input:focus-visible {
    outline:
        3px solid #ffd83c;

    outline-offset: 3px;
}