/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-logo {
    max-width: 400px;
    height: auto;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(220, 53, 69, 0.3);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --bg-panel: #2a2a2a;
    --bg-red: #8B0000;
    --bg-red-dark: #5a0000;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-orange: #ff8c00;
    --accent-red: #dc3545;
    --accent-green: #28a745;
    --border-red: #ff0000;
}

/* Efeito de Neve */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #ffffff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    user-select: none;
    animation: snowfall linear infinite;
    opacity: 0.8;
}

.snowflake:nth-child(odd) {
    animation-duration: 10s;
    animation-delay: 0s;
}

.snowflake:nth-child(even) {
    animation-duration: 15s;
    animation-delay: 2s;
}

.snowflake:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: 1s;
}

.snowflake:nth-child(4n) {
    animation-duration: 18s;
    animation-delay: 3s;
}

.snowflake:nth-child(5n) {
    animation-duration: 14s;
    animation-delay: 0.5s;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(50px) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(-30px) rotate(360deg);
        opacity: 0;
    }
}

/* Neve com tamanhos diferentes */
.snowflake.small {
    font-size: 0.8em;
    opacity: 0.6;
}

.snowflake.medium {
    font-size: 1em;
    opacity: 0.8;
}

.snowflake.large {
    font-size: 1.5em;
    opacity: 0.9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: var(--bg-dark);
    padding: 0;
    border-bottom: 2px solid var(--border-red);
    height: 80px;
    display: flex;
    align-items: center;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    height: 100%;
}

.logo-img {
    width: auto;
    height: 100px;
    max-width: 500px;
    object-fit: contain;
    display: block;
    margin-top: -10px;
    margin-bottom: -10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 101;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.user-name {
    font-size: 14px;
    color: var(--text-gray);
}

.user-saldo {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-green);
}

.btn-deposito {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s !important;
}

.btn-deposito:hover {
    opacity: 0.9 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
}

.btn-deposito:active {
    transform: scale(1.02) !important;
}

.saldo-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 16px !important;
    min-height: 40px;
}

.saldo-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
}

/* Profile Dropdown */
.user-profile-dropdown {
    position: relative;
    z-index: 10001;
}

.profile-btn {
    background: transparent;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 2px;
    overflow: hidden;
}

.profile-btn:hover {
    border-color: var(--accent-red);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.profile-icon {
    font-size: 20px;
    line-height: 1;
}

.profile-icon-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-dark);
    border: 2px solid var(--border-red);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 10000;
    overflow: visible;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header .user-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
}

.dropdown-header .user-email {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-panel);
    color: var(--accent-red);
}

.dropdown-icon {
    font-size: 18px;
    line-height: 1;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.btn-emoji {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.btn:hover .btn-icon,
.btn:hover .btn-emoji {
    transform: scale(1.1);
}

.btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn span,
.btn svg {
    position: relative;
    z-index: 1;
}

.menu-toggle {
    background: var(--bg-panel);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    display: block;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 2px solid var(--border-red);
    z-index: 1000;
    transition: right 0.3s;
    padding: 20px;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-panel);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--bg-panel);
    border: 2px solid var(--accent-red);
}

.sidebar-icon {
    font-size: 24px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    position: relative;
    overflow: visible;
    min-height: 600px;
}

/* Game Header - Snow Scene */
.game-header {
    background: transparent;
    padding: 20px 30px 0;
    border-radius: 0;
    position: relative;
    overflow: visible;
}

.snow-scene {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 220px;
    position: relative;
    background: transparent;
    padding-bottom: 30px;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    width: calc(100% - 80px);
    gap: 20px;
}

.christmas-tree {
    width: auto;
    height: 200px;
    max-width: 300px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 10px;
}

.santa-claus {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.christmas-tree.right {
    margin-right: 0;
}

.tree-container {
    position: relative;
    width: calc(100% - 80px);
    max-width: 600px;
    margin: -110px auto 0;
    text-align: center;
    overflow: visible;
    z-index: 10;
}

.christmas-tree-above {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.santa-on-tree {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 160px;
    max-width: 160px;
    object-fit: contain;
    z-index: 2;
}

.rope-container {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 130px;
    z-index: 1;
    pointer-events: none;
    animation: ropeSwing 3s ease-in-out infinite;
    transform-origin: top center;
    max-width: 100%;
    overflow: visible;
}

@keyframes ropeSwing {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(10deg);
    }
    50% {
        transform: translateX(-50%) rotate(0deg);
    }
    75% {
        transform: translateX(-50%) rotate(-10deg);
    }
}

.rope {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, #8B4513, #654321);
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.hook {
    position: absolute;
    width: auto;
    height: 35px;
    max-width: 30px;
    object-fit: contain;
    z-index: 3;
    transition: all 0.3s ease;
}

.hook-left {
    top: 150px;
    left: 49%;
    transform: translateX(-50%) rotate(30deg);
    transform-origin: top center;
}

.hook-right {
    top: 150px;
    left: 51%;
    transform: translateX(-50%) rotate(-30deg);
    transform-origin: top center;
}

.hook.animating {
    z-index: 100;
}

.santa-image {
    width: auto;
    height: 150px;
    max-width: 150px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 3;
}

.winch {
    width: 45px;
    height: 65px;
    background: #8B4513;
    border-radius: 6px;
    position: relative;
    margin-left: 8px;
    margin-bottom: 5px;
}

.winch-handle {
    width: 32px;
    height: 32px;
    border: 3px solid #654321;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B4513;
}

.lantern {
    width: 22px;
    height: 28px;
    background: #FFD700;
    border-radius: 50% 50% 0 0;
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px #FFD700, 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Game Board */
.game-board {
    background: transparent;
    border: none;
    min-height: 400px;
    position: relative;
    overflow: visible;
    padding: 40px;
    background-image: url('../images/moldura.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    max-width: 600px;
    margin: -60px auto 0;
    width: calc(100% - 80px);
}

.claw-chain {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 250px;
    background: linear-gradient(to bottom, #C0C0C0, #808080);
    z-index: 10;
    transition: height 0.5s;
}

.claw {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: #C0C0C0;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
    z-index: 11;
}

.claw-item {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: none;
}

.claw-item.show {
    display: block;
}

.claw-item.premio {
    background: #8B008B;
    border: 2px solid #fff;
    border-radius: 5px;
    position: relative;
}

.claw-item.premio::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.claw-item.bomba {
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}

.claw-item.bomba::before {
    content: '💣';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.game-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 60px;
    padding-bottom: 20px;
    justify-items: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.game-item {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: bounce 6s linear infinite;
    animation-delay: calc(var(--item-index, 0) * 0.4s);
}

@keyframes bounce {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    15% {
        transform: translate(60px, -80px) rotate(3deg);
    }
    30% {
        transform: translate(60px, 80px) rotate(0deg);
    }
    45% {
        transform: translate(-60px, 80px) rotate(-3deg);
    }
    60% {
        transform: translate(-60px, -80px) rotate(0deg);
    }
    75% {
        transform: translate(30px, -40px) rotate(2deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes bounce2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    15% {
        transform: translate(-60px, 80px) rotate(-3deg);
    }
    30% {
        transform: translate(-60px, -80px) rotate(0deg);
    }
    45% {
        transform: translate(60px, -80px) rotate(3deg);
    }
    60% {
        transform: translate(60px, 80px) rotate(0deg);
    }
    75% {
        transform: translate(-30px, 40px) rotate(-2deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes bounce3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(0, 80px) rotate(2deg);
    }
    40% {
        transform: translate(-60px, 80px) rotate(0deg);
    }
    60% {
        transform: translate(-60px, -80px) rotate(-2deg);
    }
    80% {
        transform: translate(0, -80px) rotate(0deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes bounce4 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(0, -80px) rotate(-2deg);
    }
    40% {
        transform: translate(60px, -80px) rotate(0deg);
    }
    60% {
        transform: translate(60px, 80px) rotate(2deg);
    }
    80% {
        transform: translate(0, 80px) rotate(0deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

/* Cores das caixas baseadas no valor da aposta */
/* R$ 0.50 - Azul/Ciano */
.game-item.premio.bet-050 img {
    filter: hue-rotate(200deg) saturate(1.3) brightness(1.2);
}

/* R$ 1.00 - Dourado/Amarelo */
.game-item.premio.bet-100 img {
    filter: hue-rotate(30deg) saturate(1.6) brightness(1.4);
}

/* R$ 2.00 - Verde */
.game-item.premio.bet-200 img {
    filter: hue-rotate(120deg) saturate(1.5) brightness(1.3);
}

/* R$ 5.00 - Roxo/Magenta */
.game-item.premio.bet-500 img {
    filter: hue-rotate(270deg) saturate(1.4) brightness(1.2);
}

.game-item::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Betting Panel */
.betting-panel {
    background: transparent;
    padding: 40px;
    border-radius: 0;
    background-image: url('../images/moldura.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    max-width: 600px;
    margin: 20px auto 0;
    width: calc(100% - 80px);
}

.betting-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--bg-dark);
    color: var(--text-gray);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:first-child {
    border-radius: 5px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 5px 0 0;
}

.tab-btn.active {
    background: var(--accent-red);
    color: var(--text-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bet-amount-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.bet-input {
    flex: 1;
    padding: 0 40px 0 15px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--bg-panel);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box;
}

.bet-dropdown-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 12px;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
}

.bet-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border: 2px solid var(--bg-panel);
    border-radius: 5px;
    display: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.bet-input-wrapper.active .bet-dropdown {
    display: block;
}

.bet-dropdown-item {
    padding: 12px 15px;
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bet-dropdown-item:hover {
    background: var(--bg-panel);
}

.bet-dropdown-item.active {
    background: var(--accent-red);
    color: var(--text-white);
}

.bet-dropdown-item.active::after {
    content: "✓";
    margin-left: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-plus {
    background: var(--accent-green);
    color: var(--text-white);
}

.btn-minus {
    background: var(--accent-red);
    color: var(--text-white);
}

.btn-close {
    background: var(--bg-dark);
    color: var(--text-white);
}

.btn-play {
    width: 100%;
    padding: 20px;
    background: var(--accent-red);
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-play:hover {
    background: #c82333;
    transform: scale(1.02);
}

.btn-play:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* Jogadas List */
.jogadas-list {
    max-height: 400px;
    overflow-y: auto;
}

.jogada-item {
    background: var(--bg-dark);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jogada-resultado {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jogada-resultado.premio {
    color: var(--accent-green);
}

.jogada-resultado.bomba {
    color: var(--accent-red);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 2px solid var(--border-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.footer-column p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.payment-method p {
    margin-top: 0;
    margin-bottom: 0;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    margin: 0 auto;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--text-orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.payment-method {
    margin-top: 0;
}

.pix-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin-bottom: 8px;
    margin-top: 0;
}

.contact-email {
    color: var(--accent-red) !important;
    font-weight: bold;
}

.licensing-box {
    background: var(--bg-panel);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.licensing-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.licensing-box p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-darker);
}

.auth-box {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    border: 2px solid var(--border-red);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-orange);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-panel);
    border: 2px solid var(--bg-panel);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* Botões de valor rápido para depósito */
.btn-valor-rapido {
    padding: 8px 12px;
    background: #28a745;
    border: 2px solid #28a745;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.btn-valor-rapido span[style*="color: #ff8c00"] {
    color: #ff8c00 !important;
}

.btn-valor-rapido:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.btn-valor-rapido.active {
    background: #1e7e34;
    border-color: #1e7e34;
    color: white;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
}

.btn-valor-rapido:active {
    transform: translateY(0);
}

/* Botão confirmar depósito */
.btn-confirmar-deposito {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-confirmar-deposito:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
}

.btn-confirmar-deposito:active {
    background: #1e7e34 !important;
    border-color: #1e7e34 !important;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.2s;
}

.toggle-password:hover {
    transform: scale(1.1);
}

.toggle-password:active {
    transform: scale(0.95);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

.auth-link a {
    color: var(--accent-red);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-dark);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid var(--border-red);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text-white);
    text-decoration: none;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-orange);
    margin-top: 0;
}

.modal-logo {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
}

.modal-logo-img {
    max-width: 200px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.modal-content.large-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Wallet Styles */
.wallet-info {
    margin-bottom: 30px;
}

.wallet-balance {
    text-align: center;
    padding: 30px;
    background: var(--bg-panel);
    border-radius: 10px;
    border: 2px solid var(--border-red);
}

.balance-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.balance-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-green);
}

.wallet-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.transactions-list h3,
.affiliates-list h3,
.premios-list h3 {
    color: var(--text-orange);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-red);
}

.transaction-item,
.affiliate-item,
.premio-item {
    background: var(--bg-panel);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-type {
    font-weight: bold;
}

.transaction-type.deposito {
    color: var(--accent-green);
}

.transaction-type.saque {
    color: var(--accent-red);
}

/* Affiliate Styles */
.affiliate-link-box {
    margin-bottom: 30px;
}

.affiliate-link-box label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.link-copy-box {
    display: flex;
    gap: 10px;
}

.link-copy-box input {
    flex: 1;
    padding: 12px;
    background: var(--bg-panel);
    border: 2px solid var(--bg-panel);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 14px;
}

.affiliate-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-red);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-orange);
}

.modal-content .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-content .btn {
    margin: 0 auto;
}

/* Profile Image */
.profile-image-container {
    text-align: center;
    margin-bottom: 30px;
    display: block;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Prêmios Modal Styles */
.premios-modal {
    max-width: 900px;
}

.premios-header {
    text-align: center;
    margin-bottom: 30px;
}

.premios-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.premios-icon {
    font-size: 28px;
}

.premios-subtitle {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

.premios-bet-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bet-selector-btn {
    padding: 12px 24px;
    background: var(--bg-panel);
    color: var(--text-white);
    border: 2px solid var(--bg-panel);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 100px;
}

.bet-selector-btn:hover {
    background: var(--bg-dark);
    border-color: var(--accent-red);
}

.bet-selector-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
}

.premios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.premio-card {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.premio-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.premio-card.bomba {
    border-color: var(--accent-red);
}

.premio-card-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.premio-card-bomba {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.premio-card-bomba img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.premio-card-type {
    color: var(--text-orange);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.premio-card-type::before {
    content: '';
    display: none;
}

.premio-card-value {
    color: var(--accent-green);
    font-size: 18px;
    font-weight: bold;
}

.premio-card-bomba-value {
    color: var(--accent-red);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.premio-card-bomba-value::after {
    content: '🎯';
    font-size: 12px;
}

.premios-footer {
    background: var(--bg-panel);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-white);
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.premios-footer-icon {
    font-size: 20px;
}

#currentBetDisplay {
    color: var(--text-orange);
}

/* Responsive */
/* Responsive - APENAS MOBILE - TODOS OS TAMANHOS */
/* Classes específicas para mobile - APENAS MOBILE */
@media screen and (max-width: 768px) {
    .mobile-tree-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-tree-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .mobile-santa-img {
        max-width: 60% !important;
        width: auto !important;
        height: auto !important;
        max-height: 100px !important;
        object-fit: contain !important;
    }
    
    .mobile-rope-container {
        width: 2px !important;
        height: 60px !important;
    }
    
    .mobile-rope {
        width: 2px !important;
        height: 30px !important;
    }
    
    .mobile-hook {
        max-width: 18px !important;
        width: auto !important;
        height: auto !important;
        max-height: 18px !important;
        object-fit: contain !important;
    }
    
    .mobile-game-board {
        width: calc(100% - 10px) !important;
        max-width: 100% !important;
        padding: 12px 6px !important;
        min-height: 280px !important;
    }
    
    .mobile-game-items {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
        padding: 10px 3px !important;
    }
    
    .mobile-game-items .game-item,
    .mobile-game-items .game-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 25px !important;
        object-fit: contain !important;
    }
}

/* Telas muito pequenas (até 360px) */
@media screen and (max-width: 360px) {
    /* Aplicar estilos específicos para classes mobile */
    .mobile-santa-img {
        max-width: 50% !important;
        max-height: 70px !important;
    }
    
    .mobile-rope-container {
        height: 60px !important;
    }
    
    .mobile-rope {
        height: 30px !important;
    }
    
    .mobile-hook {
        max-width: 18px !important;
        max-height: 18px !important;
    }
    
    .mobile-game-board {
        padding: 12px 6px !important;
        min-height: 280px !important;
    }
    
    .mobile-game-items .game-item,
    .mobile-game-items .game-item img {
        max-height: 22px !important;
    }
    
    /* Header responsivo */
    .header {
        padding: 8px 5px 8px 0;
        height: auto;
        min-height: 60px;
    }
    
    .header .container {
        width: 100%;
        padding: 0 5px 0 0;
        max-width: 100%;
    }
    
    .header-content {
        flex-wrap: nowrap !important;
        gap: 5px !important;
        align-items: center !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: -5px !important;
    }
    
    .header-logo, .logo {
        max-width: 70px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        margin-left: -5px !important;
        padding-left: 0 !important;
    }
    
    .header-logo img, .logo-img {
        max-width: 70px !important;
        height: auto !important;
        max-height: 35px !important;
        margin-left: -5px !important;
    }
    
    #btnOpenLogin, #btnOpenRegister {
        padding: 6px 8px !important;
        font-size: 10px !important;
        margin-left: -10px !important;
    }
    
    #btnOpenLogin .btn-emoji, #btnOpenRegister .btn-emoji {
        font-size: 10px !important;
        margin-right: 2px !important;
    }
    
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        align-items: center !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Game container - telas muito pequenas */
    .game-container {
        max-width: 100% !important;
        padding: 0 3px !important;
        width: 100% !important;
    }
    
    /* Tree container - telas muito pequenas */
    .tree-container {
        margin-bottom: 8px !important;
        margin-top: -40px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .tree-container .christmas-tree-above {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        object-fit: contain !important;
        display: block !important;
        position: relative !important;
    }
    
    .tree-container .santa-on-tree {
        max-width: 50% !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 70px !important;
        object-fit: contain !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 2 !important;
    }
    
    /* Rope e gancho - telas muito pequenas */
    .tree-container .rope-container {
        width: 2px !important;
        height: 60px !important;
        max-width: 100% !important;
        top: 50% !important;
        left: 50% !important;
        transform-origin: top center !important;
        position: absolute !important;
        animation: ropeSwing 3s ease-in-out infinite !important;
    }
    
    .tree-container .rope-container .rope {
        width: 2px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }
    
    .tree-container .rope-container .hook,
    .tree-container .rope-container .hook-left,
    .tree-container .rope-container .hook-right {
        max-width: 18px !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 18px !important;
        object-fit: contain !important;
        position: absolute !important;
    }
    
    .tree-container .rope-container .hook-left,
    .tree-container .rope-container .hook-right {
        top: 90px !important;
    }
    
    /* Game board - telas muito pequenas */
    .game-container .game-board {
        margin: 3px auto 0 !important;
        padding: 12px 6px !important;
        width: calc(100% - 6px) !important;
        max-width: 100% !important;
        min-height: 280px !important;
        height: auto !important;
        background-size: 100% 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .game-container .game-board .game-items {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
        padding: 10px 3px !important;
        min-height: 250px !important;
        height: auto !important;
    }
    
    /* Itens do jogo - telas muito pequenas */
    .game-container .game-board .game-items img,
    .game-container .game-board .game-items .game-item,
    .game-container .game-board .game-items .game-item.premio,
    .game-container .game-board .game-items .game-item.bomba {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 55px !important;
        object-fit: contain !important;
    }
    
    .game-container .game-board .game-items .game-item img,
    .game-container .game-board .game-items .game-item.premio img,
    .game-container .game-board .game-items .game-item.bomba img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 22px !important;
        object-fit: contain !important;
    }
    
    .betting-panel {
        padding: 15px 10px;
        width: calc(100% - 20px);
        margin: 10px auto 0;
        max-width: 100%;
    }
}

/* Telas pequenas (361px - 480px) */
@media screen and (min-width: 361px) and (max-width: 480px) {
    /* Aplicar estilos específicos para classes mobile */
    .mobile-santa-img {
        max-width: 55% !important;
        max-height: 85px !important;
    }
    
    .mobile-rope-container {
        height: 70px !important;
    }
    
    .mobile-rope {
        height: 35px !important;
    }
    
    .mobile-hook {
        max-width: 22px !important;
        max-height: 22px !important;
    }
    
    .mobile-game-board {
        padding: 15px 8px !important;
        min-height: 320px !important;
    }
    
    .mobile-game-items .game-item,
    .mobile-game-items .game-item img {
        max-height: 30px !important;
    }
    
    /* Header responsivo */
    .header {
        padding: 8px 5px 8px 0;
        height: auto;
        min-height: 60px;
    }
    
    .header .container {
        width: 100%;
        padding: 0 5px 0 0;
        max-width: 100%;
    }
    
    .header-content {
        flex-wrap: nowrap !important;
        gap: 5px !important;
        align-items: center !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: -5px !important;
    }
    
    .header-logo, .logo {
        max-width: 80px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        margin-left: -5px !important;
        padding-left: 0 !important;
    }
    
    .header-logo img, .logo-img {
        max-width: 80px !important;
        height: auto !important;
        max-height: 40px !important;
        margin-left: -5px !important;
    }
    
    #btnOpenLogin, #btnOpenRegister {
        padding: 7px 10px !important;
        font-size: 11px !important;
        margin-left: -10px !important;
    }
    
    #btnOpenLogin .btn-emoji, #btnOpenRegister .btn-emoji {
        font-size: 11px !important;
        margin-right: 3px !important;
    }
    
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        align-items: center !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Game container - telas pequenas */
    .game-container {
        max-width: 100% !important;
        padding: 0 5px !important;
        width: 100% !important;
    }
    
    /* Tree container - telas pequenas */
    .tree-container {
        margin-bottom: 10px !important;
        margin-top: -45px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .tree-container .christmas-tree-above {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        object-fit: contain !important;
        display: block !important;
        position: relative !important;
    }
    
    .tree-container .santa-on-tree {
        max-width: 55% !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 85px !important;
        object-fit: contain !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 2 !important;
    }
    
    /* Rope e gancho - telas pequenas */
    .tree-container .rope-container {
        width: 2px !important;
        height: 70px !important;
        max-width: 100% !important;
        top: 50% !important;
        left: 50% !important;
        transform-origin: top center !important;
        position: absolute !important;
        animation: ropeSwing 3s ease-in-out infinite !important;
    }
    
    .tree-container .rope-container .rope {
        width: 2px !important;
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
    }
    
    .tree-container .rope-container .hook,
    .tree-container .rope-container .hook-left,
    .tree-container .rope-container .hook-right {
        max-width: 22px !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 22px !important;
        object-fit: contain !important;
        position: absolute !important;
    }
    
    .tree-container .rope-container .hook-left,
    .tree-container .rope-container .hook-right {
        top: 105px !important;
    }
    
    /* Game board - telas pequenas */
    .game-container .game-board {
        margin: 5px auto 0 !important;
        padding: 15px 8px !important;
        width: calc(100% - 10px) !important;
        max-width: 100% !important;
        min-height: 320px !important;
        height: auto !important;
        background-size: 100% 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .game-container .game-board .game-items {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        padding: 12px 4px !important;
        min-height: 280px !important;
        height: auto !important;
    }
    
    /* Itens do jogo - telas pequenas */
    .game-container .game-board .game-items img,
    .game-container .game-board .game-items .game-item,
    .game-container .game-board .game-items .game-item.premio,
    .game-container .game-board .game-items .game-item.bomba {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 65px !important;
        object-fit: contain !important;
    }
    
    .game-container .game-board .game-items .game-item img,
    .game-container .game-board .game-items .game-item.premio img,
    .game-container .game-board .game-items .game-item.bomba img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 30px !important;
        object-fit: contain !important;
    }
    
    .betting-panel {
        padding: 18px 12px;
        width: calc(100% - 20px);
        margin: 12px auto 0;
        max-width: 100%;
    }
}

/* Telas médias (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    /* Aplicar estilos específicos para classes mobile */
    .mobile-santa-img {
        max-width: 60% !important;
        max-height: 100px !important;
    }
    
    .mobile-rope-container {
        height: 80px !important;
        width: 3px !important;
    }
    
    .mobile-rope {
        height: 40px !important;
        width: 3px !important;
    }
    
    .mobile-hook {
        max-width: 25px !important;
        max-height: 25px !important;
    }
    
    .mobile-game-board {
        padding: 20px 10px !important;
        min-height: 350px !important;
    }
    
    .mobile-game-items .game-item,
    .mobile-game-items .game-item img {
        max-height: 35px !important;
    }
    
    /* Header responsivo */
    .header {
        padding: 8px 5px 8px 0;
        height: auto;
        min-height: 60px;
    }
    
    .header .container {
        width: 100%;
        padding: 0 5px 0 0;
        max-width: 100%;
    }
    
    .header-content {
        flex-wrap: nowrap !important;
        gap: 5px !important;
        align-items: center !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: -5px !important;
    }
    
    .header-logo, .logo {
        max-width: 90px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        margin-left: -5px !important;
        padding-left: 0 !important;
    }
    
    .header-logo img, .logo-img {
        max-width: 90px !important;
        height: auto !important;
        max-height: 45px !important;
        margin-left: -5px !important;
    }
    
    #btnOpenLogin, #btnOpenRegister {
        padding: 8px 12px !important;
        font-size: 12px !important;
        margin-left: -10px !important;
    }
    
    #btnOpenLogin .btn-emoji, #btnOpenRegister .btn-emoji {
        font-size: 12px !important;
        margin-right: 4px !important;
    }
    
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        align-items: center !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Game container - telas médias */
    .game-container {
        max-width: 100% !important;
        padding: 0 8px !important;
        width: 100% !important;
    }
    
    /* Tree container - telas médias */
    .tree-container {
        margin-bottom: 12px !important;
        margin-top: -50px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .tree-container .christmas-tree-above {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        object-fit: contain !important;
        display: block !important;
        position: relative !important;
    }
    
    .tree-container .santa-on-tree {
        max-width: 60% !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 100px !important;
        object-fit: contain !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 2 !important;
    }
    
    /* Rope e gancho - telas médias */
    .tree-container .rope-container {
        width: 3px !important;
        height: 80px !important;
        max-width: 100% !important;
        top: 50% !important;
        left: 50% !important;
        transform-origin: top center !important;
        position: absolute !important;
        animation: ropeSwing 3s ease-in-out infinite !important;
    }
    
    .tree-container .rope-container .rope {
        width: 3px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .tree-container .rope-container .hook,
    .tree-container .rope-container .hook-left,
    .tree-container .rope-container .hook-right {
        max-width: 25px !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 25px !important;
        object-fit: contain !important;
        position: absolute !important;
    }
    
    .tree-container .rope-container .hook-left,
    .tree-container .rope-container .hook-right {
        top: 120px !important;
    }
    
    /* Game board - telas médias */
    .game-container .game-board {
        margin: 5px auto 0 !important;
        padding: 20px 10px !important;
        width: calc(100% - 10px) !important;
        max-width: 100% !important;
        min-height: 350px !important;
        height: auto !important;
        background-size: 100% 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .game-container .game-board .game-items {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
        padding: 15px 5px !important;
        min-height: 300px !important;
        height: auto !important;
    }
    
    /* Itens do jogo - telas médias */
    .game-container .game-board .game-items img,
    .game-container .game-board .game-items .game-item,
    .game-container .game-board .game-items .game-item.premio,
    .game-container .game-board .game-items .game-item.bomba {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 80px !important;
        object-fit: contain !important;
    }
    
    .game-container .game-board .game-items .game-item img,
    .game-container .game-board .game-items .game-item.premio img,
    .game-container .game-board .game-items .game-item.bomba img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 35px !important;
        object-fit: contain !important;
    }
    
    .betting-panel {
        padding: 20px 15px;
        width: calc(100% - 20px);
        margin: 15px auto 0;
        max-width: 100%;
    }
}

/* Regras comuns para todos os tamanhos mobile (até 768px) */
@media screen and (max-width: 768px) {
    /* Resetar estilos desktop que podem interferir - FORÇAR SOBRESCRITA */
    .main-content .game-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    
    .main-content .game-container .tree-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: -40px !important;
    }
    
    .main-content .game-container .game-board {
        width: calc(100% - 10px) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 15px 8px !important;
    }
    
    /* FORÇAR SOBRESCRITA DE ESTILOS INLINE DO JAVASCRIPT */
    .main-content .game-container .tree-container .christmas-tree-above[style],
    .main-content .game-container .tree-container .santa-on-tree[style] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .main-content .game-container .tree-container .rope-container[style] {
        width: 2px !important;
        height: 60px !important;
    }
    
    .main-content .game-container .tree-container .rope-container .rope[style] {
        width: 2px !important;
        height: 30px !important;
    }
    
    .main-content .game-container .tree-container .rope-container .hook[style],
    .main-content .game-container .tree-container .rope-container .hook-left[style],
    .main-content .game-container .tree-container .rope-container .hook-right[style] {
        max-width: 18px !important;
        width: auto !important;
        height: auto !important;
        max-height: 18px !important;
    }
    
    .main-content .game-container .game-board .game-items .game-item[style],
    .main-content .game-container .game-board .game-items .game-item img[style] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 30px !important;
        object-fit: contain !important;
    }
    /* Sidebar responsivo */
    .sidebar {
        width: 280px;
        right: -280px;
        transition: right 0.3s ease;
    }
    
    .sidebar.open {
        right: 0;
    }
    
    /* Main content responsivo */
    .main-content {
        padding: 15px 0;
    }
    
    /* BOTÕES ENTRAR E REGISTRAR - FORÇAR LADO A LADO */
    #btnOpenLogin,
    #btnOpenRegister,
    a#btnOpenLogin,
    a#btnOpenRegister,
    .btn#btnOpenLogin,
    .btn#btnOpenRegister,
    .header-actions #btnOpenLogin,
    .header-actions #btnOpenRegister,
    .header-actions a#btnOpenLogin,
    .header-actions a#btnOpenRegister,
    .header .header-content .header-actions a#btnOpenLogin,
    .header .header-content .header-actions a#btnOpenRegister,
    .header-actions a.btn.btn-secondary#btnOpenLogin,
    .header-actions a.btn.btn-primary#btnOpenRegister {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        float: none !important;
        clear: none !important;
        position: relative !important;
        vertical-align: middle !important;
    }
    
    /* TODOS OS LINKS/BOTÕES NO HEADER-ACTIONS */
    .header-actions > a,
    .header-actions a.btn {
        display: inline-flex !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        width: auto !important;
        flex-wrap: nowrap !important;
    }
    
    /* GARANTIR QUE NÃO HÁ QUEBRA DE LINHA */
    .header-content {
        flex-wrap: nowrap !important;
    }
    
    /* Ajustar animações para mobile - reduzir movimento */
    .game-item {
        animation-duration: 4s !important;
    }
    
    @keyframes bounce-mobile {
        0%, 100% { transform: translate(0, 0) rotate(0deg); }
        25% { transform: translate(20px, -30px) rotate(2deg); }
        50% { transform: translate(20px, 30px) rotate(0deg); }
        75% { transform: translate(-20px, 30px) rotate(-2deg); }
    }
    
    .betting-tabs {
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .bet-amount-group {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .bet-input-wrapper {
        flex: 1;
        min-width: 150px;
    }
    
    .bet-input {
        font-size: 16px;
        padding: 10px;
    }
    
    .btn-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .btn-play {
        width: 100%;
        padding: 15px;
        font-size: 18px;
        margin-top: 10px;
    }
    
    /* Footer responsivo */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    /* Modais responsivos */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-logo-img {
        max-width: 150px;
    }
    
    /* Premios grid responsivo */
    .premios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .premios-bet-selector {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bet-selector-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 80px;
    }
    
    /* Ajustar tamanhos de fonte */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    /* Loading screen responsivo */
    .loading-logo {
        max-width: 250px;
    }
}

/* Desktop - Resetar margin-left dos botões e logo */
@media (min-width: 769px) {
    #btnOpenLogin,
    #btnOpenRegister {
        margin-left: 0 !important;
    }
    
    .logo,
    .logo a,
    .logo img,
    .logo-img {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

