:root{
  --paper:#fcf9f2;
  --white:#fffefa;
  --ink:#293f38;
  --muted:#7b8276;
  --line:#e5e5d9;
  --orange:#d96743;
  --orange-dark:#bd5030;
  --green:#315b48;
  --mint:#e6eddf;
  --serif:Georgia,'Times New Roman',serif;
  --sans:'Segoe UI',Arial,sans-serif;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,select{
  font:inherit
}
button,a,input,select{
  touch-action:manipulation
}
button{
  cursor:pointer;
  color:inherit
}
button{
  border:0;
  background:none
}
button:disabled{
  cursor:default
}
a{
  color:inherit;
  text-decoration:none
}
button,a,input,select{
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid #c37237;
  outline-offset:4px
}
input,select{
  accent-color:var(--green)
}
input,select{
  border:1px solid #d9ddd0;
  border-radius:8px;
  background:var(--white);
  padding:11px 12px;
  color:var(--ink)
}
input{
  min-width:0
}
h1,h2,h3,p{
  margin:0
}
h1,h2,h3{
  font-weight:650
}
h1{
  font-family:var(--serif);
  font-size:56px;
  line-height:1.08;
  letter-spacing:-2.2px;
  font-weight:500
}
h1 em{
  font-weight:500;
  color:var(--orange)
}
h2{
  font-size:19px;
  letter-spacing:-.4px
}
h3{
  font-size:16px
}
.icon{
  display:inline-block;
  vertical-align:middle;
  flex-shrink:0
}
main{
  max-width:1240px;
  margin:0 auto;
  padding:0 40px 64px;
  outline:none
}
.muted{
  color:var(--muted)
}
.small{
  font-size:12px
}
.eyebrow{
  font-size:10px;
  letter-spacing:1.8px;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:8px
}
.tiny-sun{
  color:var(--orange);
  font-size:22px;
  line-height:1
}
.peach{
  background:#f6e4d7;
  color:#b76a4f
}
.mint{
  background:#e6eddc;
  color:#58724e
}
.lavender{
  background:#ece6f4;
  color:#8f76ae
}
.yellow{
  background:#f5edce;
  color:#a28c3c
}
.blue{
  background:#e3edf0;
  color:#628894
}
.pink{
  background:#f4e4e4;
  color:#bd7e83
}
.button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  border-radius:9px;
  padding:12px 17px;
  font-size:13px;
  font-weight:650;
  line-height:1.4;
  transition:background .15s,transform .15s;
  border:1px solid transparent;
  white-space:nowrap
}
.button:hover:not(:disabled){
  transform:translateY(-1px)
}
.button.primary{
  background:var(--orange);
  color:#fffefa;
  border-color:var(--orange);
  box-shadow:0 3px 0 #a94d2f1c
}
.button.primary:hover:not(:disabled){
  background:var(--orange-dark)
}
.button.primary:disabled{
  opacity:.45
}
.button.secondary{
  border:1px solid #d9ddcf;
  background:var(--white)
}
.button.secondary:hover:not(:disabled){
  background:#f1f2e9
}
.button.green{
  background:var(--green);
  color:white
}
.button.owned{
  background:#edf2e6;
  color:#628254
}
.button:disabled:not(.primary){
  opacity:.6
}
.text-button{
  font-size:12px;
  font-weight:650;
  color:var(--green);
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  text-decoration:none
}
.text-button:hover{
  text-decoration:underline
}
.icon-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:34px;
  border-radius:7px
}
.icon-button:hover{
  background:#f0eee5
}
.panel{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px
}
.site-header{
  height:88px;
  border-bottom:1px solid var(--line);
  background:#fcf9f2f2
}
.header-inner{
  height:100%;
  max-width:1320px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  gap:24px
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  flex-shrink:0;
  font-size:24px;
  font-weight:750;
  letter-spacing:-1px
}
.brand-mark{
  font-family:var(--serif);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  width:43px;
  height:45px;
  border-radius:14px;
  background:var(--orange);
  color:var(--paper);
  font-size:40px;
  position:relative;
  padding-bottom:6px;
  line-height:1
}
.brand-mark>span{
  position:absolute;
  right:4px;
  top:4px;
  font-size:15px;
  color:#f8d997
}
.brand-light{
  font-weight:400;
  margin-left:4px
}
.brand small{
  display:block;
  letter-spacing:1.65px;
  font-size:6px;
  font-weight:700;
  padding-top:2px
}
.main-nav{
  display:flex;
  align-items:center;
  gap:24px;
  height:100%;
  padding-left:26px
}
.nav-item{
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  color:#7b8377;
  font-size:13px;
  font-weight:550;
  padding:0 2px;
  white-space:nowrap
}
.nav-item.active{
  color:var(--green);
  font-weight:700
}
.nav-item.active:after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--green)
}
.nav-item .icon{
  width:18px
}
.header-tools{
  display:flex;
  align-items:center;
  gap:18px
}
.admin-link{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#788171
}
.admin-link.active{
  color:var(--orange)
}
.header-divider{
  height:24px;
  width:1px;
  background:var(--line)
}
.coin-balance{
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:700;
  font-size:13px;
  color:#a4873a;
  background:#f5edcf;
  padding:7px 10px;
  border-radius:20px
}
.avatar{
  background:#e4e8d7;
  color:#667a51;
  border:3px solid var(--white);
  outline:1px solid #dee3d2;
  width:35px;
  height:35px;
  border-radius:50%;
  font-family:var(--serif);
  font-size:20px
}
.welcome{
  padding:44px 0 34px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.welcome h1{
  margin:15px 0 17px
}
.welcome p{
  font-size:13px;
  color:#777f72;
  line-height:1.8
}
.welcome-note{
  position:relative;
  transform:rotate(6deg);
  width:185px;
  text-align:center;
  margin-right:65px;
  align-self:center;
  padding:20px 0
}
.welcome-note p{
  font-family:var(--serif);
  font-size:15px;
  line-height:1.4;
  font-style:italic;
  color:#79816d;
  margin-top:10px
}
.note-stamp{
  font-size:9px;
  letter-spacing:2px;
  color:#a58e55;
  border:1px solid #d7cba5;
  border-radius:50%;
  position:absolute;
  top:11px;
  right:-25px;
  transform:rotate(14deg);
  padding:12px 7px
}
.note-doodle{
  color:#a67a4a;
  transform:rotate(-12deg);
  display:inline-block;
  position:relative
}
.note-doodle>span{
  position:absolute;
  top:-15px;
  left:-20px;
  font-size:28px;
  color:#c1ae70
}
.note-arrow{
  position:absolute;
  font-size:48px;
  font-family:var(--serif);
  bottom:-15px;
  left:6px;
  color:#a9b193;
  transform:rotate(-15deg)
}
.dashboard-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:26px
}
.practice-column{
  min-width:0
}
.setup-panel{
  padding:23px 24px 0
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:23px
}
.heading-label{
  display:flex;
  align-items:center;
  gap:10px
}
.step-number{
  border:1px solid #dfe4d4;
  width:25px;
  height:25px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  color:#889676;
  background:#f2f4eb
}
.section-heading>.small{
  font-size:10px
}
.setup-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:26px
}
.segmented{
  display:inline-flex;
  background:#f0f0e7;
  border-radius:8px;
  padding:4px;
  gap:3px
}
.segmented button{
  padding:8px 17px;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:7px;
  border-radius:6px;
  color:#828774;
  font-weight:600
}
.segmented button.selected{
  background:var(--white);
  color:var(--green);
  box-shadow:0 1px 4px #273e3612
}
.grade-label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--muted)
}
.grade-label select{
  font-size:11px;
  padding:8px 24px 8px 9px;
  background:#fbfaf4;
  font-weight:600
}
.chapter-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  font-size:11px;
  font-weight:650
}
.chapter-label .text-button{
  font-size:10px;
  color:#8c937f;
  text-decoration:underline;
  text-underline-offset:3px
}
.chapter-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px
}
.chapter-wrap{
  position:relative
}
.chapter-card{
  padding:13px 15px;
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  width:100%;
  border:1px solid #e3e5d8;
  border-radius:9px;
  background:#fffefa;
  transition:background .15s,border-color .15s;
  min-height:87px
}
.chapter-card:hover{
  border-color:#91a187
}
.chapter-card.selected{
  background:#f3f5e9;
  border-color:#8fa37b;
  box-shadow:0 0 0 1px #8fa37b14
}
.chapter-icon{
  height:45px;
  width:45px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0
}
.chapter-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding-right:20px;
  min-width:0
}
.chapter-copy small{
  font-size:8px;
  letter-spacing:1.15px;
  color:#9a9f8b;
  font-weight:600
}
.chapter-copy strong{
  font-size:13px;
  font-weight:650
}
.chapter-copy>span{
  font-size:10px;
  color:#8a8f7e
}
.checkbox{
  margin-left:auto;
  border:1px solid #d5d9ca;
  border-radius:5px;
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0
}
.selected>.checkbox{
  background:#71895f;
  border-color:#71895f;
  color:white
}
.chapter-edit{
  position:absolute;
  bottom:9px;
  right:15px;
  color:#98a08c;
  padding:2px;
  display:flex;
  border-radius:3px
}
.chapter-edit:hover{
  color:var(--orange);
  background:#ebe9df
}
.selection-summary{
  margin-top:15px;
  display:flex;
  align-items:center;
  gap:4px;
  font-size:10px;
  color:#8e9581;
  padding-bottom:20px
}
.selection-summary strong{
  font-weight:650;
  color:#637657
}
.green-dot{
  background:#7b9465;
  width:5px;
  height:5px;
  border-radius:50%;
  margin-right:2px
}
.summary-count{
  margin-left:auto
}
.direction-row{
  border-top:1px dashed #dcdfd1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 0
}
.direction-row>span{
  font-size:10px;
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:650;
  white-space:nowrap
}
.direction-controls{
  display:flex;
  gap:6px
}
.direction{
  border:1px solid #e2e3d8;
  padding:8px 9px;
  border-radius:6px;
  display:flex;
  align-items:center;
  gap:4px;
  font-size:9px;
  color:#929681
}
.direction span{
  color:#929681;
  margin:0 2px
}
.direction.selected{
  color:#4e6548;
  background:#eef2e5;
  border-color:#ccd7bc
}
.exercise-picker{
  margin-top:30px
}
.exercise-picker .section-heading{
  margin-bottom:16px;
  padding:0 1px
}
.mode-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px
}
.mode-card{
  position:relative;
  text-align:left;
  border:1px solid #e1e3d8;
  border-radius:11px;
  background:var(--white);
  padding:15px 14px 13px;
  display:flex;
  flex-direction:column;
  min-height:180px;
  transition:background .15s,border-color .15s
}
.mode-card.selected{
  border-color:#6b8760;
  background:#f6f7ee;
  box-shadow:0 0 0 1px #6b876028
}
.mode-card:hover{
  border-color:#9aaa8e
}
.mode-card.unavailable{
  background:#f9f7f0
}
.mode-card.unavailable>strong,.mode-card.unavailable>p{
  opacity:.55
}
.mode-card.unavailable .mode-icon{
  opacity:.65
}
.mode-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:13px
}
.mode-icon{
  width:37px;
  height:37px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  flex-shrink:0
}
.radio{
  border:1px solid #d7dccd;
  width:14px;
  height:14px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:2px
}
.selected .radio{
  border-color:#6d855e
}
.radio span{
  width:6px;
  height:6px;
  background:#6d855e;
  border-radius:50%
}
.mode-card>strong{
  font-size:12px;
  font-weight:700;
  margin-bottom:6px
}
.mode-card>p{
  font-size:10px;
  line-height:1.7;
  color:#88907e;
  margin-bottom:12px
}
.mode-tag{
  font-size:8px;
  color:#98a087;
  margin-top:auto
}
.mode-card.selected .mode-tag{
  color:#738861
}
.launch-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:21px
}
.launch-panel>div>strong{
  font-size:12px
}
.launch-panel label{
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:6px;
  font-size:10px;
  color:#909580
}
.launch-panel label select{
  padding:2px 15px 2px 0;
  border:0;
  background:none;
  font-size:10px;
  color:#909580
}
.launch-panel label>span{
  display:flex;
  gap:5px;
  align-items:center
}
.start-button{
  font-size:12px;
  padding:13px 19px
}
.validation-note{
  font-size:11px;
  color:#9c7345;
  margin-top:12px
}
.sidebar{
  display:flex;
  flex-direction:column;
  gap:19px
}
.village-card{
  background:#edf1e5;
  border:1px solid #dfe5d2;
  border-radius:14px;
  padding:20px 20px 0;
  overflow:hidden
}
.village-card-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  margin-bottom:14px
}
.village-card-heading .eyebrow{
  font-size:7px;
  letter-spacing:1.4px;
  color:#82916e
}
.level-badge{
  background:#e0e7d2;
  border:1px solid #d3dcc3;
  color:#6f8258;
  padding:4px 7px;
  border-radius:5px;
  font-size:8px;
  letter-spacing:1px;
  font-weight:700;
  display:inline-flex;
  white-space:nowrap
}
.village-card h2{
  font-family:var(--serif);
  font-weight:500;
  letter-spacing:-.5px;
  font-size:24px;
  margin-bottom:6px
}
.village-card>p{
  font-size:10px;
  color:#8c967d
}
.village-art{
  display:block;
  width:calc(100% + 32px);
  margin:4px -16px 0
}
.village-card-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 0 15px
}
.village-card-bottom>span{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  color:#819170
}
.village-card-bottom .icon{
  color:#b29b50
}
.village-card-bottom strong{
  font-size:12px;
  color:#61734b
}
.village-card-bottom button{
  background:#fbfcf4;
  border:1px solid #dce3cd;
  border-radius:50%;
  width:29px;
  height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#5e7852
}
.next-unlock{
  margin:0 -20px;
  border-top:1px solid #dfe5d1;
  background:#e9eede;
  color:#8d987e;
  display:flex;
  align-items:center;
  gap:6px;
  padding:12px 17px;
  font-size:9px
}
.daily-card{
  border:1px solid var(--line);
  border-radius:13px;
  padding:20px;
  background:var(--white)
}
.daily-heading{
  display:flex;
  align-items:center;
  gap:10px
}
.daily-icon{
  border-radius:50%;
  width:37px;
  height:37px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5ecd3;
  color:#b1964e
}
.daily-heading small{
  font-size:7px;
  letter-spacing:1.3px;
  color:#979d87;
  font-weight:650
}
.daily-heading h3{
  font-size:13px;
  margin-top:4px;
  letter-spacing:-.2px
}
.daily-card>p{
  font-size:10px;
  color:#929983;
  margin:17px 0 12px
}
.progress-track{
  height:7px;
  background:#eceee3;
  border-radius:20px;
  overflow:hidden
}
.progress-track>span{
  background:#95ac7b;
  height:100%;
  display:block;
  border-radius:20px;
  transition:width .3s
}
.daily-bottom{
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:#979e89;
  margin-top:9px
}
.daily-bottom strong{
  color:#6d8058
}
.daily-bottom>span:last-child{
  font-style:italic;
  font-size:8px
}
.streak{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  border-top:1px dashed #e0e4d5;
  margin-top:20px;
  padding-top:17px
}
.streak .icon{
  color:#cc9672;
  margin-right:2px
}
.streak strong{
  font-size:11px
}
.streak>span{
  color:#8e9780
}
.tip-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:0 9px
}
.tip-card>span{
  font-size:17px
}
.tip-card p{
  font-size:11px;
  color:#939982;
  line-height:1.65
}
.tip-card strong{
  display:block;
  color:#7f8d6d;
  font-size:11px;
  margin-bottom:3px
}
footer{
  border-top:1px solid var(--line);
  padding:25px 40px;
  max-width:1240px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:25px;
  font-size:10px;
  color:#929884
}
.footer-brand{
  font-weight:700;
  letter-spacing:-.4px;
  font-size:16px;
  color:#6f7c61
}
.footer-brand span{
  color:#b59e67;
  margin-left:2px
}
footer>span{
  margin-left:auto;
  font-size:9px
}
.flag-mini{
  margin-left:7px
}
.page-intro{
  padding:45px 0 32px
}
.page-intro .eyebrow{
  margin-bottom:18px;
  color:#81916b
}
.page-intro p{
  font-size:14px;
  color:var(--muted);
  margin-top:17px;
  line-height:1.7
}
.big-village{
  background:#eef2e5;
  display:flex;
  align-items:center;
  padding:25px 45px
}
.big-village>.village-art{
  width:58%;
  max-height:370px;
  margin:0 0 0 auto
}
.village-info h2{
  font-family:var(--serif);
  font-size:30px;
  font-weight:500;
  margin:15px 0 9px;
  line-height:1.15
}
.village-info>p{
  font-size:12px;
  color:var(--muted)
}
.village-wallet{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:29px;
  font-weight:700;
  margin:24px 0;
  color:#a08b41
}
.village-wallet>span{
  font-size:12px;
  color:#899274;
  font-weight:400
}
.shop-heading{
  margin-top:36px
}
.shop-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.shop-card{
  padding:22px;
  display:flex;
  align-items:flex-start;
  flex-direction:column
}
.shop-art{
  position:relative;
  height:110px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  margin-bottom:19px
}
.shop-art>span{
  position:absolute;
  right:24%;
  top:20px;
  font-size:19px;
  opacity:.6
}
.shop-card p{
  font-size:12px;
  color:var(--muted);
  margin:7px 0 20px
}
.shop-card .button{
  width:100%;
  margin-top:auto
}
.shop-card small{
  font-size:10px;
  color:#929983;
  margin:10px auto -3px
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:24px
}
.stat-card{
  padding:23px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px
}
.stat-card .icon{
  color:#8c9b73;
  margin-bottom:5px
}
.stat-card strong{
  font-family:var(--serif);
  font-size:38px;
  font-weight:500
}
.stat-card>span{
  font-size:12px;
  color:var(--muted)
}
.progress-section{
  padding:25px
}
.badge-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin:28px 0
}
.achievement{
  text-align:center;
  opacity:.55
}
.achievement.earned{
  opacity:1
}
.achievement>span{
  border:1px dashed #cdd6bd;
  display:flex;
  border-radius:50%;
  width:70px;
  height:70px;
  align-items:center;
  justify-content:center;
  margin:0 auto 15px;
  background:#f1f2e9;
  color:#889876
}
.achievement.earned>span{
  background:#f5e6ba;
  color:#b48c32;
  border-color:#d7b95d
}
.achievement h3{
  font-size:13px
}
.achievement p{
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
  margin:8px 0
}
.achievement small{
  color:#87956e;
  font-size:10px
}
.progress-section>.progress-track{
  margin-top:25px
}
.progress-section>.small{
  margin-top:10px
}
.progress-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:22px
}
.progress-section>p{
  margin-top:8px
}
.empty-state{
  padding:36px 10px;
  text-align:center;
  font-size:25px
}
.empty-state p{
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
  margin:10px 0 20px
}
.difficult-row,.history-row{
  border-bottom:1px solid #eeefe6;
  padding:15px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size:12px
}
.difficult-row>span{
  color:var(--muted);
  text-align:right
}
.history-row>span:nth-child(2){
  flex:1;
  min-width:0
}
.history-row strong{
  font-size:12px;
  display:block
}
.history-row small{
  font-size:10px;
  display:block;
  color:var(--muted);
  margin-top:5px
}
.history-icon{
  background:#edf0e5;
  color:#829371;
  border-radius:10px;
  width:35px;
  height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0
}
.storage-note{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:11px;
  color:#89927d;
  margin-top:25px;
  flex-wrap:wrap
}
.admin-status{
  padding:20px;
  display:flex;
  align-items:center;
  gap:15px;
  background:#f5f5e9;
  margin-bottom:30px
}
.status-icon{
  padding:10px;
  border-radius:10px;
  display:flex;
  flex-shrink:0
}
.admin-status strong{
  font-size:13px
}
.admin-status p{
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
  margin-top:5px;
  max-width:760px
}
.admin-status>.button{
  margin-left:auto
}
.library-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px
}
.library-toolbar h2{
  font-size:15px
}
.library-toolbar h2>span{
  font-size:12px;
  font-weight:400
}
.toolbar-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap
}
.toolbar-actions .button{
  padding:9px 12px;
  font-size:11px
}
.file-label{
  cursor:pointer
}
.library-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.library-card{
  padding:23px;
  position:relative
}
.grade-tag{
  position:absolute;
  right:20px;
  top:23px;
  background:#f0f2e7;
  color:#8a9577;
  font-size:10px;
  padding:5px 8px;
  border-radius:5px
}
.library-card h3{
  font-size:17px;
  margin-top:20px
}
.library-card>p{
  font-size:12px;
  color:var(--muted);
  margin:8px 0 19px
}
.library-counts{
  display:flex;
  gap:16px;
  font-size:11px;
  color:#7e8c6d;
  margin-bottom:22px
}
.library-counts>span{
  display:flex;
  align-items:center;
  gap:4px
}
.library-card .button{
  width:100%;
  font-size:12px
}
.import-help{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:25px;
  margin-top:25px
}
.import-help p{
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin:10px 0 15px
}
.import-help a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#7c8d68;
  margin-right:24px;
  text-decoration:underline;
  text-underline-offset:3px
}
code{
  font-size:11px;
  background:#f0f0e8;
  border-radius:3px;
  padding:1px 4px
}
.exercise-shell{
  max-width:800px;
  margin:40px auto 20px
}
.exercise-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px
}
.exercise-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:650
}
.round-coins{
  color:#a2893e;
  background:#f3e9c9;
  border-radius:20px;
  padding:7px 12px;
  font-size:13px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:5px
}
.exercise-counter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#8b957c;
  font-size:11px;
  margin:13px 0 24px
}
.exercise-board{
  padding:33px 40px;
  text-align:center
}
.exercise-category{
  font-size:9px;
  letter-spacing:1.5px;
  color:#919d80
}
.exercise-board h1{
  font-family:var(--sans);
  font-size:20px;
  font-weight:600;
  letter-spacing:-.4px;
  margin-top:13px;
  line-height:1.5
}
.question-prompt{
  font-family:var(--serif);
  font-size:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  margin:26px 0 30px;
  line-height:1.25;
  min-height:70px
}
.sound-button{
  color:#8f9d7d;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e1e5d7;
  border-radius:50%;
  width:36px;
  height:36px;
  flex-shrink:0
}
.answer-options{
  display:grid;
  gap:10px;
  text-align:left
}
.answer-option{
  border:1px solid #dfe3d5;
  display:flex;
  align-items:center;
  gap:16px;
  min-height:58px;
  border-radius:9px;
  padding:10px 17px;
  font-size:14px;
  text-align:left;
  transition:background .15s
}
.answer-option>span:nth-child(2){
  flex:1
}
.answer-option:hover:not(:disabled){
  background:#f1f4e9;
  border-color:#9eb28b
}
.option-letter{
  height:29px;
  width:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#829273;
  border:1px solid #e1e5d7;
  border-radius:7px;
  background:#fafbf5;
  flex-shrink:0
}
.answer-option.correct{
  background:#edf4e4;
  border-color:#90ab77;
  color:#496640
}
.answer-option.incorrect{
  background:#faeae1;
  border-color:#dcab91;
  color:#a45a3d
}
.answer-option:disabled:not(.correct):not(.incorrect){
  opacity:.45
}
.answer-feedback{
  border-radius:10px;
  display:flex;
  align-items:center;
  text-align:left;
  gap:13px;
  padding:18px;
  margin-top:25px
}
.answer-feedback.good{
  background:#eaf2e1;
  color:#4f7040
}
.answer-feedback.bad{
  background:#faf0dc;
  color:#9b7a3e
}
.feedback-symbol{
  display:flex;
  flex-shrink:0
}
.answer-feedback strong{
  font-size:13px
}
.answer-feedback p{
  font-size:11px;
  margin-top:6px;
  line-height:1.6
}
.answer-feedback .button{
  margin-left:auto;
  font-size:11px;
  padding:11px 13px
}
.exercise-reassurance{
  font-size:11px;
  text-align:center;
  color:#9aa18b;
  margin-top:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px
}
.written-answer{
  display:block;
  width:100%;
  padding:19px;
  font-size:19px;
  border-radius:10px;
  text-align:center
}
.accent-bar{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin:16px 0 23px
}
.accent-bar>span{
  font-size:10px;
  color:#969f88;
  margin-right:5px
}
.accent-bar button{
  border:1px solid #e0e3d7;
  border-radius:5px;
  padding:5px 8px;
  font-size:13px;
  background:#fafaf3
}
.check-button{
  margin-top:10px
}
.sentence-build{
  background:#f6f7ee;
  border:1px dashed #c8d1b9;
  padding:20px;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  border-radius:10px
}
.sentence-build>span{
  font-size:13px;
  color:#9ba38f
}
.word-token{
  background:var(--white);
  border:1px solid #d5ddc9;
  border-bottom:3px solid #d5ddc9;
  border-radius:7px;
  padding:10px 14px;
  font-size:15px
}
.word-token.chosen{
  background:#e9efdf
}
.word-token.used{
  visibility:hidden
}
.token-bank{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:25px 0 10px
}
.match-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  margin-top:30px
}
.match-column{
  display:flex;
  flex-direction:column;
  gap:10px
}
.match-column>.small{
  margin-bottom:8px
}
.match-tile{
  border:1px solid #dce1d2;
  border-bottom:3px solid #dce1d2;
  border-radius:8px;
  padding:14px 10px;
  min-height:65px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  line-height:1.5
}
.match-tile.selected{
  border-color:#a3af8f;
  background:#edf2e2
}
.match-tile.matched{
  background:#e7efdf;
  border-color:#dce5d0;
  color:#81966d;
  opacity:.7
}
.match-message{
  font-size:12px;
  color:#7c8b6e;
  min-height:38px;
  margin:24px 0 0
}
.result-shell{
  max-width:800px;
  margin:35px auto;
  text-align:center;
  padding:20px 0
}
.result-confetti{
  color:#c6b05e;
  font-size:30px;
  letter-spacing:30px
}
.result-confetti>span{
  color:#adbc94
}
.result-trophy{
  background:#f5e9c3;
  border:1px solid #ead9a7;
  width:110px;
  height:110px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:10px auto 30px;
  color:#b69748
}
.result-shell .eyebrow{
  justify-content:center;
  color:#879674;
  margin-bottom:15px
}
.result-shell h1{
  font-size:48px
}
.result-shell>p{
  margin-top:15px;
  font-size:14px;
  color:var(--muted)
}
.result-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:30px;
  margin:30px 0
}
.result-stats>div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px
}
.result-stats>div+div{
  border-left:1px solid var(--line)
}
.result-stats strong{
  font-size:31px;
  display:flex;
  align-items:center;
  gap:6px;
  color:#75895f;
  font-family:var(--serif)
}
.result-stats strong>span{
  font-size:21px;
  color:#a0a88f
}
.result-stats>div:nth-child(2) strong{
  color:#b19749
}
.result-stats>div>span{
  font-size:11px;
  color:var(--muted)
}
.review-list{
  text-align:left;
  padding:25px;
  margin:20px 0
}
.review-list h2{
  font-size:16px;
  margin-bottom:15px
}
.review-list>div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
  border-top:1px solid #eeefe5;
  font-size:12px
}
.review-list>div>span{
  color:var(--muted);
  text-align:right
}
.result-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:15px;
  margin-top:30px
}
.result-actions>.text-button{
  flex-basis:100%;
  justify-content:center;
  margin-top:8px
}
.toast{
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translate(-50%,20px);
  background:#2c4a3e;
  color:var(--white);
  padding:14px 22px;
  box-shadow:0 5px 25px #263d3226;
  border-radius:10px;
  max-width:calc(100% - 30px);
  width:max-content;
  z-index:1000;
  font-size:13px;
  line-height:1.6;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s
}
.toast.show{
  opacity:1;
  transform:translate(-50%,0)
}
dialog{
  max-width:calc(100% - 32px);
  width:470px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--white);
  color:var(--ink);
  padding:28px;
  box-shadow:0 15px 90px #203c3733;
  max-height:90dvh
}
dialog::backdrop{
  background:#20352db3;
  backdrop-filter:blur(3px)
}
.modal-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.modal-heading h2{
  font-size:22px;
  font-family:var(--serif);
  font-weight:500
}
.modal-lead{
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:12px 0 22px
}
dialog form>label,.chapter-meta>label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:11px;
  font-weight:600
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-top:24px
}
.modal-actions>.danger{
  margin-right:auto
}
.modal-actions>.button{
  font-size:12px
}
.modal-actions>span{
  flex:1
}
.editor-modal{
  width:1000px
}
.chapter-meta{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:15px
}
.chapter-meta .full{
  grid-column:1/-1
}
.chapter-meta input,.chapter-meta select{
  font-size:13px
}
.editor-tabs{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:26px 0 12px
}
.editor-tabs .segmented button{
  font-size:11px
}
.editor-tabs .button{
  font-size:11px;
  padding:9px 12px
}
.editor-help{
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
  margin:16px 0
}
.editor-table-scroll{
  max-height:360px;
  overflow:auto;
  margin-top:20px
}
.editor-table{
  min-width:680px
}
.edit-table-head,.edit-data-row{
  display:grid;
  grid-template-columns:1.2fr 1.2fr .9fr .9fr 32px;
  gap:8px;
  align-items:center;
  margin-bottom:8px
}
.editor-table.sentences .edit-table-head,.editor-table.sentences .edit-data-row{
  grid-template-columns:1.2fr 1.2fr 1.2fr .75fr 32px
}
.edit-table-head{
  font-size:10px;
  font-weight:600;
  color:#8b977c;
  padding-bottom:3px
}
.edit-data-row input{
  padding:9px 8px;
  font-size:12px;
  width:100%
}
.delete-row{
  color:#b3897c
}
.add-row{
  margin-top:15px;
  font-size:12px
}
.inline-error{
  font-size:12px;
  color:#ad583c;
  line-height:1.7;
  margin-top:15px
}
.danger{
  color:#b96f54
}
dialog form>.small{
  font-size:10px;
  margin-top:13px;
  text-align:right
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link{
  position:fixed;
  left:15px;
  top:-80px;
  background:var(--green);
  color:white;
  padding:13px;
  z-index:2000;
  border-radius:8px
}
.skip-link:focus{
  top:12px
}
@media(min-width:1250px){
  .chapter-grid{
    grid-template-columns:repeat(2,1fr)
  }
  .chapter-wrap:last-child:nth-child(odd){
    grid-column:1/-1
  }
  .chapter-card{
    min-height:92px
  }
  .welcome{
    padding-top:48px;
    padding-bottom:37px
  }
  .mode-card{
    min-height:192px;
    padding:17px
  }
  .chapter-copy strong{
    font-size:13px
  }
  .chapter-copy>span{
    font-size:10px
  }
  .chapter-wrap:last-child:nth-child(odd) .chapter-card{
    min-height:82px
  }
  .welcome h1{
    font-size:61px
  }
  .direction-row{
    padding:18px 0
  }
  .setup-row{
    margin-bottom:23px
  }
  .setup-panel{
    padding-top:24px
  }
  .direction{
    font-size:10px;
    padding:9px 10px
  }
  .direction-row>span{
    font-size:11px
  }
  .village-card h2{
    font-size:25px
  }
  .dashboard-layout{
    grid-template-columns:minmax(0,1fr) 300px
  }
}
@media(min-width:1500px){
  main{
    max-width:1320px
  }
  .header-inner{
    max-width:1400px
  }
  .dashboard-layout{
    grid-template-columns:minmax(0,1fr) 320px;
    gap:30px
  }
  .chapter-card{
    padding:17px
  }
  .mode-card{
    padding:20px;
    min-height:200px
  }
  .mode-card>strong{
    font-size:14px
  }
  .mode-card>p{
    font-size:11px
  }
  .mode-tag{
    font-size:9px
  }
  .chapter-copy strong{
    font-size:14px
  }
  .chapter-copy>span{
    font-size:11px
  }
  .section-heading>.small{
    font-size:11px
  }
  .welcome-note{
    margin-right:85px
  }
  .village-card{
    padding-top:24px
  }
  .village-card-heading .eyebrow{
    font-size:8px
  }
}
@media(max-width:1100px){
  .header-inner{
    padding:0 28px;
    gap:15px
  }
  .main-nav{
    gap:18px;
    padding-left:0
  }
  .header-tools{
    gap:12px
  }
  .admin-link>span{
    display:none
  }
  .dashboard-layout{
    grid-template-columns:minmax(0,1fr) 265px;
    gap:20px
  }
  main{
    padding-left:28px;
    padding-right:28px
  }
  .welcome h1{
    font-size:53px
  }
  .welcome-note{
    margin-right:45px
  }
  .direction-row{
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .direction-controls{
    width:100%
  }
  .direction{
    flex:1;
    justify-content:center;
    font-size:10px
  }
  .mode-grid{
    grid-template-columns:repeat(2,1fr)
  }
  .mode-card{
    min-height:170px
  }
  .mode-card>strong{
    font-size:13px
  }
  .mode-card>p{
    font-size:11px
  }
  .section-heading>.small{
    display:none
  }
  .setup-row{
    gap:10px
  }
  .grade-label{
    gap:4px;
    font-size:10px
  }
  .segmented button{
    padding:8px 12px
  }
  .launch-panel{
    align-items:flex-start;
    flex-direction:column
  }
  .start-button{
    width:100%
  }
  .library-toolbar{
    align-items:flex-start;
    flex-direction:column;
    gap:15px
  }
  .library-grid{
    gap:14px
  }
  .library-card{
    padding:18px
  }
  .grade-tag{
    right:15px;
    font-size:9px
  }
  .shop-heading .small{
    display:block;
    font-size:10px;
    max-width:250px;
    text-align:right
  }
  .shop-card{
    padding:18px
  }
}
@media(max-width:800px){
  .site-header{
    height:76px
  }
  .header-inner{
    padding:0 22px
  }
  .brand{
    font-size:22px
  }
  .brand-mark{
    width:38px;
    height:40px;
    font-size:35px;
    border-radius:12px
  }
  .brand small{
    font-size:5px
  }
  .main-nav{
    gap:18px
  }
  .nav-item{
    font-size:11px;
    gap:5px
  }
  .nav-item .icon{
    width:16px
  }
  .header-divider{
    display:none
  }
  .header-tools{
    gap:11px
  }
  .avatar{
    display:none
  }
  .coin-balance{
    padding:6px 9px;
    font-size:12px
  }
  .admin-link .icon{
    width:17px
  }
  main{
    padding:0 22px 45px
  }
  .welcome{
    padding:35px 0 30px
  }
  .welcome h1{
    font-size:47px
  }
  .welcome .eyebrow{
    font-size:8px;
    letter-spacing:1.3px
  }
  .welcome-note{
    margin-right:8px;
    width:130px
  }
  .welcome-note p{
    font-size:13px
  }
  .note-stamp{
    right:-10px;
    font-size:7px;
    padding:9px 6px;
    top:8px
  }
  .note-arrow{
    font-size:39px
  }
  .dashboard-layout{
    grid-template-columns:minmax(0,1fr) 235px;
    gap:18px
  }
  .setup-panel{
    padding:20px 18px 0
  }
  .setup-row{
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:20px
  }
  .grade-label{
    font-size:11px;
    justify-content:space-between;
    flex:1;
    min-width:190px
  }
  .grade-label select{
    padding:8px;
    font-size:11px
  }
  .segmented{
    width:100%
  }
  .segmented>button{
    justify-content:center;
    flex:1
  }
  .section-heading h2{
    font-size:17px
  }
  .chapter-card{
    padding:12px;
    gap:10px
  }
  .chapter-icon{
    width:38px;
    height:38px;
    border-radius:10px
  }
  .chapter-copy strong{
    font-size:12px
  }
  .chapter-copy>span{
    font-size:9px
  }
  .chapter-copy small{
    font-size:7px
  }
  .chapter-label{
    font-size:10px
  }
  .chapter-label .text-button{
    font-size:9px
  }
  .chapter-edit{
    right:12px
  }
  .selection-summary{
    font-size:9px;
    flex-wrap:wrap;
    row-gap:7px
  }
  .summary-count{
    flex-basis:100%;
    margin-left:10px
  }
  .direction{
    font-size:9px;
    padding:7px
  }
  .direction-controls{
    flex-direction:column;
    gap:5px
  }
  .direction-row{
    gap:10px
  }
  .mode-grid{
    gap:10px
  }
  .mode-card{
    padding:13px 11px;
    min-height:180px
  }
  .mode-card>strong{
    font-size:11px
  }
  .mode-card>p{
    font-size:10px
  }
  .mode-tag{
    font-size:8px
  }
  .village-card{
    padding:18px 15px 0
  }
  .village-card h2{
    font-size:22px
  }
  .village-card>p{
    font-size:9px
  }
  .village-card-heading .eyebrow{
    font-size:6px;
    letter-spacing:1px
  }
  .village-card-heading .level-badge{
    font-size:7px;
    letter-spacing:.5px;
    padding:3px 5px
  }
  .next-unlock{
    font-size:8px;
    padding:12px 15px;
    margin:0 -15px
  }
  .daily-card{
    padding:17px 15px
  }
  .daily-heading{
    gap:8px
  }
  .daily-heading h3{
    font-size:11px
  }
  .daily-heading small{
    font-size:6px
  }
  .daily-icon{
    width:31px;
    height:31px
  }
  .daily-bottom{
    font-size:8px
  }
  .daily-bottom>span:last-child{
    font-size:7px
  }
  .tip-card{
    padding:0 3px;
    gap:7px
  }
  .tip-card p{
    font-size:10px
  }
  footer{
    padding:23px 22px;
    gap:16px
  }
  .footer-brand{
    font-size:14px
  }
  footer p{
    font-size:9px
  }
  footer>span{
    font-size:8px
  }
  .page-intro h1{
    font-size:47px
  }
  .big-village{
    padding:25px
  }
  .big-village>.village-art{
    width:55%
  }
  .village-info h2{
    font-size:24px
  }
  .village-info>p{
    font-size:11px
  }
  .village-wallet{
    margin:18px 0
  }
  .village-info .button{
    font-size:11px
  }
  .library-grid,.shop-grid{
    grid-template-columns:repeat(2,1fr)
  }
  .stats-grid{
    gap:12px
  }
  .stat-card{
    padding:18px
  }
  .stat-card strong{
    font-size:32px
  }
  .stat-card>span{
    font-size:10px
  }
  .achievement h3{
    font-size:11px
  }
  .achievement p{
    font-size:10px
  }
  .progress-section{
    padding:20px
  }
  .badge-grid{
    gap:12px
  }
  .progress-columns{
    gap:16px
  }
  .storage-note{
    font-size:10px
  }
  .admin-status{
    align-items:flex-start;
    flex-wrap:wrap
  }
  .admin-status>div{
    flex:1
  }
  .admin-status>.button{
    margin-left:55px
  }
  .exercise-board{
    padding:30px
  }
  .answer-feedback{
    flex-wrap:wrap
  }
  .answer-feedback>.button{
    margin-left:auto
  }
  .exercise-shell{
    margin-top:30px
  }
  .question-prompt{
    font-size:32px
  }
}
@media(max-width:620px){
  .site-header{
    height:auto
  }
  .header-inner{
    height:auto;
    min-height:76px;
    flex-wrap:wrap;
    gap:0;
    padding:17px 20px 0
  }
  .brand{
    font-size:23px
  }
  .header-tools{
    margin-left:auto;
    gap:15px;
    padding-bottom:5px
  }
  .admin-link>span{
    display:inline;
    font-size:10px
  }
  .avatar{
    display:block;
    width:30px;
    height:30px;
    font-size:17px
  }
  .header-tools .coin-balance{
    font-size:11px
  }
  .header-divider{
    display:none
  }
  .main-nav{
    order:3;
    width:100%;
    justify-content:space-between;
    padding:0 2px;
    gap:15px;
    margin-top:15px
  }
  .nav-item{
    height:43px;
    flex:1;
    justify-content:center;
    font-size:11px;
    gap:7px
  }
  .nav-item.active:after{
    left:10px;
    right:10px;
    height:2px
  }
  .nav-item .icon{
    width:17px
  }
  main{
    padding:0 20px 38px
  }
  .welcome{
    padding:30px 0 28px
  }
  .welcome h1{
    font-size:43px;
    letter-spacing:-1.6px;
    line-height:1.12;
    margin:13px 0 14px
  }
  .welcome .eyebrow{
    font-size:7px;
    letter-spacing:1.2px
  }
  .tiny-sun{
    font-size:18px
  }
  .welcome p{
    font-size:12px;
    line-height:1.8;
    max-width:330px
  }
  .desktop-break{
    display:none
  }
  .welcome-note{
    display:none
  }
  .dashboard-layout{
    grid-template-columns:1fr;
    gap:28px
  }
  .setup-panel{
    padding:20px 17px 0;
    border-radius:12px
  }
  .section-heading{
    margin-bottom:19px
  }
  .section-heading h2{
    font-size:17px
  }
  .step-number{
    width:23px;
    height:23px;
    font-size:9px
  }
  .heading-label{
    gap:8px
  }
  .setup-row{
    flex-wrap:nowrap;
    gap:8px;
    margin-bottom:24px
  }
  .setup-row>.segmented{
    width:auto
  }
  .segmented button{
    padding:8px 12px;
    font-size:11px;
    gap:6px
  }
  .grade-label{
    font-size:0;
    min-width:0;
    flex:initial
  }
  .grade-label select{
    font-size:10px;
    padding:10px 5px;
    max-width:135px
  }
  .chapter-grid{
    gap:9px
  }
  .chapter-card{
    min-height:84px;
    padding:13px;
    gap:12px
  }
  .chapter-icon{
    width:42px;
    height:42px
  }
  .chapter-copy strong{
    font-size:13px
  }
  .chapter-copy>span{
    font-size:10px
  }
  .chapter-copy small{
    font-size:7px
  }
  .chapter-label{
    font-size:11px
  }
  .chapter-label .text-button{
    font-size:9px
  }
  .checkbox{
    width:18px;
    height:18px
  }
  .chapter-edit{
    bottom:10px;
    right:13px
  }
  .selection-summary{
    font-size:10px;
    margin-top:14px;
    flex-wrap:nowrap
  }
  .summary-count{
    flex-basis:auto;
    margin-left:auto;
    font-size:9px
  }
  .direction-row{
    flex-direction:column;
    padding:17px 0;
    gap:12px
  }
  .direction-row>span{
    font-size:11px
  }
  .direction-controls{
    flex-direction:row;
    gap:7px
  }
  .direction{
    font-size:8px;
    gap:3px;
    padding:10px 5px;
    white-space:nowrap
  }
  .direction span{
    margin:0
  }
  .exercise-picker{
    margin-top:27px
  }
  .mode-grid{
    gap:10px
  }
  .mode-card{
    padding:16px 13px;
    min-height:185px
  }
  .mode-card>strong{
    font-size:12px
  }
  .mode-card>p{
    font-size:11px;
    margin-bottom:12px
  }
  .mode-tag{
    font-size:8px
  }
  .mode-card-top{
    margin-bottom:14px
  }
  .mode-icon{
    width:38px;
    height:38px
  }
  .launch-panel{
    padding:20px 0 0;
    margin-top:23px;
    gap:15px
  }
  .launch-panel>div{
    width:100%;
    text-align:center
  }
  .launch-panel>div>strong{
    font-size:13px
  }
  .launch-panel label{
    justify-content:center;
    margin-top:8px
  }
  .start-button{
    padding:15px;
    font-size:14px
  }
  .sidebar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px
  }
  .village-card{
    grid-column:1/-1;
    position:relative;
    padding:23px 20px 0;
    min-height:265px
  }
  .village-card-heading{
    max-width:180px;
    margin-bottom:15px
  }
  .village-card-heading .eyebrow{
    font-size:7px;
    letter-spacing:1px
  }
  .village-card h2{
    max-width:165px;
    font-size:27px;
    line-height:1.15;
    margin-bottom:11px
  }
  .village-card>p{
    max-width:150px;
    font-size:10px;
    line-height:1.6
  }
  .village-card>.village-art{
    position:absolute;
    right:0;
    top:38px;
    width:62%;
    margin:0
  }
  .village-card-bottom{
    position:relative;
    margin-top:30px;
    max-width:185px;
    padding-bottom:18px;
    gap:10px
  }
  .village-card-bottom>span{
    font-size:9px
  }
  .village-card-bottom button{
    width:25px;
    height:25px;
    flex-shrink:0
  }
  .next-unlock{
    margin:0 -20px;
    padding:12px 20px;
    font-size:9px;
    position:relative
  }
  .daily-card{
    grid-column:1/-1;
    padding:20px
  }
  .daily-heading small{
    font-size:8px
  }
  .daily-heading h3{
    font-size:14px
  }
  .daily-icon{
    height:36px;
    width:36px
  }
  .daily-heading{
    gap:11px
  }
  .daily-card>p{
    font-size:12px
  }
  .daily-bottom{
    font-size:10px
  }
  .daily-bottom>span:last-child{
    font-size:10px
  }
  .streak{
    font-size:11px
  }
  .streak strong{
    font-size:12px
  }
  .tip-card{
    grid-column:1/-1;
    margin:4px 6px
  }
  .tip-card p{
    font-size:11px
  }
  .tip-card strong{
    font-size:12px
  }
  footer{
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    padding:23px 20px;
    text-align:center
  }
  .footer-brand{
    font-size:16px
  }
  footer p{
    font-size:10px
  }
  footer>span{
    margin:0;
    flex-basis:100%;
    font-size:9px
  }
  .page-intro{
    padding:31px 0 26px
  }
  .page-intro h1{
    font-size:42px
  }
  .page-intro .eyebrow{
    font-size:8px;
    letter-spacing:1.5px;
    margin-bottom:14px
  }
  .page-intro p{
    font-size:12px;
    line-height:1.8;
    margin-top:14px
  }
  .big-village{
    flex-direction:column;
    padding:24px 20px 8px
  }
  .village-info{
    width:100%;
    text-align:center
  }
  .village-info h2{
    font-size:27px
  }
  .village-info>p{
    font-size:11px
  }
  .village-wallet{
    justify-content:center;
    font-size:26px;
    margin:16px 0
  }
  .big-village>.village-art{
    width:100%;
    margin:0
  }
  .shop-heading{
    flex-direction:column;
    align-items:flex-start;
    gap:9px;
    margin-top:26px
  }
  .shop-heading .small{
    text-align:left;
    max-width:none;
    font-size:9px
  }
  .shop-grid{
    gap:12px
  }
  .shop-card{
    padding:13px
  }
  .shop-art{
    height:95px;
    margin-bottom:14px
  }
  .shop-card h3{
    font-size:14px
  }
  .shop-card p{
    font-size:10px;
    line-height:1.6;
    margin:7px 0 15px
  }
  .shop-card .button{
    font-size:10px;
    padding:10px 5px;
    gap:5px
  }
  .shop-card .button .icon{
    width:15px
  }
  .shop-card small{
    font-size:9px;
    line-height:1.5;
    text-align:center;
    margin-top:7px
  }
  .stats-grid{
    grid-template-columns:1fr 1fr;
    gap:12px
  }
  .stat-card{
    padding:20px;
    gap:8px
  }
  .stat-card strong{
    font-size:35px
  }
  .stat-card>span{
    font-size:11px
  }
  .progress-section{
    padding:20px 17px
  }
  .progress-section .section-heading{
    flex-wrap:wrap
  }
  .badge-grid{
    grid-template-columns:1fr 1fr;
    gap:28px 12px;
    margin:25px 0
  }
  .achievement h3{
    font-size:12px
  }
  .achievement p{
    font-size:10px
  }
  .progress-columns{
    grid-template-columns:1fr;
    gap:18px;
    margin-top:18px
  }
  .storage-note{
    font-size:10px;
    line-height:1.8;
    margin-top:23px
  }
  .admin-status{
    padding:17px;
    gap:11px
  }
  .status-icon{
    padding:8px
  }
  .status-icon .icon{
    width:19px
  }
  .admin-status strong{
    font-size:12px
  }
  .admin-status p{
    font-size:11px
  }
  .admin-status>.button{
    margin-left:46px;
    padding:9px 13px;
    font-size:11px
  }
  .library-toolbar{
    gap:16px;
    margin-bottom:18px
  }
  .library-toolbar h2{
    font-size:14px
  }
  .library-toolbar h2>span{
    font-size:10px
  }
  .toolbar-actions{
    gap:8px;
    width:100%
  }
  .toolbar-actions .button{
    font-size:10px;
    padding:9px 10px;
    gap:6px
  }
  .toolbar-actions .button.primary{
    flex-basis:100%;
    padding:12px;
    font-size:12px
  }
  .toolbar-actions>.secondary{
    flex:1
  }
  .library-grid{
    grid-template-columns:1fr;
    gap:13px
  }
  .library-card{
    padding:20px
  }
  .library-card .chapter-icon{
    width:40px;
    height:40px
  }
  .library-card h3{
    font-size:18px;
    margin-top:16px
  }
  .library-card>p{
    font-size:12px;
    margin-top:7px;
    margin-bottom:15px
  }
  .grade-tag{
    right:20px;
    top:20px;
    font-size:10px
  }
  .library-counts{
    font-size:11px;
    margin-bottom:17px
  }
  .library-card .button{
    font-size:12px
  }
  .import-help{
    padding:19px;
    gap:12px;
    margin-top:18px;
    flex-wrap:wrap
  }
  .import-help h3{
    font-size:15px
  }
  .import-help p{
    font-size:11px
  }
  .import-help a{
    font-size:11px;
    margin-top:5px;
    margin-right:15px
  }
  .exercise-shell{
    margin:24px auto 5px
  }
  .exercise-top{
    gap:10px;
    margin-bottom:22px
  }
  .exercise-top>.text-button{
    font-size:10px
  }
  .exercise-title{
    font-size:12px;
    gap:6px
  }
  .exercise-title .icon{
    width:17px
  }
  .round-coins{
    font-size:11px;
    padding:6px 9px;
    gap:3px
  }
  .round-coins .icon{
    width:16px
  }
  .exercise-counter{
    font-size:10px;
    margin-bottom:20px
  }
  .exercise-counter>span{
    font-size:9px
  }
  .exercise-board{
    padding:25px 17px;
    border-radius:12px
  }
  .exercise-category{
    font-size:8px;
    letter-spacing:1.2px
  }
  .exercise-board h1{
    font-size:17px;
    margin-top:12px;
    line-height:1.6
  }
  .question-prompt{
    font-size:28px;
    line-height:1.35;
    gap:9px;
    margin:22px 0 26px;
    min-height:60px
  }
  .sound-button{
    height:30px;
    width:30px
  }
  .sound-button .icon{
    width:17px
  }
  .answer-option{
    min-height:60px;
    padding:11px 12px;
    font-size:13px;
    gap:12px
  }
  .option-letter{
    height:26px;
    width:26px;
    font-size:10px
  }
  .answer-options{
    gap:9px
  }
  .answer-feedback{
    padding:15px 12px;
    gap:10px;
    align-items:flex-start;
    margin-top:20px
  }
  .answer-feedback>div{
    flex:1
  }
  .answer-feedback strong{
    font-size:12px;
    line-height:1.7;
    display:block
  }
  .answer-feedback p{
    font-size:11px;
    line-height:1.7;
    margin-top:3px
  }
  .feedback-symbol .icon{
    width:22px
  }
  .answer-feedback .button{
    flex-basis:100%;
    margin-top:8px;
    padding:12px;
    font-size:12px
  }
  .exercise-reassurance{
    font-size:10px;
    line-height:1.6;
    align-items:flex-start
  }
  .written-answer{
    font-size:17px;
    padding:16px 10px
  }
  .accent-bar{
    gap:6px;
    margin-top:13px
  }
  .accent-bar>span{
    flex-basis:100%;
    margin-bottom:3px
  }
  .accent-bar button{
    font-size:12px;
    padding:5px 8px;
    min-width:29px
  }
  .check-button{
    font-size:12px;
    width:100%
  }
  .sentence-build{
    padding:15px 10px;
    gap:6px;
    min-height:120px
  }
  .sentence-build>span{
    font-size:11px
  }
  .word-token{
    font-size:13px;
    padding:8px 10px
  }
  .token-bank{
    gap:6px;
    margin-top:20px
  }
  .match-columns{
    gap:13px;
    margin-top:24px
  }
  .match-column{
    gap:9px
  }
  .match-tile{
    padding:12px 8px;
    font-size:12px;
    min-height:75px;
    line-height:1.55
  }
  .match-tile .icon{
    width:14px;
    flex-shrink:0
  }
  .match-column>.small{
    font-size:10px
  }
  .match-message{
    font-size:11px;
    line-height:1.8;
    margin-top:20px
  }
  .result-shell{
    margin:20px auto 10px;
    padding-top:10px
  }
  .result-trophy{
    width:90px;
    height:90px;
    margin-bottom:22px
  }
  .result-trophy .icon{
    width:50px
  }
  .result-shell h1{
    font-size:39px
  }
  .result-shell .eyebrow{
    font-size:8px
  }
  .result-shell>p{
    font-size:12px;
    line-height:1.7
  }
  .result-stats{
    padding:22px 8px;
    margin:24px 0
  }
  .result-stats strong{
    font-size:27px;
    gap:4px
  }
  .result-stats strong>.icon{
    width:22px
  }
  .result-stats strong>span{
    font-size:18px
  }
  .result-stats>div>span{
    font-size:9px;
    line-height:1.6
  }
  .review-list{
    padding:20px 16px
  }
  .review-list h2{
    font-size:14px
  }
  .review-list>div{
    flex-direction:column;
    gap:7px;
    font-size:11px
  }
  .review-list>div>span{
    text-align:left
  }
  .result-actions{
    gap:10px
  }
  .result-actions .button{
    flex:1;
    font-size:11px;
    padding:12px 13px
  }
  .result-actions .text-button{
    font-size:11px
  }
  .toast{
    bottom:16px;
    font-size:12px;
    padding:12px 16px
  }
  dialog{
    padding:21px;
    max-width:calc(100% - 24px);
    max-height:92dvh;
    border-radius:12px
  }
  .modal-heading h2{
    font-size:21px
  }
  .modal-lead{
    font-size:12px
  }
  .chapter-meta{
    grid-template-columns:1fr 105px;
    gap:12px
  }
  .chapter-meta input{
    font-size:12px
  }
  .chapter-meta select{
    padding:11px 7px;
    font-size:12px
  }
  .editor-tabs{
    gap:8px
  }
  .editor-tabs .segmented{
    width:auto
  }
  .editor-tabs .segmented button{
    font-size:10px;
    padding:8px 9px
  }
  .editor-tabs .button{
    font-size:10px;
    padding:10px 8px;
    gap:5px
  }
  .editor-help{
    font-size:11px
  }
  .editor-table-scroll{
    max-height:300px
  }
  .modal-actions{
    flex-wrap:wrap;
    gap:8px
  }
  .modal-actions>.danger{
    flex-basis:100%;
    font-size:11px;
    margin-bottom:9px
  }
  .modal-actions>.button{
    font-size:11px;
    padding:11px 12px
  }
  .modal-actions>span{
    display:none
  }
  .modal-actions>.button:first-of-type{
    margin-left:auto
  }
  dialog form>.small{
    text-align:left;
    line-height:1.7
  }
}
@media(max-width:360px){
  main{
    padding-left:14px;
    padding-right:14px
  }
  .header-inner{
    padding-left:14px;
    padding-right:14px
  }
  .brand{
    font-size:20px
  }
  .brand-mark{
    width:33px;
    height:36px;
    font-size:32px
  }
  .brand small{
    font-size:4.5px
  }
  .header-tools{
    gap:8px
  }
  .admin-link>span{
    display:none
  }
  .welcome h1{
    font-size:39px
  }
  .welcome .eyebrow{
    font-size:6px
  }
  .setup-panel{
    padding-left:13px;
    padding-right:13px
  }
  .segmented button{
    padding:8px 9px;
    font-size:10px
  }
  .grade-label select{
    font-size:9px;
    padding:9px 5px
  }
  .summary-count{
    font-size:8px
  }
  .selection-summary{
    font-size:9px
  }
  .chapter-copy strong{
    font-size:12px
  }
  .mode-card{
    padding:14px 11px
  }
  .mode-card>strong{
    font-size:11px
  }
  .mode-card>p{
    font-size:10px
  }
  .direction{
    font-size:7.5px
  }
  .result-actions .button{
    flex-basis:100%
  }
}
@media(max-width:620px){
  .direction-controls{
    flex-direction:column
  }
  .direction{
    font-size:11px;
    min-height:42px;
    padding:11px
  }
  .chapter-copy strong{
    font-size:14px
  }
  .chapter-copy>span{
    font-size:11px
  }
  .mode-card>strong{
    font-size:13px
  }
  .mode-card>p{
    font-size:12px
  }
  .mode-tag{
    font-size:9px;
    line-height:1.6
  }
  .mode-card{
    min-height:205px
  }
  .village-card{
    min-height:0
  }
  .village-card h2{
    max-width:none;
    font-size:26px
  }
  .village-card>p{
    max-width:none;
    font-size:11px
  }
  .village-card>.village-art{
    position:static;
    width:100%;
    max-width:350px;
    margin:0 auto
  }
  .village-card-bottom{
    max-width:none;
    margin-top:0
  }
  .village-card-bottom>span{
    font-size:11px
  }
  .village-card-bottom button{
    height:31px;
    width:31px
  }
  .village-card-heading{
    max-width:none
  }
  .village-card-heading .eyebrow{
    font-size:8px
  }
  .answer-option{
    font-size:15px
  }
  .match-tile{
    font-size:13px
  }
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}
