/* Sort Even and Odd Numbers (Math). Big tiles for ages 7-9, touch and mouse. Motion is gentle and short. */
.eo-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.eo-lead { margin: 0; }
.eo-hint-btn { min-width: 110px; min-height: 54px; font-size: 1.15rem; }
.eo-feedback { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; margin: 6px 0 10px; padding: 6px 14px; border-radius: 16px; background: var(--paper); border: 2px solid var(--border); font-size: 1.2rem; font-weight: 900; text-align: center; }
.eo-feedback.good { color: var(--green-dark); background: #e6f6ec; border-color: var(--green-dark); }
.eo-feedback.try { color: #8a4a1c; background: #fff3b0; border-color: #d9a800; }
.eo-feedback-piko { width: 52px; height: 52px; object-fit: contain; }
.eo-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 160px; padding: 14px; border: 3px dashed var(--border); border-radius: 18px; background: white; margin-bottom: 14px; }
.eo-tile { display: flex; align-items: center; justify-content: center; min-width: 84px; height: 66px; padding: 0 14px; border-radius: 16px; background: var(--sky); border: 3px solid var(--blue-action); color: var(--ink); font-size: 1.8rem; font-weight: 900; user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.eo-tile.eo-selected { outline: 4px solid var(--green-dark); outline-offset: 2px; }
.eo-tile:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
.eo-choose { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; }
.eo-tile.eo-dragging { position: relative; z-index: 50; cursor: grabbing; box-shadow: 0 10px 18px rgba(0,0,0,.25); transition: none; }
.eo-tile.eo-return { transition: transform .3s ease-out; }
.eo-tile.eo-placed { cursor: default; touch-action: auto; min-width: 72px; height: 54px; font-size: 1.5rem; background: #fff; box-shadow: none; }
.eo-tile.eo-pop { animation: eo-pop .35s ease-out; }
.eo-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eo-box { min-height: 220px; padding: 12px; border: 4px solid; border-radius: 20px; transition: transform .15s ease, box-shadow .15s ease; }
.eo-box h2 { margin: 0 0 8px; text-align: center; font-size: 1.9rem; }
.eo-even { border-color: var(--blue-action); background: #eaf1ff; }
.eo-even h2 { color: var(--blue-action); }
.eo-odd { border-color: #c9791a; background: #fff1dc; }
.eo-odd h2 { color: #9a5a0c; }
.eo-box.eo-over { transform: scale(1.02); box-shadow: 0 0 0 5px rgba(58,95,184,.35); }
.eo-box.eo-nudge { animation: eo-nudge .4s ease-in-out; }
.eo-box-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@keyframes eo-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes eo-nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .eo-tile.eo-pop, .eo-box.eo-nudge { animation: none; } .eo-tile.eo-return { transition: none; } }
.eo-end { text-align: center; }
.eo-end-piko { width: 160px; height: auto; }
/* Hint page */
.eo-hint { font-size: 1.25rem; }
.eo-hint h1 { margin: 12px 0; }
.eo-steps { font-size: 1.45rem; line-height: 1.5; font-weight: 700; padding-left: 1.4em; max-width: 780px; }
.eo-steps li { margin-bottom: 14px; }
.eo-word-even { color: var(--blue-action); }
.eo-word-odd { color: #9a5a0c; }
.eo-examples { list-style: none; padding-left: 0; margin: 8px 0; }
.eo-examples.eo-rules { list-style: disc; padding-left: 1.6em; }
.eo-steps .eo-examples:not(.eo-rules) { padding-left: 1.6em; }
.eo-ex { display: inline-block; min-width: 3.2ch; padding: 0 10px; border-radius: 12px; background: var(--sky); border: 2px solid var(--blue-action); text-align: center; font-weight: 900; }
.eo-pictures { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
.eo-pic { flex: 1 1 260px; padding: 14px; border: 3px solid var(--border); border-radius: 18px; background: white; text-align: center; font-weight: 800; }
.eo-table { width: 100%; border-collapse: collapse; margin: 10px 0; table-layout: fixed; }
.eo-table th { padding: 4px 8px 8px; text-align: left; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
.eo-table th:first-child { color: #9a5a0c; }
.eo-table th:last-child { color: var(--blue-action); }
.eo-table td { padding: 6px 8px; vertical-align: middle; }
.eo-table { background: linear-gradient(var(--border), var(--border)) center / 1px 100% no-repeat; }
.eo-more { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 48px; font-size: 1.15rem; }
.eo-table .eo-more-row td { padding: 6px 8px; }
.eo-table .eo-more { width: 100%; }
.eo-examples li.eo-more-li { margin: 8px 0; }
.eo-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 3px solid var(--border); border-radius: 18px; background: white; box-sizing: border-box; }
.eo-num { flex: 0 0 2.2ch; font-size: 1.4rem; text-align: right; }
.eo-table .eo-dots { justify-content: flex-start; gap: 6px; min-height: 0; }
@media (max-width: 700px) { .eo-table th { font-size: .95rem; } .eo-table td { padding: 4px; } .eo-row { gap: 6px; padding: 4px 5px; border-width: 2px; border-radius: 12px; } .eo-num { font-size: 1.15rem; } .eo-table .eo-dot { width: 16px; height: 16px; } .eo-table .eo-pair { padding: 3px 4px; gap: 3px; } .eo-table .eo-dots { gap: 4px; } }
.eo-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 40px; }
.eo-pair { display: inline-flex; gap: 4px; padding: 4px 6px; border-radius: 999px; background: #eaf1ff; border: 2px solid var(--blue-action); }
.eo-pair.eo-leftover { background: #fff1dc; border-color: #c9791a; }
.eo-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green-dark); }
.eo-hint-piko { width: 110px; height: auto; float: right; margin: 0 0 8px 12px; }
@media (max-width: 700px) { .eo-tile { min-width: 74px; height: 60px; font-size: 1.6rem; } .eo-box { min-height: 180px; } .eo-steps { font-size: 1.25rem; } }
/* Timer, points, wrong tiles, finish summary */
.eo-clock { margin: 6px auto 8px; width: fit-content; min-width: 150px; padding: 4px 22px; border-radius: 18px; background: #e6f6ec; border: 3px solid var(--green-dark); color: var(--green-dark); font-size: 2.6rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.eo-clock.eo-over-time { background: #eaf1ff; border-color: var(--blue-action); color: var(--blue-action); }
.eo-paused { display: inline-block; margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: #eaf1ff; border: 2px solid var(--blue-action); color: var(--blue-action); font-size: 1rem; font-weight: 800; }
.eo-tile.eo-wrong { position: relative; background: #fff5f5; border: 3px solid #e89a9a; color: var(--ink); gap: 6px; }
.eo-x { font-size: 1.1rem; font-weight: 900; color: #b84a4a; }
.eo-result { margin: 6px 0; font-size: 1.5rem; font-weight: 800; }
.eo-win { color: var(--green-dark); }
.eo-practice { max-width: 560px; margin: 14px auto; padding: 12px 18px; border: 3px solid var(--border); border-radius: 18px; background: white; text-align: left; font-size: 1.25rem; font-weight: 700; }
.eo-practice h2 { margin: 0 0 6px; }
.eo-practice ul { margin: 6px 0; padding-left: 1.2em; }
.eo-tip { font-weight: 900; }

/* Instructions (with Piko) on the left, timer on the right */
.eo-feedrow { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.eo-feedrow .eo-feedback { flex: 1 1 auto; justify-content: flex-start; margin: 0; }
.eo-feedrow .eo-clock { flex: 0 0 auto; margin: 0; }
@media (max-width: 560px) { .eo-feedrow { flex-wrap: wrap; justify-content: center; } }

/* Finish page: Piko on the left, heading to his right */
.eo-end-head { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.eo-end-head h1 { margin: 0; }
.eo-end-head .eo-end-piko { width: 130px; }
