/* ============================================================
   KYNDA KIDS TYPING — kynda-styles.css
   Shared across all screens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,800;1,900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:    #E8387A; --pink-d:  #C0215E; --pink-l:  #FFF0F5;
  --cyan:    #00BFFF; --cyan-d:  #0090CC; --cyan-l:  #E8F9FF;
  --lime:    #C8E000; --lime-d:  #9AAA00;
  --black:   #111;    --white:   #fff;
  --g50:  #F7F7F7; --g100: #F0F0F0; --g200: #E0E0E0; --g300: #C8C8C8;
  --g400: #AAAAAA; --g500: #888;    --g600: #666;     --g800: #333;
  --r: 6px; --rl: 12px; --rp: 3px;
}

html, body {
  font-family: 'Figtree', sans-serif;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.scr { display: none; }
.scr.on { display: block; }

/* ── KEY-SHAPED BUTTONS ── */
.kbtn {
  font-family: 'Figtree', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--rp); border: none; cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 3px 0 rgba(0,0,0,.22);
  position: relative; top: 0;
  letter-spacing: .01em; text-decoration: none;
}
.kbtn:active { top: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.kbtn-pink  { background: var(--pink);  color: white; box-shadow: 0 3px 0 var(--pink-d); }
.kbtn-pink:hover  { background: #D4306E; }
.kbtn-pink:active { box-shadow: 0 1px 0 var(--pink-d); }
.kbtn-cyan  { background: var(--cyan);  color: white; box-shadow: 0 3px 0 var(--cyan-d); }
.kbtn-cyan:hover  { background: #00AAEE; }
.kbtn-cyan:active { box-shadow: 0 1px 0 var(--cyan-d); }
.kbtn-dark  { background: var(--black); color: white; box-shadow: 0 3px 0 #000; }
.kbtn-dark:hover  { background: #222; }
.kbtn-outline { background: white; color: var(--black); border: 1.5px solid var(--g300); box-shadow: 0 3px 0 var(--g300); }
.kbtn-outline:hover  { border-color: var(--g400); background: var(--g50); }
.kbtn-outline:active { box-shadow: 0 1px 0 var(--g300); }
.kbtn-lg { font-size: 16px; padding: 13px 28px; }
.kbtn-sm { font-size: 12px; padding: 7px 14px; }

/* ── HEADER ── */
.hdr {
  background: var(--white);
  border-bottom: 1.5px solid var(--g200);
  height: 58px;
  display: flex; align-items: center;
  padding: 0 2.5rem;
  position: sticky; top: 0; z-index: 200;
  gap: 2rem;
}
.logo-img { height: 30px; cursor: pointer; }
.hnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.hl {
  font-family: 'Figtree', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 2px;
  border: none; cursor: pointer;
  transition: all .12s;
  background: transparent; color: var(--g600);
}
.hl:hover { background: var(--g100); color: var(--black); }
.hl.on   { color: var(--black); font-weight: 700; background: var(--g100); }

/* ── WPM TOOLTIP ── */
.wpm-wrap { position: relative; display: inline-block; cursor: help; }
.wpm-wrap .wpm-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--black); color: white;
  font-size: 12px; font-weight: 500; line-height: 1.55;
  padding: 10px 14px; border-radius: var(--r);
  width: 230px; text-align: left; z-index: 100;
}
.wpm-wrap .wpm-tip::after {
  content: '';
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--black);
}
.wpm-wrap:hover .wpm-tip { display: block; }

/* ── SECTION TAGS ── */
.sh { margin-bottom: 2.5rem; }
.stag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  color: var(--cyan); background: var(--cyan-l);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 10px;
}
.st { font-size: 36px; font-weight: 900; color: var(--black); letter-spacing: -0.5px; line-height: 1.1; }

/* ── MODAL ── */
.mbg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 500;
  align-items: center; justify-content: center;
}
.mbg.show { display: flex; }
.modal {
  background: white; border-radius: var(--rl);
  padding: 2.5rem; max-width: 420px; width: 92%;
  animation: pop .3s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
}
@keyframes pop { from { transform: scale(.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h2 { font-size: 30px; font-weight: 900; color: var(--black); margin-bottom: 6px; letter-spacing: -.5px; }
.modal p  { font-size: 15px; color: var(--g600); margin-bottom: 1.5rem; }
.mss { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 1.5rem; }
.ms  { background: var(--g50); border-radius: var(--r); padding: 10px; border: 1px solid var(--g200); }
.msv { font-size: 22px; font-weight: 900; color: var(--pink); }
.msl { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-top: 2px; }
.mbtns { display: flex; gap: 8px; justify-content: center; }

/* ── CONFETTI ── */
.cfl { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.cf  { position: absolute; animation: fall linear forwards; }
@keyframes fall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  to   { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── FOOTER ── */
.footer { background: var(--black); color: white; padding: 4rem 2.5rem 0; }
.fi     { max-width: 1180px; margin: 0 auto; }
.ftop {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 4rem;
  padding-bottom: 3rem; border-bottom: 1px solid #1e1e1e;
}
.fbrand-name { font-size: 20px; font-weight: 900; color: white; margin-bottom: 5px; }
.fbrand-name span { color: var(--pink); }
.ftagline { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 1.5rem; max-width: 280px; }
.fsoc { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.fsoc-btn {
  width: 34px; height: 34px; border-radius: var(--rp);
  background: #1a1a1a; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .12s; color: #555;
}
.fsoc-btn:hover { background: #222; border-color: #444; color: white; }
footer h5 { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #333; margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a  { font-size: 14px; color: #555; text-decoration: none; transition: color .12s; }
footer a:hover { color: white; }
.fbot { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; font-size: 12px; color: #333; }
.fbot-links { display: flex; gap: 1.5rem; }
.fbot-links a { font-size: 12px; color: #333; text-decoration: none; }
.fbot-links a:hover { color: #777; }
.fstamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  background: #111; border: 1px solid #1e1e1e; padding: 5px 12px; border-radius: 2px; color: #2a2a2a;
}

/* ============================================================
   HOME PAGE STYLES
   ============================================================ */
/* ── HOME-SPECIFIC STYLES ── */
.hw { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem 6rem; }

/* hero */
.hero { padding: 5.5rem 0 4.5rem; display: grid; grid-template-columns: 1fr 460px; gap: 5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--g500); border: 1.5px solid var(--g200); padding: 5px 12px; border-radius: 2px; margin-bottom: 1.5rem; }
.hero h1 { font-size: 68px; font-weight: 900; line-height: 1.01; color: var(--black); margin-bottom: 1.25rem; font-style: italic; letter-spacing: -2px; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero p  { font-size: 17px; font-weight: 500; color: var(--g600); line-height: 1.7; margin-bottom: 2rem; max-width: 460px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* terminal card */
.term-card  { background: var(--black); border-radius: var(--rl); overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.18); }
.term-bar   { background: #1c1c1e; padding: 12px 16px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #2a2a2a; }
.term-dot   { width: 11px; height: 11px; border-radius: 50%; }
.term-label { color: #444; font-size: 11px; font-weight: 600; margin-left: 6px; font-family: 'Courier New', monospace; letter-spacing: .5px; }
.term-body  { padding: 1.5rem; }
.term-meta  { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #3a3a3a; margin-bottom: 8px; }
.term-text  { font-family: 'Courier New', monospace; font-size: 20px; font-weight: 700; letter-spacing: 3px; margin-bottom: 1.5rem; min-height: 36px; }
.tc  { transition: color .05s; }
.tc.d { color: var(--cyan); }
.tc.c { color: var(--white); border-bottom: 2px solid var(--pink); }
.tc.t { color: #2a2a2a; }
.tmkb  { display: flex; flex-direction: column; gap: 3px; }
.tmkbr { display: flex; gap: 3px; }
.tmkey { font-size: 9px; font-weight: 800; width: 26px; height: 24px; border-radius: 3px; display: flex; align-items: center; justify-content: center; background: #1e1e1e; border: 1px solid #2c2c2c; color: #444; transition: all .1s; }
.tmkey.hk  { background: #1e1020; border-color: #3d1535; color: var(--pink); }
.tmkey.lit { background: var(--pink); color: white; border-color: var(--pink-d); }
.term-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 1.25rem; }
.tsv   { background: #1a1a1a; border-radius: 5px; padding: 10px 8px; border: 1px solid #252525; text-align: center; }
.tsv-n { font-size: 18px; font-weight: 900; color: var(--pink); }
.tsv-l { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #3a3a3a; margin-top: 2px; }

/* metrics strip */
.mstrip { display: flex; gap: 4rem; padding: 2.5rem 0; border-top: 1.5px solid var(--g200); border-bottom: 1.5px solid var(--g200); margin-bottom: 5.5rem; }
.mv { font-size: 42px; font-weight: 900; color: var(--black); line-height: 1; }
.mv span { color: var(--pink); }
.ml { font-size: 13px; font-weight: 500; color: var(--g600); margin-top: 2px; }

/* WHO */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 5.5rem; }
.who-card { border-radius: var(--rl); padding: 2.5rem; border: 2px solid var(--g200); position: relative; overflow: hidden; }
.who-card.kids   { background: var(--pink-l); border-color: #ffd0e0; }
.who-card.adults { background: var(--cyan-l);  border-color: #b0e8ff; }
.who-illus { width: 100%; border-radius: var(--r); margin-bottom: 1.25rem; overflow: hidden; line-height: 0; background: var(--g100); aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; }
.who-illus-ph { font-size: 13px; font-weight: 600; color: var(--g400); }
.who-card h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.3px; }
.who-card p  { font-size: 15px; color: var(--g600); line-height: 1.65; margin-bottom: 1.5rem; }
.who-label   { position: absolute; top: 2rem; right: 2rem; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; padding: 4px 10px; border-radius: 2px; }
.who-label.k { background: var(--pink); color: white; }
.who-label.a { background: var(--cyan);  color: white; }
.hplist { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 1.5rem; }
.hplist li { font-size: 14px; color: var(--g600); line-height: 1.6; padding-left: 1.25rem; position: relative; }
.hplist li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-d); }

/* WHY grid */
.wgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--g200); border: 1px solid var(--g200); border-radius: var(--rl); overflow: hidden; margin-bottom: 5.5rem; }
.wcard { background: var(--white); padding: 2rem 1.75rem; transition: background .12s; }
.wcard:hover { background: var(--g50); }
.wicon { margin-bottom: 1.25rem; }
.wcard h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.1px; }
.wcard p  { font-size: 14px; color: var(--g600); line-height: 1.65; }
.wcard-quote { font-size: 13px; color: var(--g500); font-style: italic; margin-top: 8px; }

/* LEVELS */
.levels-outer { margin-bottom: 5.5rem; }
.levels-track { display: grid; grid-template-columns: repeat(6,1fr); background: var(--g200); border: 1.5px solid var(--g200); border-radius: var(--rl); overflow: hidden; }
.lc       { background: var(--white); padding: 1.5rem 1.25rem; position: relative; border-right: 1px solid var(--g200); }
.lc:last-child { border-right: none; }
.lc.pro-l { background: var(--g50); }
.lc:hover     { background: var(--g50); }
.lc.pro-l:hover { background: var(--g100); }
.lc-n    { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.lc-name { font-size: 15px; font-weight: 900; margin-bottom: 5px; letter-spacing: -.2px; line-height: 1.2; }
.lc-sub  { font-size: 12px; color: var(--g600); line-height: 1.5; margin-bottom: 14px; }
.lctag-wrap { min-height: 22px; }
.lctag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 2px; }
.lctag-free { background: var(--cyan-l);  color: var(--cyan-d); }
.lctag-pro  { background: #fff5e6; color: #c07000; }
.lc-lock { position: absolute; top: 12px; right: 12px; }

/* PRICING */
.pgrid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 5.5rem; }
.pcard  { background: var(--white); border-radius: var(--rl); border: 1.5px solid var(--g200); padding: 2rem; display: flex; flex-direction: column; }
.pcard.ft { border-color: var(--pink); border-width: 2px; box-shadow: 0 0 0 4px rgba(232,56,122,.06); }
.pt-top-wrap { min-height: 28px; margin-bottom: 1rem; }
.pt-top { display: inline-block; color: white; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 2px; }
.pn      { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.pamount { font-size: 46px; font-weight: 900; color: var(--black); line-height: 1; }
.pperiod { font-size: 14px; color: var(--g500); margin-top: 4px; }
.pdesc   { font-size: 14px; color: var(--g600); margin: 10px 0 1.5rem; line-height: 1.6; }
.plist   { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 1.75rem; flex: 1; }
.plist li { font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.plist li.no { color: var(--g400); }
.pbtn { width: 100%; font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 700; padding: 12px; border-radius: var(--rp); cursor: pointer; transition: all .12s; box-shadow: 0 3px 0 rgba(0,0,0,.12); margin-top: auto; }
.pbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.pbtn-f { background: var(--white); color: var(--pink); border: 2px solid var(--pink); box-shadow: 0 3px 0 var(--pink-d); }
.pbtn-p { background: var(--pink); color: white; border: none; box-shadow: 0 3px 0 var(--pink-d); }
.pbtn-b { background: var(--black); color: white; border: none; box-shadow: 0 3px 0 #000; }

/* ============================================================
   LESSON BROWSER (APP) STYLES
   ============================================================ */
/* ── APP-SPECIFIC STYLES ── */
.aw { max-width: 1140px; margin: 0 auto; padding: 2rem 2.5rem 4rem; }

/* app header bar */
.app-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.app-hdr h2 { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.app-hdr p  { font-size: 14px; color: var(--g600); margin-top: 3px; }

/* learner picker */
.cbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cbl  { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--g400); }
.cpill {
  font-family: 'Figtree', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: var(--rp);
  border: 1.5px solid var(--g200); background: white;
  cursor: pointer; color: var(--g600);
  box-shadow: 0 2px 0 var(--g200); transition: all .1s;
}
.cpill:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--g200); }
.cpill.on    { border-color: var(--pink); background: var(--pink-l); color: var(--pink); box-shadow: 0 2px 0 #f0c0d0; }
.cpill:not(.on):hover { border-color: var(--g300); background: var(--g50); }

/* level tab nav */
.chnav { display: flex; gap: 6px; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 2px; }
.chtab {
  font-family: 'Figtree', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--rp);
  border: 1.5px solid var(--g200); background: white;
  color: var(--g600); cursor: pointer; white-space: nowrap;
  transition: all .12s; box-shadow: 0 2px 0 var(--g200);
}
.chtab:active       { transform: translateY(1px); box-shadow: 0 1px 0 var(--g200); }
.chtab.on           { background: var(--black); color: white; border-color: var(--black); box-shadow: 0 2px 0 #000; }
.chtab.lk           { opacity: .4; cursor: default; }
.chtab:not(.lk):not(.on):hover { border-color: var(--g300); }

/* progress summary bar */
.progress-bar-wrap { background: var(--g100); border-radius: var(--rl); padding: 1rem 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 1.5rem; }
.progress-bar-track { flex: 1; height: 8px; background: var(--g200); border-radius: 4px; overflow: hidden; }
.progress-bar-fill  { height: 100%; background: var(--pink); border-radius: 4px; transition: width .4s; }
.progress-label { font-size: 13px; font-weight: 700; color: var(--g600); white-space: nowrap; }
.progress-pct   { font-size: 15px; font-weight: 900; color: var(--pink); white-space: nowrap; }

/* chapter headings */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ch-head   { grid-column: 1/-1; margin-top: 1.5rem; margin-bottom: .25rem; }
.ch-head:first-child { margin-top: 0; }
.ch-head-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--g400); }

/* lesson tiles */
.ltile {
  background: white; border-radius: var(--rl);
  border: 1.5px solid var(--g200); padding: 1.25rem;
  cursor: pointer; transition: all .12s;
  position: relative; box-shadow: 0 2px 0 var(--g200);
}
.ltile:hover { border-color: var(--g300); transform: translateY(-2px); box-shadow: 0 5px 16px rgba(0,0,0,.07); }
.ltile.dn    { border-color: var(--pink); box-shadow: 0 2px 0 var(--pink-d); }
.ltile.cur   { border-color: var(--cyan); box-shadow: 0 2px 0 var(--cyan-d); }

.t-done { display: none; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; background: var(--pink); border-radius: 50%; align-items: center; justify-content: center; }
.ltile.dn .t-done { display: flex; }

.t-num  { font-size: 10px; font-weight: 800; color: var(--g400); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.t-ico  { margin-bottom: 10px; color: var(--g300); }
.ltile.dn  .t-ico { color: var(--pink); }
.ltile.cur .t-ico { color: var(--cyan); }
.t-name { font-size: 13px; font-weight: 800; color: var(--black); margin-bottom: 3px; letter-spacing: -.1px; }
.t-desc { font-size: 12px; color: var(--g600); line-height: 1.4; }
.t-bar  { height: 3px; background: var(--g100); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.t-fill { height: 100%; background: var(--pink); border-radius: 2px; }

.t-lock {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.88);
  border-radius: calc(var(--rl) - 1.5px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.t-lock-label { font-size: 11px; font-weight: 700; color: var(--g400); }

/* empty state */
.empty-state { grid-column: 1/-1; text-align: center; padding: 4rem 2rem; color: var(--g500); }
.empty-state p { font-size: 15px; margin-top: 8px; }

/* upgrade nudge banner */
.upgrade-nudge {
  background: linear-gradient(135deg, var(--pink-l), #fff0ff);
  border: 1.5px solid #ffd0df; border-radius: var(--rl);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.upgrade-nudge p { font-size: 14px; color: var(--g800); flex: 1; }
.upgrade-nudge strong { color: var(--pink); }

/* ============================================================
   LESSON SCREEN STYLES
   ============================================================ */
/* ── LESSON-SPECIFIC STYLES ── */
.lw { max-width: 860px; margin: 0 auto; padding: 2rem 2.5rem 4rem; }

/* top bar */
.ltop { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.linfo { flex: 1; }
.linfo .lchtag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); display: block; margin-bottom: 4px; }
.linfo h3 { font-size: 22px; font-weight: 900; letter-spacing: -.3px; }
.linfo p  { font-size: 13px; color: var(--g600); margin-top: 2px; }

/* stats row */
.srow { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 1.25rem; }
.sbox { background: white; border-radius: var(--r); border: 1.5px solid var(--g200); padding: 12px 16px; text-align: center; box-shadow: 0 2px 0 var(--g200); }
.sbv  { font-size: 28px; font-weight: 900; color: var(--black); line-height: 1; }
.sbv.pk { color: var(--pink); }
.sbl  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-top: 3px; }

/* finger placement diagram */
.hand-lesson { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.hand-lesson-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--g400); margin-bottom: 1.25rem; }
.hand-diagram-wrap { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.kb-diagram-svg { width: 100%; max-width: 680px; }
.hand-note { text-align: center; font-size: 13px; color: var(--g600); font-weight: 500; max-width: 480px; line-height: 1.6; }
.hand-note strong { color: var(--black); }

/* custom sentence */
.cust { background: var(--cyan-l); border: 1.5px solid var(--cyan); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem; display: none; }
.cust.show { display: block; }
.cust label { font-size: 13px; font-weight: 700; color: var(--black); display: block; margin-bottom: 8px; }
.cust input { width: 100%; font-family: 'Figtree', sans-serif; font-size: 16px; font-weight: 600; padding: 11px 14px; border-radius: var(--r); border: 2px solid var(--cyan); background: white; outline: none; color: var(--black); }
.cust input:focus { border-color: var(--pink); }
.custgo { flex-shrink: 0; margin-top: 0; font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 700; padding: 9px 20px; border-radius: var(--rp); border: none; background: var(--pink); color: white; cursor: pointer; box-shadow: 0 3px 0 var(--pink-d); }

/* typing card */
.tc2 { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.tp  { height: 5px; background: var(--g100); border-radius: 3px; margin-bottom: 1.25rem; overflow: hidden; }
.tpf { height: 100%; background: var(--pink); border-radius: 3px; transition: width .3s; }

/* word tracker chips */
.wt  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1.25rem; }
.wtc { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--rp); border: 1.5px solid var(--g200); background: var(--g50); color: var(--g600); box-shadow: 0 2px 0 var(--g200); }
.wtc.dn { background: var(--pink-l); color: var(--pink); border-color: var(--pink); box-shadow: 0 2px 0 var(--pink-d); }
.wtc.cr { background: var(--cyan-l); color: var(--cyan-d); border-color: var(--cyan); font-weight: 800; box-shadow: 0 2px 0 var(--cyan-d); }

/* text display */
.tdsp {
  font-family: 'Courier New', monospace;
  font-size: 24px; font-weight: 700;
  line-height: 2; letter-spacing: 2px;
  min-height: 78px; padding: 1rem 1.25rem;
  background: var(--g50); border-radius: var(--r);
  border: 1.5px solid var(--g200);
  margin-bottom: 1rem; word-break: normal; overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ch     { color: var(--g200); }
.ch.c   { color: var(--cyan); }
.ch.x   { color: var(--pink); background: #ffe0ed; border-radius: 2px; }
.ch.cur { border-bottom: 3px solid var(--pink); color: var(--black); border-radius: 2px; }

/* typing input */
.tinput {
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 18px; font-weight: 700;
  padding: 13px 18px; border-radius: var(--r);
  border: 2px solid var(--g200); background: white;
  color: var(--black); outline: none;
  transition: border-color .12s; letter-spacing: 2px;
}
.tinput:focus { border-color: var(--pink); }
.tinput.ok    { border-color: var(--cyan); }
.tinput.er    { border-color: var(--pink); animation: shake .18s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  30%      { transform: translateX(-5px); }
  70%      { transform: translateX(5px); }
}

/* keyboard */
.kbw { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); padding: 1.25rem 1rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.kb-hint { font-size: 12px; font-weight: 700; color: var(--g600); margin-bottom: 10px; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.kb-hint strong { color: var(--pink); }

/* results / complete state */
.lesson-complete { display: none; text-align: center; padding: 2.5rem; }
.lesson-complete.show { display: block; }
.lc-icon { font-size: 48px; margin-bottom: 1rem; }
.lc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 360px; margin: 1.5rem auto; }
.lc-stat  { background: var(--g50); border-radius: var(--r); padding: 12px; border: 1px solid var(--g200); }
.lc-stat-v { font-size: 28px; font-weight: 900; color: var(--pink); }
.lc-stat-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-top: 2px; }
.lc-btns { display: flex; gap: 10px; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }


/* ============================================================
   PARENT DASHBOARD STYLES
   ============================================================ */
/* ── DASHBOARD-SPECIFIC STYLES ── */
.dw { max-width: 1040px; margin: 0 auto; padding: 2rem 2.5rem 4rem; }

/* page header */
.dash-hdr { margin-bottom: 2rem; }
.dash-hdr h2 { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.dash-hdr p  { font-size: 14px; color: var(--g600); margin-top: 3px; }

/* two-col layout */
.dg { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .dg { grid-template-columns: 1fr; } }

/* sidebar */
.dsb { display: flex; flex-direction: column; gap: 1rem; }

/* learner panel */
.cpanel { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); overflow: hidden; }
.cph    { background: var(--black); padding: 1rem 1.25rem; color: white; }
.cph h3 { font-size: 15px; font-weight: 800; }
.cph p  { font-size: 11px; color: #555; margin-top: 2px; }
.clist  { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.crow   { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); cursor: pointer; transition: all .12s; }
.crow:hover { background: var(--g50); }
.crow.sl    { background: var(--pink-l); }
.cava  { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; font-weight: 800; }
.cnm   { font-size: 14px; font-weight: 800; }
.csb   { font-size: 12px; color: var(--g600); }
.cstk  { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--pink); }
.acbtn { margin: 8px; width: calc(100% - 16px); font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 700; padding: 9px; border-radius: var(--r); border: 1.5px dashed var(--g300); background: white; color: var(--g600); cursor: pointer; transition: all .12s; }
.acbtn:hover { border-color: var(--pink); color: var(--pink); }

/* upgrade prompt panel */
.upgrade-panel { background: var(--pink-l); border: 1.5px solid #ffd0df; border-radius: var(--rl); padding: 1.25rem; text-align: center; }
.upgrade-panel h4 { font-size: 15px; font-weight: 900; color: var(--black); margin-bottom: 6px; }
.upgrade-panel p  { font-size: 13px; color: var(--g600); line-height: 1.6; margin-bottom: 1rem; }

/* main content area */
.dm { display: flex; flex-direction: column; gap: 1rem; }

/* overview stat boxes */
.ovrow { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
@media (max-width: 600px) { .ovrow { grid-template-columns: repeat(2,1fr); } }
.ovc  { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); padding: 1rem 1.25rem; text-align: center; }
.ovv  { font-size: 30px; font-weight: 900; }
.ovl  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-top: 2px; }

/* progress panel */
.pp2  { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); }
.pph  { padding: 1rem 1.5rem; border-bottom: 1.5px solid var(--g200); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pph h4   { font-size: 14px; font-weight: 800; }
.pph span { font-size: 13px; font-weight: 700; color: var(--pink); }
.ppl  { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 14px; }
.ppi  { display: flex; flex-direction: column; gap: 5px; }
.ppih { display: flex; justify-content: space-between; }
.ppinm  { font-size: 13px; font-weight: 700; }
.ppipct { font-size: 12px; font-weight: 800; color: var(--pink); }
.ppib   { height: 6px; background: var(--g100); border-radius: 3px; overflow: hidden; }
.ppif   { height: 100%; border-radius: 3px; transition: width .4s; }

/* activity feed */
.actp { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); }
.acth { padding: 1rem 1.5rem; border-bottom: 1.5px solid var(--g200); }
.acth h4 { font-size: 14px; font-weight: 800; }
.actl { padding: 0 1.5rem; }
.actr { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--g100); font-size: 14px; }
.actr:last-child { border-bottom: none; }
.actri  { width: 20px; height: 20px; flex-shrink: 0; }
.actt   { flex: 1; color: var(--g500); line-height: 1.4; }
.actt strong { color: var(--black); }
.acttime { font-size: 12px; color: var(--g400); white-space: nowrap; }
.actbdg  { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; white-space: nowrap; }

/* WPM trend mini chart */
.wpm-chart { background: white; border-radius: var(--rl); border: 1.5px solid var(--g200); padding: 1.25rem 1.5rem; }
.wpm-chart h4 { font-size: 14px; font-weight: 800; margin-bottom: 1rem; }
.wpm-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.wpm-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.wpm-bar  { width: 100%; border-radius: 3px 3px 0 0; transition: height .4s; min-height: 4px; }
.wpm-day  { font-size: 9px; font-weight: 700; color: var(--g400); text-transform: uppercase; }
.wpm-val  { font-size: 10px; font-weight: 800; color: var(--g600); }

/* custom sentence builder */
.cust-builder { background: var(--cyan-l); border: 1.5px solid var(--cyan); border-radius: var(--rl); padding: 1.25rem 1.5rem; }
.cust-builder h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.cust-builder p  { font-size: 13px; color: var(--g600); margin-bottom: 1rem; }
.cust-row { display: flex; gap: 8px; align-items: center; }
.cust-row input { min-width: 0; }
.cust-row .kbtn { flex-shrink: 0; white-space: nowrap; }
.cust-row input { flex: 1; font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: var(--r); border: 2px solid var(--cyan); background: white; outline: none; color: var(--black); }
.cust-row input:focus { border-color: var(--pink); }

/* empty / locked state */
.locked-state { text-align: center; padding: 3rem 2rem; }
.locked-state svg { color: var(--g300); margin-bottom: 1rem; }
.locked-state h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.locked-state p  { font-size: 14px; color: var(--g600); margin-bottom: 1.5rem; line-height: 1.7; }


/* ============================================================
   KEY HUNT GAME STYLES
   ============================================================ */
/* ── GAME PAGE WRAPPER ── */
.gw { max-width: 820px; margin: 0 auto; padding: 2rem 2.5rem 4rem; }

/* ── GAME HEADER ── */
.game-hdr { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.game-hdr h2 { font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
.game-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  background: var(--pink-l); color: var(--pink); border-radius: 2px; padding: 3px 10px;
}

/* ── SCORE BAR ── */
.score-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 1.5rem;
}
.sb { background: white; border: 1.5px solid var(--g200); border-radius: var(--rl); padding: .9rem 1rem; text-align: center; box-shadow: 0 2px 0 var(--g200); }
.sbv { font-size: 26px; font-weight: 900; line-height: 1; }
.sbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-top: 2px; }

/* ── TIMER RING ── */
.timer-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.timer-ring { position: relative; width: 90px; height: 90px; }
.timer-ring svg { width: 90px; height: 90px; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 6; }
.timer-bg   { stroke: var(--g100); }
.timer-fg   { stroke: var(--pink); stroke-dasharray: 251; stroke-dashoffset: 0; transition: stroke-dashoffset .1s linear, stroke .3s; stroke-linecap: round; }
.timer-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: var(--black);
}

/* ── TARGET KEY ── */
.target-area { text-align: center; margin-bottom: 1.5rem; }
.target-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--g400); margin-bottom: .75rem; }
.target-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 12px;
  font-size: 48px; font-weight: 900; color: white;
  background: var(--pink); box-shadow: 0 6px 0 var(--pink-d);
  transition: transform .06s, box-shadow .06s;
  user-select: none;
}
.target-key.pressed { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-d); }
.target-key.wrong { background: #ff4444; box-shadow: 0 6px 0 #cc2222; animation: shake .2s ease; }
.target-key.space-key { width: 200px; font-size: 18px; letter-spacing: 2px; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-8px); }
  75%      { transform: translateX(8px); }
}

/* ── STREAK INDICATOR ── */
.streak-bar { display: flex; justify-content: center; gap: 4px; margin-bottom: 1.25rem; min-height: 14px; }
.streak-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--g200); transition: background .15s, transform .15s;
}
.streak-dot.on { background: var(--pink); transform: scale(1.3); }
.streak-dot.gold { background: #FFB700; transform: scale(1.4); }

/* ── MULTIPLIER TAG ── */
.mult-tag {
  text-align: center; font-size: 13px; font-weight: 800; color: var(--pink);
  min-height: 20px; margin-bottom: 1rem; letter-spacing: .5px;
  transition: opacity .2s;
}

/* ── KEYBOARD DIAGRAM ── */
.kb-game-wrap {
  background: white; border: 1.5px solid var(--g200); border-radius: var(--rl);
  padding: 1.25rem 1rem; margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── SCREENS ── */
.gscr { display: none; }
.gscr.on { display: block; }

/* ── START SCREEN ── */
.start-screen { text-align: center; padding: 2rem; }
.start-screen h3 { font-size: 28px; font-weight: 900; margin-bottom: .75rem; }
.start-screen p  { font-size: 15px; color: var(--g600); line-height: 1.7; margin-bottom: 1.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.diff-pick { display: flex; gap: 10px; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dpill {
  font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: var(--rp);
  border: 1.5px solid var(--g200); background: white; color: var(--g600);
  cursor: pointer; box-shadow: 0 2px 0 var(--g200); transition: all .1s;
}
.dpill.on { border-color: var(--pink); background: var(--pink-l); color: var(--pink); box-shadow: 0 2px 0 #f0c0d0; }
.dpill:hover:not(.on) { border-color: var(--g300); }

/* ── RESULTS SCREEN ── */
.results-screen { text-align: center; padding: 2rem 1rem; }
.result-icon { font-size: 52px; margin-bottom: .75rem; }
.result-title { font-size: 30px; font-weight: 900; margin-bottom: .5rem; letter-spacing: -.5px; }
.result-sub { font-size: 15px; color: var(--g600); margin-bottom: 1.5rem; }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; max-width: 400px; margin: 0 auto 1.75rem; }
.rstat { background: var(--g50); border: 1px solid var(--g200); border-radius: var(--r); padding: 12px; }
.rstat-v { font-size: 26px; font-weight: 900; color: var(--pink); }
.rstat-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-top: 2px; }
.result-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── LOCKED SCREEN ── */
.locked-screen { text-align: center; padding: 3rem 2rem; }
.locked-screen svg { color: var(--g300); }
.locked-screen h3 { font-size: 22px; font-weight: 900; margin: 1rem 0 .5rem; }
.locked-screen p  { font-size: 14px; color: var(--g600); margin-bottom: 1.5rem; line-height: 1.7; }

/* ── LIVE FEEDBACK ── */
.feedback {
  position: fixed; top: 80px; right: 2rem;
  font-size: 22px; font-weight: 900; pointer-events: none;
  animation: popUp .5s ease forwards;
  z-index: 300;
}
@keyframes popUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(1.3); }
}
