/* Page specific styles for Kafe Games Index */

.featured-banner {
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.featured-banner-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.featured-item {
    flex: 0 0 100%;
    position: relative;
}

.featured-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    filter: brightness(0.8) contrast(1.1);
}

.featured-item:hover img {
    transform: scale(1.08) rotate(0.1deg);
    filter: brightness(1) contrast(1.2);
}

.featured-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
    animation: slideUp 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-container {
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.search-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.2rem 2rem;
    color: white;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 5px rgba(0, 242, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 242, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 242, 255, 0.2); }
}

.search-container input:focus {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
    animation: inputGlow 2s infinite ease-in-out;
    transform: translateY(-2px);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.theme-desi {
    border-color: rgba(255, 153, 51, 0.2) !important;
}
.theme-desi:hover {
    border-color: var(--neon-saffron) !important;
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.3);
}

.theme-bharat {
    border-color: rgba(46, 204, 113, 0.2) !important;
}
.theme-bharat:hover {
    border-color: var(--neon-emerald) !important;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.app-card {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px; /* Consistent rectangular shape */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
}

.app-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    pointer-events: none;
}

.app-card:hover::before {
    transform: translateX(100%);
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.app-box {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.app-card:hover .app-box {
    transform: scale(1.1);
}

/* Image Vignette Overlay */
.app-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 180px;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
    z-index: 1;
    pointer-events: none;
}

/* Quick Play Overlay */
.play-overlay {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.play-overlay::after {
    content: '';
    border-left: 15px solid #000;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.app-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    top: 70px;
}

.card-info { 
    padding: 1.5rem; 
    text-align: left; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.card-info h2 { 
    font-size: 1rem; 
    margin-bottom: 0.8rem; 
    color: #fff; 
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 0.75rem; 
    color: var(--text-dim); 
}

.rating-badge {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 204, 0, 0.2);
}


.recently-played { margin: 2rem 0; }
.recent-list { 
    display: flex; 
    overflow-x: auto; 
    gap: 1rem; 
    padding-bottom: 1rem; 
    scrollbar-width: none; 
}
.recent-list::-webkit-scrollbar { display: none; }

.recent-card { 
    min-width: 180px; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-card:hover { 
    transform: translateY(-8px); 
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.recent-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.recent-card:hover img {
    transform: scale(1.05);
}

.recent-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--text-main);
    text-align: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,242,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

.carousel-arrow.left { left: 1.5rem; }
.carousel-arrow.right { right: 1.5rem; }

@media (max-width: 768px) {
    .featured-item img { height: 280px; }
    .featured-caption { 
        font-size: 1.2rem; 
        bottom: 1rem; 
        left: 1rem;
        padding: 0.8rem 1.2rem;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .search-container { flex-direction: row; padding: 10px; margin: 1rem auto; }
    .search-container input { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
    .apps-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }
    .app-box { height: 120px; }
    .card-info { padding: 1rem; }
    .card-info h2 { font-size: 0.9rem; }
    .card-meta { font-size: 0.7rem; }
    
    /* Hero section mobile fixes */
    .hero {
        padding: 40px 0 30px !important;
    }
    .indie-india-title {
        font-size: clamp(1.5rem, 8vw, 3rem) !important;
        letter-spacing: 3px !important;
    }
    /* Fix ads overflow on mobile */
    .hero iframe, .hero script + * {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .featured-item img { height: 200px; }
    .featured-caption { font-size: 1rem; }
    .apps-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Game Modal Styles */
.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

#gameFrame {
    width: 85%;
    height: 85%;
    border: 2px solid var(--neon-cyan);
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
    background: #000;
}

.game-hud {
    width: 85%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    margin-bottom: -1px;
}

.hud-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.circular-timer-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 100px;
    height: 100px;
    z-index: 2000000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2), inset 0 0 20px rgba(0, 242, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
}

.circular-timer-container:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(245, 176, 65, 0.4);
}

/* Cosmic Ring Effect (Gold) */
.circular-timer-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--neon-cyan), transparent 30%, var(--neon-cyan) 60%, transparent 100%);
    animation: rotateRing 4s linear infinite;
    opacity: 0.3;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.timer-svg {
    width: 85%;
    height: 85%;
    transform: rotate(-90deg);
    z-index: 2;
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    filter: drop-shadow(0 0 12px var(--neon-cyan));
    transition: stroke-dashoffset 1s linear, stroke 0.4s ease;
}

.timer-text {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px rgba(0, 242, 255, 0.5);
    z-index: 3;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tick Pulse Animation (Gold) */
.timer-text.tick {
    transform: scale(1.2);
    color: var(--neon-cyan);
}

/* Critical Overdrive state (Stays Red for urgency) */
.circular-timer-container.critical {
    border-color: rgba(255, 71, 87, 0.5);
    box-shadow: 0 0 60px rgba(255, 71, 87, 0.4);
}
.circular-timer-container.critical .timer-progress {
    stroke: var(--neon-purple);
    filter: drop-shadow(0 0 15px var(--neon-purple));
}
.circular-timer-container.critical .timer-text {
    color: var(--neon-purple);
    text-shadow: 0 0 15px var(--neon-purple);
}

.circular-timer-container.critical::before {
    background: conic-gradient(from 0deg, var(--neon-purple), transparent 30%, var(--neon-purple) 60%, transparent 100%);
    animation-duration: 1.5s;
}

@media (max-width: 768px) {
    .circular-timer-container {
        bottom: 25px;
        left: 25px;
        width: 80px;
        height: 80px;
    }
    .timer-text { font-size: 1.4rem; }
}

.hud-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

@media (max-width: 768px) {
    .game-hud {
        width: 95%;
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    .reward-timer-hud {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}


.reward-timer-hud {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--neon-yellow);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.reward-timer-hud span {
    color: #fff;
    min-width: 50px;
}



.treasure-box {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1), inset 0 0 15px rgba(0, 242, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: floatTreasure 3s ease-in-out infinite;
    cursor: pointer;
    z-index: 2200;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.treasure-box:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.4);
}

.treasure-box img { 
    width: 50px; 
    height: 50px; 
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
    transition: transform 0.5s ease;
}

.treasure-box:hover img {
    transform: rotate(10deg) scale(1.1);
}

#treasureTimer { 
    font-family: 'Orbitron', sans-serif; 
    color: var(--neon-yellow); 
    font-weight: 700; 
    font-size: 1.2rem;
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
    letter-spacing: 1px;
}

@keyframes floatTreasure {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseTimer {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

#treasureTimer.pulse {
    animation: pulseTimer 1s infinite ease-in-out;
}

#rewardPopup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 80px rgba(0, 242, 255, 0.2), inset 0 0 20px rgba(255,255,255,0.05);
    z-index: 20002;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

@keyframes reward-pop {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#rewardPopup h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

#rewardPopup p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.reward-btn {
    width: 100%;
    padding: 12px;
    background: var(--neon-cyan);
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.reward-btn:hover {
    box-shadow: 0 0 30px var(--neon-cyan);
    transform: translateY(-3px);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Ad Container Styles */
.ad-leaderboard-container {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    overflow: hidden;
    min-height: 90px;
}

.ad-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2050;
    display: none; /* Hidden by default, shown on desktop */
}

.ad-side-left {
    left: 2rem;
}

.ad-side-right {
    right: 2rem;
}

@media (min-width: 1400px) {
    .ad-side {
        display: block;
    }
    #gameFrame {
        width: calc(100% - 400px); /* Leave room for side ads */
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .ad-leaderboard-container {
        display: none;
    }
}

/* --- Diwali/Festive Ribbon Styling --- */
.diwali-ribbon {
    margin: 3rem auto;
    padding: 2.5rem 1rem;
    background: rgba(10, 10, 20, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
}

.diwali-ribbon::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ribbon-text {
    position: relative;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(to right, #fff, var(--neon-cyan), var(--neon-purple), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 4s linear infinite;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

@keyframes textGradient {
    to { background-position: 200% center; }
}

#visitCount {
    color: var(--neon-lime);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px var(--neon-cyan);
    opacity: 0;
    animation: sparkleAnim 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes sparkleAnim {
    0%, 100% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
}

.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 70%; left: 85%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 40%; left: 95%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 85%; left: 15%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 15%; left: 50%; animation-delay: 2s; }

@media (max-width: 768px) {
    .ribbon-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    .diwali-ribbon {
        padding: 1.5rem 0.5rem;
        margin: 2rem 1rem;
        width: auto;
    }
}
.visitor-stats {
    text-align: center;
    font-size: 1.1rem;
    margin: 10px 0;
    color: #00ff44;
    position: relative;
    z-index: 2;
    font-weight: 600;
}
/* --- Theme-Based Card Designs --- */

.theme-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* 3D Theme: High-tech glassmorphism with cyan/magenta glow */
.theme-3d {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(188, 0, 255, 0.05));
    border-color: rgba(0, 242, 255, 0.2);
}
.theme-3d:hover {
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2), 0 0 20px rgba(188, 0, 255, 0.2);
    border-color: var(--neon-cyan);
}
.theme-3d .theme-badge {
    background: rgba(0, 242, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

/* Neon Theme: Intense glow and dark background */
.theme-neon {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #39ff1488;
}
.theme-neon:hover {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
    border-color: #39ff14;
}
.theme-neon .theme-badge {
    background: rgba(57, 255, 20, 0.15);
    color: #39ff14;
    border: 1px solid #39ff14;
}

/* Glitch Theme: Destructured borders and chromatic aberration aura */
.theme-glitch {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #ff005588;
}
.theme-glitch:hover {
    animation: glitch-border 0.2s infinite;
    box-shadow: -5px 0 #00fff955, 5px 0 #ff005555;
    border-color: #ff0055;
}
@keyframes glitch-border {
    0% { border-color: #ff0055; }
    50% { border-color: #00fff9; }
    100% { border-color: #ff0055; }
}
.theme-glitch .theme-badge {
    background: rgba(255, 0, 85, 0.15);
    color: #ff0055;
    border: 1px solid #ff0055;
}

/* Toon Theme: Bold outlines and high-contrast colors */
.theme-toon {
    background: #FFD93D;
    border: 4px solid #1a1a1a;
    border-radius: 12px;
}
.theme-toon .app-box {
    border-bottom: 4px solid #1a1a1a;
}
.theme-toon .card-info h2 { color: #1a1a1a; font-weight: 900; }
.theme-toon:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 8px 8px 0 #1a1a1a;
}
.theme-toon .theme-badge {
    background: #1a1a1a;
    color: #FFD93D;
}

/* Glass Theme: Ultra-frosted with soft reflections */
.theme-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.theme-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}
.theme-glass .theme-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Water Theme: Fluid borders and deep blue gradients */
.theme-water {
    background: linear-gradient(180deg, rgba(0, 119, 255, 0.1), rgba(0, 242, 255, 0.05));
    border-color: rgba(0, 119, 255, 0.3);
    border-radius: 12px;
}
.theme-water:hover {
    box-shadow: 0 15px 30px rgba(0, 119, 255, 0.3);
    border-color: #0077ff;
}
.theme-water .theme-badge {
    background: rgba(0, 119, 255, 0.15);
    color: #0077ff;
    border: 1px solid #0077ff;
}

/* Paper Theme: Rough edges and textured feel */
.theme-paper {
    background: #f4f1ea;
    border: 1px solid #d1ccc0;
    border-radius: 4px; /* Slightly sharper for paper feel but still rectangular */
}
.theme-paper .card-info h2 { color: #57606f; font-family: 'Inter', serif; }
.theme-paper:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
}
.theme-paper .theme-badge {
    background: #d1ccc0;
    color: #57606f;
}

/* Neo (Classic) Theme */
.theme-neo {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--glass-border);
}
.theme-neo:hover {
    border-color: var(--neon-rose);
    box-shadow: 0 0 20px rgba(188, 0, 255, 0.2);
}
.theme-neo .theme-badge {
    background: rgba(188, 0, 255, 0.1);
    color: var(--neon-rose);
    border: 1px solid var(--neon-rose);
}
/* --- Category Section Aesthetics --- */
.category-section {
    position: relative;
    padding-top: 20px;
}

.gamers-heading {
    position: relative;
    display: inline-block;
}

.category-section div[style*="border-bottom"] {
    position: relative;
    overflow: hidden;
}

.category-section div[style*="border-bottom"]::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

@media (max-width: 768px) {
    .category-section {
        margin-bottom: 30px !important;
    }
    .category-section h3 {
        font-size: 1.1rem !important;
    }
}

/* ==========================================
   TOON MODE STYLING (Cartoon/Comic-Book style)
   ========================================== */
body.toon-mode {
    background: #FDFBF7 !important; /* Soft comic off-white */
    background-image: 
        linear-gradient(rgba(26,26,26,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,26,26,0.05) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    color: #1a1a1a !important;
    font-family: 'Fredoka', 'Inter', sans-serif !important;
}

/* Disable particle canvas overlay in toon mode to maintain clean flat colors */
body.toon-mode #particles-js {
    display: none !important;
}

body.toon-mode .topbar {
    background: #FF8066 !important; /* Bold comic orange */
    border-bottom: 4px solid #1a1a1a !important;
    box-shadow: 0 6px 0 rgba(26, 26, 26, 0.1) !important;
}

body.toon-mode .logo-link span.desi-badge {
    background: #e91e63 !important; /* Bubbly hot pink */
    border: 3px solid #1a1a1a !important;
    color: white !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    border-radius: 12px !important;
}

body.toon-mode .nav-links a {
    color: #1a1a1a !important;
    background: #ffffff !important;
    font-weight: 800 !important;
    border: 3px solid #1a1a1a !important;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

body.toon-mode .nav-links a.active, 
body.toon-mode .nav-links a:hover {
    background: #6BCB77 !important; /* Vibrant cartoon green */
    border: 3px solid #1a1a1a !important;
    color: white !important;
    box-shadow: 5px 5px 0 #1a1a1a !important;
    transform: translate(-2px, -2px);
    text-shadow: 2px 2px 0 #1a1a1a !important;
}

body.toon-mode .indie-india-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 4px 4px 0px #1a1a1a, 8px 8px 0px #FF6B8B !important;
    font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 4px !important;
}

body.toon-mode .glass {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 8px 8px 0 #1a1a1a !important;
    border-radius: 24px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.toon-mode .app-card {
    background: #ffffff !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 8px 8px 0 #1a1a1a !important;
    border-radius: 24px !important;
    opacity: 1 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease !important;
    transform: rotate(-1deg) !important;
}

body.toon-mode .app-card:nth-child(even) {
    transform: rotate(1.2deg) !important;
}

body.toon-mode .app-card:nth-child(3n) {
    transform: rotate(-1.6deg) !important;
}

body.toon-mode .app-card:nth-child(3n+1) {
    transform: rotate(0.8deg) !important;
}

body.toon-mode .app-card:hover {
    transform: translateY(-12px) scale(1.04) rotate(0deg) !important;
    box-shadow: 16px 16px 0 #1a1a1a !important;
    background: #FFE57F !important; /* Premium comic pastel yellow hover accent */
    z-index: 10;
}

body.toon-mode .app-card:active {
    transform: translate(4px, 4px) scale(0.98) !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
}

body.toon-mode .app-card::before,
body.toon-mode .app-card::after {
    display: none !important; /* Hide neon gloss/vignette */
}

body.toon-mode .app-box {
    border-bottom: 4px solid #1a1a1a !important;
    border-radius: 20px 20px 0 0 !important;
}

body.toon-mode .app-title {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
}

body.toon-mode .search-container input {
    background: white !important;
    border: 4px solid #1a1a1a !important;
    color: black !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
    border-radius: 20px !important;
    font-family: 'Fredoka', sans-serif !important;
}

body.toon-mode .search-container button {
    background: #FF6B8B !important; /* Cute red/pink */
    border: 4px solid #1a1a1a !important;
    color: white !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 800 !important;
    border-radius: 20px !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

body.toon-mode .search-container button:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0 #1a1a1a !important;
}

body.toon-mode .gamers-heading {
    color: #1a1a1a !important;
    text-shadow: 2px 2px 0 #FFD93D !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 2rem !important;
    letter-spacing: 1px !important;
}

body.toon-mode .gamers-heading::after {
    background: #1a1a1a !important;
    height: 4px !important;
}

body.toon-mode .seo-keywords {
    background: #ffffff !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 8px 8px 0 #1a1a1a !important;
    color: #1a1a1a !important;
}

body.toon-mode .seo-keywords h2,
body.toon-mode .seo-keywords h3,
body.toon-mode .seo-keywords h4 {
    color: #1a1a1a !important;
    text-shadow: none !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 800 !important;
}

body.toon-mode .seo-keywords p,
body.toon-mode .seo-keywords li {
    color: #333 !important;
    font-family: 'Inter', sans-serif !important;
}

body.toon-mode .seo-keywords table {
    border: 4px solid #1a1a1a !important;
}

body.toon-mode .seo-keywords th {
    background: #4D96FF !important;
    color: white !important;
    border: 4px solid #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
}

body.toon-mode .seo-keywords td {
    border: 4px solid #1a1a1a !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

body.toon-mode .seo-keywords a {
    color: #FF6B8B !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

body.toon-mode .footer {
    background: #FF8066 !important;
    border-top: 6px solid #1a1a1a !important;
    color: white !important;
}

body.toon-mode .footer-logo {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    text-shadow: 3px 3px 0 #1a1a1a !important;
}

body.toon-mode .footer-links a {
    color: white !important;
    text-shadow: 1px 1px 0 #1a1a1a !important;
}

body.toon-mode .footer-links a:hover {
    color: #FFD93D !important;
}

body.toon-mode .wallet-item {
    background: #6BCB77 !important; /* Green comic badge */
    border: 3px solid #1a1a1a !important;
    color: white !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    border-radius: 20px !important;
    font-family: 'Fredoka', sans-serif !important;
}

body.toon-mode #coinCountHeader {
    color: white !important;
    font-family: 'Fredoka', sans-serif !important;
    text-shadow: 1px 1px 0 #1a1a1a !important;
}

body.toon-mode .recent-list div {
    background: #ffffff !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 800 !important;
}

body.toon-mode .recent-list div:hover {
    background: #FFE57F !important;
    transform: translateY(-2px);
}

body.toon-mode .recent-list a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

/* Custom sticker styles for toon mode switcher */
body.toon-mode #themeSwitcher {
    background: #FF6B8B !important;
    border: 3px solid #1a1a1a !important;
    color: white !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    transform: rotate(-3deg);
    transition: transform 0.2s, box-shadow 0.2s !important;
    font-family: 'Fredoka', sans-serif !important;
}
body.toon-mode #themeSwitcher:hover {
    transform: rotate(3deg) scale(1.05) !important;
    box-shadow: 5px 5px 0 #1a1a1a !important;
}

/* Category header styling overrides in toon mode */
body.toon-mode .category-section h3.gamers-heading {
    color: #1a1a1a !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 0px #4D96FF !important;
    font-family: 'Fredoka', sans-serif !important;
}

body.toon-mode .category-section span[style*="color: var(--text-dim)"] {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    background: #FFD93D !important;
    border: 3px solid #1a1a1a !important;
    padding: 6px 16px !important;
    border-radius: 16px !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer !important;
}
body.toon-mode .category-section span[style*="color: var(--text-dim)"]:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 5px 5px 0 #1a1a1a !important;
    background: #FFC107 !important;
}

/* Card details in toon mode */
body.toon-mode .card-info {
    background: #ffffff !important;
    padding: 1.2rem !important;
    border-top: 4px solid #1a1a1a !important;
}

body.toon-mode .card-info h2 {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

body.toon-mode .theme-badge {
    background: #FF8066 !important;
    color: #ffffff !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 8px !important;
    padding: 3px 8px !important;
    font-weight: 900 !important;
    font-family: 'Fredoka', sans-serif !important;
    box-shadow: 2px 2px 0 #1a1a1a !important;
    text-shadow: 1px 1px 0 #1a1a1a !important;
}

body.toon-mode .rating-badge {
    background: #FFD93D !important;
    color: #1a1a1a !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 8px !important;
    padding: 3px 8px !important;
    font-weight: 900 !important;
    font-family: 'Fredoka', sans-serif !important;
    box-shadow: 2px 2px 0 #1a1a1a !important;
}

/* Play button burst style in toon mode */
body.toon-mode .play-overlay {
    background: #FF6B8B !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.toon-mode .app-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) rotate(15deg) !important;
}
body.toon-mode .play-overlay::after {
    border-left-color: #fff !important;
}

/* Search Box design improvements in toon mode */
body.toon-mode .search-container {
    background: #4D96FF !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 6px 6px 0 #1a1a1a !important;
    border-radius: 24px !important;
}

/* Desi badges on the logo */
body.toon-mode .topbar span.desi-badge {
    transform: rotate(-3deg);
}

/* Recently played section */
body.toon-mode #recentlyPlayed h3 {
    color: #1a1a1a !important;
    text-shadow: 2px 2px 0 #FF6B8B !important;
}

body.toon-mode #guestInfoModal .modal-content {
    background: #ffffff !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 10px 10px 0 #1a1a1a !important;
    border-radius: 28px !important;
    color: #1a1a1a !important;
}
body.toon-mode #guestInfoModal h2 {
    color: #1a1a1a !important;
    text-shadow: 2px 2px 0 #FFD93D !important;
    font-family: 'Fredoka', sans-serif !important;
}
body.toon-mode #guestInfoModal label {
    color: #1a1a1a !important;
    font-weight: 800;
}
body.toon-mode #guestInfoModal input,
body.toon-mode #guestInfoModal select {
    background: #ffffff !important;
    border: 3px solid #1a1a1a !important;
    color: #1a1a1a !important;
    border-radius: 14px !important;
}
body.toon-mode #guestInfoModal button {
    background: #FF6B8B !important;
    border: 3px solid #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
    border-radius: 14px !important;
}

#themeSwitcher, .theme-switcher {
    display: none !important;
}

/* Clear all dark/scanline/pattern overlays under Toon Mode to make the background bright white */
html.toon-mode {
    background: #FDFBF7 !important;
}

body.toon-mode::before,
body.toon-mode::after {
    display: none !important;
    content: none !important;
}

body.toon-mode .indo-overlay,
body.toon-mode .nebula-glow {
    display: none !important;
    opacity: 0 !important;
}

/* Unique Hand-Drawn Overlapping Comic Panel System */
body.toon-mode .apps-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 2.2rem !important; /* Spacious gap to allow safe organic overlaps */
    padding: 2rem 0 !important;
}

body.toon-mode .app-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 8px 8px 0 #1a1a1a !important;
    border-radius: 24px !important;
    position: relative !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease !important;
    margin: 0 !important;
}

/* Staggered Hand-Laid Comic Page Rotations & Minor Offsets on Load */
body.toon-mode .app-card:nth-child(4n+1) {
    transform: rotate(-2deg) translateY(5px) !important;
}
body.toon-mode .app-card:nth-child(4n+2) {
    transform: rotate(1.8deg) translateY(-4px) !important;
}
body.toon-mode .app-card:nth-child(4n+3) {
    transform: rotate(-1.4deg) translateY(3px) !important;
}
body.toon-mode .app-card:nth-child(4n+4) {
    transform: rotate(2.2deg) translateY(-6px) !important;
}

body.toon-mode .app-card .app-box {
    height: 160px !important;
    object-fit: cover !important;
    border-bottom: 4px solid #1a1a1a !important;
    border-radius: 20px 20px 0 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

body.toon-mode .app-card .card-info {
    padding: 1.2rem !important;
    background: #ffffff !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

body.toon-mode .app-card .card-info h2 {
    font-size: 1.1rem !important;
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}

/* Slide-out & Rise Spring Hover Effect */
body.toon-mode .app-card:hover {
    transform: translateY(-18px) scale(1.06) rotate(0deg) !important;
    box-shadow: 18px 18px 0 #1a1a1a !important;
    background: var(--card-color, #FFE57F) !important;
    z-index: 100 !important;
}

body.toon-mode .app-card:hover .card-info {
    background: var(--card-color, #FFE57F) !important;
}

/* Play Sticker Badge Pop-in */
body.toon-mode .app-card::after {
    content: "PLAY!" !important;
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    width: auto !important;
    height: auto !important;
    background: var(--card-color, #FF6B8B) !important;
    border: 3px solid #1a1a1a !important;
    color: white !important;
    padding: 6px 14px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
    transform: rotate(12deg) scale(0) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    z-index: 200 !important;
    display: block !important;
    pointer-events: none !important;
}

body.toon-mode .app-card:hover::after {
    transform: rotate(12deg) scale(1.1) !important;
}

/* --- Toon Mode Play Page Overrides --- */
html.toon-mode body {
    background: #FDFBF7 !important;
    color: #1a1a1a !important;
}

html.toon-mode .topbar {
    background: #ffffff !important;
    border-bottom: 4px solid #1a1a1a !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.05) !important;
}

html.toon-mode .topbar a,
html.toon-mode .topbar .nav-links a {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 800 !important;
}

html.toon-mode .topbar .nav-links a.active {
    background: #FFD93D !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    padding: 6px 16px !important;
}

html.toon-mode .iframe-wrapper {
    background: #ffffff !important;
    border: 5px solid #1a1a1a !important;
    box-shadow: 8px 8px 0 #1a1a1a !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    display: block !important;
}

html.toon-mode .iframe-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: none !important;
    background: #000000 !important;
}

/* Force full canvas coverage and black backdrop when wrapper is in fullscreen (Theater Mode) */
.iframe-wrapper:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.iframe-wrapper:fullscreen iframe {
    width: 100vw !important;
    height: 100vh !important;
    display: block !important;
    background: #000000 !important;
}

html.toon-mode .player-controls {
    background: #ffffff !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 6px 6px 0 #1a1a1a !important;
    border-radius: 20px !important;
    padding: 1.2rem !important;
    margin-top: 20px !important;
    color: #1a1a1a !important;
}

html.toon-mode .player-controls h1 {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
}

html.toon-mode .tag-badge {
    background: #6BCB77 !important;
    color: white !important;
    border: 2px solid #1a1a1a !important;
    box-shadow: 2px 2px 0 #1a1a1a !important;
    border-radius: 8px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    padding: 4px 10px !important;
    text-shadow: 1px 1px 0 #1a1a1a !important;
}

html.toon-mode .details-panel {
    background: #ffffff !important;
    border: 4px solid #1a1a1a !important;
    box-shadow: 8px 8px 0 #1a1a1a !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    color: #1a1a1a !important;
}

html.toon-mode .details-panel h3 {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.3rem !important;
}

html.toon-mode .details-panel p {
    color: #333333 !important;
    font-family: 'Inter', sans-serif !important;
}

html.toon-mode .instruction-card {
    background: #FDFBF7 !important;
    border: 3px solid #1a1a1a !important;
    border-radius: 16px !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
}

html.toon-mode .instruction-card h4 {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 800 !important;
}

html.toon-mode .rating-btn,
html.toon-mode .control-btn {
    background: #ffffff !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 3px 3px 0 #1a1a1a !important;
    color: #1a1a1a !important;
    border-radius: 14px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    transition: all 0.2s ease !important;
}

html.toon-mode .rating-btn:hover,
html.toon-mode .control-btn:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 5px 5px 0 #1a1a1a !important;
    background: #FFD93D !important;
}

html.toon-mode .sidebar-panel {
    background: transparent !important;
}

html.toon-mode .sidebar-title {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    border-bottom: 4px solid #1a1a1a !important;
    padding-bottom: 8px !important;
}

html.toon-mode .sidebar-card {
    background: #ffffff !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
    border-radius: 18px !important;
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

html.toon-mode .sidebar-card:hover {
    background: #FF6B8B !important;
    color: white !important;
    transform: translate(-3px, -3px) !important;
    box-shadow: 7px 7px 0 #1a1a1a !important;
}

html.toon-mode .sidebar-card h4 {
    font-weight: 800 !important;
}

html.toon-mode .sidebar-card span {
    color: inherit !important;
    font-size: 0.75rem !important;
}

html.toon-mode .bottom-section h3 {
    color: #1a1a1a !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
}

html.toon-mode .floating-back-btn {
    background: #FFD93D !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
    color: #1a1a1a !important;
    border-radius: 16px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
    top: 22px !important;
    left: 22px !important;
}

html.toon-mode .mobile-back-btn {
    background: #FFD93D !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
    color: #1a1a1a !important;
    border-radius: 16px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900 !important;
}

html.toon-mode .floating-back-btn:hover {
    transform: translate(-2px, -2px) scale(1.05) !important;
    box-shadow: 6px 6px 0 #1a1a1a !important;
    background: #FFC107 !important;
}

html.toon-mode .mobile-back-btn:hover {
    transform: translate(-2px, -2px) scale(1.05) !important;
    box-shadow: 6px 6px 0 #1a1a1a !important;
    background: #FFC107 !important;
}


