/* /learn/preschool/ — ages 3–5 drawing + colouring. Builds on /learn/toddlers/toddlers.css (light only). */
.pre-wrap { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.board { flex: 1; min-height: 0; position: relative; border-radius: 24px; background: #fff; border: 6px solid var(--gold); box-shadow: var(--shadow); overflow: hidden; }
.board canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; }
.board svg .reg { fill: #fff; stroke: #1c1a12; stroke-width: 5; stroke-linejoin: round; cursor: pointer; transition: fill 0.18s; }
.board svg .deco { fill: #1c1a12; pointer-events: none; }
.board svg .line { fill: none; stroke: #1c1a12; stroke-width: 5; stroke-linecap: round; pointer-events: none; }

.tools { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 3px 0 rgba(120, 80, 0, 0.25); flex-shrink: 0; }
.sw.rainbow { background: conic-gradient(#ef4444, #facc15, #22c55e, #3b82f6, #a855f7, #ef4444); }
.sw.on { outline: 4px solid #1c1a12; transform: scale(1.14); }
.tbtn { min-width: 52px; height: 52px; padding: 0 12px; border-radius: 16px; background: #fff; font-size: 1.5rem; font-weight: 900; color: #1c1a12; box-shadow: 0 4px 0 rgba(120, 80, 0, 0.22); }
.tbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(120, 80, 0, 0.22); }
.tbtn.on { background: #fde68a; outline: 3px solid var(--gold); }
.tbtn:disabled { opacity: 0.4; }
.tbtn .dot { display: inline-block; border-radius: 50%; background: #1c1a12; vertical-align: middle; }
.tbtn.go { background: var(--green); color: #fff; }
.tbtn.go.pulse { animation: pulse 1.2s ease-in-out infinite; }

.chip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: #1c1a12; color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 20px; z-index: 5; pointer-events: none; animation: chipBob 1.6s ease-in-out infinite; white-space: nowrap; }
@keyframes chipBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }

.cele { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    background: rgba(255, 253, 246, 0.9); animation: tileIn 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.cele .star { font-size: 4rem; }
.cele .big { font-size: min(34vw, 30vh); line-height: 1.1; }
.cele .en { font-size: 1.6rem; font-weight: 900; }
.cele button { margin-top: 12px; }

.picks { display: flex; gap: 8px; justify-content: center; }
.pick { width: 56px; height: 56px; border-radius: 16px; background: #fff; font-size: 1.9rem; box-shadow: 0 4px 0 rgba(120, 80, 0, 0.22); }
.pick.on { background: #fde68a; outline: 3px solid var(--gold); }

/* marker cup */
.holder { position: relative; height: 100px; display: flex; justify-content: center; align-items: flex-end; gap: 5px; padding: 0 14px; overflow: hidden; flex-shrink: 0; }
.holder::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 44px; border-radius: 10px 10px 24px 24px; pointer-events: none; z-index: 3;
    background: repeating-linear-gradient(90deg, #8b5cf6 0 18px, #7c3aed 18px 36px); box-shadow: 0 -3px 0 rgba(255,255,255,.35) inset, 0 6px 12px rgba(80,40,160,.3); }
.marker { --m: #ef4444; position: relative; width: 30px; height: 88px; flex: 0 1 30px; border-radius: 9px 9px 4px 4px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent 40%, rgba(0,0,0,.12)), var(--m);
    border: 3px solid rgba(0,0,0,.18); transform: translateY(10px); transition: transform 0.18s; z-index: 1; padding: 0; }
.marker::before { content: ''; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 14px; height: 14px; background: var(--m); border: 3px solid rgba(0,0,0,.18); border-bottom: 0; border-radius: 6px 6px 0 0; }
.marker.white { border-color: rgba(0,0,0,.35); }
.marker.on { transform: translateY(-14px); }
.marker.wiggle { animation: wig 0.5s ease 2; }
@keyframes wig { 0%, 100% { transform: translateY(10px) rotate(0); } 50% { transform: translateY(-4px) rotate(6deg); } }
