/* शब्द खोजो! — calm, high contrast, big Devanagari, tap targets of at least 56 px. Works from 320 px wide. */
.sk-wrap { max-width: 1000px; margin: 0 auto; padding: 0 12px; }
.sk {
  --ink: #1C1C1E; --muted: #55595F; --blue: #0A58C2; --ok: #1E7B34; --line: #C9D3E0;
  --dev: "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Mangal", "Lohit Devanagari", system-ui, sans-serif;
  position: relative; overflow: hidden;
  height: clamp(600px, calc(100svh - 72px), 900px);
  border-radius: 28px; background: #FFFBF3; color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.08);
  scroll-margin-top: 64px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  font-family: var(--dev);
}
.sk.tn-full { position: fixed !important; inset: 0; z-index: 3000; width: auto !important; margin: 0 !important; height: 100vh !important; height: 100dvh !important; border-radius: 0 !important; box-shadow: none !important; overscroll-behavior: contain;
  padding-left: max(env(safe-area-inset-left), calc((100vw - 900px) / 2)); padding-right: max(env(safe-area-inset-right), calc((100vw - 900px) / 2)); }
.sk button, .sk a.sk-btn { font-family: inherit; line-height: 1.3; color: inherit; cursor: pointer; }
.sk-pbox label, .sk-pbox legend { font-family: inherit; }
.sk :focus-visible { outline: 4px solid #007AFF; outline-offset: 3px; }
.sk [hidden] { display: none !important; }
.sk .en { display: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 600; color: var(--muted); }
.sk.show-en .en { display: inline; }
.sk.show-en ul.en { display: block; }
.sk-screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 14px 14px 18px; gap: 12px; }

/* buttons */
.sk-ib { width: 56px; height: 56px; flex: none; border: 0; border-radius: 18px; background: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.sk-hold { position: relative; overflow: hidden; }
.sk-hold .fill { position: absolute; left: 0; bottom: 0; height: 0; width: 100%; background: rgba(0,122,255,.25); }
.sk-hold.holding .fill { height: 100%; transition: height 1.5s linear; }
.sk-hold .lbl { position: relative; }
.sk-btn { min-height: 56px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 18px; background: #fff; font-weight: 700; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; flex-wrap: wrap; text-align: center; }
.sk-btn small { font-size: 13px; }
.sk-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.sk-btn.primary .en { color: #E3EEFF; }
.sk-big { min-height: 64px; font-size: 24px; padding: 8px 26px; }
.sk-row, .sk-prow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* home */
.sk-hhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sk-title { margin: 0; font-size: clamp(32px, 9vw, 48px); line-height: 1.25; color: #0B3D91; }
.sk-tip { margin: 0; text-align: right; color: var(--muted); }
.sk-setline { margin: 0; font-size: 18px; color: var(--muted); }
.sk-setline b { color: var(--ink); }
.sk-play { min-height: 76px; border: 0; border-radius: 24px; background: var(--blue); color: #fff; font-size: 32px; font-weight: 800; box-shadow: 0 4px 0 #063E8C; }
.sk-play:active { transform: translateY(2px); box-shadow: 0 2px 0 #063E8C; }
.sk-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sk-act { position: relative; min-height: 96px; border: 2px solid var(--line); border-radius: 20px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px; }
.sk-act .num { position: absolute; top: 6px; left: 10px; font-weight: 800; color: var(--muted); font-family: system-ui, sans-serif; }
.sk-act .ic { font-size: 30px; line-height: 1.2; }
.sk-act .nm { font-size: 19px; font-weight: 700; line-height: 1.3; text-align: center; }
.sk-act .seen { position: absolute; top: 6px; right: 10px; color: var(--ok); font-weight: 800; }
.sk-act.next { border: 3px solid var(--blue); }

/* play */
.sk-bar { display: flex; align-items: center; gap: 10px; }
.sk-dots { flex: 1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sk-dots i { width: 12px; height: 12px; border-radius: 50%; background: #D9DEE6; }
.sk-dots i.on { background: var(--blue); }
.sk-dots i.now { background: #fff; box-shadow: inset 0 0 0 3px var(--blue); }
.sk-task { margin: 0; text-align: center; font-size: 22px; color: var(--muted); font-weight: 700; outline: none; }
.sk-stage { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; }
.sk-msg { margin: 0; min-height: 1.6em; text-align: center; font-size: 20px; line-height: 1.5; }
.sk-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sk-actions > .sk-btn + .sk-btn { margin-top: -2px; }
.sk-card { margin: 0; background: #fff; border-radius: 26px; padding: 12px 18px; box-shadow: 0 3px 12px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; }
.sk-img { display: block; width: clamp(130px, min(46vw, 28vh), 240px); height: auto; aspect-ratio: 1; }
.sk-card.big .sk-img { width: clamp(140px, min(56vw, 30vh), 260px); }
.sk-w { font-family: var(--dev); font-weight: 700; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
/* Plain inline spans keep the top line (शिरोरेखा) joined across the word. */
.sk-w .ak { display: inline; }
.sk-w .ak.lit { background: #FFE58A; text-decoration: underline 4px #1C1C1E; text-underline-offset: .12em; border-radius: 8px; }
.sk-w.huge { font-size: clamp(64px, 20vw, 120px); }
.sk-wordbox { background: #fff; border-radius: 26px; padding: 4px 30px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.sk-hint { font-size: 22px; background: #FFF4CC; border: 2px dashed #1C1C1E; border-radius: 16px; padding: 4px 16px; }
.sk-hint b { font-size: 40px; vertical-align: middle; }

/* choices */
.sk-choices { display: flex; justify-content: center; gap: 12px; width: 100%; flex-wrap: wrap; }
.sk-choice { min-width: 56px; min-height: 76px; border: 3px solid var(--line); border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 4px 10px; position: relative; }
.sk-choice.word { flex: 1 1 0; max-width: 220px; }
.sk-choice.word .sk-w { font-size: clamp(40px, 12vw, 64px); }
.sk-choices.n3 .sk-choice.word .sk-w { font-size: clamp(34px, 10vw, 60px); }
.sk-choice.pic { flex: 1 1 0; max-width: 220px; padding: 8px; }
.sk-choice.pic .sk-img { width: 100%; max-width: 170px; }
.sk-choice:disabled { opacity: .45; cursor: default; }
.sk-choice.ok { border-color: var(--ok); border-width: 5px; opacity: 1; }
.sk-choice.ok::after, .sk-m.done::after { content: "✓"; position: absolute; top: 4px; right: 8px; font-size: 22px; font-weight: 800; color: var(--ok); font-family: system-ui, sans-serif; }
.sk-after { margin-top: 2px; }

/* match */
.sk-match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 560px; }
.sk-match .col { display: flex; flex-direction: column; gap: 10px; }
.sk-m { position: relative; min-height: 76px; border: 3px solid var(--line); border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 4px; }
.sk-m.word .sk-w { font-size: clamp(36px, 11vw, 56px); }
.sk-m.pic .sk-img { width: clamp(64px, min(26vw, 13vh), 120px); }
.sk-match.n3 .sk-m.pic .sk-img { width: clamp(60px, min(24vw, 10.5vh), 110px); }
.sk-m.sel { border-color: var(--blue); border-width: 5px; background: #EEF5FF; }
.sk-m.done { border-style: solid; border-color: var(--ok); background: #F1FAF3; opacity: 1; }
.sk-m .tag { position: absolute; left: 8px; top: 4px; font-style: normal; font-weight: 800; font-size: 20px; color: var(--ok); }
.sk-m:disabled { cursor: default; color: inherit; }

/* gentle feedback: a slow sway, never a buzzer; nothing moves in calm mode */
.sk .nope { animation: skSway .45s ease; }
@keyframes skSway { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sk .glow { box-shadow: 0 0 0 5px #FFC93C, 0 0 0 10px rgba(255,201,60,.3) !important; border-color: #1C1C1E !important; }
.sk .bump { animation: skBump .3s ease; }
@keyframes skBump { 50% { transform: scale(1.08); } }
.sk.calm *, .sk.calm *::before, .sk.calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .sk *, .sk *::before, .sk *::after { animation: none !important; transition: none !important; } }

/* overlays */
.sk-over { position: absolute; inset: 0; background: rgba(255,251,243,.97); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 5; overflow-y: auto; }
.sk-donebox { text-align: center; }
.sk-donebig { font-size: 72px; margin: 0; }
.sk-donebox h3 { font-size: 44px; margin: 0; }
.sk-donesub { font-size: 20px; color: var(--muted); }
.sk-parent { align-items: flex-start; }
.sk-pbox { max-width: 620px; width: 100%; background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: 0 4px 18px rgba(0,0,0,.1); font-size: 17px; line-height: 1.55; }
.sk-pbox h3 { margin: 0 0 6px; font-size: 26px; }
.sk-pbox h3 small { font-size: 15px; color: var(--muted); }
.sk-pbox h4 { margin: 14px 0 6px; font-size: 19px; }
.sk-pbox fieldset { border: 2px solid #E6EAF0; border-radius: 14px; margin: 10px 0; padding: 8px 12px; }
.sk-pbox legend { font-weight: 700; padding: 0 4px; }
.sk-pbox label { display: flex; align-items: center; gap: 10px; min-height: 48px; flex-wrap: wrap; }
.sk-pbox fieldset label + label { border-top: 1px solid #F0F2F5; }
.sk-pbox input[type=radio], .sk-pbox input[type=checkbox] { width: 24px; height: 24px; flex: none; }
.sk-entoggle { font-family: system-ui, sans-serif; font-weight: 600; }
.sk-note { color: var(--muted); font-size: 15px; margin: 6px 0; }
.sk-how ul { padding-left: 20px; margin: 4px 0; }
.sk-pbox .sk-prow { justify-content: flex-start; margin-top: 8px; }
.sk-pbox .sk-btn { font-size: 17px; }

@media (max-width: 380px) {
  .sk-screen { padding: 10px 10px 14px; gap: 8px; }
  .sk-acts { grid-template-columns: 1fr 1fr; }
  .sk-big { font-size: 21px; padding: 8px 16px; }
  .sk-choices { gap: 8px; }
}
@media (max-height: 640px) {
  .sk-img { width: clamp(110px, min(40vw, 24vh), 200px); }
  .sk-w.huge { font-size: clamp(56px, 16vw, 96px); }
}
/* hear the instruction */
.sk-say { margin-left: 8px; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); font-size: 20px; vertical-align: middle; cursor: pointer; }
