*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#263e4c;background:#faf8f2;-webkit-tap-highlight-color:transparent}body{margin:0;min-height:100svh}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,.flashcard:focus-visible{outline:3px solid #6b9fc1;outline-offset:3px}[hidden]{display:none!important}.topbar{max-width:1160px;margin:auto;height:59px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #e8e2d8}.brand{font-size:13px;letter-spacing:.08em;color:#62798a;text-decoration:none;display:flex;align-items:center;gap:7px;font-weight:600}.brand i{font-weight:400}.brand-mark{font-family:Georgia,serif;font-size:26px;color:#a4ad84}.home-link{border:0;background:transparent;color:#58768a;font-size:13px;font-weight:600;padding:10px}main{max-width:1160px;margin:0 auto;padding:0 24px}.landing{max-width:1100px;margin:auto}.landing-heading{text-align:center;margin:33px auto 24px}.kicker,.eyebrow{color:#82929a;font-size:12px;letter-spacing:.11em}.landing h1{font-size:clamp(27px,3vw,39px);margin:8px 0 11px;letter-spacing:.035em;font-weight:750}.landing-heading p{color:#6a7f8b;margin:0;font-size:14px}.deck-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.deck-tile{background:#fffefa;border:1px solid #e7e0d5;border-radius:18px;padding:17px 15px 15px;box-shadow:0 4px 22px #b7b0a116;display:flex;flex-direction:column;align-items:stretch}.deck-tile img{height:206px;width:100%;object-fit:contain;border-radius:10px;background:#faf8f2}.deck-heading{font-size:21px;font-weight:750;text-align:center;margin:14px 0 2px}.deck-sub{font-size:12px;color:#7e8c94;text-align:center;margin-bottom:12px}.deck-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:auto}.deck-actions button{min-height:74px;background:#fffefa;color:#315069;border:1px solid #d9e4eb;border-radius:14px;font-weight:650;padding:10px 6px}.deck-actions button:hover{background:#f7fbfd;border-color:#a8c4d4}.flag-button,.lang-flag-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.flag-mark{font-size:26px;line-height:1}.flag-button small,.lang-flag-button small{display:block;font-size:11px;color:#5d7381;font-weight:600;line-height:1.25}.lang-tabs{margin:12px 0 11px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lang-tabs button{padding:12px 8px;border:1px solid #d8e5ea;background:#fffefa;color:#536d7c;border-radius:14px;line-height:1.25;font-weight:650;font-size:13px;min-width:0;min-height:82px}.lang-tabs button.active{background:#f3fafc;border:2px solid #85acc0;color:#244e68;padding:11px 7px}.lang-tabs .flag-mark{font-size:30px}.lang-tabs small{display:block;font-size:11px;color:#6a8190;font-weight:600;margin-top:0}.landing-note{text-align:center;color:#80909a;font-size:12px;line-height:1.8;margin:22px 0}.study{max-width:890px;margin:0 auto;padding-top:16px}.study-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 9px}.study h1{font-size:clamp(23px,3.2vw,31px);line-height:1.3;margin:1px 0 0}.eyebrow{margin:0}.study-right{display:flex;align-items:center;gap:12px;white-space:nowrap}.counter{background:#ecece6;border-radius:20px;color:#476175;font-weight:700;font-size:13px;padding:8px 13px;font-variant-numeric:tabular-nums}.text-button{border:0;background:none;color:#608098;font-size:12px}.deck-tabs{display:flex;gap:8px}.deck-tabs{margin:9px 0}.deck-tabs button{border:1px solid #dfe5e5;background:#fffefa;color:#496a7d;border-radius:9px;padding:8px 15px;font-size:13px;font-weight:650}.deck-tabs button.active{background:#e8f0f3;border-color:#9bb7c6;color:#244c67}.progress{background:#e8eceb;height:5px;border-radius:5px;overflow:hidden;margin-bottom:13px}.progress div{height:100%;width:0;background:#8aaeb3;border-radius:5px;transition:width .1s linear}.flashcard{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;background:white;border:1px solid #e9e1d7;border-radius:18px;min-height:355px;box-shadow:0 5px 24px #b6afa01b;user-select:none;cursor:pointer}.picture-panel{background:#faf8f2;display:flex;position:relative;align-items:center;justify-content:center;overflow:hidden;border-right:1px solid #eee6db}.picture-panel img{display:block;width:100%;max-height:343px;object-fit:contain;mix-blend-mode:multiply}.page-label{font-size:11px;color:#8a999e;position:absolute;bottom:13px;left:0;right:0;text-align:center}.word-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px 18px;text-align:center;gap:14px}.japanese{font-weight:750;font-size:clamp(25px,3.4vw,39px);letter-spacing:.01em;line-height:1.55;overflow-wrap:anywhere}.answer-zone{height:125px;max-width:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.answer-prompt{font-size:14px;line-height:1.85;color:#9aa4a6}.answer-word{font-family:Georgia,serif;font-weight:600;font-size:clamp(23px,3vw,34px);color:#294e62;line-height:1.4;overflow-wrap:anywhere}.answer-reading{font-size:clamp(14px,1.7vw,18px);line-height:1.6;margin-top:7px;color:#667e8a;overflow-wrap:anywhere}.controls{display:flex;gap:10px;justify-content:center;margin:15px 0 8px}.btn{border-radius:12px;min-height:48px;padding:9px 19px;font-weight:650;font-size:15px}.btn-primary{flex:1;max-width:400px;color:white;background:#547d96;border:1px solid #547d96}.btn-primary:hover{background:#456e87}.btn-secondary{color:#42647a;border:1px solid #d5e2e9;background:white;min-width:120px}.btn-secondary:hover{background:#edf5f7}.extra-controls{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;color:#8e9ba0;font-size:11px}.extra-controls button{border:0;background:transparent;padding:7px;color:#668298;font-size:12px}footer{margin:24px auto 14px;padding:8px 18px;text-align:center;color:#a0aaac;font-size:11px}@media(max-width:800px){.deck-grid{gap:11px}.deck-tile{padding:12px}.deck-tile img{height:170px}.deck-heading{font-size:18px}.deck-actions button{font-size:12px}.study{max-width:670px}}@media(max-width:660px){.topbar{height:48px;padding:0 13px}.brand{font-size:11px}main{padding:0 10px}.landing-heading{margin:26px auto 17px}.landing-heading h1{font-size:25px}.landing-heading p{font-size:12px;line-height:1.65;padding:0 10px}.deck-grid{grid-template-columns:1fr;gap:13px;max-width:430px;margin:auto}.deck-tile{display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:13px;padding:12px}.deck-tile img{grid-row:1/4;width:110px;height:120px}.deck-heading{text-align:left;margin:6px 0 2px;font-size:19px}.deck-sub{text-align:left;margin:0 0 9px}.deck-actions{align-self:end}.deck-actions button{min-height:58px;font-size:11px;padding:6px}.deck-actions .flag-mark{font-size:22px}.deck-actions .flag-button small{font-size:10px}.study{padding-top:9px}.study h1{font-size:22px}.eyebrow{font-size:10px}.study-top{margin-bottom:5px}.deck-tabs{gap:5px;margin:7px 0}.deck-tabs button{flex:1;padding:7px 6px;font-size:11px}.lang-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0}.lang-tabs button{min-height:70px;font-size:12px;padding:8px 2px}.lang-tabs button.active{padding:7px 1px}.lang-tabs .flag-mark{font-size:26px}.lang-tabs small{font-size:10px}.progress{margin-bottom:8px;height:4px}.flashcard{grid-template-columns:1fr;min-height:0}.picture-panel{height:min(33svh,215px);border-right:0;border-bottom:1px solid #eee6db}.picture-panel img{max-height:100%;height:100%}.page-label{font-size:10px;bottom:4px}.word-panel{height:auto;min-height:168px;padding:13px 10px;gap:3px}.japanese{font-size:clamp(22px,6vw,28px);line-height:1.45}.answer-zone{height:90px}.answer-word{font-size:clamp(22px,5.5vw,27px)}.answer-reading{font-size:clamp(13px,3.6vw,16px);margin-top:4px}.answer-prompt{font-size:12px}.controls{margin:10px 0 4px;gap:7px}.btn{min-height:43px;padding:8px;font-size:13px}.btn-secondary{min-width:76px}.extra-controls{gap:10px;font-size:10px}.extra-controls button{font-size:11px;padding:6px}.counter{padding:6px 10px;font-size:11px}.text-button{display:none}footer{margin:7px auto;font-size:9px}}@media(max-width:360px){.picture-panel{height:min(29svh,185px)}.word-panel{min-height:150px}.study h1{font-size:20px}.btn{min-height:40px}}@media(max-height:630px) and (min-width:661px){.study{padding-top:8px}.flashcard{min-height:270px}.picture-panel img{max-height:265px}.word-panel{padding:14px}.answer-zone{height:100px}footer{margin:10px}}
