/* What Time Is It? / Saat Kaç? Builds on the ZEKASTRA Kids design system v3 tokens in kids-product.css. */
#kids-clock{--ck-hour:#e5484d;--ck-hour-d:#a8262b;--ck-minute:#2f6fe4;--ck-minute-d:#1b47a6;--ck-face:#fffaf0;--ck-ink:#1d2557;--ck-rim:#f6c96c;--ck-rim-d:#c89536}
.ck-stage{position:relative;background:radial-gradient(620px 320px at 100% 0,rgba(246,201,108,.12),transparent 70%),radial-gradient(520px 300px at 0 100%,rgba(124,188,255,.08),transparent 70%),var(--k-surface)}
.ck-stage :focus-visible{outline:4px solid var(--k-gold);outline-offset:3px}
.ck-stage h3:focus{outline:none}
.ck-score-star{width:18px;height:18px;fill:var(--k-gold);flex:none}
.ck-sheet{display:none}
#kids-clock [hidden]{display:none!important}

/* ---------- Mode tiles ---------- */
.ck-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.ck-mode{display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;min-width:0;padding:10px 12px;border-radius:20px;border:2px solid var(--k-line);background:rgba(255,255,255,.04);color:var(--k-ink);font:800 1rem/1.2 "Manrope",Inter,sans-serif;cursor:pointer;transition:background .15s,border-color .15s,transform .15s;text-align:left;overflow-wrap:anywhere}
.ck-mode svg{width:30px;height:30px;flex:none;fill:none;stroke:var(--k-gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ck-mode:hover{background:var(--k-surface-2);border-color:#3b4a9a}
.ck-mode[aria-pressed="true"]{background:linear-gradient(135deg,var(--k-gold),#f39c4a);border-color:transparent;color:#2a1a02;box-shadow:0 8px 22px rgba(246,201,108,.28)}
.ck-mode[aria-pressed="true"] svg{stroke:#2a1a02}

/* ---------- Levels + meter ---------- */
.ck-levelbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.ck-levels button{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.ck-level-num{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--k-surface-3);color:var(--k-ink);font-size:.85rem;font-weight:900;flex:none}
.ck-levels button[aria-pressed="true"] .ck-level-num{background:var(--k-gold);color:#2a1a02}
.ck-meter{display:flex;flex-wrap:wrap;gap:2px;list-style:none;margin:0;padding:6px 10px;border-radius:999px;background:var(--k-bg-2);border:1px solid var(--k-line-soft)}
.ck-meter-star{display:grid;place-items:center;width:28px;height:28px;margin:0}
.ck-meter-star svg{width:24px;height:24px;overflow:visible;fill:#222c66;stroke:#34408a;stroke-width:1.6;stroke-linejoin:round}
.ck-meter-star.is-current svg{fill:#3a3468;stroke:var(--k-gold);stroke-width:2}
.ck-meter-star.is-gold svg{fill:var(--k-gold);stroke:#ffe9b0;animation:ck-pop .5s cubic-bezier(.3,1.6,.5,1)}
.ck-meter-star.is-silver svg{fill:#c9d2f0;stroke:#eef2ff;animation:ck-pop .5s cubic-bezier(.3,1.6,.5,1)}

/* ---------- Board ---------- */
.ck-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(18px,3vw,36px);align-items:center}
.ck-clock-col{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.ck-clock-wrap{width:100%;max-width:440px;padding:clamp(8px,2vw,18px);border-radius:50%;background:radial-gradient(closest-side,rgba(246,201,108,.16),transparent);box-sizing:border-box}
.ck-clock{display:block;width:100%;height:auto;overflow:visible;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.ck-clock:focus{outline:none}
.ck-clock:focus-visible .ck-rim{stroke:#fff;stroke-width:5}
.is-setting .ck-clock{touch-action:none;cursor:grab}
.is-setting .ck-clock-col{user-select:none;-webkit-user-select:none}
.is-setting .ck-clock.is-dragging{cursor:grabbing}

/* Clock parts (shared by the big clock, mini clocks, how-to and print) */
.ck-rim{fill:var(--ck-rim,#f6c96c);stroke:var(--ck-rim-d,#c89536);stroke-width:3}
.ck-face{fill:var(--ck-face,#fffaf0);stroke:#e9dcc0;stroke-width:2}
.ck-tick{fill:none;stroke:#9aa3c7;stroke-width:1.6;stroke-linecap:round}
.ck-tick-major{fill:none;stroke:var(--ck-ink,#1d2557);stroke-width:3.4;stroke-linecap:round}
.ck-num{font:800 19px "Manrope",Inter,sans-serif;fill:var(--ck-ink,#1d2557)}
.ck-ring-num{font:800 11px "Manrope",Inter,sans-serif;fill:var(--k-gold,#f6c96c);opacity:0;transition:opacity .2s}
.show-ring .ck-ring-num{opacity:1}
.ck-hour-shape{fill:var(--ck-hour,#e5484d);stroke:var(--ck-hour-d,#a8262b);stroke-width:1.5;stroke-linejoin:round}
.ck-minute-shape{fill:var(--ck-minute,#2f6fe4);stroke:var(--ck-minute-d,#1b47a6);stroke-width:1.2;stroke-linejoin:round}
.ck-cap{fill:var(--ck-rim,#f6c96c);stroke:var(--ck-rim-d,#c89536);stroke-width:2}
.ck-cap-dot{fill:var(--ck-ink,#1d2557)}
.ck-hit{stroke:transparent;stroke-width:30;stroke-linecap:round;pointer-events:stroke}
.ck-hand{transform-box:view-box}
.ck-ghost{display:none}
.ck-ghost.is-on{display:inline}
.ck-ghost .ck-hour-shape,.ck-ghost .ck-minute-shape{fill:none;stroke-width:2.5;stroke-dasharray:5 4}
.ck-ghost .ck-hour-shape{stroke:var(--ck-hour,#e5484d)}
.ck-ghost .ck-minute-shape{stroke:var(--ck-minute,#2f6fe4)}
.glow-minute .ck-hand-minute:not(.ck-ghost) .ck-minute-shape{animation:ck-glow 1s ease 2}
.glow-hour .ck-hand-hour:not(.ck-ghost) .ck-hour-shape{animation:ck-glow 1s ease 2}
.ck-clock.is-right .ck-rim{animation:ck-rim 1.1s ease}

/* Legend + helper */
.ck-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;list-style:none;margin:0;padding:0}
.ck-legend li{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:.92rem;color:var(--k-ink)}
.ck-legend svg{width:40px;height:12px;flex:none}
.ck-legend-hour rect{fill:var(--ck-hour)}
.ck-legend-minute rect{fill:var(--ck-minute)}
.ck-helper{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px;border-radius:999px;border:2px solid var(--k-line);background:transparent;color:var(--k-ink-2);font:800 .9rem/1.2 "Manrope",Inter,sans-serif;cursor:pointer}
.ck-helper svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ck-helper[aria-pressed="true"]{background:rgba(246,201,108,.14);border-color:var(--k-gold);color:var(--k-gold)}

/* Big digital clock (Match) */
.ck-digital-big{width:100%;max-width:420px;text-align:center}
.ck-lcd{margin:0!important;padding:22px 16px;border-radius:28px;background:linear-gradient(180deg,#0a0f2c,#141b4d);border:3px solid #34428f;box-shadow:inset 0 0 30px rgba(0,0,0,.5),0 18px 40px rgba(2,4,20,.45);font:800 min(6rem,20vw)/1 "Manrope",Inter,sans-serif;letter-spacing:.04em;color:var(--k-mint)!important;text-shadow:0 0 18px rgba(98,227,171,.55);font-variant-numeric:tabular-nums}
.ck-lcd-words{margin:12px 0 0!important;font-weight:800;font-size:1.15rem;color:var(--k-ink)!important}

/* ---------- Panel ---------- */
.ck-panel{display:flex;flex-direction:column;gap:14px;min-width:0}
.ck-prompt{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ck-prompt h3{margin:0!important;font-family:"Manrope",Inter,sans-serif;font-size:clamp(1.45rem,3.2vw,2rem)!important;line-height:1.25;overflow-wrap:anywhere}
.ck-sub{margin:0!important}
.ck-scenes{width:100%;max-width:240px}
.ck-scene{display:block;width:100%;height:auto;border-radius:18px;background:linear-gradient(160deg,#16205a,#1e2a66);border:2px solid var(--k-line)}
.ck-target{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0!important}
.ck-target-words{font:800 clamp(1.3rem,3vw,1.7rem)/1.2 "Manrope",Inter,sans-serif;color:var(--k-gold)}
.ck-target-words:empty{display:none}
.ck-target-digital{display:inline-block;padding:4px 14px;border-radius:12px;background:#0a0f2c;border:2px solid #34428f;font:800 1.3rem/1.3 "Manrope",Inter,sans-serif;color:var(--k-mint);font-variant-numeric:tabular-nums}

/* Choices (Read) */
.ck-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ck-choices[data-count="3"]{grid-template-columns:1fr}
.ck-choice,.ck-mini{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:96px;padding:12px 10px;border:0;border-radius:22px;cursor:pointer;color:#0b1030;background:var(--ck-c,var(--k-gold));box-shadow:0 6px 0 var(--ck-d,#b98a2c),0 12px 24px rgba(0,0,0,.3);font-family:"Manrope",Inter,sans-serif;transition:transform .12s ease,box-shadow .12s ease,opacity .2s;touch-action:manipulation}
.ck-choices[data-count="3"] .ck-choice{flex-direction:row;gap:16px;min-height:76px;justify-content:flex-start;padding-left:52px}
.ck-c0{--ck-c:var(--k-gold);--ck-d:#b98a2c}.ck-c1{--ck-c:var(--k-cyan);--ck-d:#1c8fab}.ck-c2{--ck-c:var(--k-pink);--ck-d:#c25d97}.ck-c3{--ck-c:var(--k-mint);--ck-d:#2d9b6c}
.ck-choice-key{position:absolute;top:8px;left:12px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(11,16,48,.16);font:900 .8rem/1 Inter,sans-serif}
.ck-choices[data-count="3"] .ck-choice-key{top:50%;transform:translateY(-50%);left:14px}
.ck-choice-digital{font-weight:900;font-size:2rem;line-height:1;font-variant-numeric:tabular-nums}
.ck-choice-words{font-weight:800;font-size:1rem;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.ck-choices[data-count="3"] .ck-choice-words{text-align:left}
.ck-choice:not(:disabled):hover,.ck-mini:not(:disabled):hover{transform:translateY(-3px);box-shadow:0 9px 0 var(--ck-d),0 16px 28px rgba(0,0,0,.35)}
.ck-choice:not(:disabled):active,.ck-mini:not(:disabled):active{transform:translateY(4px);box-shadow:0 2px 0 var(--ck-d)}
.ck-choice:disabled,.ck-mini:disabled{cursor:default}
.ck-stage .is-wrong{background:#3a4278!important;color:#aab3da!important;box-shadow:0 4px 0 #262d5c!important;animation:ck-shake .4s ease}
.ck-stage .is-right{background:var(--k-mint)!important;box-shadow:0 0 0 5px #fff,0 0 30px rgba(98,227,171,.7)!important;opacity:1!important;animation:ck-pop .5s cubic-bezier(.3,1.6,.5,1)}
.ck-stage .is-faded{opacity:.35}

/* Mini clocks (Match) */
.ck-minis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ck-minis[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.ck-mini{padding:14px}
.ck-mini-clock{display:block;width:100%;max-width:170px;height:auto}
.ck-mini.is-wrong .ck-mini-clock{opacity:.5}

/* Setter (Set / My day) */
.ck-setter{display:flex;flex-direction:column;gap:12px}
.ck-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ck-step{min-height:56px;min-width:0;padding:6px 4px;border-radius:18px;border:2px solid var(--k-line);background:var(--k-surface-2);color:var(--k-ink);font:900 1.05rem/1.1 "Manrope",Inter,sans-serif;cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
.ck-step[data-step="5"],.ck-step[data-step="-5"]{border-color:rgba(47,111,228,.7);color:#bcd2ff}
.ck-step[data-step="60"],.ck-step[data-step="-60"]{border-color:rgba(229,72,77,.65);color:#ffc7c4}
.ck-step:not(:disabled):hover{background:var(--k-surface-3)}
.ck-step:disabled{opacity:.4;cursor:default}
.ck-check{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:60px!important;font-size:1.15rem!important}
.ck-check svg,.ck-next svg,#ck-print svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ck-keys{margin:0!important}

/* Status + actions */
.ck-status{margin:0!important;padding:12px 16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid var(--k-line-soft);line-height:1.4}
.ck-status[data-tone="hint"]{background:rgba(246,201,108,.12);border-color:rgba(246,201,108,.45);color:#ffe7b0!important}
.ck-status[data-tone="success"]{background:rgba(98,227,171,.13);border-color:rgba(98,227,171,.5);color:#c9ffe6!important}
.ck-actions{margin-top:0!important}
.ck-actions .kp-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:1 1 180px}

/* ---------- Win ---------- */
.ck-win{outline:none;padding:32px 20px}
.ck-win h3:focus-visible{outline:3px dashed var(--k-gold);outline-offset:6px;border-radius:8px}
.ck-win-stars{gap:10px;margin-bottom:14px}
.ck-star{width:60px;height:60px;fill:#2a3266;stroke:#4a5598;stroke-width:1;stroke-linejoin:round;overflow:visible}
.ck-star:nth-child(2){width:76px;height:76px;margin-top:-10px}
.ck-star.is-on{fill:var(--k-gold);stroke:#fff1c7;filter:drop-shadow(0 4px 10px rgba(246,201,108,.45));animation:ck-pop .6s cubic-bezier(.3,1.6,.5,1) both}
.ck-star.is-on:nth-child(2){animation-delay:.15s}.ck-star.is-on:nth-child(3){animation-delay:.3s}
.ck-win-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ck-win-actions .kp-button{flex:0 1 240px}

/* ---------- How to play ---------- */
.ck-howto{margin-top:22px;padding:clamp(18px,3vw,30px);border-radius:28px;background:var(--k-surface);border:1px solid var(--k-line-soft)}
.ck-howto h2{margin:0 0 16px!important;font-size:1.35rem!important}
.ck-howto-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ck-howto-steps li{display:flex;gap:14px;align-items:flex-start;margin:0;padding:16px;border-radius:20px;background:var(--k-bg-2);border:1px solid var(--k-line-soft)}
.ck-howto-steps svg{width:64px;height:64px;flex:none}
.ck-howto-steps strong{color:var(--k-ink)}
.ck-hw-face{fill:var(--ck-face);stroke:var(--ck-rim);stroke-width:4}
.ck-hw-hour{fill:var(--ck-hour)}
.ck-hw-minute{fill:var(--ck-minute)}
.ck-hw-cap{fill:var(--ck-rim)}
.ck-hw-quarter{fill:rgba(47,111,228,.22)}
.ck-hw-arrow{fill:none;stroke:var(--k-gold);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}

@keyframes ck-pop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes ck-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@keyframes ck-glow{0%,100%{filter:none}50%{filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #ffe9a0)}}
@keyframes ck-rim{0%,100%{fill:var(--ck-rim)}40%{fill:#62e3ab}}

/* ---------- Responsive ---------- */
@media(max-width:900px){
 .ck-board{grid-template-columns:1fr;gap:14px}
 .ck-panel{display:contents}
 .ck-prompt{order:1}.ck-clock-col{order:2}.ck-choices,.ck-minis,.ck-setter{order:3}.ck-status{order:4}.ck-actions{order:5}
 .ck-clock-wrap{max-width:400px}
 .ck-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ck-howto-steps{grid-template-columns:1fr}
}
@media(max-width:600px){
 .ck-levelbar{flex-direction:column;align-items:stretch}
 .ck-levels{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:20px}
 .ck-levels button{border-radius:15px;padding:6px 8px;justify-content:flex-start;overflow-wrap:anywhere;min-width:0}
 .ck-meter{justify-content:center;border-radius:18px}
 .ck-meter-star{width:24px;height:26px}.ck-meter-star svg{width:21px;height:21px}
 .ck-mode{flex-direction:column;gap:4px;text-align:center;font-size:.9rem;min-height:72px;padding:8px 6px}
 .ck-choice-digital{font-size:1.7rem}
 .ck-choice-words{font-size:.92rem}
 .ck-choice,.ck-mini{border-radius:18px;padding:10px 6px}
 .ck-minis,.ck-minis[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ck-step{font-size:.92rem;border-radius:14px}
 .ck-howto-steps li{flex-direction:column}
 .ck-star{width:48px;height:48px}.ck-star:nth-child(2){width:60px;height:60px}
}
@media(prefers-reduced-motion:reduce){
 .ck-stage *,.ck-stage *::before,.ck-stage *::after{animation:none!important;transition:none!important}
 .ck-choice:hover,.ck-mini:hover,.ck-choice:active,.ck-mini:active{transform:none!important}
}

/* ---------- Print: just the worksheet, black and white on A4 ---------- */
@media print{
 @page{size:A4;margin:12mm}
 .kp-header,.kp-footer,.kids-skip,.kp-back,.kg-hero,.kg-toolbar,.ck-modes,.ck-levelbar,.ck-board,.ck-win,.ck-howto,.kg-grownups{display:none!important}
 .kg-stage.ck-stage{background:#fff!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
 .ck-sheet{display:block!important;color:#000}
 .ck-sheet-title{font:800 20pt/1.2 "Manrope",Inter,sans-serif;text-align:center;margin:0 0 2mm!important}
 .ck-sheet-help{text-align:center;font-size:11pt;margin:0 0 6mm!important}
 .ck-sheet-name{display:block;margin-top:3mm;text-align:right}
 .ck-sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6mm 8mm;list-style:none;margin:0;padding:0}
 .ck-sheet-grid li{display:flex;flex-direction:column;align-items:center;gap:1mm;break-inside:avoid;margin:0}
 .ck-sheet-grid svg{width:48mm;height:48mm}
 .ck-sheet-words{font:700 11pt/1.2 "Manrope",Inter,sans-serif;text-align:center}
 .ck-sheet-digital{font:800 12pt/1.2 "Manrope",Inter,sans-serif;border:.4mm solid #000;border-radius:2mm;padding:0 3mm}
 .ck-sheet .ck-rim{fill:#fff!important;stroke:#000!important;stroke-width:3}
 .ck-sheet .ck-face{fill:#fff!important;stroke:#000!important;stroke-width:1}
 .ck-sheet .ck-tick{stroke:#555!important}
 .ck-sheet .ck-tick-major,.ck-sheet .ck-cap-dot{stroke:#000!important;fill:#000}
 .ck-sheet .ck-tick-major{fill:none}
 .ck-sheet .ck-num{fill:#000!important}
 .ck-sheet .ck-cap{fill:#000!important;stroke:#000!important}
}
