@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: pan-x pan-y;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1d29 0%, #0d0f16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-gif {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 8, 68, 0.6));
}

.loading-bar-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0844, #ff4757, #ff0844);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s ease infinite;
    border-radius: 10px;
    transition: width 0.3s ease;
}

@keyframes loadingGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Aviso Fullscreen */
.aviso-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aviso-gif-full {
    max-width: 100%;
    max-height: 100vh;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.aviso-gif-full:hover {
    transform: scale(1.02);
}

/* Free Test Bar */
.free-test-bar {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    padding: 0.6rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.5);
    position: relative;
    z-index: 99;
}

.free-test-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Deposit Modal */
.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deposit-modal.show {
    opacity: 1;
}

.deposit-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 1.8rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.deposit-content h2 {
    color: #ff9800;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deposit-message {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.deposit-value {
    color: #00ff00;
    font-size: 2.8rem;
    font-weight: 900;
    margin: 1rem 0;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    font-family: 'Outfit', sans-serif;
}

.deposit-cta {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.deposit-button {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.6);
    transition: all 0.3s ease;
}

.deposit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.8);
}

@media (max-width: 768px) {
    .deposit-content {
        padding: 1.5rem 1.3rem;
        max-width: 95%;
    }
    
    .deposit-content h2 {
        font-size: 1.3rem;
    }
    
    .deposit-value {
        font-size: 2.2rem;
    }
    
    .deposit-message {
        font-size: 0.9rem;
    }
    
    .deposit-cta {
        font-size: 0.85rem;
    }
    
    .deposit-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

.top-bar {
    background-color: #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance {
    background-color: #1a1a1a;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 600;
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.balance-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.balance-value .currency {
    color: #8bff8b;
    font-size: 0.9rem;
    font-weight: 700;
}

.balance-amount {
    color: #00ff00;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    transition: opacity 0.2s;
}

.menu-button:hover {
    opacity: 0.7;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.top-meta {
    background: #1f1f1f;
    padding: 0.55rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 97;
    flex-wrap: wrap;
}

.players-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    flex-shrink: 1;
    min-width: 0;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #1f1f1f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.avatars .avatar + .avatar {
    margin-left: -10px;
}

.avatar-one { background: #ff0844; }
.avatar-two { background: #ec4899; }
.avatar-three { background: #6366f1; }

.player-count-text {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-count-text #playerCount {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-right: 0.2rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    white-space: nowrap;
}

.live-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.6),
                0 0 100px rgba(34, 197, 94, 0.4),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 320px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: none !important;
}

.toast.show {
    animation: toastBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounce {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes toastFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

.toast.hide {
    animation: toastFadeOut 0.4s ease forwards;
}

.toast-title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: none;
}

.toast-value {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin: 0.2rem 0;
}

.toast-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.3rem;
}

/* Countdown */
.countdown {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.9),
                 0 0 100px rgba(147, 51, 234, 0.8),
                 0 0 140px rgba(147, 51, 234, 0.6);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
}

.countdown.show {
    animation: countdownPulse 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes countdownPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Histórico de Multiplicadores */
.multiplier-history {
    background-color: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.multiplier-history::-webkit-scrollbar {
    display: none;
}

.multiplier-item {
    background-color: #2d2d2d;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.multiplier-item.red {
    color: #ff4757;
    border-color: #ff4757;
}

.multiplier-item.green {
    color: #00ff00;
    border-color: #00ff00;
}

.more-button {
    background-color: #3d3d3d;
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.more-button:hover {
    background-color: #4d4d4d;
}

/* Game Container */
.game-container {
    position: relative;
    width: 100%;
    flex: 1;
    background: #1a1d29;
    overflow: hidden;
    margin-top: 0.25rem;
    padding-bottom: 130px;
}

@keyframes stripeMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.multiplier-display {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 80px rgba(147, 51, 234, 0.8),
                 0 0 120px rgba(147, 51, 234, 0.6);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Waiting Overlay */
.waiting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d29;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.waiting-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.waiting-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.waiting-cloud {
    position: absolute;
    width: 200px;
    height: auto;
    opacity: 0.3;
    animation: cloudPass 6s linear infinite;
}

.waiting-cloud.cloud-1 {
    top: 20%;
    animation-duration: 6s;
}

.waiting-cloud.cloud-2 {
    top: 50%;
    animation-duration: 7s;
}

.waiting-cloud.cloud-3 {
    top: 70%;
    animation-duration: 8s;
}

@keyframes cloudPass {
    0% {
        right: -200px;
    }
    100% {
        right: 100%;
    }
}

.waiting-plane {
    width: 150px;
    height: auto;
    z-index: 6;
    animation: planeFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes planeFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.wind-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4;
}

.wind-line {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 1px;
    animation: windBlow 3s ease-in-out infinite;
}

@keyframes windBlow {
    0% {
        right: -150px;
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scaleX(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        right: 100%;
        transform: translateY(-60px) scaleX(0.8);
        opacity: 0;
    }
}

.multiplier-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, rgba(147, 51, 234, 0.2) 30%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.multiplier-display.active {
    opacity: 1;
}

.potential-win {
    position: absolute;
    top: calc(42% + 5rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.potential-win.active {
    opacity: 1;
}

.game-status {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confettiFall linear forwards;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

.plane {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.plane.active {
    opacity: 1;
}

/* Bottom Bar */
.bottom-bar {
    background-color: #2d2d2d;
    padding: 0.6rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 98;
}

.bet-input-wrapper {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: center;
}

.bet-control {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.bet-control:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.bet-control:active {
    transform: scale(0.95);
}

.bet-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bet-input {
    flex: 1;
    height: 38px;
    padding: 0 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
    text-align: center;
}

.bet-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.bet-input::-webkit-inner-spin-button,
.bet-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bet-button {
    background: linear-gradient(135deg, #ff0844 0%, #ff4757 100%);
    color: #ffffff;
    border: none;
    padding: 0.65rem 2rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 8, 68, 0.4);
    white-space: nowrap;
}

.bet-button.cashout {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 18px rgba(255, 152, 0, 0.6);
    animation: cashoutPulse 1.5s ease-in-out infinite;
}

@keyframes cashoutPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 18px rgba(255, 152, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(255, 152, 0, 0.8);
    }
}

.bet-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 8, 68, 0.6);
}

.bet-button:active {
    transform: scale(0.98);
}

.bet-button:disabled {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.4rem 0.75rem;
    }
    
    .logo img {
        height: 56px;
    }
    
    .multiplier-display {
        font-size: 4.5rem;
    }
    
    .potential-win {
        font-size: 1rem;
        top: calc(42% + 4rem);
    }
    
    .plane {
        width: 70px;
        height: 70px;
    }
    
    .bottom-bar {
        padding: 0.75rem;
        bottom: 46px;
    }
    
    .top-meta {
        bottom: 0;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .players-chip {
        padding: 0.35rem 0.65rem;
        gap: 0.5rem;
        min-width: auto;
    }
    
    .player-count-text {
        font-size: 0.75rem;
        white-space: normal;
    }
    
    .player-count-text #playerCount {
        font-size: 0.85rem;
    }
    
    .avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .live-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
        display: none;
    }
    
    .bet-control {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .bet-input {
        font-size: 0.9rem;
        padding: 0 0.8rem;
        height: 45px;
    }
    
    .bet-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .right-section {
        gap: 0.75rem;
    }
    
    .balance {
        padding: 0.45rem 0.8rem;
    }
    
    .balance-amount {
        font-size: 0.9rem;
    }
    
    .balance-currency {
        font-size: 0.8rem;
    }

    .top-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .menu-button span {
        width: 22px;
        height: 2.5px;
    }
}

@media (max-width: 480px) {
    .toast {
        min-width: 280px;
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
    }
    
    .toast-value {
        font-size: 2rem;
    }
    
    .countdown {
        font-size: 7rem;
    }
    
    .top-bar {
        padding: 0.35rem 0.5rem;
    }
    
    .logo img {
        height: 48px;
    }
    
    .multiplier-display {
        font-size: 3.5rem;
    }
    
    .potential-win {
        font-size: 0.85rem;
        top: calc(42% + 3.2rem);
    }
    
    .game-status {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .plane {
        width: 60px;
        height: 60px;
    }
    
    .bottom-bar {
        padding: 0.6rem;
        gap: 0.75rem;
        bottom: 44px;
    }
    
    .bet-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .bet-input {
        font-size: 0.85rem;
        padding: 0 0.7rem;
        height: 40px;
    }
    
    .top-meta {
        bottom: 0;
        padding: 0.4rem 0.5rem;
        gap: 0.35rem;
        flex-wrap: nowrap;
    }
    
    .players-chip {
        padding: 0.3rem 0.5rem;
        gap: 0.35rem;
    }
    
    .player-count-text {
        font-size: 0.68rem;
    }
    
    .player-count-text #playerCount {
        font-size: 0.75rem;
    }
    
    .avatar {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .avatars .avatar + .avatar {
        margin-left: -8px;
    }
    
    .live-pill {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .live-pill .dot {
        width: 6px;
        height: 6px;
    }
    
    .game-container {
        padding-bottom: 115px;
    }
    
    .bet-input-wrapper {
        padding: 0.4rem 0.6rem;
    }
    
    .bet-input-wrapper input {
        width: 70px;
        font-size: 0.95rem;
    }
    
    .bet-input-container label {
        font-size: 0.65rem;
    }
    
    .bet-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .right-section {
        gap: 0.5rem;
    }
    
    .balance {
        padding: 0.35rem 0.6rem;
    }
    
    .balance-amount {
        font-size: 0.85rem;
    }
    
    .balance-label {
        font-size: 0.6rem;
    }

    .menu-button {
        padding: 0.35rem;
    }
    
    .menu-button span {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .balance-amount {
        font-size: 0.8rem;
    }
    
    .balance-currency {
        font-size: 0.7rem;
    }
    
    .logo img {
        height: 44px;
    }
    
    .multiplier-history {
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    .multiplier-item,
    .more-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .waiting-plane {
        width: 100px;
    }
    
    .waiting-cloud {
        width: 150px;
    }
}
