@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{font-family:"DM Sans",system-ui,sans-serif;color:#28423e;background:#f7f3e9;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 65% 22% at 96% 2%,#fbe2e0,transparent),#f7f3e9}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #b65b67;outline-offset:3px}a{color:inherit;text-decoration:none}
.skip{position:absolute;top:-70px;left:20px;padding:12px;background:#fff;z-index:100}.skip:focus{top:12px}.page{max-width:1370px;margin:auto;padding:0 54px}
.site-header{height:102px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #2a51491a}.brand{display:flex;gap:12px;align-items:center}
.brand-flower{width:44px;height:44px;border-radius:50%;background:#eabbb7;color:#9e4b60;display:grid;place-items:center;font-size:29px;box-shadow:0 2px 0 #fff inset}
.brand strong{display:block;font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:24px;line-height:1}.brand small{font-size:11px;letter-spacing:.25em;display:block;margin-top:6px;color:#82918b}
.header-right{display:flex;align-items:center;gap:32px}.header-subtitle,.eyebrow,.map-hint,.map-name,.place-facts,.lesson-count{font-size:10px;letter-spacing:.15em;font-weight:700}.header-subtitle{color:#89978e}
.pill{border-radius:30px;padding:12px 17px;border:1px solid #d6dcd2;background:#fff7f0;color:#315e53;font-weight:600;font-size:12px;white-space:nowrap}.pill span:first-child{color:#ca7a7a;font-size:16px}.pill span:last-child{background:#e5eee7;border-radius:40px;padding:5px 7px;margin-left:7px}
.welcome{background:linear-gradient(112deg,#e9efe8,#f1f4e8 55%,#fae5dd);margin:31px 0 61px;min-height:350px;border-radius:22px;position:relative;overflow:hidden;display:grid;grid-template-columns:48% 52%;box-shadow:0 17px 45px #506a5412}
.welcome-copy{position:relative;z-index:3;padding:49px 0 46px 58px}.tiny-flower{font-size:16px;color:#be7276;margin-right:7px}.eyebrow{color:#a27770;display:flex;align-items:center;gap:4px}
.welcome h1{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:clamp(43px,4.4vw,68px);line-height:1.04;letter-spacing:-.034em;margin:20px 0 19px;color:#244940}.welcome h1 em{color:#b66c70}
.welcome p{font-size:14px;line-height:1.85;max-width:440px;color:#6d8177}.welcome-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:28px}
.primary{border:0;border-radius:11px;background:#2f695b;color:#fff;padding:15px 22px;display:inline-flex;align-items:center;justify-content:center;gap:20px;font-size:13px;font-weight:700;box-shadow:0 5px 0 #255747,0 12px 21px #285b4b21;transition:transform .17s,background .17s}
.primary:hover{background:#275747;transform:translateY(-2px)}.primary:active{transform:translateY(2px)}.primary:disabled{background:#aab4ac;box-shadow:none;cursor:not-allowed;transform:none}
.welcome-footnote{font-size:10px;color:#839089}.welcome-footnote span{color:#cc9a80}.welcome-illustration{position:relative;min-height:350px}.welcome-illustration img{position:absolute;height:116%;width:112%;object-fit:cover;object-position:center;right:-6%;bottom:-9%;mix-blend-mode:multiply}
.hero-kanji{font-family:Georgia,serif;font-size:190px;position:absolute;right:40%;top:-110px;color:#abc8ba;opacity:.12;pointer-events:none}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.section-heading h2{font-family:"DM Serif Display",Georgia,serif;font-size:36px;font-weight:400;line-height:1;margin:11px 0 0}
.chapter-progress{text-align:right;min-width:203px;margin-bottom:3px}.chapter-progress span{font-size:12px;font-weight:700;color:#547a68}.progress-rail{height:6px;background:#e3e6da;border-radius:100px;margin-top:12px;overflow:hidden}.progress-fill{height:100%;width:0;background:#76a78d;border-radius:100px;transition:width .3s}
.world-layout{display:grid;grid-template-columns:minmax(0,1.77fr) minmax(270px,.83fr);gap:23px}.map-frame{background:#fffdfa;border:1px solid #e9e5d8;border-radius:18px;overflow:hidden;box-shadow:0 12px 27px #335c4310}
.map-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 23px}.map-name{letter-spacing:.07em;color:#557269}.map-name span{font-size:18px;color:#d38d83;vertical-align:middle}.map-hint{color:#a5aba2;font-size:9px}
.illustrated-map{aspect-ratio:900 / 550;position:relative;background:#dce9d9;overflow:hidden}.map-art{display:block;width:100%;height:100%;object-fit:cover}
.journey-road{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.journey-road path{fill:none;stroke:#fff7e1;stroke-dasharray:3 12;stroke-linecap:round;stroke-width:5;filter:drop-shadow(0 1px 1px #60806588)}
.map-stop{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:7px;border:0;background:none;padding:0;min-width:115px;color:#28564d}
.map-stop .stop-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;border:4px solid #fffaf0;background:#fffcf4;box-shadow:0 4px 15px #31574e45;color:#9e5b6a;font-family:Georgia,serif;font-size:25px;transition:transform .2s,box-shadow .2s}
.map-stop:hover .stop-icon,.map-stop:focus-visible .stop-icon{transform:translateY(-5px);box-shadow:0 8px 18px #31574e55}.map-stop.current .stop-icon{background:#e9c8cf;border-color:#fff7ec;color:#9f4661;outline:2px solid #b97585;outline-offset:3px}
.map-stop.locked .stop-icon{filter:grayscale(.3);background:#eef0e8;color:#7f9287}.map-stop .stop-label{border-radius:15px;background:#fffdf0ee;border:1px solid #ede7d5;color:#365a50;box-shadow:0 2px 8px #43572c20;padding:6px 9px;white-space:nowrap;font-size:10px;font-weight:700}.map-stop.locked .stop-label{color:#8c9990}
.start-stop{left:16%;top:76%}.garden-stop{left:38%;top:59%}.tea-stop{left:59%;top:56%}.shrine-stop{left:82%;top:23%}.train-stop{left:81%;top:79%}
.map-footer{padding:16px 21px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}.map-footer>span{font-size:10px;color:#819186}.legend-dot{height:8px;width:8px;display:inline-block;border-radius:50%;margin-right:6px}.open-dot{background:#679c85}.locked-dot{background:#c6c9bf}.map-footer .map-footer-note{margin-left:auto;font-family:Georgia,serif;font-style:italic;color:#ba8b82}
.place-card{background:#fffefa;border-radius:18px;padding:30px 30px 22px;box-shadow:0 12px 27px #335c4310;border:1px solid #e9e5d8;display:flex;flex-direction:column}.place-number{font-size:10px;color:#b2807d}
.place-emoji{width:71px;height:71px;display:grid;place-items:center;background:#f5e7e4;border:1px solid #eddbd4;border-radius:21px;margin-top:29px;font-size:39px}.place-card h3{font-family:"DM Serif Display",Georgia,serif;font-size:34px;font-weight:400;line-height:1.15;margin:23px 0 3px;color:#2b5349}
.place-japanese{font-size:13px;color:#ad8580;letter-spacing:.09em;margin:0}.place-description{font-size:13px;line-height:1.85;color:#74867a;margin:24px 0}.place-facts{letter-spacing:0;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding:16px 0;border-top:1px solid #eceae1;color:#84968a;font-size:10px}.place-facts span:first-child{display:flex;gap:5px;align-items:center}.place-facts span:first-child span{color:#cb9a8e}
.available,.locked-status{font-size:10px;background:#e6f1e8;color:#4e8060;border-radius:20px;padding:6px 9px}.locked-status{background:#f1ebe5;color:#a38c83}.full-width{width:100%}.card-whisper{font-size:11px;text-align:center;margin:22px 0 0;font-family:Georgia,serif;font-style:italic;color:#b8a69a;line-height:1.5}
.below-map{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin:52px 0}.mini-feature{display:flex;gap:16px;align-items:flex-start}.feature-icon{width:52px;height:52px;min-width:52px;display:grid;place-items:center;border-radius:16px;background:#e5eae0;color:#52836d;font-size:27px}
.mini-feature:nth-child(2) .feature-icon{background:#fae8e0;color:#b77d70}.mini-feature:nth-child(3) .feature-icon{background:#ece9e0;color:#b1935d}.mini-feature h3{margin:2px 0 7px;font-family:"DM Serif Display",Georgia,serif;font-size:19px;font-weight:400}.mini-feature p{font-size:12px;line-height:1.8;margin:0;color:#8b9a8e}
footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e6e7db;padding:25px 0 31px;color:#a1a99d;font-size:11px}footer span span{color:#c78b91}footer a:hover{text-decoration:underline}
dialog{border:1px solid #e1e4d7;background:#fffdf7;border-radius:21px;color:#2c5148;box-shadow:0 28px 90px #183d344d;width:min(880px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;overflow:auto}dialog::backdrop{background:#152b27aa;backdrop-filter:blur(5px)}
.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #efede2;padding:15px 24px}.icon-button{border:0;border-radius:50%;background:#f0f2ea;font-size:25px;color:#496a5e;width:36px;height:36px;line-height:1}
.modal-content{padding:30px 34px 34px}.lesson-intro{display:flex;justify-content:space-between;gap:15px;align-items:center}.lesson-intro h2,.journal-content h2{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:35px;margin:0 0 8px}.lesson-intro p,.journal-content>p{font-size:13px;color:#849489;line-height:1.8;margin:0}.lesson-count{font-size:11px;letter-spacing:0;background:#e4efe5;border-radius:30px;padding:10px;color:#517761;white-space:nowrap}
.lesson-tabs{display:flex;gap:8px;overflow-x:auto;margin:29px 0 20px;padding-bottom:5px}.lesson-tabs button{background:transparent;border:1px solid #dedfd4;padding:11px 15px;white-space:nowrap;border-radius:26px;color:#789083;font-size:12px;font-weight:700}.lesson-tabs button[aria-selected=true]{background:#2f695b;border-color:#2f695b;color:#fff}
.kana-picker{display:flex;gap:11px;flex-wrap:wrap;margin-bottom:23px}.kana-picker button{min-width:65px;background:#faf7ef;border:1px solid #e7e4d8;border-radius:12px;padding:8px 15px;text-align:center;color:#355d52}.kana-picker button.active{background:#f8e0dd;border-color:#cc9192;outline:1px solid #cc9192}.kana-picker button strong{font-family:Georgia,serif;font-size:30px;font-weight:400;display:block}.kana-picker button small{font-size:11px;color:#9ba49a}.kana-picker button .kana-tick{color:#569270;font-size:12px}
.lesson-panel{min-height:250px;border-radius:17px;background:linear-gradient(135deg,#f2f5ed,#fff6ec);padding:25px}.discover-panel,.trace-layout,.practice-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px;align-items:center}
.big-kana{background:#fffefb;border-radius:16px;min-height:222px;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:150px;line-height:1;color:#2e655a;border:1px solid #eae8da}.panel-copy h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:30px;line-height:1.15;margin:0 0 12px}.panel-copy p{font-size:13px;line-height:1.8;color:#7e9186}.panel-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:700;color:#aa8481}
.soft-button{border:1px solid #cddbd1;background:#fffefa;color:#37695a;font-size:12px;border-radius:10px;padding:12px 16px;font-weight:700}.soft-button:hover{background:#eff6ed}.actions-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.feedback{min-height:25px;font-size:12px;color:#567c67;font-weight:600}
.trace-box{position:relative;width:100%;max-width:330px;aspect-ratio:1;background:#fffefa;border:1px solid #dfdfd1;border-radius:16px;overflow:hidden;background-image:linear-gradient(to right,transparent 49.8%,#e5e4d7 50%,transparent 50.2%),linear-gradient(to bottom,transparent 49.8%,#e5e4d7 50%,transparent 50.2%)}
.trace-ghost{position:absolute;inset:0;display:grid;place-items:center;font-family:Georgia,serif;font-size:170px;color:#e1e9de;pointer-events:none;user-select:none}.trace-box canvas{position:absolute;width:100%;height:100%;inset:0;touch-action:none;cursor:crosshair}.trace-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.trace-controls button{padding:9px 12px;font-size:11px}
.practice-question{font-size:16px;color:#416d5f;margin:0 0 18px}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choices button{background:#fffefa;border:1px solid #e2e2d5;border-radius:12px;padding:14px;font-family:Georgia,serif;color:#2b6156;font-size:38px}.choices button:hover{border-color:#629985}.choices button:disabled{cursor:default;opacity:.7}.choices button.correct{background:#e8f2e7;border-color:#6aab7e}.choices button.wrong{background:#fff0e4;border-color:#cba17e}
.collection-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.collection-grid button{padding:13px 0;background:#fffef9;border:1px solid #e5e4d8;border-radius:13px;color:#2a6254}.collection-grid button:disabled{opacity:.5;cursor:default;background:#f1f0e8}.collection-grid strong{display:block;font-family:Georgia,serif;font-weight:400;font-size:34px}.collection-grid small{font-size:10px;color:#8fa092}.collection-help{font-size:12px;color:#829487;margin-bottom:18px}
.journal-content{padding:32px 35px 36px;text-align:center}.journal-symbol{font-size:50px;color:#bd8088}.journal-cards{display:flex;justify-content:center;gap:9px;margin:25px 0 30px}.journal-cards span{width:68px;padding:9px 0;background:#f2f2e8;border-radius:10px;font-family:Georgia,serif;font-size:31px;color:#aab5a7}.journal-cards span.earned{background:#e8f3e4;color:#3b7765}.journal-cards small{font-family:"DM Sans",system-ui,sans-serif;font-size:10px;display:block}.journal-warning{font-size:11px!important;margin-top:24px!important;color:#a39a90!important}
@media(max-width:1100px){.page{padding:0 25px}.welcome-copy{padding-left:35px}.world-layout{grid-template-columns:1.35fr 1fr}.place-card{padding:25px 22px}.place-card h3{font-size:29px}.map-hint{display:none}.map-stop .stop-label{font-size:9px}.map-stop .stop-icon{width:48px;height:48px}}
@media(max-width:800px){.header-subtitle{display:none}.welcome{grid-template-columns:1fr;min-height:0}.welcome-copy{padding:36px 36px 10px}.welcome-illustration{min-height:245px}.welcome-illustration img{bottom:-5%;height:138%;width:100%;right:0;object-fit:contain}.welcome h1{font-size:55px}.world-layout{grid-template-columns:1fr}.place-card{min-height:unset}.place-emoji{margin-top:20px}.place-description{margin:16px 0}.below-map{gap:20px}.mini-feature{display:block}.feature-icon{margin-bottom:12px}}
@media(max-width:560px){
.page{padding:0 14px}.site-header{height:76px}.brand strong{font-size:20px}.brand-flower{width:38px;height:38px;font-size:24px}.pill{font-size:11px;padding:9px}.header-right{gap:0}
.welcome{margin:16px 0 40px;border-radius:16px}.welcome-copy{padding:31px 23px 0}.welcome h1{font-size:45px}.welcome p{font-size:13px}.welcome-illustration{min-height:206px}.welcome-illustration img{height:145%}
.section-heading{align-items:start}.section-heading h2{font-size:31px}.section-heading .eyebrow{font-size:9px}.chapter-progress{min-width:105px;width:120px}.chapter-progress span{font-size:10px}
.map-topbar{padding:14px}.illustrated-map{aspect-ratio:9 / 7}.map-art{object-fit:cover}.map-stop{min-width:50px;gap:5px}.map-stop .stop-icon{width:41px;height:41px;font-size:19px;border-width:3px}.map-stop .stop-label{white-space:normal;text-align:center;font-size:9px;padding:4px 6px;max-width:86px}
.start-stop{left:14%;top:76%}.garden-stop{left:39%;top:58%}.tea-stop{left:60%;top:53%}.shrine-stop{left:84%;top:22%}.train-stop{left:83%;top:78%}.map-footer{gap:12px;padding:12px}.map-footer .map-footer-note{display:none}
.below-map{grid-template-columns:1fr;margin:34px 0;gap:23px}.mini-feature{display:flex;gap:14px}.feature-icon{margin:0}footer{font-size:10px}
.modal-head{padding:12px 16px}.modal-content{padding:21px 15px}.lesson-intro h2{font-size:27px}.lesson-count{display:none}.lesson-tabs{margin:18px 0}.lesson-tabs button{font-size:10px;padding:10px}.kana-picker{gap:6px}.kana-picker button{min-width:52px;padding:6px 10px}.kana-picker button strong{font-size:23px}.lesson-panel{padding:14px}.discover-panel,.trace-layout,.practice-panel{grid-template-columns:1fr}.big-kana{min-height:137px;font-size:100px}.trace-box{justify-self:center}.collection-grid{grid-template-columns:repeat(5,1fr)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Garden v2 — animated stroke guidance, progressive kana rows and friendly reviews. */
.lesson-rowbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#eaf0e5;border:1px solid #dfe8d9;border-radius:13px;padding:13px 17px;margin-bottom:14px}
.row-identity{display:flex;flex-direction:column;gap:4px}.row-identity .eyebrow{font-size:9px}.row-identity strong{font-family:"DM Serif Display",Georgia,serif;font-size:22px;font-weight:400;color:#345d50}
.row-identity small{font-size:11px;color:#899b8b}.row-navigation{display:flex;align-items:center;gap:8px}
.row-navigation>span{font-size:10px;color:#6e8a77;margin-right:5px;white-space:nowrap}
.row-navigation .soft-button{padding:9px 12px}.soft-button:disabled{cursor:not-allowed;opacity:.38}
.guide-card{display:grid;gap:8px;justify-items:center;background:#fffefb;border:1px solid #eae8da;border-radius:16px;padding:10px;overflow:hidden}
.guide-card .stroke-demo{display:block;width:100%;height:210px;object-fit:contain}
.guide-card .soft-button{margin-bottom:6px}
.stroke-demo{background:#fffef9;border-radius:10px;display:block;max-width:100%;aspect-ratio:1;object-fit:contain}
.mini-stroke-card{display:flex;gap:10px;align-items:center;background:#fffefb;border:1px solid #e8e8dd;border-radius:12px;padding:8px;margin:12px 0}
.mini-stroke-card .stroke-demo{width:112px;min-width:112px;max-height:116px}
.mini-stroke-card strong{display:block;font-size:13px;color:#446f60}
.mini-stroke-card p{font-size:11px;margin:5px 0;line-height:1.5}
.mini-stroke-card button{padding:8px 11px}
.trace-ghost[hidden]{display:none}
.collection-intro h3,.review-header h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:27px;margin:2px 0 7px}
.collection-intro p,.review-header p{color:#7e9186;font-size:12px;line-height:1.75}
.collection-sections{display:grid;gap:16px;margin-top:18px}
.collection-section{border:1px solid #e2e7da;background:#f9faf3;border-radius:14px;padding:13px}
.collection-row-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px}
.collection-row-label strong{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:18px}
.collection-row-label small{color:#768c7e;font-size:11px}
.collection-section .collection-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.collection-grid button{min-width:0}
.review-list{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}
.review-token{border:1px solid #dce7d8;border-radius:12px;min-width:90px;padding:12px 14px;background:#fffefa;color:#3b6e5e}
.review-token:hover,.review-token:focus-visible{background:#e5f2e5}
.review-token strong{display:block;font-family:Georgia,serif;font-weight:400;font-size:39px}
.review-token small{display:block;font-size:12px}
.journal-cards{flex-wrap:wrap}
@media(max-width:800px){.lesson-rowbar{padding:11px 12px}.row-identity strong{font-size:20px}.row-navigation>span{font-size:10px}.guide-card .stroke-demo{height:175px}}
@media(max-width:560px){
 .lesson-rowbar{align-items:flex-start;flex-wrap:wrap;gap:9px}
 .row-navigation{width:100%;justify-content:flex-end}
 .discover-panel{grid-template-columns:1fr}
 .guide-card .stroke-demo{height:170px}
 .mini-stroke-card .stroke-demo{width:94px;min-width:94px;max-height:96px}
 .mini-stroke-card p{font-size:10px}
 .trace-box{max-width:330px}
 .collection-section .collection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 .collection-grid button{padding:8px 0}
 .collection-grid strong{font-size:27px}
 .collection-grid small{font-size:9px}
 .review-token{min-width:65px}
 .journal-cards span{width:51px;font-size:24px}
}

@media(max-width:560px){.lesson-tabs{flex-wrap:wrap;overflow:visible}.lesson-tabs button{flex:1 1 40%;white-space:normal}.lesson-intro p{max-width:275px}}

/* Optional word postcards live within the hiragana collection, without changing the map. */
.lesson-rowbar[hidden],.kana-picker[hidden]{display:none!important}
.word-teaser{display:flex;align-items:center;gap:13px;margin:18px 0 8px;padding:15px;border:1px solid #eaded2;background:linear-gradient(125deg,#fff9f0,#f3f0e5);border-radius:13px}
.word-teaser-symbol{font-size:27px;background:#f6e5df;border-radius:12px;padding:10px}
.word-teaser>div:nth-child(2){flex:1}
.word-teaser strong{font-family:"DM Serif Display",Georgia,serif;font-size:19px;font-weight:400;color:#3d6557}
.word-teaser p{margin:3px 0 0;color:#8a9687}
.word-teaser button{white-space:nowrap}
.word-postcards{display:grid;gap:17px}
.postcard-heading h3{font-family:"DM Serif Display",Georgia,serif;font-size:30px;font-weight:400;margin:10px 0 6px}
.postcard-heading>p{max-width:680px;line-height:1.8;font-size:13px;color:#788e7d}
.postcard-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px}
.postcard-count{font-size:11px;color:#7a9682;flex:1}
.word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.word-card{border:1px solid #e4e6d7;border-radius:13px;background:#fffdf6;padding:14px 6px;display:flex;align-items:center;flex-direction:column;gap:5px;color:#346c59;transition:transform .16s,border-color .16s}
.word-card:hover:not(:disabled){transform:translateY(-2px);border-color:#98bc9c}
.word-card[aria-pressed="true"]{border-color:#ae8a87;background:#fcf2ea}
.word-card strong{font-family:Georgia,serif;font-size:32px;font-weight:400;line-height:1.3}
.word-card small{font-size:10px;color:#9b998c}
.word-symbol{font-size:27px}
.word-locked{opacity:.5;cursor:default;background:#f1f0e7}
.word-earned{background:#edf5e9;border-color:#a7c9a8}
.postcard-empty{grid-column:1/-1;color:#80927f;font-size:12px}
.postcard-study:empty{display:none}
.postcard-study{background:#fffaf0;border:1px solid #e7e2d6;border-radius:16px;padding:18px}
.postcard-detail{display:grid;grid-template-columns:130px minmax(0,1fr);gap:19px;align-items:center}
.postcard-visual{width:130px;height:155px;background:radial-gradient(circle at 28% 22%,#f7d9d1,transparent 65%),linear-gradient(145deg,#e3eddb,#f8e8d9);display:grid;place-items:center;border-radius:14px;font-size:64px}
.postcard-word{font-family:Georgia,serif;font-size:45px;color:#376755;margin:9px 0}
.postcard-reading{font-size:15px;color:#648272;margin:0}.postcard-note{font-size:12px;line-height:1.75;color:#8b9587}
.word-question{margin-top:20px;padding-top:15px;border-top:1px solid #e9e4d9}
.word-question h4{font-family:"DM Serif Display",Georgia,serif;font-size:21px;font-weight:400;margin:0 0 14px}
.word-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.word-choices .soft-button{font-size:12px;white-space:normal;min-height:44px}
.word-choices button.correct{background:#e4f3df;border-color:#7baa82;color:#386953}
.word-choices button.wrong{background:#fbebe3;border-color:#d1a490;color:#966f55}
@media(max-width:800px){.word-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.word-teaser{flex-wrap:wrap}.word-teaser button{width:100%}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.postcard-detail{grid-template-columns:1fr}.postcard-visual{height:100px;width:100%;font-size:52px}.word-choices{grid-template-columns:1fr}}

/* Pass 4: an optional, self-contained Lantern Evening story. No map CSS changes. */
.lantern-teaser{display:flex;align-items:center;gap:16px;margin:18px 0 3px;border:1px solid #e2d5c6;border-radius:15px;padding:17px;background:linear-gradient(118deg,#f7e9dd,#f2ebdf 54%,#e3ede2)}
.lantern-asleep{background:#f4f2ea;border-color:#ebe8dd}
.lantern-emblem{width:58px;min-width:58px;height:67px;background:radial-gradient(circle,#fae0b0,#e7c6af 60%,#e8dbce 100%);display:grid;place-items:center;border-radius:29px 29px 14px 14px;font-size:34px;box-shadow:0 6px 16px #9d645233}
.lantern-asleep .lantern-emblem{filter:grayscale(.35);opacity:.7}
.lantern-teaser-copy{flex:1}
.lantern-teaser-copy .panel-kicker{font-size:9px}
.lantern-teaser h4{font-family:"DM Serif Display",Georgia,serif;font-size:25px;color:#38584f;font-weight:400;margin:4px 0}
.lantern-teaser p{font-size:12px;color:#7a8c80;line-height:1.7;margin:0}
.lantern-teaser>button{white-space:nowrap}
.lantern-story{background:#253b46;color:#f5ecde;border-radius:16px;padding:16px;overflow:hidden}
.lantern-story-top{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:3px 6px 15px}
.lantern-story .panel-kicker{color:#e2b5a4;letter-spacing:.16em;font-size:10px}
.lantern-story .soft-button{border:1px solid #8d9e97;background:#fbf4e7;color:#365d54}
.lantern-story .soft-button:disabled{background:#b9c0b5;opacity:.5}
.lantern-story .soft-button:hover:not(:disabled){background:#fff}
.lantern-story .primary{background:#dcab8a;box-shadow:0 4px 0 #a57d68,0 10px 22px #12263044;color:#223f43}
.lantern-story .primary:hover{background:#edc49c}
.lantern-picture{width:100%;overflow:hidden;border-radius:12px 12px 2px 2px;background:linear-gradient(130deg,#465f66,#ad887d);box-shadow:0 8px 25px #11283463}
.lantern-picture img{display:block;max-width:100%;width:100%;height:auto;aspect-ratio:1000 / 580;object-fit:cover}
.lantern-caption{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px;padding:24px 17px 12px;align-items:start}
.lantern-caption h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:33px;line-height:1.12;color:#ffe6c7;margin:11px 0}
.lantern-narrative{color:#d6dfd7;font-size:13px;line-height:1.9;margin:10px 0 0}
.lantern-phrase{border-left:1px solid #f0cfb957;padding:0 5px 0 24px}
.lantern-phrase-header{color:#e1bda6;font-size:10px;letter-spacing:.09em}
.lantern-japanese{font-family:Georgia,serif;font-size:29px;line-height:1.35;color:#fff1d9;margin:16px 0 4px}
.lantern-romaji{font-size:12px;color:#d9bfa8;margin:5px 0 0;font-style:italic}
.lantern-translation{font-family:Georgia,serif;font-style:italic;font-size:18px;color:#f6d6bd;margin:12px 0}
.lantern-phrase .feedback{font-size:11px;color:#f3d5bb;min-height:0}
.lantern-story-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 11px 0;border-top:1px solid #e4dac02e;padding:20px 3px 7px}
#lantern-counter{font-size:12px;letter-spacing:.19em;font-weight:700;color:#e4c5af}
.lantern-endnote{font-family:Georgia,serif;font-style:italic;text-align:center;font-size:11px;color:#b7c9c1;margin:14px 0 4px}
@media(max-width:750px){.lantern-teaser{flex-wrap:wrap}.lantern-teaser>button{margin-left:auto}.lantern-caption{gap:15px;padding:20px 8px 8px}.lantern-caption h3{font-size:26px}.lantern-phrase{padding-left:15px}}
@media(max-width:560px){.lantern-story{padding:10px}.lantern-story-top{align-items:flex-start;flex-wrap:wrap}.lantern-story-top .panel-kicker{font-size:9px}.lantern-caption{grid-template-columns:1fr;padding:18px 10px;gap:18px}.lantern-picture{border-radius:10px}.lantern-caption h3{font-size:30px}.lantern-phrase{border-left:0;border-top:1px solid #f0cfb957;padding:17px 0 0}.lantern-story-controls{gap:8px;margin:2px 4px 0}.lantern-story-controls button{padding:10px 9px;font-size:11px;gap:4px}.lantern-teaser>button{width:100%}.lantern-phrase-header{font-size:9px}}
@media(prefers-reduced-motion:reduce){.lantern-story *{scroll-behavior:auto!important}}

/* Pass 5: small savoury-first yatai lane; existing map geometry and theme unchanged. */
.food-modal-title h2{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:35px;margin:0 0 7px;color:#31594d}
.food-modal-title>p{font-size:13px;color:#8b998c;margin:0 0 22px}
.food-lane{display:grid;gap:16px}
.food-welcome{overflow:hidden;border-radius:15px;background:linear-gradient(145deg,#ddece0,#f6e3d4);border:1px solid #e7e8d7}
.food-welcome-art{height:168px;overflow:hidden;background:#88a59a}
.food-welcome-art img{width:100%;height:100%;object-fit:cover;display:block}
.food-welcome-copy{padding:19px 23px 22px}
.food-welcome-copy h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:29px;line-height:1.15;margin:7px 0;color:#355b4e}
.food-welcome-copy p{font-size:12px;line-height:1.8;margin:7px 0 0;color:#758e7f}
.food-layout{display:grid;grid-template-columns:minmax(190px,.84fr) minmax(0,1.16fr);gap:16px;align-items:start}
.food-menu-area{min-width:0}
.food-menu-heading{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.food-menu-heading h4{font-family:"DM Serif Display",Georgia,serif;font-size:21px;font-weight:400;margin:0}
.food-menu-heading span{font-size:11px;color:#819788}
.food-menu{display:grid;grid-template-columns:1fr;gap:7px}
.food-menu-item{border:1px solid #e0e5d9;background:#fffdf7;border-radius:12px;padding:11px;min-width:0;text-align:left;display:flex;align-items:center;gap:10px;color:#385f53}
.food-menu-item:hover{background:#f1f5eb;border-color:#aec8b2}
.food-menu-item[aria-pressed="true"]{background:#eef4e6;border-color:#7aa88f;box-shadow:0 0 0 1px #a5c5aa}
.food-dish-emoji{min-width:41px;width:41px;height:42px;display:grid;place-items:center;background:#f8eee1;border-radius:10px;font-size:23px}
.food-menu-name{min-width:0;flex:1}
.food-menu-name strong{display:block;font-size:17px;font-weight:500;line-height:1.1}
.food-menu-name small{font-size:11px;display:block;color:#879a8d;margin-top:5px}
.food-menu-check{font-weight:700;color:#78a285;font-size:15px}
.food-detail{padding:20px 18px;border:1px solid #e6e4d5;border-radius:15px;background:linear-gradient(125deg,#fffef8,#f8f1e7);min-height:345px}
.food-detail-top{display:flex;gap:15px;align-items:center}
.food-detail-emoji{height:73px;width:73px;min-width:73px;display:grid;place-items:center;border-radius:17px;background:#f4e4d6;font-size:37px}
.food-detail-top h4{font-family:"DM Serif Display",Georgia,serif;font-size:29px;color:#315c4d;font-weight:400;margin:5px 0;line-height:1.35}
.food-detail-top ruby rt{font-size:10px;color:#9b8b81;font-family:"DM Sans",system-ui,sans-serif}
.food-roman{color:#80968a;font-size:12px;margin:2px 0}
.food-description{font-size:13px;line-height:1.75;color:#6d8678;margin:17px 0 9px}
.food-note{color:#a37d70;font-size:11px;line-height:1.7;margin:0 0 15px}
.food-order-phrase{background:#e7efe5;border-radius:12px;padding:13px 15px}
.food-order-phrase>span,.food-order-phrase>small{font-size:10px;letter-spacing:.11em;color:#60806d}
.food-order-phrase p{font-family:Georgia,serif;color:#316454;font-size:23px;line-height:1.3;margin:10px 0 4px}
.food-order-phrase>small{letter-spacing:0;font-size:11px}
.food-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.food-detail-actions button{font-size:11px;padding:11px 13px;gap:5px}
.food-question{padding-top:16px;margin-top:10px;border-top:1px solid #e7e0d6}
.food-question h5{font-family:"DM Serif Display",Georgia,serif;font-size:22px;font-weight:400;margin:9px 0 7px}
.food-quiz-japanese{font-size:24px;color:#356958;font-family:Georgia,serif;line-height:1.45;margin:8px 0 15px}
.food-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.food-choice{min-width:0;white-space:normal!important;min-height:45px;font-size:11px!important;padding:10px 8px!important}
.food-choice.wrong{background:#fceee6;border-color:#d5a08a;color:#926a5d}
.food-choice.correct{background:#e1f0e1;border-color:#7ca988;color:#366b54}
#food-next{font-size:11px;padding:10px 12px;margin-top:4px}
.food-courtesy{border-radius:13px;background:#f3eee4;padding:13px 17px;display:flex;gap:12px;align-items:flex-start;color:#807e6b;font-size:11px;line-height:1.75}
.food-courtesy>span:first-child{font-size:22px}
.food-courtesy strong{color:#4c7668}
.food-footnote{text-align:center;font-size:10px;color:#a0a99a;margin:0 0 3px}
@media(max-width:750px){.food-layout{grid-template-columns:1fr}.food-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.food-menu-item{gap:8px}.food-menu-name strong{font-size:16px}.food-menu-name small{font-size:10px}.food-welcome-copy{padding:15px 17px}}
@media(max-width:480px){.food-modal-title h2{font-size:28px}.food-welcome-art{height:112px}.food-welcome-copy h3{font-size:25px}.food-menu-item{padding:9px 6px;gap:5px}.food-dish-emoji{width:33px;min-width:33px;height:36px;font-size:19px}.food-menu-name strong{font-size:15px}.food-menu-name small{font-size:9px}.food-menu-check{display:none}.food-detail{padding:13px 12px}.food-detail-emoji{min-width:58px;width:58px;height:60px;font-size:31px}.food-detail-top h4{font-size:26px}.food-choice-grid{grid-template-columns:1fr}}
