*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:#FBF6EA;color:#2A2A2A;font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#1F3B2D}a:hover{color:#C8102E}
h1,h2,h3,p{margin:0}
.wrap{max-width:1240px;margin:0 auto;padding-left:32px;padding-right:32px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.only-mobile{display:none!important}
:focus-visible{outline:3px solid #F2D35B;outline-offset:2px}

/* type */
.kicker{font-family:Kalam,cursive;color:#C8102E;font-size:22px}
h2{font-family:Kalam,cursive;font-size:54px;color:#1F3B2D;line-height:1.1;margin-top:4px}
.lede{color:#5B5547;font-size:17px;line-height:1.7}
.section{padding-top:100px}
.section.last{padding-bottom:90px}

/* nav */
.nav-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:22px;padding-bottom:22px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo{width:46px;height:46px;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text b{font-family:Kalam,cursive;font-size:26px;color:#1F3B2D}
.brand-text small{font-family:Kalam,cursive;font-size:14px;color:#6B6355}
.nav-links{display:flex;flex-wrap:wrap;gap:28px;align-items:center;font-weight:500;font-size:15px}
.nav-links a{text-decoration:none}
.pill{background:#1F3B2D;color:#F4F1E8!important;padding:12px 20px;border-radius:999px}
.menu-btn{display:none;width:44px;height:44px;border-radius:12px;border:2px solid #1F3B2D;background:transparent;align-items:center;justify-content:center;cursor:pointer}
.mobile-menu{background:#1F3B2D;padding:16px 24px 26px;display:flex;flex-direction:column;gap:4px;box-shadow:0 16px 30px rgba(0,0,0,.2)}
.mobile-menu[hidden]{display:none}
.mobile-menu a{color:#F4F1E8;text-decoration:none;font-family:Kalam,cursive;font-size:26px;padding:8px 0;border-bottom:1px dashed rgba(244,241,232,.25)}
.mobile-menu .menu-cta{margin-top:14px;text-align:center;background:#F2D35B;color:#1F3B2D;font-family:Inter,sans-serif;font-weight:700;font-size:17px;padding:14px;border-radius:12px;border:none}

/* hero */
.hero-wrap{margin-top:8px}
.board-frame{background:#7A4B24;padding:18px;border-radius:18px;box-shadow:0 18px 40px rgba(60,40,10,.25)}
.board{background:#1F3B2D;border-radius:8px;padding:64px 56px 40px;display:flex;flex-wrap:wrap;gap:40px;align-items:center;overflow:hidden}
.hero-copy{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hero-title{font-family:Kalam,cursive;font-weight:700;color:#F4F1E8;font-size:80px;line-height:1;margin-top:24px;white-space:nowrap}
.struck{position:relative;display:inline-block;color:rgba(244,241,232,.55)}
.strike{position:absolute;left:-6px;right:-6px;top:52%;height:6px;background:#F29BB0;border-radius:4px;transform:rotate(-6deg) scaleX(0);transform-origin:left;animation:strike .6s .3s ease-out forwards}
.khel{position:absolute;left:5px;top:-.96em;font-size:.625em;color:#F2D35B;transform:rotate(-5deg);white-space:nowrap;opacity:0;animation:chalkin .7s .9s ease-out forwards}
@keyframes strike{to{transform:rotate(-6deg) scaleX(1)}}
@keyframes chalkin{from{opacity:0;transform:rotate(-5deg) translateY(8px)}to{opacity:1;transform:rotate(-5deg) translateY(0)}}
.hero-line{font-family:Kalam,cursive;color:#F4F1E8;font-size:26px;line-height:1.3;max-width:560px;margin-top:-12px}
.underline{color:#F2D35B;border-bottom:3px solid #F2D35B}
.cta-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.btn-yellow{text-decoration:none;background:#F2D35B;color:#1F3B2D;font-weight:700;font-size:17px;padding:16px 26px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.btn-yellow:hover{color:#1F3B2D;background:#F7DE79}
.btn-chalk{text-decoration:none;border:2px dashed #F4F1E8;color:#F4F1E8;font-weight:600;font-size:17px;padding:14px 24px;border-radius:12px;text-align:center}
.btn-chalk:hover{color:#F2D35B;border-color:#F2D35B}
.doodles{display:flex;flex-direction:column;align-items:center;gap:10px}
.doodles-desktop{flex:1 1 320px;min-width:0}
.doodles svg{width:100%;max-width:340px;height:auto}
.doodles-mobile{display:none}
.doodle-note{font-family:Kalam,cursive;color:rgba(244,241,232,.7);font-size:20px;transform:rotate(-3deg)}

/* timetable */
.timetable{margin-top:40px;border:2px solid #1F3B2D;border-radius:14px;overflow:hidden;background:#fff;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.period{padding:28px 26px 30px;border-right:2px dashed #D9CFB8;display:flex;flex-direction:column;gap:12px}
.period-top{display:flex;justify-content:space-between;align-items:center;font-family:Kalam,cursive;font-size:18px;color:#6B6355}
.tag{font-family:Inter,sans-serif;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 10px;border-radius:999px;color:#1F3B2D}
.period h3{font-family:Kalam,cursive;font-size:30px;color:#1F3B2D;line-height:1.15}
.period p{color:#4A4538;font-size:15px;line-height:1.6}

/* report card (desktop) */
.split{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start;position:relative}
.split-left{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:18px}
.link-strong{font-weight:600;font-size:16px}
.report{flex:999 1 600px;min-width:0;background:#fff;border-radius:6px;box-shadow:0 10px 30px rgba(60,40,10,.12);background-image:repeating-linear-gradient(#fff 0 43px,#DCE7F2 43px 44px);padding:28px 30px 20px 76px;position:relative}
.margin{position:absolute;left:54px;top:0;bottom:0;width:2px;background:#F0A6A6}
.report table{width:100%;border-collapse:collapse}
.report th{font-family:Kalam,cursive;font-size:19px;color:#1F3B2D;text-align:left;height:44px;font-weight:700}
.report td{height:44px;font-size:15px;color:#4A4538;padding-right:12px}
.report td:first-child{font-weight:700;color:#1F3B2D}
.report .pen{font-family:Kalam,cursive;color:#2B5BA8;font-size:18px}
.report .grade{font-family:Kalam,cursive;font-weight:700;color:#C8102E;font-size:24px}
.stamp{position:absolute;width:118px;height:118px;border:4px solid #C8102E;border-radius:50%;display:flex;align-items:center;justify-content:center;text-align:center;transform:rotate(-14deg);font-family:Kalam,cursive;font-weight:700;color:#C8102E;font-size:18px;line-height:1.1;opacity:.85;left:-42px;top:274px}

/* homework */
.notes{margin-top:40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px}
.note{padding:26px 24px 30px;border-radius:4px;box-shadow:0 8px 18px rgba(60,40,10,.14);display:flex;flex-direction:column;gap:12px;position:relative;transform:rotate(var(--tilt))}
.note::before{content:"";position:absolute;top:-12px;left:50%;width:70px;height:24px;margin-left:-35px;background:rgba(255,255,255,.6);border:1px solid rgba(0,0,0,.06)}
.note .num{font-family:Kalam,cursive;font-weight:700;font-size:52px;color:#1F3B2D;line-height:1}
.note h3{font-family:Kalam,cursive;font-size:26px;color:#1F3B2D}
.note p{font-size:15px;color:#4A4538;line-height:1.6}

/* languages */
.lang-band{background:#1F3B2D;border-radius:18px;padding:44px 48px;display:flex;flex-wrap:wrap;gap:28px;align-items:center;justify-content:space-between}
.lang-title{font-family:Kalam,cursive;color:#F4F1E8;font-size:40px;line-height:1.15;max-width:520px}
.chips{display:flex;flex-wrap:wrap;gap:14px}
.chip{font-family:Kalam,cursive;font-size:26px;color:#1F3B2D;padding:10px 22px;border-radius:999px}
.chip.ghost{color:#F4F1E8;border:2px dashed #F4F1E8;background:transparent;font-size:24px;padding:8px 20px}

/* chat */
.chat{flex:999 1 520px;min-width:0;background:#fff;border:2px solid #1F3B2D;border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.chat-head{background:#1F3B2D;color:#F4F1E8;padding:16px 20px;display:flex;align-items:center;gap:12px}
.chat-avatar{width:40px;height:40px;border-radius:50%;border:2px solid #F4F1E8;display:flex;align-items:center;justify-content:center;flex:none}
.chat-name{font-family:Kalam,cursive;font-weight:700;font-size:22px}
.chat-log{height:380px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:10px;background:#FBF6EA}
.msg{display:flex}
.msg.me{justify-content:flex-end}
.bubble{max-width:78%;padding:12px 16px;font-size:16px;line-height:1.45;background:#fff;color:#2A2A2A;border-radius:18px 18px 18px 4px}
.msg.me .bubble{background:#1F3B2D;color:#F4F1E8;border-radius:18px 18px 4px 18px}
.chat-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.chat-chips button{font:inherit;font-size:14px;padding:8px 14px;border-radius:999px;border:1.5px solid #1F3B2D;background:transparent;color:#1F3B2D;cursor:pointer}
.chat-input{display:flex;gap:10px;padding:14px;border-top:1px solid #D9CFB8;background:#fff;align-items:center}
.chat-input input{flex:1;min-width:0;font:inherit;font-size:16px;padding:14px 16px;border-radius:999px;border:1.5px solid #D9CFB8;background:#fff;color:#2A2A2A}
.chat-input input:disabled{background:#F4F1E8}
.send{width:50px;height:50px;flex:none;border-radius:50%;border:none;background:#1F3B2D;color:#F2D35B;cursor:pointer;display:flex;align-items:center;justify-content:center}
.send:disabled{opacity:.5;cursor:default}
.restart{font:inherit;font-weight:700;font-size:15px;padding:14px 18px;border-radius:999px;border:1.5px solid #1F3B2D;background:transparent;color:#1F3B2D;cursor:pointer;white-space:nowrap}
.restart[hidden],.send[hidden]{display:none}

/* footer */
footer{border-top:2px dashed #D9CFB8}
.foot{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;color:#6B6355;font-size:14px;padding-top:28px;padding-bottom:28px}
.foot b{font-family:Kalam,cursive;font-size:18px;color:#1F3B2D}

/* simple pages */
.page{max-width:760px;margin:0 auto;padding:40px 24px 88px;line-height:1.7;font-size:17px}
.page h1{font-family:Kalam,cursive;font-size:48px;color:#1F3B2D;margin-bottom:12px}
.page h2{font-size:30px;margin-top:28px}

/* ===== MOBILE (from A · Final — Mobile) ===== */
@media (max-width:700px){
  .only-desktop{display:none!important}
  .only-mobile{display:block!important}
  .wrap{padding-left:20px;padding-right:20px}
  .nav{position:sticky;top:0;z-index:20;background:#FBF6EA;border-bottom:1px solid #E9E0CC}
  .nav-row{padding-top:16px;padding-bottom:16px}
  .nav-links{display:none}
  .menu-btn{display:flex}
  .logo{width:40px;height:40px}
  .brand-text b{font-size:22px}.brand-text small{font-size:13px}

  .hero-wrap{padding-left:14px;padding-right:14px;margin-top:16px}
  .board-frame{padding:10px;border-radius:16px}
  .board{padding:52px 22px 28px;flex-direction:column;align-items:stretch;gap:18px}
  .hero-copy{flex:none;gap:18px}
  .hero-title{font-size:58px;margin-top:18px}
  .strike{height:5px;left:-5px;right:-5px}
  .hero-line{font-size:22px;margin-top:-8px}
  .doodles-desktop{display:none}
  .doodles-mobile{display:flex;margin-top:6px}
  .doodles-mobile svg{max-width:230px}
  .doodle-note{font-size:18px}
  .cta-row{flex-direction:column;gap:12px;margin-top:22px}
  .btn-yellow,.btn-chalk{width:100%;padding:16px}

  .section{padding-top:72px}
  .section.last{padding-bottom:56px}
  .kicker{font-size:19px}
  h2{font-size:38px}
  .lede{font-size:16px}

  /* story carousel */
  .story{position:relative;height:300px;margin-top:24px;border-radius:18px;overflow:hidden;border:2px solid #1F3B2D;box-shadow:0 10px 24px rgba(60,40,10,.14);transition:background .3s}
  .story-bars{position:absolute;top:12px;left:14px;right:14px;display:flex;gap:5px;z-index:2}
  .story-bars span{flex:1;height:4px;border-radius:2px;background:rgba(31,59,45,.22)}
  .story-bars span.on{background:#1F3B2D}
  .story-card{position:absolute;inset:0;padding:40px 22px 22px;display:flex;flex-direction:column;gap:10px}
  .story-card .period-top{color:#1F3B2D;font-size:17px}
  .story-card .tag{background:#fff}
  .story-title{font-family:Kalam,cursive;font-size:34px;color:#1F3B2D;line-height:1.1;margin-top:18px}
  .story-body{color:#1F3B2D;font-size:16px;line-height:1.55}
  .story-hint{margin-top:auto;font-size:13px;color:rgba(31,59,45,.7)}
  .story-prev,.story-next{position:absolute;top:0;bottom:0;background:transparent;border:none;cursor:pointer;z-index:3}
  .story-prev{left:0;width:35%}.story-next{right:0;width:65%}

  /* report card carousel */
  .split{gap:14px}
  .split-left{gap:14px}
  .gcar{flex:1 1 100%;min-width:0;width:100%;margin-top:14px}
  .gcar-view{position:relative;width:100%;overflow:hidden;border-radius:8px;box-shadow:0 10px 30px rgba(60,40,10,.14)}
  .gcar-track{display:flex;transition:transform .4s ease}
  .gcard{flex:0 0 100%;background:#fff;background-image:repeating-linear-gradient(#fff 0 39px,#DCE7F2 39px 40px);background-position:0 70px;padding:22px 20px 26px 46px;position:relative;min-height:250px}
  .gcard::before{content:"";position:absolute;left:30px;top:0;bottom:0;width:2px;background:#F0A6A6}
  .gcard-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
  .gcard-pos{font-family:Kalam,cursive;font-size:15px;color:#6B6355;display:block}
  .gcard-name{font-family:Kalam,cursive;font-weight:700;font-size:30px;color:#1F3B2D;line-height:1.1}
  .gcard-grade{width:58px;height:58px;flex:none;border:3px solid #C8102E;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:Kalam,cursive;font-weight:700;font-size:26px;color:#C8102E;transform:rotate(-10deg)}
  .gcard dl{margin:18px 0 0;display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center}
  .gcard dt{font-family:Kalam,cursive;font-weight:700;font-size:16px;color:#1F3B2D;height:40px;display:flex;align-items:center}
  .gcard dd{margin:0;font-size:15px;color:#4A4538;height:40px;display:flex;align-items:center}
  .gcard dd.pen{font-family:Kalam,cursive;font-size:19px;color:#2B5BA8;line-height:1.1}
  .gcard-stamp{position:absolute;right:18px;bottom:14px;font-family:Kalam,cursive;font-weight:700;font-size:14px;color:#C8102E;border:2px solid #C8102E;border-radius:999px;padding:2px 10px;transform:rotate(-6deg);opacity:.8}
  .gcar-pills{display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}
  .gcar-pills button{height:40px;border-radius:999px;border:2px solid #1F3B2D;background:transparent;color:#1F3B2D;padding:0 12px;display:flex;align-items:center;gap:6px;cursor:pointer;font:inherit;font-size:13px;font-weight:600;transition:background .25s}
  .gcar-pills button[aria-selected="true"]{background:#1F3B2D;color:#F2D35B}
  .gcar-pills button span{display:none}
  .gcar-pills button[aria-selected="true"] span{display:inline}

  /* cover carousel */
  .notes{position:relative;height:250px;margin:24px -20px 0;overflow:hidden;display:block}
  .note{position:absolute;top:18px;left:50%;width:236px;margin-left:-118px;height:200px;padding:20px 20px 22px;gap:8px;cursor:pointer;transition:transform .35s ease,opacity .35s ease}
  .note .num{font-size:44px}
  .note h3{font-size:23px;line-height:1.15}
  .note p{line-height:1.5}
  .cover-ctrl{display:flex!important;align-items:center;justify-content:center;gap:18px;margin-top:10px}
  .round{width:44px;height:44px;border-radius:50%;border:2px solid #1F3B2D;background:transparent;color:#1F3B2D;cursor:pointer;display:flex;align-items:center;justify-content:center}
  .round.dark{background:#1F3B2D;color:#F2D35B}
  .dots{display:flex;gap:8px}
  .dots span{width:8px;height:8px;border-radius:4px;background:rgba(31,59,45,.25);transition:width .3s}
  .dots span.on{width:22px;background:#1F3B2D}

  .lang-band{padding:30px 22px;flex-direction:column;align-items:flex-start;gap:20px}
  .lang-title{font-size:30px}
  .chips{gap:10px}
  .chip{font-size:21px;padding:8px 18px}
  .chip.ghost{font-size:20px;padding:6px 16px}

  .chat{flex:1 1 100%;margin-top:8px}
  .chat-log{height:360px;padding:16px}
  .bubble{max-width:82%;font-size:15px;padding:11px 14px}
  .chat-input{gap:8px;padding:12px}
  .chat-input input{padding:13px 14px}
  .send{width:48px;height:48px}

  .foot{flex-direction:column;align-items:center;text-align:center;gap:10px;padding-bottom:32px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .strike{animation:none;transform:rotate(-6deg) scaleX(1)}
  .khel{animation:none;opacity:1}
  .gcar-track,.note,.story{transition:none}
}
