/* Frontend Styles */

/* Apply Kantumruy font to entire page */
body {
    font-family: "Kantumruy", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Support for devices with notches */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Specific font weight for buttons */
.btn-start,
.btn-gift {
    font-family: "Kantumruy", sans-serif;
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 400px;
    height: auto;
    width: 100%;
    object-fit: contain;
    filter: saturate(1.2) brightness(1.05);
    transition: all 0.3s ease;
}

/* Angpao Grid Styles */
.angpao-grid {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

.angpao-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.angpao-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.angpao-item.disabled {
    pointer-events: auto; /* Allow hover events for button effect */
    cursor: default; /* Show default cursor instead of pointer */
}

.angpao-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.angpao-item:hover .angpao-image {
    filter: drop-shadow(0 8px 15px rgba(255, 77, 77, 0.5)) saturate(1.2)
        brightness(1.05);
}

.angpao-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) saturate(1.2)
        brightness(1.05);
}

.prize-amount {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f1df7c;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
}

.prize-amount.hidden {
    display: none;
}

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

/* Angpao Flip Animation */
@keyframes flipAngpao {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(90deg) scale(1.1);
    }
    100% {
        transform: rotateY(0deg) scale(1);
    }
}

.angpao-flip {
    animation: flipAngpao 0.6s ease-in-out;
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    animation: modalAppear 0.3s ease;
    text-align: center;
}

@keyframes modalAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    margin: 0;
    font-family: "Kantumruy", sans-serif;
    font-weight: 600;
    text-align: center;
}

.modal-body {
    margin-bottom: 25px;
}

.code-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Kantumruy", sans-serif;
    text-align: center;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.code-input:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.btn-ok {
    min-width: 250px;
    border: none;
    color: white;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff4d4d, #ff0000, #ff4d4d, #ff0000);
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
    font-family: "Kantumruy", sans-serif;
    cursor: pointer;
    filter: saturate(1.2) brightness(1.05);
}

.btn-ok:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
    color: white !important;
}

/* Modal Mobile Responsive */
@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .code-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Hero Section */
.hero-bg {
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-attachment: fixed;
}

.hero-overlay {
    /* background-color: rgba(0, 0, 0, 0.4); */
    min-height: 100vh;
    width: 100%;
    padding: 1rem 15px;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Gradient Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Logo Pulse Animation */
@keyframes logoPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Button Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Float Animation */
@keyframes enhancedFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(1deg);
    }
    66% {
        transform: translateY(-4px) rotate(-1deg);
    }
}

/* Glow Animation */
@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 77, 77, 0.6);
    }
}

/* Button Container Styles */
.hero-buttons-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.telegram-button-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
}

.main-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Telegram Button Styles */
.btn-telegram {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-telegram:hover {
    transform: translateY(-3px) scale(1.1);
}

.telegram-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-start {
    min-width: 250px;
    border: none;
    color: white;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff4d4d, #ff0000, #ff4d4d, #ff0000);
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
    filter: saturate(1.2) brightness(1.05);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

.btn-gift {
    min-width: 250px;
    border: none;
    color: white;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff4d4d, #ff0000, #ff4d4d, #ff0000);
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
    filter: saturate(1.2) brightness(1.05);
}

.btn-gift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

/* Responsive */
/* Large Desktop */
@media (min-width: 1200px) {
    .btn-start,
    .btn-gift {
        min-width: 280px;
        padding: 15px 40px;
        font-size: 16px;
    }

    .btn-telegram {
        width: 55px;
        height: 55px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .angpao-image {
        width: 100px;
        height: 100px;
    }

    .angpao-grid {
        max-width: 650px;
        padding: 35px;
    }

    .angpao-row {
        gap: 30px;
        margin-bottom: 30px;
    }

    .logo-img {
        max-width: 450px;
    }
}

/* Desktop */
@media (max-width: 1199px) and (min-width: 992px) {
    .btn-start,
    .btn-gift {
        min-width: 250px;
        padding: 12px 35px;
        font-size: 15px;
    }

    .btn-telegram {
        width: 52px;
        height: 52px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .angpao-image {
        width: 110px;
        height: 110px;
    }

    .angpao-grid {
        max-width: 580px;
        padding: 32px;
    }

    .angpao-row {
        gap: 28px;
        margin-bottom: 28px;
    }

    .logo-img {
        max-width: 420px;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .btn-start,
    .btn-gift {
        min-width: 220px;
        padding: 12px 30px;
        font-size: 14px;
    }

    .btn-telegram {
        width: 50px;
        height: 50px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .angpao-image {
        width: 100px;
        height: 100px;
    }

    .angpao-grid {
        max-width: 520px;
        padding: 28px;
    }

    .angpao-row {
        gap: 24px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .logo-img {
        max-width: 380px;
    }

    .prize-amount {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* Mobile Large */
@media (max-width: 767px) and (min-width: 576px) {
    .btn-start,
    .btn-gift {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 14px;
        letter-spacing: 0.8px;
        min-height: 44px; /* Better touch targets */
    }

    .btn-telegram {
        width: 48px;
        height: 48px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .angpao-image {
        width: 90px;
        height: 90px;
    }

    .angpao-grid {
        max-width: 480px;
        padding: 22px 15px;
    }

    .angpao-row {
        gap: 18px;
        margin-bottom: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Rearrange grid for mobile - 2-2-2-2 layout */
    .angpao-row:first-child .angpao-item:nth-child(3) {
        display: none;
    }

    .angpao-row:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .angpao-row:nth-child(2) .angpao-item {
        flex: 0 0 calc(50% - 9px);
        max-width: calc(50% - 9px);
        margin-bottom: 15px;
    }

    .logo-img {
        max-width: 340px;
        margin-bottom: 1.5rem;
    }

    .prize-amount {
        font-size: 11px;
        padding: 2px 5px;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Mobile Medium */
@media (max-width: 575px) and (min-width: 400px) {
    .btn-start,
    .btn-gift {
        min-width: 180px;
        padding: 14px 22px;
        font-size: 14px;
        letter-spacing: 0.8px;
        min-height: 46px; /* Better touch targets */
        border-radius: 23px;
        margin-bottom: 6px;
    }

    .main-buttons {
        gap: 10px;
        padding: 0 15px;
    }

    .btn-telegram {
        width: 46px;
        height: 46px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .angpao-image {
        width: 95px;
        height: 95px;
    }

    .angpao-item {
        min-width: 44px; /* Minimum touch target */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .angpao-grid {
        max-width: 450px;
        padding: 25px 15px;
    }

    .angpao-row {
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .prize-amount {
        font-size: 11px;
        padding: 3px 5px;
    }

    .logo-img {
        max-width: 320px;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem 1.5rem;
    }
}

/* Mobile adjustments for fixed Telegram button */
@media (max-width: 767px) {
    .telegram-button-container {
        right: 15px;
    }
}

/* Mobile Small */
@media (max-width: 399px) {
    .telegram-button-container {
        right: 10px;
    }
    .btn-start,
    .btn-gift {
        min-width: 160px;
        padding: 14px 20px;
        font-size: 13px;
        letter-spacing: 0.8px;
        border-radius: 22px;
        min-height: 48px; /* Better touch targets */
        margin-bottom: 8px;
    }

    .btn-telegram {
        width: 44px;
        height: 44px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .main-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        /* padding: 0 20px; */
    }

    .main-buttons .btn-start,
    .main-buttons .btn-gift {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .angpao-image {
        width: 85px;
        height: 85px;
    }

    .angpao-item {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .angpao-grid {
        max-width: 380px;
        padding: 20px 10px;
    }

    .angpao-row {
        gap: 16px;
        margin-bottom: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Arrange in 2-2-2-2 grid on small mobile */
    .angpao-row:first-child {
        justify-content: center;
    }

    .angpao-row:first-child .angpao-item:nth-child(3) {
        order: 3;
        width: 100%;
        margin-top: 16px;
        display: flex;
        justify-content: center;
    }

    .prize-amount {
        font-size: 10px;
        padding: 2px 4px;
    }

    .logo-img {
        max-width: 280px;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-overlay {
        padding: 0.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .btn-start,
    .btn-gift {
        min-width: 140px;
        padding: 12px 16px;
        font-size: 12px;
        letter-spacing: 0.5px;
        min-height: 46px; /* Better touch targets */
        border-radius: 20px;
        margin-bottom: 10px;
    }

    .main-buttons {
        gap: 15px;
        /* padding: 0 15px; */
    }

    .btn-telegram {
        width: 42px;
        height: 42px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }


    .main-buttons .btn-start,
    .main-buttons .btn-gift {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }

    .angpao-image {
        width: 70px;
        height: 70px;
    }

    .angpao-item {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .angpao-grid {
        max-width: 300px;
        padding: 15px 8px;
    }

    .angpao-row {
        gap: 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Stack angpaos in 2x4 grid for very small screens */
    .angpao-row:first-child {
        max-width: 120px;
        margin: 0 auto 12px;
    }

    .angpao-row:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 240px;
        margin: 0 auto 12px;
    }

    .angpao-row:nth-child(2) .angpao-item {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin-bottom: 12px;
    }

    .logo-img {
        max-width: 220px;
        margin-bottom: 1.5rem;
    }

    .prize-amount {
        font-size: 9px;
        padding: 1px 3px;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .hero-overlay {
        padding: 0.25rem;
    }
}

/* Landscape orientation on mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-overlay {
        min-height: 100vh;
        align-items: center;
        padding: 1rem;
    }

    .logo-img {
        max-width: 250px;
        margin-bottom: 1rem;
    }

    .angpao-grid {
        padding: 15px;
        max-width: 500px;
    }

    .angpao-row {
        gap: 15px;
        margin-bottom: 15px;
    }

    .angpao-image {
        width: 75px;
        height: 75px;
    }

    .hero-buttons-container {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    .main-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .main-buttons .btn-start,
    .main-buttons .btn-gift {
        width: auto;
        min-width: 140px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .btn-telegram {
        width: 40px;
        height: 40px;
    }

    .telegram-icon {
        width: 52px;
        height: 52px;
    }

}

/* Result Modal Styles */
.result-modal-content {
    max-width: 350px;
    padding: 40px 30px;
}

.result-modal-body {
    text-align: center;
    margin-bottom: 30px;
}

.result-angpao {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.result-angpao-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) saturate(1.2)
        brightness(1.05);
}

.result-prize-amount {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f1df7c;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
}

.result-message {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: "Kantumruy", sans-serif;
}

/* Text Styles */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Game States */
.angpao-item.clicked {
    pointer-events: none;
    opacity: 0.7;
}

.angpao-item.selected {
    transform: scale(1.1);
    z-index: 10;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border-animation 0.75s linear infinite;
}

@keyframes spinner-border-animation {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message Styles */
.error-message {
    background-color: #ffe6e6;
    border: 1px solid #ff4d4d;
    border-radius: 5px;
    padding: 8px 12px;
    color: #cc0000;
    font-family: "Kantumruy", sans-serif;
    font-size: 14px;
}

/* Game Grid Specific Styles */
.game-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.game-grid .angpao-row {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Preview Grid Specific Styles */
.preview-grid .prize-amount {
    display: none; /* Hidden by default for preview */
}

/* Game Notification Styles */
.game-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: fit-content;
    background: linear-gradient(
        135deg,
        rgba(255, 77, 77, 0.15),
        rgba(255, 0, 0, 0.1)
    );
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    color: white;
    font-family: "Kantumruy", sans-serif;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.2);
    animation: slideInUp 0.3s ease-out;
    margin: 1rem auto 0;
    max-width: max-content;
    pointer-events: none;
    user-select: none;
}

.notification-icon {
    font-size: 16px;
    animation: pulse-icon 2s infinite;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
}

.notification-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    margin: 0;
    line-height: 1;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

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

/* Button transition states */
.hero-buttons-container {
    transition: all 0.5s ease;
}

.hero-buttons-container.game-mode .btn-start,
.hero-buttons-container.game-mode .btn-gift {
    display: none !important;
    transition: all 0.3s ease;
}

.hero-buttons-container.game-mode .telegram-button-container {
    display: none !important;
}

/* Enhanced Game Animations */
.angpao-grid {
    transition: opacity 1s ease, transform 1s ease;
}

.game-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.game-item:hover:not(.clicked) {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.1) saturate(1.2);
}

.game-item.clicked:not(.selected) {
    pointer-events: none;
}

.game-item.selected {
    position: relative;
    z-index: 100;
}

/* Modal drop-in animation styles */
.modal-overlay {
    transition: opacity 0.3s ease;
    perspective: 1000px;
}

.modal-content {
    transform-origin: center center;
    backface-visibility: hidden;
}

/* Enhanced fly-out animation */
.game-item {
    transform-origin: center center;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Modal Styles (keeping for fallback) */
.loading-modal-content {
    background: transparent !important;
    backdrop-filter: blur(8px);
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
    text-align: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.spinner-ring {
    position: absolute;
    border: 4px solid transparent;
    border-top: 4px solid #ff4d4d;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    width: 64px;
    height: 64px;
    top: 8px;
    left: 8px;
    animation-delay: -0.3s;
    border-top-color: #ff6b6b;
}

.spinner-ring:nth-child(3) {
    width: 48px;
    height: 48px;
    top: 16px;
    left: 16px;
    animation-delay: -0.6s;
    border-top-color: #ff8e8e;
}

.spinner-ring:nth-child(4) {
    width: 32px;
    height: 32px;
    top: 24px;
    left: 24px;
    animation-delay: -0.9s;
    border-top-color: #ffb1b1;
}

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

.loading-text {
    display: none;
}

@keyframes pulse-text {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .game-notification {
        font-size: 12px;
        padding: 6px 12px;
        gap: 6px;
    }

    .notification-icon {
        font-size: 14px;
    }

    .loading-modal-content {
        padding: 0;
        min-width: auto;
        margin: 0;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .spinner-ring:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .spinner-ring:nth-child(2) {
        width: 48px;
        height: 48px;
        top: 6px;
        left: 6px;
    }

    .spinner-ring:nth-child(3) {
        width: 36px;
        height: 36px;
        top: 12px;
        left: 12px;
    }

    .spinner-ring:nth-child(4) {
        width: 24px;
        height: 24px;
        top: 18px;
        left: 18px;
    }

    .loading-text {
        display: none;
    }
}
