:root{font-family:system-ui,-apple-system,'Hiragino Sans',sans-serif;color:#142a43;background:#eef4fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer}button,a,summary{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;background:#e7ebef;color:#5c6875;border-color:#d2dae3;box-shadow:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b74626;outline-offset:4px}a{color:#125b9e}p{line-height:1.7}header{max-width:1050px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px}header b{display:block;font-size:16px;color:#546a80}header strong{display:block;font-size:26px;letter-spacing:-.03em}nav{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.quiet{border:1px solid #bdcbd9;border-radius:10px;padding:10px 12px;min-height:44px;background:transparent;font-size:14px}.layout{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;padding:0 16px}.layout:not(:has(.board)){grid-template-columns:minmax(0,660px);justify-content:center}main{min-width:0;background:#fff;padding:26px;border-radius:20px;border:1px solid #dce5ee}.board{background:#132a43;color:#fff;padding:18px;border-radius:18px;align-self:start}.board-heading b{font-size:16px}.board-heading>span{display:block;font-size:12px;color:#c1d0df;margin-top:6px}.racer{margin-top:24px}.racer>span{display:block;font-size:14px}.racer>b{font-size:34px;display:block;margin-top:5px}.racer small{font-size:14px;margin-left:3px}.track{height:8px;border-radius:8px;overflow:hidden;background:#dce4ee;margin-top:7px}.board .track{background:#ffffff26}.track i{display:block;height:100%;transition:width .3s}.eyebrow{font-size:14px;color:#1a766e;font-weight:750}.intro h1{font-size:clamp(36px,7vw,56px);line-height:1.15;margin:20px 0;letter-spacing:-.04em}.intro h1 span{display:block;font-size:1.6em;color:#d54a38}.catch{font-weight:850;font-size:21px}.character{display:flex;align-items:center;gap:16px;margin:14px 0}.character p{font-size:16px}.mascot{height:145px;width:145px;flex-shrink:0;background-image:url('assets/seijiyakun-expressions.png');background-size:200% 200%;background-position:0 0}.mascot.shock{background-position:100% 0}.mascot.smug{background-position:0 100%}.mascot.bow{background-position:100% 100%}.character.small .mascot{width:85px;height:85px}.brief{background:#fff0ee;border:2px solid #bb443e;border-left-width:6px;border-radius:12px;padding:16px;margin:18px 0;color:#8e272b}.brief>b{font-size:14px}.brief p{font-size:19px;font-weight:800;margin:9px 0}.brief strong{display:block;font-size:16px;line-height:1.7}.brief small{font-size:14px;line-height:1.6;display:block}.cases{display:grid;gap:12px}.case{display:block;width:100%;text-align:left;border:2px solid #c2d5e4;border-radius:14px;padding:18px;background:#f3f8fc}.case b{font-size:19px;display:block}.case span{display:block;font-size:16px;line-height:1.6;margin-top:7px}.case:hover{border-color:#177d76}.fine{font-size:13px;color:#51667c;line-height:1.7}.round{display:flex;justify-content:space-between;gap:8px;background:#132a43;color:#fff;border-radius:10px;padding:12px;font-size:16px;position:sticky;top:6px;z-index:2}.meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.meter{background:#edf3f9;border-radius:10px;padding:12px}.meter>div:first-child{display:flex;flex-direction:column;gap:4px}.meter span{font-size:14px}.meter b{font-size:26px}h1{font-size:28px;line-height:1.4}h2{font-size:22px}h3{font-size:18px}.hint{font-size:14px;color:#51667c}.task{border:1px solid #c8d6e1;border-radius:14px;padding:18px;margin-top:14px}.task-title{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.task-title>b{font-size:18px}.task-title>span{font-size:14px;font-weight:700;color:#50647b}.task p{font-size:16px;margin:12px 0}.task.working{border-color:#c47b23;background:#fffbf2}.task.verified{border-color:#348c74;background:#f0faf6}.task.verified .task-title>span{color:#17674f}.task>small{display:block;margin-top:8px;font-size:14px}.do,.primary{display:block;width:100%;background:#137b75;color:#fff;font-weight:800;border:1px solid #137b75;border-radius:10px;min-height:52px;padding:13px 16px;text-align:center;font-size:16px}.primary{margin-top:18px}.do:hover:not(:disabled),.primary:hover{background:#0c6762}.assist{border:1px solid #71869b;color:#294965;background:#fff;border-radius:9px;padding:12px;min-height:48px;width:100%;margin-top:10px;font-size:14px;font-weight:700}.complete{color:#17674f}.temptation,.learning{border:1px solid #d2dee8;border-radius:12px;background:#f2f6fb;padding:18px;margin:22px 0}.temptation summary,.learning summary{cursor:pointer;font-weight:750;font-size:16px;min-height:30px}.danger{background:#9a3945;border-color:#9a3945}.gain{font-size:55px;font-weight:950;color:#137b75;margin:20px 0}.gain small{font-size:18px;margin-left:8px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips span{background:#eaf1f8;border-radius:7px;padding:8px;font-size:14px}.notice{border-left:4px solid #e39141;background:#fff6ea;padding:14px;font-size:16px}.grade{font-size:80px;font-weight:950;color:#d54a38}.grade small{font-size:18px;margin-left:8px}.end-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.end-stats>div{border-radius:12px;background:#edf3f9;padding:15px;font-size:14px}.end-stats b{display:block;font-size:23px;margin-top:7px}.buttons{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.buttons>*{flex:1}.secondary{border:1px solid #b8cbd9;border-radius:10px;background:#edf4fa;padding:13px;min-height:48px;font-weight:700}footer{max-width:1000px;margin:24px auto;padding:0 20px 25px;font-size:13px;color:#51667c}footer .buttons{max-width:400px}dialog{border:0;border-radius:18px;padding:24px;max-width:590px;width:calc(100% - 24px);max-height:85dvh;color:#142a43;overscroll-behavior:contain}dialog::backdrop{background:#071a32b3}dialog li{margin-bottom:13px;line-height:1.7}.close{float:right}dialog textarea{width:100%;height:180px;font:inherit}.result-image{width:100%;max-height:55dvh;object-fit:contain}.history{border-bottom:1px solid #d1dce6;padding:12px 0}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:9;border-radius:12px;background:#132a43;color:white;padding:14px;width:max-content;max-width:90%;font-size:14px}#toast:empty{display:none}.receipt{animation:enter .2s}@keyframes enter{from{opacity:.3}to{opacity:1}}
@media(max-width:700px){header{padding:16px 14px}header strong{font-size:23px}nav{max-width:125px}.quiet{padding:8px 10px}.layout{display:block;padding:0 10px}main{padding:20px 15px;border-radius:15px}.board{padding:14px;margin-bottom:12px}.board-heading{display:flex;gap:8px;align-items:center;justify-content:space-between}.board-heading>span{font-size:12px;margin:0}.racers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.racer{margin-top:12px}.racer>b{font-size:28px}.racer>span{font-size:14px}.racer small{font-size:12px}.task{padding:15px}.meters{gap:7px}.meter{padding:9px}.meter span{font-size:14px}.brief{padding:13px}.brief p{font-size:18px}.character{gap:10px}.mascot{width:115px;height:115px}.round{font-size:14px}.intro h1{font-size:42px}.intro h1 span{font-size:1.55em}.task-title>b{font-size:17px}.end-stats b{font-size:21px}}
@media(max-width:350px){header strong{font-size:20px}.racer>span{font-size:13px}.meter span{font-size:13px}.board-heading>span{display:none}.intro h1{font-size:36px}.mascot{width:95px;height:95px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
