@charset "UTF-8";
:root{--ink:#302740;--muted:#716779;--purple:#694177;--pink:#b53963;--cream:#fffaf3;--line:#e5dbe8;--paper:#fff;--gold:#b87f2f;--gt-inl:0px;--gt-inr:0px;--gt-int:0px;--gt-inb:0px;color-scheme:light;font-family:"Yu Gothic UI","Meiryo",system-ui,sans-serif;color:var(--ink);background:#f5eff5}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 5% 0%,#fce5e9,transparent 55%),radial-gradient(ellipse at 95% 80%,#e9e0fa,transparent 70%),#f7f2f7}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.6}a{color:var(--purple)}button:focus-visible,a:focus-visible,[tabindex="0"]:focus-visible{outline:3px solid #8e58b0;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}img{max-width:100%;display:block}button img{pointer-events:none}button,a{ -webkit-tap-highlight-color:transparent}button:hover{filter:brightness(1.03)}button:active{transform:translateY(1px)}[hidden]{display:none!important}
.gt-app{padding:max(0px,env(safe-area-inset-top)) calc(16px + var(--gt-inr)) calc(12px + var(--gt-inb) + env(safe-area-inset-bottom)) calc(16px + var(--gt-inl));max-width:1480px;margin:auto;padding-top:var(--gt-int)}
.appbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1260px;margin:auto}.brand{display:flex;align-items:center;gap:10px;background:none;color:var(--ink);text-align:left;font-size:23px;font-weight:800;letter-spacing:.04em}.brand small{display:block;font-size:11px;letter-spacing:.12em;color:var(--muted);font-weight:500;margin-top:2px}.brand-mark{background:#694177;color:#ffe4b4;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-size:28px}.appbar-actions{display:flex;gap:8px;align-items:center}.icon-button{background:#fff9fd;border:1px solid var(--line);border-radius:12px;min-height:38px;padding:8px 12px;color:var(--ink);font-size:13px}.progress-label{font-size:12px;color:var(--purple);margin-right:12px}.primary,.secondary,.ghost{border-radius:12px;min-height:44px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px}.primary{background:linear-gradient(110deg,#a1355b,#734579);color:#fff;box-shadow:0 6px 14px #6c335c22}.secondary{background:#fff;color:var(--purple);border:1px solid var(--line)}.ghost{background:#efe6f0;color:var(--purple)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 14px}.section-head h2{font-size:21px;letter-spacing:.04em}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.18em;color:var(--purple);text-transform:uppercase;margin-bottom:7px}.subline{font-size:13px;color:var(--muted);line-height:1.8}.home-screen,.map-screen,.collection-screen{max-width:1260px;margin:auto}.hero{position:relative;min-height:325px;border-radius:25px;overflow:hidden;box-shadow:0 8px 28px #54395c15;background:#ead9e5}.hero-scene{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:70% 48%}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#fff9f2f5 0%,#fff9f2dc 33%,#fff6ef75 54%,transparent 78%)}.hero-copy{position:relative;padding:34px 40px;width:59%;z-index:1}.hero-copy .eyebrow{color:#894956}.hero h1{font-size:clamp(28px,3.3vw,43px);line-height:1.4;letter-spacing:.07em;font-weight:800}.hero-copy>p:not(.eyebrow){font-size:14px;line-height:1.8;max-width:350px;margin:14px 0 20px;color:#594457}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-chip{position:absolute;bottom:20px;right:24px;background:#fff5f6ec;border:1px solid #fffb;border-radius:14px;padding:10px 16px;color:#694177;font-size:12px;box-shadow:0 4px 15px #452c5022}.hero-chip strong{display:block;font-size:14px;margin-bottom:2px}
.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.mode-card{position:relative;overflow:hidden;min-height:146px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px 20px;color:var(--ink);box-shadow:0 3px 12px #6b426108}.mode-card img{position:absolute;right:0;top:0;height:100%;width:47%;object-fit:cover;object-position:70% 32%;opacity:.97}.mode-card::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 35%,#ffffffd9 58%,transparent 80%);pointer-events:none}.mode-card .mode-copy{position:relative;z-index:1;max-width:66%}.mode-card .mode-no{font-size:10px;letter-spacing:.14em;color:var(--purple);font-weight:700}.mode-card h2{font-size:20px;margin:5px 0}.mode-card p{font-size:12px;color:var(--muted);line-height:1.8}.mode-card .arrow{display:block;margin-top:10px;font-size:12px;font-weight:700;color:var(--purple)}
.character-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}.character-tile{position:relative;border-radius:15px;background:#fff;overflow:hidden;border:2px solid transparent;color:var(--ink);padding:0 0 8px;box-shadow:0 2px 10px #6c435212}.character-tile.selected{border-color:var(--pink);background:#fff4f6}.character-tile .portrait-pad{height:91px;background:linear-gradient(#f1e9f6,#fff7f5);overflow:hidden}.character-tile img{height:130px;width:100%;object-fit:contain;object-position:center 0;margin-top:2px}.character-tile span{font-size:11px;font-weight:700;display:block;margin-top:7px;white-space:nowrap}.character-tile .chosen{position:absolute;top:4px;left:4px;border-radius:50%;background:var(--pink);color:#fff;width:18px;height:18px;display:grid;place-items:center;font-size:11px}.home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:23px}.quote-card{display:flex;align-items:center;gap:14px;background:#fff9f9;border:1px solid var(--line);border-radius:18px;padding:14px 18px}.quote-card img{width:72px;height:85px;object-fit:contain}.quote-card h3{font-size:13px;color:var(--purple);margin-bottom:5px}.quote-card p{font-size:13px;line-height:1.8}.book-invite{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:18px;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:20px;background:#f0e7f4;color:var(--ink);gap:10px}.book-invite h3{font-size:18px;margin-bottom:7px}.book-invite p{font-size:12px;color:var(--muted)}.mini-stamps{display:flex;padding-right:8px}.mini-stamps img{height:80px;width:64px;object-fit:cover;object-position:75% 50%;border:3px solid #fff;border-radius:9px;transform:rotate(-8deg);margin-left:-10px;box-shadow:0 2px 7px #44344c30}.mini-stamps img:nth-child(2){transform:rotate(7deg)}.input-note{font-size:12px;color:var(--muted);margin:15px 0;text-align:center;line-height:1.7}.game-footer{max-width:1260px;margin:26px auto 0;padding:18px 0;text-align:center;font-size:11px;color:var(--muted);border-top:1px solid var(--line);line-height:1.9}.game-footer div{display:flex;justify-content:center;gap:18px;margin:6px 0}.game-footer small{font-size:10px}
.page-heading{margin:15px 0 24px;display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.page-heading h1{font-size:28px;line-height:1.5}.chapter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.chapter-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 4px 14px #4b315108}.chapter-art{height:130px;position:relative;overflow:hidden}.chapter-art img{width:100%;height:100%;object-fit:cover;object-position:65% 42%}.chapter-art .chapter-num{position:absolute;top:9px;left:10px;background:#fffef5e8;border-radius:8px;padding:4px 8px;font-size:11px;color:#583c58;font-weight:700}.chapter-art .chapter-seal{position:absolute;right:10px;bottom:10px;font-size:11px;background:var(--purple);color:#fff;border-radius:20px;padding:5px 9px}.chapter-info{padding:15px}.chapter-info h2{font-size:17px;margin-bottom:5px}.chapter-info>p{font-size:11px;color:var(--muted);min-height:33px;line-height:1.6}.lesson-list{display:grid;gap:7px;margin-top:12px}.lesson{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:6px;border-radius:9px;padding:9px 10px;background:#f7f2f8;color:var(--ink);font-size:12px;min-height:39px}.lesson.completed{background:#fff2ec}.lesson .stars{color:#8d5821;font-size:12px;white-space:nowrap}.lesson:hover{background:#efe3f3}.lesson.current{box-shadow:inset 0 0 0 1.5px #ac577a}
.session{max-width:1240px;margin:8px auto 0}.session-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.session-name{font-size:15px;font-weight:700}.session-name small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px}.session-buttons{display:flex;gap:7px}.practice-grid{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:20px;align-items:stretch}.desk{border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 7px 23px #3f294b09;padding:20px 24px 10px;overflow:hidden}.practice-status{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.practice-status strong{font-size:14px;color:var(--ink)}.practice-status .grow{flex:1}.progress-track{height:5px;background:#eee7f0;border-radius:9px;margin:12px 0 14px;overflow:hidden}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#b94a72,#82629b);border-radius:9px;transition:width .2s}.problem-area{background:#fcf9fc;border-radius:14px;min-height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 14px;position:relative}.problem-area .kana{font-size:clamp(21px,2.4vw,31px);font-weight:700;letter-spacing:.04em;text-align:center;line-height:1.5}.romaji{font-family:Consolas,"Courier New",monospace;font-size:clamp(22px,2.5vw,33px);font-weight:700;letter-spacing:.04em;line-height:1.7;overflow-wrap:anywhere;word-break:break-all;text-align:center}.romaji .done{color:#9f94a5}.romaji .next{background:#f7d47e;color:#493519;border-radius:4px;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}.romaji .rest{color:#40394c}.ready-copy{text-align:center}.ready-copy h2{font-size:23px;line-height:1.5}.ready-copy p{font-size:13px;color:var(--muted);margin:9px 0 13px;line-height:1.7}.ready-copy .primary{min-height:40px;padding:8px 18px}.finger-label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:13px;color:var(--purple);margin:7px 0}.keycap{font-family:Consolas,monospace;font-weight:700;min-width:29px;min-height:28px;padding:3px 7px;background:#fff0c6;color:#614519;border:1px solid #dbb568;border-radius:6px;text-align:center;font-size:17px}.feedback{font-size:12px;color:#8d2549;min-height:19px;text-align:center;font-weight:600}.keyboard-wrap{max-width:850px;margin:0 auto;position:relative}.keyboard-svg{display:block;width:100%;height:auto;overflow:visible}.key rect{fill:#fefefe;stroke:#d8d3dc;stroke-width:1.3;filter:drop-shadow(0 1px 0 #c7becb)}.key text{fill:#534b5d;font-family:Consolas,system-ui,sans-serif;font-size:17px;pointer-events:none}.key text.small{font-size:10px}.key.target rect{fill:#f8ce65;stroke:#be8724;stroke-width:2}.key.target text{fill:#513815;font-weight:700}.key .bump{stroke:#807588;stroke-width:2.5;stroke-linecap:round}.key.usable{cursor:pointer}.key.usable:hover rect{stroke:#846093;stroke-width:2}.hand-art{pointer-events:none}.hand-outline{fill:#ffe3b02c;stroke:#dcac70;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.active-finger{fill:#e68d9933;stroke:#c9476d;stroke-width:3;stroke-linejoin:round}.touch-point{fill:#bf315c;stroke:#fff;stroke-width:2}.guide-note{text-align:center;font-size:11px;color:var(--muted);line-height:1.7;padding:2px 0 9px}.mentor-panel{position:relative;background:#eee0eb;border-radius:20px;overflow:hidden;min-height:570px}.mentor-bg{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:71% 50%}.mentor-gradient{position:absolute;inset:0;background:linear-gradient(0deg,#3e274ecc 0%,#3e274e00 50%,#3e274e30 100%)}.mentor-tag{position:absolute;left:14px;top:14px;color:#fff;background:#4e305abf;border:1px solid #fffb;padding:7px 11px;border-radius:10px;font-size:12px}.mentor-message{position:absolute;bottom:18px;left:14px;right:14px;background:#fffffff2;border-radius:14px;padding:17px 14px;box-shadow:0 3px 12px #38214422}.mentor-message h2{font-size:15px;color:var(--purple);margin-bottom:8px}.mentor-message p{font-size:13px;line-height:1.8}.mentor-message small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.session-tip{margin-top:12px;background:#f0e7f4;border:1px solid var(--line);border-radius:12px;font-size:12px;line-height:1.8;padding:12px 16px;color:#614d6a}.pause-panel{position:absolute;inset:0;background:#fcf9fcf5;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px;z-index:2}.pause-panel h2{font-size:23px}.pause-panel p{font-size:13px;text-align:center;color:var(--muted)}.session.finished .keyboard-wrap{opacity:.75}.mode-badge{padding:4px 8px;border-radius:20px;background:#f0e6f5;color:#654473;font-size:11px}.input-switch{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px}.input-switch button{font-size:11px;border:1px solid var(--line);color:var(--purple);background:#fff;padding:6px 9px;border-radius:8px}.input-switch button[aria-pressed="true"]{background:var(--purple);color:#fff}
.result-screen{max-width:1060px;margin:10px auto 0;display:grid;grid-template-columns:47% 1fr;gap:24px}.celebration{position:relative;min-height:540px;border-radius:23px;overflow:hidden;background:#eedde9;box-shadow:0 8px 28px #54395c20}.celebration>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:72% 50%}.celebration::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#35203ee6 0%,#37244205 60%)}.celebration-copy{position:absolute;bottom:28px;left:26px;right:26px;z-index:1;color:#fff}.celebration-copy .eyebrow{color:#ffd793}.celebration-copy h1{font-size:32px;line-height:1.4;margin-bottom:10px}.celebration-copy p{font-size:14px;line-height:1.8}.petals{position:absolute;inset:0;z-index:1;pointer-events:none}.petals span{position:absolute;width:11px;height:16px;background:#fff0c4;border-radius:70% 25% 70% 25%;animation:petalfall 3.5s ease-in infinite;opacity:.9}.petals span:nth-child(2n){background:#ffc5d5}.result-content{padding:8px 0}.result-content h2{font-size:24px;line-height:1.5}.result-content>p{font-size:13px;color:var(--muted);line-height:1.8;margin:8px 0 20px}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{border-radius:14px;border:1px solid var(--line);background:#fff;padding:16px}.stat span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.stat strong{font-family:Consolas,system-ui,sans-serif;font-size:30px;letter-spacing:-.02em}.stat small{font-size:12px;margin-left:3px}.result-note{padding:16px;background:#fff2e8;border:1px solid #edd5bd;border-radius:14px;margin-top:14px;font-size:13px;line-height:1.9;color:#654822}.result-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.reward-ribbon{margin-top:15px;padding:12px;background:#f0e5f4;border-radius:12px;font-size:13px;line-height:1.8}.stamp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.stamp{background:#fff;border:1px solid var(--line);padding:10px 10px 15px;border-radius:15px;box-shadow:0 4px 12px #49325815;position:relative}.stamp img{aspect-ratio:4/3;object-fit:cover;width:100%;object-position:70% 40%;border-radius:9px}.stamp.locked img{filter:saturate(.15);opacity:.5}.stamp h2{font-size:15px;margin:12px 3px 4px}.stamp p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 3px}.stamp .stamp-seal{position:absolute;top:19px;right:19px;background:#fff9ecee;color:#704b20;border:1px solid #e4b878;border-radius:100%;width:45px;height:45px;display:grid;place-items:center;font-size:12px;font-weight:700;transform:rotate(12deg)}.stamp.locked .stamp-seal{background:#f2eff5;color:#76647e;border-color:#d4c6dc}.stamp-intro{display:flex;gap:14px;align-items:center;background:#fff8fb;border:1px solid var(--line);border-radius:16px;padding:15px 20px;margin-bottom:20px}.stamp-intro img{width:70px;height:80px;object-fit:contain}.stamp-intro p{font-size:13px;line-height:1.9}.help-dialog{border:1px solid var(--line);border-radius:20px;max-width:min(600px,calc(100% - 28px));padding:28px;color:var(--ink);box-shadow:0 15px 60px #3f244d40}.help-dialog::backdrop{background:#39254070;backdrop-filter:blur(3px)}.dialog-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.dialog-title h2{font-size:20px}.help-dialog p{font-size:14px;line-height:1.9;margin:13px 0}.toast{position:fixed;bottom:calc(20px + var(--gt-inb));left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);color:#fff;background:#493152;padding:12px 18px;border-radius:12px;font-size:13px;box-shadow:0 5px 20px #30203c25;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20}.toast.show{opacity:1}.empty{padding:30px;text-align:center;background:#fff;border-radius:16px}.screen-in{animation:screenin .3s ease-out}@keyframes screenin{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes petalfall{from{transform:translateY(-25px) rotate(0);opacity:0}20%{opacity:.9}to{transform:translateY(540px) rotate(150deg);opacity:0}}
@media(min-width:1000px) and (max-height:850px){.mentor-panel{min-height:0}.desk{padding:14px 20px 4px}.problem-area{min-height:125px;padding:10px 14px}.keyboard-wrap{max-width:660px}.finger-label{min-height:36px;margin:2px 0}.guide-note{padding-bottom:4px}.practice-status{font-size:11px}.progress-track{margin:8px 0 10px}.appbar{min-height:66px}.session{margin-top:2px}.session-tip{padding:8px 14px}.game-footer{margin-top:18px}}
@media(max-width:1050px){.character-strip{grid-template-columns:repeat(5,1fr)}.character-tile .portrait-pad{height:106px}.character-tile img{height:147px}.chapter-grid{grid-template-columns:repeat(2,1fr)}.practice-grid{grid-template-columns:minmax(0,1fr) 215px;gap:12px}.mentor-panel{min-height:480px}.desk{padding:15px 16px 7px}.hero-copy{width:63%}.hero h1{font-size:34px}.stamp-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:740px){.gt-app{padding-left:calc(12px + var(--gt-inl));padding-right:calc(12px + var(--gt-inr))}.appbar{min-height:67px}.brand{font-size:18px;gap:7px}.brand-mark{width:34px;height:34px;font-size:23px;border-radius:11px}.brand small{font-size:9px;letter-spacing:.07em}.icon-button{padding:7px 9px;font-size:11px;min-height:35px}.progress-label{display:none}.appbar-actions{gap:5px}.hero{min-height:350px}.hero-scene{object-position:70% 40%}.hero-shade{background:linear-gradient(90deg,#fff9f2ed 0%,#fff9f2cd 30%,#fff6ef15 80%),linear-gradient(0deg,#fff9f2b3,transparent 65%)}.hero-copy{padding:26px 23px;width:75%}.hero h1{font-size:30px}.hero-copy>p:not(.eyebrow){font-size:12px;width:85%;margin:12px 0 15px}.hero-chip{bottom:13px;right:14px;padding:8px 12px;font-size:10px}.hero-chip strong{font-size:12px}.hero-actions{gap:7px;flex-direction:column;align-items:flex-start}.hero-actions .primary,.hero-actions .secondary{font-size:12px;min-height:40px;padding:10px 14px}.mode-grid{gap:8px;margin-top:12px}.mode-card{min-height:154px;padding:15px 12px}.mode-card h2{font-size:17px;margin-top:7px}.mode-card .mode-copy{max-width:100%}.mode-card img{width:100%;opacity:.3}.mode-card::after{background:linear-gradient(0deg,#fff 0%,#ffffffca 55%,#ffffff55)}.mode-card .mode-no{font-size:9px}.mode-card p{font-size:10px}.mode-card .arrow{font-size:11px;margin-top:9px}.section-head{margin-top:23px}.section-head h2{font-size:18px}.section-head .subline{font-size:11px}.character-strip{gap:7px}.character-tile .portrait-pad{height:82px}.character-tile img{height:113px}.character-tile span{font-size:10px}.home-bottom{grid-template-columns:1fr;gap:10px;margin-top:17px}.book-invite{padding:17px 18px}.quote-card{padding:12px 16px}.quote-card img{height:73px;width:61px}.page-heading{margin-top:8px}.page-heading h1{font-size:23px}.page-heading .subline{font-size:11px}.chapter-grid{gap:12px}.chapter-art{height:106px}.chapter-info{padding:12px}.chapter-info h2{font-size:15px}.chapter-info>p{font-size:10px;min-height:34px}.lesson{font-size:11px;padding:8px;min-height:40px}.lesson .stars{font-size:10px}.session-head{align-items:flex-start}.session-name{font-size:13px;max-width:55%}.session-name small{font-size:10px}.session-buttons .icon-button{font-size:10px;padding:7px;min-height:34px}.practice-grid{grid-template-columns:1fr}.mentor-panel{order:-1;min-height:92px;display:flex;align-items:center;padding:10px 13px}.mentor-bg{width:108px;height:130px;object-fit:cover;object-position:70% 40%;left:auto;right:0}.mentor-gradient{background:linear-gradient(90deg,#f2e5f4 0%,#f2e5f4 69%,transparent)}.mentor-tag{display:none}.mentor-message{position:relative;left:0;right:auto;bottom:auto;background:transparent;box-shadow:none;border-radius:0;padding:0;width:calc(100% - 80px)}.mentor-message h2{font-size:12px;margin-bottom:3px}.mentor-message p{font-size:11px;line-height:1.7}.mentor-message small{display:none}.desk{padding:12px 12px 8px;border-radius:16px}.practice-status{font-size:10px;gap:8px}.practice-status strong{font-size:12px}.problem-area{min-height:128px;padding:12px 9px}.problem-area .kana{font-size:23px}.romaji{font-size:25px}.finger-label{font-size:12px;margin:4px 0;min-height:33px}.keycap{font-size:15px;min-height:25px}.feedback{font-size:11px;min-height:18px}.guide-note{font-size:10px;padding-bottom:3px}.keyboard-wrap{margin-top:0}.session-tip{font-size:11px;padding:10px 13px}.input-switch{margin-top:5px}.input-switch button{font-size:10px}.stamp-grid{grid-template-columns:repeat(2,1fr);gap:12px}.stamp-intro{padding:12px}.stamp-intro p{font-size:12px}.stamp-intro img{height:66px;width:56px}.stamp{padding:7px 7px 12px}.stamp h2{font-size:13px}.stamp p{font-size:11px}.stamp .stamp-seal{width:36px;height:36px;top:13px;right:13px;font-size:10px}.result-screen{grid-template-columns:1fr;gap:17px}.celebration{min-height:300px}.celebration>img{object-position:70% 39%}.celebration-copy{bottom:20px;left:20px}.celebration-copy h1{font-size:26px}.celebration-copy p{font-size:12px;max-width:80%}.result-content h2{font-size:21px}.stat{padding:13px}.stat strong{font-size:27px}.result-content>p{margin-bottom:14px}.result-actions .primary,.result-actions .secondary,.result-actions .ghost{font-size:12px;padding:10px 14px}.help-dialog{padding:20px}.help-dialog p{font-size:12px}.dialog-title h2{font-size:17px}}
@media(max-width:360px){.brand{font-size:16px}.brand small{font-size:8px}.brand-mark{width:30px;height:30px}.appbar-actions .icon-button{font-size:10px;padding:6px}.hero-copy{padding:24px 18px;width:84%}.hero h1{font-size:28px}.hero-chip{max-width:125px}.mode-card{padding:13px 8px}.mode-card h2{font-size:15px}.character-tile .portrait-pad{height:68px}.character-tile img{height:96px}.character-tile span{font-size:9px}.chapter-info{padding:9px}.lesson{padding:7px 5px;font-size:10px}.lesson .stars{font-size:9px}.chapter-info h2{font-size:14px}.problem-area .kana{font-size:20px}.romaji{font-size:21px}.session-buttons{gap:4px}.session-buttons .icon-button{font-size:9px;padding:6px}.session-name{font-size:12px}}
@media(max-height:460px) and (min-width:700px){.appbar{min-height:50px}.brand{font-size:17px}.brand small{display:none}.brand-mark{width:31px;height:31px;font-size:22px}.session-head{margin-bottom:7px}.practice-grid{grid-template-columns:minmax(0,1fr) 172px;gap:10px}.mentor-panel{order:0;min-height:0;display:block;padding:0}.mentor-bg{width:100%;height:100%;right:auto;left:0;object-position:70% 45%}.mentor-gradient{background:linear-gradient(0deg,#49315444,transparent)}.mentor-message{position:absolute;bottom:10px;left:9px;right:9px;width:auto;background:#fffffff0;border-radius:10px;padding:10px}.mentor-message p{font-size:10px}.mentor-message h2{font-size:11px}.desk{padding:8px 12px 3px}.practice-status{font-size:10px;gap:9px}.progress-track{margin:5px 0 6px}.problem-area{min-height:70px;padding:7px}.problem-area .kana{font-size:18px}.romaji{font-size:22px;line-height:1.3}.finger-label{min-height:26px;margin:2px 0;font-size:11px}.feedback{min-height:13px;font-size:10px}.keyboard-wrap{max-width:400px}.guide-note{display:none}.session-tip{padding:7px 11px;font-size:10px;margin-top:8px}.ready-copy h2{font-size:18px}.ready-copy p{margin:4px 0 7px;font-size:11px}.ready-copy .primary{min-height:30px;font-size:11px;padding:5px 13px}.input-switch button{padding:4px 6px;font-size:10px}.game-footer{margin-top:15px}.celebration{min-height:300px}.result-screen{grid-template-columns:40% 1fr}.result-stats{gap:8px}.stat{padding:9px}.stat strong{font-size:23px}.result-note{padding:10px;margin-top:9px}.result-content>p{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.petals{display:none}}
#view:focus{outline:none}
.hero-scene{object-position:70% 10%}.hero-copy{width:69%}.hero h1{font-size:clamp(27px,3.1vw,39px);line-height:1.45;letter-spacing:.04em}.hero-copy>p:not(.eyebrow){margin:12px 0 19px}.hero-chip{max-width:255px;line-height:1.65}.time-evening .hero-scene{filter:sepia(.15) saturate(.95)}.time-night .hero-scene{filter:brightness(.83) saturate(.85)}.time-morning .hero-scene{filter:brightness(1.04)}
.daily-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff8f0;border:1px solid #e9d8c8;border-radius:15px;padding:15px 20px;margin-top:15px}.daily-banner strong{display:block;font-size:13px;color:#71502d;margin-bottom:5px}.daily-banner span{font-size:11px;color:#7a6c69}.daily-steps{display:flex;align-items:center;gap:10px}.daily-steps span{display:flex;flex-direction:column;text-align:center;gap:4px;color:#715368;white-space:nowrap}.daily-steps b{font-size:12px}.daily-steps i{font-style:normal;color:#b1909e;font-size:11px}
.happy-portrait{display:block;background-image:url('assets/happy-atlas.png');background-size:500% 200%;background-position:var(--happy-x) var(--happy-y);background-repeat:no-repeat;width:105px;height:135px}.result-smile{position:absolute;z-index:2;right:19px;top:21px;width:140px;height:180px;border-radius:18px;background-color:#fff8f0ed;box-shadow:0 6px 15px #3821441a;border:1px solid #fff8}.letter-card{margin-top:22px;border:1px solid #dfcdd8;background:linear-gradient(110deg,#fffaf2,#fff8fa);border-radius:15px;padding:20px 22px;box-shadow:0 4px 16px #5d365c0c}.letter-heading{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eadcda;padding-bottom:11px;margin-bottom:13px}.letter-heading .happy-portrait{width:62px;height:80px;flex:none}.letter-heading h3{font-size:16px;color:#6b4169}.letter-heading span{font-size:11px;color:var(--muted);display:block;margin-top:5px}.letter-card p:not(.eyebrow){font-size:13px;line-height:1.9;margin:9px 0;color:#654d62}.letter-sign{text-align:right;font-size:13px;color:var(--purple);font-family:"Yu Mincho",serif;margin-top:13px}.reward-ribbon .primary{display:flex;margin-top:10px;font-size:12px;min-height:37px;padding:8px 12px}.certificate-link{background:#f5e9ef;border:1px solid #e8d1dd;color:#794160;border-radius:9px;font-size:11px;font-weight:600;min-height:36px;padding:8px 10px;width:100%;margin-top:12px;text-align:left}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.growth-badge{display:flex;align-items:center;gap:11px;background:#fffaf2;border:1px solid #e8d7bc;border-radius:13px;padding:11px 14px}.growth-badge img{height:76px;width:65px;object-fit:contain;flex:none}.growth-badge span{display:block;font-size:13px;color:#74502f;font-weight:700;line-height:1.7}.growth-badge small{display:block;font-size:10px;color:#7a6c69;margin-top:5px;line-height:1.7}.letter-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.saved-letter{background:#fffaf6;border:1px solid #e4d6dc;border-radius:14px;overflow:hidden}.saved-letter summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 15px;cursor:pointer}.saved-letter summary img{width:47px;height:60px;object-fit:contain}.saved-letter summary span{flex:1;font-size:13px;color:#654061;font-weight:600}.saved-letter summary small{font-size:10px;display:block;color:var(--muted);margin-top:4px;font-weight:400}.saved-letter summary b{font-size:11px;color:var(--purple);font-weight:500}.saved-letter>div{padding:0 20px 17px}.saved-letter p{font-size:12px;line-height:1.9;margin:9px 0;color:#654d62}.graduation-invite{background:linear-gradient(110deg,#f8ead1,#f2dbeb);border:1px solid #e6c695;border-radius:16px;display:flex;gap:14px;align-items:center;justify-content:space-between;padding:18px;font-size:13px;line-height:1.8}.graduation-invite .primary{font-size:12px;white-space:nowrap}
.reward-dialog{border:1px solid var(--line);border-radius:20px;max-width:min(920px,calc(100% - 24px));padding:24px;color:var(--ink);box-shadow:0 15px 60px #3f244d40}.reward-dialog::backdrop{background:#39254090;backdrop-filter:blur(3px)}.reward-dialog canvas{width:100%;height:auto;border-radius:9px;border:1px solid #ddc695;display:block}.reward-dialog .subline{margin:12px 0 8px}.reward-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:13px}.daily-break{max-width:1060px;margin:20px auto;display:grid;grid-template-columns:45% 1fr;gap:28px;align-items:center}.break-art{position:relative;height:440px;border-radius:23px;overflow:hidden;background:#ecddea}.break-art>img{width:100%;height:100%;object-fit:cover;object-position:72% 40%}.break-art .happy-portrait{position:absolute;right:18px;bottom:18px;width:145px;height:190px;background-color:#fff8f0ed;border-radius:17px;border:1px solid #fff}.break-copy h1{font-size:27px;line-height:1.55}.break-copy>p:not(.eyebrow){font-size:13px;line-height:1.9;color:var(--muted);margin:13px 0 17px}.break-copy>.primary,.break-copy>.secondary{margin-right:8px;margin-bottom:9px}.daily-break-steps{list-style:none;padding:0;margin:22px 0;display:grid;gap:8px}.daily-break-steps li{display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:13px;color:var(--muted)}.daily-break-steps li>span{border-radius:50%;width:25px;height:25px;display:grid;place-items:center;background:#eee4f0;color:var(--purple);font-size:11px}.daily-break-steps small{margin-left:auto;font-size:11px}.daily-break-steps .done{background:#fff1e8;color:#72472b;border-color:#e6c9ac}.daily-break-steps .done>span{background:#b47543;color:#fff}
@media(min-width:1000px) and (max-height:850px){.hero-copy{padding-top:28px;padding-bottom:28px}.hero h1{font-size:35px}.hero-copy>p:not(.eyebrow){margin:10px 0 16px}.practice-grid .mentor-bg{object-position:75% 50%}.desk{display:flex;flex-direction:column}.keyboard-wrap{width:100%;max-width:580px}.problem-area{min-height:112px}.mentor-panel{min-height:0}.session-tip{margin-top:8px}.ready-copy h2{font-size:21px}.game-footer{margin-top:16px}}
@media(max-width:1050px){.daily-banner{flex-wrap:wrap}.daily-steps{gap:15px}.badge-grid{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:33px}.letter-heading h3{font-size:15px}}
@media(max-width:740px){.hero-copy{width:82%;padding:24px 21px}.hero h1{font-size:26px;line-height:1.5}.hero{min-height:383px}.hero-copy>p:not(.eyebrow){font-size:11px;width:85%;line-height:1.9}.hero-chip{max-width:190px;font-size:10px;right:12px;bottom:12px}.hero-chip strong{font-size:11px}.hero-actions .primary{max-width:100%;font-size:11px}.hero-actions .secondary{font-size:11px}.daily-banner{padding:13px 15px;gap:12px;margin-top:11px}.daily-banner strong{font-size:12px}.daily-banner span{font-size:10px}.daily-steps{gap:8px;justify-content:space-between;width:100%}.daily-steps b{font-size:11px}.result-smile{width:94px;height:124px;top:14px;right:14px}.letter-card{padding:15px 16px}.letter-card p:not(.eyebrow){font-size:12px}.letter-heading h3{font-size:14px}.letter-heading .happy-portrait{width:50px;height:65px}.badge-grid{gap:9px}.growth-badge{padding:9px;gap:6px}.growth-badge img{width:43px;height:61px}.growth-badge span{font-size:11px}.growth-badge small{font-size:9px}.letter-grid{grid-template-columns:1fr;gap:10px}.certificate-link{font-size:10px;padding:8px}.graduation-invite{display:block;padding:16px;font-size:12px}.graduation-invite .primary{margin-top:12px;font-size:11px}.reward-dialog{padding:16px}.reward-dialog .dialog-title h2{font-size:16px}.reward-actions .primary,.reward-actions .secondary{font-size:12px;min-height:40px;padding:9px 13px}.reward-dialog .subline{font-size:11px}.daily-break{grid-template-columns:1fr;gap:17px;margin-top:5px}.break-art{height:260px}.break-art .happy-portrait{width:98px;height:127px;right:13px;bottom:13px}.break-copy h1{font-size:23px}.break-copy>p:not(.eyebrow){font-size:12px}.daily-break-steps{margin:15px 0;gap:6px}.daily-break-steps li{padding:8px 11px;font-size:12px}.break-copy>.primary,.break-copy>.secondary{font-size:12px;padding:11px 15px}.mode-card p{font-size:11px}.character-tile span{font-size:11px}}
@media(max-width:360px){.hero-copy{width:89%;padding:23px 17px}.hero h1{font-size:24px}.hero-chip{max-width:162px}.hero-copy>p:not(.eyebrow){font-size:10px}.brand{font-size:15px}.brand small{font-size:8px}.brand-mark{width:29px;height:29px;font-size:20px}.daily-banner{padding:12px}.daily-steps{gap:5px}.daily-steps span{font-size:9px}.character-tile span{font-size:9px}.growth-badge img{width:33px}.growth-badge span{font-size:10px}}
.gt-app:fullscreen{max-width:none;width:100%;height:100%;overflow:auto;background:#f7f2f7}.gt-app:fullscreen .session{max-width:1260px}.session-buttons{flex-wrap:wrap;justify-content:flex-end}
.happy-portrait{background-image:var(--happy-url);background-size:300% 200%;aspect-ratio:1/1;height:auto!important}.mentor-bg{object-position:70% 25%}
.mentor-bg{object-position:90% 25%}.celebration>img{object-position:92% 45%}.break-art>img{object-position:90% 40%}
.practice-grid .mentor-bg{object-position:90% 25%}
.keyboard-svg{overflow:hidden}
@media(max-width:740px) and (max-height:650px){.mentor-panel{min-height:72px}.mentor-bg{height:100px}.mentor-message p{font-size:10px}.mentor-message h2{font-size:11px}.problem-area{min-height:92px;padding:9px}.practice-status{gap:6px}.mode-badge{font-size:9px;padding:3px 6px}.progress-track{margin:8px 0 9px}.finger-label{min-height:27px;margin:3px 0;font-size:11px}.keycap{min-height:24px;font-size:14px;padding:2px 6px}.guide-note{font-size:9px}.session-tip{margin-top:9px;font-size:10px;padding:9px 11px}.pause-panel{gap:6px;padding:7px}.pause-panel h2{font-size:16px}.pause-panel p{font-size:10px}.pause-panel .primary{min-height:29px;padding:6px 12px;font-size:11px}}
@media(max-height:460px) and (min-width:700px){.appbar{min-height:42px}.session{margin-top:4px}.session-head{min-height:30px;margin-bottom:6px}.session-buttons .icon-button{min-height:30px;font-size:10px;padding:6px 9px}.mode-badge{font-size:9px;padding:3px 6px}.desk{padding-top:7px}.problem-area{min-height:56px;padding:5px}.problem-area .kana{font-size:16px;line-height:1.35}.romaji{font-size:20px;line-height:1.25}.finger-label{min-height:23px;margin:2px 0;font-size:10px}.keycap{min-height:22px;padding:1px 5px;font-size:13px}.feedback{min-height:11px;font-size:9px}.keyboard-wrap{max-width:320px}.session-tip{padding:6px 10px;margin-top:7px;font-size:9px}.pause-panel{gap:5px;padding:5px;flex-direction:row;flex-wrap:wrap}.pause-panel h2{font-size:13px}.pause-panel p{font-size:10px}.pause-panel .primary{min-height:28px;padding:5px 10px;font-size:10px}}
@media(max-width:740px) and (max-height:520px){.appbar{min-height:43px}.brand{font-size:14px}.brand-mark{width:27px;height:27px;font-size:19px}.brand small{display:none}.appbar .icon-button{font-size:9px;min-height:30px;padding:5px 7px}.session{margin-top:4px}.session-head{margin-bottom:7px;min-height:32px}.session-name{font-size:11px}.session-name small{font-size:9px}.session-buttons .icon-button{font-size:8px;min-height:28px;padding:5px}.practice-grid{gap:8px}.mentor-panel{min-height:55px;padding:7px 11px}.mentor-message h2{font-size:10px}.mentor-message p{font-size:9px;line-height:1.6}.desk{padding:8px 10px 4px}.practice-status{font-size:9px;gap:5px}.practice-status strong{font-size:10px}.mode-badge{font-size:8px;padding:2px 5px}.progress-track{margin:5px 0 7px;height:4px}.problem-area{min-height:67px;padding:6px}.problem-area .kana{font-size:18px;line-height:1.4}.romaji{font-size:21px;line-height:1.3}.finger-label{min-height:23px;margin:2px 0;font-size:10px}.keycap{font-size:12px;min-height:22px;padding:1px 5px}.feedback{min-height:13px;font-size:9px}.guide-note{display:none}.session-tip{font-size:9px;margin-top:7px;padding:7px 10px}.ready-copy h2{font-size:16px}.ready-copy p{font-size:10px;margin:5px 0 7px}.ready-copy .eyebrow{display:none}.ready-copy .primary{font-size:10px;min-height:30px;padding:6px 12px}}
@media(max-width:740px){.session-name{max-width:35%}.session-buttons{max-width:65%}}
@media(max-width:740px) and (min-height:521px) and (max-height:650px){.mentor-panel{min-height:64px}.session-name{font-size:11px}.session-name small{font-size:9px}}
@media(min-width:741px) and (min-height:461px) and (max-height:700px){.appbar{min-height:50px}.brand{font-size:19px}.brand-mark{width:34px;height:34px;font-size:23px}.brand small{font-size:9px}.session{margin-top:4px}.session-head{margin-bottom:6px;min-height:30px}.session-buttons .icon-button{font-size:11px;min-height:30px;padding:6px 9px}.desk{padding:10px 16px 4px}.mentor-panel{min-height:0}.practice-status{font-size:10px;gap:9px}.practice-status strong{font-size:12px}.mode-badge{font-size:9px;padding:3px 6px}.progress-track{margin:7px 0 9px}.problem-area{min-height:96px;padding:9px}.problem-area .kana{font-size:24px}.romaji{font-size:26px;line-height:1.45}.finger-label{min-height:30px;margin:2px 0;font-size:11px}.keycap{font-size:14px;min-height:24px;padding:2px 5px}.feedback{min-height:14px;font-size:10px}.keyboard-wrap{width:100%;max-width:min(620px,calc((100svh - 283px) * 2.19))}.guide-note{font-size:10px;padding-bottom:3px}.session-tip{padding:8px 12px;font-size:10px;margin-top:8px}.ready-copy h2{font-size:19px}.ready-copy p{font-size:11px;margin:6px 0 8px}.ready-copy .eyebrow{margin-bottom:4px}.ready-copy .primary{min-height:32px;padding:6px 13px;font-size:11px}}
@media(min-width:500px) and (max-height:320px){.appbar{min-height:36px}.brand{font-size:14px}.brand-mark{width:25px;height:25px;font-size:18px}.brand small{display:none}.appbar .icon-button{font-size:9px;min-height:25px;padding:4px 7px}.session{margin-top:3px}.session-head{min-height:24px;margin-bottom:4px}.session-name{font-size:11px}.session-name small{display:none}.session-buttons .icon-button{font-size:8px;min-height:24px;padding:4px 7px}.practice-grid{grid-template-columns:minmax(0,1fr) 140px;gap:8px}.desk{padding:5px 10px 2px}.practice-status{font-size:8px;gap:7px}.practice-status strong{font-size:10px}.mode-badge{font-size:8px;padding:2px 4px}.progress-track{height:3px;margin:4px 0 5px}.problem-area{min-height:43px;padding:4px}.problem-area .kana{font-size:14px;line-height:1.25}.romaji{font-size:17px;line-height:1.25}.finger-label{min-height:21px;margin:1px 0;font-size:9px}.keycap{min-height:19px;padding:1px 4px;font-size:11px}.feedback{min-height:9px;font-size:8px}.keyboard-wrap{max-width:min(230px,calc((100svh - 185px) * 2.19))}.guide-note,.session-tip{display:none}.mentor-message{bottom:7px;padding:8px}.mentor-message p{font-size:9px}.mentor-message h2{font-size:10px}.ready-copy h2{font-size:14px}.ready-copy p{font-size:9px;margin:3px 0 5px}.ready-copy .eyebrow{display:none}.ready-copy .primary{min-height:25px;padding:4px 10px;font-size:9px}}
@media(max-width:740px){.session-name{max-width:35%}.session-buttons{max-width:65%;gap:4px}.session-buttons .icon-button{font-size:9px;padding:6px;min-height:31px}.session-head{min-height:37px}}
@media(max-width:740px){.hero-chip{position:relative;bottom:auto;right:auto;margin:0 14px 14px auto;max-width:66%}}
@media(min-width:741px) and (min-height:461px) and (max-height:700px){.keyboard-wrap{max-width:min(620px,calc((100svh - 310px) * 2.19))}}

@media(min-width:500px) and (max-width:740px) and (max-height:320px){.appbar{min-height:36px}.session-head{min-height:24px;margin-bottom:4px}.session-buttons .icon-button{min-height:24px;padding:4px;font-size:8px}.practice-grid .mentor-panel{order:0;min-height:0;height:auto}.practice-grid .mentor-message{position:absolute;bottom:7px;left:8px;right:8px;max-width:none}.mentor-bg{height:100%}.desk{padding:5px 10px 2px}.session-name{max-width:40%}.keyboard-wrap{max-width:min(230px,calc((100svh - 185px) * 2.19))}}

@media(min-width:500px) and (max-height:320px){.ready-copy p{display:none}.ready-copy h2{font-size:12px;line-height:1.2}.ready-copy .primary{min-height:22px;padding:3px 8px;font-size:8px}.ready-copy{gap:3px}}

.hand-outline{fill:url(#gt-hand-skin);stroke:#c9975e;stroke-width:1.8}.finger-detail{fill:none;stroke:#c89a6b;stroke-width:1.2;opacity:.5;stroke-linecap:round}.palm-detail{fill:none;stroke:#c89a6b;stroke-width:1.1;opacity:.25;stroke-linecap:round}

@media(max-width:740px){.hero-scene{object-position:92% 18%}.hero-shade{background:linear-gradient(90deg,#fff9f2f5 0%,#fff9f2d9 60%,#fff9f240 100%),linear-gradient(0deg,#fff9f2a6,transparent 65%)}}

/* Face-first framing: crop below the head, toward the feet. */
.chapter-art img,.mode-card img,.stamp img,.mini-stamps img,.celebration>img,.break-art>img,.practice-grid .mentor-bg{object-position:right top}.hero-scene{object-position:92% top}
