/* CSS specific to Lesson 3 */
/* Magic Tracing */
.dotted-text {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    color: transparent;
    -webkit-text-stroke: 2px #ccc;
    cursor: pointer;
    transition: color 0.5s ease, -webkit-text-stroke 0.5s ease;
    user-select: none;
    position: relative;
}

.dotted-text.traced {
    color: #2c2c2c;
    -webkit-text-stroke: 0px transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tracing-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-size: 3.5rem;
    min-width: 120px;
}

.tracing-group::before {
    content: '👆 Click to trace';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #009ce5;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    -webkit-text-stroke: 0;
    animation: bounce 2s infinite;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}

.tracing-group.completed::before {
    opacity: 0;
}

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

.tracing-word {
    font-size: 2.2rem;
}

/* Ten Frame for Lesson 3 */
.l3-ten-frame {
    display: grid;
    grid-template-columns: repeat(5, 45px);
    grid-template-rows: repeat(2, 45px);
    gap: 0;
    border: 3px solid #222;
    background-color: white;
}

.l3-frame-cell {
    border: 1px solid #222;
    cursor: pointer;
    transition: background-color 0.2s;
}

.l3-frame-cell.shaded {
    background-color: #ff3b30;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,0.2) 5px, rgba(255,255,255,0.2) 10px);
}

/* Practice layout */
.practice-row-l3 {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #eee;
}

.practice-row-l3:last-child {
    border-bottom: none;
}

.objects-group {
    display: flex;
    flex-wrap: wrap;
    width: 200px;
    gap: 5px;
    font-size: 3rem;
}

.objects-group .emoji-item {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

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

/* Checkmark indicator for each row */
.row-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
}

.row-status.done {
    background-color: #34c759;
}
