* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background-color: #1a0b2e;
    font-family: 'Nunito', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Game Container */
#game-container {
    width: 100%;
    max-width: 430px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #382d6b 0%, #1e133c 100%);
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
    opacity: 0.6;
}

.ferris-stand {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -10px);
    width: clamp(100px, 30vw, 150px);
    height: clamp(180px, 60vh, 250px);
    background-image: linear-gradient(to right, transparent 40%, rgba(139, 69, 19, 0.8) 40%, rgba(139, 69, 19, 0.8) 60%, transparent 60%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 1;
    opacity: 0.8;
}

/* Top Bar */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    z-index: 10;
    position: relative;
}

.balance-area {
    display: flex;
    align-items: center;
    background: rgba(10, 0, 30, 0.6);
    border: 1.5px solid #FFD700;
    border-radius: 20px;
    padding: 2px 10px 2px 5px;
    gap: 6px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.coin-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

#balance {
    font-family: 'Fredoka One', cursive;
    color: #FFD700;
    font-size: 15px;
    margin-right: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-info {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-info {
    background: transparent;
    border: 1.5px solid #FFD700;
    color: #FFD700;
    font-family: 'Fredoka One', cursive;
    font-size: 12px;
}

.top-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 0, 30, 0.5);
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.icon-btn.close {
    background: rgba(180, 10, 10, 0.6);
    border-color: rgba(255, 50, 50, 0.4);
}

.profile-badge {
    position: absolute;
    top: 60px;
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.trophy {
    font-size: 35px;
    filter: drop-shadow(0 2px 5px rgba(255, 215, 0, 0.5));
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.profile-badge span {
    font-size: 11px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 1px 2px #000;
    margin-top: -5px;
}

/* Ferris Wheel Area */
#ferris-wheel-area {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 10px 0;
    min-height: 0;
    /* Allow shrinking in flex container */
}

#wheel-structure {
    width: min(340px, 88vw);
    height: min(340px, 88vw);
    position: relative;
}

/* Wheel lines connecting cabins */
#wheel-structure::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 4px solid rgba(200, 100, 50, 0.4);
    z-index: 0;
}

.spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 4px;
    background: rgba(200, 100, 50, 0.4);
    transform-origin: center center;
    z-index: 0;
}

/* Fixed Cabins Container */
#wheel-cabins {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Cabins */
.cabin {
    position: absolute;
    width: min(75px, 19.5vw);
    height: min(75px, 19.5vw);
    border-radius: 50%;
    background: radial-gradient(circle, #FFFDE7, #FFF59D);
    border: 4px solid #F44336;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: calc(min(75px, 19.5vw) / -2);
    margin-top: calc(min(75px, 19.5vw) / -2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.1s;
    z-index: 2;
}

.cabin:active {
    transform: scale(0.9);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Highlight for marquee spinning */
.cabin.highlight {
    border-color: #FFEB3B;
    box-shadow: 0 0 20px #FFEB3B, 0 0 40px #FFC107, inset 0 0 15px rgba(255, 235, 59, 0.8);
    transform: scale(1.1);
    z-index: 10;
}

.cabin.winner {
    animation: winnerPulse 1s infinite alternate;
}

@keyframes winnerPulse {
    from {
        transform: scale(1.1);
        box-shadow: 0 0 20px #FFEB3B, 0 0 40px #FFC107;
    }

    to {
        transform: scale(1.2);
        box-shadow: 0 0 30px #FFEB3B, 0 0 60px #FFC107, inset 0 0 20px #fff;
    }
}

.cabin-item-img {
    width: min(45px, 11.5vw);
    height: min(45px, 11.5vw);
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.cabin-mult {
    position: absolute;
    bottom: -8px;
    background: #FFD700;
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 10px;
    border: 2px solid #D32F2F;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* User bet shown on cabin */
.cabin-bet {
    position: absolute;
    top: -12px;
    margin: 0 auto;
    right: inherit;
    background: linear-gradient(135deg, #4CAF50, #1B5E20);
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid #A5D6A7;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

/* Center Element */
#center-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(110px, 28vw);
    height: min(110px, 28vw);
    background: radial-gradient(circle, #F44336 0%, #B71C1C 100%);
    border: 4px solid #FFC107;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.owl-anim {
    margin-top: -45px;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
    animation: bob 2s infinite ease-in-out;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.owl-eyes {
    animation: blink 4s infinite;
}

@keyframes blink {

    0%,
    96%,
    100% {
        transform: scaleY(1);
    }

    98% {
        transform: scaleY(0.1);
    }
}

#timer-box {
    text-align: center;
    margin-top: -5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 10px;
}

.timer-label {
    font-size: 10px;
    font-weight: 800;
    color: #FFCDD2;
    text-transform: uppercase;
}

#timer-val {
    font-family: 'Fredoka One', cursive;
    font-size: 22px;
    color: white;
    text-shadow: 0 2px 4px #000;
    line-height: 1;
}

#timer-val.urgent {
    color: #FFEB3B;
    animation: pulse 0.5s infinite alternate;
}

/* Middle Bar - Today's Win */
#middle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    position: relative;
    z-index: 5;
}

.quick-btn {
    background: linear-gradient(180deg, #FFD54F 0%, #FF8F00 100%);
    color: #fff;
    border: 2px solid #FFF8E1;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blink-anim {
    animation: quickBlink 0.5s infinite alternate;
}

@keyframes quickBlink {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px #FFEB3B, 0 0 20px #FFC107;
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 20px #FFEB3B, 0 0 40px #FFC107;
    }
}

.today-win {
    background: rgba(30, 20, 50, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

#today-win-val {
    color: #FFD700;
    font-family: 'Fredoka One', cursive;
    margin-left: 5px;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Betting Area */
#betting-area {
    background: linear-gradient(180deg, rgba(80, 40, 100, 0.9) 0%, rgba(50, 20, 60, 0.95) 100%);
    border-top: 2px solid #8E24AA;
    border-radius: 20px 20px 0 0;
    padding: 12px 12px 12px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.betting-prompt {
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #E1BEE7;
    margin-left: 20px;
    margin-right: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#chips-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 6px;
    padding: 0 5px;
}

.chip {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 12px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
    padding: 3px;
}

.chip-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.5);
}

.chip.selected {
    border-color: #fff;
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

.chip.selected .chip-inner {
    border-style: solid;
    border-width: 2px;
}

.chip:active {
    transform: scale(0.9);
}

.c100 {
    background: radial-gradient(circle at 30% 30%, #26C6DA, #006064);
}

.c1k {
    background: radial-gradient(circle at 30% 30%, #66BB6A, #1B5E20);
}

.c5k {
    background: radial-gradient(circle at 30% 30%, #42A5F5, #0D47A1);
}

.c10k {
    background: radial-gradient(circle at 30% 30%, #FFA726, #E65100);
}

.c50k {
    background: radial-gradient(circle at 30% 30%, #EF5350, #B71C1C);
}

.c100k {
    background: radial-gradient(circle at 30% 30%, #AB47BC, #4A148C);
}

/* Result History */
#result-history {
    display: flex;
    align-items: center;
    background: #4A148C;
    padding: 8px 10px;
    gap: 10px;
    z-index: 5;
}

.result-label {
    background: linear-gradient(180deg, #CE93D8 0%, #8E24AA 100%);
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #E1BEE7;
}

#history-items {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}

#history-items::-webkit-scrollbar {
    display: none;
}

.history-item {
    width: 32px;
    height: 32px;
    background: #D7CCC8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #8D6E63;
    position: relative;
}


.history-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Win and Loss Popup */
#win-popup,
#loss-popup,
#insufficient-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(8px);
}

#win-popup.hidden,
#loss-popup.hidden,
#insufficient-popup.hidden {
    display: none;
}

.win-content {
    background: linear-gradient(155deg, rgba(6, 18, 140, 0.96), rgba(3, 10, 90, 0.98));
    border: 2px solid rgba(255, 200, 0, 0.8);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(100, 50, 255, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.2);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loss-content {
    background: linear-gradient(155deg, rgba(40, 10, 20, 0.96), rgba(20, 5, 10, 0.98));
    border: 2px solid rgba(200, 50, 50, 0.8);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 50, 50, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insufficient-content {
    background: linear-gradient(155deg, rgba(30, 20, 50, 0.96), rgba(15, 10, 30, 0.98));
    border: 2px solid rgba(255, 140, 0, 0.8);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insufficient-title {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    letter-spacing: 1px;
    color: #FFB300;
    text-shadow: 0 2px 5px rgba(255, 160, 0, 0.5);
    margin-bottom: 15px;
}

.insufficient-desc {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.you-win-text {
    font-family: 'Fredoka One', cursive;
    font-size: 40px;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #fff 0%, #FFD700 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(255, 160, 0, 0.8));
    margin-bottom: 5px;
}

.loss-text {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    letter-spacing: 1px;
    color: #FF5252;
    text-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);
    margin-bottom: 10px;
}

.loss-icon {
    font-size: 50px;
    animation: pulse 1s infinite alternate;
}

.stars {
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.win-amount {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

#win-icon {
    font-size: 35px;
    line-height: 1;
}

#win-value {
    text-shadow: 0 2px 10px rgba(140, 200, 255, 0.7);
    color: #00e676;
}

/* Fireworks */
.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 200;
    box-shadow: 0 0 6px currentColor;
    animation: explode 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--vx), var(--vy)) scale(0);
        opacity: 0;
    }
}

/* Modal */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #0a0515;
    /* Match image background */
    border: 1px solid #ff00ff;
    /* Pink border */
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
}

.modal-header h2 {
    font-family: 'Fredoka One', cursive;
    color: #ff00ff;
    font-size: 24px;
    text-shadow: 0 2px 5px rgba(255, 0, 255, 0.5);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
}

.modal-body ul {
    list-style: none;
}

.modal-body li.rule-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 10px;
    border-left: 2px solid #FFD700;
}

.rule-num {
    color: #FFD700;
    font-weight: 900;
    margin-right: 5px;
}

/* Records List specific matches to image */
#records-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

#records-list::-webkit-scrollbar {
    width: 4px;
}

#records-list::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 255, 0.5);
    border-radius: 4px;
}

.record-card {
    background: #110d1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
}

.record-row:last-child {
    margin-bottom: 0;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.record-lbl {
    color: #888;
    font-weight: 700;
}

.record-round {
    color: #00e5ff;
    font-weight: 900;
    font-size: 14px;
}

.record-date {
    color: #888;
    font-weight: 700;
    font-size: 11px;
}

.record-val-win {
    color: #fff;
    font-weight: 900;
}

.record-val-prize {
    color: #00e676;
    font-weight: 900;
}

.record-val-prize-zero {
    color: #888;
    font-weight: 900;
}

.record-val-bal {
    color: #FFD700;
    font-weight: 900;
}

.record-sym-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff1744;
    display: inline-block;
}

.floating-text {
    position: absolute;
    color: #FFD700;
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 50;
    animation: floatUp 1s ease-out forwards;
}

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

/* General Mobile adjustments */
@media (max-width: 430px) {
    #top-bar {
        padding: 10px 12px;
    }

    .balance-area {
        padding: 2px 8px 2px 4px;
        gap: 4px;
    }

    #balance {
        font-size: 14px;
    }

    .icon-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .profile-badge {
        top: 55px;
        left: 12px;
    }

    .trophy {
        font-size: 28px;
    }

    #wheel-structure {
        width: min(340px, 80vw, 45vh);
        height: min(340px, 80vw, 45vh);
    }

    .chip {
        width: clamp(36px, 12vw, 48px);
        height: clamp(36px, 12vw, 48px);
        font-size: 10px;
    }

    #chips-container {
        gap: 2px;
        padding: 0 2px;
    }

    .betting-prompt {
        font-size: 10px;
        margin-bottom: 6px;
        padding: 4px;
    }

    #betting-area {
        padding: 8px 5px;
    }

    #middle-bar {
        padding: 6px 10px;
    }

    .today-win {
        padding: 3px 8px;
        font-size: 11px;
    }

    #today-win-val {
        font-size: 13px;
    }

    .quick-btn {
        padding: 3px 8px;
        font-size: 10px;
    }

    .you-win-text {
        font-size: 30px;
    }

    .win-amount {
        font-size: 22px;
        padding: 6px 12px;
    }

    #result-history {
        padding: 5px 8px;
    }

    .history-item {
        width: 26px;
        height: 26px;
    }
}

/* Very Small phones (< 360px wide) */
@media (max-width: 350px) {
    .chip {
        width: 35px;
        height: 35px;
        font-size: 9px;
    }

    .quick-btn {
        font-size: 10px;
        padding: 3px 6px;
    }

    .today-win {
        font-size: 10px;
    }
}

/* Landscape orientation on phones */
@media (max-height: 500px) and (orientation: landscape) {
    #game-container {
        max-width: none;
        flex-direction: row;
    }

    #top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    #ferris-wheel-area {
        height: 100%;
        padding-top: 40px;
    }

    #middle-bar,
    #betting-area,
    #result-history {
        display: none;
        /* Hide UI in small landscape to focus on wheel */
    }

    .profile-badge {
        display: none;
    }

    #wheel-structure {
        width: 70vh !important;
        height: 70vh !important;
    }
}