:root{color-scheme:light;--ink:#53442f;--paper:#f5eedc;--green:#68785a;--orange:#c77853;--wheel:min(56vw,calc(100svh - 215px),650px)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif;background-color:var(--paper);background-image:radial-gradient(#b3a58d30 .8px,transparent .8px);background-size:7px 7px;min-height:100svh;overflow-x:hidden}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #965831;outline-offset:5px}button:disabled{cursor:default}header{height:74px;padding:20px 34px;display:flex;align-items:center;justify-content:space-between;font-size:15px}header>a{font-weight:900}header>span{letter-spacing:4px;font-size:11px;color:#8c7c64}.sound{border:0;background:transparent;font-size:21px;padding:10px}.sound span{font-size:10px;vertical-align:middle}
main{display:flex;align-items:center;justify-content:center;gap:clamp(20px,5vw,90px);min-height:calc(100svh - 100px);padding:0 32px 32px}.wheel-side{display:flex;flex-direction:column;align-items:center}h1{font-size:clamp(21px,2.4vw,34px);letter-spacing:.06em;margin:0 0 30px;font-weight:900}h1 span{color:#ae9472;margin-right:.35em}h1 span:last-child{margin:0}.wheel-wrap{position:relative;width:var(--wheel);height:var(--wheel)}.wheel{position:absolute;inset:0;border:12px solid #785a3c;border-radius:50%;background:#e5bf8a;box-shadow:0 9px 0 #533e2c,0 15px 0 5px #dbcbb1,0 24px 45px #59442826;overflow:hidden}.wheel svg{width:100%;height:100%;display:block;will-change:transform;border-radius:50%;border:5px solid #edd6af}.pointer{position:absolute;z-index:3;top:-22px;left:calc(50% - 19px);width:38px;height:63px;background:#624730;clip-path:polygon(8% 0,92% 0,100% 32%,50% 100%,0 32%);filter:drop-shadow(0 4px 1px #0003);transform-origin:50% 12%}.pointer.tick{animation:tick .1s}.spin{white-space:nowrap;padding:0;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:7px solid #8b6746;background:#fff7e5;border-radius:50%;width:26%;height:26%;font-size:clamp(18px,2.3vw,28px);font-weight:900;box-shadow:0 6px 0 #513b28,0 9px 12px #47362136;display:flex;align-items:center;justify-content:center;flex-direction:column;line-height:1.2;transition:background .2s}.spin span{font-size:32px;font-weight:400}.spin:hover{background:#ffecd0}.spin:active{margin-top:4px;box-shadow:0 2px 0 #513b28}.spin:disabled{color:#9e8569;background:#ebdcc0}.folk-side{width:330px;text-align:center;align-self:center}.result-heading{min-height:115px}#eyebrow{font-size:14px;letter-spacing:.16em;margin:0 0 12px;color:#85795f}h2{margin:0;font-size:clamp(36px,4vw,55px);font-weight:900;letter-spacing:.04em;white-space:nowrap}.scene{height:305px;position:relative;margin:15px auto 0;width:100%;isolation:isolate}#folk{position:absolute;z-index:3;width:230px;height:255px;object-fit:contain;object-position:center bottom;bottom:28px;left:50%;transform:translateX(-50%);transform-origin:50% 85%;filter:drop-shadow(2px 6px 0 #7153320b);animation:breathe 3s ease-in-out infinite}.ground{z-index:1;position:absolute;bottom:20px;width:100%;height:62px;border-radius:50%;background:#c0c39855}.shadow{z-index:2;position:absolute;left:18%;bottom:30px;width:65%;height:29px;border-radius:50%;background:#6b604225;filter:blur(4px)}.sun{z-index:0;position:absolute;top:10px;right:12%;width:62px;height:62px;border-radius:50%;background:#dcb77666;box-shadow:0 0 0 13px #dcc08d20}.sleep{z-index:4;display:none;position:absolute;right:12%;top:85px;font:italic 30px Georgia;color:#798561}.sleep span{position:absolute;font-size:22px;left:20px;top:-21px}.sleep span:last-child{font-size:15px;left:37px;top:-40px}.sparkles{z-index:4;display:none;position:absolute;left:12%;top:100px;color:#b1823b;font-size:36px}.sparkles span{position:absolute;left:230px;top:-30px;font-size:26px}.sparkles span:last-child{left:220px;top:100px;font-size:16px}.scene.work #folk{animation:hop 1.4s ease-in-out infinite}.scene.work .sparkles{display:block;animation:shimmer 1.5s infinite}.scene.rest #folk{display:none}.scene.rest #nap{display:block;animation:bed-settle .4s ease-out,bed-breathe 3s ease-in-out .4s infinite}.scene.rest .sleep{display:block;animation:drift 2.6s ease-in-out infinite}.spinning #folk{animation:anticipate .45s ease-in-out infinite}.actions{min-height:128px}.actions[hidden],.fallback[hidden]{display:none}.share{border:1.5px solid #857356;background:#fff9eb;border-radius:30px;min-height:48px;padding:10px 24px;font-weight:700;font-size:15px;box-shadow:0 3px 0 #d8c9ad}.share span{margin-left:14px}.meet{display:block;margin:14px auto 0;font-size:12px;color:#8f7a5b;max-width:180px}.notice{font-size:12px;min-height:1em;margin:8px 0 0}.notice:empty{display:none}.fallback{display:flex;justify-content:center;gap:10px;margin-top:14px;flex-wrap:wrap}.fallback button,.fallback a{border:1px solid #c4b393;border-radius:15px;background:#fdf5e5;padding:9px 13px;font-size:12px;min-height:38px}.particles{position:fixed;inset:0;pointer-events:none;overflow:hidden}.particles i{position:absolute;width:9px;height:14px;border-radius:3px;top:42%;left:50%;background:var(--green);animation:confetti 1.3s ease-out forwards}.work-result h2{color:var(--green)}.rest-result h2{color:var(--orange)}
@keyframes breathe{50%{transform:translateX(-50%) translateY(-4px) rotate(1deg)}}@keyframes hop{0%,50%,100%{transform:translateX(-50%)}20%{transform:translateX(-50%) translateY(-23px) rotate(6deg)}70%{transform:translateX(-50%) translateY(-12px) rotate(-3deg)}}@keyframes drift{50%{transform:translateY(-8px);opacity:.5}}@keyframes shimmer{50%{opacity:.4;transform:scale(.9)}}@keyframes anticipate{50%{transform:translateX(-50%) rotate(-4deg) translateY(-6px)}}@keyframes tick{50%{transform:rotate(-13deg)}}@keyframes confetti{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}
@media(max-width:760px){:root{--wheel:min(86vw,47svh,430px)}header{height:48px;padding:8px 18px}main{flex-direction:column;gap:0;padding:12px 16px 22px;min-height:calc(100svh - 48px);justify-content:flex-start}h1{font-size:23px;margin:3px 0 27px}.wheel{border-width:9px}.wheel svg{border-width:3px}.spin{font-size:18px;border-width:5px}.spin span{font-size:24px}.pointer{top:-18px;width:30px;height:49px;left:calc(50% - 15px)}.folk-side{width:min(100%,360px);margin-top:30px;display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:center;column-gap:0}.result-heading{min-height:0;text-align:left;padding-left:12px}#eyebrow{font-size:11px;margin-bottom:8px}h2{font-size:34px}.scene{width:140px;height:146px;margin:0}#folk{width:112px;height:120px;bottom:16px}.ground{height:30px;bottom:10px}.shadow{bottom:14px;height:14px}.sun{width:28px;height:28px;top:12px;right:8%;box-shadow:0 0 0 7px #dcc08d20}.sleep{font-size:20px;right:18%;top:38px}.sleep span{font-size:14px}.sleep span:last-child{font-size:10px}.sparkles{font-size:22px;top:45px;left:3%}.sparkles span{left:115px;top:-10px;font-size:17px}.sparkles span:last-child{left:111px;top:50px;font-size:12px}.actions{grid-column:1 / -1;min-height:0;margin:8px 0 0}.share{min-height:44px}.meet{margin-top:12px}#nap{width:140px;height:94px;bottom:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.particles{display:none}}




#nap{position:absolute;z-index:3;display:none;width:310px;height:200px;object-fit:contain;object-position:center bottom;bottom:28px;left:50%;transform:translateX(-50%);transform-origin:50% 80%}
@keyframes bed-settle{from{opacity:0;transform:translateX(-50%) translateY(-5px)}to{opacity:1;transform:translateX(-50%)}}
@keyframes bed-breathe{50%{transform:translateX(-50%) scale(1.012,1.02)}}
@media(max-width:760px){#nap{width:140px;height:94px;bottom:15px}.scene.rest .sleep{right:58%;top:40px}}

