/* =====================================================================
   v71 · TESLA-APP LOOK – black, flat, quiet: Noto Sans Hebrew, grey line icons,
   dark-grey cards with no borders, one blue for what is chosen / what starts.
   ===================================================================== */
:root{
  --bg:#141414; --card:#202020; --card2:#2a2a2a; --line:#2c2c2c; --ink:#ececec; --muted:#9b9b9b; --ico:#c9c9c9;
  --tblue:#3e6ae1; --cyan:#8fa8f2; --navy:#8fa8f2; --navy2:#3e6ae1; --indigo:#3e6ae1; --gold:#9b9b9b; --grad:#3e6ae1;
  --ok:#31c48d; --okbg:rgba(49,196,141,.14); --bad:#f05252; --badbg:rgba(240,82,82,.14);
  --sans:"Noto Sans Hebrew","Heebo","Assistant","Arial Hebrew",system-ui,-apple-system,"Segoe UI",Arial,sans-serif; --hand:var(--sans);
}
html{background:var(--bg)}
body{background:var(--bg) !important;color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
body:not(.pedalbg){background-image:none !important}
body,button,select,input,textarea{font-family:var(--sans)}
.app *{-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
/* line icons */
.mi{display:inline-block;width:1.2em;height:1.2em;vertical-align:-.24em;flex:0 0 auto}
.mic{display:inline-flex;align-items:center;vertical-align:middle;color:inherit;opacity:.9}
.mic + *{margin-inline-start:0}
/* weights: calm, not heavy */
.lvl b,.card h3,.dialog h2,.feedback,.lessoncard b,.datehead,.ans,.btn,.seg button,.homeq,.topicBig b,.inst > b,h2,h3{font-weight:500 !important}
/* header */
header{background:var(--bg) !important;border:0 !important;box-shadow:none !important;padding-top:20px !important;padding-bottom:10px !important}
header h1{font-weight:500 !important;font-size:1.75rem !important}
header h1 .wm{font-weight:800}
header p{color:var(--muted) !important;font-weight:400 !important}
/* cards: flat dark grey, no frames */
.inst,.card,.stage,.lvl,.msg,.tile,.lrow,.nm,.lessoncard,.dialog{background:var(--card) !important;border:0 !important;border-radius:10px !important;box-shadow:none !important;color:var(--ink)}
.lvl:hover,.lrow:hover{background:#252525 !important}
.lvl .badge,.lessoncard .badge{background:transparent !important;border:1.5px solid #4a4a4a !important;color:var(--ink) !important;box-shadow:none !important}
.inst b{color:var(--muted) !important;font-weight:500 !important;letter-spacing:0 !important}
.lvl small,.lvl .last,.hint,.small,.conf,.tile small,.lrow small,.empty,.replay-note,.modeinst,.dialog p{color:var(--muted) !important}
/* choices (segmented buttons, chips): dark grey, the chosen one blue */
.seg button,.speedq button,.stp,.cellpal button,.ivpick button,.ivquick button,.tvext button{background:var(--card2) !important;border:0 !important;color:var(--ink) !important;box-shadow:none !important;border-radius:8px !important}
.seg button.on,.speedq button.on,.tInst button.on,.tSpeed button.on,.tG button.on,#tempoCard [data-mt].on,#tempoCard [data-tp].on,.sTs button.on,[data-tp].on,.ivpick button.on,.ivpick.ivadv button.on{
  background:var(--tblue) !important;color:#fff !important;box-shadow:none !important}
.ivpick button small,.ivpick button.on small{color:inherit !important;opacity:.7}
.ivadvbtn{background:transparent !important;border:1px solid #3a3a3a !important;color:var(--muted) !important}
/* buttons */
.btn{background:var(--tblue) !important;color:#fff !important;border:0 !important;border-radius:8px !important;box-shadow:none !important}
.btn.ghost{background:var(--card2) !important;color:var(--ink) !important;border:0 !important}
.btn.end{background:transparent !important;color:#f98080 !important;border:1px solid rgba(240,82,82,.45) !important}
.btn.go,.btn.hcheck{background:var(--tblue) !important}
.btn:disabled,.btn.hcheck:disabled{background:#242424 !important;color:#666 !important}
#ivGo{background:var(--tblue) !important;animation:none !important;box-shadow:none !important}
#ivGo .badge{background:rgba(255,255,255,.14) !important}
.back{background:#262626 !important;color:var(--ink) !important;border:0 !important;box-shadow:none !important;border-radius:10px !important;font-weight:500 !important}
.reset{color:#9b9b9b !important}
.teacherlink,.linkbtn,#lessonSub u{color:var(--muted) !important}
/* exercise */
.mode,.timer{background:#262626 !important;color:var(--ink) !important;border:0 !important}
.bigplay{background:var(--tblue) !important;box-shadow:none !important}
@keyframes gpulse{50%{box-shadow:0 0 0 14px rgba(62,106,225,.18)}}
.bigplay.locked::after{background:#3a3a3a}
.progress{background:#262626 !important}.progress i{background:var(--tblue) !important;box-shadow:none !important}
.ans{background:var(--card2) !important;color:var(--ink) !important;border:0 !important;border-radius:10px !important;box-shadow:none !important}
.ans[data-t=maj]{box-shadow:inset 0 -3px 0 #3b82f6 !important}
.ans[data-t=min]{box-shadow:inset 0 -3px 0 #8b5cf6 !important}
.ans[data-t=dim]{box-shadow:inset 0 -3px 0 #f97316 !important}
.ans[data-t=aug]{box-shadow:inset 0 -3px 0 #14b8a6 !important}
.ans.right,.ans.ok{background:rgba(49,196,141,.22) !important;box-shadow:inset 0 0 0 2px var(--ok) !important}
.ans.wrong,.ans.bad{background:rgba(240,82,82,.2) !important;box-shadow:inset 0 0 0 2px var(--bad) !important}
.ans.iv{background:var(--card2) !important;border:0 !important}
/* music on light paper stays readable */
.hstaff,.ropt,.htile,.nrstaff{background:#ececec !important;border:0 !important}
.ropt .rnum{background:var(--tblue) !important}
.hpool{background:#1b1b1b !important;border:1px dashed #3a3a3a !important}
.htile.sel,.hslot.hot,.hslot.pick.sel{border-color:var(--tblue) !important;background:rgba(62,106,225,.15) !important;box-shadow:0 0 0 2px rgba(62,106,225,.45) !important}
.hslot.filled{color:#1e3a8a !important;background:rgba(62,106,225,.14) !important;border-color:var(--tblue) !important}
.hslot.empty.hot{border-bottom-color:var(--tblue) !important;background:rgba(62,106,225,.12) !important}
/* note wheel */
.nrsec{fill:#242424 !important;stroke:#141414 !important}
.nrsec:nth-of-type(odd){fill:#2c2c2c !important}
.nrsec.on{fill:var(--tblue) !important}
.nrsec.right{fill:#059669 !important}.nrsec.wrong{fill:#e11d48 !important}
.nrtxt{fill:#ececec !important}
.nrrim{stroke:#3a3a3a !important;opacity:1 !important}
.nrptr{color:#ececec !important;text-shadow:none !important}
.nrok{background:var(--tblue) !important;box-shadow:none !important}
/* singing */
.sglive.listening:not(.on) b::before,.sglive.listening:not(.on) .sgnote::before{content:"" !important}
.sglive{border-color:#2c2c2c !important;background:#1b1b1b !important}
.sgtries span{border-color:#4a4a4a !important;color:var(--ink) !important}
/* new-feature dot */
.isnew::after{background:var(--tblue) !important;box-shadow:none !important}
/* stats / teacher */
.sttotal,.tvclock,.tvlive{background:var(--card2) !important;border:0 !important}
.sttotal span,.tvclock span,.stgrid .tile b{color:var(--ink) !important}
.stchart i{background:var(--tblue) !important}
.rtable{background:var(--card) !important}.rtable th{background:#262626 !important;color:var(--ink) !important}
.pname{color:var(--ink) !important}
.field input,.sel,.ta,.linkbox{background:#1b1b1b !important;border:1px solid #333 !important;color:var(--ink) !important}
.timer{color:var(--ink) !important}
.pfact{background:var(--card2) !important;border:0 !important}
/* dialog */
.modal{background:rgba(0,0,0,.72) !important}
.dialog{background:#1f1f1f !important}
#gate{background:var(--bg) !important}
#gate .gbox{background:var(--card) !important;border:0 !important}
#gate .gword span{color:#22d3ee}
/* concepts page */
.ccHomeCard{background:var(--card) !important;border:0 !important;box-shadow:none !important}

/* ---------- HOME, like the Tesla app ---------- */
#home{max-width:none !important;margin-inline:0 !important}
#home > *{max-width:620px;margin-inline:auto}
.tquick{display:grid !important;grid-template-columns:repeat(4,1fr);gap:4px;margin:4px auto 18px !important}
.tquick button{display:flex !important;flex-direction:column;align-items:center;gap:7px;padding:8px 2px 6px !important;background:none !important;border:0 !important;box-shadow:none !important;
  color:var(--ico);font:inherit;cursor:pointer;border-radius:12px !important;width:auto !important;text-align:center}
.tquick button:active{background:#1c1c1c !important}
.tquick .qi{display:grid;place-items:center;width:44px;height:44px}
.tquick .qi .mi{width:36px;height:36px}
.tquick small{display:block !important;font-size:.86rem !important;color:var(--muted);font-weight:400}
#home .tcard{display:flex !important;align-items:center;gap:16px;width:100%;padding:18px 16px !important;margin:0 auto 12px !important;text-align:right;font:inherit;
  background:var(--card) !important;border-radius:10px !important;cursor:pointer;color:var(--ink)}
#home .tcard .badge{flex:0 0 auto;width:36px !important;height:36px !important;display:grid !important;place-items:center;border:0 !important;background:none !important;color:var(--ico) !important;font-size:0 !important}
#home .tcard .badge .mi{width:32px;height:32px}
#home .tcard b{display:block;font-size:1.45rem !important;line-height:1.25}
#home .tcard small{display:block;font-size:1rem;color:var(--muted)}
.chev{margin-inline-start:auto;display:grid;place-items:center;color:#6e6e6e}
.chev .mi{width:22px;height:22px}
#home .tlist{display:block !important}
#home .tlist button{display:flex !important;align-items:center;gap:18px;width:100%;padding:12px 6px !important;margin:0 !important;background:none !important;border:0 !important;box-shadow:none !important;
  border-radius:10px !important;color:var(--ink);text-align:right;font:inherit;cursor:pointer}
#home .tlist button:active,#home .tlist button:hover{background:#1b1b1b !important}
#home .tlist .ti{flex:0 0 40px !important;width:40px !important;height:40px !important;display:grid;place-items:center;background:none !important;border:0 !important;color:var(--ico);font-size:0 !important}
#home .tlist .ti .mi{width:32px;height:32px}
#home .tlist b{display:block;font-size:1.5rem !important;line-height:1.25;font-weight:500 !important}
#home .tlist small{display:block !important;font-size:1rem !important;color:var(--muted);margin-top:2px}
#home .tlist button.on{border:0 !important}
#home .installbtn{display:flex;align-items:center;justify-content:center;gap:8px}
#home .homefoot{justify-content:center !important;margin-top:10px !important}
#home .copy{font-size:.75rem;color:#6e6e6e}
/* the teacher area menu: the same quiet rows */
.tmenu button{background:var(--card) !important;border:0 !important;box-shadow:none !important}
.tmenu .ti{background:none !important;border:0 !important;color:var(--ico)}

/* ---------- computer: everything centred ---------- */
@media (min-width:900px){
  #menu{max-width:none !important}
  #menu.on{grid-template-columns:minmax(0,470px) minmax(0,470px) !important;justify-content:center}
}
#home [hidden],#home .tcard[hidden],#home .installbtn[hidden]{display:none !important}
.tquick small{font-size:.95rem !important}
/* concepts page */
#concepts{padding-bottom:76px}
.ccsearch{background:#1b1b1b !important;border:1px solid #333 !important;border-radius:10px !important}
.cctabs button,.cccats button{background:var(--card2) !important;border:0 !important;color:var(--ink) !important}
.cctabs button.on,.cccats button.on{background:var(--tblue) !important;color:#fff !important}
.cccard{background:var(--card) !important;border:0 !important;box-shadow:none !important}
.cccard:hover{background:#252525 !important}
.cctag{background:var(--card2) !important;border:0 !important;color:var(--ink) !important}
/* a fitted page grows from its right edge: it must sit flush right (no auto margins), or it slides off centre */
.screen.fit{margin-left:0 !important;margin-right:0 !important}
/* v73 singing: the amber studio meter, like the tuner */
.sglive{width:min(410px,100%) !important;max-width:100% !important;box-sizing:border-box !important;height:auto !important;padding:0 !important;margin:4px auto 4px !important;background:none !important;border:0 !important;box-shadow:none !important;opacity:.65}
.sglive.listening,.sglive.on{opacity:1}
.sgvu .vubezel{padding:6px;border-width:2px;border-radius:12px}
.sgvu .vubezel > i{width:5px;height:5px}
.sgnote{margin-top:6px !important;font-size:1.5rem !important}
/* concepts: every card – and so every page – has exactly the same size */
.ccfixed .cccard{height:8.4rem;overflow:hidden;display:flex !important;flex-direction:column}
.ccfixed .cccard b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}
.ccfixed .cccard small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}
.ccfixed .cccard span{display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cccard.ccempty{visibility:hidden}
.ccpager button:disabled{visibility:hidden}
.cccats{min-height:3.1rem}
.ccfixed{gap:8px !important}
.ccfixed .cccard{height:6.9rem;padding:11px 14px !important}
.ccfixed .cccard b{font-size:1.12rem}
.ccfixed .cccard small{margin:0 0 3px}
.ccfixed .cccard span{font-size:.88rem;line-height:1.4}
/* intervals: two windows, each one bigger */
#menu.ivstep1 #ivCard .ivpick{gap:9px}
#menu.ivstep1 #ivCard .ivpick button{padding:13px 4px !important}
#menu.ivstep1 #ivCard .ivpick button span{font-size:1.12rem !important}
#menu.ivstep1 #ivCard .ivpick button small{font-size:.86rem !important}
#menu.ivstep1 #ivCard > b{font-size:1.2rem !important;color:var(--ink) !important}
#menu.ivstep1 .ivquick button{font-size:.95rem;padding:8px 16px}
.ivMode2{display:grid !important;grid-template-columns:1fr 1fr;gap:9px}
.ivMode2 button{padding:18px 6px !important;font-size:1.12rem !important}
.ivchosen{display:block;width:100%;margin-top:12px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:.95rem;cursor:pointer}
#menu.ivstep2 #ivCard > b,#menu.ivstep2 .inst > b{font-size:1.1rem !important}
#menu.ivstep2 .seg button{padding:14px 6px !important;font-size:1.05rem !important}
/* harmonic dictation: the writing line sits right under the missing chord */
#hStaff .hslots{height:36px !important}
#hStaff .hslot{height:32px !important;margin-top:0 !important;top:0 !important}
#hStaff .hslot.empty{height:22px !important;border-bottom-width:3px !important}
/* computer: the intervals windows are one centred column (big, like the other pages) */
@media (min-width:900px){
  #menu.ivstep1.on,#menu.ivstep2.on{display:block !important}
  #menu.ivstep1 > *,#menu.ivstep2 > *{max-width:600px;margin-inline:auto !important}
}
/* computer: the reading and singing exercises side by side (staff | wheel or meter) → the page can be shown much bigger */
@media (min-width:900px){
  .nrstage #nopts{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px;max-width:860px;margin:0 auto}
  .nrstage #nopts .nrstaff{max-width:none;width:100%;margin:0}
  .sgstage #sopts{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px 28px;max-width:860px;margin:0 auto}
  .sgstage #sopts > .sgmet,.sgstage #sopts > .sgtries{grid-column:1 / -1}
  .sgstage #sopts .nrstaff{max-width:none;width:100%;margin:0}
  .sgstage #sopts .sglive{width:100% !important;margin:0 !important}
}

/* ===== v86: sign-in screen + members dashboard ===== */
body.gated .modal{z-index:200}
#gate{overflow-y:auto}
#gate .gbox{text-align:center}
#gate .gGoogle{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:12px 0 10px;border:0;border-radius:999px;background:#fff;color:#1f1f1f;font:600 1.02rem var(--sans);cursor:pointer}
#gate .gGoogle:active{transform:scale(.98)}
#gate .gbtn{width:100%;min-height:48px;margin-top:6px}
#gate form{text-align:right;margin-top:8px}
#gate .field{display:block;margin:0 0 10px}
#gate .field span{display:block;font-size:.85rem;color:var(--muted);margin-bottom:4px}
#gate .field input{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:#0f0f0f;color:var(--ink,#fff);font:inherit;font-size:1rem}
#gate .gconsent{display:flex;gap:10px;align-items:flex-start;text-align:right;font-size:.84rem;line-height:1.5;color:var(--muted);margin:12px 0 4px}
#gate .gconsent input{width:20px;height:20px;flex:0 0 auto;margin-top:2px;accent-color:#3e6ae1}
#gate .gconsent .teacherlink{display:inline;padding:0;margin:0;font-size:inherit;text-decoration:underline}
#gate .glinks{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin-top:10px}
#gate .glinks .teacherlink{margin:0}
.mbtools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 8px}
.mbtools input{flex:1 1 180px;min-height:42px;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:#0f0f0f;color:inherit;font:inherit}
.mbtools .btn{flex:0 0 auto;width:auto;padding:8px 14px}
.mblist{display:flex;flex-direction:column;gap:8px}
.mbrow{display:grid;grid-template-columns:1fr auto;gap:4px 10px;text-align:right;width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:inherit;font:inherit;cursor:pointer}
.mbrow:hover{background:rgba(255,255,255,.06)}
.mbname{display:flex;flex-direction:column;min-width:0}
.mbname b{font-size:1.02rem}
.mbname small,.mbhead small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mbmeta{font-size:.82rem;color:var(--muted);align-self:center;white-space:nowrap}
.mbtags{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.mbchip{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.78rem;background:rgba(255,255,255,.08);margin:0 2px}
.mbchip.good{background:rgba(52,211,153,.16);color:#6ee7b7}
.mbchip.bad{background:rgba(248,113,113,.16);color:#fca5a5}
.mbhead{display:flex;flex-direction:column;gap:2px;margin:12px 0}
.mbhead b{font-size:1.25rem}
.mbsum{margin:12px 2px;line-height:1.9}
#membersCard h4{margin:16px 0 6px;font-size:.95rem}
.mbline{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line);font-size:.86rem}
.mbline b.good{color:#6ee7b7}.mbline b.bad{color:#fca5a5}
.mbline small{color:var(--muted);white-space:nowrap}
/* v86: show-password eye + signed-in dot */
.pwwrap{position:relative;display:block}
.pwwrap input{width:100%;box-sizing:border-box;padding-left:48px !important}
.pweye{position:absolute;left:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--muted,#9aa0a6);cursor:pointer;padding:0}
.pweye:hover,.pweye[aria-pressed="true"]{color:#fff}
/* v86: numbered members list */
.mbtiles{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.mbsort{margin:0 0 10px}
.mbol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mbol .mbrow{grid-template-columns:auto 1fr auto;align-items:center}
.mbnum{grid-row:1/span 2;min-width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(62,106,225,.18);color:#9db4ff;font:700 .9rem "Space Mono",monospace}
.mbol .mbmeta{text-align:left;line-height:1.3}
.mbol .mbmeta b{font-size:1.05rem;color:#fff}
.mbsub{grid-column:2/-1;font-size:.8rem;color:var(--muted)}
.mbol .mbtags{grid-column:2/-1}
.mbtiles .tile:last-child:nth-child(odd){grid-column:1/-1}
#gate .gnames{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* v93: iPhone – back button on the left */
html.ios #backBtn{left:max(14px, env(safe-area-inset-left)) !important;right:auto !important;transform:none !important}
/* v93: after a mistake – red frame on the chosen wrong answer, green frame on the right one */
.ans.right,.ans.ok{outline:4px solid #22c55e !important;outline-offset:2px;box-shadow:inset 0 0 0 2px #22c55e,0 0 14px rgba(34,197,94,.45) !important;background:rgba(34,197,94,.18) !important}
.ans.wrong,.ans.bad{outline:4px solid #ef4444 !important;outline-offset:2px;box-shadow:inset 0 0 0 2px #ef4444,0 0 14px rgba(239,68,68,.45) !important;background:rgba(239,68,68,.16) !important}
.ropt.right{outline:5px solid #22c55e !important;outline-offset:3px;box-shadow:0 0 18px rgba(34,197,94,.55) !important}
.ropt.wrong{outline:5px solid #ef4444 !important;outline-offset:3px;box-shadow:0 0 18px rgba(239,68,68,.55) !important}
.ans.right,.ans.wrong,.ropt.right,.ropt.wrong{opacity:1 !important}

/* v96: iPhone / iPad – the same round glass back button as Safari's own toolbar (Hebrew: bottom-right, arrow ›).
   Only in the installed app: inside Safari the browser already shows its own button. */
html.ios:not(.standalone) #backBtn{display:none !important}
html.ios.standalone #backBtn,html.desk #backBtn{display:grid !important;place-items:center;left:auto !important;right:max(18px, env(safe-area-inset-right)) !important;
  bottom:max(18px, calc(env(safe-area-inset-bottom) + 6px)) !important;transform:none !important;
  width:56px;height:56px;padding:0 !important;border-radius:50% !important;font-size:0 !important;color:#f2f2f7 !important;
  background:rgba(58,58,62,.62) !important;-webkit-backdrop-filter:blur(20px) saturate(170%);backdrop-filter:blur(20px) saturate(170%);
  border:1px solid rgba(255,255,255,.16) !important;box-shadow:0 8px 24px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.12) !important}
html.ios.standalone #backBtn[hidden],html.desk #backBtn[hidden]{display:none !important}
html.ios.standalone #backBtn::before,html.desk #backBtn::before{content:"";width:13px;height:22px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M2 2l8 8-8 8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M2 2l8 8-8 8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
html.desk #backBtn:hover{background:rgba(80,80,86,.75) !important}
html.ios.standalone #backBtn:active,html.desk #backBtn:active{background:rgba(90,90,96,.8) !important;transform:scale(.94) !important}
/* the swipe-back hint that follows the finger from the left edge */
#swipeBack{position:fixed;top:50%;right:0;width:44px;height:44px;margin-top:-22px;border-radius:50%;background:rgba(40,40,44,.85);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:grid;place-items:center;color:#0a84ff;z-index:90;opacity:0;pointer-events:none;transform:translateX(-50px)}
/* room under every page so the floating back button never covers a button */
html.ios.standalone main,html.desk main{padding-bottom:calc(84px + env(safe-area-inset-bottom)) !important}

/* v101: task card – red dot when there is a task, green when there is none */
#taskSub{display:inline-flex;align-items:center;gap:7px}
.taskdot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:0 0 auto;margin-inline-end:9px;vertical-align:middle;position:relative;top:-1px}
.taskdot.red{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.22),0 0 8px rgba(239,68,68,.8);animation:taskPulse 1.6s ease-in-out infinite}
.taskdot.green{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18)}
@keyframes taskPulse{50%{box-shadow:0 0 0 6px rgba(239,68,68,0),0 0 12px rgba(239,68,68,.9)}}
#taskCard.hastask #taskSub{color:#fca5a5}

/* v101: the advanced (compound) intervals – exactly the same grid and button size as the simple ones */
#ivCard .ivpick{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
#ivCard .ivpick button{min-width:0;overflow:hidden}
#menu.ivstep1 #ivCard .ivpick.ivadv button span{font-size:.92rem !important;letter-spacing:-.01em;overflow-wrap:anywhere}
#menu.ivstep1 #ivCard .ivpick button{min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#menu.ivstep1 #ivCard .ivpick.ivadv button span{overflow-wrap:normal}
#menu.ivstep1 #ivCard .ivpick button.long span{font-size:.8rem !important;letter-spacing:-.02em}
#tvToast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translate(-50%,20px);z-index:300;padding:12px 18px;border-radius:14px;
  background:rgba(30,30,34,.94);color:#f4f4f5;font:600 .98rem var(--sans);box-shadow:0 8px 24px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap}
#tvToast.on{opacity:1;transform:translate(-50%,0)}
/* v103: one-time grade question */
.gradeask{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.55)}
.gradeask .gbox{width:100%;max-width:360px;text-align:center;background:var(--card);border-radius:22px;padding:24px 18px 16px}
.gradeask h2{margin:0 0 6px;font-size:1.3rem}.gradeask p{margin:0 0 14px;color:var(--muted)}
.gradeask .seg button{font-size:1.25rem;font-weight:800;padding:14px 0}
.gradeask .field{text-align:right}
/* v103: note-reading game */
.ngscore{font-family:"Outfit",var(--sans);font-size:1.5rem;color:var(--ink)}.ngscore.neg{color:var(--bad)}
#counter{position:relative}
.ngfly{position:absolute;inset-inline-start:0;top:-4px;font-weight:800;font-size:1.1rem;animation:ngfly .9s ease-out forwards;pointer-events:none}
.ngfly.ok{color:var(--ok)}.ngfly.bad{color:var(--bad)}
@keyframes ngfly{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-26px)}}
body.nggame #prog{background:var(--ok) !important}body.nggame #prog.low{background:var(--bad) !important}
body.nggame #nextBtn{visibility:hidden}
body.nggame #okCount{background:transparent !important;letter-spacing:1px}
.ngover{text-align:center}.ngbig{font-family:"Outfit",var(--sans);font-size:3.4rem;font-weight:800;line-height:1}.ngbig.neg{color:var(--bad)}
.ngsub{color:var(--muted);margin-top:4px}.ngrec{margin-top:8px;font-weight:800;color:var(--ok)}
.nglead{margin:4px 0 8px;font-size:1.05rem}
.ngtop{list-style:none;margin:0;padding:0;text-align:right}
.ngtop li{display:grid;grid-template-columns:2.2em 1fr auto;gap:8px;align-items:center;padding:7px 10px;border-radius:10px}
.ngtop li:nth-child(odd){background:var(--card2)}.ngtop li.me{outline:2px solid var(--ok)}
.ngtop li i{font-style:normal;font-weight:800;font-family:"Outfit",var(--sans)}
.ngsec{font-weight:400;color:var(--muted);font-size:.8em}
#ngToast{position:fixed;left:50%;top:18%;transform:translateX(-50%);z-index:80;background:#111;color:#fff;font-weight:800;padding:10px 18px;border-radius:14px;opacity:0;pointer-events:none}
#ngToast.on{animation:ngtoast 1.6s ease forwards}
@keyframes ngtoast{0%{opacity:0;transform:translate(-50%,8px)}12%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0}}
.nghearts i{font-style:normal;font-size:1.35rem;color:#4b4b4b;margin:0 1px}.nghearts i.on{color:#ef4444}
body.nggame #badCount{background:var(--card2) !important;color:var(--ink) !important}
/* v103 game: the name under the finger fills up for half a second, then it is the answer */
.nrwheel.quick .nrsec.dwell{animation:nrdwell .5s linear forwards}
@keyframes nrdwell{from{filter:brightness(1)}to{filter:brightness(1.75) saturate(1.3)}}
/* v104: the teacher's task sits in the top row (next to the metronome), with a red / green dot */
.tquick .qtask small{white-space:nowrap}
.tquick .qtask .taskdot{width:8px;height:8px;margin-inline-end:5px}
.tquick .qtask.hastask small{color:#fca5a5 !important}
/* v120: the task status line has no dot; a pulsing red dot above the cap appears only when there is a task */
.tquick .qtask .qi{position:relative}
.tquick .qtask.hastask .qi::after{content:"";position:absolute;top:-4px;left:50%;margin-left:-5px;width:10px;height:10px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.22),0 0 8px rgba(239,68,68,.8);animation:taskPulse 1.6s ease-in-out infinite;pointer-events:none}
#home #conceptsCard{margin-bottom:12px !important}
/* v104: game over shows the leaderboard first; the hint line; the stage */
body.ngdone #stats .summary, body.ngdone #weakCard, body.ngdone #bars{display:none !important}
body.ngdone #bars{display:none}
body.ngdone #stats .card:has(#bars){display:none !important}
.ngboardh{margin:0 0 8px !important;font-size:1.25rem !important}
.ngmine{margin-top:14px;padding-top:12px;border-top:1px solid #2a2a2a}
.nghint{min-height:0;text-align:center;font-weight:700;color:#fbbf24;font-size:1rem;margin:6px 0 0;opacity:0;transition:opacity .3s}
.nghint.on{opacity:1}
body:not(.nggame):not(.sggame) .nghint{display:none}
.ngstage{font-weight:700;margin-inline-end:4px}
/* v104: triads – the play button pulses until the first chord is played */
#playBtn.waitplay{animation:waitplay 1.4s ease-in-out infinite}
@keyframes waitplay{0%,100%{box-shadow:0 0 0 0 rgba(59,130,246,.55)}50%{box-shadow:0 0 0 14px rgba(59,130,246,0)}}
.ngbig,.ngscore,.ngtop li i{direction:ltr;unicode-bidi:isolate}
/* v104: stage up – a big message with confetti */
#ngCele{position:fixed;inset:0;z-index:95;display:grid;place-items:center;pointer-events:none;opacity:0}
#ngCele.on{animation:ngcele 2.3s ease forwards}
@keyframes ngcele{0%{opacity:0}8%{opacity:1}85%{opacity:1}100%{opacity:0}}
.ngcbox{position:relative;text-align:center;background:rgba(17,17,17,.92);border:2px solid #facc15;border-radius:24px;padding:22px 30px;box-shadow:0 0 40px rgba(250,204,21,.35);transform:scale(.6);animation:ngpop .5s cubic-bezier(.2,1.6,.4,1) forwards}
@keyframes ngpop{to{transform:scale(1)}}
.ngcstar{font-size:3rem;line-height:1}.ngccheer{font-size:2rem;font-weight:800;color:#facc15;margin-top:4px}
.ngcstage{font-size:1.4rem;font-weight:800;color:#fff;margin-top:2px}.ngcnew{margin-top:8px;color:#d4d4d8}.ngcnew b{color:#22c55e}
.ngcconf{position:absolute;left:50%;top:40%}.ngcconf i{position:absolute;width:9px;height:14px;border-radius:2px;opacity:0;animation:ngconf 1.4s ease-out forwards}
@keyframes ngconf{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 220px)) rotate(var(--r))}}
/* v104: choose a stage */
.ngchip{display:inline-block;font-size:.8rem;font-weight:700;padding:3px 9px;border-radius:999px;background:#27272a;color:#facc15;margin-inline-start:6px;vertical-align:middle;cursor:pointer}
.ngchip:hover{background:#3f3f46}
.ngpickbox{max-width:420px !important}
.ngstgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:8px;max-height:52vh;overflow:auto;padding:4px}
.ngst{position:relative;aspect-ratio:1;border-radius:14px;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#fff;cursor:pointer;font:inherit;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.25),0 2px 6px rgba(0,0,0,.3);transition:transform .12s}
.ngst:hover:not([disabled]){transform:translateY(-2px) scale(1.04)}
.ngst b{font-size:1.35rem;font-weight:800;line-height:1}.ngst small{font-size:.72rem;opacity:.9}
.ngst i{position:absolute;top:3px;inset-inline-start:5px;font-style:normal;font-size:.7rem}
.ngst.perfect{background:linear-gradient(160deg,#34d399,#059669)}.ngst.good{background:linear-gradient(160deg,#fbbf24,#ea580c)}
.ngst.weak{background:linear-gradient(160deg,#f87171,#b91c1c)}.ngst.new{background:linear-gradient(160deg,#60a5fa,#2563eb)}
.ngst.lock{background:#27272a;color:#71717a;cursor:default;box-shadow:none}
.ngleg{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 10px;font-size:.78rem}
.ngleg span{padding:2px 8px;border-radius:999px;color:#fff}.ngleg .perfect{background:#059669}.ngleg .good{background:#ea580c}.ngleg .weak{background:#b91c1c}.ngleg .new{background:#2563eb}
/* v104: singing back – the page does not jump while listening / answering */
.sgstage #feedback{min-height:2.7em;display:flex;align-items:center;justify-content:center}
.sgstage .replay-note{min-height:1.4em}
.sgstage .sglive{transition:none !important}
body.sggame #prog{background:linear-gradient(90deg,#f59e0b,#ef4444) !important}
/* v104: in the exercise the title and the details are one under the other, centred */
body.inquiz header h1{display:block !important;text-align:center}
body.inquiz header p{display:block !important;margin:2px 0 0 !important;text-align:center}
/* v104: the game bar stays inside the screen */
body.nggame .top,body.sggame .top{gap:6px;min-width:0}
body.nggame .mini,body.sggame .mini{gap:4px !important;flex-wrap:nowrap;min-width:0}
body.nggame .nghearts i,body.sggame .nghearts i{font-size:1.1rem;margin:0}
body.nggame #badCount,body.sggame #badCount{font-size:.85rem !important;padding:4px 8px !important;white-space:nowrap}
body.nggame #okCount,body.sggame #okCount{padding:4px 4px !important}
body.nggame .ngscore,body.sggame .ngscore{font-size:1.3rem}

/* =====================================================================
   v105: COMPUTER (Windows / Mac) – the app uses the whole wide screen instead of a phone-size column
   ===================================================================== */
@media (min-width:1000px){
  html.desk .app{max-width:min(1500px,96vw) !important}
  html.desk header{padding:18px 40px 20px !important}
  /* home: the quick row on top, the topics as big cards in a grid */
  html.desk #home .tquick{max-width:760px;margin:6px auto 26px !important}
  html.desk #home .hometopics{max-width:1100px !important;width:100%;margin-inline:auto;flex:0 0 auto !important}
  html.desk #home .tlist{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;align-content:start;gap:16px;width:100%;max-width:1100px;margin:0 auto;flex:0 0 auto !important}
  html.desk #home .tlist button{flex-direction:column;justify-content:center;text-align:center;gap:10px;min-height:0;height:auto !important;padding:20px 14px !important;
    background:var(--card) !important;border-radius:18px !important;transition:transform .15s, background .15s}
  html.desk #home .tlist button:hover{background:#242424 !important}
  html.desk #home .tlist .ti{flex:0 0 auto !important;width:64px !important;height:64px !important}
  html.desk #home .tlist .ti .mi{width:52px;height:52px}
  html.desk #home .tlist b{font-size:1.55rem !important}
  html.desk #home .tlist .chev{display:none !important}
  html.desk #home .homefoot,html.desk #home .copy{max-width:1300px;margin-inline:auto}
  /* the exercise and its summary are wider */
  html.desk #quiz{max-width:1180px !important}
  html.desk #quiz .answers,html.desk #quiz .actions{max-width:760px !important}
  html.desk #stats{max-width:980px !important;margin-inline:auto}
  html.desk #menu{max-width:1180px !important}
  html.desk #menu.on{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;column-gap:32px}
  /* singing: the staff across the full width, the meter and the play button under it */
  html.desk .sgstage #sopts{display:block !important;max-width:900px}
  html.desk .sgstage #sopts .nrstaff{max-width:900px !important;margin:6px auto 10px !important}
  html.desk .sgstage #sopts .sglive{width:min(520px,72%) !important;margin:0 auto !important}
  /* reading: staff and wheel side by side, bigger */
  html.desk .nrstage #nopts{max-width:1100px !important;gap:40px !important}
}
/* v105: perfect intervals – a clean, clear colour; the others stay plain */
.ans.iv.pure{background:linear-gradient(160deg,#e0f2fe,#bae6fd) !important;color:#0c4a6e !important;border:0 !important}
.ans.iv.pure small{color:#075985 !important}
#ivCard button.pure:not(.on),#menu [data-s].pure:not(.on){background:linear-gradient(160deg,#e0f2fe,#bae6fd) !important;color:#0c4a6e !important}
#ivCard button.pure:not(.on) small,#menu [data-s].pure:not(.on) small{color:#075985 !important}
#ivCard button.pure.on,#menu [data-s].pure.on{background:linear-gradient(160deg,#38bdf8,#0284c7) !important;color:#fff !important;box-shadow:inset 0 0 0 2px #e0f2fe}
@media (min-width:1000px){ html.desk .sgstage #sopts .nrstaff{max-width:680px !important} }
.ngpickrow{display:flex;justify-content:center;margin:-4px 0 12px}.ngpickrow .ngchip{font-size:.9rem;padding:6px 14px;border:0;font:inherit;font-weight:700}
/* v105: colours of the names on the game wheel; the hint pulse */
#nrWheelBox.col .nrsec{fill:var(--c) !important;stroke:#111 !important;stroke-width:2 !important}
#nrWheelBox.col .nrsec.on{stroke:#fff !important;stroke-width:5 !important}
#nrWheelBox.col .nrsec.right{fill:#059669 !important;stroke:#fff !important;stroke-width:5 !important}
#nrWheelBox.col .nrsec.wrong{fill:#3f3f46 !important}
#nrWheelBox.col .nrtxt{fill:#111 !important}
#nrWheelBox .nrtxt .sm{font-size:13px;font-weight:700}
#nrWheelBox .nrsec.hintpulse{animation:hintpulse 1s ease-in-out infinite}
@keyframes hintpulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.6)}}
/* v105: the intro cards (clef, new note) */
#ngIntro{position:fixed;inset:0;z-index:96;display:none;place-items:center;background:rgba(0,0,0,.6);padding:20px;cursor:pointer}
#ngIntro.on{display:grid;animation:ngin .3s ease}
@keyframes ngin{from{opacity:0}to{opacity:1}}
.ngibox{width:min(420px,92vw);background:#151515;border-radius:22px;padding:16px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.ngibox .ngstaff{width:100%;display:block}
.nginame{font-size:2.6rem;font-weight:800;margin-top:8px;line-height:1.1}.nginame small{display:block;font-size:1.1rem;opacity:.8}
.ngistar{color:#facc15;font-size:1.6rem;line-height:1;margin-bottom:6px}
.ngdraw{stroke-dasharray:1;stroke-dashoffset:1;animation:ngdraw 1.8s ease-in-out .2s forwards}
.ngdraw path{stroke-dasharray:1;stroke-dashoffset:1;animation:ngdraw 1.8s ease-in-out .2s forwards}
@keyframes ngdraw{to{stroke-dashoffset:0}}
.ngland{animation:ngland .7s cubic-bezier(.3,1.6,.5,1) 1.2s both}
@keyframes ngland{from{transform:translateY(-50px);opacity:0}to{transform:none;opacity:1}}
.ngglow{animation:ngglow 1.1s ease-in-out .4s infinite}
@keyframes ngglow{0%,100%{opacity:.25}50%{opacity:.9}}
.ngchoice{display:grid;gap:10px;margin-top:14px}.ngchoice .btn{width:100%;font-size:1.15rem;padding:14px}
body.sggame #nextBtn{display:inline-flex !important}   /* v114: skip to the next one */
.sgstage .bigplay{width:120px !important;height:120px !important}.sgstage .bigplay .mi,.sgstage .bigplay svg{width:54px;height:54px}
body.sggame #instLabel{display:none !important}.sgstage #feedback{min-height:2em !important}
/* v107: the arrow exactly in the middle of the round back button */
html.ios.standalone #backBtn,html.desk #backBtn{display:flex !important;align-items:center !important;justify-content:center !important;line-height:0 !important;padding:0 !important}
html.ios.standalone #backBtn::before,html.desk #backBtn::before{display:block;margin:0 !important;position:static !important;flex:0 0 auto;transform:translateX(1px)}
html.ios.standalone #backBtn[hidden],html.desk #backBtn[hidden]{display:none !important}
#gradeAsk.gradeask{z-index:9000;background:rgba(0,0,0,.82)}
.gGradeX.on,#gradeAsk [data-g="x"].on{background:var(--blue,#2563eb) !important;color:#fff !important}
/* v112: leaderboard – podium + bars */
.ngover{background:radial-gradient(120% 80% at 50% 0%,#2a1f05 0%,#141414 55%) !important;border:1px solid #3f3214 !important}
.ngboardh{color:#fde68a !important;letter-spacing:.3px}
.ngpod{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:8px;margin:14px 0 6px}
.ngpodc{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;animation:ngrise .6s cubic-bezier(.2,1.3,.4,1) both}
.ngpodc.p2{animation-delay:.12s}.ngpodc.p3{animation-delay:.24s}
@keyframes ngrise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.ngcrown{font-size:1.6rem;line-height:1;animation:ngbob 1.6s ease-in-out infinite}
@keyframes ngbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.ngav{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;font-weight:800;font-size:1rem;flex:0 0 auto;box-shadow:0 0 0 2px rgba(255,255,255,.15)}
.ngav.big{width:58px;height:58px;font-size:1.3rem;box-shadow:0 0 0 3px #facc15,0 0 22px rgba(250,204,21,.45)}
.ngpodc.p2 .ngav{box-shadow:0 0 0 3px #cbd5e1}.ngpodc.p3 .ngav{box-shadow:0 0 0 3px #d97706}
.ngpn{font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem}
.ngps{font-family:"Outfit",var(--sans);font-weight:800;font-size:1.25rem;color:#fde68a;direction:ltr}
.ngstep{width:100%;display:grid;place-items:center;border-radius:12px 12px 4px 4px;color:#111;font-family:"Outfit",var(--sans)}
.ngstep b{font-size:1.6rem;font-weight:900}
.ngpodc.p1 .ngstep{height:78px;background:linear-gradient(180deg,#fde047,#f59e0b)}
.ngpodc.p2 .ngstep{height:56px;background:linear-gradient(180deg,#f1f5f9,#94a3b8)}
.ngpodc.p3 .ngstep{height:42px;background:linear-gradient(180deg,#fdba74,#b45309)}
.ngpodc.me .ngpn{color:#4ade80}
.ngpodc.empty{visibility:hidden}
.ngtop2{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;text-align:right}
.ngtop2 li{display:grid;grid-template-columns:1.8em 32px minmax(0,1fr) 30% auto;gap:8px;align-items:center;padding:7px 10px;border-radius:12px;background:#1d1d1d}
.ngtop2 .ngav{width:30px;height:30px;font-size:.8rem}
.ngtop2 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* v120: טופ 10 – places 4–10 are visible, the rest (up to 20) scroll inside the card */
.ngtop2{max-height:var(--ngtop-h,386px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-inline-end:2px}
.ngmore{font-size:.85rem;color:var(--muted);margin-top:6px;text-align:center}
.ngrk{font-family:"Outfit",var(--sans);font-weight:800;color:#a1a1aa;text-align:center}
.ngbar{height:8px;border-radius:8px;background:#2a2a2a;overflow:hidden}.ngbar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#f59e0b,#fde047)}
.ngtop2 em{font-style:normal;font-weight:800;font-family:"Outfit",var(--sans);direction:ltr}
.ngtop2 li.me{background:linear-gradient(90deg,rgba(34,197,94,.18),rgba(34,197,94,.05));box-shadow:0 0 0 1.5px #22c55e}
.ngmyrank{margin-top:10px;color:#d4d4d8}.ngmyrank b{color:#4ade80;font-size:1.2rem}
/* v112: arrows beside the wheel, and the keyboard hint */
.nrwheel{position:relative}
.nrarr{position:absolute;top:calc(50% - 26px);width:44px;height:44px;border-radius:50%;border:1px solid #3b3b44;color:#fde68a;font-size:1.3rem;font-weight:800;z-index:3;
  background:linear-gradient(180deg,#30303a,#16161b);box-shadow:0 3px 0 #09090b,0 6px 12px rgba(0,0,0,.5);cursor:pointer;display:grid;place-items:center}
.nrarr:active{transform:translateY(3px);box-shadow:0 0 0 #09090b}
.nrarrR{right:-8px}.nrarrL{left:-8px}
.nrkeys{display:none;margin-top:6px;font-size:.85rem;color:#a1a1aa;text-align:center}
.nrkeys b{display:inline-block;min-width:1.6em;padding:1px 6px;border-radius:6px;background:#27272a;border:1px solid #3f3f46;color:#e4e4e7;font-family:"Outfit",var(--sans)}
html.desk .nrkeys{display:block}
.ngtboard{margin:14px 0 0;border-radius:18px;padding:14px}.ngreset{margin-top:12px;width:100%;border-color:#7f1d1d !important;color:#fca5a5 !important}
/* v115: the singing game – a picture, "you are in stage N", and the stage tiles open on the page */
.lvl.sghero{align-items:center}
.lvl.sghero .sgart{flex:0 0 auto;width:84px;height:70px;display:grid;place-items:center;border-radius:18px;background:radial-gradient(circle at 40% 35%,rgba(251,191,36,.18),rgba(99,102,241,.12) 70%,transparent)}
.lvl.sghero .sgart svg{width:84px;height:70px;animation:sgbob 2.6s ease-in-out infinite}
@keyframes sgbob{50%{transform:translateY(-3px) rotate(-2deg)}}
.lvl.sghero .sgnow{display:inline !important;font-size:1.15em;color:#fbbf24}
.lvl.sghero .sggo{display:inline-block;margin-top:6px;font-style:normal;font-size:.8rem;font-weight:700;color:#fff;background:#2563eb;padding:3px 12px;border-radius:999px}
.sgpickin{margin-top:12px;padding:12px 10px 14px;border-radius:18px;background:var(--card,#1f1f1f);border:1px solid rgba(255,255,255,.06)}
.sgpickt{font-weight:800;text-align:center;margin-bottom:8px;font-size:1.05rem}
.sgpickin .ngstgrid{max-height:none;overflow:visible;grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}
.ngst.cur{outline:3px solid #fff;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.lvl.sghero .sgart svg{animation:none}}
/* ===== v119: note-reading game menu – a real game look ===== */
.ngmodes{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}
.ngmode{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 8px 10px;border-radius:18px;border:2px solid transparent;
  background:#2a2a2d;color:#d4d4d8;font:inherit;cursor:pointer;transition:transform .12s, box-shadow .2s}
.ngmode .ngmi{width:52px;height:34px;display:block}.ngmode .ngmi svg{width:100%;height:100%}
.ngmode .ngmt{font-size:1.2rem;font-weight:800}.ngmode small{font-size:.75rem;opacity:.85}
.ngmode.game{color:#c4b5fd}
.ngmode.game.on{color:#fff;background:linear-gradient(135deg,#7c3aed,#db2777 60%,#f59e0b);box-shadow:0 8px 22px rgba(219,39,119,.35),inset 0 1px 0 rgba(255,255,255,.25);border-color:rgba(255,255,255,.25)}
.ngmode.game.on .ngmi{animation:ngpad 2.4s ease-in-out infinite}
@keyframes ngpad{50%{transform:rotate(-6deg) scale(1.06)}}
.ngmode.prac.on{background:#2563eb;color:#fff}
.ngmode:active{transform:scale(.97)}
/* level cards */
.lvl.nglv{align-items:center;gap:12px;border-radius:20px 20px 6px 6px !important;margin-bottom:0 !important;border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(90deg,var(--lvc2) 0%,rgba(0,0,0,0) 70%),var(--card,#222) !important}
.lv41{--lvc:#22c55e;--lvc2:rgba(34,197,94,.16)}.lv42{--lvc:#f59e0b;--lvc2:rgba(245,158,11,.16)}.lv43{--lvc:#ef4444;--lvc2:rgba(239,68,68,.17)}
.lvl.nglv .nglvart,.ngpickhead .nglvart{flex:0 0 auto;width:58px;height:62px;display:grid;place-items:center;color:var(--lvc)}
.nglvart svg{width:48px;height:52px;filter:drop-shadow(0 0 8px var(--lvc2))}
.lvl.nglv .nglvtxt{flex:1;display:flex;flex-direction:column;gap:3px;text-align:start;min-width:0}
.lvl.nglv .nglvtxt>b{font-size:1.25rem}
.lvl.nglv .nglvtxt small{color:#a1a1aa;font-size:.82rem}
.lvl.nglv .nglvst b{color:var(--lvc);display:inline !important;font-size:1em}
.nglvbar{display:block;height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:3px}
.nglvbar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--lvc),#fde68a)}
.lvl.nglv .last{font-size:.8rem;text-align:center}
.ngfoot{display:grid !important;grid-template-columns:1fr 1fr;gap:8px;margin:-13px 0 6px !important;padding:8px;border-radius:6px 6px 20px 20px;
  background:#1c1c1f;border:1px solid rgba(255,255,255,.06);border-top:0}
.ngfoot .ngchip{width:100%;margin:0;padding:10px 6px;border-radius:12px;font-weight:800;font-size:.95rem}
.ngfoot .ngplay{background:var(--lvc);color:#111}
/* how to play */
#menuHint .ngrules{margin:4px 0 0;padding:14px;border-radius:18px;background:#1f1f22;border:1px solid rgba(255,255,255,.06);text-align:start}
.ngrt{font-weight:800;font-size:1.05rem;margin-bottom:8px;color:#e4e4e7}
.ngrr{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:.92rem;color:#d4d4d8}
.ngri{flex:0 0 auto;min-width:46px;height:30px;padding:0 8px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:3px;font-weight:800;direction:ltr}
.ngri.ok{background:rgba(34,197,94,.18);color:#4ade80}.ngri.bad{background:rgba(239,68,68,.18);color:#f87171}
.ngri.heart{background:rgba(244,63,94,.15);color:#fda4af}.ngri.heart svg{width:16px;height:15px}
.ngri.up{background:rgba(245,158,11,.18);color:#fbbf24}.ngri.new{background:rgba(59,130,246,.18);color:#93c5fd;font-size:1.1rem}
/* the stage picker */
.ngpickbox.lv41,.ngpickbox.lv42,.ngpickbox.lv43{padding-top:14px !important;border-top:4px solid var(--lvc)}
.ngpickhead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.ngpickhead h2{margin:0 !important;font-size:1.35rem}.ngpickhead small{color:#a1a1aa}
.ngpickbox .ngstgrid{grid-template-columns:repeat(5,1fr) !important;gap:7px}
.ngpickbox .ngst b{font-size:1.15rem}.ngpickbox .ngst small{font-size:.66rem}
.ngst.lock{opacity:.55}.ngst.lock b{color:#a1a1aa}
.ngst.cur{outline:3px solid #fff;outline-offset:2px}
/* v120: note reading / singing – page 1 (settings + two doors) and page 2 (levels) */
#menu.pk1 #levels,#menu.pk1 #menuHint{display:none !important}
#menu.pk2 #levels .ngpickrow.ngfoot:not(.pkfoot)~.pkfoot{display:none}
.ngmodewrap.pknav .ngmode{padding:16px 8px 14px}
.ngmodewrap.pknav .ngmode.game{color:#fff;background:linear-gradient(135deg,#7c3aed,#db2777 60%,#f59e0b);box-shadow:0 8px 22px rgba(219,39,119,.3),inset 0 1px 0 rgba(255,255,255,.25);border-color:rgba(255,255,255,.2)}
.ngmodewrap.pknav .ngmode.prac{color:#fff;background:linear-gradient(135deg,#1d4ed8,#2563eb 55%,#0ea5e9);box-shadow:0 8px 22px rgba(37,99,235,.3),inset 0 1px 0 rgba(255,255,255,.22);border-color:rgba(255,255,255,.18)}
.ngmodewrap.pknav .ngmode::after{content:"‹";position:absolute;left:12px;top:8px;font-size:1.5rem;line-height:1;opacity:.7}
.ngmodewrap.pknav .ngmode .ngmi{animation:none}
#pkBar{margin:0 0 14px}
.pkbar{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:#1f1f22;border:1px solid rgba(255,255,255,.07)}
.pkbar .pkmode{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:12px;color:#fff;font-weight:800;flex:0 0 auto}
.pkbar.game .pkmode{background:linear-gradient(135deg,#7c3aed,#db2777 60%,#f59e0b)}
.pkbar.prac .pkmode{background:linear-gradient(135deg,#1d4ed8,#0ea5e9)}
.pkbar .pkmode svg{width:28px;height:18px}
.pkbar .pksum{flex:1;min-width:0;color:#d4d4d8;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pkbar .pkchange{flex:0 0 auto;border:0;border-radius:10px;padding:8px 12px;background:#2f2f33;color:#fbbf24;font:inherit;font-weight:700;cursor:pointer}
.lvl.pkprac .nglvart .pkbook svg{width:50px;height:32px;filter:drop-shadow(0 0 8px var(--lvc2));color:var(--lvc)}
.lvl.pkprac .nglvart .pkbook{color:var(--lvc)}
.lvl.pkprac .nglvart .pkn{width:46px;height:46px;border-radius:50%;border:4px solid var(--lvc);display:grid;place-items:center;font-weight:800;font-size:1.4rem;color:var(--lvc);box-shadow:0 0 10px var(--lvc2)}
.pkfoot{grid-template-columns:1fr !important}
.nrwheel.fixed .nrptr{display:none !important}
/* v121: a nicer "סיום" button in the exercises – a soft filled red with a stop sign, same shape as "הבא" */
#endBtn.btn.end{background:linear-gradient(180deg,#3a1d22,#2a1418) !important;color:#fecaca !important;border:1.5px solid rgba(248,113,113,.55) !important;
  box-shadow:0 4px 14px rgba(220,38,38,.18),inset 0 1px 0 rgba(255,255,255,.06) !important;font-weight:800;letter-spacing:.3px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
#endBtn.btn.end::before{content:"";width:14px;height:14px;border-radius:3px;background:#f87171;box-shadow:0 0 10px rgba(248,113,113,.6)}
#endBtn.btn.end:hover{background:linear-gradient(180deg,#46222a,#33181d) !important}
#endBtn.btn.end:active{transform:translateY(1px)}
/* v122: the writing on "התרגיל הבא" / "הבא" and "סיום" is centred */
#nextBtn.btn,#endBtn.btn{display:inline-flex !important;align-items:center;justify-content:center !important;text-align:center !important}
/* v122: every "סיום" button looks the same – soft filled red with a stop sign, centred */
.tvfinish,.tvext button.end.tvfinish,.mtsheet .mtsheetok.tvfinish,.mnskin .mtsheet .mtsheetok.tvfinish{background:linear-gradient(180deg,#3a1d22,#2a1418) !important;color:#fecaca !important;border:1.5px solid rgba(248,113,113,.55) !important;
  box-shadow:0 4px 14px rgba(220,38,38,.18),inset 0 1px 0 rgba(255,255,255,.06) !important;font-weight:800 !important;display:inline-flex !important;align-items:center;justify-content:center !important;gap:8px;text-align:center}
.tvfinish::before{content:"";flex:0 0 auto;width:12px;height:12px;border-radius:3px;background:#f87171;box-shadow:0 0 10px rgba(248,113,113,.6)}
/* every "התרגיל הבא" looks like the blue one in the exercises */
#nextBtn.btn:not(:disabled){background:#3b6fe0 !important;color:#fff !important;border:0 !important}
.card.tvflash{box-shadow:0 0 0 3px #3b82f6,0 0 24px rgba(59,130,246,.5) !important;transition:box-shadow .3s}

/* v125: the game clock looks like a stopwatch */
.ngclock{display:inline-flex;align-items:center;gap:5px;padding:2px 8px 2px 4px;border-radius:999px;background:#0f172a;border:1.5px solid #38bdf8;color:#e0f2fe;direction:ltr;vertical-align:middle}
.ngclock svg{width:22px;height:22px;fill:none;stroke:#38bdf8;stroke-width:2;stroke-linecap:round}
.ngclock svg rect{fill:#38bdf8;stroke:none}
.ngclock svg .f{fill:#e0f2fe;stroke:#38bdf8}
.ngclock svg .h{stroke:#0f172a;stroke-width:2.2;transition:transform .3s}
.ngclock svg .c{fill:#0f172a;stroke:none}
.ngclock b{font-variant-numeric:tabular-nums;font-size:1rem;font-weight:800;letter-spacing:.5px}
.ngclock.low{border-color:#f87171;color:#fecaca;animation:ngclk 1s steps(2) infinite}
.ngclock.low svg{stroke:#f87171}.ngclock.low svg rect{fill:#f87171}.ngclock.low svg .f{stroke:#f87171;fill:#fee2e2}
@keyframes ngclk{50%{background:#3f1d1d}}
/* v125: in the note game "הבא" is not used – "סיום" sits alone in the middle */
body.nggame #nextBtn{display:none !important}
body.nggame #quiz .actions{justify-content:center !important}
body.nggame #quiz .actions #endBtn{flex:0 1 min(320px,70%) !important}
