@font-face{font-family:"RG Naskh Local";src:local("Noto Naskh Arabic"),local("Traditional Arabic"),local("Sakkal Majalla");font-display:swap;}
:root{
  --bg:#f7fbf4;
  --bg2:#eef8ed;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#4b6473;
  --line:#dbe7ee;
  --brand:#0f766e;
  --brand2:#22c55e;
  --success:#16a34a;
  --warning:#f59e0b;
  --radius-sm:14px;
  --radius:18px;
  --radius-lg:24px;
  --shadow:0 14px 32px rgba(15,23,42,.08);
  --shadow-soft:0 8px 18px rgba(15,23,42,.06);
  --tap:48px;
  --tap-main:56px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --font-ui:"RG Naskh Local","Noto Naskh Arabic","Traditional Arabic","Sakkal Majalla","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg2)}
body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  background:
    radial-gradient(circle at 12% 8%,rgba(34,197,94,.12),transparent 32%),
    radial-gradient(circle at 88% 18%,rgba(14,165,233,.08),transparent 30%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--text);
  font-family:var(--font-ui);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
button,a,summary{touch-action:manipulation}
button{font-family:inherit;cursor:pointer}
a{text-decoration:none;color:inherit}
[hidden]{display:none!important}
.app-shell{
  width:min(1180px,100%);
  min-height:100vh;
  min-height:100dvh;
  margin:0 auto;
  padding:10px 10px calc(16px + var(--safe-bottom));
}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  padding:10px;
  border:1px solid rgba(219,231,238,.9);
  border-radius:var(--radius-lg);
  background:rgba(248,252,255,.93);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-soft);
}
.brand{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.35}
.brand-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.brand strong{font-weight:850;font-size:clamp(18px,2.4vw,23px);color:var(--brand)}
.brand span{font-size:clamp(12px,1.8vw,14px);color:var(--muted)}
.version-badge{display:inline-block;align-self:flex-start;padding:2px 8px;border-radius:999px;background:#ecfdf5;color:#0f766e;font-size:11.5px;font-weight:700;border:1px solid #bbf7d0}
.icon-btn,.small-action,.return-page-btn,.setup-btn,.page-chip,.mode-btn,.flow-action,.nav-btn{
  min-height:var(--tap);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--brand);
  font-weight:800;
  box-shadow:var(--shadow-soft);
}
.icon-btn{min-width:var(--tap-main);padding:0 12px;font-size:18px;display:inline-grid;place-items:center;white-space:nowrap}
.bag-btn{font-size:13px}
button:active,a:active,summary:active{transform:scale(.985)}
.home-view{padding-bottom:18px}
.home-note,.simple-home{
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:14px;
  box-shadow:var(--shadow);
  margin-bottom:12px;
}
.simple-intro{display:grid;gap:4px;text-align:center;margin-bottom:12px}
.simple-intro strong{font-size:clamp(20px,3vw,28px);color:var(--brand);font-weight:850}
.simple-intro span{font-size:14px;color:var(--muted);font-weight:700;line-height:1.7}
.stage-accordion-list{display:grid;gap:10px}
.stage-accordion,.section-accordion{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.stage-accordion summary,.section-accordion summary{
  min-height:68px;
  list-style:none;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:12px;
  cursor:pointer;
}
.stage-accordion summary::-webkit-details-marker,.section-accordion summary::-webkit-details-marker{display:none}
.stage-number{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:#eff6ff;color:var(--brand);font-weight:850;border:1px solid #cfe8f7;
}
.stage-text b,.section-summary-text b{display:block;font-size:17px;color:var(--text);font-weight:850}
.stage-text small,.count{display:block;color:var(--muted);font-size:12px;font-weight:750;line-height:1.6}
.stage-arrow,.section-open-icon{
  width:34px;height:34px;border-radius:12px;display:grid;place-items:center;
  background:#eff6ff;color:var(--brand);font-weight:850;transition:transform .18s ease,background .18s ease,color .18s ease;
}
.stage-accordion[open] .stage-arrow,.section-accordion[open] .section-open-icon{transform:rotate(180deg);background:var(--brand);color:#fff}
.stage-body,.accordion-pages{border-top:1px solid var(--line);background:linear-gradient(180deg,#fbfefb,#f7fbfd);padding:12px}
.stage-body p{margin:0 0 10px;color:#365365;font-size:14px;line-height:1.8;font-weight:600}
.training-mode-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.mode-btn{padding:8px 10px;display:grid;gap:2px;text-align:center;color:#17475a;background:#fff}
.mode-btn.active{background:#ecfdf5;color:#0f766e;border-color:#99f6e4}
.mode-main{font-size:14px;font-weight:800}.mode-sub{font-size:11.5px;color:#3f5664;font-weight:600}
.flow-action{display:grid;place-items:center;min-height:var(--tap-main);padding:0 14px;background:#eff6ff;color:var(--brand)}
.flow-action.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.wide-action{width:100%}
.parent-offline-note{margin:12px 0 10px;padding:10px;border:1px solid #fde68a;background:#fffbeb;border-radius:var(--radius-sm);color:#713f12;font-size:13px;line-height:1.7;font-weight:750}
.install-offline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.setup-btn{min-height:44px;padding:0 14px;color:var(--brand);background:#eff6ff;border-color:#bae6fd}
.offline-status{font-size:12px;color:#3f5664;line-height:1.6;flex:1;min-width:220px;font-weight:600}
.section-grid.accordion-list{display:grid;gap:10px;max-width:980px;margin:12px auto 0}
.section-accordion{--brand:#0f766e}
.section-accordion[open]{border-color:color-mix(in srgb,var(--brand) 42%,var(--line))}
.section-dot{width:13px;height:42px;border-radius:99px;background:linear-gradient(180deg,var(--brand),#22c55e);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 10%,transparent)}
.section-summary-text{min-width:0}
.progress{grid-column:1/-1;height:7px;border-radius:99px;background:#e8eef2;overflow:hidden;margin-top:6px}
.bar{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#8bd46e,#16a34a);transition:width .25s ease}
.progress-label{display:block;margin-top:5px;color:#3f5664;font-size:11.5px;font-weight:700}
.accordion-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.section-help{grid-column:1/-1;color:#475569;font-size:12px;font-weight:750;line-height:1.7}
.page-chip{min-height:var(--tap-main);font-size:15px;color:var(--brand);background:#fff}
.page-chip.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.lesson-view{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:8px;
  min-height:calc(100vh - 92px);
  min-height:calc(100dvh - 92px);
}
.lesson-status{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-soft);
}
.lesson-status strong{display:block;color:var(--brand);font-size:17px;font-weight:850}
.lesson-status span{display:block;color:var(--muted);font-size:12px;font-weight:700}
.lesson-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.return-page-btn,.small-action{min-height:44px;padding:0 12px;background:#eff6ff;border-color:#bae6fd;color:var(--brand);white-space:nowrap;display:inline-grid;place-items:center}
.fullscreen-note,.mobile-fullscreen-note{
  color:#854d0e;background:#fffbeb;border:1px solid #fde68a;border-radius:999px;
  padding:6px 10px;font-size:11px;font-weight:850;line-height:1.35;text-align:center;
}
.frame-wrap{
  position:relative;
  width:100%;
  height:calc(100vh - 220px);
  height:calc(100dvh - 220px);
  min-height:420px;
  border:1px solid #b7dec7;
  border-radius:var(--radius-lg);
  background:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.82),transparent 30%),
    radial-gradient(circle at 92% 86%,rgba(34,197,94,.10),transparent 36%),
    linear-gradient(135deg,#ecfdf5,#fff8e7);
  padding:8px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  box-shadow:var(--shadow);
}
.frame-wrap.is-loading::before{
  content:'جاري فتح صفحة الكلمات…';
  position:absolute;inset:0;z-index:2;display:grid;place-items:center;
  background:rgba(248,252,255,.94);color:var(--brand);font-weight:850;
}
.frame-wrap.is-loading iframe{opacity:.02}
#lessonFrame{display:block;width:100%;height:100%;border:0;border-radius:calc(var(--radius-lg) - 8px);background:#fff;box-shadow:inset 0 0 0 1px rgba(15,118,110,.08)}
.frame-wrap:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0;background:#fff;box-shadow:none;padding:0}
.frame-wrap:fullscreen #lessonFrame{height:100dvh}
.bottom-nav{
  position:sticky;
  bottom:calc(6px + var(--safe-bottom));
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(248,252,255,.94);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow-soft);
}
.nav-btn{min-height:var(--tap-main);font-size:16px;background:#fff;color:var(--text)}
.nav-btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.nav-btn:disabled{opacity:.45;cursor:not-allowed}
.home-nav-btn,.fullscreen-mobile-btn{background:#eff6ff;color:var(--brand);border-color:#bae6fd}
.mobile-fullscreen-note{display:none;grid-column:1/-1;border-radius:var(--radius-sm)}
.toast{
  position:fixed;left:50%;bottom:calc(90px + var(--safe-bottom));z-index:80;
  transform:translateX(-50%);max-width:calc(100vw - 28px);
  padding:10px 14px;border-radius:999px;background:#0f172a;color:#fff;font-size:14px;font-weight:850;
  opacity:0;pointer-events:none;transition:opacity .2s ease;
}
.toast.show{opacity:1}
body.lesson-open .app-shell{max-width:none;padding:8px 8px calc(10px + var(--safe-bottom))}
body.lesson-open .home-view{display:none}
body.lesson-open .lesson-view{min-height:calc(100vh - 88px);min-height:calc(100dvh - 88px)}
body.lesson-open .frame-wrap{height:calc(100vh - 212px);height:calc(100dvh - 212px);min-height:460px;background:linear-gradient(135deg,#ecfdf5,#fff8e7)}

.brand-leaf{width:30px;height:30px;border-radius:12px;display:inline-grid;place-items:center;background:#ecfdf5;color:#0f766e;border:1px solid #bbf7d0;box-shadow:var(--shadow-soft)}
.section-inline-head{margin-top:12px;padding:10px 12px;border:1px dashed #b7dec7;border-radius:var(--radius);background:#f4fff7;text-align:center}
.section-inline-head strong{display:block;color:#0f766e;font-size:17px;font-weight:850}
.section-inline-head span{display:block;color:#3f5664;font-size:12.5px;font-weight:600;line-height:1.7}
.completion-leaf{width:32px;height:32px;border-radius:50%;display:none;place-items:center;background:#dcfce7;color:#15803d;border:1px solid #86efac}
.section-accordion.is-complete{border-color:#86efac;background:linear-gradient(180deg,#fff,#f0fdf4)}
.section-accordion.is-complete .completion-leaf{display:grid}
.section-accordion.is-complete .section-dot{background:linear-gradient(180deg,#16a34a,#84cc16)}
.learn-stage .stage-number::after{content:'🌱';font-size:13px;margin-inline-start:2px}
.review-stage .stage-number::after{content:'🌿';font-size:13px;margin-inline-start:2px}
.stage-text b,.section-summary-text b,.simple-intro strong,.brand strong,.lesson-status strong{font-weight:850}

@media (min-width:720px){
  .stage-accordion-list{grid-template-columns:1fr;max-width:1040px;margin-inline:auto}
  .stage-accordion{height:100%}
  .stage-accordion summary{min-height:86px}
  .stage-body{display:block}
  .section-grid.accordion-list{grid-template-columns:repeat(2,minmax(0,1fr));max-width:980px}
  .section-accordion summary{min-height:96px}
  body.lesson-open .topbar,body.lesson-open .lesson-status,body.lesson-open .bottom-nav{max-width:920px;margin-inline:auto}
  body.lesson-open .frame-wrap{width:min(760px,calc(100vw - 48px));height:min(960px,calc(100dvh - 226px));min-height:560px;margin-inline:auto}
}
@media (min-width:900px){
  .section-grid.accordion-list{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1040px;gap:12px}
  .home-note{max-width:1040px;margin-inline:auto}
  .section-picker-title{max-width:1040px}
  body.lesson-open .frame-wrap{width:min(760px,calc(100vw - 64px));height:min(960px,calc(100dvh - 232px))}
}
@media (max-width:719px){
  .app-shell{padding:8px 8px calc(14px + var(--safe-bottom))}
  .topbar{border-radius:var(--radius);gap:7px}
  .icon-btn{min-width:50px;min-height:48px;font-size:16px}
  .bag-btn{font-size:12px;padding-inline:9px}
  .training-mode-panel{grid-template-columns:1fr}
  .accordion-pages{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lesson-status{align-items:flex-start;flex-direction:column}
  .lesson-actions{width:100%;justify-content:stretch;display:grid;grid-template-columns:1fr 1fr}
  .lesson-actions .fullscreen-note{grid-column:1/-1;border-radius:var(--radius-sm)}
  .return-page-btn,.small-action{width:100%}
  body.lesson-open .app-shell{padding-left:0;padding-right:0}
  body.lesson-open .topbar,body.lesson-open .lesson-status,body.lesson-open .bottom-nav{margin-left:8px;margin-right:8px}
  body.lesson-open .frame-wrap{width:100vw;height:calc(100dvh - 94px - var(--safe-bottom));min-height:0;border-left:0;border-right:0;border-radius:0;margin:0;box-shadow:none;background:#fff;padding:0}
  body.lesson-open #lessonFrame{height:100%}
  body.lesson-open .bottom-nav{grid-template-columns:1fr 1fr 1fr}
  .fullscreen-mobile-btn{display:block}
  .mobile-fullscreen-note{display:block}
}
@media (max-width:380px){
  .brand span,.version-badge{font-size:10.5px}
  .simple-intro strong{font-size:19px}
  .stage-accordion summary,.section-accordion summary{padding:10px;gap:8px}
  .stage-number,.stage-arrow,.section-open-icon{width:30px;height:30px}
  .accordion-pages{grid-template-columns:1fr}
  .lesson-actions{grid-template-columns:1fr}
  .bottom-nav{grid-template-columns:1fr 1fr}
  .bottom-nav .home-nav-btn{grid-column:1/-1}
}
@media (orientation:landscape) and (max-height:620px){
  .topbar{position:relative}
  .bottom-nav{position:relative;bottom:auto}
  body.lesson-open .frame-wrap{height:calc(100dvh - 88px);min-height:280px;width:min(540px,calc(100vw - 18px))}
  .lesson-status{display:none}
}


/* v5.6.39 — تكبير خط الواجهة بعد ملاحظة بابا أحمد */
body{font-size:17px;}
.brand strong{font-size:clamp(21px,2.8vw,28px);line-height:1.35;}
.brand span{font-size:clamp(14px,2vw,16px);line-height:1.65;}
.version-badge{font-size:12.5px;padding:3px 10px;}
.simple-intro strong{font-size:clamp(23px,3.4vw,32px);}
.simple-intro span{font-size:16px;line-height:1.9;}
.stage-text b,.section-summary-text b{font-size:20px;line-height:1.45;}
.stage-text small,.count{font-size:14px;line-height:1.8;}
.stage-number{width:38px;height:38px;font-size:16px;}
.stage-arrow,.section-open-icon{width:38px;height:38px;font-size:18px;}
.stage-body p{font-size:16px;line-height:2;}
.section-inline-head strong{font-size:20px;}
.section-inline-head span{font-size:14.5px;line-height:1.9;}
.mode-main{font-size:16.5px;}.mode-sub{font-size:13px;line-height:1.65;}
.flow-action,.setup-btn,.page-chip,.nav-btn,.return-page-btn,.small-action{font-size:16px;}
.parent-offline-note{font-size:14.5px;line-height:1.9;}
.offline-status,.section-help{font-size:13.5px;line-height:1.9;}
.progress-label{font-size:13px;}
.lesson-status strong{font-size:20px;}
.lesson-status span{font-size:14px;line-height:1.7;}
.fullscreen-note,.mobile-fullscreen-note{font-size:12.5px;line-height:1.55;}
.toast{font-size:16px;}

@media (max-width:719px){
  body{font-size:16.5px;}
  .brand strong{font-size:clamp(20px,6vw,25px);}
  .brand span{font-size:13.5px;}
  .simple-intro strong{font-size:24px;}
  .simple-intro span{font-size:15.5px;}
  .stage-text b,.section-summary-text b{font-size:19px;}
  .stage-text small,.count{font-size:13.5px;}
  .stage-accordion summary,.section-accordion summary{min-height:76px;}
  .mode-main{font-size:16px;}.mode-sub{font-size:12.8px;}
  .page-chip,.flow-action,.nav-btn{font-size:16px;}
}
@media (max-width:380px){
  .brand span,.version-badge{font-size:12px;}
  .simple-intro strong{font-size:22px;}
  .stage-text b,.section-summary-text b{font-size:18px;}
  .stage-text small,.count{font-size:13px;}
  .stage-number,.stage-arrow,.section-open-icon{width:34px;height:34px;}
}


/* v5.6.39 — تكبير أوضح للعناوين والأقسام */
body{font-size:18px;}
.brand strong{font-size:clamp(26px,3.3vw,36px);line-height:1.32;}
.brand span{font-size:clamp(16px,2.2vw,19px);line-height:1.75;}
.version-badge{font-size:14px;padding:4px 12px;}
.simple-intro strong{font-size:clamp(29px,4vw,42px);line-height:1.35;}
.simple-intro span{font-size:18px;line-height:2;}
.stage-text b{font-size:clamp(25px,3vw,32px);line-height:1.45;}
.section-summary-text b{font-size:clamp(23px,2.8vw,30px);line-height:1.45;}
.stage-text small,.count{font-size:16px;line-height:1.9;}
.stage-number{width:44px;height:44px;font-size:19px;}
.stage-arrow,.section-open-icon{width:44px;height:44px;font-size:22px;}
.stage-accordion summary{min-height:94px;padding:18px;}
.section-accordion summary{min-height:104px;padding:18px;}
.section-dot{height:54px;width:16px;}
.stage-body p{font-size:18px;line-height:2.05;}
.section-inline-head strong{font-size:24px;line-height:1.55;}
.section-inline-head span{font-size:16.5px;line-height:2;}
.mode-main{font-size:18px;}.mode-sub{font-size:15px;line-height:1.8;}
.flow-action,.setup-btn,.page-chip,.nav-btn,.return-page-btn,.small-action{font-size:18px;font-weight:850;}
.parent-offline-note{font-size:16px;line-height:2;}
.offline-status,.section-help{font-size:15px;line-height:2;}
.progress-label{font-size:14.5px;}
.lesson-status strong{font-size:24px;}
.lesson-status span{font-size:16px;line-height:1.8;}
.fullscreen-note,.mobile-fullscreen-note{font-size:14px;line-height:1.6;}
.toast{font-size:17px;}
@media (max-width:719px){
  body{font-size:17.5px;}
  .brand strong{font-size:clamp(25px,7vw,32px);}
  .brand span{font-size:15.5px;}
  .version-badge{font-size:13px;}
  .simple-intro strong{font-size:clamp(27px,8vw,34px);}
  .simple-intro span{font-size:17px;}
  .stage-text b{font-size:24px;}
  .section-summary-text b{font-size:23px;}
  .stage-text small,.count{font-size:15.5px;}
  .stage-accordion summary,.section-accordion summary{min-height:90px;padding:16px 14px;}
  .stage-number,.stage-arrow,.section-open-icon{width:42px;height:42px;font-size:20px;}
  .section-dot{height:50px;}
  .flow-action,.setup-btn,.page-chip,.nav-btn,.return-page-btn,.small-action{font-size:17px;}
}
@media (max-width:380px){
  body{font-size:16.8px;}
  .brand strong{font-size:24px;}
  .brand span,.version-badge{font-size:13px;}
  .simple-intro strong{font-size:26px;}
  .stage-text b,.section-summary-text b{font-size:22px;}
  .stage-text small,.count{font-size:15px;}
  .stage-number,.stage-arrow,.section-open-icon{width:40px;height:40px;}
}


/* v5.6.39 — تكبير الهيدر والعناوين وحذف شارة النسخة المرئية */
.version-badge{display:none;}
.topbar{gap:18px;align-items:center;}
.brand{gap:8px;}
.brand-title-row{gap:12px;}
.brand-leaf{width:42px;height:42px;border-radius:16px;font-size:26px;}
.brand strong{font-size:clamp(40px,5.2vw,64px);line-height:1.18;font-weight:900;letter-spacing:.1px;}
.brand span{font-size:clamp(22px,2.8vw,32px);line-height:1.85;font-weight:700;color:#263f50;}
.icon-btn{min-width:76px;min-height:76px;font-size:24px;border-radius:24px;font-weight:850;}
.bag-btn{font-size:18px;}
.simple-intro strong{font-size:clamp(34px,4.3vw,52px);line-height:1.25;font-weight:900;}
.simple-intro span{font-size:clamp(21px,2.5vw,29px);line-height:1.9;font-weight:700;}
.stage-text b{font-size:clamp(34px,4.1vw,48px);line-height:1.35;font-weight:900;}
.stage-text small{font-size:clamp(20px,2.35vw,28px);line-height:1.8;font-weight:750;}
.section-summary-text b{font-size:clamp(31px,3.8vw,44px);line-height:1.35;font-weight:900;}
.stage-text small,.count{font-size:clamp(19px,2.1vw,26px);line-height:1.85;font-weight:750;color:#334b5b;}
.section-inline-head strong{font-size:clamp(30px,3.7vw,44px);line-height:1.45;font-weight:900;}
.section-inline-head span{font-size:clamp(20px,2.25vw,27px);line-height:1.9;color:#334b5b;}
.stage-number{width:58px;height:58px;font-size:26px;border-radius:20px;font-weight:900;}
.stage-arrow,.section-open-icon{width:58px;height:58px;font-size:30px;border-radius:20px;}
.stage-accordion summary{min-height:116px;padding:24px;}
.section-accordion summary{min-height:126px;padding:24px;}
.section-dot{width:19px;height:66px;}
.flow-action,.page-chip,.mode-btn,.setup-btn{font-size:clamp(19px,2.1vw,25px);font-weight:850;}
.mode-main{font-size:clamp(21px,2.4vw,28px);font-weight:900;}
.mode-sub{font-size:clamp(16px,1.9vw,22px);}
.parent-offline-note,.offline-status,.section-help{font-size:clamp(17px,1.9vw,22px);line-height:1.95;}
.lesson-status strong{font-size:clamp(28px,3.5vw,42px);line-height:1.35;font-weight:900;}
.lesson-status span{font-size:clamp(19px,2.2vw,27px);line-height:1.7;font-weight:700;}
.return-page-btn,.small-action,.nav-btn{font-size:clamp(18px,2vw,24px);font-weight:850;}

@media (max-width:720px){
  .topbar{gap:12px;padding:14px;}
  .brand-leaf{width:36px;height:36px;font-size:22px;}
  .brand strong{font-size:clamp(32px,9vw,44px);line-height:1.22;}
  .brand span{font-size:clamp(18px,5vw,24px);line-height:1.75;}
  .icon-btn{min-width:64px;min-height:64px;border-radius:20px;font-size:22px;}
  .bag-btn{font-size:16px;}
  .simple-intro strong{font-size:clamp(28px,8vw,38px);}
  .simple-intro span{font-size:clamp(17px,4.8vw,22px);}
  .stage-text b{font-size:clamp(28px,7.7vw,38px);}
  .section-summary-text b{font-size:clamp(26px,7.2vw,36px);}
  .stage-text small,.count{font-size:clamp(16px,4.4vw,21px);}
  .stage-number,.stage-arrow,.section-open-icon{width:50px;height:50px;font-size:25px;}
  .stage-accordion summary,.section-accordion summary{min-height:104px;padding:18px 16px;}
  .section-dot{height:56px;width:17px;}
}

@media (max-width:420px){
  .brand strong{font-size:30px;}
  .brand span{font-size:17px;}
  .icon-btn{min-width:58px;min-height:58px;}
  .stage-text b,.section-summary-text b{font-size:26px;}
  .stage-text small,.count{font-size:16px;}
}
