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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2246 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 100px; /* Space for top app bar */
}

/* Hot Games CTA Button */
.hot-games-cta {
    margin-top: 15px;
    text-align: center;
}

.hot-games-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #ff6b6b, #ff8e53);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    color: white;
    border: none;
    padding: 12px 70px;
    width: 100%;
    border-radius: 13px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hot-games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #ff7043);
}

.hot-games-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.hot-games-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

.hot-games-text {
    font-size: 22px;
    letter-spacing: 0.5px;
    animation: textScale 2s ease-in-out infinite;
}

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

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

.hot-games-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.hot-games-btn:hover .hot-games-arrow {
    transform: translateX(3px);
}

.hot-games-btn .hot-games-text {
    color: white !important;
    opacity: 1 !important;
    z-index: 2;
    position: relative;
}

.floating-arrow-overlay {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    animation: floatingArrow 2s ease-in-out infinite;
    opacity: 1;
    pointer-events: none;
}

@keyframes floatingArrow {
    0%, 100% {
        transform: translateY(-50%) translateX(0px) translateY(0px);
        opacity: 1;
    }
    25% {
        transform: translateY(-50%) translateX(2px) translateY(-3px);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) translateX(5px) translateY(0px);
        opacity: 1;
    }
    75% {
        transform: translateY(-50%) translateX(2px) translateY(3px);
        opacity: 1;
    }
}

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

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

/* Gates of Olympus Demo Section */
.gates-demo-container {
    position: relative;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gates-demo-container:hover {
    transform: translateY(-5px);
}

.gates-demo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.gates-cta-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.animated-btn {
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    to {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6), 0 0 15px rgba(255, 107, 107, 0.4);
    }
}

/* Promo Button Animations */
.promo-btn-container {
    position: relative;
    display: inline-block;
}

.animated-promo {
    animation: promoPulse 2s ease-in-out infinite;
}

.animated-arrow {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    animation: arrowBounce 1.5s ease-in-out infinite;
    z-index: 10;
}

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

@keyframes arrowBounce {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(3px, -3px) rotate(-5deg);
    }
    50% {
        transform: translate(0, -6px) rotate(0deg);
    }
    75% {
        transform: translate(-3px, -3px) rotate(5deg);
    }
}

/* Play Games Text Pulse Animation */
.play-btn-text {
    animation: textPulse 1.8s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.instruction {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.angpau-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.angpau-grid.shuffling {
    pointer-events: none;
}

.angpau.shuffling {
    z-index: 100;
    transition: all 1s ease-in-out;
}

.angpau.shuffle-center {
    transform: translate(var(--shuffle-x), var(--shuffle-y)) scale(0.8) !important;
}

.angpau.shuffle-return {
    transform: translate(0, 0) scale(1) !important;
}

.angpau {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    cursor: pointer;
    perspective: 1000px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hand-pointer {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-image: url('img/hand-pointer.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    animation: pointAnimation 1.5s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

.hand-pointer.show {
    opacity: 1;
}

@keyframes pointAnimation {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-15px, -15px);
    }
}

.angpau-front,
.angpau-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.angpau-front {
    background: linear-gradient(135deg, #3d3d3d 0%, #2c2c2c 50%, #080808 100%);
    border: 1.5px solid #ffd700;
    transform: rotateY(0deg);
}

.angpau-symbol {
    width: 20px;
    height: 23px;
    opacity: 80%;
    object-fit: contain;
}

.angpau-back {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 3px solid #ffd700;
    transform: rotateY(180deg);
}

.prize-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c92a2a;
}

.angpau.flipped .angpau-front {
    transform: rotateY(180deg);
}

.angpau.flipped .angpau-back {
    transform: rotateY(0deg);
}

.angpau:not(.selected):not(.flipped):hover .angpau-front {
    transform: scale(1.05) rotateY(0deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.angpau.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.angpau.selected .angpau-front {
    animation: pulse 0.5s ease;
}

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

/* Modal Styles */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

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

.modal.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%),
                url('gif/08-51-41-992_512.gif') center center / cover;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(1px);
}

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

.modal-content h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.prize-message {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
}

.screenshot-instruction {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
    font-style: italic;
}

#prizeAmount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5aae5b;
    display: block;
    margin: 20px 0;
}

.reset-btn {
    background: linear-gradient(135deg, #c92a2a 0%, #e03131 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 42, 42, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 42, 42, 0.4);
}

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

/* Refresh Button */
.refresh-btn {
    background: linear-gradient(135deg, #84ff47 0%, #34db98 100%);
    color: white;
    text-shadow: 0px 1px 7px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin: 30px auto;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.refresh-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeInUp 0.5s ease;
}

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

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.refresh-btn:disabled {
    background: linear-gradient(135deg, #eac566 0%, #da9f09 100%);
    cursor: not-allowed;
    opacity: 1;
    animation: refreshGradient 2s ease-in-out infinite;
    min-width: 140px;
    min-height: 35px;
    width: 140px;
    height: 35px;
    box-sizing: border-box;
}

@keyframes refreshGradient {
    0%, 100% {
        background: linear-gradient(135deg, #eac566 0%, #fabb1c 100%);
    }
    50% {
        background: linear-gradient(135deg, #eac566 0%, #ffc739 100%);
    }
}

/* Winners Section */
.winners-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #2a1b3d 0%, #44318d 50%, #6a4c93 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 154, 57, 0.3);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.winners-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.winners-title-section {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.winners-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: breathe 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.live-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    animation: breatheText 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.won-today-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(76, 175, 80, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.won-today-amount {
    color: #e9e04a;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 
        0 0 8px rgba(76, 175, 80, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    animation: amountGlow 2s ease-in-out infinite alternate;
    line-height: 1;
}

.won-today-label {
    color: #ead836;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

@keyframes amountGlow {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes breatheText {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.winners-container {
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 154, 57, 0.2);
    position: relative;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    height: 100%;
}

.winner-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInWinner 0.5s ease;
    border-left: 4px solid #d39c00;
}

@keyframes slideInWinner {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.winner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.winner-name {
    font-weight: bold;
    color: #ededed;
    font-size: 1rem;
}

.winner-phone {
    color: #ecb900;
    font-size: 0.85rem;
}

.winner-prize {
    background: linear-gradient(135deg, #53b22f 0%, #469f18 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 9px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(201, 42, 42, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .angpau-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .instruction {
        font-size: 1rem;
    }

    .angpau-symbol {
        font-size: 2rem;
    }

    .prize-amount {
        font-size: 1.2rem;
    }

    .winners-section {
        margin-top: 65px;
        padding: 15px;
        height: 350px;
    }

    .winners-section h3 {
        font-size: 1.1rem;
    }
    
    .won-today-amount {
        font-size: 1rem;
    }
    
    .won-today-label {
        font-size: 0.6rem;
    }
    
    .won-today-status {
        padding: 6px 10px;
    }

    .live-text {
        font-size: 0.8rem;
    }

    .live-dot {
        width: 10px;
        height: 10px;
    }

    .winner-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }



    .winner-name {
        font-size: 0.9rem;
    }

    .winner-phone {
        font-size: 0.8rem;
    }

    .winner-prize {
        align-self: flex-end;
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .hand-pointer {
        width: 30px;
        height: 30px;
        bottom: -8px;
        right: -8px;
    }

    .refresh-btn {
        margin: 25px auto;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .angpau-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        max-width: 100%;
    }

    .angpau {
        aspect-ratio: 3/4;
    }

    h1 {
        font-size: 20px;
    }

    .angpau-symbol {
        font-size: 1.2rem;
    }

    .prize-amount {
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .winners-section {
        margin-top: 40px;
        padding: 12px;
        height: 300px;
    }

    .winners-section h3 {
        font-size: 1.1rem;
    }
    
    .won-today-amount {
        font-size: 0.7rem;
    }
    
    .won-today-label {
        font-size: 0.55rem;
    }
    
    .won-today-status {
        padding: 5px 8px;
    }

    .winners-header {
        margin-bottom: 12px;
    }

    .live-text {
        font-size: 0.7rem;
    }

    .live-dot {
        width: 8px;
        height: 8px;
    }

    .winner-item {
        padding: 8px 15px;
        gap: 0px;
    }

    .winner-name {
        font-size: 16px;
    }

    .winner-phone {
        font-size: 14px;
    }

    .winner-prize {
        font-size: 0.8rem;
        padding: 5px 20px;
    }

    .hand-pointer {
        width: 25px;
        height: 25px;
        bottom: -6px;
        right: -6px;
    }

    @keyframes pointAnimation {
        0%, 100% {
            transform: translate(0, 0);
        }
        50% {
            transform: translate(-10px, -10px);
        }
    }

    .refresh-btn {
        margin: 20px auto;
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* ==================== Already Played Modal Styles ==================== */

.already-played-modal {
    max-width: 450px;
    width: 90%;
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%),
                url('gif/08-51-41-992_512.gif') center center / cover;
    position: relative;
    backdrop-filter: blur(1px);
}

.modal-icon-wrapper {
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 4rem;
    animation: warningPulse 2s ease-in-out infinite;
    display: block;
}

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

.already-played-modal h2 {
    color: #dc3545;
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.already-played-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
    white-space: pre-line;
}

.player-reward-display {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.reward-label {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.reward-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #e9ecef;
}

.contact-info p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 1rem;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.livechat-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.website-btn {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .already-played-modal {
        padding: 25px 15px;
        margin: 10px;
    }
    
    .warning-icon {
        font-size: 3rem;
    }
    
    .already-played-modal h2 {
        font-size: 1.6rem;
    }
    
    .already-played-message {
        font-size: 14px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .reward-amount {
        font-size: 2rem;
    }
    
    .reward-label {
        font-size: 0.9rem;
    }
}

/* ==================== Top App Download Bar ==================== */

.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDownBar 0.5s ease;
}

@keyframes slideDownBar {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-bar-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
}

/* Logo Section */
.app-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(103, 126, 234, 0.25),
        0 3px 10px rgba(103, 126, 234, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.logo-placeholder span {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.logo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(103, 126, 234, 0.35),
        0 5px 15px rgba(103, 126, 234, 0.25);
}

.logo-image {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(103, 126, 234, 0.25),
        0 3px 10px rgba(103, 126, 234, 0.15);
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(103, 126, 234, 0.35),
        0 5px 15px rgba(103, 126, 234, 0.25);
}

/* App Info Section */
.app-info {
    flex: 1;
    min-width: 0;
}

.app-details {
    text-align: left;
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 0px 0;
    line-height: 1.2;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #ddd;
    transition: all 0.2s ease;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
    animation: starTwinkle 2s ease-in-out infinite;
}

.star.half {
    background: linear-gradient(90deg, #ffd700 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.reviews-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.app-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(103, 126, 234, 0.25),
        0 2px 8px rgba(103, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    white-space: nowrap;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(103, 126, 234, 0.35),
        0 4px 15px rgba(103, 126, 234, 0.25);
}

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

.btn-icon {
    color: #fff;
    display: flex;
    align-items: center;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.btn-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.btn-sublabel {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1;
    margin-top: 2px;
    font-weight: 500;
}

.close-bar-btn {
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.close-bar-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-bar-content {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .logo-placeholder span {
        font-size: 10px;
    }
    
    .app-name {
        font-size: 16px;
    }
    
    .app-description {
        font-size: 12px;
    }
    
    .download-btn {
        padding: 12px 18px;
        min-width: 120px;
    }
    
    .btn-label {
        font-size: 13px;
    }
    
    .btn-sublabel {
        font-size: 10px;
    }
    
    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .app-bar-content {
        padding: 10px 23px;
        gap: 17px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .app-name {
        font-size: 15px;
    }
    
    .app-rating {
        gap: 6px;
        margin-bottom: 2px;
    }
    
    .star {
        font-size: 14px;
    }
    
    .rating-text {
        font-size: 13px;
    }
    
    .reviews-count {
        font-size: 11px;
    }
    
    .app-description {
        font-size: 11px;
    }
    
    .download-btn {
        padding: 10px 14px;
        gap: 6px;
        min-width: 100px;
    }
    
    .btn-text {
        display: flex;
    }
    
    .btn-sublabel {
        display: none;
    }
    
    .close-bar-btn {
        width: 28px;
        height: 28px;
    }
    
    body {
        padding-top: 70px;
    }
}

@media (max-width: 375px) {
    .app-description {
        display: none;
    }
    
    .download-buttons {
        gap: 8px;
    }
}

/* Top bar hide animation */
.top-app-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* ==================== Bottom Navigation Bar ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 
        0 -10px 30px rgba(0, 0, 0, 0.1),
        0 -1px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-item:hover {
    background: rgba(103, 126, 234, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(103, 126, 234, 0.3),
        0 3px 10px rgba(103, 126, 234, 0.2);
}

.nav-item.active .nav-icon {
    color: #fff;
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    color: #fff;
    font-weight: 600;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: #666;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(255, 71, 87, 0.4),
        0 1px 3px rgba(255, 71, 87, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 2px 8px rgba(255, 71, 87, 0.4),
            0 1px 3px rgba(255, 71, 87, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 4px 12px rgba(255, 71, 87, 0.6),
            0 2px 6px rgba(255, 71, 87, 0.4);
    }
}

/* Smooth scroll behavior for page transitions */
html {
    scroll-behavior: smooth;
}

/* Adjust main content to avoid overlap with bottom nav */
body {
    padding-bottom: 80px;
}

.container {
    padding-bottom: 20px;
    padding-top: 38px;
}

/* Hover effects for non-active items */
.nav-item:not(.active):hover .nav-icon {
    color: #667eea;
    transform: scale(1.05);
}

.nav-item:not(.active):hover .nav-label {
    color: #667eea;
}

/* Active state animation */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .bottom-nav {
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    }
    
    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }
    
    .nav-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .notification-badge {
        top: 1px;
        right: 6px;
        font-size: 8px;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 375px) {
    .nav-item {
        padding: 4px 6px;
        min-width: 45px;
    }
    
    .nav-label {
        font-size: 9px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: rgba(26, 26, 46, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-icon {
        color: #888;
    }
    
    .nav-label {
        color: #888;
    }
    
    .nav-item:hover {
        background: rgba(103, 126, 234, 0.2);
    }
    
    .nav-item:not(.active):hover .nav-icon,
    .nav-item:not(.active):hover .nav-label {
        color: #667eea;
    }
}

/* ==================== Play Games Modal ==================== */

.play-games-modal {
    max-width: 420px;
    width: 90%;
    height: auto;
    padding: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
    animation: playModalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes playModalSlide {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.play-games-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.play-games-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.play-games-image:hover {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: gameIconBounce 2s ease-in-out infinite;
}

.image-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.play-games-content {
    padding: 30px 25px;
    text-align: center;
    background: #fff;
}

.play-games-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.play-games-content p {
    font-size: 1rem;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.play-games-btn {
    background: linear-gradient(135deg, #a2c543 0%, #008a07 100%);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(103, 126, 234, 0.3),
        0 3px 10px rgba(103, 126, 234, 0.2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.play-games-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.play-games-btn:hover::before {
    left: 100%;
}

.play-games-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(103, 126, 234, 0.4),
        0 5px 15px rgba(103, 126, 234, 0.3);
}

.play-games-btn:active {
    transform: translateY(-1px);
}

.play-btn-icon {
    font-size: 1.3rem;
    animation: gameIconBounce 2s ease-in-out infinite;
}

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

.play-btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Close button for modal */
.play-games-modal::after {
    content: '×';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.play-games-modal::after:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Invisible clickable area for close button */
.close-btn-area {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 11;
    border-radius: 50%;
}

/* Responsive design */
@media (max-width: 480px) {
    .play-games-modal {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .play-games-image-container {
        height: 370px;
    }
    
    .play-games-content {
        padding: 25px 20px;
    }
    
    .play-games-content h3 {
        font-size: 21px;
    }
    
    .play-games-content p {
        font-size: 0.9rem;
    }
    
    .play-games-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .play-btn-icon {
        font-size: 1.1rem;
    }
}

/* ==================== Welcome Games Modal ==================== */
.welcome-games-modal {
    max-width: 420px;
    width: 90%;
    height: auto;
    padding: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
    animation: playModalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-games-modal .play-games-image-container {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.step-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 15;
}

.carousel-slide.active .step-badge {
    opacity: 1;
    transform: translateY(0);
}

.welcome-games-modal .play-games-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    border-radius: 10px;
}

.welcome-games-modal .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 3rem;
}

.welcome-games-modal .play-games-content {
    padding: 30px 25px 25px;
    text-align: center;
    background: white;
}

.welcome-games-modal .play-games-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.welcome-games-modal .play-games-content p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
}

.welcome-games-modal .button-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.welcome-games-modal .play-games-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
}

.welcome-games-modal .play-games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.welcome-games-modal .play-games-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.welcome-games-modal .play-btn-icon {
    font-size: 1.3rem;
    animation: gameIconBounce 2s ease-in-out infinite;
}

.welcome-games-modal .play-btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.welcome-games-modal::after {
    content: '×';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.welcome-games-modal::after:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-games-modal {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .welcome-games-modal .play-games-image-container {
        height: 350px;
    }
    
    .welcome-games-modal .play-games-content {
        padding: 25px 20px;
    }
    
    .welcome-games-modal .play-games-content h3 {
        font-size: 21px;
    }
    
    .welcome-games-modal .play-games-content p {
        font-size: 0.9rem;
    }
    
    .welcome-games-modal .play-games-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .welcome-games-modal .play-btn-icon {
        font-size: 1.1rem;
    }
}

/* ==================== Welcome Modal ==================== */
.welcome-modal-content {
    max-width: 420px;
    width: 90%;
    height: auto;
    padding: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
    animation: welcomeModalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes welcomeModalSlide {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.welcome-modal .play-games-image-container {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-modal .play-games-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    border-radius: 10px;
}

.welcome-modal .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 3rem;
}

.welcome-modal .play-games-content {
    padding: 30px 25px 25px;
    text-align: center;
    background: white;
}

.welcome-modal .play-games-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.welcome-modal .play-games-content p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
}

.welcome-modal .button-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.welcome-modal .play-games-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
}

.welcome-modal .play-games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.welcome-modal .play-games-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.welcome-modal .play-btn-icon {
    font-size: 1.3rem;
    animation: welcomeIconBounce 2s ease-in-out infinite;
}

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

.welcome-modal .play-btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Close button for welcome modal */
.welcome-modal-content::after {
    content: '×';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.welcome-modal-content::after:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Responsive design for welcome modal */
@media (max-width: 480px) {
    .welcome-modal-content {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .welcome-modal .play-games-image-container {
        height: 370px;
    }
    
    .welcome-modal .play-games-content {
        padding: 25px 20px;
    }
    
    .welcome-modal .play-games-content h3 {
        font-size: 21px;
    }
    
    .welcome-modal .play-games-content p {
        font-size: 0.9rem;
    }
    
    .welcome-modal .play-games-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .welcome-modal .play-btn-icon {
        font-size: 1.1rem;
    }
}

/* ==================== Bonus Modal ==================== */

.bonus-modal {
    max-width: 500px;
    width: 90%;
    height: auto;
    max-height: 1000px;
    padding: 0;
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
    animation: playModalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bonus-header {
    padding: 25px 20px 15px 20px;
    text-align: center;
    background: linear-gradient(135deg, #b95513 0%, #7f2505 100%);
    color: white;
}

.bonus-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.bonus-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.promotions-container {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    background: #2a2a2a;
}

.promotion-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.promotion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promotion-item:last-child {
    margin-bottom: 0;
}

.promotion-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    position: relative;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.promotion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    text-align: left;
}

.promotion-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.promotion-content p {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
}

.promo-btn {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.promo-btn span {
    font-size: 0.9rem;
}

/* Tournament TV Section */
.tournament-tv {
    margin-bottom: 15px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 154, 57, 0.3);
    overflow: hidden;
}

.tv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 154, 57, 0.2);
}

.tv-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.live-indicator-tv {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot-tv {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: breathe 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.live-text-tv {
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    animation: breatheText 2s ease-in-out infinite;
}

.tv-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    animation: fadeIn 1s ease-in forwards;
}

/* HOT tag animation */
.hot-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: hotPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    position: relative;
    top: -2px;
}

@keyframes hotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    }
}

/* Arrow pointer animation */
.arrow-pointer {
    position: absolute;
    top: -15px;
    left: 95%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-image: url('img/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    animation: arrowBounce 1.5s ease-in-out infinite;
    opacity: 1;
    pointer-events: none;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-25%) translateY(-10px);
    }
}

/* Button container for modal */
.button-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal arrow pointer animation */
.arrow-pointer-modal {
    position: absolute;
    top: -15px;
    left: 215px;
    width: 30px;
    height: 30px;
    background-image: url('img/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    animation: arrowBounceModal 1.5s ease-in-out infinite;
    opacity: 1;
    pointer-events: none;
}

@keyframes arrowBounceModal {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateX(5px) translateY(-10px);
    }
}

/* Close button for bonus modal */
.bonus-modal::after {
    content: '×';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.bonus-modal::after:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Responsive design for bonus modal */
@media (max-width: 480px) {
    .bonus-modal {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .bonus-header {
        padding: 20px 15px 10px 15px;
    }
    
    .bonus-header h2 {
        font-size: 1.3rem;
    }
    
    .bonus-header p {
        font-size: 0.8rem;
    }
    
    .promotions-container {
        padding: 15px;
        max-height: 600px;
    }
    
    .promotion-item {
        flex-direction: row;
        align-items: stretch;
    }
    
    .promotion-image {
        width: 135px;
        height: 144px;
    }
    
    .promotion-content h4 {
        font-size: 15px;
    }
    
    .promotion-content p {
        font-size: 0.8rem;
    }
    
    .promo-btn {
        align-self: center;
        padding: 6px 30px;
        font-size: 12px;
    }
}

/* ==================== GIF Background Enhancements ==================== */

/*
 * HOW TO CUSTOMIZE GIF SIZE AND SPEED:
 * 
 * 1. GIF SIZE CUSTOMIZATION:
 *    Change the values after the last "/" in background property:
 *    - "300px 300px" = 300px width, 300px height
 *    - "200px 200px" = smaller size
 *    - "500px 500px" = larger size
 *    - "50% 50%" = 50% of modal size
 *    - "contain" = fit entire GIF maintaining aspect ratio
 *    - "cover" = fill entire modal
 *    - "auto" = original GIF size
 * 
 * 2. GIF SPEED CUSTOMIZATION:
 *    GIF speed cannot be controlled by CSS. To change speed:
 *    - Edit the GIF file using tools like:
 *      * Online: ezgif.com, giphy.com
 *      * Software: Photoshop, GIMP, After Effects
 *    - Or replace with a different speed version of the same GIF
 *    - Speed is controlled by frame delay in the GIF file itself
 * 
 * 3. ALTERNATIVE SPEED CONTROL (using CSS animation):
 *    If you convert GIF to sprite sheet, you can control speed with CSS
 */

/* Prize Modal with celebration GIF background */
#prizeModal {
    background: url('gif/08-51-41-992_512.gif') center center / 350px 200px,
                rgba(0, 0, 0, 0.7);
    background-repeat: no-repeat;
}

#prizeModal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('gif/08-51-41-992_512.gif') center center / 200px 200px;
    filter: blur(5px);
    mask: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,1) 100%);
    -webkit-mask: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,1) 100%);
    z-index: -1;
}

#prizeModal .modal-content {
    background: white;
}



/* Already Played Modal with warning GIF background */
#alreadyPlayedModal {
    background: url('gif/08-51-41-992_512.gif') center center / 200px 200px,
                rgba(0, 0, 0, 0.7);
    background-repeat: no-repeat;
}

#alreadyPlayedModal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('gif/08-51-41-992_512.gif') center center / 200px 200px;
    filter: blur(5px);
    mask: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,1) 100%);
    -webkit-mask: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,1) 100%);
    z-index: -1;
}

#alreadyPlayedModal .already-played-modal {
    background: white;
}

/* ==================== Congratulations Animation ==================== */

/* Simple scale animation for "Congratulations!" text */
#prizeModal .modal-content h2 {
    animation: simpleScale 2.5s ease-in-out infinite;
}

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

/* GIF delay animation - adds pause between repetitions */
@keyframes gifDelay {
    0% { opacity: 1; }
    70% { opacity: 1; } /* GIF visible for 70% of cycle */
    71% { opacity: 0; } /* Start fade out */
    100% { opacity: 0; } /* Hidden for remaining 30% = delay */
}


/* Shimmer animation for celebration */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* Warning shimmer animation */
@keyframes warningShimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Enhanced text readability over GIF background */
.modal-content h2,
.already-played-modal h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.modal-content .prize-message,
.already-played-modal .already-played-message {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Ensure all modal content stays above background */
.modal-content > *,
.already-played-modal > * {
    position: relative;
    z-index: 2;
}
