:root{color-scheme:dark;--bg:#0e1728;--panel:#17243a;--muted:#9aaac0;--blue:#8ebeff;--line:#2a3a50;--white:#f5f4ef;--ink:#172b4c;--green:#80e3ac;--red:#ffa5a8}*{box-sizing:border-box}body{margin:0;background:#0a1220;color:#f5f7fb;font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ebeff;outline-offset:3px}.shell{max-width:520px;min-height:100dvh;margin:auto;background:var(--bg);padding:calc(20px + env(safe-area-inset-top)) 22px calc(92px + env(safe-area-inset-bottom));position:relative;overflow:hidden}.shell:before{content:"";position:absolute;top:-150px;right:-130px;width:340px;height:340px;border:1px solid #35445c;border-radius:50%;box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff03;pointer-events:none}.top{display:flex;align-items:center;justify-content:space-between;position:relative;margin-bottom:32px}.brand{font-weight:750;letter-spacing:-.03em}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.18em;text-transform:uppercase}.brand-jp{color:#86b6f4;font-size:21px}.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#8ebeff;font-weight:700}.hero h1{font-size:clamp(34px,9vw,46px);line-height:1.13;letter-spacing:-.045em;margin:12px 0}.hero p,.muted{color:var(--muted)}.hero p{margin:0;max-width:320px}.primary,.secondary{border:0;border-radius:15px;min-height:54px;padding:0 20px;font-weight:700}.primary{background:#a9cfff;color:#10243e}.secondary{background:#24344a;color:#e9f2ff}.wide{width:100%}.hero .primary{margin-top:24px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:32px 0 13px}.section-title h2{margin:0;font-size:19px;letter-spacing:-.02em}.section-title span{font-size:13px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat,.panel{background:var(--panel);border:1px solid #2a3950;border-radius:18px}.stat{padding:16px 12px}.stat strong{font-size:25px;display:block}.stat span{font-size:12px;color:var(--muted)}.feature{margin-top:28px;padding:21px;background:#dfeafa;color:#152e50;border-radius:20px;position:relative;overflow:hidden}.feature:after{content:'学';position:absolute;right:16px;bottom:-37px;font:130px Georgia;color:#204b7c12}.feature small{font-weight:700;letter-spacing:.13em;color:#47678d}.feature h2{margin:9px 0 4px;font-size:22px}.feature p{margin:0;font-size:14px;color:#516b89}.nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);display:flex;justify-content:space-around;background:#101a2df2;border-top:1px solid #2a3a50;padding:9px 6px calc(9px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.nav button{background:none;border:0;color:#91a1b7;min-width:55px;min-height:48px;font-size:11px}.nav button.active{color:#9fcaff}.nav b{display:block;font-size:19px;line-height:22px;font-weight:400}.screen-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.screen-head h1{font-size:25px;margin:0;letter-spacing:-.035em}.back,.icon-button{border:0;background:#203049;color:#dcecff;width:44px;height:44px;border-radius:14px;font-size:20px}.form-label{display:block;color:#aabbd0;font-size:13px;margin:18px 0 7px}.field{width:100%;height:52px;border:1px solid #35455c;border-radius:12px;background:#16243a;color:white;padding:0 14px;font-size:16px}.setup .primary{margin-top:26px}.session{padding-bottom:calc(25px + env(safe-area-inset-bottom));min-height:100dvh;display:flex;flex-direction:column}.session .screen-head{margin-bottom:20px}.session-meta{display:flex;justify-content:space-between;color:#aebcd0;font-size:13px}.tag{color:#a7d2ff;background:#183b60;border-radius:50px;padding:4px 10px;font-size:11px;font-weight:700;letter-spacing:.06em}.progress{height:3px;background:#344254;margin:13px 0 18px;border-radius:4px;overflow:hidden}.progress i{display:block;background:#8ebeff;height:100%;transition:width .25s}.scene{perspective:1200px;flex:1;min-height:310px;max-height:465px}.card{width:100%;height:100%;position:relative;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transition:transform .5s;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.face{position:absolute;inset:0;border-radius:22px;background:#f8f6f0;color:var(--ink);backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:auto}.front{display:flex;align-items:center;justify-content:center;text-align:center;padding:25px;font-family:"Noto Serif JP",serif;font-weight:700;color:#183d77;font-size:clamp(38px,12vw,76px);line-height:1.25;word-break:break-word}.backface{transform:rotateY(180deg);padding:22px;display:flex;flex-direction:column;text-align:center;justify-content:center}.backface h2{font-family:"Noto Serif JP",serif;color:#183d77;font-size:clamp(31px,9vw,48px);line-height:1.2;margin:0 0 3px}.reading{color:#71849e;margin:0 0 7px}.translation{font-size:23px;font-weight:700;margin:0 0 17px}.example{text-align:left;background:#e6edf7;padding:14px;border-radius:12px;font-size:14px}.example small{font-size:10px;letter-spacing:.12em;color:#5074a2;font-weight:700}.example p{margin:5px 0}.example .muted{color:#637995}.example mark{background:transparent;color:#286ec4;font-weight:700}.hint{text-align:center;color:#a4b4c9;font-size:13px;margin:12px 0}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.answers button{height:72px;border:0;border-radius:15px;font-weight:700}.answers button:disabled{opacity:.42}.wrong{background:#513039;color:#ffc1c3}.right{background:#1b5148;color:#a6f1c6}.answers b{display:block;font-size:22px;line-height:1.2}.list{display:grid;gap:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;background:#17243a;border:1px solid #2a3950;border-radius:15px}.row strong{display:block;font-size:19px}.row small{color:#aabbd0}.row button{background:none;border:0;color:#e4bd83;font-size:23px;min-width:44px;min-height:44px}.error{color:#ffa5a8;font-size:14px}.login{display:flex;min-height:100dvh;flex-direction:column;justify-content:center}.login .brand{margin-bottom:42px}.login h1{font-size:34px;margin:0}.login .primary{margin-top:24px}.empty{padding:28px 0;color:var(--muted)}@media(max-height:700px){.shell.session{padding-top:calc(10px + env(safe-area-inset-top))}.session .screen-head{margin-bottom:8px}.scene{min-height:250px}.backface{padding:14px}.translation{margin-bottom:8px}.answers button{height:58px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}} 
