/* No.06 v4 scoped styles: practice-first, lively not loud. No shared site globals. */
.ep6{color-scheme:light;--ink:#2d4028;--muted:#67775f;--green:#63852e;--cream:#f7faef;--line:#dfe9d6}
.ep6 *{box-sizing:border-box}
.ep6{margin:0;background:linear-gradient(180deg,#f3f8eb,#fbfcf9 560px);color:var(--ink);font:15px/1.65 system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif}
.ep6 button, .ep6 select{font:inherit}
.ep6 button{cursor:pointer}
.ep6 button:disabled{cursor:default;opacity:.52}
.ep6 button:focus-visible, .ep6 select:focus-visible{outline:3px solid #be8a2d;outline-offset:3px}
.ep6 .sitebar{background:#fff;border-bottom:1px solid #e3ebde}
.ep6 .sitebar-inner{max-width:960px;padding:11px 18px;margin:auto;display:flex;justify-content:space-between;gap:12px;align-items:center}
.ep6 .brand{font-size:13px;font-weight:900;letter-spacing:.08em;color:#46643f}
.ep6 .tag{font-size:12px;color:#74836d}
.ep6 .container{max-width:960px;margin:auto;padding:22px 17px 46px}
.ep6 .eyebrow{color:#708e58;font-weight:850;font-size:12px;letter-spacing:.1em}
.ep6 .hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px;padding:18px 21px;border-radius:23px;border:1px solid #e3eacb;background:radial-gradient(circle at 92% 8%,#fff0bb 0,transparent 39%),linear-gradient(120deg,#eef8df 0%,#fffdf4 70%)}
.ep6 .hero h1{font-size:clamp(27px,5vw,40px);line-height:1.3;margin:4px 0}
.ep6 .lead{font-size:14px;color:#566d4c;max-width:630px;margin:5px 0}
.ep6 .hero-art{display:grid;grid-template-columns:repeat(2,1fr);gap:2px 10px;min-width:112px;font-size:37px;text-align:center;line-height:1.3;white-space:nowrap;transform:rotate(5deg)}
.ep6 .hero-art span{display:inline-block;animation:ep6-float 3.5s ease-in-out infinite alternate}.ep6 .hero-art span:nth-child(2){animation-delay:.55s}.ep6 .hero-art span:nth-child(3){animation-delay:.9s}.ep6 .hero-art span:nth-child(4){animation-delay:1.25s}
.ep6 .hero-kicker{font-size:13px;color:#7b8b32;font-weight:900;letter-spacing:.04em}.ep6 .hero-sparkle{font-size:.75em}
.ep6 .card{border:1px solid var(--line);background:#fff;border-radius:21px;box-shadow:0 9px 29px #334a2410;padding:20px;margin:15px 0}
.ep6 .section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}
.ep6 .section-heading h2{font-size:19px;line-height:1.35;margin:0}
.ep6 .chip{font-size:12px;color:#5c812d;background:#eef6e4;border-radius:30px;padding:5px 10px;font-weight:750;white-space:nowrap}
.ep6 .settings{display:grid;grid-template-columns:minmax(210px,.85fr) minmax(0,1.5fr);gap:16px;align-items:start}
.ep6 .settings label, .ep6 .field-label{display:block;font-weight:850;font-size:14px;margin-bottom:7px}
.ep6 .settings select{width:100%;max-width:100%;padding:12px 10px;border:2px solid #d5e5c8;background:#f8fcf4;border-radius:13px;color:#304b24;min-height:51px;font-weight:700}
.ep6 .field-hint{font-size:12px;color:#7e8a77;margin:6px 0 0}
.ep6 .modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ep6 .mode{border:2px solid #dae6ce;border-radius:13px;background:#f9fbf6;color:#446333;padding:10px 9px;min-height:78px;text-align:left;display:grid;align-content:center;gap:3px}
.ep6 .mode strong{font-size:14px}
.ep6 .mode small{font-size:11px;line-height:1.4}
.ep6 .mode[aria-pressed=true]{background:#eaf4dc;border-color:#7ea947}
.ep6 .mode:hover:not(:disabled){border-color:#7ea947}
.ep6 .status{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0 11px}
.ep6 .stat{border:1px solid #e7eee2;border-radius:13px;background:#f6f9f2;padding:11px 6px;text-align:center}
.ep6 .stat span{display:block;color:#647760;font-size:12px}
.ep6 .stat strong{display:block;font-size:clamp(19px,3vw,27px);line-height:1.5;font-variant-numeric:tabular-nums}
.ep6 .progress-meta{display:flex;justify-content:space-between;font-size:12px;color:#6a7c5f;font-weight:800;margin-bottom:6px}
.ep6 .track{height:14px;overflow:hidden;background:#e8eee2;border:1px solid #dfe9d7;border-radius:99px}
.ep6 .fill{height:100%;width:0;background:linear-gradient(90deg,#6e9d36,#a2c75d);border-radius:99px;transition:width .13s linear}
.ep6 .fill.low{background:linear-gradient(90deg,#c46f36,#e4a25b)}
.ep6 .question-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:18px 0 5px}
.ep6 .theme-badge{border-radius:20px;padding:4px 11px;background:#ecf4e6;color:#567933;font-size:13px;font-weight:800}
.ep6 .question-counter{font-size:12px;color:#728568;font-weight:800}
.ep6 .question-title{font-size:clamp(19px,3vw,23px);margin:0 0 13px}
.ep6 .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.ep6 .choice{background:linear-gradient(180deg,#fff,#fffefa);color:var(--ink);border:2px solid #e0e9d9;border-radius:18px;min-height:175px;min-width:0;padding:13px 10px 9px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:9px;transition:border-color .15s,background .15s,transform .15s,box-shadow .15s;box-shadow:0 4px 0 #e6eddb}
.ep6 .choice:hover:not(:disabled){border-color:#92b95b;background:#f9fdef;transform:translateY(-3px);box-shadow:0 7px 13px #5c804318}
.ep6 .choice:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 0 #e6eddb}
.ep6 .choice:disabled{opacity:1}
.ep6 .choice.good{border-color:#4aa465;background:#e8f7e7;animation:ep6-pop .38s ease-out}
.ep6 .choice.bad{border-color:#c77958;background:#fff0e9}.ep6 .choice.try-again{animation:ep6-shake .3s ease-in-out}
.ep6 .icon-scatter{height:121px;max-width:235px;width:100%;position:relative;margin:auto}
.ep6 .icon-scatter span{position:absolute;display:block;font-size:clamp(23px,3vw,30px);line-height:1.15;width:1.23em;text-align:center;white-space:nowrap;filter:drop-shadow(0 2px 1px #00000013)}
.ep6 .choice-name{font-weight:850;color:#4d6742;font-size:14px}
.ep6 .choice-foot{color:#8c9c82;font-size:11px;min-height:18px}
.ep6 .choice-foot.result{font-size:13px;color:#4b8a4c;font-weight:850}
.ep6 .choice.bad .choice-foot.result{color:#bb6541}
.ep6 .instruction{color:#768771;font-size:12px;text-align:center;margin:11px 0 2px}
.ep6 .feedback{min-height:27px;color:#4e843a;font-weight:850;text-align:center;margin:10px 0}
.ep6 .feedback.miss{color:#be6543}
.ep6 .controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:11px}
.ep6 .btn{border-radius:13px;min-height:47px;border:1px solid #d5e4c8;background:#ecf4e6;color:#456432;font-weight:850;padding:10px 18px;flex:1}
.ep6 .btn.primary{border-color:#6d9a2e;color:#fff;background:linear-gradient(115deg,#6d9a2e,#87aa39);box-shadow:0 5px 0 #4b7420;font-size:16px}
.ep6 .btn.primary:hover:not(:disabled){background:linear-gradient(115deg,#5a8a1c,#759931);transform:translateY(-1px)}
.ep6 .btn:hover:not(:disabled){filter:brightness(.98)}.ep6 .btn.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #4b7420}
.ep6 .result{margin-top:17px;padding:17px;border:1px solid #d4e6c8;background:#f3f9ee;border-radius:16px;text-align:center}
.ep6 .result[hidden]{display:none}
.ep6 .result-title{font-size:20px;font-weight:900}
.ep6 .result-big{font-size:31px;font-weight:950;color:#57842e}
.ep6 .result p{font-size:13px;margin:5px 0 12px}
.ep6 .result .btn{max-width:330px;width:100%}
.ep6 .records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ep6 .record-box{background:#f7faf4;border:1px solid #e2eadb;border-radius:14px;padding:14px}
.ep6 .record-box h3{font-size:15px;margin:0 0 6px}
.ep6 .rec-line{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid #e4ece0;padding-top:8px;margin-top:7px;font-size:12px;color:#667960}
.ep6 .rec-line strong{font-size:17px;color:#496c33;font-variant-numeric:tabular-nums}
.ep6 .history-title{font-size:15px;margin:18px 0 6px}
.ep6 .history-title small{font-weight:500;color:#869580}
.ep6 .recent{list-style:none;padding:0;margin:0}
.ep6 .recent li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #edf1e9;padding:9px 1px;color:#65795a;font-size:13px}
.ep6 .recent li strong{color:#537739}
.ep6 .fine{font-size:12px;color:#7f8f76;margin:13px 0 0}
.ep6 .help{color:#526a49;font-size:14px}
.ep6 .help h2{font-size:18px;margin:0 0 10px}
.ep6 .help p{margin:8px 0}
.ep6 .foot{text-align:center;color:#869682;font-size:12px;padding:17px}
@media (max-width:640px){.ep6 .container{padding:15px 10px 38px}
.ep6 .card{padding:13px;border-radius:17px}
.ep6 .hero-art{font-size:28px;min-width:80px;gap:2px 5px}.ep6 .hero{padding:13px 12px}
.ep6 .hero h1{font-size:29px}
.ep6 .settings{grid-template-columns:1fr;gap:11px}
.ep6 .mode{min-height:69px}
.ep6 .choices{gap:8px}
.ep6 .choice{min-height:153px;padding:9px 4px;border-radius:15px}
.ep6 .icon-scatter{height:105px}
.ep6 .icon-scatter span{font-size:clamp(19px,5vw,26px)}
.ep6 .choice-name{font-size:13px}
.ep6 .records{grid-template-columns:1fr}
.ep6 .section-heading h2{font-size:18px}
.ep6 .chip{font-size:11px}}
@media (max-width:360px){.ep6 .hero-art{font-size:23px;min-width:68px}
.ep6 .mode strong{font-size:12px}
.ep6 .mode small{font-size:10px}
.ep6 .icon-scatter span{font-size:20px}
.ep6 .choice{min-height:147px}
.ep6 .stat strong{font-size:20px}}
@media (prefers-reduced-motion:reduce){.ep6 *, .ep6 *:before, .ep6 *:after{transition:none!important;animation:none!important}}
.ep6 .ep6-guide-link{display:inline-flex;align-items:center;margin-top:15px;text-decoration:none;justify-content:center;width:100%;background:#eef6e6;color:#3d642d;font-weight:800}

/* A warm invitation makes the first visit playful; no modal interrupts scrolling. */
.ep6 .challenge-card{border-color:#d9e8bd;box-shadow:0 13px 35px #4f783218}
.ep6 .sample-banner{position:relative;display:flex;align-items:center;gap:15px;overflow:hidden;border:1px solid #eedaa9;border-radius:19px;margin:0 0 18px;padding:18px 20px;background:radial-gradient(circle at 12% 0,#fff8df,transparent 55%),linear-gradient(115deg,#fff7db,#e9f4d9);color:#5c4b28}
.ep6 .sample-banner[hidden]{display:none}
.ep6 .sample-banner-text{position:relative;z-index:1;flex:1;min-width:0}
.ep6 .sample-banner-art{font-size:44px;line-height:1;color:#e6a52e;animation:ep6-spark 3s ease-in-out infinite}
.ep6 .sample-overline{font-size:11px;font-weight:950;letter-spacing:.14em;color:#99792c}
.ep6 .sample-banner strong{display:block;font-size:clamp(18px,3vw,23px);line-height:1.4;margin:5px 0}
.ep6 .sample-banner p{font-size:13px;line-height:1.5;margin:0;color:#736444}
.ep6 .sample-ticket{background:#f3b64a;color:#5d3e0a;border:2px dashed #fff;border-radius:14px;transform:rotate(8deg);text-align:center;font-weight:950;letter-spacing:.05em;padding:7px 10px;font-size:12px;line-height:1.25;box-shadow:0 4px 12px #b5893525}
.ep6 .choice-name{font-size:15px}
.ep6 .feedback{font-size:15px}
.ep6 .controls .btn[hidden]{display:none}
.ep6 .controls .btn:disabled{opacity:.65}
.ep6 .secondary-action{border-style:dashed;border-color:#c9d9ba;background:#fff;font-size:13px}
.ep6 .theme-badge{background:#e5f1cf}
.ep6 .theme-badge::before{content:'✦ ';color:#c79d2d}
.ep6 .progress-meta{margin-top:5px}
.ep6 .fill{background:linear-gradient(90deg,#83a741,#bee16c)}
@keyframes ep6-float{from{transform:translateY(0) rotate(-5deg)}to{transform:translateY(-7px) rotate(5deg)}}
@keyframes ep6-spark{50%{transform:scale(1.16) rotate(14deg)}}
@keyframes ep6-pop{50%{transform:scale(1.035)}}
@keyframes ep6-shake{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@media(max-width:640px){.ep6 .sample-banner{padding:13px 11px;gap:8px}.ep6 .sample-banner-art{font-size:29px}.ep6 .sample-ticket{font-size:10px;padding:6px}.ep6 .sample-banner strong{font-size:18px}.ep6 .sample-banner p{font-size:12px}.ep6 .controls{flex-direction:column}.ep6 .controls .btn{width:100%}.ep6 .icon-scatter{height:104px}}
@media(max-width:360px){.ep6 .sample-ticket{display:none}.ep6 .sample-banner-art{font-size:24px}.ep6 .icon-scatter{height:98px}}
@media(prefers-reduced-motion:reduce){.ep6 .hero-art span,.ep6 .sample-banner-art,.ep6 .choice.good,.ep6 .choice.try-again{animation:none!important}}

/* On first visit, give the actual puzzle priority over setup and statistics. */
.ep6 .challenge-card.is-practice{display:flex;flex-direction:column}
.ep6 .challenge-card.is-practice .section-heading{order:0}
.ep6 .challenge-card.is-practice .sample-banner{order:1}
.ep6 .challenge-card.is-practice .question-meta{order:2}
.ep6 .challenge-card.is-practice .question-title{order:3}
.ep6 .challenge-card.is-practice .choices{order:4}
.ep6 .challenge-card.is-practice .instruction{order:5}
.ep6 .challenge-card.is-practice .feedback{order:6}
.ep6 .challenge-card.is-practice .controls{order:7}
.ep6 .challenge-card.is-practice .settings{order:8;border-top:1px dashed #d6e3c9;padding-top:18px;margin-top:19px}
.ep6 .challenge-card.is-practice .status,.ep6 .challenge-card.is-practice .progress-meta,.ep6 .challenge-card.is-practice .track{display:none}
.ep6 .challenge-card.is-practice .results{order:9}
.ep6 .challenge-card.is-practice .sample-banner{margin-bottom:7px}
.ep6 .challenge-card.is-practice .question-meta{margin-top:10px}
