:root {
    --primary-color: #4facfe;
    --bg-color: #e6f7ff;
    --dot-color: #d0efff;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--dot-color) 20%, transparent 20%),
        radial-gradient(var(--dot-color) 20%, transparent 20%);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* Disable text selection to prevent accidental highlighting during drag/touch */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
    touch-action: none;
    overscroll-behavior: none;
    width: 100vw;
    overflow-y: auto;
}

/* 🎨 Palette: Global Focus Ring */
:focus-visible {
    outline: 4px dashed var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

#start-btn:focus-visible {
    outline: 4px dashed #2E7D32;
    /* Darker green for contrast */
    outline-offset: 4px;
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: loaderPulse 1.5s infinite ease-in-out;
}

.loader-text {
    font-size: 24px;
    font-weight: bold;
    color: #4facfe;
    /* Root primary color doesn't work well in at-rules sometimes, using literal */
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* --- Header --- */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 800px;
    margin-top: 5px;
    gap: 5px;
}

.header-row {
    display: flex;
    justify-content: center;
    /* Or space-between if you want them apart */
    align-items: center;
    gap: 20px;
    width: 100%;
}

.score-board {
    background: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 900;
    color: #ffaa00;
    border: 3px solid #eee;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

#menu-btn {
    background: #fff;
    border: 3px solid #eee;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
    font-family: inherit;
    transition: transform 0.1s;
}

#menu-btn:active {
    transform: scale(0.95);
}

/* --- Full Screen Menu Overlay --- */
#games-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#games-menu-overlay.hidden {
    display: none;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    align-items: center;
    margin-bottom: 20px;
}

.menu-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}

.close-menu-btn {
    background: #ff4444;
    color: white;
    border: 3px solid #cc0000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 0 #cc0000;
    transition: transform 0.1s, box-shadow 0.1s;
}

.close-menu-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
}

.game-select-card {
    background: white;
    border: 3px solid #eee;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 6px 0 #ccc;
    margin-bottom: 6px;
    /* Space for shadow */
}

.game-select-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #ccc;
    z-index: 10;
}

/* 🎨 Palette: Custom focus for game cards */
.game-select-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #ccc, 0 0 0 4px var(--primary-color);
    outline: none;
    /* Replaces default dashed outline with shadow */
    z-index: 10;
}

.game-select-card:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #ccc;
}

.game-select-card.active {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 6px 0 rgba(79, 172, 254, 0.6);
}

.game-icon {
    font-size: 40px;
}

.game-name {
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

/* --- Difficulty Controls (Math Only) --- */
#difficulty-bar {
    display: none;
    /* Hidden by default */
    gap: 10px;
    margin-top: 5px;
}

.diff-btn {
    padding: 5px 15px;
    border-radius: 15px;
    border: none;
    font-weight: bold;
    color: white;
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.2s;
    cursor: pointer;
}

.diff-btn.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.diff-easy {
    background-color: #44cc44;
}

.diff-med {
    background-color: #ffaa00;
}

.diff-hard {
    background-color: #ff4444;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.game-stage-transition {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- Standard Game Board --- */
.game-board {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 900px;
    flex-grow: 1;
    padding-bottom: 120px;
    /* Fix scrolling for standard game */
    /* height: 100%; <- Removed, caused clipping */
    min-height: 0;
    overflow-y: auto;
    align-items: flex-start;
    /* Allow scrolling from top */
    padding-top: 20px;
}

.game-board.hidden {
    display: none;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 45%;
    align-items: center;
    justify-content: center;
}

.item {
    width: 160px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 55px;
    border-radius: 20px;
    background: white;
    border: 4px solid #fff;
    box-shadow: 0 8px 0px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #444;
    position: relative;
    transition: transform 0.1s;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- Math Step-by-Step Board --- */
#math-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 600px;
    flex-grow: 1;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 120px;
    min-height: 0;
    overflow-y: auto;
    padding-top: 20px;
}

.math-question-box {
    background: white;
    border-radius: 30px;
    padding: 15px;
    width: 100%;
    min-height: 180px;
    flex-shrink: 0;
    /* Prevent squishing */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.05);
    border: 5px solid white;
}

.math-equation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
}

.emoji-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    max-width: 130px;
}

.math-emoji {
    font-size: 32px;
    line-height: 1.1;
}

.math-operator {
    font-size: 45px;
    color: #84fab0;
    font-weight: 900;
    margin: 0 8px;
}

.math-equals {
    font-size: 45px;
    color: #ccc;
    margin: 0 8px;
}

.math-target {
    width: 130px;
    height: 130px;
    border: 4px dashed #ccc;
    border-radius: 20px;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    color: #ddd;
    flex-shrink: 0;
    transition: all 0.3s;
}

.math-target.hint-active {
    border-color: #ffd700;
    background-color: #ffffe0;
    transform: scale(1.05);
}

.math-target.matched {
    border-color: #44cc44;
    background-color: #aaffaa;
    color: #000;
    border-style: solid;
}

.math-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
    /* Force single line */
}

.math-option {
    width: 90px;
    height: 90px;
    font-size: 45px;
    cursor: grab;
    flex-shrink: 1;
    /* Allow shrinking to fit */
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 3px solid #eee;
    border-radius: 20px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

/* --- General Draggable --- */
.draggable {
    cursor: grab;
    border-color: white;
    touch-action: none;
}

.draggable:active {
    transform: scale(1.1) rotate(5deg);
    z-index: 100;
    cursor: grabbing;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.droppable {
    background-color: rgba(255, 255, 255, 0.5);
    border: 4px dashed #bbb;
    box-shadow: none;
    overflow: hidden;
}

/* --- Visibility Modes --- */
.shadow-mode .droppable .content {
    filter: brightness(0);
    opacity: 0.5;
    pointer-events: none;
}

.letter-mode .droppable .content {
    opacity: 0.6;
    pointer-events: none;
}

.job-mode .droppable .content,
.number-mode .droppable .content {
    opacity: 0.95;
    filter: grayscale(100%);
    pointer-events: none;
}

/* --- Custom Grids --- */
.number-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    padding: 4px;
    box-sizing: border-box;
    align-items: center;
    justify-items: center;
}

.mini-emoji {
    font-size: 30px;
    line-height: 1;
}

/* --- Hint & Match --- */
.hint-active {
    border-color: #ffd700 !important;
    background-color: #ffffe0 !important;
    animation: hintPulse 1s infinite;
    z-index: 50;
}

@keyframes hintPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.matched {
    background-color: #aaffaa !important;
    border: 4px solid #44cc44 !important;
    box-shadow: 0 0 0 5px rgba(170, 255, 170, 0.5);
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.matched .content {
    filter: none !important;
    opacity: 1 !important;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(-5deg);
    }
}

/* --- Footer --- */
#controls {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

#reset-btn {
    pointer-events: auto;
    padding: 12px 30px;
    font-size: 24px;
    background: #ff6b6b;
    color: white;
    border: 3px solid #ff4444;
    border-radius: 50px;
    cursor: pointer;
    display: none;
    font-weight: 900;
    font-family: inherit;
    box-shadow: 0 6px 0 #cc3333;
}

#reset-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #cc3333;
}

/* --- Modal --- */
#reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

#reward-modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    border: 5px solid var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#reward-modal.show .modal-card {
    transform: scale(1);
}

.big-letter {
    font-size: 70px;
    display: block;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.big-emoji {
    font-size: 90px;
    display: block;
    margin: 5px 0;
}

.big-word {
    font-size: 35px;
    color: #444;
    font-weight: 900;
    display: block;
}

/* --- Start Screen (New) --- */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 247, 255, 0.9) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
    flex-direction: column;
    gap: 20px;
}

.start-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

#start-btn {
    font-size: 40px;
    padding: 15px 40px;
    border-radius: 50px;
    background: #4CAF50;
    color: white;
    border: none;
    box-shadow: 0 10px 0 #2E7D32;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    animation: pulse 2s infinite;
    transition: transform 0.1s;
}

#start-btn:active {
    transform: translateY(5px);
    box-shadow: 0 5px 0 #2E7D32;
    animation: none;
}

/* Icon Buttons (Mute, etc) */
.icon-btn {
    background: #fff;
    border: 3px solid #eee;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.icon-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

.whatsapp-btn {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #25D366;
    color: #075E54;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    transform: scale(1.05);
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    font-size: 60px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.cloud-1 {
    top: 10%;
    left: 10%;
    animation: drift 20s linear infinite;
}

.cloud-2 {
    top: 20%;
    right: 15%;
    animation: drift 25s linear infinite reverse;
}

.star-1 {
    bottom: 15%;
    left: 20%;
    font-size: 40px;
    animation: float 4s ease-in-out infinite 1s;
}

.star-2 {
    bottom: 25%;
    right: 10%;
    font-size: 50px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes drift {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- New Animations --- */

/* 1. Balloons */
.balloon {
    position: absolute;
    font-size: 50px;
    bottom: -10vh;
    animation: balloon-rise 4s ease-in forwards;
    opacity: 0.9;
}

@keyframes balloon-rise {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-60vh) rotate(10deg) scale(1.1);
    }

    100% {
        transform: translateY(-120vh) rotate(-10deg) scale(1);
    }
}

/* 2. Stars */
.star-anim {
    position: absolute;
    font-size: 40px;
    opacity: 0;
    animation: star-sparkle 2s ease-in-out infinite;
}

@keyframes star-sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* General Illustrations / Corner Decorations */
.corner-illustration {
    position: fixed;
    z-index: -1;
    font-size: 80px;
    opacity: 0.15;
    pointer-events: none;
    transition: all 0.5s ease;
}

.corner-top-left {
    top: 20px;
    left: 20px;
    transform: rotate(-15deg);
}

.corner-top-right {
    top: 20px;
    right: 20px;
    transform: rotate(15deg);
}

.corner-bottom-left {
    bottom: 20px;
    left: 20px;
    transform: rotate(15deg);
}

.corner-bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(-15deg);
}

/* 3. Bouncing Emojis */
.emoji-bounce {
    position: absolute;
    font-size: 60px;
    animation: bounce-fall 3s linear forwards;
}

@keyframes bounce-fall {
    0% {
        top: -10vh;
        transform: translateX(0);
    }

    20% {
        transform: translateX(20px);
    }

    40% {
        transform: translateX(-20px);
    }

    60% {
        transform: translateX(20px);
    }

    100% {
        top: 110vh;
        transform: translateX(0);
    }
}

/* 4. Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    bottom: -10vh;
    animation: bubble-rise 5s linear forwards;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .nav-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .score-board {
        font-size: 16px;
        padding: 4px 12px;
    }

    .column {
        gap: 8px;
        width: 48%;
    }

    .item {
        width: 100%;
        height: 90px;
        font-size: 45px;
        border-width: 3px;
    }

    .math-question-box {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 15px;
    }

    .math-target {
        width: 110px;
        height: 110px;
        font-size: 40px;
    }

    .math-options {
        gap: 8px;
    }

    .math-option {
        width: 65px;
        height: 65px;
        font-size: 30px;
        border-radius: 15px;
    }
}

/* --- Install Button Styling --- */
#install-container {
    display: none;
    /* Default: Hidden on Desktop and before logic runs */
    position: fixed;
    bottom: 80px;
    /* Moved up to avoid overlapping Next Round button */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
}

/* Logic: Only show when class 'show' is added AND screen is mobile */
@media (max-width: 600px) {
    #install-container.show {
        display: block;
    }
}

#btnInstall {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}

#btnInstall:active {
    background-color: #3e8e41;
    transform: translateY(2px);
}

/* Puzzle Mode */
#puzzle-target-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

#puzzle-target-img {
    width: 100px;
    height: 100px;
    border: 3px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.preview-label {
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

#puzzle-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    /* Fix scrolling for puzzle game */
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 120px;
}

#puzzle-stage.hidden {
    display: none;
}

#puzzle-grid {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: repeat(2, 150px);
    gap: 2px;
    background: #eee;
    padding: 5px;
    border: 3px solid #ccc;
    border-radius: 10px;
}

.puzzle-slot {
    width: 150px;
    height: 150px;
    background: #fff;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

#puzzle-pieces-pool {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 160px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
}

.puzzle-piece {
    width: 150px;
    height: 150px;
    cursor: grab;
    transition: transform 0.2s;
    background-size: 300px 300px;
    /* 2x2 grid of 150px pieces = 300px total */
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.puzzle-piece:active {
    cursor: grabbing;
    transform: scale(1.05);
}

/* Responsive Puzzle */
@media (max-width: 600px) {
    #puzzle-grid {
        grid-template-columns: repeat(2, 100px);
        grid-template-rows: repeat(2, 100px);
    }

    .puzzle-slot,
    .puzzle-piece {
        width: 100px;
        height: 100px;
    }

    .puzzle-piece {
        background-size: 200px 200px;
    }
}

/* Celebration Overlay - Premium Enhanced Version */
#celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow: hidden;
    backdrop-filter: blur(12px);
    perspective: 1200px;
}

/* Subtile pattern overlay */
#celebration-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 10%);
    background-size: 100px 100px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

#celebration-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.celebration-message {
    font-size: clamp(3.5rem, 18vw, 7.5rem);
    font-weight: 950;
    background: linear-gradient(to right, #ffffff, #ffd700, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    margin: 10px 0;
    animation: bounceIn 0.8s cubic-bezier(0.36, 0, 0.66, -0.56) infinite alternate, rainbowText 3s linear infinite;
    text-transform: uppercase;
    letter-spacing: 4px;
    z-index: 10;
    text-align: center;
    line-height: 1.1;
}

.celebration-sub-message {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    color: white;
    font-weight: 900;
    margin-top: 15px;
    z-index: 10;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 40px;
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease both 0.4s, float 3s ease-in-out infinite;
}

.celebration-character {
    width: clamp(200px, 50vw, 400px);
    height: clamp(200px, 50vw, 400px);
    margin-bottom: 25px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));
    animation: characterScale 2.5s ease-in-out infinite alternate;
}

.confetti {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 5;
    animation: confetti-fall 3.5s linear forwards, confetti-sway 2s ease-in-out infinite alternate;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* Animations section */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rainbowText {
    0% {
        filter: hue-rotate(0deg) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }

    100% {
        filter: hue-rotate(360deg) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

@keyframes characterScale {
    from {
        transform: scale(1) rotate(-3deg);
    }

    to {
        transform: scale(1.15) rotate(3deg);
    }
}

@keyframes bounceIn {
    from {
        transform: scale(0.92);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes confetti-sway {
    from {
        transform: translateX(-30px);
    }

    to {
        transform: translateX(30px);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Memory Game --- */
#memory-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    flex-grow: 1;
    padding-top: 20px;
    padding-bottom: 120px;
}

.memory-grid {
    display: grid;
    gap: 15px;
    padding: 10px;
    perspective: 1000px;
}

/* Grid presets based on difficulty */
.memory-grid.easy {
    grid-template-columns: repeat(3, 1fr);
    /* 2x3 */
}

.memory-grid.medium {
    grid-template-columns: repeat(4, 1fr);
    /* 3x4 */
}

.memory-grid.hard {
    grid-template-columns: repeat(4, 1fr);
    /* 4x4 */
}

.memory-card {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    /* Disable tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card.matched {
    cursor: default;
    animation: matchPulse 0.5s ease-out forwards;
}

/* Container for front and back faces */
.flipper {
    /* Not strictly needed if transform is on .memory-card, but good for structure */
    width: 100%;
    height: 100%;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 50px;
    border: 3px solid white;
}

/* Front Face (The Content/Emoji) - starts hidden */
.front {
    background: white;
    transform: rotateY(180deg);
}

/* Back Face ( The pattern) - starts visible */
.back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: rotateY(0deg);
}

/* Decoration on the back */
.back::after {
    content: '★';
    font-size: 40px;
    opacity: 0.8;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes matchPulse {
    0% {
        transform: rotateY(180deg) scale(1);
    }

    50% {
        transform: rotateY(180deg) scale(1.2);
        box-shadow: 0 0 20px #ffd700;
    }

    100% {
        transform: rotateY(180deg) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .memory-card {
        width: 80px;
        height: 80px;
    }

    .front,
    .back {
        font-size: 40px;
    }

    .back::after {
        font-size: 30px;
    }

    /* Adjust hard mode to fit mobile screens better */
    .memory-grid.hard {
        gap: 8px;
    }

    .memory-grid.hard .memory-card {
        width: 65px;
        height: 65px;
    }

    .memory-grid.hard .front,
    .memory-grid.hard .back {
        font-size: 30px;
    }
}

/* WhatsApp Icon and Update Button Styles */
.wa-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

#update-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    opacity: 0.6;
    transition: transform 0.3s, opacity 0.3s;
    padding: 5px;
    border-radius: 50%;
    z-index: 10;
}

#update-btn:hover {
    transform: rotate(180deg);
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

#update-btn:active {
    transform: scale(0.9);
}

/* --- Challenges UI --- */
#challenges-btn {
    background: #FFD700;
    border: 3px solid #E6C200;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 20px;
    font-weight: 900;
    color: #555;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
    font-family: inherit;
    transition: transform 0.1s;
}

#challenges-btn:active {
    transform: scale(0.95);
}

.overlay-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay-full.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#challenges-list {
    width: 100%;
    max-width: 600px;
    overflow-y: auto;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.challenge-item {
    background: white;
    border: 3px solid #eee;
    border-radius: 15px;
    padding: 15px;
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: all 0.3s;
}

.challenge-item.current {
    border-color: #4facfe;
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.challenge-item.completed {
    border-color: #44cc44;
    background: #f0fff0;
    opacity: 1;
}

.challenge-item.locked {
    background: #f9f9f9;
    filter: grayscale(100%);
}

.day-num {
    font-weight: 900;
    color: #888;
    text-align: center;
    font-size: 14px;
    background: #eee;
    padding: 5px;
    border-radius: 10px;
}

.current .day-num {
    background: #4facfe;
    color: white;
}

.completed .day-num {
    background: #44cc44;
    color: white;
}

.day-text {
    font-weight: bold;
    color: #444;
    font-size: 16px;
}

.day-status {
    font-size: 24px;
    text-align: center;
}

.day-tasks {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
    flex-wrap: wrap;
}

/* --- Parental Gate --- */
#parental-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#parental-gate-overlay.hidden {
    display: none;
}

.pg-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pg-content h2 {
    color: #444;
    margin-top: 0;
}

#pg-question {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

#pg-input-container {
    background: #f0f0f0;
    border: 3px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pg-input {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 5px;
}

#pg-input.shake {
    animation: shake 0.5s;
    color: red;
}

.pg-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pg-key {
    background: #e6f7ff;
    border: 2px solid #b3d9ff;
    border-radius: 10px;
    font-size: 24px;
    padding: 15px 0;
    cursor: pointer;
    font-weight: bold;
    color: #0066cc;
    transition: background 0.2s;
}

.pg-key:active,
.pg-key.active {
    background: #b3d9ff;
    transform: scale(0.95);
}

.pg-key.action-key {
    background: #ffd6cc;
    border-color: #ffad99;
    color: #cc3300;
}

.pg-key[data-val="enter"] {
    background: #ccffcc;
    border-color: #99ff99;
    color: #006600;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.error-text {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

/* --- Odd One Out Game --- */
#odd-one-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    flex-grow: 1;
    padding-bottom: 120px;
    min-height: 0;
    overflow-y: auto;
    padding-top: 20px;
}

.odd-one-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
    width: 100%;
    max-width: 500px;
}

.odd-one-card {
    background: white;
    border: 5px solid white;
    border-radius: 20px;
    aspect-ratio: 1;
    /* Square */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.1s;
}

.odd-one-card:active {
    transform: scale(0.95);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.odd-one-card.shake {
    animation: shake 0.5s;
    border-color: #ff4444;
}

@media (max-width: 600px) {
    .odd-one-grid {
        gap: 15px;
    }

    .odd-one-card {
        font-size: 50px;
        border-width: 3px;
    }
}

/* Feed the Lion Stage Layout */
#feed-lion-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.lion-container {
    width: 280px;
    height: 280px;
    margin-top: 10px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
}

.feed-tray {
    width: 95%;
    max-width: 600px;
    height: 180px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    /* Wooden Table Look */
    background-color: #8B4513;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 10px);
    border-radius: 20px;
    border-bottom: 8px solid #5D4037;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.feed-tray::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.food-item {
    font-size: 70px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    transition: transform 0.2s;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
    user-select: none;
}

.food-item:active {
    cursor: grabbing;
    transform: scale(1.2);
    z-index: 1000;
}

.lion-container.droppable.drag-over {
    transform: scale(1.1);
}

.game-select-card.locked {
    background-color: #ddd !important;
    border-color: #999 !important;
    opacity: 0.8;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.game-select-card.locked .game-icon {
    font-size: 40px;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .lion-container {
        width: 220px;
        height: 220px;
    }

    .feed-tray {
        height: 140px;
        margin-bottom: 80px;
        /* Space for bottom nav/controls */
    }

    .food-item {
        font-size: 55px;
        width: 60px;
        height: 60px;
    }
}

/* Food Wiggle Animation */
.food-wiggle {
    display: inline-block;
    animation: gentle-wiggle 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes gentle-wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

/* --- Sentence Game Styles --- */
.sentence-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
    overflow-y: auto;
}

.sentence-instruction {
    font-size: 24px;
    font-weight: 900;
    color: #3498db;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    animation: popIn 0.5s;
    text-align: center;
}

.sentence-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    gap: 15px;
    border: 5px solid #3498db;
    max-width: 100%;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

.sentence-part {
    width: 130px;
    height: 130px;
    border-radius: 25px;
    background: #e8f6f3;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #a2d9ce;
    font-size: 80px;
    /* Big Emojis */
    position: relative;
    user-select: none;
    transition: transform 0.2s;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.05);
}

.sentence-part.connector-part {
    width: 100px;
    height: 100px;
    background: #fff;
    border-color: #eee;
    font-size: 50px;
    color: #888;
}

.sentence-part.target-slot {
    background: #fff;
    border: 4px dashed #3498db;
    color: #ddd;
    font-weight: bold;
    font-size: 60px;
    animation: slotPulse 1.5s infinite ease-in-out;
}

.sentence-part.filled {
    background: #d5f5e3;
    border: 4px solid #2ecc71;
    border-style: solid;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slotPulse {
    0% {
        transform: scale(1);
        border-color: #3498db;
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }

    50% {
        transform: scale(1.05);
        border-color: #2980b9;
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }

    100% {
        transform: scale(1);
        border-color: #3498db;
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.sentence-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    width: 90%;
    max-width: 600px;
}

.sentence-option {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    background: white;
    border: 4px solid #eee;
    box-shadow: 0 8px 0 #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s, box-shadow 0.1s;
    font-size: 70px;
    padding: 5px;
}

.sentence-option:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #ddd;
}

.sentence-option:hover {
    border-color: #3498db;
    background: #fdfdfd;
}

.next-round-btn {
    margin-top: 30px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 6px 0 #27ae60;
    cursor: pointer;
    animation: popIn 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    font-family: inherit;
    transition: transform 0.1s, box-shadow 0.1s;
}

.next-round-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .sentence-strip {
        padding: 10px;
        gap: 8px;
    }

    .sentence-part {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .sentence-part.connector-part {
        width: 50px;
        font-size: 20px;
    }

    .sentence-option {
        width: 80px;
        height: 80px;
    }
}

/* --- Category Separators --- */
.game-category-separator {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: capitalize;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent);
    padding: 5px;
    border-radius: 10px;
}

#start-screen.hidden {
    display: none !important;
}

/* --- Emotions Game Mobile Fixes --- */
@media (max-width: 600px) {
    #emotions-stage {
        padding-top: 50px;
        padding-bottom: 70px;
        gap: 8px;
    }

    .face-container {
        width: 65vmin;
        height: 65vmin;
        max-width: 280px;
        max-height: 280px;
    }
}

/* --- Connect Dots Game Styles --- */
#connect-dots-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

#dots-instruction {
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4facfe;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 10;
}

#dots-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    touch-action: none;
}

#dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.dot {
    position: absolute;
    width: 50px;
    /* Bigger for toddlers */
    height: 50px;
    background: white;
    border: 3px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #555;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition: all 0.2s;
    user-select: none;
    z-index: 3;
}

.dot.active {
    border-color: #4facfe;
    background-color: #e3f2fd;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 5;
    animation: dotPulse 1.5s infinite;
}

.dot.next {
    border-color: #ff9800;
    border-style: dashed;
}

.dot.completed {
    background: #4facfe;
    border-color: #4facfe;
    color: white;
    opacity: 0.2;
}

@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(79, 172, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}
}