body {
    display: flex;
    background-color: black;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Ban/Block Overlay Styles */
#ban-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInBlur 0.5s ease-in-out;
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.ban-content {
    text-align: center;
    padding: 60px 80px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ban-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#ban-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

#ban-message {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
}


/* body.quiz {
    font-family: Arial, sans-serif;
    display: flex;
    user-select: none;
    justify-content: start;
    align-items: start;
    height: 100vh;
    width: auto;
    overflow: hidden;
    margin: 0;
    padding-top: 50px !important;
    padding-left: 15px;
    padding-right: 15px;
    background-image: url(/background.jpg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: background-move 50s ease-in-out infinite !important;
} */



/* #game-container {
    display: flex;
    width: 29vw;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    overflow: hidden;
    gap: 20px;
    padding: 20px;
    height: auto;
    transform: none;

    background-image: url(/background.jpg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: background-move 50s ease-in-out infinite !important;
} */






#game-container {
    display: flex;
    width: 29vw;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    /* justify-content: center; */
    text-align: center;
    overflow: hidden;
    gap: 5px;
    /* padding: 20px; */
    padding: 90px 20px 20px 20px;
    height: auto;
    transform: none;
    background-image: url(/background.jpg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: background-move 50s ease-in-out infinite !important;
    resize: horizontal;
    min-width: 20vw;
    max-width: 60vw;
}


.resize-handle:hover .resize-percentage,
.resize-handle.active .resize-percentage {
    opacity: 1;
}

/* Add a resize handle styling */
.resize-handle {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: ew-resize;
    top: 0;
    right: 0;
    z-index: 999;
    transition: background-color 0.3s;
}

.resize-handle:hover, .resize-handle.active {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Update operator container to adjust its width based on game container */
#operator-container {
    width: calc(100vw - var(--game-container-width, 29vw) - 40px); /* 40px accounts for padding */
    /* Rest of your existing styles */
}

/* Add styles for the drag bar appearance */
.drag-bar {
    position: absolute;
    top: 0;
    right: -5px;
    width: 10px;
    height: 100%;
    background-color: rgba(74, 144, 226, 0.3);
    cursor: ew-resize;
    transition: background-color 0.2s;
    z-index: 1000;
}

.drag-bar:hover {
    background-color: rgba(74, 144, 226, 0.6);
}

/* Add a visual indicator when dragging */
.drag-bar.dragging {
    background-color: rgba(74, 144, 226, 0.8);
}









#game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }
  
  .control-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 26px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
  }
  
    .control-button:hover {
    background-color: rgb(var(--primary-color) / 10%);
    transform: translateY(-2px);
  }
  
  .control-button:active {
    transform: translateY(0);
  }
  
  .control-button svg {
    width: 16px;
    height: 16px;
  }
  
  .control-button.paused span {
    color: var(--text-color);
  }
  
  .control-button.paused {
    background-color: var(--primary-color);
    border-color: rgb(var(--primary-color) / 10%);
  }

  /* Operator Mode Toggle */
  #operator-mode-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    gap: 8px;
  }

  .operator-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(0,0,0,0.35);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
  }

  .operator-toggle-button svg {
    width: 16px;
    height: 16px;
  }

  /* Settings button - icon only */
  #settings-button {
    padding: 8px;
    min-width: auto;
  }

  .operator-toggle-button:hover {
    background-color: color-mix(in srgb, var(--primary-color) 60%, black);
    transform: scale(1.05);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 80%, black);
  }

    .operator-toggle-button.active {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        color: var(--text-color);
        border-color: var(--secondary-color);
        box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 80%, black), 0 0 40px color-mix(in srgb, var(--primary-color) 50%, black);
        animation: glow-pulse 2s ease-in-out infinite;
    }

  @keyframes glow-pulse {
    0%, 100% {
      box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 80%, black), 0 0 40px color-mix(in srgb, var(--primary-color) 50%, black);
    }
    50% {
      box-shadow: 0 0 30px color-mix(in srgb, var(--primary-color) 100%, black), 0 0 60px color-mix(in srgb, var(--primary-color) 70%, black);
    }
  }

  /* Viewer Hint Display */
  .viewer-hint {
    position: relative;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-20px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 15px 5px;
    display: flex;
    text-align: start;
    align-items: center;
    gap: 5px;
    font-size: calc(var(--font-size) - 5px);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--primary-color) 100%, black), 0 8px 60px color-mix(in srgb, var(--primary-color) 70%, black);
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 158, 80, 0.3); */
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
  }

  .viewer-hint.show {
    opacity: 1;
    z-index: 9999;
    transform: translateY(-20px);
  }

  .viewer-hint svg {
    color: var(--text-color);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary-color) 80%, black));
  }

  .viewer-hint span {
    flex: 1;
    line-height: 1.4;
  }







#operator-container {
    display: flex;
    width: 100%;
    position: relative;
    flex-direction: column;
    align-items: center;
    /* padding-top: 280px !important; */
    justify-content: start;
    text-align: center;
    overflow: visible;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    background-color: var(--primary-color, #3C2418);
    color: var(--text-color, #fff);
    /* border-radius: 8px; */
    /* perspective: 1000px;  */
    transform: none;
}

/* .vr-environment {
    position: relative;
    width: 100vw !important;
    display: flex;
    justify-content: center;
    height: 100vh !important;
    align-items: center;
    background-image: url('vrbg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    animation: moveEnvironment 35s linear infinite;
} */

/* Keyframes to animate the background position */
@keyframes moveEnvironment {
    0% {
        transform: translateX(0) translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateX(2%) translateY(2%) rotateY(10deg);
    }
    50% {
        transform: translateX(3%) translateY(1%) rotateY(0deg);
    }
    75% {
        transform: translateX(2%) translateY(2%) rotateY(-10deg);
    }
    100% {
        transform: translateX(0) translateY(0) rotateY(0deg);
    }
}





@-webkit-keyframes background-move {
    0% { background-position: right center; }
    30% { background-position: left bottom; }
    50% { background-position: right bottom; }
    70% { background-position: left top;}
    100% { background-position: right center;}
}
@keyframes background-move {
    0% { background-position: right center; }
    30% { background-position: left bottom; }
    50% { background-position: right bottom; }
    70% { background-position: left top;}
    100% { background-position: right center;}
}


#word-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    background-color: var(--primary-color);
    border-radius: 12px;
    /* padding: 10px; */
    width: 100%;
    padding: 10px;
    z-index: 99999;
    color: var(--text-color);
    font-weight: bold;
    justify-content: center;
    /* margin-bottom: 20px; */
}

#word-container.reversed {
    flex-direction: row-reverse; /* Reversed direction */
}

#taptap progress {
    width:100%;
    height: 30px;
    border-radius: 55%;
}

#taptap progress::-webkit-progress-bar {background-color: #523728; width: 100%; border-radius: 5px;}
#taptap progress::-moz-progress-bar { background: #6e4128; border-radius: 5px}
#taptap progress::-webkit-progress-value { background: #8c4a27; border-radius: 5px}

#taptap.tournament progress::-webkit-progress-bar {background-color: #18250d !important; width: 100%; border-radius: 5px;}
#taptap.tournament progress::-moz-progress-bar { background: #304b1a !important; border-radius: 5px}
#taptap.tournament progress::-webkit-progress-value { background: #324f1b !important; border-radius: 5px}


#taptap {
    display: flex;
    width: 100%;
    border-radius: 55px;
    justify-content: center;
    align-items: center;
    /* padding: 5px; */
    background-color: var(--primary-color);
}

#gift-list div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: calc(25% - 14px);
    /* height: 100%; */
    gap: 5px;
    padding: 5px;
    font-weight: bold;
    border-radius: 12px;
    color: var(--text-color);
    background-color: var(--primary-color);
}
#gift-list div img{
    display: flex;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-image: url(/gift.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    /* background-color: hsl(286, 73%, 47%); */
    mix-blend-mode: lighten;
    opacity: 1;
	transform: scale(1);
    /* animation: gift-pulse 5s ease-in-out infinite, rotate 20s ease-in-out infinite; */
    animation: gift-pulse 5s ease-in-out infinite;

}

@-webkit-keyframes gift-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    70% { transform: scale(1); opacity: 1;}
    100% { transform: scale(0.95); opacity: 0.9;}
}
@keyframes gift-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    70% { transform: scale(1); opacity: 1;}
    100% { transform: scale(0.95); opacity: 0.9;}
}

@-webkit-keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#gift-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 5px;
    width: 100%;
}





#word-hint {
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 12px;
    color: var(--text-color);
}

.word-hint svg{
flex-shrink: 0;
}

/* .word-hint {
    display: flex;
    text-align: center;
    align-items: center;
    font-weight: bold;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    padding: 20px;
    color: white;
    text-align: start;
} */







.word-hint {
    display: flex;
    flex-direction: column;
    background-color: color-mix(in srgb, var(--primary-color) 80%, black);
    color: var(--text-color, #fff);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--primary-color) 80%, black);
    max-width: 100%;
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.hint-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    align-self: start;
    width: 100%;
    align-items: center;
}

.hint-section:last-child {
    margin-bottom: 0;
}

.hint-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    color: var(--text-color, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-content {
    flex-grow: 1;
    line-height: 1.5;
    color: white;
    text-align: start;
}

.hint-label {
    font-weight: bold;
    color: var(--text-color, #fff);
    margin-right: 5px;
}

.answer-section {
    align-self: start;
    justify-content: start;
}

.answer-section .hint-icon {
    color: #10ff00;
}

.answer-section .hint-label {
    color: #10ff00;
}








.letter {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 1.5em;
    margin: 0px 0px;
    margin: 5px;
    width: 32px;
    text-align: center;
}

.puzzle-row {
    color: white;
    font-size: var(--font-size, 20px);
    font-weight: bold;
}


/* Ensure trivia-option font size follows theme font size */
.trivia-option {
    width: 40%;
    /* margin-bottom: 10px; */
    display: flex;
    padding: 10px;
    border-radius: 5px;
    text-align: start;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size, 20px);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.trivia-option.correct-answer {
    border: 3px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    }
}

.years-option {
    width: 100%;
    /* height: 50px; */
    font-size: var(--font-size, 20px);
    /* margin-bottom: 10px; */
    display: flex;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    justify-content: space-between;
    align-items: center;
}

.trivia-index {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px; /* Set width for the index circle */
    height: 40px; /* Set height for the index circle */
    border-radius: 50%; /* Make it a circle */
    background-color: #ffffff2e; /* Set color for the circle */
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
    margin-right: 10px;
}

.hidden {
    visibility: hidden;
}
.hidden-letter {
    visibility: hidden;
}
.hidden-answer {
    visibility: hidden;
}

#emoji-list-container {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    /* justify-content: flex-start;
    align-items: flex-start; */
    /* margin-bottom: 20px; */
    flex-wrap: wrap;
    gap:10px;
    display: flex;
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 10px;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    justify-items: center;
}

#emoji-list-container img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
}


.emoji {
    display: flex;
    color: white;
    gap: 5px;
    font-weight: bold;
    flex-direction: column;
    align-items: center;
    font-size: 1.5em;
    /* padding: 10px; */
    width: calc(10% - 10px);
    /* margin: 5px; */
}



.emoji span {
    font-size: 0.5em;
    margin-top: 5px;
}

#chest.active {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 15px;
    top: -200px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 99999 !important;
    backdrop-filter: blur(5px);
    background-color: #11173970;
}

#notifications.active {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 15px;
    top: -200px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(5px);
    background-color: rgb(var(--primary-color) / 10%);
    z-index: 10000;
}

/* Confirmation Modal */
.modal {
    display: none;
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--primary-color, #2e231a) 0%, var(--primary-color, #3e2016) 100%);
    padding: 30px;
    color: var(--text-color, #fff);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    max-width: 80%;
}

#modal-title {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: bold;
}

#modal-message {
    color: #e0e0e0;
    margin: 0 0 25px 0;
    font-size: 1.1em;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confirm-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #da190b, #c41408);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

/* Chat Container */
#chat-container {
    width: 100%;
    height: calc(100vh);
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

/* Mobile not supported banner (global) */
.mobile-warning-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 6px;
    /* background: linear-gradient(90deg, rgba(255,149,0,0.06), rgba(255,255,255,0.02)); */
    /* border-left: 4px solid #ff9500; */
    color: #ffdca6;
    font-size: 0.95em;
}

.mobile-warning-banner .mobile-warning-dismiss {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.disabled-btn {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    filter: grayscale(20%);
}

/* When on mobile, hide all page UI except the mobile-warning-banner */
body.mobile-restricted {
    overflow: hidden;
}

body.mobile-restricted > *:not(.mobile-warning-banner) {
    display: none !important;
}

.mobile-warning-banner {
    /* Fullscreen primary-color cover (no glass effect) */
    position: fixed !important;
    inset: 0 !important;
    transform: none !important;
    z-index: 999999 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 0 !important; /* no horizontal padding */
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: var(--primary-color, #3C2418) !important;
}

.mobile-warning-banner .mobile-warning-text {
    color: var(--text-color, #fff);
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    max-width: 1000px;
    padding: 0 18px;
}


#start-session-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: white;
    cursor: pointer;
}

#start-session-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#chat-header {
    background: transparent;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.chat-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

#chat-container.collapsed .chat-toggle-btn {
    transform: rotate(-180deg);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

#chat-container.collapsed #chat-messages {
    display: none;
}

/* Settings Panel */
.settings-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color, #2D190E);
    color: var(--text-color, #fff);
    z-index: 1000;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.settings-panel.open {
    display: flex;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(224, 158, 80, 0.1);
    border-bottom: 2px solid var(--text-color);
    flex-shrink: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.settings-header h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.8rem;
}

.close-settings-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-settings-btn:hover {
    background: rgba(224, 158, 80, 0.2);
    transform: rotate(90deg);
}

.settings-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--text-color);
    flex-shrink: 0;
    z-index: 9;
}

.settings-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    border-bottom: 3px solid transparent;
}

/* Selected state for buttons inside team members list */
.settings-btn.selected {
    background: var(--secondary-color); /* filled */
    color: #fff;
    border-color: var(--text-color);
}

/* Background presets */
/* Theme presets */
#theme-presets {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.theme-preset {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer;
    display:flex; align-items:flex-end; justify-content:center; position:relative;
    background:#111;
}
.theme-preset img { width:100%; height:100%; object-fit:cover; display:block; }
.theme-preset .theme-label { position:absolute; left:0; right:0; bottom:0; padding:6px 8px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%); color:#fff; font-weight:600; font-size:0.85rem; text-align:left; }
.theme-preset.selected { border-color: var(--primary-color); box-shadow: 0 6px 20px rgba(0,0,0,0.6); }
.theme-preset .theme-selected-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.theme-preset.selected .theme-selected-badge {
    display: block;
}

.settings-tab:hover {
    background: rgba(224, 158, 80, 0.1);
}

.settings-tab.active {
    background: rgba(224, 158, 80, 0.2);
    border-bottom-color: #ffd700;
    color: #ffd700;
}

.settings-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-tab-content h3 {
    color: var(--text-color);
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(224, 158, 80, 0.3);
    padding-bottom: 10px;
}

.settings-tab-content h4 {
    color: var(--text-color);
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.settings-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--text-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.settings-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Placeholder color for settings inputs */
.settings-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Autofill handling (Chrome) so text doesn't appear black on dark backgrounds */
input.settings-input:-webkit-autofill,
textarea.settings-input:-webkit-autofill,
select.settings-input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 0 0px 1000px rgba(0,0,0,0.4) inset !important;
}

.settings-input.color-input {
    width: 100px;
    height: 50px;
    padding: 5px;
    cursor: pointer;
}

.settings-checkbox {
    width: auto;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--text-color);
}

textarea.settings-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

select.settings-input {
    cursor: pointer;
}

.settings-btn {
    padding: 12px 24px;
    background: rgba(224, 158, 80, 0.2);
    border: 2px solid var(--text-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.settings-btn:hover {
    background: rgba(224, 158, 80, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 158, 80, 0.4);
}

.settings-btn.primary {
    background: linear-gradient(135deg, var(--text-color) 0%, #c78640 100%);
    color: #2D190E;
    border-color: #ffd700;
}

.settings-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.settings-btn.danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border-color: #ff6666;
}

.settings-btn.danger:hover {
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
}

/* Database Tab Styles */
.database-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.db-tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.db-tab-btn:hover {
    background: var(--primary-color)/0.8;
    color:white;
    transform: translateY(-2px);
}

.db-tab-btn.active {
    background: var(--primary-color);
    color: #2D190E;
    font-weight: bold;
}

.player-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color, #fff);
    margin-bottom: 5px;
    text-align:left;
}

.player-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: white;
}

#database-content h4 {
    color: white;
}

.player-actions {
    display: flex;
    gap: 5px;
}

.player-actions button {
    padding: 5px 10px;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.player-actions .edit-btn {
    color: #4CAF50;
    border-color: #4CAF50;
}

.player-actions .delete-btn {
    color: #f44336;
    border-color: #f44336;
}

.player-actions button:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.image-preview {
    margin-top: 10px;
    min-height: 100px;
    border: 2px dashed rgba(224, 158, 80, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.questions-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(224, 158, 80, 0.3);
}

#questions-container {
    max-height: 400px;
    overflow-y: auto;
}

.question-item {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(224, 158, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: var(--text-color);
    background: rgba(224, 158, 80, 0.1);
}

.question-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-item-header strong {
    color: #ffd700;
    font-size: 1.1rem;
}

.question-item-actions {
    display: flex;
    gap: 5px;
}

.question-item-actions button {
    padding: 5px 10px;
    background: rgba(224, 158, 80, 0.2);
    border: 1px solid var(--text-color);
    border-radius: 5px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.question-item-actions button:hover {
    background: rgba(224, 158, 80, 0.4);
}

.question-item-actions button.delete {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.question-item-actions button.delete:hover {
    background: rgba(255, 0, 0, 0.4);
}

.question-item p {
    color: #ccc;
    margin: 5px 0;
    font-size: 0.95rem;
}

.question-item img {
    height: 150px;
    margin-top: 10px;
    border-radius: 5px;
    width: auto;
}

.question-item .question-image {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 5px;
}

.hidden {
    display: none !important;
}

/* Audio Settings Styles */
#audio-settings-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.audio-setting-item {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(224, 158, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.audio-setting-item:hover {
    border-color: var(--text-color);
    background: rgba(224, 158, 80, 0.1);
}

.audio-setting-header {
    margin-bottom: 12px;
}

.audio-setting-header label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.audio-description {
    display: block;
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 3px;
}

.audio-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.audio-upload {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(224, 158, 80, 0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-upload:hover {
    border-color: var(--text-color);
}

.audio-upload::file-selector-button {
    background: rgba(224, 158, 80, 0.3);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--text-color);
    cursor: pointer;
    margin-right: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.audio-upload::file-selector-button:hover {
    background: rgba(224, 158, 80, 0.5);
}

.audio-btn {
    padding: 8px 16px;
    background: rgba(224, 158, 80, 0.2);
    border: 2px solid var(--text-color);
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.audio-btn:hover {
    background: rgba(224, 158, 80, 0.3);
    transform: translateY(-2px);
}

.audio-btn.test-btn {
    border-color: #4CAF50;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.audio-btn.test-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

.audio-btn.reset-btn {
    border-color: #ff9800;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.2);
}

.audio-btn.reset-btn:hover {
    background: rgba(255, 152, 0, 0.3);
}

.chat-message {
    padding: 8px 0;
    border-radius: 0;
    background: transparent;
    border-left: none;
    animation: fadeIn 0.2s ease;
    text-align: left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.chat-message .username {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 6px;
    font-size: 0.9em;
}

.chat-message .text {
    color: rgba(255, 255, 255, 0.7);
    word-wrap: break-word;
    font-size: 0.9em;
}

.chat-message .timestamp {
    display: none;
}

/* Custom scrollbar for chat messages */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#word-timer {
    color: white;
    font-size: 2.5em;
    font-weight: bolder;
}

#word-timer.timer-urgent {
    animation: shake 1.5s infinite;
    color: #ff4444;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 90% { transform: translateX(-3px); }
    20%, 80% { transform: translateX(3px); }
    30%, 70% { transform: translateX(-2px); }
    40%, 60% { transform: translateX(2px); }
    50% { transform: translateX(0); }
}

#top-gifter {
    display: block;
    position: relative;
    justify-content:center;
    text-align:center;
    width:100%;
    padding-top: 20px;
    padding-bottom: 20px;
    /* float:right; */
    /* flex-direction: row; */
    color: white;
    /* color: rgba(255, 255, 255, 0.300); */
    font-weight: bold;
    /* white-space: nowrap; */
    gap: 10px;
    mix-blend-mode: luminosity;

    /* animation: spin 30s linear infinite; */
}
#top-gifter video {
    position: absolute;
    object-fit: cover;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 12px;
    height: 100%;
}

#top-gifter img{
    height: 80px;
    animation: pop 12s linear infinite;
    /* width: 100px; */
    opacity: 0; 
    visibility: hidden;
    /* transform: scale(0); */
    /* background-color: #2d190e70; */
    /* padding-left: 15px; */
    /* padding-top: 5px; */
    /* padding-bottom: 5px; */
    /* padding-right: 15px; */
    border-radius: 5px;
}

@keyframes pop {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    5% {
        opacity: 1;
        visibility: visible;
    }
    45% {
        opacity: 1;
        visibility: visible;
    }
    50% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

#top-gifter img:nth-child(1) {
    animation-delay: 0s;
}

#top-gifter img:nth-child(2) {
    animation-delay: 0.5s;
}

#top-gifter img:nth-child(3) {
    animation-delay: 1s;
}

#top-gifter img:nth-child(4) {
    animation-delay: 1.5s;
}

#top-gifter img:nth-child(5) {
    animation-delay: 2s;
}

#top-gifter img:nth-child(6) {
    animation-delay: 2.5s;
}


@keyframes spin {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}


/* #top-five {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
    white-space: nowrap;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.300);
    animation: spin 90s linear infinite;

} */
#stats-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 700;
    white-space: normal;
    /* padding: 12px; */
}

/* Fullscreen overlay that fills the game container and uses the primary color as a solid background */
#stats-wrapper.fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    inset: 0;
    padding: 28px;
    width: 100%;
    z-index: 99999 !important;
    height: 100%;
    transform: none;
    background: var(--primary-color);
    border-radius: 0;
    box-shadow: none;
    transition: opacity 200ms ease;
    opacity: 0;
}

#stats-wrapper.fullscreen.visible {
    opacity: 1;
}

#stats-wrapper .stat-title {
    font-size: var(--font-size - 10px);
    color: rgba(255,255,255,0.85);
    /* font-weight: 700; */
    text-transform: uppercase;
    letter-spacing: 1px;
}

#stats-wrapper .stat-subtitle {
    font-size: var(--font-size - 15px);
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#stats-wrapper .stat-value {
    font-size: var(--font-size + 10px);
    font-weight: 800;
    color: #fff;
}

#stats-wrapper > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stats-wrapper .stat-card {
    display:flex;
    flex-direction:column;
    gap:8px;
    width: 100%;
    max-width: 820px;
    padding: 12px 18px;
    box-sizing: border-box;
    color: #fff;
}

.stat-value.animate {
    animation: popIn 560ms cubic-bezier(.2,.9,.3,1);
}

@keyframes popIn {
    0% { transform: translateY(6px) scale(0.98); opacity: 0; }
    60% { transform: translateY(-4px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* close button removed - stats overlay is controlled from operator container */

@media (max-width: 800px) {
    #stats-wrapper.fullscreen {
        padding: 18px;
    }
    #stats-wrapper.fullscreen .left, #stats-wrapper.fullscreen .right {
        min-width: auto;
        width: 100%;
        margin: 6px 0;
    }
    #stats-wrapper { font-size: 14px; }
}
#stats-wrapper .left {
    display: flex;
    gap: 5px;
    text-align: start;
    flex-direction: column;

}

#stats-wrapper .right {
    display: flex;
    gap: 5px;
    text-align: start;
    flex-direction: column;
}


    
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

#top-five {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 15px;
    height: 20px;
    white-space: nowrap;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.300);
    overflow: hidden; /* Ensures content is contained */
    position: relative; /* Needed for child absolute positioning */
}

/* #king-top-five-content {
    display: flex;
    color: white;
    white-space: nowrap;
    width: fit-content;
    font-weight: bold;
}
#king-top-five-contentt div > :first-child::before {
    content: '👑';
} */

#top-five-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
    height: 20px;
    gap: 15px;
    transform: 0;
    animation: spin 100s linear infinite;
    position: absolute;
}


.confetti-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    z-index: 9999;
  }

.confetti {
    position: absolute;
    background: #e44d26;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform-origin: 50% 50%;
    opacity: 0.9;
    animation: confetti-fall 3s ease-out infinite;
    transition: opacity 1s ease; /* Adicionando a transição */
  }
  
  @keyframes confetti-fall {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    100% {
      transform: translateY(100vh) rotate(360deg);
    }
  }
  

.highlight-correct-subscriber {
    background-color: #9b8300;
    color: white;
}

.highlight-correct {
    background-color: rgba(0, 128, 0, 0.5);
    color: white;
}

.years-answers {
    width: 100%;
    display: flex;
    gap:5px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.trivia-answers {
    width: 100%;
    display: flex;
    gap:5px;
    margin-top: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

#cracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

#game-mode-counters {
    position: absolute;
    right: 40px;
    bottom: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row !important;
    pointer-events: none;
    user-select: none;
    z-index: 9997;
    mix-blend-mode: luminosity;
    align-items: end;
}

#cracks img {
    mix-blend-mode: soft-light;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}


.progress-round .fill {
    fill: none;
    stroke: white;
    stroke-width: 28;
  }
  .progress-round .track {
    cx: 90;
    cy: 90;
    fill: none;
    r: 76;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 28;
  }
  


.plinko-game {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    background: transparent !important;
    z-index: 100 !important;
}

#plinko-results {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    animation: scrollUp 30s linear infinite;
}

#plinko-results p {
    font-size: 25px;
}

#plinko-bonus-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

.bonus-box {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--primary-color) 90%, transparent), 
        color-mix(in srgb, var(--secondary-color) 90%, transparent));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 120px;
    /* box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 30%, transparent); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bonus-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bonus-value {
    font-size: 24px;
    color: var(--text-color);
    font-weight: bold;
    text-shadow: 0 0 10px color-mix(in srgb, var(--secondary-color) 50%, transparent);
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}



@keyframes shake {
    0% { transform: translate(0, 0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-5px, -5px) rotate(-2deg); }
    20%, 40%, 60%, 80%, 100% { transform: translate(5px, 5px) rotate(2deg); }
}


.earthquake {
    animation: shake 3.5s infinite alternate;
}



















    .piggy-container  {
        position: relative;
        width: 69px;
        height: 65px;
        z-index: 9999;
        background-image: url(https://i.imgur.com/azkBULz.png);
        background-size: 759px 65px;
        background-position: 0 0;
        background-repeat: no-repeat;
        animation: play 1s steps(11) infinite;
        overflow: hidden;
        filter: brightness(calc(0.5 + var(--piggy-fill-height, 0%) * 0.008));
        opacity: calc(0.4 + var(--piggy-fill-height, 0%) * 0.006);
        mix-blend-mode: luminosity;
        transition: filter 0.3s ease, opacity 0.3s ease;
        transform: scale(0.6);
        transform-origin: center;
    }
    
    .piggy-container span {
        position: absolute;
        font-weight: bold;
        color: white;
        text-shadow: 0 0 3px black, 0 0 5px black;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        font-size: 12px;
    }

    .wheel-container-ui {
        position: relative;
        width: 50px;
        height: 50px;
        z-index: 9998;
        background-image: url('https://www.svgrepo.com/show/422180/wheel-lucky-game.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        overflow: hidden;
        filter: brightness(calc(0.5 + var(--fill-height, 0%) * 0.008));
        opacity: calc(0.4 + var(--fill-height, 0%) * 0.006);
        mix-blend-mode: luminosity;
        transition: filter 0.3s ease, opacity 0.3s ease;
    }
    
    .wheel-container-ui span {
        position: absolute;
        font-weight: bold;
        color: white;
        text-shadow: 0 0 3px black, 0 0 5px black;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        font-size: 12px;
    }

    /* .piggy.broken {
        visibility: hidden;
        background-image: url(https://i.imgur.com/aS5uXeC.png) !important;
    } */

    @keyframes movePiggy {
        0% { top: 10%; left: 10%; }
        10% { top: 20%; left: 50%; }
        20% { top: 30%; left: 70%; }
        30% { top: 50%; left: 20%; }
        40% { top: 60%; left: 40%; }
        50% { top: 80%; left: 60%; }
        60% { top: 40%; left: 80%; }
        70% { top: 20%; left: 30%; }
        80% { top: 70%; left: 50%; }
        90% { top: 30%; left: 20%; }
        100% { top: 10%; left: 10%; }
    }

    @-webkit-keyframes play{
    from { background-position: 0px; }
        to { background-position: -759px; }
    }

    @-moz-keyframes play{
    from { background-position: 0px; }
        to { background-position: -759px; }
    }


    @-ms-keyframes play{
    from { background-position: 0px; }
        to { background-position: -759px; }
    }

    @-o-keyframes play{
    from { background-position: 0px; }
        to { background-position: -759px; }
    }

    @-keyframes play{
    from { background-position: 0px; }
        to { background-position: -759px; }
    }





  
    .blazing {
        text-shadow:
            0 3px 20px red,
            0 0 20px red,
            0 0 10px orange,
            4px -5px 6px yellow,
            -4px -10px 10px yellow,
            0 -10px 30px yellow;
        animation: 2s Blazing infinite alternate linear;
    }

    @keyframes Blazing {
        0%   { text-shadow: 0 3px 20px red, 0 0 20px red,
            0 0 10px orange,
            0 0 0 yellow,
            0 0 5px yellow,
            -2px -5px 5px yellow,
            4px -10px 10px yellow; }
        25%   { text-shadow: 0 3px 20px red, 0 0 30px red,
            0 0 20px orange,
            0 0 5px yellow,
            -2px -5px 5px yellow,
            3px -10px 10px yellow,
            -4px -15px 20px yellow; }
        50%   { text-shadow: 0 3px 20px red, 0 0 20px red,
            0 -5px 10px orange,
            -2px -5px 5px yellow,
            3px -10px 10px yellow,
            -4px -15px 20px yellow,
            2px -20px 30px rgba(255,255,0,0.5); }
        75%   { text-shadow: 0 3px 20px red, 0 0 20px red,
            0 -5px 10px orange,
            3px -5px 5px yellow,
            -4px -10px 10px yellow,
            2px -20px 30px rgba(255,255,0,0.5),
            0px -25px 40px rgba(255,255,0,0)}
        100%   { text-shadow: 0 3px 20px red, 0 0 20px red,
            0 0 10px orange,
            0 0 0 yellow,
            0 0 5px yellow,
            -2px -5px 5px yellow,
            4px -10px 10px yellow; }
    }








    .fade-text {
        opacity: 1;
        transition: opacity 1.5s;
    }

    /* .fade-text {
        animation: fadeEffect 20s infinite;
    }
    
    @keyframes fadeEffect {
        0%, 20%, 100% { opacity: 0; }
        50%, 70% { opacity: 1; }
    } */
/* Billing Tab Styles */
.stat-card {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    color: white;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    /* margin: 10px 0; */
}

/* PayPal Button Container */
#paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Style PayPal card fields to match UI */
#paypal-button-container iframe {
    border-radius: 8px !important;
}

/* PayPal card field styling */
.paypal-card-field {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 12px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.paypal-card-field:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

.paypal-card-field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.donation-amount-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.donation-amount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(255,255,255,0.5);
}

.donation-amount-btn:active {
    transform: translateY(0);
}

.donation-amount-btn.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #38ef7d;
    box-shadow: 0 5px 20px rgba(56, 239, 125, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 71, 87, 0);
    }
}

/* Billing warning toast */
.billing-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease;
    max-width: 350px;
}

.billing-toast.critical {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Payment history item */
.payment-history-item {
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #4facfe;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-history-item .payment-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.payment-history-item .payment-amount {
    color: #4facfe;
    font-size: 1.2rem;
    font-weight: bold;
}

.payment-history-item .payment-method {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Word Match Game Mode Styles */
.word-slots-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.word-slot {
    width: auto;
    min-width: 30px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size);
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 5px;
}

.word-letters-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* padding: 20px; */
    max-width: 500px;
    margin: 0 auto;
}

.word-letter-tile {
    width: 55px;
    height: 65px;
    /* background: linear-gradient(145deg, #69593D, #53462F); */
    /* border: 2px solid #3D3021; */
    /* border-radius: 8px; */
    display: flex;
    content: '_';
    align-items: center;
    justify-content: center;
    font-size: var(--font-size);
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    transition: all 0.2s ease;
    /* box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.15),
        0 3px 6px rgba(0,0,0,0.3); */
    user-select: none;
    pointer-events: none;
}
