@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Fredoka:wght@300;400;500;600;700&display=swap');

/* Apply font and backdrop globally */
body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(to bottom, #70d1ff 0%, #a8e5ff 100%) no-repeat fixed;
    background-size: cover;
    color: #4a2711; /* Warm dark brown for game readability */
    min-height: 100vh;
}

/* Lilita One display font for titles, counters, and buttons */
h1, h2, h3, h4, h5, h6, .game-font {
    font-family: 'Lilita One', cursive;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Suspended Game Banner Navbar */
.game-navbar {
    background: #fdfaf0;
    border: 4px solid #5c3515;
    border-radius: 20px;
    box-shadow: 0 8px 0 #3a1e0b, 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Floating animation for mascot */
@keyframes coinmaster-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-2deg);
    }
    75% {
        transform: translateY(-4px) rotate(2deg);
    }
}

.mascot-bounce {
    animation: coinmaster-bounce 5s infinite ease-in-out;
}

/* 3D Green Collect Button */
.btn-cm-green-3d {
    font-family: 'Lilita One', cursive;
    background: linear-gradient(to bottom, #5be12b, #2aa012);
    border: 2px solid #1c730a;
    border-bottom: 6px solid #145906;
    border-radius: 16px;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-shadow: 
        -2px -2px 0 #104205,  
         2px -2px 0 #104205,
        -2px  2px 0 #104205,
         2px  2px 0 #104205,
         0px  3px 5px rgba(0,0,0,0.4);
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 10px rgba(42, 160, 18, 0.3);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-cm-green-3d:hover {
    background: linear-gradient(to bottom, #69ea37, #31af18);
    transform: translateY(1px);
    border-bottom-width: 5px;
}

.btn-cm-green-3d:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
    box-shadow: 0 1px 4px rgba(42, 160, 18, 0.4);
}

/* 3D Gold Action Button */
.btn-cm-gold-3d {
    font-family: 'Lilita One', cursive;
    background: linear-gradient(to bottom, #ffd000, #ff8000);
    border: 2px solid #b35900;
    border-bottom: 6px solid #803f00;
    border-radius: 16px;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-shadow: 
        -2px -2px 0 #592c00,  
         2px -2px 0 #592c00,
        -2px  2px 0 #592c00,
         2px  2px 0 #592c00,
         0px  3px 5px rgba(0,0,0,0.4);
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 10px rgba(255, 128, 0, 0.3);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-cm-gold-3d:hover {
    background: linear-gradient(to bottom, #ffdb33, #ff941a);
    transform: translateY(1px);
    border-bottom-width: 5px;
}

.btn-cm-gold-3d:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

/* 3D Blue Button */
.btn-cm-blue-3d {
    font-family: 'Lilita One', cursive;
    background: linear-gradient(to bottom, #00cbff, #0077ff);
    border: 2px solid #0055b3;
    border-bottom: 6px solid #003c80;
    border-radius: 16px;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-shadow: 
        -2px -2px 0 #002652,  
         2px -2px 0 #002652,
        -2px  2px 0 #002652,
         2px  2px 0 #002652,
         0px  3px 5px rgba(0,0,0,0.4);
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 119, 255, 0.3);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-cm-blue-3d:hover {
    background: linear-gradient(to bottom, #1ad3ff, #1a85ff);
    transform: translateY(1px);
    border-bottom-width: 5px;
}

.btn-cm-blue-3d:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

/* 3D Gray Button */
.btn-cm-gray-3d {
    font-family: 'Lilita One', cursive;
    background: linear-gradient(to bottom, #ccd6dd, #8899a6);
    border: 2px solid #5a6b77;
    border-bottom: 6px solid #3d4a54;
    border-radius: 16px;
    color: #ffffff !important;
    text-shadow: 
        -2px -2px 0 #242c33,  
         2px -2px 0 #242c33,
        -2px  2px 0 #242c33,
         2px  2px 0 #242c33;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-cm-gray-3d:hover {
    transform: translateY(1px);
    border-bottom-width: 5px;
}

.btn-cm-gray-3d:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

/* Playful Wooden Panels / Parchment Cards */
.game-panel {
    background: #fdfaf0; /* Parchment beige */
    border: 4px solid #5c3515; /* Wood brown */
    border-radius: 24px;
    box-shadow: 0 8px 0 #3a1e0b, 0 15px 30px rgba(0,0,0,0.1);
    color: #4a2711;
}

.game-panel-featured {
    background: #fffae6;
    border: 4px solid #cc8800;
    box-shadow: 0 8px 0 #805500, 0 15px 30px rgba(0,0,0,0.1);
}

/* Heading with thick game-outline */
.game-title-text {
    color: #ffcc00;
    text-shadow: 
        -3px -3px 0 #5c3515,  
         3px -3px 0 #5c3515,
        -3px  3px 0 #5c3515,
         3px  3px 0 #5c3515,
         0px  6px 0px #3a1e0b;
}

.game-heading-2 {
    color: #ff9000;
    text-shadow: 
        -2px -2px 0 #5c3515,  
         2px -2px 0 #5c3515,
        -2px  2px 0 #5c3515,
         2px  2px 0 #5c3515;
}

/* Custom TinyMCE inline spin card classes */
.redirect-card-wrapper {
    margin: 1.5rem 0;
    width: 100%;
}

.redirect-card {
    display: block;
    position: relative;
    border-radius: 20px;
    padding: 1.25rem;
    background: #fdfaf0;
    border: 4px solid #5c3515;
    box-shadow: 0 6px 0 #3a1e0b;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.redirect-card:hover {
    transform: translateY(1px);
    box-shadow: 0 4px 0 #3a1e0b;
}

.redirect-card:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #3a1e0b;
}

.redirect-card .card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff8000;
    color: #ffffff;
    font-family: 'Lilita One', cursive;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border-bottom-left-radius: 12px;
    border-left: 3px solid #5c3515;
    border-bottom: 3px solid #5c3515;
    text-transform: uppercase;
}

.redirect-card .card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.redirect-card .card-icon img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.redirect-card .card-title {
    color: #4a2711;
    font-family: 'Lilita One', cursive;
    font-size: 1.25rem;
    text-shadow: 
        -1.5px -1.5px 0 #ffffff,  
         1.5px -1.5px 0 #ffffff,
        -1.5px  1.5px 0 #ffffff,
         1.5px  1.5px 0 #ffffff;
}

/* Custom styles for language drop down */
.lang-dropdown-box {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 10px;
    background: #fdfaf0;
    border: 3px solid #5c3515;
    border-radius: 16px;
    box-shadow: 0 6px 0 #3a1e0b;
    z-index: 100;
    width: 150px;
    overflow: hidden;
}

.lang-dropdown-box a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #4a2711;
    font-weight: 700;
    text-decoration: none;
}

.lang-dropdown-box a:hover {
    background: #f3edd3;
}
