@charset "UTF-8";
:root{--ink:#233d46;--muted:#75858b;--blue:#3176df;--green:#228364;--line:#e1e8e6;--paper:#f7f9f6;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button:disabled{cursor:default}button:active:not(:disabled){transform:translateY(2px)}a{color:inherit;text-decoration:none}.site-header{max-width:1100px;margin:auto;height:96px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:21px;letter-spacing:.02em}.brand-mark{width:43px;height:43px;background:var(--blue);border-radius:14px;color:white;display:grid;place-content:center;font-size:35px;position:relative;font-family:Georgia,serif;line-height:1}.brand-mark span{position:absolute;right:6px;top:5px;color:#ffe188;font-size:24px}.brand-sub{font-size:9px;letter-spacing:.15em;align-self:flex-end;margin-bottom:6px;color:var(--muted)}.quiet{border:0;background:transparent;font-size:13px;font-weight:700;min-height:44px;padding:10px 14px}.quiet:hover{color:var(--blue)}main{max-width:1000px;margin:auto;padding:0 32px;outline:none}.hero{padding:62px 0 48px;position:relative;min-height:328px}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:700;color:var(--green);display:flex;align-items:center;gap:9px}.eyebrow>span{background:#f9ca56;width:8px;height:8px;border-radius:50%}h1{font-size:38px;line-height:1.6;letter-spacing:.025em;margin:14px 0}h1>span{color:var(--blue)}.hero p{font-size:13px;color:#70818a;line-height:2.1;margin:14px 0 0}.hero-pictures{position:absolute;right:4%;top:50px;width:310px;height:235px}.float-card{position:absolute;background:white;border-radius:24px;box-shadow:0 14px 35px #213b4610;border:1px solid #e7ece6;display:flex;align-items:center;justify-content:center}.cat-card{width:190px;height:210px;left:0;top:0;transform:rotate(-9deg);flex-direction:column;background:#fff8df}.cat-card img{width:156px;height:156px}.cat-card span{font-size:9px;font-weight:800;letter-spacing:.16em;color:#9e874d}.apple-card{right:0;bottom:0;width:139px;height:143px;transform:rotate(12deg);background:#e9f2ff}.apple-card img{width:118px;height:118px}.spark{position:absolute;font-size:33px;color:#e5b741}.s1{right:8px;top:5px}.s2{left:-32px;bottom:5px;color:#6ba995}.setup{background:white;border:1px solid var(--line);border-radius:26px;padding:30px}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.step{font-size:11px;font-weight:800;border:1px solid var(--line);border-radius:50%;height:28px;width:28px;display:grid;place-content:center;color:var(--green)}h2{font-size:17px;margin:0}.heading-note{margin-left:auto;font-size:11px;color:var(--muted)}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mode-card{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1.5px solid var(--line);padding:19px 14px;border-radius:14px;min-height:91px}.mode-card.selected{background:#edf4ff;border-color:var(--blue)}.mode-icon{font-size:23px;color:var(--blue);white-space:nowrap;font-weight:800;letter-spacing:-1px}.mode-card strong,.course-card strong{display:block;font-size:13px}.mode-card small,.course-card small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.radio-dot{margin-left:auto;flex-shrink:0;width:15px;height:15px;border-radius:50%;border:1px solid #c8d2d6}.selected .radio-dot{border:4px solid var(--blue);background:white}.course-heading{margin-top:32px}.course-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.course-card{position:relative;text-align:left;background:var(--tile);border:1.5px solid transparent;border-radius:15px;padding:12px 16px 17px}.course-card img{display:block;width:100%;height:106px;object-fit:contain;margin-bottom:9px}.course-card.selected{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}.course-check{position:absolute;top:10px;right:10px;font-size:11px;width:18px;height:18px;border-radius:50%;background:#ffffff80;display:grid;place-content:center}.selected .course-check{background:var(--blue);color:white}.course-card.mix{grid-column:1/-1;display:flex;align-items:center;gap:16px;background:#f2f6fc;padding:17px 22px}.mix-symbol{font-size:31px;color:var(--blue);line-height:1}.mix small{display:inline;margin-left:14px}.mix strong{display:inline}.mix .course-check{top:22px;right:20px}.start-row{margin-top:27px;display:flex;align-items:center;justify-content:space-between;gap:15px}.start-row p{font-size:11px;color:var(--muted)}.start-row p span{padding:0 6px}.primary{background:var(--blue);border:0;color:white;min-height:54px;border-radius:13px;font-weight:700;padding:15px 28px;box-shadow:0 4px 0 #225cbd;display:inline-flex;gap:35px;align-items:center;justify-content:center}.primary:hover{background:#2468ce}.notice{font-size:11px;color:var(--muted);line-height:1.8}.setup>.notice{text-align:right;margin-bottom:0}.history-strip{display:flex;align-items:center;gap:17px;padding:26px 4px;margin-bottom:20px}.history-icon{display:grid;place-content:center;width:42px;height:42px;border-radius:12px;background:#e9efe8;color:var(--green);font-size:24px}.history-strip strong{font-size:12px}.history-strip p{font-size:10px;color:var(--muted);margin:6px 0 0}.history-strip button{margin-left:auto;font-size:11px}footer{border-top:1px solid var(--line);text-align:center;padding:24px 18px;color:var(--muted);font-size:11px;line-height:1.8}footer>span{margin-left:16px}footer small{display:block;font-size:9px;margin-top:8px}.quiz{max-width:700px;margin:25px auto 40px}.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.quiz-top .quiet{padding-left:0}.score{font-size:23px;color:var(--blue)}.score small{font-size:11px}.progress-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:24px 0 12px}.progress-heading strong span{color:var(--muted);font-size:11px}#combo{font-size:12px;color:var(--green);font-weight:800}progress{display:block;appearance:none;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;background:#e6ece9}progress::-webkit-progress-bar{background:#e6ece9}progress::-webkit-progress-value{background:#70b99a;border-radius:10px}progress::-moz-progress-bar{background:#70b99a}.prompt{text-align:center;padding:23px 0 18px}.prompt>p:first-child{font-size:14px;font-weight:700}.word-line{display:flex;justify-content:center;align-items:center;gap:22px;min-height:94px}.word-line h1{font-size:47px;margin:0;line-height:1.3;overflow-wrap:anywhere}.sound{border:0;background:#e9f1ff;border-radius:50%;width:66px;height:66px;color:var(--blue);font-size:31px;line-height:1.1}.sound small{display:block;font-size:10px;font-weight:700}.listening-symbol{font-size:54px;color:var(--blue)}.audio-status{font-size:11px;color:var(--muted);min-height:19px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:16px}.choice{position:relative;background:white;border:2px solid var(--line);border-radius:22px;padding:20px;height:215px;display:grid;place-items:center}.choice:hover:not(:disabled){border-color:#8caee3;background:#f4f8ff}.choice img{width:100%;height:100%;max-height:175px;object-fit:contain}.choice-number{position:absolute;left:13px;top:12px;font-size:11px;border-radius:7px;background:#f2f5f3;color:#8c999f;width:23px;height:23px;display:grid;place-content:center}.choice.correct{border:3px solid #38a273;background:#effaf4;animation:correct .35s ease}.choice.incorrect{border:3px solid #dc6570;background:#fff3f4}.answer-mark{position:absolute;right:12px;top:10px;font-size:26px;font-weight:800}.correct .answer-mark{color:#268858}.incorrect .answer-mark{color:#c94857}.feedback{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;border-radius:16px;margin-top:18px}.feedback.yes{background:#e5f4eb}.feedback.no{background:#fff0e1}.feedback strong{font-size:15px}.feedback p{margin:6px 0 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.feedback p b{font-size:23px}.feedback .quiet{padding:4px;min-height:36px}.feedback .primary{gap:12px;white-space:nowrap;padding:14px 20px}.quiz-hint{text-align:center;font-size:11px;color:var(--muted);margin:22px 0}.results{max-width:640px;margin:45px auto;text-align:center}.results .eyebrow{justify-content:center}.result-badge{font-size:52px;color:#d6a534;margin:0 auto 20px;width:100px;height:100px;display:grid;place-content:center;background:#fff1cb;border-radius:30px;transform:rotate(-7deg)}.results h1{font-size:29px}.results>p{font-size:13px;color:var(--muted)}.result-score{font-size:72px;color:var(--blue);font-weight:800;margin:20px 0}.result-score span{font-size:18px;color:var(--muted)}.result-stats,.history-numbers{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid var(--line);border-radius:20px;padding:22px 0}.result-stats>div+div,.history-numbers>div+div{border-left:1px solid var(--line)}.result-stats strong,.history-numbers b{display:block;font-size:28px}.result-stats small{font-size:13px;color:var(--muted)}.result-stats span,.history-numbers span{display:block;font-size:11px;color:var(--muted);margin-top:6px}.result-actions{display:flex;flex-direction:column;gap:15px;max-width:380px;margin:30px auto}.secondary{border:1px solid var(--line);border-radius:13px;min-height:54px;background:white;font-weight:700}.review-list{text-align:left;margin:30px 0}.review-list h2{margin-bottom:15px}.review-list>div{display:flex;align-items:center;gap:15px;padding:9px 15px;border-bottom:1px solid var(--line);background:white}.review-list img{width:62px;height:62px;object-fit:contain}.review-list b{font-size:17px}.review-list small{display:block;font-size:11px;margin-top:4px;color:var(--muted)}.review-list button{margin-left:auto}.perfect-note{margin-top:30px!important}dialog{width:560px;max-width:calc(100% - 24px);max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:24px;padding:28px;color:var(--ink)}dialog::backdrop{background:#17313d60;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.dialog-top h2{font-size:19px}.history-numbers{text-align:center}.history-mode{display:flex;justify-content:space-between;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:14px}#history-content>p{font-size:12px}h3{font-size:14px;margin-top:25px}details{margin:22px 0;font-size:13px}summary{cursor:pointer;min-height:44px;padding-top:12px}.word-history p{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 0;margin:0}.word-history small{display:block;color:var(--muted);margin-top:4px}.danger{border:1px solid #e6b9bf;color:#b94655;background:#fff7f8;border-radius:10px;padding:12px;min-height:44px;font-size:12px}#delete-confirm{font-size:12px;line-height:2}#history-message{font-size:12px}.image-error{font-size:12px;color:#b94655}.combo-pop{animation:combo .4s ease}@keyframes correct{50%{transform:scale(1.025)}}@keyframes combo{50%{transform:translateY(-5px) scale(1.1)}}
@media(max-width:760px){.site-header{height:77px;padding:0 20px}.brand{font-size:17px;gap:8px}.brand-sub{display:none}.brand-mark{width:36px;height:36px;font-size:31px}.site-header>.quiet{font-size:11px;padding:8px}main{padding:0 20px}.hero{padding:35px 0 28px;min-height:290px}h1{font-size:29px}.hero-pictures{right:0;top:90px;width:170px;height:165px;opacity:.95}.cat-card{width:112px;height:135px;border-radius:18px}.cat-card img{width:102px;height:102px}.cat-card span{font-size:6px}.apple-card{width:86px;height:90px;right:-6px;bottom:0;border-radius:17px}.apple-card img{width:74px;height:74px}.spark{font-size:24px}.s1{right:0;top:-17px}.s2{left:-10px;bottom:0}.hero p{font-size:11px;max-width:57%}.hero h1{position:relative;z-index:1;font-size:28px}.setup{padding:23px 18px;border-radius:21px}.mode-grid{gap:8px}.mode-card{padding:14px 7px;flex-direction:column;text-align:center;gap:8px;position:relative;min-height:119px}.mode-card strong{font-size:10px}.mode-card small{font-size:8px;line-height:1.5}.mode-icon{font-size:22px;min-height:27px}.radio-dot{position:absolute;right:7px;top:7px;width:12px;height:12px}.selected .radio-dot{border-width:3px}.section-heading{gap:8px}.section-heading h2{font-size:14px}.heading-note{font-size:9px}.step{width:24px;height:24px;font-size:9px}.course-grid{grid-template-columns:1fr 1fr;gap:10px}.course-card{padding:10px 14px 15px}.course-card img{height:100px;margin-bottom:7px}.course-card strong{font-size:13px}.course-card small{font-size:10px}.mix strong{font-size:13px}.mix small{display:block;margin:5px 0 0}.start-row{flex-direction:column;gap:8px;margin-top:18px}.start-row .primary{width:100%}.start-row p{font-size:10px}.setup>.notice{text-align:center;font-size:9px;margin-top:14px}.history-strip{gap:10px;padding-top:22px;flex-wrap:wrap}.history-strip strong{font-size:11px}.history-strip p{font-size:9px}.history-strip button{margin-left:auto}.history-icon{width:34px;height:34px}.quiz{margin:16px auto 25px}.quiz-top{font-size:9px}.quiz-top .quiet{font-size:11px;padding-right:2px}.score{font-size:21px}.progress-heading{margin-top:16px}.prompt{padding:12px 0 10px}.prompt>p:first-child{font-size:13px}.word-line{min-height:80px}.word-line h1{font-size:38px}.sound{width:59px;height:59px}.choices{gap:12px}.choice{height:175px;padding:20px 14px 12px;border-radius:18px}.choice img{max-height:143px}.choice-number{left:9px;top:8px;width:20px;height:20px;font-size:10px}.audio-status{font-size:10px}.feedback{padding:14px;flex-wrap:wrap}.feedback .primary{margin-left:auto;min-height:48px}.feedback p{gap:9px}.feedback p b{font-size:22px}.results{margin-top:30px}.results h1{font-size:25px}.result-stats{padding:18px 0}.result-stats strong{font-size:25px}.result-stats span{font-size:10px}.result-score{font-size:64px}footer>span{display:block;margin:3px 0}dialog{padding:20px}.dialog-top h2{font-size:17px}.history-numbers b{font-size:24px}}
@media(max-width:370px){main{padding:0 12px}.hero h1{font-size:25px}.hero-pictures{width:144px;right:3px;top:108px}.hero p{max-width:56%;font-size:10px}.setup{padding:20px 12px}.choice{height:151px}.brand{font-size:15px}.site-header{padding:0 12px}.heading-note{font-size:8px}.mode-card strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.hero{min-height:430px;padding-bottom:185px}.hero h1{font-size:clamp(22px,6.4vw,29px)}.hero p{max-width:100%;font-size:11px}.hero-pictures{top:auto;bottom:20px;right:18px;width:230px;height:160px}.cat-card{left:15px}.apple-card{right:5px}.s1{right:-8px;top:4px}.s2{left:-12px;bottom:10px}}

/* Keep the whole question, including answer feedback, within a phone screen.
   svh reserves room for browser bars; allow scrolling at enlarged text sizes. */
@media(max-width:760px){
  body:has(.quiz) .site-header{height:50px;padding:0 12px}
  body:has(.quiz) .brand-mark{width:30px;height:30px;font-size:26px;border-radius:10px}
  body:has(.quiz) .brand{font-size:15px}
  body:has(.quiz) main{padding:0 12px}
  body:has(.quiz) footer{display:none}
  .quiz{margin:6px auto 8px}
  .quiz-top{min-height:36px;gap:5px}
  .quiz-top .quiet{min-height:36px;padding:6px 0}
  .quiz-top>span{font-size:9px}
  .score{font-size:20px}
  .progress-heading{margin:6px 0;font-size:12px;line-height:20px}
  #combo{font-size:10px}
  .quiz progress{height:5px}
  .prompt{padding:5px 0 6px}
  .prompt>p:first-child{font-size:12px;line-height:18px;margin:0 0 3px}
  .word-line{min-height:54px;gap:14px}
  .word-line h1{font-size:32px;line-height:1.15}
  .sound{width:50px;height:50px;flex-shrink:0;font-size:26px}
  .listening-symbol{font-size:40px;line-height:1}
  .audio-status{font-size:10px;line-height:14px;min-height:14px;margin:3px 0 0}
  .choices{gap:8px}
  .quiz .choice{height:clamp(88px,calc((100vh - 360px)/2),160px);height:clamp(88px,calc((100svh - 360px)/2),160px);padding:9px 14px;border-radius:15px;min-width:0}
  .quiz .choice img{min-height:0;max-height:100%}
  .choice-number{top:6px;left:7px;width:18px;height:18px;font-size:9px}
  .answer-mark{top:4px;right:8px;font-size:22px}
  .feedback{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:8px;padding:8px 10px;border-radius:12px}
  .feedback>div{min-width:0}
  .feedback strong{font-size:12px;line-height:18px}
  .feedback p{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 5px;margin:2px 0 0;line-height:16px}
  .feedback p b{font-size:20px;line-height:24px;overflow-wrap:anywhere}
  .feedback p>span{grid-column:1;font-size:11px}
  .feedback p .quiet{grid-column:2;grid-row:1/3;min-width:44px;min-height:44px;padding:2px;font-size:11px}
  .feedback .primary{margin:0;min-height:48px;padding:10px 12px;font-size:12px;gap:4px;box-shadow:0 3px 0 #225cbd}
  .quiz-hint{display:none}
  #feedback>.notice{margin:4px 0;font-size:10px}
}
@media(min-width:761px){.course-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Pictan identity: retain the existing paper, blue, yellow and green palette. */
.brand-mark{object-fit:cover;flex-shrink:0;overflow:hidden}
.brand-wordmark{font-size:25px;font-weight:800;line-height:1.15;letter-spacing:.06em}
.brand-wordmark small{display:block;font-size:8px;letter-spacing:.09em;color:var(--muted);font-weight:600;line-height:1.6;margin-top:3px}
.hero{padding-top:43px;padding-bottom:36px;min-height:363px}
.hero .hero-title{font-size:58px;line-height:1.15;margin:11px 0 9px;letter-spacing:.08em;white-space:nowrap}
.hero-title .title-spark{display:inline-block;font-size:23px;color:#e5b741;vertical-align:middle;margin-left:10px;transform:translateY(-6px)}
.hero-message{font-size:24px;line-height:1.6;margin:0;font-weight:800;letter-spacing:.025em}
.hero-message span{color:var(--blue)}
.hero-pictures{top:65px}
.hero p{margin-top:12px}
@media(max-width:760px){
  .brand-wordmark{font-size:22px}
  .brand-wordmark small{font-size:7px;letter-spacing:.04em;margin-top:2px}
  .hero{padding-top:27px;padding-bottom:185px;min-height:442px}
  .hero .hero-title{font-size:48px;margin:12px 0 10px}
  .hero-title .title-spark{font-size:20px}
  .hero-message{font-size:clamp(19px,5.7vw,25px);line-height:1.55}
  .hero-pictures{top:auto;bottom:18px}
  body:has(.quiz) .brand-wordmark{font-size:17px}
  body:has(.quiz) .brand-wordmark small{font-size:6px;margin-top:1px}
}
