/* NEERMAI Play & Learn (2.11.0). Mobile first, light and dark, every screen. Developed by the NEERMAI team. */
.npl { max-width: 760px; }
.npl { --g: #2E9F6B; --y: #D98F1F; --x: color-mix(in srgb, var(--ink) 38%, var(--surface)); }
.npl .nmw-tabs { position: static; }
.npl-intro { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; text-align: center; }
.npl-intro .nmw-link { padding: 2px 4px; }

/* Language chips */
.npl-lcs, .npl-sel { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.npl-lc { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 650 14px/1.2 var(--f); padding: 9px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.npl-lc.is-on { background: var(--a); border-color: var(--a); color: #fff; }
.npl-lc:disabled { opacity: .35; cursor: default; }
.npl-lc:focus-visible, .npl-k:focus-visible, .npl-topic:focus-visible, .npl-op:focus-visible, .npl-card:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

/* Board: tiles size themselves to the screen width and height, so it always fits */
.npl-word { --sz: min(62px, calc((100vw - 48px) / var(--n) - 7px), calc((100vh - 430px) / 6 - 7px)); --sz: min(62px, calc((min(100vw, 760px) - 48px) / var(--n) - 7px), max(38px, calc((100dvh - 430px) / 6 - 7px))); }
.npl-board { display: grid; gap: 7px; justify-content: center; margin: 0 auto 6px; }
.npl-row { display: grid; grid-template-columns: repeat(var(--n), var(--sz)); gap: 7px; }
.npl-t { display: grid; place-items: center; width: var(--sz); height: var(--sz); border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 800 calc(var(--sz) * .46)/1 var(--f); text-transform: uppercase; user-select: none; transition: border-color .15s, transform .15s; }
.npl-word[lang="ta"] .npl-t, .npl-word[lang="si"] .npl-t { font-size: calc(var(--sz) * .38); font-weight: 700; text-transform: none; }
.npl-t.is-in { border-color: color-mix(in srgb, var(--ink) 55%, transparent); animation: npl-pop .12s ease; }
.npl-t.is-g, .npl-t.is-y, .npl-t.is-x { color: #fff; border-color: transparent; }
.npl-t.is-g { background: var(--g); } .npl-t.is-y { background: var(--y); } .npl-t.is-x { background: var(--x); }
.npl-t.is-flip { animation: npl-flip .5s ease both; }
.npl-row.is-shake { animation: npl-shake .4s ease; }
.npl-row.is-win .npl-t { animation: npl-jump .6s ease both; }
.npl-row.is-win .npl-t:nth-child(2) { animation-delay: .08s; } .npl-row.is-win .npl-t:nth-child(3) { animation-delay: .16s; } .npl-row.is-win .npl-t:nth-child(4) { animation-delay: .24s; } .npl-row.is-win .npl-t:nth-child(5) { animation-delay: .32s; }
@keyframes npl-pop { 50% { transform: scale(1.08); } }
@keyframes npl-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes npl-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes npl-jump { 40% { transform: translateY(-12px); } 70% { transform: translateY(2px); } }
.npl-msg { min-height: 22px; margin: 4px 0; text-align: center; font-weight: 650; font-size: 14px; }
.npl-hint { text-align: center; margin: 0 0 10px; }
.npl-hintx { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 14px; background: var(--soft); font-size: 14.5px; line-height: 1.5; }
.npl-hintx i { color: var(--muted); font-style: normal; padding: 0 2px; }

/* Keyboards */
.npl-kb { max-width: 520px; margin: 0 auto; display: grid; gap: 7px; }
.npl-kr { display: flex; justify-content: center; gap: 5px; }
.npl-k { flex: 1 1 0; min-width: 0; max-width: 46px; height: 54px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font: 700 15px/1 var(--f); cursor: pointer; display: grid; place-items: center; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .2s, transform .08s; }
.npl-k:active { transform: scale(.94); }
.npl-k.is-act, .npl-k.is-go { flex: 1.5 1 0; max-width: 72px; font-size: 13px; }
.npl-k.is-go { background: var(--a); color: #fff; }
.npl-k svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.npl-k.is-g, .npl-k.is-y, .npl-k.is-x { color: #fff; }
.npl-k.is-g { background: var(--g); } .npl-k.is-y { background: var(--y); } .npl-k.is-x { background: var(--x); opacity: .75; }
.npl-kb.is-tiles .npl-kg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(64px, 22%), 1fr)); gap: 7px; }
.npl-kb.is-tiles .npl-k { max-width: none; height: 56px; font-size: 21px; font-weight: 700; }
.npl-kb.is-tiles .npl-kr.is-acts .npl-k { max-width: 160px; height: 50px; }
@media (max-width: 360px) { .nmw.npl { padding-left: 10px; padding-right: 10px; } .npl .nmw-tabs { gap: 2px; } .npl .nmw-tabs button { font-size: 12.5px; padding: 10px 6px; } .npl-lc { padding: 8px 12px; font-size: 13.5px; } .npl-k { height: 48px; font-size: 13.5px; } .npl-kr { gap: 3px; } .npl-kb { gap: 6px; } .npl-kb.is-tiles .npl-k { height: 50px; font-size: 19px; } }
@media (max-height: 600px) { .npl-k { height: 44px; } .npl-kb.is-tiles .npl-k { height: 46px; } .npl-intro { margin-bottom: 8px; } }

/* End of the day's game */
.npl-end { margin: 18px auto 0; max-width: 520px; padding: 20px; border-radius: var(--r, 20px); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.npl-end.is-anim { animation: nmwUp .45s ease both; }
.npl-end h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.npl-w3s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.npl-w3 { padding: 10px 8px; border-radius: 14px; background: var(--soft); display: grid; gap: 2px; min-width: 0; }
.npl-w3 small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.npl-w3 b { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.npl-w3 em { font-style: normal; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.npl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0 14px; }
.npl-stats b { display: block; font-size: 24px; line-height: 1.1; }
.npl-stats small { color: var(--muted); font-size: 12px; }
.npl-dist { display: grid; gap: 5px; margin: 0 auto 16px; max-width: 360px; text-align: left; }
.npl-dr { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: center; font-size: 13px; }
.npl-dr span { display: block; }
.npl-dr i { display: block; min-width: 22px; padding: 3px 7px; border-radius: 6px; background: var(--x); color: #fff; font-style: normal; font-weight: 700; text-align: right; box-sizing: border-box; }
.npl-dr i.is-me { background: var(--g); }
.npl-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.npl-acts .nmw-b { display: inline-flex; align-items: center; gap: 8px; }
.npl-acts .nmw-b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.npl-next { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.npl-next b { color: var(--ink); font-variant-numeric: tabular-nums; }
.npl-join { margin: 16px auto 0; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--a) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--a) 22%, transparent); text-align: center; }
.npl-join b { display: block; font-size: 16px; }
.npl-join p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.npl-join .nmw-b { text-decoration: none; display: inline-flex; }
.npl-more { margin: 12px 0 0; }
.npl-how ul { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.npl-how li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.npl-how .npl-t { width: 34px; height: 34px; font-size: 16px; flex: none; }
.npl-how p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.npl-how .nmw-btns { justify-content: center; }

/* Learn languages */
.npl-pick { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: var(--r, 20px); background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.npl-pick > div { display: grid; gap: 6px; }
.npl-pick small { color: var(--muted); font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.npl-pick .npl-sel { margin: 0; }
@media (min-width: 640px) { .npl-pick { grid-template-columns: 1fr 1fr; } }
.npl-goal { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r, 20px); margin-bottom: 14px; color: #fff; background: var(--grad); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--a) 70%, transparent); }
.npl-goal > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.npl-goal b { font-size: 16.5px; color: #fff; }
.npl-goal small { font-size: 13.5px; opacity: .92; color: #fff; }
.npl-ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .28) 0); }
.npl-ring i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--a-deep, #36214A) 70%, transparent); font: 800 16px/1 var(--f); font-style: normal; color: #fff; }
.npl-ring.is-big { width: 110px; height: 110px; margin: 0 auto 10px; background: conic-gradient(var(--g) calc(var(--p) * 1%), var(--soft) 0); }
.npl-ring.is-big i { width: 88px; height: 88px; background: var(--surface); color: var(--ink); font-size: 24px; }
.npl-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.npl-topic { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: transform .15s, box-shadow .2s, border-color .2s; min-width: 0; }
.npl-topic:hover { transform: translateY(-2px); box-shadow: var(--shadow2); border-color: color-mix(in srgb, var(--a) 35%, var(--line)); }
.npl-tn { font-weight: 750; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.npl-tw { color: var(--a); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.npl-topic small { color: var(--muted); font-size: 12.5px; }
.npl-bar { display: block; height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 4px 0 2px; }
.npl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--g); transition: width .5s ease; }
.npl-learn .npl-join.is-soft { margin-top: 16px; }

.npl-th { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.npl-th > div:not(.npl-mode) { flex: 1 1 140px; min-width: 0; display: grid; }
.npl-th b { font-size: 18px; line-height: 1.3; }
.npl-th small { color: var(--a); font-size: 14px; }
.npl-th .nmw-b.sm { width: 42px; height: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; }
.npl-th .nmw-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.npl-mode { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; }
.npl-mode button { border: 0; background: none; color: var(--ink2); font: 650 13.5px/1 var(--f); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.npl-mode button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow2); }
.npl-pos { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 10px; }

/* The flip card */
.npl-card { position: relative; max-width: 460px; margin: 0 auto; height: clamp(220px, 42vh, 320px); perspective: 1200px; cursor: pointer; border-radius: 26px; outline: none; }
.npl-cf, .npl-cb { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 22px; text-align: center; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2, .9, .3, 1); }
.npl-cf { background: var(--grad); color: #fff; box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--a) 75%, transparent); }
.npl-cb { background: var(--surface); color: var(--ink); border: 1px solid var(--line); transform: rotateY(180deg); }
.npl-card.is-flip .npl-cf { transform: rotateY(-180deg); }
.npl-card.is-flip .npl-cb { transform: rotateY(0); }
.npl-cf b, .npl-cb b { font-size: clamp(28px, 8vw, 44px); line-height: 1.25; overflow-wrap: anywhere; }
.npl-cf b { color: #fff; }
.npl-cf em, .npl-cb em { font-style: normal; font-size: 17px; opacity: .92; overflow-wrap: anywhere; }
.npl-cf small { font-size: 12.5px; opacity: .8; margin-top: 8px; color: #fff; }
.npl-cb small { color: var(--muted); font-size: 14px; }
.npl-acts.is-card { margin-top: 18px; }
@media (max-width: 400px) { .npl-acts.is-card .nmw-b { flex: 1 1 40%; justify-content: center; padding-left: 12px; padding-right: 12px; } }
.npl-done { text-align: center; padding: 26px 18px; border-radius: var(--r, 20px); background: var(--surface); border: 1px solid var(--line); max-width: 520px; margin: 0 auto; animation: nmwUp .4s ease both; }
.npl-done h3 { margin: 0 0 6px; font-size: 20px; }
.npl-done p { margin: 0; color: var(--muted); }

/* Quiz */
.npl-q { text-align: center; padding: 22px 16px; border-radius: 22px; background: var(--grad); color: #fff; max-width: 520px; margin: 0 auto 14px; display: grid; gap: 4px; }
.npl-q small { opacity: .85; font-size: 13px; color: #fff; }
.npl-q b { font-size: clamp(26px, 7vw, 38px); line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.npl-q em { font-style: normal; opacity: .9; font-size: 16px; }
.npl-opts { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 520px; margin: 0 auto; }
@media (min-width: 520px) { .npl-opts { grid-template-columns: 1fr 1fr; } }
.npl-op { min-height: 54px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 650 16px/1.35 var(--f); cursor: pointer; text-align: center; overflow-wrap: anywhere; transition: border-color .15s, background .2s; }
.npl-op:hover:not(:disabled) { border-color: var(--a); }
.npl-op.is-g { background: var(--g); border-color: var(--g); color: #fff; }
.npl-op.is-x { background: #C2414B; border-color: #C2414B; color: #fff; }
.npl-op:disabled { cursor: default; }

/* Streak list */
.npl-board-l { max-width: 560px; margin: 0 auto; }
.npl-board-l h2 { margin: 0 0 4px; font-size: 21px; }
.npl-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.npl-ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.npl-ol li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.npl-ol b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npl-rk { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 800; font-size: 13.5px; }
.npl-ol li:nth-child(1) .npl-rk { background: #E8B53C; color: #fff; } .npl-ol li:nth-child(2) .npl-rk { background: #A9B0BC; color: #fff; } .npl-ol li:nth-child(3) .npl-rk { background: #C98A55; color: #fff; }
.npl-sk { flex: none; color: var(--g); font-weight: 750; font-size: 14px; }
.npl-pub { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--soft); font-size: 14.5px; cursor: pointer; }
.npl-pub input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--a); flex: none; }

@media (prefers-reduced-motion: reduce) {
	.npl *, .npl *::before, .npl *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
