@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700;800;900&display=swap');
:root{--ink:#174c3d;--green:#1b775b;--lime:#dcf37a;--cream:#f8f6e9}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Noto Sans JP',sans-serif;background-image:radial-gradient(#21503b16 .8px,transparent .8px);background-size:8px 8px}button,a{-webkit-tap-highlight-color:transparent}header{max-width:1240px;margin:auto;padding:25px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #174c3d26;font-size:12px;font-weight:900;letter-spacing:1.8px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand-icon{background:var(--ink);color:var(--lime);width:31px;height:31px;border-radius:8px;font-size:23px;text-align:center;letter-spacing:-3px;padding-right:4px}.small{font-size:9px;border-left:1px solid #174c3d44;padding-left:10px}.edition{font-size:10px;display:flex;gap:13px;align-items:center}i{display:inline-block;background:#97bf4b;width:7px;height:7px;border-radius:50%}main{max-width:980px;margin:auto;padding:38px 24px 0}.intro{text-align:center}.eyebrow{display:inline-block;font-size:11px;letter-spacing:3px;font-weight:700;margin-bottom:14px}h1{font-size:44px;line-height:1.23;letter-spacing:-2px;margin:0;font-weight:900}h1>span{display:block;font-size:50px}.title-star{display:inline-block;color:#ec8753;font-size:35px;vertical-align:top;margin:0 -25px 0 5px;transform:rotate(12deg)}.intro p{font-size:13px;letter-spacing:2px;margin:18px 0 25px}.machine{max-width:470px;margin:auto;border:2px solid var(--ink);border-radius:23px;background:#fffcf2;box-shadow:7px 8px 0 #174c3d;overflow:hidden;position:relative}.machine-top{background:var(--ink);color:#f5f4d8;display:flex;justify-content:space-between;padding:12px 20px;font-size:9px;font-weight:800;letter-spacing:2px}.machine-top i{margin-right:6px;background:var(--lime)}.stats{display:flex;justify-content:space-between;padding:18px 26px 12px}.stat-label{font-size:9px;font-weight:800;letter-spacing:1.8px}.digits{font-size:43px;font-weight:900;line-height:1.15;letter-spacing:-1.7px;font-variant-numeric:tabular-nums}.digits small{font-size:12px;margin-left:7px;letter-spacing:0}.time{text-align:right}.timer-track{margin:0 25px;height:5px;border-radius:9px;background:#e4e8d8;overflow:hidden}#timer{height:100%;background:var(--green);width:100%;transform-origin:left}.arena{height:318px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at center,#e6f1ca88,transparent 68%)}.halo{position:absolute;width:245px;height:245px;border-radius:50%;background:#eaf0ce;top:42px;left:50%;transform:translateX(-50%);z-index:-2}.orbit{position:absolute;left:50%;top:60px;width:290px;height:200px;border:1px dashed #9eb49455;border-radius:50%;transform:translateX(-50%) rotate(-28deg);z-index:-1}.orbit-two{transform:translateX(-50%) rotate(30deg);width:260px;height:245px;top:29px}.character{padding:0;position:absolute;left:50%;bottom:17px;width:256px;height:277px;transform:translateX(-50%);background:none;border:0;touch-action:none;user-select:none;cursor:pointer;transform-origin:center bottom;z-index:2}.character:disabled{cursor:default}.character img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 7px 0 #174c3d15)}.character.idle img{animation:float 3s ease-in-out infinite}.floor{position:absolute;bottom:11px;left:50%;width:235px;height:21px;border-radius:50%;background:#174c3d13;transform:translateX(-50%);z-index:-1}.bubble{position:absolute;top:15px;left:50%;transform:translateX(-50%) rotate(-3deg);font-size:10px;white-space:nowrap;font-weight:800;border:1px solid var(--ink);background:white;padding:7px 12px;border-radius:20px;z-index:3}.spark{position:absolute;color:#d18a3e;font-size:35px;z-index:1}.s1{left:40px;top:107px;transform:rotate(15deg)}.s2{right:41px;top:75px}.s3{right:39px;bottom:55px;font-size:23px;color:#6e916c}.stage-caption{position:absolute;left:35px;bottom:30px;transform:rotate(-12deg);font-size:11px;font-weight:900;letter-spacing:2px;z-index:3}.stage-caption span{display:block;font-size:26px;text-align:right;line-height:1}.controls{text-align:center;padding:8px 25px 17px}#message strong{font-size:17px;font-weight:900}#message p{font-size:10px;color:#62776a;margin:7px 0 16px}.primary{display:flex;align-items:center;justify-content:center;gap:25px;width:100%;padding:15px;border:2px solid var(--ink);border-radius:12px;background:var(--lime);color:var(--ink);box-shadow:0 4px 0 var(--ink);font-family:inherit;font-size:19px;font-weight:900;cursor:pointer;transition:transform .1s,box-shadow .1s}.primary:hover{background:#e8fc98}.primary:active{transform:translateY(4px);box-shadow:none}.primary span{font-size:24px;position:absolute;right:44px}.primary:focus-visible,.character:focus-visible{outline:3px solid #e98956;outline-offset:4px}.hint{font-size:9px;letter-spacing:.5px;margin:14px 0 0;color:#6b7c6b}.how{max-width:470px;margin:30px auto;display:flex;align-items:center;justify-content:space-between}.how>div{display:flex;align-items:center;gap:8px}.how div>span{font-size:11px;align-self:flex-start;border:1px solid #174c3d40;border-radius:50%;padding:3px 5px}.how p{margin:0;font-size:9px;line-height:1.8;color:#72816f}.how b{color:var(--ink);font-size:10px}.how em{font-size:12px;color:#9ba68d}footer{border-top:1px solid #174c3d26;padding:20px 0;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#7c897a}.playing .bubble{background:var(--lime)}.playing .character{width:280px;height:290px}.playing .arena{background:radial-gradient(ellipse,#e0efb9,transparent 72%)}.playing .stage-caption{display:none}.playing .primary{display:none}.playing .controls{min-height:110px;padding-top:16px}.urgent .time{color:#d25835}.urgent #timer{background:#ed8655}.urgent .arena{background:repeating-conic-gradient(from 0deg at 50% 50%,#f4d47533 0deg 12deg,transparent 12deg 30deg)}.point{position:absolute;font-weight:900;font-size:29px;color:var(--ink);text-shadow:2px 2px 0 white,-2px -2px 0 white;animation:pop .7s ease-out forwards;pointer-events:none;z-index:10}.particle{position:absolute;color:#db9d35;font-size:26px;animation:confetti .8s ease-out forwards;pointer-events:none;z-index:8}.transforming .character{animation:shake .09s infinite}.transforming #flash{position:absolute;inset:0;z-index:12;background:radial-gradient(circle,#fff 0%,#f4ffd6e6 20%,transparent 70%);animation:reveal 1.1s forwards;pointer-events:none}.result .arena{height:290px}.result .stats{background:#eef2d5}.result .character{height:265px}.result .stage-caption{display:none}.result .bubble{background:var(--lime)}.result #message strong{font-size:20px}.result .controls{padding-bottom:20px}.result .time .digits{font-size:28px;line-height:1.75}.result .timer-track{visibility:hidden}#effects{position:absolute;inset:0;pointer-events:none;z-index:5}@keyframes float{50%{transform:translateY(-7px) rotate(1deg)}}@keyframes pop{0%{transform:translate(-50%,0) scale(.6);opacity:1}20%{transform:translate(-50%,-18px) scale(1.15)}100%{transform:translate(-50%,-95px) rotate(-8deg);opacity:0}}@keyframes confetti{to{transform:translate(var(--dx),var(--dy)) rotate(150deg);opacity:0}}@keyframes shake{50%{transform:translateX(-48%) rotate(3deg)}}@keyframes reveal{0%{opacity:0;transform:scale(.1)}65%{opacity:1;transform:scale(3)}100%{opacity:1;transform:scale(4)}}@media(min-width:900px){main{padding-top:40px}.intro{position:absolute;top:290px;left:calc(50% - 450px);text-align:left;width:360px}h1{font-size:43px}h1>span{font-size:47px}.intro p{margin-top:25px}.machine{margin-left:auto;margin-right:0;width:450px}.how{margin-left:auto;margin-right:0;width:450px}footer{margin-top:35px}.intro:after{content:'たった10秒。\Aちょっと不思議な、変身実験。';white-space:pre;display:block;font-size:13px;line-height:2.2;color:#6d806d;margin-top:35px;border-left:3px solid #d8e699;padding-left:20px}}@media(max-width:520px){header{padding:15px 20px}.small,.edition{display:none}main{padding:25px 18px 0}h1{font-size:31px}h1>span{font-size:36px}.eyebrow{font-size:9px;margin-bottom:10px}.intro p{font-size:11px;margin:13px 0 20px}.title-star{font-size:25px}.arena{height:288px}.character{height:250px;width:240px}.playing .character{height:265px;width:260px}.stats{padding-top:13px}.digits{font-size:37px}.how{margin-top:25px}.how>div{gap:5px}.how b{font-size:9px}.machine{box-shadow:5px 6px 0 var(--ink)}footer{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important}.orbit{display:none}}
/* Reaction layers move the artwork while the original tap target stays fixed. */
.reaction-motion{position:relative;display:block;width:100%;height:100%;transform-origin:50% 88%;pointer-events:none}
.reaction-motion>#robot{position:relative;z-index:1;transform-origin:50% 87%}
.reaction-back,.reaction-front{position:absolute;inset:0;pointer-events:none;display:block}
.reaction-back{z-index:0}.reaction-front{z-index:2}
.comic-impact{position:absolute;left:0;top:6%;width:100%;height:80%;background:#e7c856aa;clip-path:polygon(50% 0,57% 24%,75% 4%,73% 30%,98% 21%,82% 44%,100% 54%,78% 62%,91% 88%,65% 76%,57% 100%,45% 79%,24% 97%,28% 69%,0 73%,19% 51%,1% 34%,30% 32%,27% 5%,44% 24%);animation:impact-pop .4s ease-out forwards}
.small-impact{opacity:.55;inset:14% 10%;width:80%;height:65%}
.afterimages{position:absolute;inset:0}.afterimages img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:none!important}
.eye-glow{position:absolute;left:35%;top:32%;width:32%;height:7%;border-radius:50%;background:radial-gradient(ellipse at 22% 50%,#fffdb8bb,#ffe84666 24%,transparent 48%),radial-gradient(ellipse at 78% 50%,#fffdb8bb,#ffe84666 24%,transparent 48%);box-shadow:0 0 12px 3px #f8e43d55;animation:eye-pulse .23s ease-out forwards;transform:rotate(-2deg)}
.head-stars{position:absolute;inset:0}.head-stars>span{position:absolute;color:#efbd35;font-size:24px;text-shadow:0 1px white;animation:head-star .55s ease-out forwards}
.playing .point{font-size:30px;background:#fffdf0ed;border:1px solid #174c3d25;border-radius:12px;padding:0 7px;white-space:nowrap;animation:score-rise .75s ease-out forwards}
@keyframes score-rise{0%{opacity:0;transform:translate(-50%,8px) scale(.75)}15%{opacity:1;transform:translate(-50%,0) scale(1.08)}65%{opacity:1}100%{opacity:0;transform:translate(-50%,-46px) scale(1)}}
@keyframes impact-pop{0%{transform:scale(.65);opacity:0}22%{transform:scale(1.06);opacity:.8}100%{transform:scale(1.18);opacity:0}}
@keyframes eye-pulse{0%{opacity:0}30%{opacity:.75}100%{opacity:0}}
@keyframes head-star{0%{opacity:0;transform:scale(.3)}25%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:translate(var(--star-x),-23px) rotate(35deg) scale(.7)}}
@media(prefers-reduced-motion:reduce){.reaction-back,.reaction-front{display:none}.playing .point{animation:score-still .7s linear forwards!important}.reaction-motion>#robot{animation:none!important}}@keyframes score-still{0%,85%{opacity:1}100%{opacity:0}}
/* Compact phone layout follows the visible viewport, including browser chrome. */
@media(max-width:899px){
 body{height:100vh;height:100svh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 header{flex:0 0 auto;width:100%;max-width:470px;margin:0 auto;padding:6px 16px;min-height:36px;font-size:10px}
 .brand-icon{width:24px;height:24px;font-size:19px;line-height:24px}
 .small,.edition{display:none}
 main{flex:1;min-height:0;width:100%;max-width:470px;margin:0 auto;padding:7px 16px 8px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px}
 .intro{position:static;width:auto;text-align:center}
 .eyebrow{font-size:8px;letter-spacing:2px;margin:0 0 3px;line-height:1.4}
 h1{font-size:23px;line-height:1.25;letter-spacing:-1px}
 h1>span{display:inline;font-size:23px;margin-left:5px}
 .title-star{font-size:17px;margin:0 0 0 3px;vertical-align:middle}
 .intro p{font-size:10px;line-height:1.4;margin:4px 0 0;letter-spacing:1px}
 .machine{width:100%;max-width:none;min-height:0;margin:0;display:flex;flex-direction:column;border-radius:18px;box-shadow:4px 4px 0 var(--ink)}
 .machine-top{flex:none;padding:7px 16px;font-size:8px;line-height:1.4}
 .stats{flex:none;padding:7px 18px 6px;line-height:1.2}
 .stat-label{font-size:8px;letter-spacing:1.3px}
 .digits{font-size:32px;line-height:1.1}
 .digits small{font-size:11px}
 .result .time .digits{font-size:26px;line-height:1.35}
 .timer-track{flex:none;height:4px;margin:0 18px}
 .machine .arena{flex:1 1 0;min-height:0;height:auto}
 .machine .character{height:calc(100% - 42px);width:auto;aspect-ratio:6/7;max-width:84%;bottom:12px}
 .halo{height:80%;width:auto;aspect-ratio:1;top:10%}
 .orbit{top:12%;height:75%;width:85%}
 .orbit-two{top:6%;height:86%;width:75%}
 .bubble{top:6px;font-size:9px;line-height:1.4;padding:5px 10px}
 .spark{font-size:27px}.s1{left:22px;top:30%}.s2{right:22px;top:24%}.s3{right:25px;bottom:30px}
 .floor{bottom:6px;width:60%;height:15px}
 .stage-caption{left:20px;bottom:20px;font-size:9px}
 .stage-caption span{font-size:21px}
 .machine .controls{flex:none;min-height:0;padding:5px 18px 9px}
 #message strong,.result #message strong{font-size:15px;line-height:1.5}
 #message p{font-size:9px;line-height:1.5;margin:3px 0 7px}
 .primary{min-height:44px;padding:7px 12px;font-size:17px;line-height:1.4;border-radius:10px}
 .primary span{font-size:21px;right:32px}
 .hint{font-size:8px;line-height:1.5;margin:8px 0 0;letter-spacing:0}
 .playing .controls{padding-top:8px;padding-bottom:10px}
 .how{width:100%;max-width:none;margin:2px 0 0;min-height:29px}
 .how>div{gap:5px}.how p{font-size:8px;line-height:1.6}.how b{font-size:9px}
 .how div>span{font-size:9px;padding:2px 4px}.how em{font-size:10px}
 footer{margin:0;padding:5px 0 0;font-size:7px;line-height:1.4;letter-spacing:.5px}
}
@media(max-width:899px) and (max-height:620px){
 main{gap:5px;padding-top:4px;padding-bottom:6px}
 header{min-height:30px;padding-top:3px;padding-bottom:3px}
 .eyebrow{font-size:7px;margin-bottom:1px}h1,h1>span{font-size:20px}
 .intro p{font-size:9px;margin-top:2px}
 .machine-top{padding-top:5px;padding-bottom:5px}
 .stats{padding-top:5px;padding-bottom:4px}.digits{font-size:28px}
 .machine .controls{padding-top:3px;padding-bottom:7px}
 #message strong,.result #message strong{font-size:13px}
 #message p{margin-bottom:5px}.hint{margin-top:6px}
 .machine .character{height:calc(100% - 36px)}
 .how{min-height:25px}.how p{line-height:1.4}
}
/* Very short or landscape windows retain scrolling instead of clipping controls. */
@media(max-width:899px) and (max-height:479px){
 body{height:auto;min-height:100svh}main{flex:none;grid-template-rows:auto auto auto auto}.machine .arena{flex:none;height:180px}
}
