/* The screen shown while Eli marks a homework. See _MarkingScreen.cshtml. */

.mks-cover { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.mks-cover[hidden], .mks-cover [hidden] { display: none !important; }
.mks-card { display: flex; flex-direction: column; width: 100%; }

/* Eli, drawn from the logo */
.mks-eli rect, .mks-eli path { fill: none; stroke: #F58A07; }
.mks-eli rect { stroke-width: 26; stroke-linejoin: round; }
.mks-eli-eyes { stroke-width: 13; stroke-linecap: round; }
.mks-eli-mouth { stroke-width: 16; }

/* ---- The plain card ---- */
.mks-adult { background: #F8F6F2; }
.mks-adult .mks-card { gap: 14px; max-width: 440px; padding: 32px 28px; border: 1px solid #E8E2D6; border-radius: 16px; background: #fff; }
.mks-adult .mks-eli { width: 52px; height: 52px; }
.mks-adult .mks-title { color: #2E3A47; font-size: 22px; font-weight: 800; line-height: 1.25; }
.mks-adult .mks-sub { color: #5C6470; font-size: 15px; line-height: 1.5; }
.mks-rows { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.mks-row { display: flex; align-items: center; gap: 10px; color: #5C6470; }
.mks-row i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 2px solid #E8E2D6; border-radius: 50%; color: #fff; font-size: 11px; font-style: normal; }
.mks-row.is-now { color: #8F4A00; font-weight: 700; }
.mks-row.is-now i { border-color: #F5A623; }
.mks-row.is-done { color: #2E3A47; }
.mks-row.is-done i { border-color: #3FA45B; background: #3FA45B; }
.mks-bar { height: 6px; border-radius: 99px; background: #F0ECE6; overflow: hidden; }
.mks-bar-fill { width: 8%; height: 100%; border-radius: 99px; background: #F5A623; transition: width .6s ease; }

/* ---- The child's version: their world stays, and the page behind it goes ---- */
body.mks-on.eli-kids-world * { visibility: hidden; }
body.mks-on.eli-kids-world .kw-scene,
body.mks-on.eli-kids-world .kw-scene *,
body.mks-on.eli-kids-world .mks-cover,
body.mks-on.eli-kids-world .mks-cover * { visibility: visible; }

/* OLD: everything sat on one white card. Now only the title has frosted glass. */
.mks-kids .mks-card { align-items: center; justify-content: center; gap: 18px; max-width: 860px; min-height: 520px; padding: 26px 20px; border-radius: 0; background: transparent; box-shadow: none; }
.mks-kids .mks-title, .mks-kids .mks-sub { max-width: 100%; }
.mks-kids .mks-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 28px; border: 2px solid var(--kw-edge); border-radius: 22px; background: color-mix(in srgb, var(--kw-glass) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--kw-shadow); }
.mks-kids .mks-eli { width: 128px; height: 128px; animation: mks-bob 1.5s ease-in-out infinite; }
.mks-kids .mks-title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; line-height: 1.2; }
.mks-kids .mks-sub { color: #5C6470; font-size: 18px; }
.mks-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.mks-check { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; flex: 0 0 118px; min-width: 0; aspect-ratio: 1; padding: 10px 6px; border-radius: 20px; background: #fff; box-shadow: var(--kw-shadow); color: #5C6470; font-size: 14px; font-weight: 800; line-height: 1.2; }
.mks-check i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E8E2D6; color: #5C6470; font-size: 16px; font-style: normal; }
.mks-check.is-done { background: #fff; color: #1F7038; outline: 3px solid #3FA45B; }
.mks-check.is-done i { background: #3FA45B; color: #fff; }

@keyframes mks-bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@media (max-width: 620px) {
    .mks-kids .mks-card { min-height: 440px; padding: 20px 14px; }
    .mks-check { flex-basis: 100px; }
    .mks-check { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .mks-kids .mks-eli { animation: none; }
}
