:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#153c34;background:#f5f3eb;font-synthesis:none;--green:#143e35;--muted:#5a6b62;--line:#d9ded2;--lime:#deed9b;--paper:#fffefa}*{box-sizing:border-box}body{margin:0;padding:env(safe-area-inset-top) 24px calc(110px + env(safe-area-inset-bottom))}header{max-width:1040px;margin:0 auto;padding:28px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:12px;align-items:center;color:var(--green);text-decoration:none;font-weight:750;font-size:18px;line-height:1.2}.brand-mark{display:grid;place-items:center;width:43px;height:47px;background:var(--green);color:var(--lime);border-radius:14px 14px 20px 14px;font-family:Georgia,serif;font-size:30px}.brand-sub{display:block;font-size:12px;font-weight:500;letter-spacing:.055em;margin-top:4px}.local-label,.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700}.local-label{color:var(--muted)}main{max-width:1040px;margin:44px auto 30px;min-height:55vh}h1,h2,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.045em;font-size:clamp(38px,5.2vw,64px);line-height:1.06;margin-bottom:20px}h2{font-size:23px;letter-spacing:-.03em}p{line-height:1.6}.muted{color:var(--muted)}.eyebrow{color:var(--muted);margin-bottom:18px}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:55px;align-items:center}.intro{max-width:480px;color:var(--muted);font-size:16px}.pill{display:inline-flex;border:1px solid var(--line);padding:7px 11px;border-radius:50px;font-size:12px;margin-bottom:24px}.art-scene{position:relative;min-height:345px;background:#e5eadb;border-radius:120px 120px 26px 26px;display:grid;place-items:center;overflow:hidden}.art-scene:before{content:"";position:absolute;width:250px;height:250px;border:1px solid #c1cbb4;border-radius:50%}.art-scene img{width:270px;height:270px;object-fit:contain;position:relative;filter:drop-shadow(0 17px 9px #1c3e3219)}.art-caption{position:absolute;bottom:18px;left:20px;right:20px;display:flex;justify-content:space-between;font-size:11px;color:#3a5949}.controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:26px 0}label{display:block;font-size:12px;font-weight:650}select,input[type=text],input[type=search]{font:inherit;border:1px solid #bcc7ba;background:var(--paper);color:var(--green);padding:13px 15px;min-height:48px;border-radius:10px;width:100%;font-size:16px}select{min-width:150px;margin-top:7px}button,.button{font:inherit;font-size:14px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:48px;border:1px solid var(--green);border-radius:10px;padding:13px 21px;background:var(--green);color:white;text-decoration:none;cursor:pointer;touch-action:manipulation}button.secondary,.button.secondary{background:transparent;color:var(--green);border-color:#bec9b9}button:hover,.button:hover{filter:brightness(1.1)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b27920;outline-offset:4px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:40px}.card{border:1px solid var(--line);border-radius:15px;padding:23px;background:var(--paper)}.metric{font-family:Georgia,serif;font-size:34px;display:block;margin:12px 0 4px}.small{font-size:12px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:34px 0 14px}.section-head h2{margin:0}.due-list{display:flex;gap:10px;flex-wrap:wrap}.tag{border:1px solid var(--line);border-radius:8px;padding:9px 13px;font-size:13px;background:#fffefa}.notice{background:#e9efdb;padding:15px 18px;border-radius:10px;font-size:14px;margin:18px 0}.error{background:#fae6df;color:#703327}.quiz{max-width:660px;margin:auto}.quiz-top{display:flex;justify-content:space-between;gap:20px;font-size:13px;margin-bottom:12px}progress{width:100%;height:6px;accent-color:var(--green);display:block;margin:10px 0 25px;border:0;border-radius:4px;overflow:hidden}progress::-webkit-progress-bar{background:#dfe4d5}progress::-webkit-progress-value{background:var(--green)}.quiz h1{font-size:34px;text-align:center;margin-bottom:18px}.quiz-art{height:300px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#e5ebd9 0,transparent 70%);position:relative}.quiz-art img{width:280px;height:280px;object-fit:contain}.image-status{text-align:center;color:var(--muted);font-size:13px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:20px 0}.answers button{background:var(--paper);border-color:#bfcbb9;color:var(--green);min-height:58px}.answers .correct{background:#deedb1;border-color:#708448;opacity:1}.answers .incorrect{background:#f2d9cf;opacity:1}.answer-form{display:flex;gap:10px;margin:22px 0}.feedback{padding:20px;border-radius:12px;background:#e0ebcb;margin:20px 0}.feedback.error{background:#fae6df}.feedback p{margin:7px 0 0}.feedback strong{font-size:18px}.next{width:100%}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;max-height:65vh}table{border-collapse:collapse;width:100%;font-size:13px;background:var(--paper)}td,th{text-align:left;padding:13px;white-space:nowrap;border-bottom:1px solid var(--line)}th{position:sticky;top:0;background:#e8ecdf;font-weight:650}td:first-child{font-weight:600}.generation{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:13px}.generation progress{margin:0;flex:1}.prose{max-width:720px}.prose h2{margin-top:30px}.prose a{color:var(--green)}.score{text-align:center;padding:25px}.score .metric{font-size:88px}.loading{padding:40px}footer{max-width:1040px;margin:40px auto;color:var(--muted);font-size:11px;border-top:1px solid var(--line);padding-top:18px}footer p{margin-bottom:6px}footer a{color:inherit}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:20px;background:#f5f3ebf2;backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:13px 16px calc(13px + env(safe-area-inset-bottom));z-index:5}nav a{font-size:12px;text-decoration:none;color:var(--muted);padding:12px 20px;border-radius:8px}nav a[aria-current=page]{background:var(--green);color:white}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:650px){body{padding-left:19px;padding-right:19px}header{padding:18px 0}.local-label{display:none}main{margin-top:29px}.hero{grid-template-columns:1fr;gap:20px}.hero h1{max-width:340px}.art-scene{min-height:225px;border-radius:80px 80px 20px 20px;grid-row:2}.art-scene:before{width:180px;height:180px}.art-scene img{height:205px;width:205px}.art-caption{bottom:12px}.grid{gap:8px;margin-top:25px}.card{padding:15px 12px}.metric{font-size:28px}.card .small{font-size:11px}.controls{margin:22px 0 5px;gap:10px}.controls>label{flex:1}.controls>button{flex:1;white-space:nowrap}.quiz-art{height:260px}.quiz-art img{width:250px;height:250px}.quiz h1{font-size:29px}.answer-form{flex-wrap:wrap}.answer-form input{flex:1;min-width:190px}.answer-form button{flex:1}.answers{gap:9px}.answers button{padding:13px 8px;font-size:15px}nav{gap:4px}nav a{flex:1;text-align:center;padding:12px 7px}.section-head{align-items:start}.section-head h2{font-size:21px}}@media(prefers-reduced-motion:no-preference){.quiz-art img{animation:appear .25s ease-out}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}
/* Training uses the available viewport; the next action remains in view on iPhone. */
body.quiz-mode{display:flex;flex-direction:column;height:100svh;min-height:100svh;padding-bottom:0}
.quiz-mode header{flex:none;width:100%;padding:12px 0}
.quiz-mode .brand-mark{width:34px;height:36px;font-size:25px;border-radius:10px}
.quiz-mode .brand{font-size:16px}.quiz-mode .brand-sub{font-size:11px;margin-top:2px}
.quiz-mode main{flex:1;min-height:0;width:100%;margin:12px auto 10px}
.quiz-mode footer{display:none}
.quiz-mode nav{position:static;flex:none;margin:0 -24px;padding:5px 18px calc(5px + env(safe-area-inset-bottom));gap:6px}
.quiz-mode nav a{padding:10px 16px;min-height:40px}
.quiz-mode .quiz{display:flex;flex-direction:column;height:100%;min-height:0}
.quiz-mode .quiz-top{flex:none;margin-bottom:2px}
.quiz-mode progress{flex:none;margin:6px 0 10px}
.quiz-mode .quiz h1{flex:none;font-size:clamp(23px,5.7vw,31px);margin:0 0 6px}
.quiz-mode .quiz-art{flex:1 1 260px;min-height:50px;max-height:300px;height:auto}
.quiz-mode .quiz-art img{height:100%;width:auto;max-width:100%;min-height:0}
.quiz-mode .image-status:empty{display:none}
.quiz-mode .image-status{flex:none;font-size:12px;line-height:1.35;margin:5px 0}
.quiz-mode .image-status button{min-height:36px;padding:7px 10px;font-size:12px;margin:3px}
.quiz-mode .answers{flex:none;margin:8px 0;gap:8px}
.quiz-mode .answers button{min-height:46px;padding:10px 8px}
.quiz-mode .answer-form{flex:none;margin:6px 0;gap:8px}
.quiz-mode .answer-form .answer-form{margin:0}
.quiz-mode .feedback{flex:none;padding:11px 13px;margin:5px 0 8px;overflow-wrap:anywhere}
.quiz-mode .feedback strong{font-size:16px}
.quiz-mode .feedback p{font-size:13px;line-height:1.35;margin:4px 0 0}
.quiz-mode .feedback .small{font-size:11px}
.quiz-mode .next{flex:none;min-height:46px}
.quiz-mode .quiz>.toolbar,.quiz-mode .quiz>.small{display:none}
@media(max-width:650px){.quiz-mode nav{margin-left:-19px;margin-right:-19px}}
@media(max-height:740px){.quiz-mode header{padding:8px 0}.quiz-mode main{margin-top:8px;margin-bottom:7px}.quiz-mode .feedback .small{display:none}.quiz-mode .quiz h1{font-size:23px}.quiz-mode .answers button{min-height:44px}.quiz-mode .feedback{padding:9px 11px}}
/* With large accessibility text or a very short landscape viewport, allow scrolling. */
@media(max-height:500px){body.quiz-mode{height:auto;min-height:100svh}.quiz-mode main{min-height:480px}.quiz-mode .quiz{min-height:480px}.quiz-mode .quiz-art{min-height:100px}}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:34px 0 26px}.course-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px 23px}.course-mark{display:grid;place-items:center;width:62px;height:62px;background:#e4ebd1;color:var(--green);border-radius:18px;font:35px Georgia,serif;margin-bottom:24px}.course-card:nth-child(2) .course-mark{background:#f1e3cc}.course-card:nth-child(3) .course-mark{background:#dce8ed}.course-card .eyebrow{font-size:10px;margin-bottom:13px}.course-card h2{min-height:55px;font-size:24px}.course-card p.muted{flex:1;font-size:14px}.course-card .button{margin-top:12px}.course-stat-link{display:block;text-align:center;margin-top:14px;color:var(--green)}.course-links{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 26px;font-size:13px}.course-links a{color:var(--green)}.question-info{flex:none;text-align:center;font-size:15px;margin:3px 0 8px}.matchup-line{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:7px;font-size:13px}.attack-label{padding:5px 9px;background:#deedb1;border-radius:6px;font-weight:650}.quiz-mode .course-quiz h1{font-size:clamp(22px,5.2vw,28px)}.quiz-mode .go-answers button{font-size:12px;line-height:1.25;min-height:52px}.quiz-mode .course-quiz .quiz-art{max-height:260px}.course-quiz .feedback p{font-variant-numeric:tabular-nums}@media(max-width:720px){.course-grid{grid-template-columns:1fr;gap:14px;margin-top:26px}.course-card{padding:23px}.course-card h2{min-height:0}.course-mark{float:left;width:50px;height:50px;margin-bottom:18px;font-size:30px}.course-card .button{width:100%}}
/* Minimal visual theme, inspired by the official Pokémon / Pokémon GO palette. */
@font-face{font-family:Lato;src:url('./fonts/Lato-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Lato;src:url('./fonts/Lato-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{font-family:Lato,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#172b4d;background:#fff;--green:#172b4d;--muted:#596b7a;--line:#e1e7ee;--lime:#ffcb05;--paper:#fff}
body{background:#fff}header{padding:23px 0}.brand{font-weight:700;letter-spacing:0}.brand-mark{background:#172b4d;color:#ffcb05;border-radius:7px;font-family:Lato,sans-serif;font-size:27px;font-weight:700}.brand-sub{letter-spacing:.02em}.local-label{font-weight:400;letter-spacing:.06em}
h1{font-family:Lato,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:700;font-size:clamp(30px,4.5vw,46px);letter-spacing:-.025em;line-height:1.15}h2{font-weight:700;letter-spacing:-.015em}.intro{max-width:610px;color:var(--muted)}.eyebrow{color:#2357ac;letter-spacing:.08em;font-weight:700}.metric{font-family:Lato,sans-serif;font-weight:700;font-size:30px}
button,.button{border-radius:7px;font-weight:700;background:#172b4d;border-color:#172b4d;color:white}button.secondary,.button.secondary{border-color:#c9d3df;color:#172b4d;background:#fff}button:hover,.button:hover{filter:brightness(1.15)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#2357ac}
select,input[type=text],input[type=search]{border-color:#c9d3df;border-radius:7px;background:#fff;color:#172b4d}.card{background:#fff;border-radius:8px}.pill{border-color:#d7e1ee;color:#29476b;background:#f7f9fc}.tag{background:#f7f9fc;border-color:#e1e7ee;border-radius:6px;color:#29476b}.notice{background:#f0f5ff;border:1px solid #d8e4f9;border-radius:7px;color:#173b75}.notice a{color:#2357ac}.notice.error,.error{background:#fff1f1;color:#9f252f;border-color:#f0cbd0}
.course-grid{gap:22px;margin-top:30px}.course-card{border-radius:8px;padding:24px;background:#fff;box-shadow:none}.course-mark{display:none}.course-card .eyebrow{margin-bottom:15px}.course-card h2{font-size:24px;min-height:56px}.course-card p.muted{font-size:15px}.course-card .small{font-size:12px}.course-stat-link{color:#2357ac}.course-links a,.prose a{color:#2357ac}
.art-scene{background:#f6f8fb;border-radius:12px}.art-scene:before{display:none}.art-scene img{filter:none}.art-caption{color:#596b7a}.quiz-art{background:none}.answers button{background:#fff;border-color:#c9d3df;color:#172b4d;border-radius:7px}.answers .correct{background:#edf3ff;border-color:#2357ac;color:#173b75}.answers .incorrect{background:#fff1f1;border-color:#d83c42;color:#9f252f}.feedback{background:#edf3ff;border-radius:7px;color:#173b75}.feedback.error{background:#fff1f1;color:#9f252f}.feedback strong{font-size:17px}.attack-label{background:#edf3ff;color:#2357ac;border-radius:5px}.question-info{color:#172b4d}
progress{accent-color:#2357ac}progress::-webkit-progress-bar{background:#e6edf3}progress::-webkit-progress-value{background:#2357ac}.table-wrap{border-radius:7px}th{background:#f5f8fb;color:#29476b}table{background:#fff}nav{background:#ffffffee;backdrop-filter:blur(14px);gap:28px}nav a{border-radius:0;border-bottom:2px solid transparent;color:#596b7a;padding:12px 24px}nav a[aria-current=page]{background:transparent;color:#172b4d;border-bottom-color:#2357ac;font-weight:700}footer{color:#667787}.quiz-mode .brand-mark{border-radius:6px}.quiz-mode .quiz h1{font-weight:700;font-size:clamp(22px,5.4vw,29px)}
@media(max-width:720px){.course-card{padding:21px}.course-card h2{min-height:0;font-size:23px}.course-grid{gap:12px}.course-card .eyebrow{margin-bottom:10px}.course-card p.muted{margin-bottom:14px}.course-card .button{margin-top:6px}.course-card .small{margin-bottom:2px}nav{gap:18px}}
/* The compact Pokéball mark replaces the initial letter without changing header height. */
.brand-mark{background:none;border-radius:0;font-size:0}.brand-mark img{display:block;width:42px;height:42px}.quiz-mode .brand-mark{background:none;border-radius:0;font-size:0}.quiz-mode .brand-mark img{width:34px;height:34px}

/* PokéKompass: white, red and blue, with restrained yellow highlights. */
button,.button{background:#2357ac;border-color:#2357ac}.brand{color:#172b4d}.brand-sub{color:#526782}.course-card .eyebrow{color:#b32a35}.attack-label{background:#fff8dc;color:#664f00}.quiz-mode .feedback.error{background:#fff1f1;color:#9f252f}.quiz-mode .feedback:not(.error){background:#edf3ff;color:#173b75}
/* Prominent, consistent navigation between the three training statistics. */
nav.statistics-navigation{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:20px 0 27px;background:transparent;border:0;border-radius:0;backdrop-filter:none;z-index:auto}
.statistics-navigation a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:66px;padding:11px 8px;text-align:center;text-decoration:none;font-size:15px;line-height:1.25;font-weight:700;color:#2357ac;background:#fff;border:1px solid #e1e7ee;border-radius:8px;touch-action:manipulation;overflow-wrap:anywhere}
.statistics-navigation a:hover{background:#edf3ff}
.statistics-navigation a[aria-current=page]{color:#fff;background:#2357ac;border-color:#2357ac;box-shadow:none}
.statistics-active{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff}
@media(max-width:450px){nav.statistics-navigation{gap:7px;padding:0}.statistics-navigation a{font-size:13px;min-height:72px;padding:10px 5px}}
/* Fixed artwork geometry: image aspect ratio never affects answer placement. */
.quiz-mode .quiz-art,.quiz-mode .course-quiz .quiz-art{position:relative;flex:0 0 clamp(75px,calc(100svh - 650px),250px);height:clamp(75px,calc(100svh - 650px),250px);min-height:0;max-height:none;overflow:hidden}
.quiz-mode .quiz-art img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;min-height:0;object-fit:contain}
.quiz-mode .quiz h1,.quiz-mode .course-quiz h1{flex:0 0 54px;min-height:54px;margin:0 0 6px;display:flex;align-items:center;justify-content:center}
.quiz-mode .question-info{flex:0 0 70px;min-height:70px;margin:0 0 8px;display:flex;flex-direction:column;justify-content:center}
.quiz-mode .answers{grid-auto-rows:58px;flex-shrink:0}
.quiz-mode .answers button{height:100%;min-height:0;padding:6px;font-size:14px;line-height:1.2}
.quiz-mode .go-answers button{font-size:12px;min-height:0}
.quiz-mode .quiz-art .image-status{position:absolute;inset:auto 0 0;margin:0;padding:8px;background:#fffffff2;max-height:100%;overflow:auto;z-index:1}
.quiz-mode .quiz-art .image-status:empty{display:none}
.cloze-area{flex:none;margin:8px 0}.cloze-pattern{text-align:center;font-size:24px;font-weight:700;letter-spacing:.12em;line-height:1.4;color:#172b4d;overflow-wrap:anywhere}.cloze-area>.small{text-align:center;margin:3px 0 7px}.quiz-mode .cloze-area .answer-form{margin:0;flex-wrap:nowrap}.cloze-area input{min-width:0;flex:1}.cloze-area button{white-space:nowrap;padding-left:12px;padding-right:12px}
@media(max-height:500px){.quiz-mode .quiz-art,.quiz-mode .course-quiz .quiz-art{flex-basis:100px;height:100px}}
.name-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 5px}.name-filters select{min-width:0;width:100%}.name-filters label{color:#29476b}.name-filters+.small{margin:5px 0 0}@media(max-width:420px){.name-filters{grid-template-columns:1fr}}
