/* EIN PUZZLE Euler Path v4. All selectors scoped to No.05 page or guide. */
body.ein-p2{margin:0;background:#f7faf7;color:#254637}
.os2{font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN','Noto Sans JP',Meiryo,sans-serif;line-height:1.65;color:#254637;max-width:850px;margin:0 auto;padding:24px 16px 58px;box-sizing:border-box}
.os2 *{box-sizing:border-box}.os2 button,.os2 select{font:inherit}.os2 button{cursor:pointer}
.osEyebrow{color:#55816a;letter-spacing:.12em;font-weight:850;font-size:12px}
.osHero{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:3px 0 19px}
.osHero h1{font-size:clamp(28px,5vw,39px);line-height:1.35;margin:0}.osTagline{font-size:15px;color:#667e6c;margin:3px 0 0}
.osHow,.osGuideLink{display:inline-flex;align-items:center;gap:7px;background:#e5f4ea;color:#226843;border:1px solid #a6d4b7;border-radius:13px;padding:10px 15px;font-size:14px;font-weight:850;text-decoration:none}
.osHow:hover,.osGuideLink:hover{background:#d5ecdd}
.osPanel{background:white;border:1px solid #dce9e0;border-radius:23px;box-shadow:0 10px 35px rgba(20,63,37,.045);padding:19px;margin-bottom:18px}
.osSectionTitle{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:16px;font-weight:850;margin-bottom:10px}
.osSectionTitle h2{font-size:19px;line-height:1.45;margin:0}.osLightNote{font-weight:600;color:#789083;font-size:12px}
.osLevels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 19px}
.osLevel{border:1px solid #d6e7db;border-radius:13px;background:#f4f8f4;color:#416a51;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-height:66px;padding:7px 4px;font-size:14px}
.osLevel strong{font-size:14px}.osLevel .count{font-size:12px;color:#789480;font-variant-numeric:tabular-nums}.osLevel.selected{background:#e0f6e8;border:2px solid #279c67;color:#17673d;box-shadow:inset 0 0 0 1px #a9dbc0}.osLevel.selected .count{color:#207449}
.osTop{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #eef1ef;padding:14px 0 8px}
.osStageTitle{font-weight:900;font-size:21px;line-height:1.4}.osStageName{color:#6c8270;font-size:13px}.osPill{background:#e8f5ec;color:#237949;font-weight:850;border-radius:100px;padding:7px 12px;font-size:13px;white-space:nowrap}
.osSelectRow{display:flex;align-items:center;gap:10px;margin:7px 0 13px}.osSelectRow label{font-size:13px;color:#627968;font-weight:800;white-space:nowrap}
.osSelectRow select{min-width:0;max-width:100%;flex:1;border:1px solid #cfdfd2;border-radius:11px;background:#fff;color:#254637;padding:9px 11px;min-height:44px;font-size:14px}
.osStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}.osStat{text-align:center;background:#f1f8f3;border-radius:12px;padding:10px 4px;min-width:0}.osStat small{display:block;font-size:12px;color:#6b806f}.osStat strong{display:block;font-size:clamp(17px,3vw,21px);font-weight:900;line-height:1.5;font-variant-numeric:tabular-nums;word-break:keep-all}
.osBoardWrap{background:radial-gradient(circle at 50% 37%,#fff 0%,#edf8ef 90%);border-radius:20px;border:1px solid #d7eadc;overflow:hidden}
.osBoardHint{font-size:13px;font-weight:800;color:#4c785c;text-align:center;margin:12px 7px 0}
.osDot{display:inline-block;background:#ffcf68;width:10px;height:10px;border:2px solid #dca638;border-radius:50%}
.osBoard,.osBoard svg{width:100%;touch-action:none;user-select:none}.osBoard svg{height:auto;display:block;cursor:crosshair}
.os2 .base{stroke:#bfd5c5;stroke-width:10;stroke-linecap:round}.os2 .used{stroke:#1d9a65;stroke-width:12;stroke-linecap:round}
.os2 .node{fill:#fff;stroke:#70a986;stroke-width:4}.os2 .completed{fill:#def4e4;stroke:#319f69;stroke-width:4}.os2 .active{fill:#ffce68;stroke:#d29820;stroke-width:4.5}
.os2 .active-halo{fill:#ffeabc;opacity:.9}.os2 .ready-halo{fill:#ccf1db;opacity:.85}.os2 .hit{fill:transparent;cursor:pointer}.os2 .hit:focus-visible{stroke:#d8a63b;stroke-width:4;stroke-dasharray:5 4}
.osNote{min-height:27px;text-align:center;font-size:14px;font-weight:800;color:#417859;margin:11px 0}
.osActions,.osNavigation{display:grid;gap:9px;margin-top:9px}.osActions{grid-template-columns:repeat(3,minmax(0,1fr))}.osNavigation{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #eaf1ec;padding-top:13px;margin-top:14px}
.osBtn{border:0;border-radius:12px;background:#e9f2eb;color:#295b40;min-height:47px;padding:8px 8px;font-size:15px;font-weight:850}.osBtn:hover:not(:disabled){background:#d8eada}.osBtn.osPrimary{background:#26915e;color:#fff}.osBtn.osPrimary:hover:not(:disabled){background:#20774e}.osBtn:disabled{opacity:.44;cursor:not-allowed}
.osNavigationHelp{font-size:12px;color:#779080;text-align:center;margin:7px 0 0}
.osMessage{display:none;margin:13px 0;border:1px solid #afdcbf;background:#e5f8ec;color:#246740;border-radius:16px;padding:16px;text-align:center}.osMessage.show{display:block;animation:osPop .26s ease-out}.osCongrats{font-size:22px;font-weight:900}.osMessage p{margin:5px 0 12px}.osMessage .osBtn{width:100%;max-width:270px}
@keyframes osPop{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.osRecords .osPersonalBest{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fbf8e9;border:1px solid #f2e8c7;padding:11px 13px;border-radius:12px;font-weight:750;font-size:13px}.osPersonalBest strong{font-size:20px;font-variant-numeric:tabular-nums;color:#796015}
.osRecords h3{font-size:16px;margin:20px 0 9px}.osRecords h3 span{font-size:12px;color:#86988a;font-weight:500}
.osHistory{list-style:none;margin:0;padding:0;border-top:1px solid #e6efe9}.osHistory li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e6efe9;padding:10px 3px;font-size:13px;color:#526a57}.osHistory li strong{font-variant-numeric:tabular-nums;font-size:15px;color:#25774d;white-space:nowrap}.osHistory .empty{justify-content:center;color:#8a998c}
.osStorageNote{font-size:12px;color:#768b7b;margin:12px 0 0}.osHelp h2{font-size:19px;margin:0 0 8px}.osHelp p{color:#4e6656;font-size:15px;margin:0 0 10px}.osGuideLink{margin-top:7px}
.os2 button:focus-visible,.os2 select:focus-visible,.os2 a:focus-visible{outline:3px solid #e2b34e;outline-offset:3px}
/* The existing illustrated guide reuses the shared v3 guide-scoped styles below. */
.os2g{max-width:900px}.os2g .eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em;color:#598467}.os2g h1{margin:5px 0 3px;font-size:clamp(27px,5vw,38px)}.os2g .intro{background:#ecf6ee;border:1px solid #d7ebdb;border-radius:18px;padding:18px 20px;margin-bottom:18px}.os2g .intro p{margin:0}.os2g .lesson{background:#fff;border:1px solid #dfeae0;border-radius:20px;margin:15px 0;padding:20px}.os2g .lesson h2{font-size:21px;margin:0 0 8px;line-height:1.5}.os2g .lesson p{color:#4d6656;margin:0 0 13px}.os2g .lesson h3{font-size:16px;margin:15px 0 8px}.os2g .figrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:12px 0}.os2g figure{margin:0;background:#f3faf4;border:1px solid #dbe9dc;border-radius:15px;padding:12px;text-align:center}.os2g figure svg{width:100%;max-width:250px;height:auto;display:block;margin:auto}.os2g figcaption{font-weight:740;color:#345842;font-size:13px;line-height:1.55;margin-top:7px}.os2g .point{fill:#fff;stroke:#4f9971;stroke-width:3}.os2g .end{fill:#ffdc90;stroke:#cb9a38}.os2g .start{fill:#baf2d0;stroke:#20945f}.os2g .line{stroke:#bdcebf;stroke-width:8;stroke-linecap:round}.os2g .path{stroke:#1eab6f;stroke-width:9;stroke-linecap:round}.os2g .bridge{stroke:#e2a646;stroke-width:7;stroke-dasharray:9 8;stroke-linecap:round}.os2g .node-label{font-size:14px;fill:#2a5d42;font-weight:800}.os2g .hintbox{padding:12px 15px;border-radius:12px;background:#f5f8f2;border-left:4px solid #62ab7c;color:#466653;margin:12px 0}.os2g .backlink{display:inline-flex;align-items:center;padding:12px 16px;border-radius:12px;background:#278f5d;color:white;text-decoration:none;font-weight:800}.os2g .backlink:hover{background:#1b7048}
@media(max-width:620px){.osHero{gap:8px}.osHow{width:100%;justify-content:center}.os2{padding:15px 10px 40px}.osPanel{padding:12px;border-radius:18px}.osLevels{gap:6px}.osLevel{min-height:62px;font-size:12px}.osLevel strong{font-size:12px}.osLevel .count{font-size:11px}.osStat small{font-size:11px}.osStat strong{font-size:17px}.osActions{gap:6px}.osBtn{font-size:13px}.os2g .lesson{padding:16px}.os2g .figrow{grid-template-columns:1fr}.osRecords .osPersonalBest{font-size:12px}}
@media(max-width:380px){.osLevel strong{font-size:12px;white-space:nowrap}.osLevels{gap:4px}.osStat strong{font-size:16px}.osBtn{font-size:13px}.osActions{grid-template-columns:repeat(2,minmax(0,1fr))}.osActions #osHint{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.os2 *{animation:none!important;transition:none!important}}
