:root{color-scheme:light;--peach:#ffc49e;--cream:#ffe3bb;--plum:#5b2149;--violet:#a968df;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:var(--plum);background:#edab83}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#ffe1b6,#e79573 80%)}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #fff3cd;outline-offset:3px}button:disabled{cursor:default;opacity:.55}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.workshop{position:relative;isolation:isolate;width:min(100%,500px);height:100vh;height:100dvh;max-height:960px;margin:auto;padding:env(safe-area-inset-top,0px) 10px max(4px,env(safe-area-inset-bottom,0px));display:grid;grid-template-rows:48px clamp(70px,11.5dvh,110px) 49px minmax(160px,1fr) 34px 122px 54px 23px;gap:3px;background:#f8b48a url('../assets/play/hingehaul/workshop.webp') center/cover;box-shadow:0 0 70px #8c3c4b42;overflow:hidden}.toolbar{display:flex;align-items:center;gap:6px;z-index:2;font-size:13px;font-weight:800}.back{min-width:60px;min-height:48px;display:grid;place-items:center;text-decoration:none;color:var(--plum);text-shadow:0 1px #ffe3bb}.route-label{flex:1;min-width:0}.route-label select{width:100%;min-height:48px;border:0;background:#ffe1baae;border-radius:13px;padding:0 8px;font-size:12px;font-weight:800}.small-button{font-size:11px;min-height:48px;min-width:58px;border:0;background:#66234ae8;color:var(--cream);border-radius:14px;box-shadow:inset 0 1px #ffbbca66,0 3px 5px #72344d30}.masthead{display:flex;justify-content:center;align-items:center;pointer-events:none}.masthead img{max-height:100%;width:auto;max-width:85%;filter:drop-shadow(0 5px 3px #85334944);object-fit:contain}.ribbon{margin:0 12px;display:flex;align-items:center;justify-content:space-between;padding:4px 14px;border-radius:24px;background:linear-gradient(#8a315c,#581333);border:2px solid #cb6c82;box-shadow:inset 0 2px #e295aa66,0 4px 4px #9a513d40;color:var(--cream)}.counter,.record{display:flex;flex-direction:column;min-width:52px;align-items:center;font-variant-numeric:tabular-nums}.counter>span{font-weight:900;font-size:22px;line-height:22px}.ribbon small{font-size:11px;font-weight:700}.record>b{font-size:18px;line-height:22px}.requests{display:flex;gap:12px;align-items:center}.request{position:relative;width:31px;height:31px;border:2px solid #e3ab9d;border-radius:9px;display:grid;place-items:center}.request img{width:23px;height:23px;object-fit:contain}.request.done{background:#ffe5b7;border-color:#fff0d3}.request.done::after{content:'✓';position:absolute;right:-7px;bottom:-6px;font-weight:900;font-size:17px;color:#572046;text-shadow:0 1px 2px #ffe1ba}.stage-wrap{position:relative;min-height:0}.stage-wrap canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;outline-offset:-5px}.board-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px;font-weight:800;pointer-events:none;text-shadow:0 1px #ffe5c4}.face-diagram{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:800;white-space:nowrap}.face-diagram img{object-fit:contain;filter:drop-shadow(0 2px 1px #6b284544)}.wood-link{width:22px;height:10px;background:#ffd196 url('../assets/play/hingehaul/wood.webp') center/cover;border:1px solid #a66444;border-radius:2px;margin:0 -4px}.face-diagram #face-state{margin-left:5px}.practice{font-size:11px;background:var(--plum);color:var(--cream);border-radius:8px;padding:4px 6px}.controls{display:flex;align-items:center;justify-content:center;gap:15px;user-select:none}.art-button{display:grid;place-items:center;border:0;background:none;padding:0;min-width:48px;min-height:48px;position:relative;filter:drop-shadow(0 4px 2px #7c364c44);transition:transform .1s,filter .1s}.art-button img{width:100%;height:100%;object-fit:contain;pointer-events:none;display:block}.art-button:active{transform:translateY(3px) scale(.97);filter:drop-shadow(0 1px 1px #7c364c44)}.art-button span{position:absolute;bottom:-15px;font-size:11px;font-weight:900;text-shadow:0 1px #ffe5c4}.side-button{width:65px;height:65px;margin-top:15px}.dpad{width:180px;height:120px;display:grid;grid-template-columns:repeat(3,60px);grid-template-rows:repeat(2,60px)}.up{grid-area:1/2}.left{grid-area:2/1}.down{grid-area:2/2}.right{grid-area:2/3}.side-stack{display:flex;flex-direction:column;gap:6px;width:50px}.side-stack .art-button{width:50px;height:50px}.action-row{display:flex;gap:6px;align-items:center;justify-content:center;min-width:0;padding:2px 5px}.action-row #message{font-size:12px;line-height:1.2;font-weight:800;flex:1;max-width:210px;text-align:center;text-wrap:balance}.text-button{border:1px solid #a4556b;border-radius:14px;min-height:48px;padding:8px 13px;background:linear-gradient(#ffe5bb,#ffbc83);box-shadow:inset 0 2px #fff1d4,0 3px #b36153;font-size:12px;font-weight:900}.text-button.primary{background:linear-gradient(#8d376b,#5b2149);color:#ffe3bb;border-color:#ad537c;box-shadow:inset 0 2px #c66b99,0 3px #4e183e;min-width:120px}.text-button:active{transform:translateY(2px);box-shadow:none}.local-record{display:flex;justify-content:center;gap:9px;font-size:11px;line-height:20px;font-weight:800;white-space:nowrap}.help{max-width:760px;margin:36px auto;padding:24px 22px 48px;line-height:1.7;background:#ffe6c4;border-radius:24px;box-shadow:0 8px 30px #82394712}.help h1{font-size:30px;line-height:1.15;max-width:600px}.help h2{font-size:20px;margin-top:30px}.help p{font-size:15px}.help .eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:900}.help a{color:#702b61}.help-links a{display:inline-flex;min-height:48px;align-items:center}dialog{width:min(340px,calc(100% - 28px));padding:24px;border:3px solid #bc6a79;border-radius:24px;background:#ffe0b6;color:#5b2149;box-shadow:0 16px 60px #32142c55}dialog h2{margin:0 0 10px;font-size:22px}dialog p{font-size:14px;line-height:1.5}dialog>div{display:flex;gap:10px}dialog::backdrop{background:#4a203845;backdrop-filter:blur(2px)}@media(min-width:800px){.workshop{border-radius:0 0 28px 28px}.help{margin-top:56px}}@media(max-width:359px){.workshop{padding-left:6px;padding-right:6px;grid-template-rows:48px 76px 46px minmax(150px,1fr) 30px 110px 54px 22px}.controls{gap:10px}.dpad{width:162px;height:108px;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(2,54px)}.side-button{width:58px;height:58px}.side-stack{width:48px}.side-stack .art-button{width:48px;height:48px}.requests{gap:8px}.local-record{font-size:11px;gap:6px}.text-button{padding:8px}.text-button.primary{min-width:105px}}@media(max-height:730px){.workshop{grid-template-rows:48px 68px 45px minmax(140px,1fr) 29px 108px 50px 18px;gap:2px}.dpad{height:104px;width:156px;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,52px)}.local-record{line-height:16px}.controls{gap:14px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.face-diagram{width:fit-content;max-width:100%;margin:auto;padding:2px 10px;border:1px solid #c77780;border-radius:16px;background:#ffe0b8bf;box-shadow:0 2px 3px #873a4526}.local-record #saved{font-size:11px}.local-record{gap:8px}@media(max-width:359px){.local-record{gap:5px}.local-record #saved{max-width:90px;overflow:hidden;text-overflow:ellipsis}}

.local-record{background:#ffe0b8cf;border-radius:10px;color:#5b2149}
