*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f2e8d6;color:#293f42;font-family:system-ui,-apple-system,"Yu Gothic",sans-serif}canvas{display:block;width:100%;height:100%;touch-action:none}header{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));pointer-events:none;max-width:400px}.eyebrow{font-size:10px;letter-spacing:3px;color:#7c8981}h1{font-size:32px;margin:5px 0 13px;letter-spacing:1px}h1 span{display:block;font-size:11px;font-weight:500;letter-spacing:2px;margin-top:4px}.stats{display:flex;gap:18px;align-items:center;font-size:12px}.stats b{background:#2b4446;color:#fff6df;border-radius:20px;padding:5px 12px;font-size:17px}#message{font-size:13px;margin:12px 0 8px;min-height:20px}#strain{width:150px;height:4px;border-radius:3px;background:#283e4122;overflow:hidden}#strain i{display:block;width:0;height:100%;background:#e87651}header small{font-size:9px;color:#798880;display:block;margin-top:5px}nav{position:absolute;top:24px;right:22px;display:flex;gap:7px}button{border:1px solid #2a424433;background:#fff8e7;color:#293f42;border-radius:20px;padding:10px 14px;font:600 12px system-ui;cursor:pointer;touch-action:manipulation}button:hover{filter:brightness(1.05)}button:focus-visible{outline:3px solid #cc673f}button:disabled{opacity:.4}#controls{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#f9f2e4ee;border:1px solid #ffffffaa;border-radius:18px;padding:11px 15px;width:440px;max-width:96%;text-align:center}#instruction{font-size:12px;margin-bottom:9px}#parts{display:flex;justify-content:center;gap:6px}#parts button{padding:10px 12px;border:2px solid transparent;border-radius:13px;white-space:nowrap}#parts button:nth-child(1){background:#d2e5ea}#parts button:nth-child(2){background:#f0e4b4}#parts button:nth-child(3){background:#e4d8ed}#parts button:nth-child(4){background:#f2d7c9}#parts button:nth-child(5){background:#dce4de}#parts button.active{border-color:#334e51;transform:translateY(-2px)}.lastline{display:flex;align-items:center;justify-content:space-between;margin-top:9px;font-size:11px;color:#607777}.lastline button{padding:5px 10px;background:transparent;font-size:10px}#tags{pointer-events:none}#tags span{position:absolute;left:0;top:0;width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;border-radius:50%;background:#fff8;color:#243f43;pointer-events:none}dialog{border:0;background:#fff8e8;color:#293f42;border-radius:22px;max-width:470px;width:92%;max-height:92vh;overflow:auto;padding:28px;box-shadow:0 25px 80px #293f4244}dialog::backdrop{background:#243f4355;backdrop-filter:blur(4px)}dialog h2{font-size:26px;line-height:1.4}dialog ol{padding-left:21px}dialog li,dialog p{font-size:13px;line-height:1.8}dialog li{margin:9px 0}dialog small{font-size:10px;line-height:1.6;display:block}#start,#next{width:100%;margin-top:20px;background:#2b4446;color:#fff7e4;padding:13px}#win{position:absolute;left:50%;top:23%;transform:translate(-50%,-50%);background:#fff8e8f5;padding:20px 28px;border-radius:22px;text-align:center;min-width:290px;box-shadow:0 20px 70px #293f4222}#win>div{font-size:10px;letter-spacing:4px;color:#a47342}#win h2{margin:8px 0;font-size:30px}#win p{font-size:11px}#next{margin-top:8px}#error{position:absolute;top:30%;left:10%;width:80%;padding:24px;background:white}[hidden]{display:none!important}@media(max-width:600px){header{top:16px;left:14px;max-width:310px}h1{font-size:27px;margin-bottom:9px}.eyebrow{font-size:8px}.stats{gap:11px;font-size:10px}nav{top:18px;right:12px}nav button{padding:8px 10px;font-size:11px}#message{font-size:11px;max-width:280px;margin:10px 0 5px}header small{font-size:8px}#controls{padding:10px;bottom:max(12px,env(safe-area-inset-bottom))}#parts{gap:4px}#parts button{padding:10px 9px;font-size:11px}#instruction{font-size:10px}}@media(max-height:500px){header{top:12px;left:16px}h1{font-size:22px;margin:0 0 6px}h1 span,.eyebrow,header small{display:none}.stats b{font-size:13px}#message{margin:5px 0;font-size:10px;max-width:240px}#controls{left:auto;right:12px;bottom:12px;transform:none;width:385px;padding:8px}#parts button{padding:7px 9px}#instruction{font-size:10px}nav{top:12px}#win{left:77%;top:42%;min-width:265px}dialog{padding:18px}}

#posture{font-size:11px;color:#397b68;margin-top:9px;font-weight:700}#lesson{position:absolute;left:50%;bottom:158px;transform:translateX(-50%);background:#fff7dfed;border:1px solid #d4b76b;border-radius:13px;padding:11px 18px;max-width:94%;font-size:12px;white-space:nowrap;pointer-events:none}#skip{width:100%;margin-top:8px;background:transparent}@media(max-width:600px){#posture{font-size:10px}#lesson{bottom:143px;white-space:normal;width:94%;font-size:11px;text-align:center;padding:9px}}@media(max-height:500px){#posture{font-size:9px;margin-top:4px}#lesson{left:auto;right:12px;bottom:126px;transform:none;width:385px;font-size:10px;padding:6px;white-space:normal}#message{max-width:240px}}
@media(min-height:501px){#lesson{top:240px;bottom:auto}}@media(max-height:500px){#lesson{top:120px;bottom:auto;left:16px;right:auto;transform:none;width:330px}}

html,body{overscroll-behavior:none}body{position:fixed;inset:0;height:100dvh;-webkit-user-select:none;user-select:none}canvas{-webkit-touch-callout:none}dialog{touch-action:pan-y;overscroll-behavior:contain}dialog p,dialog li{font-size:16px}dialog small{font-size:12px}#parts button,nav button,.lastline button{min-height:44px;font-size:14px}#parts button{flex:1;min-width:0;padding:8px}#instruction,#posture,.stats,#selected{font-size:14px}#message,#lesson{font-size:13px}header small{font-size:12px}#controls{padding:10px 12px}nav{right:max(12px,env(safe-area-inset-right))}header{left:max(14px,env(safe-area-inset-left))}@media(max-width:600px),(pointer:coarse){.key,.reset-word,.eyebrow,header small{display:none}#controls{width:440px;max-width:96%;bottom:max(10px,env(safe-area-inset-bottom))}#parts button{font-size:14px;padding:8px 4px}.lastline button{font-size:13px;padding:8px}#instruction{font-size:13px}h1 span{font-size:12px}#lesson{font-size:13px}header{top:max(14px,env(safe-area-inset-top))}}@media(max-height:500px){#controls{width:385px;max-width:48%;right:max(10px,env(safe-area-inset-right));left:auto}#instruction{font-size:12px}#posture,.stats,#message,#selected{font-size:12px}#lesson{top:122px;max-width:40%;font-size:12px}#parts button{font-size:14px}.lastline button{font-size:12px}header small{display:none}}
nav button{min-width:44px}
