:root{--ink:#153e3a;--deep:#163e3b;--muted:#718883;--paper:#f7f5ed;--white:#fffefa;--green:#2d7957;--line:#e8e5db;--serif:"Manrope",sans-serif;--sans:"DM Sans","Manrope",sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:radial-gradient(ellipse at 11% 15%,#fffdf4 0,transparent 31%),radial-gradient(ellipse at 90% 49%,#f3ede0 0,transparent 30%),var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}.app-shell{max-width:1100px;min-height:100vh;margin:auto;padding:28px 54px 116px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.brand{display:flex;align-items:flex-start;gap:13px;color:inherit;text-decoration:none}.brand-mark{color:#39745a;width:38px;height:44px;margin-top:1px}.brand-mark svg{width:100%;height:100%}.brand-name{display:block;font-family:var(--serif);font-size:31px;line-height:1.05;font-weight:800;letter-spacing:-1.8px;color:#173e3a}.brand-tagline{display:block;margin-top:9px;font-size:12px;line-height:1.35;color:#678078}.header-actions{display:flex;align-items:center;gap:18px}.icon-button,.profile{border:0;background:none;color:var(--ink);cursor:pointer}.icon-button{width:42px;height:42px;position:relative;display:grid;place-items:center}.icon-button svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7;fill:none}.notification i{position:absolute;top:8px;right:7px;width:8px;height:8px;border-radius:100%;background:#f07765;border:2px solid var(--paper)}.profile{display:flex;align-items:center;gap:8px;font:600 12px var(--sans)}.profile span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:linear-gradient(145deg,#ead8bc,#9b7156);color:white;font-weight:700}.profile svg{width:14px;stroke:currentColor;fill:none}.welcome-card{min-height:206px;position:relative;overflow:hidden;border:1px solid #efe9dc;border-radius:26px;background:linear-gradient(104deg,#fbf0e2 0,#f8eee2 46%,#ead8be 100%);display:flex;align-items:center;padding:27px 32px;box-shadow:0 8px 24px #55452a0b}.welcome-copy{position:relative;z-index:2}.eyebrow{display:block;font-size:9px;letter-spacing:1.65px;font-weight:800;color:#83958a}.welcome-copy .eyebrow{font-size:8px;color:#728a7b}.welcome-copy h1{margin:8px 0 5px;font:800 27px var(--serif);letter-spacing:-1px;color:#163e3b}.welcome-copy h1 span{font-size:22px;color:#698453}.welcome-copy p{margin:0;color:#6f877e;font-size:14px;line-height:1.48}.welcome-cta{display:inline-flex;align-items:center;gap:8px;margin-top:17px;color:#2a684e;font-size:11px;font-weight:700;text-decoration:none}.welcome-cta span{font-size:15px}.still-life{position:absolute;right:1%;bottom:0;width:52%;height:100%;overflow:hidden;background:linear-gradient(125deg,transparent 2%,#eedcc5 45%,#e9d4ba 100%);border-radius:0 25px 25px 0}.sun-disc{position:absolute;width:130px;height:130px;right:9%;top:10%;background:#fff5df;border-radius:50%;opacity:.75}.book{position:absolute;bottom:20%;height:27px;width:53%;border-radius:5px 7px 4px 4px;box-shadow:0 7px 9px #71573d21;transform:rotate(-4deg)}.book-back{right:16%;background:linear-gradient(180deg,#396052 0 68%,#ddc7a3 68% 82%,#59725b 82%)}.book-front{right:8%;bottom:11%;background:linear-gradient(180deg,#926c4e 0 72%,#e3d2b7 72% 84%,#644e3f 84%);width:61%;transform:rotate(3deg)}.mug{position:absolute;right:4%;bottom:20%;width:64px;height:62px;border-radius:8px 8px 20px 20px;background:linear-gradient(100deg,#f9f3e6,#fffdf6 60%,#e6d9c4);box-shadow:5px 8px 12px #614e3a2a;text-align:center;padding-top:19px;color:#ab7860}.mug:after{content:"";position:absolute;right:-13px;top:13px;width:18px;height:24px;border:5px solid #efe5d3;border-left:0;border-radius:0 15px 15px 0}.stem{position:absolute;z-index:1;color:#839371}.stem-one{right:28%;top:14%;font-size:30px}.stem-two{right:2%;top:9%;font-size:25px;color:#fffaf0}.sparkle{position:absolute;right:42%;top:26%;color:#d09d52}.streak-card{width:100%;min-height:104px;margin:17px 0 22px;padding:16px 18px;display:flex;align-items:center;gap:14px;text-align:left;color:inherit;border:1px solid #e9e6dc;border-radius:23px;background:#fffefa;box-shadow:0 3px 14px #58492b08;cursor:pointer}.streak-flame{display:grid;place-items:center;flex:none;width:61px;height:61px;border-radius:50%;background:#fff2d9;border:4px solid #f4bb59;color:#ed7046;font-size:27px}.streak-info{display:flex;flex:1;flex-direction:column;min-width:0}.streak-info>b{font-size:15px;font-weight:800}.streak-info>small{margin-top:2px;color:#70847d;font-size:11px}.streak-days{display:flex;gap:7px;margin-top:9px}.streak-days i{font-style:normal;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f2f0eb;color:#83918c;font-size:11px}.streak-days i.done{background:#ffc85f;color:#264840;font-weight:800}.streak-count{display:flex;align-items:center;gap:10px;font:700 13px var(--serif)}.streak-count span{font:400 24px var(--sans)}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.feature-card{position:relative;min-height:146px;overflow:hidden;padding:17px 19px;border-radius:23px;color:var(--ink);text-decoration:none;transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px #25423714}.feature-green{background:#e0eddd}.feature-lilac{background:#eee3f5}.feature-peach{background:#fae4d8}.feature-blue{background:#deedf3}.feature-icon{display:block;font-size:24px;line-height:1;color:#317251;margin-bottom:12px}.feature-lilac .feature-icon{color:#8554a7}.feature-peach .feature-icon{color:#dc735c}.feature-blue .feature-icon{color:#4982a4}.feature-card h2{font:800 18px/1.12 var(--serif);letter-spacing:-.5px;margin:0 0 6px}.feature-card p{margin:0;color:#73877f;font-size:10px}.feature-arrow{position:absolute;right:15px;bottom:15px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#347452;color:white;font-size:16px}.feature-lilac .feature-arrow{background:#9360b2}.feature-peach .feature-arrow{background:#e9785f}.feature-blue .feature-arrow{background:#5692b2}.section-block,.game-section{margin-top:32px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 4px 12px}.section-heading h2{font:800 19px var(--serif);letter-spacing:-.6px;margin:4px 0 0}.section-heading .eyebrow{font-size:8px}.text-link{border:0;background:none;color:#70857e;font:500 11px var(--sans);cursor:pointer}.text-link span{font-size:20px;vertical-align:-1px;margin-left:4px}.phrase-card{position:relative;display:flex;align-items:center;gap:13px;padding:10px 40px 10px 11px;border-radius:21px;background:#fffefa;border:1px solid #ede9df;box-shadow:0 4px 16px #58492b08;min-height:103px}.phrase-art{position:relative;display:flex;flex:none;align-items:center;justify-content:center;width:93px;height:77px;overflow:hidden;border-radius:16px;background:linear-gradient(#a8cbe0 0 45%,#d7e8c1 46% 68%,#829e65 69%)}.phrase-art:before{content:"";position:absolute;left:4px;bottom:13px;width:0;height:0;border-left:42px solid transparent;border-right:38px solid transparent;border-bottom:39px solid #708e83;filter:drop-shadow(38px 4px 0 #879e72)}.phrase-art:after{content:"";position:absolute;bottom:-4px;left:-4px;width:120px;height:28px;background:#849b60;border-radius:50%}.phrase-art span,.phrase-art i{position:absolute;z-index:2;font-style:normal;color:#fff7ce}.phrase-art span{right:12px;top:7px}.phrase-art i:first-of-type{left:12px;bottom:10px;color:#fff}.phrase-art i:last-of-type{right:22px;bottom:15px;color:#f7c987}.phrase-copy{flex:1;min-width:0}.phrase-copy>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.phrase-copy h3{margin:0;font:800 14px var(--serif)}.level{padding:4px 8px;border-radius:12px;background:#dfefdd;color:#427454;font-size:9px;font-weight:700}.phrase-copy p{margin:7px 0 0;color:#80918b;font-size:11px;line-height:1.4}.phrase-copy p b{font-weight:600;color:#738780}.bookmark,.card-open{position:absolute;border:0;background:none;color:#628274;cursor:pointer}.bookmark{right:34px;top:8px;font-size:19px;line-height:1}.bookmark.saved{color:#dc7965}.card-open{right:11px;top:50%;transform:translateY(-50%);font-size:24px}.daily-card{position:relative;display:flex;align-items:center;gap:13px;overflow:hidden;margin-top:20px;padding:15px 39px 15px 16px;border-radius:21px;background:linear-gradient(110deg,#e9dcf2,#f1e5f2)}.daily-icon{width:43px;height:43px;display:grid;place-items:center;flex:none;border-radius:50%;background:#d8c1e5;color:white;font-size:25px}.daily-card .eyebrow{font-size:8px;color:#8d73a0}.daily-card h2{margin:4px 0 2px;font:800 15px var(--serif)}.daily-card p{margin:0;color:#758188;font-size:10px}.daily-doodle{position:absolute;right:53px;top:11px;font:36px cursive;color:#a166ac;transform:rotate(13deg)}.daily-doodle small{font:12px var(--sans);position:absolute;right:-8px;top:0}.daily-open{position:absolute;right:11px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--ink);font-size:25px;cursor:pointer}.coming-label{padding:6px 9px;border-radius:12px;background:#f2e4c9;color:#9c7740;font-size:8px;font-weight:800;letter-spacing:.8px}.game-card{width:100%;position:relative;overflow:hidden;min-height:120px;display:flex;align-items:center;gap:15px;padding:18px;border:1px solid #e6d9ed;border-radius:23px;background:linear-gradient(105deg,#eee3f4,#e1eaf4);text-align:left;color:var(--ink);cursor:pointer}.game-emoji{z-index:1;display:grid;place-items:center;flex:none;width:59px;height:59px;border-radius:19px;background:#fff9f3;font-size:29px;box-shadow:0 5px 13px #60497b14}.game-copy{position:relative;z-index:1;display:flex;flex-direction:column;gap:5px}.game-copy strong{font:800 16px var(--serif)}.game-copy small{font-size:10px;color:#72867f;line-height:1.45}.game-placeholder{align-self:flex-start;margin-top:2px;padding:4px 8px;border-radius:10px;background:#ffffffa8;color:#85629a;font-size:8px;font-weight:700}.game-arrow{z-index:1;margin-left:auto;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#9360b2;color:white}.game-orbit{position:absolute;width:140px;height:140px;border:1px solid #fff9;border-radius:50%;right:23%;top:-76px}.orbit-b{width:180px;height:180px;right:16%;top:-91px}.page-end{text-align:center;margin-top:32px;color:#83958a;font-size:11px}.page-end span{color:#65916f}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1100px);display:flex;align-items:center;justify-content:space-around;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border:1px solid #eeece5;border-bottom:0;border-radius:22px 22px 0 0;background:#fffefaf2;backdrop-filter:blur(14px);box-shadow:0 -6px 24px #3546300b}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;border:0;background:none;color:#8b9d99;font-family:var(--sans);cursor:pointer}.nav-item>span{font-size:23px;line-height:1.1}.nav-item small{font-size:8px;font-weight:600}.nav-item.active{color:#337654}.toast{position:fixed;z-index:20;left:50%;bottom:95px;transform:translate(-50%,12px);padding:11px 16px;border-radius:14px;background:#193f3b;color:#fff;font-size:12px;box-shadow:0 8px 25px #173d3a25;opacity:0;pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}.detail-dialog{width:min(90vw,430px);padding:28px;border:1px solid #e9e5d9;border-radius:24px;background:#fffefa;color:var(--ink);box-shadow:0 18px 70px #153e3a2b}.detail-dialog::backdrop{background:#183c3970;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:17px;top:14px;border:0;background:#f3f0e9;width:31px;height:31px;border-radius:50%;font-size:21px;color:#527169;cursor:pointer}.detail-dialog h2{margin:9px 0;font:800 24px var(--serif)}.dialog-meaning{color:#607c71;line-height:1.6}.example-box{margin:18px 0;padding:14px;border-radius:15px;background:#f3f5e9;font-size:13px}.example-box p{margin:7px 0 0;line-height:1.5;color:#63796e}.save-button{width:100%;border:0;border-radius:14px;padding:13px;background:#397858;color:white;font:700 13px var(--sans);cursor:pointer}
@media(min-width:760px){.app-shell{padding-top:34px}.topbar{margin-bottom:34px}.brand-name{font-size:38px}.brand-tagline{font-size:14px}.welcome-card{min-height:235px;padding-left:42px}.welcome-copy h1{font-size:32px}.welcome-copy p{font-size:16px}.still-life{width:50%}.streak-card{padding:19px 24px}.feature-grid{gap:18px}.feature-card{min-height:175px;padding:21px 24px}.feature-icon{font-size:27px}.feature-card h2{font-size:21px}.feature-card p{font-size:12px}.section-block,.game-section{margin-top:39px}.phrase-card{min-height:115px}.phrase-art{width:115px;height:89px}.phrase-copy h3{font-size:16px}.phrase-copy p{font-size:12px}.daily-card{padding:18px 42px 18px 20px}.bottom-nav{border-radius:24px 24px 0 0}.nav-item>span{font-size:25px}.nav-item small{font-size:10px}}
@media(max-width:480px){.app-shell{padding:18px 18px 106px}.topbar{margin-bottom:17px}.brand{gap:9px}.brand-mark{width:29px;height:35px}.brand-name{font-size:25px}.brand-tagline{font-size:10px;margin-top:5px}.header-actions{gap:8px}.profile b{display:none}.profile span{width:31px;height:31px}.welcome-card{min-height:172px;padding:21px 17px;border-radius:21px}.welcome-copy .eyebrow{font-size:6px;letter-spacing:1.1px}.welcome-copy h1{font-size:21px;margin-top:9px}.welcome-copy h1 span{font-size:18px}.welcome-copy p{font-size:11px}.welcome-cta{font-size:9px;margin-top:12px}.still-life{width:44%;opacity:.85}.sun-disc{width:90px;height:90px}.book{width:60%;height:20px;bottom:21%}.book-front{height:18px;bottom:13%}.mug{width:42px;height:43px;font-size:12px;padding-top:12px;right:2%;bottom:21%}.mug:after{right:-9px;top:10px;width:13px;height:17px;border-width:4px}.stem-one{right:29%;font-size:22px}.stem-two{font-size:19px}.streak-card{min-height:86px;padding:12px;gap:10px;margin:13px 0 17px;border-radius:19px}.streak-flame{width:48px;height:48px;font-size:21px;border-width:3px}.streak-info>b{font-size:12px}.streak-info>small{font-size:9px}.streak-days{gap:4px;margin-top:7px}.streak-days i{width:18px;height:18px;font-size:9px}.streak-count{gap:4px;font-size:11px}.streak-count span{font-size:20px}.feature-grid{gap:10px}.feature-card{min-height:132px;padding:14px 13px;border-radius:19px}.feature-icon{font-size:21px;margin-bottom:9px}.feature-card h2{font-size:15px}.feature-card p{font-size:8px;max-width:120px}.feature-arrow{right:10px;bottom:10px;width:25px;height:25px;font-size:14px}.section-block,.game-section{margin-top:26px}.section-heading h2{font-size:17px}.section-heading .eyebrow{font-size:7px}.text-link{font-size:9px}.phrase-card{gap:9px;min-height:89px;padding:8px 32px 8px 8px;border-radius:17px}.phrase-art{width:69px;height:67px;border-radius:12px}.phrase-art:before{border-left-width:32px;border-right-width:28px;border-bottom-width:30px}.phrase-copy h3{font-size:11px}.phrase-copy>div{gap:5px}.level{font-size:7px;padding:3px 6px}.phrase-copy p{font-size:9px;margin-top:5px}.bookmark{right:29px;font-size:17px}.card-open{right:8px;font-size:21px}.daily-card{margin-top:14px;gap:10px;padding:12px 34px 12px 12px;border-radius:17px}.daily-icon{width:35px;height:35px;font-size:20px}.daily-card h2{font-size:12px}.daily-card p{font-size:9px}.daily-doodle{font-size:27px;right:40px}.coming-label{font-size:7px;padding:5px 7px}.game-card{min-height:108px;padding:13px;gap:10px;border-radius:19px}.game-emoji{width:48px;height:48px;font-size:24px;border-radius:15px}.game-copy strong{font-size:13px}.game-copy small{font-size:9px}.game-placeholder{font-size:7px}.game-arrow{width:27px;height:27px;font-size:12px}.bottom-nav{padding-left:5px;padding-right:5px;border-radius:18px 18px 0 0}.nav-item>span{font-size:21px}.nav-item small{font-size:7px}.page-end{font-size:9px}}
@media(max-width:355px){.app-shell{padding-left:13px;padding-right:13px}.streak-card{gap:7px}.streak-flame{width:42px;height:42px}.streak-days{gap:3px}.streak-days i{width:16px;height:16px}.feature-card{padding:12px 10px}.feature-card h2{font-size:14px}.feature-card p{font-size:7px}.phrase-art{width:57px}.phrase-copy h3{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Responsive layout and a single typeface with full Kazakh Cyrillic coverage. */
:root{--serif:"Noto Sans",sans-serif;--sans:"Noto Sans",sans-serif}
body{font-family:var(--sans)}
.bottom-nav{left:50%;bottom:16px;width:min(100% - 32px,520px);padding:12px 20px calc(12px + env(safe-area-inset-bottom));border:1px solid #eeece5;border-radius:22px;box-shadow:0 5px 26px #35463018}
.app-shell{max-width:1320px;padding-left:clamp(20px,5vw,72px);padding-right:clamp(20px,5vw,72px);padding-bottom:120px}
.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:760px){
  .app-shell{padding-bottom:130px}
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature-card{min-height:190px}
  .bottom-nav{bottom:20px}
  .nav-item{gap:4px}
  .nav-item small{font-size:11px}
}
@media(min-width:1050px){
  .app-shell{max-width:1440px;padding-left:clamp(56px,7vw,100px);padding-right:clamp(56px,7vw,100px)}
  .topbar{margin-bottom:38px}
  .welcome-card{min-height:270px;padding-left:48px}
  .welcome-copy h1{font-size:36px}
  .welcome-copy p{font-size:17px}
  .feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .feature-card{min-height:185px;padding:24px}
  .feature-card h2{font-size:22px}
  .section-block,.game-section{margin-top:42px}
  .phrase-art{width:130px;height:96px}
  .phrase-card{min-height:124px}
}
@media(max-width:600px){
  .bottom-nav{left:12px;bottom:0;transform:none;width:calc(100% - 24px);padding:10px 8px calc(10px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0}
  .app-shell{padding-bottom:110px}
  .feature-card{min-width:0}
}
@media(max-width:360px){
  .app-shell{padding-left:12px;padding-right:12px}
  .feature-grid{gap:8px}
  .feature-card{padding:12px 10px}
  .feature-card h2{font-size:14px}
}

/* Quiz experience */
.game-section .section-heading h2{max-width:600px}
.game-card{min-height:152px;padding:16px 22px}
.game-cover{z-index:1;width:94px;height:112px;flex:none;object-fit:cover;border-radius:17px;box-shadow:0 5px 14px #25423720}
.game-copy{gap:7px}
.game-copy strong{font-size:17px}
.game-copy small{font-size:11px}
.game-placeholder{font-size:9px;color:#397858;background:#ffffffcf}
.quiz-dialog{width:min(760px,calc(100vw - 28px));max-width:none;max-height:min(90dvh,900px);margin:auto;padding:0;border:1px solid #e9e5d9;border-radius:28px;background:#fffefa;color:var(--ink);box-shadow:0 24px 90px #153e3a35;overflow:auto}
.quiz-dialog::backdrop{background:#153e3aad;backdrop-filter:blur(5px)}
.quiz-shell{position:relative;min-height:360px;padding:clamp(22px,4vw,38px)}
.quiz-close{position:absolute;z-index:2;right:20px;top:18px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:#f3f0e9;color:#527169;font-size:25px;cursor:pointer}
.quiz-intro{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:clamp(22px,4vw,38px);padding-top:6px}
.quiz-intro-image{width:100%;height:360px;object-fit:cover;border-radius:22px}
.quiz-intro-copy{padding:10px 8px 10px 0}
.quiz-intro-copy .eyebrow,.quiz-question-copy>.eyebrow,.quiz-result>.eyebrow{font-size:9px;letter-spacing:1.5px;color:#6b8b78}
.quiz-intro h1,.quiz-question-copy h1,.quiz-result h1{font-size:clamp(23px,3vw,32px);line-height:1.2;letter-spacing:-.7px;margin:11px 0 10px;color:#183f3a}
.quiz-intro-copy>p,.quiz-result>p{font-size:14px;line-height:1.65;color:#71847c;margin:0}
.quiz-facts{display:flex;flex-wrap:wrap;gap:8px;margin:19px 0 23px}
.quiz-facts span{padding:7px 10px;border-radius:20px;background:#f1f4ea;color:#567765;font-size:10px;font-weight:700}
.quiz-primary{min-height:47px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 22px;border:0;border-radius:16px;background:#397858;color:white;font:700 14px var(--sans);cursor:pointer;box-shadow:0 5px 14px #39785829;transition:transform .15s,background .15s}
.quiz-primary:hover{transform:translateY(-1px);background:#2e694e}
.quiz-primary span{font-size:19px;line-height:1}
.quiz-topline{display:flex;align-items:center;justify-content:space-between;padding-right:45px;margin:2px 0 11px}
.quiz-count{font-size:10px;letter-spacing:1.2px;font-weight:800;color:#718780}
.quiz-score{display:flex;align-items:center;gap:5px;color:#a67b32;font-weight:800;font-size:13px}
.quiz-progress{height:7px;overflow:hidden;border-radius:10px;background:#eff0e8;margin-bottom:23px}
.quiz-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#55936e,#8bb889);transition:width .3s}
.quiz-question-image{display:block;width:100%;height:clamp(180px,35vh,310px);object-fit:cover;border-radius:21px;margin:0 0 21px;background:#edf1e8}
.quiz-question-copy h1{margin:8px 0 17px;font-size:clamp(21px,2.8vw,28px)}
.quiz-options{display:grid;grid-template-columns:1fr;gap:10px}
.quiz-option{width:100%;min-height:58px;display:flex;align-items:center;gap:13px;padding:11px 15px;border:1px solid #e4e8de;border-radius:16px;background:#fffefa;color:#234640;text-align:left;font:600 14px/1.48 var(--sans);cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.quiz-option:hover:not(:disabled){transform:translateY(-1px);border-color:#92b29a;background:#f8faf5}
.quiz-option:disabled{cursor:default}
.option-letter{width:29px;height:29px;display:grid;place-items:center;flex:none;border-radius:10px;background:#f0f3e9;color:#5b7e65;font-size:11px;font-weight:800}
.quiz-option.correct{border-color:#9ac9a3;background:#edf7ed;color:#28633e}
.quiz-option.correct .option-letter{background:#4c9b63;color:white}
.quiz-option.incorrect{border-color:#e4aaaa;background:#fff1ef;color:#994b43}
.quiz-option.incorrect .option-letter{background:#d7796b;color:white}
.quiz-feedback{display:none;margin-top:14px;padding:13px 15px;border-radius:15px;line-height:1.55}
.quiz-feedback.visible{display:flex;flex-direction:column;gap:4px}
.quiz-feedback strong{font-size:13px}
.quiz-feedback span{font-size:12px}
.quiz-feedback.is-correct{background:#edf7ed;color:#326443}
.quiz-feedback.is-incorrect{background:#fff2ed;color:#875149}
.quiz-next{margin:17px 0 0 auto;min-width:185px}
.quiz-primary[hidden]{display:none}
.quiz-result{text-align:center;padding:15px 0 5px}
.result-medal{width:76px;height:76px;display:grid;place-items:center;margin:19px auto 12px;border-radius:50%;background:#f7edce;color:#c39a48;font-size:37px;box-shadow:inset 0 0 0 7px #fff9e9}
.quiz-result h1{margin:6px 0}
.result-score{width:min(260px,100%);margin:20px auto 0;padding:15px;border-radius:18px;background:#f2f5ec;display:flex;flex-direction:column;gap:3px;color:#2f6d4d}
.result-score strong{font-size:31px}
.result-score strong small{font-size:16px;color:#83958a}
.result-score>span{font-size:9px;letter-spacing:1px;font-weight:800;color:#7d9184}
.quiz-review{margin:23px auto;max-width:580px;text-align:left}
.quiz-review h2{font-size:15px;margin:0 0 8px}
.quiz-review p{display:flex;flex-direction:column;gap:3px;margin:0;padding:10px 12px;border-top:1px solid #e9ece3;line-height:1.5}
.quiz-review p b{font-size:12px;color:#295946}
.quiz-review p span{font-size:11px;color:#788a81}
.quiz-result .quiz-primary{margin:18px auto 0;min-width:190px}
.letter-hint{margin:0 0 15px;padding:11px 13px;border-radius:13px;background:#f4f5ed;color:#6c8176;font-size:12px;line-height:1.55}
.letter-hint b{color:#365f4a}
.letter-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:16px auto 13px}
.letter-slot{width:38px;height:43px;display:grid;place-items:center;border:1px solid #d9e1d5;border-bottom-width:3px;border-radius:10px;background:#f6f7f1;color:#214b3f;font:800 17px var(--sans);cursor:pointer}
.letter-slot.filled{border-color:#8eb29a;background:#eff6ec}
.letter-tiles{display:grid;grid-template-columns:repeat(6,minmax(34px,1fr));gap:8px;max-width:460px;margin:0 auto}
.letter-tile{height:47px;border:1px solid #e0e3db;border-radius:12px;background:#fffefa;color:#24493f;font:800 17px var(--sans);cursor:pointer;box-shadow:0 2px 0 #e6e9e0;transition:transform .12s,background .12s}
.letter-tile:hover:not(:disabled){transform:translateY(-2px);background:#eff5eb}
.letter-tile.used{visibility:hidden}
.letter-actions{display:flex;justify-content:space-between;gap:12px;margin-top:17px}
.letter-actions .quiz-primary{min-width:148px}
.quiz-secondary{min-height:47px;padding:0 17px;border:0;border-radius:15px;background:#f1f2ea;color:#567666;font:700 12px var(--sans);cursor:pointer}
.letter-feedback{display:none;margin-top:13px;padding:12px 14px;border-radius:14px;line-height:1.5}
.letter-feedback.visible{display:flex;flex-direction:column;gap:4px}
.letter-feedback b{font-size:13px}
.letter-feedback span{font-size:12px}
.letter-feedback.is-correct{background:#edf7ed;color:#326443}
.letter-feedback.is-incorrect{background:#fff2ed;color:#875149}
.match-instructions{margin:0 0 16px;color:#72857b;font-size:12px;line-height:1.5}
.match-columns{display:grid;grid-template-columns:1fr 1.1fr;gap:18px}
.match-columns section{display:flex;flex-direction:column;gap:9px;min-width:0}
.match-columns h2{margin:0 0 2px;padding:9px 11px;border-radius:12px;background:#edf3e9;color:#4b7059;font-size:11px;letter-spacing:.2px}
.match-columns section:first-child h2{background:#f0eaf6;color:#77608c}
.match-card{width:100%;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;border:1px solid #e7e4ed;border-radius:14px;background:#fbf9fd;color:#2f4650;text-align:left;font:600 11px/1.45 var(--sans);cursor:pointer;transition:background .15s,border-color .15s}
.match-card span{width:21px;height:21px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e9e3f1;color:#9278ab;font-size:12px}
.meaning-card{border-color:#e2e9df;background:#f9fbf6;color:#526f61;font-weight:500}
.meaning-card span{background:#e6efe3;color:#729077}
.match-card.selected{border-color:#8c70a4;background:#f3edf8;box-shadow:0 0 0 2px #8c70a41a}
.meaning-card.selected{border-color:#559170;background:#eef6ec;box-shadow:0 0 0 2px #5591701a}
.match-card.matched{border-color:#a7cbae;background:#eef7ed;color:#42764e;cursor:default}
.match-card.matched span{background:#4b9561;color:white}
.match-card:disabled{opacity:1}
@media(max-width:600px){
  .letter-slots{gap:5px;margin:13px auto 11px}
  .letter-slot{width:32px;height:38px;border-radius:8px;font-size:15px}
  .letter-tiles{grid-template-columns:repeat(5,minmax(38px,1fr));gap:7px}
  .letter-tile{height:43px;font-size:16px}
  .letter-actions{margin-top:14px}
  .letter-actions .quiz-primary{min-width:130px}
  .quiz-secondary{min-height:43px;padding:0 11px;font-size:11px}
  .match-columns{grid-template-columns:.9fr 1.1fr;gap:7px}
  .match-columns section{gap:7px}
  .match-columns h2{padding:8px 7px;text-align:center;font-size:9px}
  .match-card{min-height:56px;padding:8px 7px;gap:5px;border-radius:11px;font-size:9px;line-height:1.4}
  .match-card span{width:17px;height:17px;font-size:10px}
  .match-instructions{font-size:11px;margin-bottom:12px}
}

/* Phrase library */
.phrase-library{margin:4px 0 32px}
.library-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 2px 17px}
.library-intro .eyebrow{font-size:9px;letter-spacing:1.55px}
.library-intro h1{margin:6px 0 5px;font-size:clamp(25px,3vw,35px);line-height:1.15;letter-spacing:-.8px;color:#193f3a}
.library-intro p{margin:0;color:#73877f;font-size:13px;line-height:1.5}
.library-total{flex:none;margin-bottom:2px;padding:8px 12px;border:1px solid #dfe9dc;border-radius:18px;background:#f0f5eb;color:#4f755a;font-size:11px;font-weight:800}
.phrase-search{height:50px;display:flex;align-items:center;gap:10px;margin:0 0 15px;padding:0 14px;border:1px solid #e5e8df;border-radius:16px;background:#fffefa;box-shadow:0 3px 12px #344a3710;color:#688072}
.phrase-search>span{font-size:25px;line-height:1}
.phrase-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#244b41;font:500 13px var(--sans)}
.phrase-search input::placeholder{color:#9aa9a1}
.phrase-search input::-webkit-search-cancel-button{cursor:pointer}
.phrase-search kbd{display:grid;place-items:center;flex:none;width:23px;height:23px;border:1px solid #e4e8e0;border-radius:6px;color:#819188;background:#f7f8f3;font:600 12px var(--sans)}
.phrase-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.phrase-entry{min-width:0;min-height:88px;display:flex;align-items:flex-start;gap:13px;padding:14px 15px;border:1px solid #e7e9e1;border-radius:17px;background:#fffefa;box-shadow:0 2px 10px #3d4f3510}
.phrase-index{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:10px;background:#edf3e8;color:#638069;font-size:10px;font-weight:800}
.phrase-entry-copy{min-width:0;padding-top:1px}
.phrase-entry h2{margin:0;color:#20473d;font-size:13px;line-height:1.45;font-weight:800;letter-spacing:-.1px}
.phrase-entry p{margin:5px 0 0;color:#75867f;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.phrase-empty{padding:22px;text-align:center;color:#71847c;border:1px dashed #dfe4da;border-radius:16px;background:#fafbf7;font-size:13px}
@media(min-width:1050px){
  .phrase-library{margin-top:0;margin-bottom:42px}
  .library-intro{margin-bottom:20px}
  .phrase-list{gap:12px}
  .phrase-entry{min-height:96px;padding:16px 18px}
  .phrase-entry h2{font-size:14px}
  .phrase-entry p{font-size:12px}
}
@media(max-width:600px){
  .phrase-library{margin-top:0;margin-bottom:26px}
  .library-intro{margin:0 1px 13px;gap:10px}
  .library-intro .eyebrow{font-size:8px}
  .library-intro h1{font-size:23px;margin:5px 0}
  .library-intro p{font-size:11px}
  .library-total{padding:7px 9px;font-size:9px}
  .phrase-search{height:45px;margin-bottom:11px;padding:0 11px;border-radius:14px}
  .phrase-search input{font-size:11px}
  .phrase-search kbd{display:none}
  .phrase-list{grid-template-columns:1fr;gap:8px}
  .phrase-entry{min-height:0;gap:10px;padding:11px 12px;border-radius:14px}
  .phrase-index{width:27px;height:27px;border-radius:9px;font-size:9px}
  .phrase-entry h2{font-size:12px}
  .phrase-entry p{font-size:10px;margin-top:3px;line-height:1.5}
}

/* Homepage inspired by the supplied reference screens. */
:root{--serif:"Noto Serif",serif;--sans:"Noto Sans",sans-serif}
body{position:relative;background:radial-gradient(ellipse at 2% 70%,#e4edf0a6 0,transparent 25%),radial-gradient(ellipse at 98% 64%,#f4e5c9a6 0,transparent 25%),#f8f5ec}
body::before{content:"";position:fixed;inset:70px 0 0;z-index:0;pointer-events:none;opacity:.46;background-image:linear-gradient(90deg,#e8dfd12b 1px,transparent 1px),linear-gradient(#e8dfd12b 1px,transparent 1px),radial-gradient(circle at 16px 16px,#e8dfd17a 1.4px,transparent 2px);background-size:38px 38px,38px 38px,38px 38px}
.app-shell{position:relative;z-index:1;max-width:1440px;padding:0 clamp(20px,4.5vw,70px) 92px}
.topbar{position:relative;left:50%;width:100vw;min-height:70px;transform:translateX(-50%);margin:0;padding:0 clamp(22px,4vw,68px);background:#fffdfaeb;border-bottom:1px solid #eeece5;z-index:20}
.brand{align-items:center;gap:11px}
.brand-mark{width:48px;height:48px;margin:0;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#39917d,#24675d);box-shadow:0 5px 12px #2874672e;color:white;font:700 25px var(--serif)}
.brand-text{display:flex;flex-direction:column;gap:0}
.brand-name{font:700 22px/1.1 var(--serif);letter-spacing:-.4px;color:#1d2938}
.brand-tagline{margin:2px 0 0;font-size:9px;font-weight:700;letter-spacing:.7px;color:#819098}
.primary-nav{display:flex;align-items:center;gap:9px}
.primary-link{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;text-decoration:none;color:#53606d;font-size:13px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.primary-link:hover,.primary-link.active{background:#edf6f2;color:#285e55}
main{max-width:1280px;margin:0 auto}
.hero{position:relative;isolation:isolate;min-height:445px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0 -10px 28px;padding:58px 28px 44px;text-align:center}
.hero::before{content:"";position:absolute;inset:0;z-index:-2;opacity:.55;background-image:linear-gradient(90deg,#e2d7c61e 1px,transparent 1px),linear-gradient(#e2d7c61e 1px,transparent 1px),radial-gradient(circle at 20px 20px,#e3d9c86b 1px,transparent 1.5px);background-size:38px 38px}
.hero-copy{position:relative;z-index:2;width:min(820px,100%)}
.hero-badge{display:inline-flex;align-items:center;padding:9px 17px;border-radius:22px;background:#efe1b9;color:#8a682e;font-size:13px;font-weight:700}
.hero-copy h1{margin:22px 0 12px;color:#1d293a;font:800 clamp(54px,7vw,82px)/1.05 var(--serif);letter-spacing:-3px}
.hero-subtitle{margin:0;color:#7d8278;font:italic 500 clamp(16px,2vw,22px)/1.5 var(--serif)}
.hero-description{max-width:740px;margin:25px auto 0;color:#495d58;font-size:16px;line-height:1.75}
.hero-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:29px}
.hero-button{min-height:54px;display:inline-flex;align-items:center;justify-content:center;padding:0 22px;border:1px solid #d9cfb5;border-radius:14px;background:#fffdf6;color:#4a5c56;text-decoration:none;font:600 14px var(--sans);cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}
.hero-button:hover{transform:translateY(-2px);box-shadow:0 8px 18px #354a3718}
.hero-button.primary{border-color:#307968;background:#307968;color:white;box-shadow:0 7px 15px #30796835}
.hero-art{position:absolute;z-index:-1;inset:0;overflow:hidden;opacity:.45;pointer-events:none}
.hero-sun{position:absolute;right:7%;top:28%;width:180px;height:180px;border-radius:50%;background:#f8e8c5a1;filter:blur(1px)}
.hero-mountain{position:absolute;bottom:-2px;width:70%;height:130px;clip-path:polygon(0 100%,0 79%,14% 63%,23% 74%,38% 33%,54% 67%,67% 50%,80% 79%,90% 58%,100% 78%,100% 100%)}
.mountain-back{left:-8%;background:#dce8e8}
.mountain-front{right:-8%;height:160px;background:#ecdcbf;transform:scaleX(-1)}
.hero-line{position:absolute;width:440px;height:1px;background:#dac89f;transform:rotate(-32deg);right:-100px;bottom:130px}
.line-two{right:-155px;bottom:95px;width:500px}
.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 48px}
.stat-card{min-height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #f0ede6;border-radius:22px;background:#fffdfaeb;box-shadow:0 4px 15px #3444340b}
.stat-card strong{font:700 38px/1.1 var(--serif);color:#367b69}
.stat-card span{color:#7b8795;font-size:13px;letter-spacing:.55px;text-align:center}
.stat-score strong{color:#ad792c}
.featured-phrase{position:relative;max-width:1158px;margin:0 auto 42px;padding:clamp(27px,4vw,48px) clamp(22px,4vw,58px) 0;overflow:hidden;border-radius:30px;background:linear-gradient(125deg,#1d293c,#15263a 68%,#1d3343);color:#f9f7f1;box-shadow:0 18px 48px #16263b26;scroll-margin-top:90px}
.featured-top{display:flex;align-items:center;justify-content:space-between;gap:15px}
.featured-label{display:flex;align-items:center;gap:9px;color:#89cabb;font-size:13px;font-weight:700}
.featured-label>span{font:700 24px var(--serif)}
.featured-count{color:#aebdc8;font-size:12px;font-weight:600}
.featured-phrase h2{margin:17px 0 12px;color:#fffdf7;font:700 clamp(27px,4vw,38px)/1.2 var(--serif);letter-spacing:-.6px}
.featured-meaning{max-width:960px;margin:0;color:#d8e0e8;font-size:15px;line-height:1.75}
.featured-example{margin:18px 0 20px;padding:17px 20px;border:1px solid #ffffff21;border-radius:15px;background:#ffffff0b}
.featured-example>span{display:block;margin-bottom:5px;color:#a2d5c8;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.featured-example p{margin:0;color:#e4e8ee;font:italic 14px/1.6 var(--serif)}
.featured-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 0 22px}
.featured-footer>a{color:#8bd2c1;text-decoration:none;font-size:13px;font-weight:700}
.featured-footer>a span{padding-left:5px;font-size:18px}
.phrase-pager{display:flex;align-items:center;gap:12px;color:#b5c4cd;font-size:12px;font-weight:700}
.phrase-pager button{width:37px;height:37px;display:grid;place-items:center;border:1px solid #ffffff30;border-radius:50%;background:#ffffff0c;color:white;font:500 20px var(--sans);cursor:pointer;transition:background .15s,border-color .15s}
.phrase-pager button:hover{border-color:#89cabb;background:#3c7e7180}
.featured-progress{height:3px;margin:0 calc(clamp(22px,4vw,58px)*-1);background:#ffffff14}
.featured-progress span{display:block;width:0;height:100%;background:#85c9b8;transition:width .3s}
.section-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0 0 40px;scroll-margin-top:90px}
.section-card{min-height:235px;display:flex;flex-direction:column;align-items:flex-start;padding:30px 32px;border:1px solid #f0ede5;border-radius:23px;background:#fffdfaeb;box-shadow:0 3px 14px #3747350c;color:inherit;text-align:left;text-decoration:none;font-family:var(--sans);cursor:pointer;transition:transform .2s,box-shadow .2s}
.section-card:hover{transform:translateY(-3px);box-shadow:0 13px 26px #334a3718}
.section-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#388b77,#286c60);box-shadow:0 5px 12px #246f5e2e;color:white;font-size:27px}
.quiz-section-card .section-icon{background:linear-gradient(145deg,#3a8766,#2b664f)}
.section-card h2{margin:20px 0 10px;color:#253041;font-size:20px;line-height:1.35;font-weight:800}
.section-card p{margin:0;color:#768497;font-size:14px;line-height:1.65}
.section-cta{margin-top:auto;padding-top:18px;color:#344a43;font-size:14px;font-weight:700}
.about-footer{display:flex;align-items:center;gap:18px;padding:21px 5px 0;border-top:1px solid #e9e5da;scroll-margin-top:90px}
.about-footer .brand-name{flex:none}
.about-footer p{margin:0;color:#809087;font-size:12px;line-height:1.5}
.bottom-nav{display:none}
@media(max-width:760px){
  .topbar{min-height:62px;padding:0 18px}
  .brand-mark{width:40px;height:40px;border-radius:12px;font-size:22px}
  .brand-name{font-size:19px}
  .brand-tagline{font-size:8px}
  .primary-nav{display:none}
  .app-shell{padding:0 17px 96px}
  .hero{min-height:420px;margin:0 -17px 20px;padding:48px 20px 39px}
  .hero-copy h1{margin:19px 0 10px;font-size:58px;letter-spacing:-2.5px}
  .hero-subtitle{font-size:17px}
  .hero-description{margin-top:18px;font-size:13px;line-height:1.65}
  .hero-actions{gap:9px;margin-top:21px}
  .hero-button{min-height:47px;padding:0 13px;border-radius:12px;font-size:11px}
  .hero-sun{right:-30px;top:20%;width:140px;height:140px}
  .dashboard-stats{gap:9px;margin-bottom:27px}
  .stat-card{min-height:87px;padding:8px 4px;border-radius:16px}
  .stat-card strong{font-size:27px}
  .stat-card span{font-size:8px;line-height:1.35;letter-spacing:.25px}
  .featured-phrase{margin-bottom:27px;padding:23px 18px 0;border-radius:22px}
  .featured-label{font-size:11px}
  .featured-count{font-size:10px}
  .featured-phrase h2{margin:14px 0 9px;font-size:27px}
  .featured-meaning{font-size:12px;line-height:1.65}
  .featured-example{margin:14px 0 16px;padding:12px 13px;border-radius:12px}
  .featured-example p{font-size:12px}
  .featured-footer{align-items:flex-start;flex-direction:column;gap:14px;padding-bottom:17px}
  .featured-footer>a{font-size:11px}
  .phrase-pager{align-self:flex-end;gap:10px}
  .phrase-pager button{width:34px;height:34px}
  .featured-progress{margin-right:-18px;margin-left:-18px}
  .section-cards{grid-template-columns:1fr;gap:12px;margin-bottom:28px}
  .section-card{min-height:202px;padding:21px;border-radius:19px}
  .section-icon{width:46px;height:46px;border-radius:13px;font-size:23px}
  .section-card h2{margin:15px 0 7px;font-size:17px}
  .section-card p{font-size:12px;line-height:1.55}
  .section-cta{padding-top:14px;font-size:12px}
  .about-footer{align-items:flex-start;flex-direction:column;gap:5px;padding-top:16px}
  .about-footer .brand-name{font-size:18px}
  .bottom-nav{display:flex;left:12px;bottom:0;width:calc(100% - 24px);padding:9px 8px calc(9px + env(safe-area-inset-bottom));border-radius:17px 17px 0 0}
  .nav-item small{font-size:8px}
}
@media(max-width:600px){
  .game-card{min-height:126px;padding:12px;gap:11px;border-radius:19px}
  .game-cover{width:72px;height:96px;border-radius:14px}
  .game-copy strong{font-size:12px}
  .game-copy small{font-size:9px}
  .game-placeholder{font-size:7px}
  .quiz-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:22px}
  .quiz-shell{padding:22px 17px 20px}
  .quiz-close{right:13px;top:12px;width:34px;height:34px}
  .quiz-intro{grid-template-columns:1fr;gap:17px;padding-top:3px}
  .quiz-intro-image{height:clamp(170px,28vh,250px);border-radius:17px}
  .quiz-intro-copy{padding:0 2px}
  .quiz-intro h1{font-size:24px;max-width:calc(100% - 20px)}
  .quiz-intro-copy>p{font-size:12px}
  .quiz-facts{gap:6px;margin:14px 0 17px}
  .quiz-facts span{font-size:9px;padding:6px 8px}
  .quiz-topline{padding-right:40px}
  .quiz-progress{margin-bottom:17px}
  .quiz-question-image{height:clamp(160px,29vh,240px);border-radius:17px;margin-bottom:16px}
  .quiz-question-copy h1{font-size:21px;margin:7px 0 14px}
  .quiz-option{min-height:53px;padding:10px 11px;gap:10px;border-radius:14px;font-size:12px}
  .option-letter{width:26px;height:26px}
  .quiz-next{width:100%;margin-top:14px}
}
