
:root{font-family:"Noto Sans JP","Yu Gothic UI",Meiryo,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:#243f54;background:#f4f8fc;font-size:16px;line-height:1.75;--blue:#286899;--ink:#243f54;--muted:#5e7385;--line:#dfe8ee;--mint:#ecf5ef;--green:#467567;--yellow:#fbf3d8;--radius:20px;--shadow:0 8px 28px #37577408,0 1px 3px #37577405}
*{box-sizing:border-box}body{margin:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);background:radial-gradient(ellipse at 0% 12%,#e6f1fd 0,transparent 45%),radial-gradient(ellipse at 100% 65%,#e8f4ee 0,transparent 35%),linear-gradient(180deg,#f7fafd,#f0f6fa 80%,#f5f9fb);min-width:0}
a{color:inherit;text-decoration:none}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button,a,select{-webkit-tap-highlight-color:transparent}p,h1,h2,h3{margin:0}h1,h2,h3{line-height:1.55}h2{font-size:1.125rem;font-weight:700}h3{font-size:1rem;font-weight:650}svg{width:24px;height:24px;flex-shrink:0}button{color:inherit}.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}:focus-visible{outline:3px solid #ae8722;outline-offset:4px}h1:focus{outline:none}.skip{position:absolute;top:-100px;left:16px;z-index:10;padding:12px;background:white}.skip:focus{top:12px}
.site-header{background:#ffffffba;border-bottom:1px solid #e0e8ef;padding-top:env(safe-area-inset-top)}.header-inner{max-width:1280px;margin:auto;padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:linear-gradient(145deg,#488cbd,#286899);color:#fff;border-radius:15px;box-shadow:0 4px 12px #28689918}.brand-mark svg{width:26px;height:26px}.brand-text{font-size:21px;font-weight:750;line-height:1.45;letter-spacing:.02em}.brand-text>span{display:block;font-size:12px;font-weight:500;letter-spacing:.09em;color:var(--muted);margin-top:1px}.brand b{font-weight:500;letter-spacing:0;border-left:1px solid #cad8e2;padding-left:10px;margin-left:8px}nav{display:flex;align-items:center;gap:8px}nav a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 16px;color:var(--muted);font-size:15px;font-weight:650;border-radius:12px}nav svg{width:19px;height:19px}nav a[aria-current]{color:var(--blue);background:#eaf3fb}nav a:hover{background:#edf4f8}.mock-badge{font-size:12px;padding:4px 8px;background:var(--yellow);border-radius:6px}
main{max-width:1280px;margin:auto;padding:32px 32px 0}.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:26px;background:#edf6fe;border:1px solid #d8e7f2;box-shadow:0 5px 20px #37577405;min-height:224px;margin-bottom:32px}.hero-content{position:relative;z-index:2;padding:30px 40px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;color:#57788f;display:block;margin-bottom:6px}.hero h1{font-size:24px;letter-spacing:.025em;font-weight:700}.hero-child{display:flex;align-items:center;gap:22px;margin-top:20px}.hero-name{font-size:38px;line-height:1.3;font-weight:750;letter-spacing:.04em}.hero-name>span{font-size:18px;font-weight:500;margin-left:8px}.hero-note{font-size:16px;color:#526d80;margin-top:8px;line-height:1.8}.hero-landscape{position:absolute;inset:0;z-index:-1;background:url('/assets/quest-landscape.webp') center right/cover no-repeat;opacity:.9}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f4f9ffd9 0%,#f4f9ff80 43%,transparent 72%);z-index:0;pointer-events:none}.accents{pointer-events:none;user-select:none;position:absolute;right:34%;top:30px;color:#bdac68;z-index:1}.accents span:first-child{font-size:24px}.accents span:nth-child(2){position:absolute;top:128px;left:105px;font-size:16px;color:#c2b36d}.accents svg{position:absolute;top:88px;left:-25px;color:#8bab91;opacity:.45;transform:rotate(25deg)}.mobile-break{display:none}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 328px;gap:28px;align-items:start}.learning-column{min-width:0;display:grid;gap:28px}.card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{display:flex;align-items:center;gap:9px}.section-heading h2 svg{width:20px;height:20px}.date{font-size:14px;font-weight:500;color:#55748a;white-space:nowrap}.today{padding:26px 30px 30px;border-color:#cedfed;background:radial-gradient(ellipse at 100% 0%,#e7f3ff80,transparent 70%),linear-gradient(140deg,#fff,#f6fbff);border-radius:24px;box-shadow:0 10px 35px #2868990c,0 1px 3px #28689908;position:relative;overflow:hidden}.today .section-heading{margin-bottom:22px}.today h2 svg{color:var(--green)}.today-body{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.achievement{min-width:0}.main-number{display:flex;align-items:baseline;gap:9px;position:relative;white-space:nowrap;color:#24628f}.main-number strong{font-size:84px;font-weight:650;letter-spacing:-.07em;line-height:1.05;font-family:"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}.main-number>span{font-size:22px;font-weight:700}.main-number i{font-style:normal;color:#d4b358;font-size:25px;position:absolute;right:0;top:4px;text-shadow:0 2px 9px #f4dea480}.achievement>p{font-size:14px;color:var(--muted);margin-top:17px}.learning-metrics{border-left:1px solid #dce8f0;padding-left:28px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px}.metric-label{display:block;color:var(--muted);font-size:14px;margin-bottom:6px}.metrics strong{display:block;font-size:38px;line-height:1.35;font-weight:650;letter-spacing:-.03em;font-family:"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}.metrics strong small{font-size:15px;letter-spacing:0;margin-left:6px;font-family:inherit;font-weight:500}.metrics>div:nth-child(2) strong{color:var(--green)}.record-meter{height:8px;border-radius:9px;background:#dce9f0;margin-top:18px;overflow:hidden}.record-meter span{display:block;height:100%;background:linear-gradient(90deg,#7caea2,#a2c5b4);border-radius:9px}.meter-caption{font-size:14px;color:var(--muted);margin-top:6px}.count-badge{font-size:14px;color:#756b47;background:#fbf5e5;padding:2px 11px;border-radius:18px;border:1px solid #ede5cb}.topic-list{display:grid;gap:10px}.topic{display:flex;align-items:center;gap:14px;padding:18px 22px;background:#ffffffb3;border-radius:16px;box-shadow:0 3px 12px #37577404}.subject-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--mint);color:var(--green);border:1px solid #e0ecdf;flex-shrink:0}.subject-icon svg{width:23px;height:23px}.meta{font-size:14px;color:var(--muted);line-height:1.55}.meta>span{margin:0 4px}.topic h3{font-size:17px;line-height:1.6}.tag{margin-left:auto;font-size:14px;color:#5a7990;background:#edf4f9;border-radius:16px;padding:2px 10px;flex-shrink:0}.history{padding:4px 22px 8px;border-radius:18px;box-shadow:0 4px 16px #37577405}.history-labels,.history-row{display:grid;grid-template-columns:108px 78px minmax(0,1fr) 110px;align-items:center;column-gap:12px}.history-labels{padding:12px 0 10px;color:var(--muted);font-size:14px;border-bottom:1px solid var(--line)}.history-labels span:last-child{text-align:right}.history-row{position:relative;min-height:64px;padding:11px 0}.history-row+.history-row{border-top:1px solid #e9eff3}.history-row time{font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;display:flex;align-items:baseline;gap:8px}.history-row time small{font-size:13px;font-weight:400;color:var(--muted)}.history-subject{display:flex;align-items:center;gap:7px;color:#5a7387;font-size:14px}.history-subject svg{width:17px;height:17px;color:#7b9aab}.history-row h3{font-size:15px;min-width:0;overflow-wrap:anywhere}.score{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.score strong{font-size:21px;font-weight:650;color:#365e7a}.score>span{font-size:14px;color:var(--muted)}.score small{display:none}.score-latest strong{color:var(--green)}.no-history{padding:30px 8px;text-align:center;color:var(--muted);font-size:16px}.empty-topic{padding:14px 20px;border:1px dashed #d5e1e9;border-radius:14px}.muted{color:var(--muted)}
.support{display:grid;gap:20px}.support-label{font-size:14px;font-weight:650;color:#617789;letter-spacing:.02em}.profile{padding:22px 24px;background:#ffffffb3;border-radius:18px}.profile-child{display:flex;align-items:center;gap:16px;margin-top:17px}.profile-child>div:last-child{min-width:0}.child-switch{position:relative}.child-switch summary{display:flex;align-items:center;gap:4px;list-style:none;cursor:pointer;min-height:44px;font-size:25px;font-weight:700}.child-switch summary::-webkit-details-marker{display:none}.child-switch summary small{font-size:15px;font-weight:500}.child-switch summary>span{margin-left:8px;color:#718b9e;font-size:17px}.child-pill{font-size:13px;color:var(--green);padding:2px 10px;background:var(--mint);border-radius:14px;border:1px solid #deebdf}.child-options{position:absolute;z-index:5;top:48px;right:-16px;width:280px;max-width:calc(100vw - 48px);padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 10px 30px #37577419}.child-options strong{font-size:16px}.child-options strong span{float:right;font-size:14px;color:var(--blue)}.child-options p{font-size:14px;color:var(--muted);margin-top:10px}.voice{padding:24px 26px;border:1px solid #dae8de;border-radius:20px;background:radial-gradient(ellipse at 95% 0%,#fff9df80,transparent 75%),linear-gradient(135deg,#edf5ee,#f3f8f2);position:relative;overflow:hidden}.voice-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.voice-heading svg{color:#779582;width:21px;height:21px}.voice h2{font-size:23px;line-height:1.7;letter-spacing:.02em;font-weight:650}.voice>p{margin-top:14px;color:#587566;font-size:16px;line-height:1.9}.voice-line{height:1px;background:#d8e6dc;margin:20px 0 16px;width:48px}.voice .voice-context{font-size:14px;margin:0;color:#586f63;line-height:1.85}.record-info{padding:20px 24px;border-radius:16px;box-shadow:none;background:#ffffff8f}.record-info h2{display:flex;align-items:center;gap:8px}.record-info h2 svg{width:18px;height:18px}.record-info p{font-size:14px;margin-top:14px;color:var(--muted)}.record-info p span{display:block;font-size:20px;color:#3e5b70;margin-top:2px;font-weight:600;letter-spacing:.02em}.record-info p small{font-size:13px;color:var(--muted)}.button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 16px;border:1px solid #d3e0e9;border-radius:12px;background:#fff;font-size:15px;font-weight:650;color:var(--blue);transition:background .15s,border-color .15s}.button:hover{background:#eef5fb;border-color:#b4cddd}.button svg{width:19px;height:19px}.update-button{width:100%;margin-top:14px;background:transparent;min-height:44px;padding:8px 12px;font-size:14px}.hub{background:#286899;color:white;border-color:#286899;padding:14px 20px;border-radius:14px;box-shadow:0 4px 12px #28689913;justify-content:flex-start}.hub:hover{background:#205d8b;border-color:#205d8b}.external-symbol{margin-left:auto;font-size:20px;font-weight:400}.state{padding:48px 30px;text-align:center;min-height:280px;background:linear-gradient(130deg,#fff,#f4f9fc)}.state-icon,.empty-symbol{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 18px;background:var(--mint);border:1px solid #dfebdf;border-radius:18px;color:var(--green)}.state h2{font-size:22px}.state p{margin-top:14px;color:var(--muted);font-size:16px}.primary{background:var(--blue);color:#fff;border-color:var(--blue);margin:24px auto 0}.primary:hover{background:#205d8b;color:white}.empty{padding:14px 0 6px;text-align:center}.empty-symbol{width:48px;height:48px;margin-bottom:12px}.empty h3{font-size:20px}.empty p{font-size:16px;color:var(--muted);margin-top:12px}.notice{display:flex;gap:12px;align-items:flex-start;padding:16px 20px;border:1px solid #eadfbc;border-radius:14px;background:#fff8e5;color:#776039;font-size:15px}.notice svg{width:21px;height:21px;margin-top:2px}.notice small{display:block;font-size:14px;margin-top:4px}.loading-line{height:10px;width:60%;border-radius:8px;margin:30px auto 25px;background:#e6eef4}
.hero-about{min-height:180px;display:flex;align-items:center}.hero-about .hero-content{padding-block:36px}.hero-about h1{font-size:32px}.about-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:32px}.about-intro{position:relative;isolation:isolate;overflow:hidden;min-height:510px;padding:40px;background:#f3f8fc;border-color:#d4e3ef;border-radius:24px}.about-symbol{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--mint);border:1px solid #dcebdd;color:var(--green);margin-bottom:28px}.about-intro h2{font-size:27px;line-height:1.8;letter-spacing:.02em}.about-intro p{font-size:16px;color:#556e80;line-height:2;margin-top:22px;max-width:430px}.about-landscape{position:absolute;inset:0;z-index:-1;background:linear-gradient(#f8fbffe6 45%,#f8fbff3d),url('/assets/quest-landscape.webp') bottom right/auto 75% no-repeat}.about-details{display:grid;align-content:start;gap:0;border-top:1px solid #dbe5ec}.about-card{display:flex;align-items:flex-start;gap:20px;padding:26px 4px;border-bottom:1px solid #dbe5ec}.about-card h2{font-size:19px;margin:3px 0 12px}.about-card p{color:#5a7182;font-size:16px;line-height:1.95}.about-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#e6eff8;color:#5f85a3;flex-shrink:0}.about-card:nth-child(2) .about-icon{color:#9e8548;background:#faf2da}.about-card:nth-child(3) .about-icon{color:var(--green);background:var(--mint)}.about-return{width:max-content;margin:28px 0 0;padding-inline:24px}.demo{margin-top:24px;border-top:1px dashed #ccdce6;font-size:14px;color:var(--muted);padding-top:12px}.demo summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.demo summary:before{content:'＋';margin-right:8px}.demo[open] summary:before{content:'−'}.demo label{display:block;margin:10px 0}.demo select{min-height:48px;width:100%;background:#fff;border:1px solid #ccdce6;border-radius:9px;padding:8px 12px;font-size:16px}.demo p{margin-top:12px}footer{max-width:1280px;margin:40px auto 0;border-top:1px solid #dfe8ee;padding:26px 32px calc(30px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:14px}.footer-brand{font-size:15px;font-weight:650}.footer-brand>span{font-size:12px;font-weight:400;margin-left:10px;letter-spacing:.05em}
@media(max-width:1100px) and (min-width:901px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 300px;gap:22px}.today{padding:24px}.today-body{gap:20px}.learning-metrics{padding-left:20px}.main-number strong{font-size:72px}.main-number>span{font-size:19px}.metrics strong{font-size:32px}.history-labels,.history-row{grid-template-columns:90px 64px minmax(0,1fr) 85px;gap:8px}.history-row time{gap:5px;font-size:14px}.history-row time small{font-size:12px}.history{padding-inline:16px}.history-row h3{font-size:14px}.voice{padding:24px}.hero h1{font-size:24px}}
@media(max-width:900px){.header-inner{padding:20px 24px;flex-wrap:wrap;gap:16px}.brand-text{font-size:20px}nav{margin-left:auto}nav a{padding-inline:12px;font-size:14px}main{padding:24px 24px 0}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:24px}.support{grid-template-columns:1fr 1fr;gap:20px}.profile{order:0}.voice{order:1;grid-row:span 2}.record-info{order:2}.hub{order:3;grid-column:1/-1}.hero{margin-bottom:24px}.hero-content{padding:26px 32px}.hero-name{font-size:34px}.about-grid{gap:24px;grid-template-columns:1fr}.about-intro{min-height:360px}.about-intro p{max-width:600px}.about-details{border-top:0}.about-card{padding:24px 8px}.about-return{margin-top:24px}footer{padding-inline:24px}}
@media(max-width:600px){.header-inner{display:block;padding:20px 20px 0}.brand{gap:10px;width:max-content;max-width:100%}.brand-mark{width:38px;height:38px;border-radius:13px}.brand-mark svg{width:23px;height:23px}.brand-text{font-size:19px}.brand-text>span{font-size:12px}nav{margin-top:16px;gap:20px}nav a{min-height:49px;padding:11px 0;border-radius:0;border-bottom:3px solid transparent;font-size:14px;gap:7px}nav a[aria-current]{background:transparent;border-bottom-color:var(--blue)}nav a:hover{background:transparent}nav svg{width:18px;height:18px}main{padding:20px 20px 0}.hero{min-height:0;border-radius:20px;margin-bottom:20px}.hero-content{padding:22px}.eyebrow{font-size:12px;margin-bottom:5px}.hero h1{font-size:20px}.hero-child{gap:16px;margin-top:18px}.hero-name{font-size:31px}.hero-name>span{font-size:16px}.hero-note{font-size:14px;line-height:1.75;margin-top:7px}.mobile-break{display:block}.hero-landscape{background-size:auto 100%;background-position:right center;opacity:.53}.hero:after{background:linear-gradient(90deg,#f4f9fff0,#f4f9ffb0 75%,#f4f9ff40)}.accents{right:17px;top:25px;opacity:.6}.accents span:nth-child(2){top:120px;left:-6px}.accents svg{display:none}.dashboard-grid{gap:24px}.learning-column{gap:24px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:17px}.today{padding:22px;border-radius:22px}.today .section-heading{margin-bottom:19px}.today-body{grid-template-columns:1fr;gap:21px}.main-number strong{font-size:78px}.main-number>span{font-size:23px}.main-number i{right:18px;top:9px;font-size:30px}.achievement>p{font-size:14px;margin-top:11px}.learning-metrics{padding:19px 18px 14px;border:1px solid #e0eaf1;background:#ffffffc4;border-radius:16px}.metrics{gap:22px}.metrics>div+div{border-left:1px solid #e0e9ee;padding-left:22px}.metrics strong{font-size:34px}.metric-label{font-size:14px;margin-bottom:3px}.record-meter{height:7px;margin-top:13px}.meter-caption{font-size:14px;margin-top:5px}.date{font-size:14px}.topic{padding:16px;gap:12px}.subject-icon{width:42px;height:42px;border-radius:13px}.topic h3{font-size:17px}.meta{font-size:14px}.tag{font-size:12px;padding-inline:8px}.count-badge{font-size:13px}.history{padding:4px 16px 6px}.history-labels{display:none}.history-row{grid-template-columns:1fr auto;column-gap:10px;row-gap:3px;padding:14px 0;min-height:86px}.history-row time{grid-column:1;grid-row:1;font-size:14px;font-weight:500;gap:8px}.history-row time small{font-size:14px}.history-subject{grid-column:1;grid-row:2;font-size:13px;gap:5px}.history-subject svg{width:15px;height:15px}.history-row h3{grid-column:1;grid-row:3;font-size:16px;line-height:1.5}.score{grid-column:2;grid-row:1/4;background:#f1f6fa;padding:6px 10px;border:1px solid #e5edf3;border-radius:12px;min-width:87px}.score strong{font-size:23px}.score>span{font-size:14px}.score small{display:block;font-size:13px;color:var(--muted);margin-top:1px}.score-latest{background:#eff6f0;border-color:#e0ebe2}.support{grid-template-columns:1fr;gap:16px}.profile,.voice,.record-info,.hub{order:initial;grid-column:auto;grid-row:auto}.profile{padding:20px 22px}.profile-child{margin-top:14px}.voice{padding:24px}.voice h2{font-size:22px}.voice h2 br{display:none}.voice>p br{display:none}.voice-heading{margin-bottom:12px}.voice-line{margin-block:17px}.record-info{padding:20px 22px}.record-info p span{font-size:19px}.hub{min-height:54px;font-size:15px;justify-content:center}.hub .external-symbol{margin-left:8px}.state{padding:34px 20px;min-height:270px}.state h2{font-size:20px}.notice{padding:15px 16px;font-size:14px}.notice small{font-size:13px}.hero-about .hero-content{padding:25px 22px}.hero-about h1{font-size:22px;text-wrap:balance}.hero-about .hero-note{font-size:15px}.hero-about .accents{display:none}.about-grid{gap:20px}.about-intro{padding:28px 24px;min-height:390px}.about-symbol{width:48px;height:48px;margin-bottom:20px;border-radius:16px}.about-intro h2{font-size:21px;line-height:1.8;letter-spacing:0}.about-intro p{margin-top:18px;font-size:16px}.about-card{gap:14px;padding:22px 0}.about-icon{width:40px;height:40px;border-radius:13px}.about-icon svg{width:21px;height:21px}.about-card h2{font-size:17px;margin:4px 0 10px}.about-card p{font-size:16px}.about-return{width:100%;margin-top:22px}footer{display:block;text-align:center;margin:32px 20px 0;padding:23px 0 calc(25px + env(safe-area-inset-bottom))}.footer-brand{font-size:14px}.footer-brand>span{font-size:12px}footer p{margin-top:6px;font-size:13px}}
@media(max-width:360px){.header-inner{padding-inline:16px}.brand-text{font-size:17px}nav{gap:16px}nav a{font-size:14px}main{padding:16px 16px 0}.hero-content{padding:19px 18px}.hero-child{gap:12px}.hero-name{font-size:28px}.hero-note{font-size:14px}.hero h1{font-size:19px}.today{padding:19px}.section-heading h2{font-size:16px}.date{font-size:13px}.main-number strong{font-size:72px}.main-number>span{font-size:21px}.main-number i{right:9px;font-size:26px}.learning-metrics{padding:16px 14px 12px}.metrics{gap:16px}.metrics>div+div{padding-left:16px}.topic{gap:9px;padding:14px 12px}.subject-icon{width:38px;height:38px}.tag{font-size:12px;padding:2px 6px}.history{padding-inline:13px}.score{min-width:79px;padding-inline:7px}.history-row h3{font-size:15px}.hero-about h1{font-size:20px}.about-intro{padding:25px 20px}.about-intro h2{font-size:19px}.about-card{gap:12px}.about-card h2{font-size:17px}.about-icon{width:36px;height:36px}.voice h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Shared character stage: contain preserves chest-up or full-body silhouettes. */
.character-frame{display:grid;place-items:center;flex-shrink:0;background:linear-gradient(155deg,#ffffffed,#edf6fbd9);border:1px solid #fff;box-shadow:0 6px 22px #50799212;overflow:hidden}
.character-canvas{position:relative;display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0}
.character-art{grid-area:1/1;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center bottom;display:block}
.character-frame--hero{width:128px;height:140px;padding:10px 8px;border-radius:34px}
.character-frame--compact{width:68px;height:76px;padding:6px 4px;border-radius:22px;box-shadow:none;border-color:#dbe7ef}
.hero-child>div:last-child{min-width:0}
@media(max-width:900px){.character-frame--hero{width:114px;height:126px;border-radius:30px}}
@media(max-width:600px){.character-frame--hero{width:92px;height:104px;padding:8px 6px;border-radius:27px}.hero-child{gap:14px}.character-frame--compact{width:64px;height:72px}}
@media(max-width:360px){.character-frame--hero{width:78px;height:90px;border-radius:23px}.hero-child{gap:10px}.hero-note{font-size:14px}}

/* Authentication and approved child selection follow the existing card hierarchy. */
.auth-card{max-width:560px;margin:30px auto;padding:36px}.auth-card h2,.link-card h2{font-size:24px;margin:8px 0 12px}.auth-card form,.link-card form{display:grid;gap:10px;margin-top:24px}.auth-card label,.link-card label{font-size:15px;font-weight:650}.auth-card input,.link-card input,.child-select select{font:inherit;color:var(--ink);width:100%;min-width:0;min-height:50px;padding:12px 14px;border:1px solid #cadbe7;border-radius:12px;background:#fbfdff}.auth-card input:read-only{background:#edf3f7;color:var(--muted)}.auth-card form>.button,.link-card form>.button{margin-top:8px;min-height:50px}.auth-note{color:var(--muted);font-size:14px;margin:22px 0 0}.form-error{padding:14px 16px;border-radius:12px;background:#fff0ec;color:#945346;margin:16px 0;overflow-wrap:anywhere}.session-bar{display:flex;align-items:center;gap:20px;padding:16px 4px 24px;flex-wrap:wrap}.session-status{font-size:14px;color:var(--green);display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;border-radius:50%;background:#69a18a}.session-bar>[data-logout]{margin-left:auto}.text-button{background:transparent;border:0;color:var(--blue);min-height:44px;padding:10px 12px}.child-select{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:600}.child-select select{width:auto;min-width:150px}.profile-name{font-size:22px;font-weight:700;line-height:1.5}.profile-name small{font-size:14px;margin-left:4px}.link-card{max-width:720px;margin:24px auto;padding:32px}.link-compact{max-width:none;margin-top:28px;padding:16px 24px;background:#f5fafc}.link-card input{font-size:16px}.pending-notice{margin:0 0 24px;padding:24px}.pending-notice p{margin:8px 0 12px}.pending-notice .button{background:#fff;margin:4px 0 12px}.pending-notice small{display:block;font-size:14px}.hero-welcome h1{font-size:40px}.demo .button{margin-top:10px}.character-canvas svg.character-art{width:100%;height:100%}
@media(max-width:600px){.auth-card{padding:24px;margin-top:22px}.link-card{padding:24px}.hero-welcome h1{font-size:30px}.session-bar{gap:10px;padding:12px 0 20px}.child-select{order:3;width:100%;justify-content:space-between}.child-select select{flex:1;max-width:230px}.session-bar>[data-logout]{padding-right:0}.pending-notice{padding:20px}.link-compact{padding:12px 16px}.auth-card h2,.link-card h2{font-size:22px}}
.entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:30px 0 12px}.entry-card{display:flex;flex-direction:column;padding:30px;min-width:0}.entry-card h2{font-size:23px;margin:20px 0 10px}.entry-card p{color:var(--muted);font-size:16px;line-height:1.85;margin:0 0 24px}.entry-card>.button{margin-top:auto;min-height:50px;justify-content:center;gap:10px}.entry-new{background:linear-gradient(135deg,#f3fbff,#fff)}.entry-child{background:linear-gradient(135deg,#f3f9ef,#fffdf4)}.entry-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;color:var(--blue);background:#e7f2f9}.entry-icon svg{width:25px;height:25px}.entry-child .entry-icon{background:#e7efdf;color:var(--green)}.entry-card .button svg,.onboarding-actions .button svg{width:20px;height:20px;flex-shrink:0}.onboarding-card{max-width:820px;margin:20px auto 30px;padding:36px}.onboarding-card h2{font-size:26px;margin:12px 0}.onboarding-steps{list-style:none;padding:0;margin:28px 0;display:grid;grid-template-columns:1fr 1fr;gap:16px}.onboarding-steps li{padding:20px;border:1px solid #dce9ed;border-radius:18px;background:#f5fafc}.step-label{font-size:14px;letter-spacing:.06em;font-weight:700;color:var(--blue)}.onboarding-steps p{font-size:17px;line-height:1.6;margin:10px 0 0;font-weight:600}.onboarding-actions{display:flex;gap:14px;flex-wrap:wrap}.onboarding-actions .button{min-height:50px;gap:10px;justify-content:center}.onboarding-card .auth-note{line-height:1.8}
@media(max-width:900px){.entry-grid{grid-template-columns:1fr}.entry-card{padding:26px}.entry-card h2{margin-top:14px}.entry-card p{margin-bottom:20px}.entry-card>.button{align-self:stretch}.entry-icon{width:42px;height:42px}}
@media(max-width:600px){.entry-grid{gap:16px;margin-top:22px}.entry-card{padding:24px}.entry-card h2{font-size:22px}.onboarding-card{padding:24px}.onboarding-card h2{font-size:23px;line-height:1.6}.onboarding-steps{grid-template-columns:1fr;gap:12px}.onboarding-steps li{padding:18px}.onboarding-actions{flex-direction:column}.onboarding-actions .button{width:100%;white-space:normal;text-align:center}}

/* Learning summary extensions: compact, calm surfaces with no score-based mastery language. */
.subject-progress,.rewards{margin-top:26px;min-width:0}
.subject-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.subject-progress-card{min-width:0;padding:20px 22px;background:linear-gradient(145deg,#fff,#f7fbfd);border-color:#e2edf2;box-shadow:0 5px 18px #355c7410}
.subject-progress-title{display:flex;align-items:center;gap:12px;min-width:0}
.subject-progress-title h3{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.subject-progress-title .subject-icon{flex-shrink:0}
.subject-icon-japanese{background:#edf3e8;color:#668c72}
.subject-progress-stats{display:flex;align-items:center;gap:18px;margin:17px 0 10px;color:var(--muted);font-size:14px}
.subject-progress-stats>span{display:inline-flex;align-items:center;gap:5px}
.subject-progress-stats strong{color:var(--ink);font-size:19px;font-variant-numeric:tabular-nums}
.star-count{color:#a77b27!important}.star-count svg{width:17px;height:17px;fill:#f1d77c;stroke:#b38a35}
.last-played{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #e8eff3;padding-top:10px;margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.last-played time{color:var(--ink);font-weight:650;white-space:nowrap}
.subject-empty,.reward-empty{padding:21px 24px;color:var(--muted);font-size:15px}
.streak-card{margin-top:22px;padding:21px 24px;background:linear-gradient(135deg,#f1f8fc,#f3f8ef);border-color:#e1edf0}
.streak-heading{display:flex;align-items:center;gap:14px}
.streak-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:15px;background:#fff6df;color:#b17d30}
.streak-icon svg{width:23px;height:23px}
.streak-heading .support-label{display:block;color:var(--muted);font-size:13px;margin-bottom:4px}
.streak-heading h2{font-size:19px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.streak-summary{display:flex;flex-wrap:wrap;gap:8px 24px;margin:17px 0 0;padding-top:14px;border-top:1px solid #dfe9e9;color:var(--muted);font-size:14px}
.streak-summary strong{color:var(--ink);font-size:16px;margin-left:3px}
.streak-last{margin:10px 0 0;color:var(--muted);font-size:13px}
.reward-list{list-style:none;margin:0;padding:0 20px;overflow:hidden}
.reward-row{display:flex;align-items:center;gap:13px;min-width:0;padding:15px 0}
.reward-row+.reward-row{border-top:1px solid #e8eff3}
.reward-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:13px;background:#fff7df;color:#ad853c}
.reward-icon svg{width:20px;height:20px;fill:#f5dda1;stroke:#ad853c}
.reward-main{min-width:0;flex:1}
.reward-main h3{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.reward-main p{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.new-badge{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;background:#fff0c3;color:#88651e;font-size:11px;letter-spacing:.04em;line-height:1.7}
.rarity-badge{flex-shrink:0;max-width:96px;padding:4px 8px;border:1px solid #e3eaf0;border-radius:999px;background:#f7fafc;color:#617486;font-size:11px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
@media(max-width:600px){.subject-progress,.rewards{margin-top:22px}.subject-progress-grid{grid-template-columns:1fr;gap:11px}.subject-progress-card{padding:17px 18px}.subject-progress-stats{margin:13px 0 9px}.streak-card{margin-top:18px;padding:18px}.streak-heading{align-items:flex-start;gap:11px}.streak-heading h2{font-size:17px}.streak-summary{gap:8px 16px;font-size:13px}.reward-list{padding-inline:15px}.reward-row{gap:10px;padding:13px 0}.reward-icon{width:36px;height:36px}.reward-main h3{font-size:15px}.rarity-badge{max-width:70px;padding-inline:6px}}
@media(max-width:360px){.subject-progress-card{padding:16px}.subject-progress-title{gap:9px}.subject-progress-title h3{font-size:17px}.subject-progress-stats{gap:14px;font-size:13px}.subject-progress-stats strong{font-size:18px}.streak-card{padding:16px}.streak-summary{gap:8px 13px}.reward-list{padding-inline:12px}.reward-row{gap:8px}.reward-icon{width:32px;height:32px;border-radius:11px}.rarity-badge{max-width:61px;font-size:10px}}
