.ecojutsu{max-width:960px;margin:3rem auto;padding:clamp(16px,3vw,32px);border:1px solid color-mix(in srgb,var(--world) 40%,transparent);border-radius:24px;background:#0a171e;color:#e9f6ef}.eco-heading h2{font-size:clamp(2.2rem,6vw,4rem);margin:.3rem 0;letter-spacing:-.04em}.eco-heading p{color:#b9ccc5}.eco-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:1.5rem 0}.ecojutsu button{font:inherit;min-height:44px;border:1px solid #789d9166;border-radius:12px;background:#183038;color:#e9f6ef;padding:10px 14px;cursor:pointer}.ecojutsu button:focus-visible{outline:3px solid #e5f3b7;outline-offset:3px}.ecojutsu button:disabled{cursor:default}.eco-stage{position:relative;overflow:hidden;border-radius:18px;border:1px solid #91cbb833}.eco-stage canvas{width:100%;display:block;aspect-ratio:720/390}.eco-phase{position:absolute;top:14px;left:14px;right:14px;text-align:center;font-weight:700;color:#f0fff8;text-shadow:0 2px 8px #000}.eco-count{position:absolute;bottom:12px;left:12px;right:12px;display:flex;justify-content:center;gap:6px}.eco-count i{width:9px;height:9px;border-radius:50%;background:#49645b}.eco-count i[data-done=true]{background:var(--world);box-shadow:0 0 9px var(--world)}.eco-pads{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.eco-pads button{display:grid;gap:3px;place-items:center;background:#13252d;border:2px solid color-mix(in srgb,var(--tone) 50%,transparent);min-height:112px;touch-action:manipulation;user-select:none;-webkit-user-select:none;color:var(--tone)}.eco-pads strong{font-size:2.8rem;line-height:1}.eco-pads small{font-size:.7rem;color:#c0cec8}.eco-pads button[data-lit=true]{background:var(--tone);color:#10212a;box-shadow:0 0 25px color-mix(in srgb,var(--tone) 45%,transparent)}.eco-pads button[data-lit=true] small{color:#10212a}.eco-footer{text-align:center}.eco-footer>button{background:var(--world);color:#0d2020;font-weight:700;min-width:190px}.eco-footer p{font-size:.88rem;line-height:1.6;margin:10px 0}.eco-hint{color:#9cb5ab}.ecojutsu:is(:fullscreen,.game-fullscreen){overflow:auto;margin:0;max-width:none;border-radius:0;display:flex;flex-direction:column;justify-content:center}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-stage{max-height:45vh}.ecojutsu:is(:fullscreen,.game-fullscreen) canvas{height:100%;object-fit:contain}@media(max-width:600px){.ecojutsu{margin:1.5rem 8px;padding:14px}.eco-toolbar{gap:8px;font-size:.8rem}.eco-toolbar button{padding:8px;font-size:.75rem}.eco-pads{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.eco-pads button{min-height:96px}.eco-pads small{display:none}.eco-footer p{font-size:.8rem}}@media(max-height:500px) and (orientation:landscape){.eco-pads{grid-template-columns:repeat(4,1fr)}.eco-pads button{min-height:70px}.eco-stage{max-height:35vh}.eco-stage canvas{max-height:35vh;object-fit:contain}}@media(prefers-reduced-motion:reduce){.ecojutsu *{animation:none;transition:none}}
.ecojutsu.game-fullscreen{position:fixed;inset:0;z-index:10000;width:100vw;height:100dvh;box-sizing:border-box;overscroll-behavior:contain;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
@media(pointer:coarse){.eco-pads small{display:none}}
.ecojutsu:is(:fullscreen,.game-fullscreen){justify-content:flex-start}
.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-stage{width:min(100%,calc(36vh * 720 / 390));max-height:none;align-self:center}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-stage canvas{height:auto;max-height:none}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-heading p,.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-hint{display:none}@media(max-height:500px) and (orientation:landscape){.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-stage{width:min(100%,calc(25vh * 720 / 390))}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-heading h2{font-size:1.4rem}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-heading .eyebrow{display:none}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-toolbar{margin:7px 0}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-pads{margin:7px 0}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-footer p{margin:4px 0}}
.ecojutsu:is(:fullscreen,.game-fullscreen){height:100dvh;box-sizing:border-box;gap:0}.ecojutsu:is(:fullscreen,.game-fullscreen) :is(.eco-heading,.runner-account,.arcade-rank-guide){display:none!important}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-toolbar{margin:0 0 8px;gap:8px;flex:0 0 auto}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-stage{width:100%;max-height:none;flex:1;min-height:100px;align-self:stretch}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-stage canvas{width:100%;height:100%;object-fit:contain}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-pads{flex:0 0 auto;margin:8px 0}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-footer>p:not([data-eco=status]),.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-footer>a{display:none}.ecojutsu:is(:fullscreen,.game-fullscreen) .eco-footer [data-eco=status]{font-size:.8rem;line-height:1.3;margin:3px 0}
