main{max-width:960px}#categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}#categories article{border:1px solid var(--border);padding:20px}#categories h3{font-size:18px;margin-top:0}.practice-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}#complete button{margin:8px 12px 8px 0}#summary{font-size:22px;font-weight:700}@media(max-width:600px){#categories{grid-template-columns:1fr}.panel{padding:20px}}
/* Category selection shares the home navigation and brand. */
body.practice-page{background:#faf9f8;color:#29272b;font-family:AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif;--blue:#d92d27;--border:#e6e1df;-webkit-font-smoothing:antialiased}
.practice-page header.home-header{height:80px;padding:0 36px;background:white;color:#29272b;border-bottom:1px solid var(--border)}
.practice-account-link{color:#625d61;font-size:12px;text-decoration:none}
.practice-page main{display:block;max-width:1220px;margin:0 0 0 220px;padding:30px 40px}
.practice-page main>.panel{border:0;padding:0;background:transparent;box-shadow:none}
.practice-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:220px;padding:10px 0 24px}
.practice-intro .eyebrow{font-size:10px;color:#d92d27;letter-spacing:.13em;margin:0 0 8px}.practice-intro h1{font-size:34px;letter-spacing:-.04em;line-height:1.4;margin:0 0 10px}
.practice-intro p:not(.eyebrow){font-size:14px;color:#6f6c73;margin:0}.practice-features{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px}.practice-features span{font-size:12px;font-weight:550;padding-right:16px;border-right:1px solid #ded6d1}.practice-features span:last-child{border-right:0}
.practice-mascot{display:block;width:210px;height:210px;object-fit:contain;flex-shrink:0}
.practice-section-heading{font-size:13px;color:#6f6c73;margin:0 0 16px;font-weight:500}
.practice-page #categories{margin:0;gap:20px}
.practice-page #categories article{position:relative;padding:26px;background:white;border:1px solid #e6e1df;border-radius:12px;box-shadow:0 9px 24px rgba(55,35,28,.055),0 2px 5px rgba(55,35,28,.025),inset 0 1px 0 white}
.practice-page #categories article.selected{border-color:#d92d27;background:#fff6f2;box-shadow:0 9px 24px rgba(147,61,43,.065),inset 0 0 0 1px #d92d27}
.practice-page #categories h3{font-size:19px;letter-spacing:-.025em;line-height:1.6;margin:0 0 10px}.category-count{display:inline-block;font-size:12px;padding:3px 12px;border:1px solid #e6e1df;border-radius:20px;margin:0;color:#d92d27;background:white;font-weight:600}.category-description{font-size:13px;color:#6f6c73;line-height:1.9;margin:12px 0 18px}
.practice-page #categories button{width:100%;background:white;border:1px solid #e2b1aa;border-radius:7px;color:#d92d27;font-size:12px;font-weight:600;padding:9px 16px;min-height:40px;box-shadow:0 2px 5px rgba(55,35,28,.03)}.practice-page #categories button[aria-pressed=true]{background:#d92d27;color:white;border-color:#d92d27}
#practice-selection{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff1eb;border:1px solid #f0d7ce;border-radius:12px;padding:22px 26px;margin:24px 0 16px;box-shadow:0 8px 20px rgba(147,61,43,.05)}
#selected-category{font-size:17px;letter-spacing:-.02em;margin:0 0 6px}#practice-selection p{font-size:12px;color:#6f6c73;margin:0}.practice-page #start-selected{width:auto;margin:0;white-space:nowrap;border-radius:7px;min-height:46px;font-size:13px;box-shadow:0 5px 12px rgba(176,40,32,.19);padding:12px 24px}
.practice-note{font-size:11px;color:#6f6c73;line-height:1.9;margin-top:22px}.practice-disclaimer{font-size:10px;color:#6f6c73;margin-top:24px;padding-top:16px;border-top:1px solid #e6e1df}
.practice-page #error{font-size:12px;border-radius:7px}.practice-page #practice,.practice-page #complete,.practice-page #locked,.practice-page #guest{background:white;border:1px solid #e6e1df;border-radius:12px;padding:28px;box-shadow:0 9px 24px rgba(55,35,28,.055)}
@media(max-width:1050px) and (min-width:851px){.practice-page main{margin-left:180px;padding:28px}.practice-mascot{width:160px;height:180px}.practice-intro h1{font-size:29px}.practice-page #categories h3{font-size:17px}#practice-selection{flex-wrap:wrap}}
@media(max-width:850px){.practice-page header.home-header{padding:0 20px;height:68px}.practice-page main{margin:0;padding:24px 20px}.practice-intro h1{font-size:28px}.practice-mascot{width:130px;height:160px}.practice-intro p:not(.eyebrow){font-size:12px}.practice-features{gap:10px}.practice-features span{font-size:10px;padding-right:10px}#practice-selection{flex-direction:column;align-items:stretch}#start-selected{width:100%!important}.practice-page #categories{gap:14px}.practice-page #categories article{padding:22px}.practice-page #categories h3{font-size:17px}}
@media(max-width:520px){.practice-intro{align-items:flex-start;gap:10px;min-height:0}.practice-mascot{width:90px;height:120px}.practice-features{margin-top:16px}.practice-intro h1{font-size:26px}}
/* Give the character a landscape and enough room instead of a small floating image. */
.practice-intro{background:#fff8f4 url('/login-background.png') center bottom/cover no-repeat;border:1px solid #f0e5de;border-radius:14px;padding:24px 28px;margin-bottom:24px;min-height:230px;overflow:hidden;box-shadow:inset 0 1px 0 white}
.practice-mascot{width:260px;height:220px;object-fit:contain;object-position:center bottom}
.practice-intro>div{position:relative;flex:1;min-width:0}
.practice-page .category-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.practice-page #categories .category-start{background:#d92d27;border-color:#c82a23;color:white;box-shadow:0 4px 10px rgba(176,40,32,.15)}
.practice-page #categories .category-start:hover:not(:disabled){background:#c82a24}
.practice-page #categories .category-resume{background:white;border-color:#d7ccc7;color:#625459}
.practice-page #categories .category-resume:hover:not(:disabled){background:#fff6f2;border-color:#d89d97}
.practice-page #categories button:disabled{opacity:1;color:#999397;background:#f7f5f4;border-color:#e9e4e1;box-shadow:none;cursor:not-allowed}
.category-session-note{font-size:10px;color:#6f6c73;margin:12px 0 0}
@media(max-width:1050px) and (min-width:851px){.practice-mascot{width:170px;height:190px}.practice-intro{padding:22px}.practice-page .category-actions{gap:8px}.practice-page #categories .category-actions button{padding-inline:6px;font-size:11px}}
@media(max-width:850px){.practice-intro{padding:22px;min-height:190px}.practice-mascot{width:160px;height:180px}}
@media(max-width:520px){.practice-intro{padding:18px;gap:8px}.practice-mascot{width:90px;height:150px}.practice-features{gap:8px}.practice-intro p:not(.eyebrow){font-size:11px}.practice-page .category-actions{gap:10px}}
.practice-page:has(#complete:not([hidden])) .practice-intro{display:none}.practice-page #complete{padding:32px;border-radius:16px}.completion-heading h2{font-size:30px;letter-spacing:-.035em;margin:8px 0 10px}.completion-heading>p:last-child{color:#6f6c73;font-size:14px;margin-bottom:24px}.completion-score{background:linear-gradient(135deg,#fff8f5,#fff);border:1px solid #eddfd9;border-radius:12px;padding:24px 28px;box-shadow:0 4px 12px #56302406}.completion-score #summary{display:inline-block;font-size:13px;font-weight:600;color:#665752;margin:0 0 18px}.completion-score dl{display:grid;grid-template-columns:repeat(3,1fr);margin:0}.completion-score dl>div{padding:0 24px;border-left:1px solid #e9dcd6}.completion-score dl>div:first-child{padding-left:0;border:0}.completion-score dt{font-size:12px;color:#6f6c73}.completion-score dd{margin:8px 0 0;white-space:nowrap}.completion-score strong{font-size:48px;font-weight:700;line-height:1.2;letter-spacing:-.04em;color:#d92d27}.completion-score dl>div:nth-child(2) strong{color:#49444a}.completion-score dd span{font-size:15px;margin-left:8px;color:#6f6c73}.completion-note{font-size:11px;color:#817974;margin:20px 0 0}.completion-list-heading{display:flex;align-items:center;justify-content:space-between;margin-top:26px}.completion-list-heading h3{font-size:17px;margin:0}.completion-list-heading p{font-size:11px;color:#6f6c73}#complete-answers{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;margin-top:12px}.practice-page #complete-answers button{margin:0;padding:10px 4px;min-height:70px;border:1px solid #cfe4d9;border-radius:8px;background:#f0f8f3;color:#307452;font:inherit;box-shadow:0 2px 4px #263b2805}.practice-page #complete-answers button.wrong{border-color:#f0d7d3;background:#fff3f0;color:#b83b34}#complete-answers button span{display:block;font-size:20px;font-weight:600}#complete-answers button small{font-size:11px}.completion-help{font-size:12px;color:#6f6c73;margin:14px 0 24px}.completion-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #ece7e5;padding-top:24px}.practice-page .completion-actions button{margin:0;border-radius:8px;padding:12px 18px;font-size:12px}.practice-page .completion-actions .primary{width:auto;background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}.practice-page .completion-actions #inspect{background:white;color:#b83b34;border:1px solid #dfaca6}.practice-page .completion-actions #choose{background:transparent;border:0;color:#6f6c73;text-decoration:underline}
@media(max-width:850px){.practice-page #complete{padding:24px}.completion-heading h2{font-size:26px}#complete-answers{grid-template-columns:repeat(5,1fr)}.completion-score{padding:20px}.completion-score strong{font-size:38px}.completion-score dl>div{padding:0 14px}}
@media(max-width:520px){.practice-page #complete{padding:20px 16px}.completion-heading h2{font-size:23px}.completion-score{padding:18px 14px}.completion-score strong{font-size:30px}.completion-score dd span{font-size:11px;margin-left:4px}.completion-score dl>div{padding:0 10px}.completion-actions{align-items:stretch;flex-direction:column}.completion-list-heading{flex-wrap:wrap;gap:6px}.completion-score dt{font-size:11px}}
.practice-page #complete-title:focus{outline:none}
.completion-score dl>div{display:block}.completion-score dt{white-space:nowrap}.completion-score dd{display:block}.completion-score dl{border:0;padding:0}
.practice-page:has(#practice:not([hidden])) .practice-intro{display:none}.practice-page #practice{padding:28px;border-radius:16px}.question-progress{border-bottom:1px solid #ece5e1;padding-bottom:20px;margin-bottom:24px}.question-progress .eyebrow{font-size:10px;letter-spacing:.14em;color:#ba3c32;margin:0 0 8px}.practice-page #progress{font-size:14px;font-weight:600;margin:0 0 14px}.question-progress progress{display:block;width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;background:#eee6e2;accent-color:#d92d27}.question-progress progress::-webkit-progress-bar{background:#eee6e2}.question-progress progress::-webkit-progress-value{background:#d92d27}.practice-question-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:28px}.practice-question-layout:has(#feedback[hidden]){grid-template-columns:1fr}.question-card{min-width:0}.practice-page #question-title{font-size:21px;line-height:1.85;letter-spacing:-.02em;margin:0 0 24px;outline:none}.practice-page #choices{border:0;padding:0;margin:0 0 22px;min-width:0}.practice-page #choices legend{font-size:12px;color:#777078;margin-bottom:12px}.practice-page #choices label{display:flex;align-items:center;gap:12px;padding:17px 16px;margin:10px 0;background:#fff;border:1px solid #ded7d3;border-radius:9px;box-shadow:0 3px 8px #39251e06;font-size:14px;line-height:1.8;cursor:pointer}.practice-page #choices label:has(input:checked){border-color:#d92d27;background:#fff5f1}.practice-page #choices input{width:16px;height:16px;flex:none;accent-color:#d92d27;margin:0}.choice-letter{display:grid;place-items:center;width:28px;height:28px;flex:none;background:#f5f1ef;border-radius:6px;font-size:13px}.practice-page #choices label>span{flex:1;min-width:0}.practice-page #choices label small{font-size:10px;white-space:nowrap}.practice-page #choices label.choice-correct{background:#f1f8f3;border-color:#96c8a9;color:#276547}.practice-page #choices label.choice-wrong{background:#fff2ef;border-color:#e5b0a8;color:#a93e34}.practice-page #answer{width:auto;border-radius:8px;padding:13px 24px;font:inherit;font-size:13px;background:linear-gradient(#e63a31,#cf2923);border:1px solid #c82922;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}.practice-page #answer:disabled{display:none}.practice-page #feedback{margin:0;padding:22px;background:#fffaf7;border:1px solid #eddcd3;border-radius:12px;min-width:0}.practice-page #verdict{margin:0;padding:12px 16px;background:#fbe7e2;color:#ad3d32;border-radius:7px;font-size:18px}.practice-page #feedback.is-correct #verdict{background:#e7f3eb;color:#276547}.practice-page #selected{font-size:12px;line-height:1.8;color:#6c6260;padding-bottom:16px;border-bottom:1px solid #e9ded8}.explanation-heading{font-size:15px;margin:20px 0 8px}.practice-page #explanation{font-size:13px;line-height:2;color:#514b4d;overflow-wrap:anywhere}.practice-page #explanation h4{font-size:13px}.practice-page .practice-actions{border-top:1px solid #ece5e1;padding-top:22px;justify-content:space-between;flex-direction:row-reverse}.practice-page .practice-actions button{width:auto;border-radius:8px;padding:12px 22px;font:inherit;font-size:12px}.practice-page #next{background:#d92d27;border:1px solid #c82922;color:white;box-shadow:0 3px 0 #b92520,0 6px 12px #d92d271a}.practice-page #back{background:white;border:1px solid #ded7d3;color:#6f6261}@media(max-width:1050px){.practice-question-layout{grid-template-columns:1fr}.practice-page #question-title{font-size:19px}}@media(max-width:520px){.practice-page #practice{padding:20px 16px}.practice-page #choices label{padding:14px 10px;gap:8px;font-size:13px;flex-wrap:wrap}.practice-page #choices label small{margin-left:auto}.practice-page #answer{width:100%}.practice-page .practice-actions{flex-direction:column}.practice-page .practice-actions button{width:100%}}
.practice-page #locked{padding:36px;border-radius:18px;border:1px solid #ecdcd6;background:linear-gradient(135deg,#fff,#fff9f6);box-shadow:0 4px 8px #35201b04,0 18px 38px #35201b08;font-family:inherit}
.practice-paid-badge{display:inline-block;padding:5px 10px;border:1px solid #efd1c9;border-radius:6px;font-size:12px;font-weight:600;color:#ae332a;background:#fff0ea}
.practice-page #locked h2{margin:18px 0 14px;font:700 clamp(21px,2.2vw,28px)/1.55 AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif;letter-spacing:.02em}
.practice-page #locked .practice-paid-lead{font-size:15px;line-height:1.95;color:#6a6266;margin:0}
.practice-paid-benefits{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0 28px;font-size:13px;color:#51494d}.practice-paid-benefits li::before{content:'✓';margin-right:8px;color:#ba362b;font-weight:700}
.practice-paid-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;border-top:1px solid #eee0d9}.practice-paid-price{margin:0;font-size:13px;color:#61585b}.practice-paid-price strong{font-size:28px;color:#2e292b;margin-left:8px;font-weight:700}.practice-paid-price strong span{font-size:14px;margin-left:4px}.practice-paid-price small{display:block;margin-top:5px;font-size:12px;color:#797074}
.practice-page .practice-paid-button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:50px;padding:12px 24px;box-sizing:border-box;background:linear-gradient(#e83b32,#cf2722);color:white;border:1px solid #c82922;border-radius:9px;text-decoration:none;font-size:14px;font-weight:600;box-shadow:0 3px 0 #b92520,0 8px 18px #d92d2720}.practice-paid-button:hover{filter:brightness(.96)}.practice-paid-button:focus-visible{outline:3px solid #cf272280;outline-offset:4px}
@media(max-width:650px){.practice-paid-footer{flex-direction:column;align-items:stretch;gap:20px}.practice-paid-benefits{flex-direction:column;gap:12px}.practice-paid-button{width:100%}}
