@font-face{font-family:DesertUI;src:url('../gyul-jump/kkokkoma.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
*{box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}html,body,main{height:100%;width:100%;margin:0;overflow:hidden}body{font:23px/1.35 'DesertUI',sans-serif;color:#493623;background:#f4dfb9}button,a{font:inherit;color:inherit;touch-action:manipulation;cursor:pointer}button,a,canvas{-webkit-tap-highlight-color:transparent}button{min-height:48px;padding:9px 19px;background:#f9edda;border:1px solid #846640;border-radius:3px 1px 4px 2px}button:hover{background:#fff6e5}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #225e68;outline-offset:4px}[hidden]{display:none!important}h1,h2,p{margin:0;word-break:keep-all}h1,h2{font-weight:400}.screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:24px;text-align:center;overflow:auto}#sand-title{width:min(610px,88%);height:auto;max-height:45%;object-fit:contain;aspect-ratio:1.47}.screen>p{font-size:22px}.intro-actions{position:relative;z-index:1}.intro-actions button,.intro-actions a{background:#f9edda!important;clip-path:none!important;color:#493623!important;font:22px/1.2 'DesertUI',sans-serif!important;border:1px solid #846640!important;min-height:54px!important}.cover-scene{height:75px;display:flex;align-items:flex-end;gap:54px}.cover-scene img{width:70px;height:75px;object-fit:contain}.cover-scene img:last-child{width:100px}.choices{display:flex;gap:20px;width:min(650px,100%)}.choices button{flex:1;min-width:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:20px;padding:22px 8px}.choices img{width:100%;height:130px;object-fit:contain}.quiet{background:transparent;border:0;font-size:18px}.screen>.quiet{position:absolute;top:14px;left:14px}#play{position:absolute;inset:0}.hud{position:absolute;top:16px;left:20px;right:20px;display:flex;align-items:center;gap:30px}.hud>div{display:flex;flex-direction:column;gap:2px}.hud span{font-size:18px}.hud strong{font-size:28px;font-weight:400}.hud button{margin-left:auto;font-size:18px}.hud .inventory{display:flex;flex-direction:row;gap:20px;align-items:center}#notice{position:absolute;top:94px;left:20px;right:20px;text-align:center;font-size:21px;min-height:30px}#world{position:absolute;top:134px;bottom:120px;width:100%;height:calc(100% - 254px);touch-action:none;outline:none}.controls{position:absolute;bottom:48px;left:16px;right:16px;display:flex;justify-content:space-between;pointer-events:none}.controls>div{display:flex;gap:12px}.controls button{pointer-events:auto;width:62px;height:62px;border-radius:50%;padding:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f9eddae8;touch-action:none}.controls svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.controls span{font-size:13px;line-height:1}.controls img{width:28px;height:30px;object-fit:contain}#attack[aria-disabled=true]{opacity:.6}footer{position:absolute;bottom:5px;left:0;right:0;display:flex;justify-content:center;gap:18px}footer button{border:0;background:transparent;font-size:16px;min-height:35px;padding:5px}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#eddbb99e;padding:20px}.panel{width:min(540px,100%);max-height:100%;overflow:auto;background:#fff3dd;border:1px solid #846640;padding:28px;display:flex;align-items:center;flex-direction:column;gap:18px;text-align:center}.panel h2{font-size:31px}.panel p{font-size:22px;white-space:pre-line}.panel>button{min-width:160px}.panel>img{width:100px;height:100px;object-fit:contain}#options{display:flex;gap:10px;width:100%;justify-content:center}#options button{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:21px;padding:10px}#options img{width:60px;height:60px;object-fit:contain}.game-help{background:#fff3dd;color:#493623;border-color:#846640}.game-help p{font-family:'DesertUI',sans-serif;font-size:22px}.game-help h3{font-family:'DesertUI',sans-serif;font-size:25px}@media(max-width:600px){.screen{padding:20px;gap:18px}.intro-actions button,.intro-actions a{font-size:18px!important}.choices{gap:10px}.choices img{height:100px}.choices button{font-size:20px}.hud{left:14px;right:14px;gap:15px}.hud span{font-size:16px}.hud strong{font-size:24px}.hud .inventory{gap:8px;flex-direction:column;align-items:flex-start}#notice{font-size:18px;left:16px;right:16px}.controls button{width:58px;height:58px}.controls>div{gap:8px}.panel{padding:22px 18px}.panel p{font-size:20px}#options button{font-size:19px;padding:8px}.cover-scene{gap:36px}}
@media(max-height:470px){.screen{padding:14px;gap:10px}#sand-title{max-height:43%}.cover-scene{display:none}.screen>p{font-size:18px}.choices img{height:65px}.choices button{padding:8px;gap:8px}h1{font-size:26px}.hud{top:6px;gap:20px}.hud>div{flex-direction:row;gap:14px;align-items:center}.hud strong{font-size:22px}.hud span{font-size:15px}.hud button{min-height:40px;padding:4px 12px}.hud .inventory{flex-direction:row}#notice{top:57px;font-size:17px}#world{top:92px;bottom:84px;height:calc(100% - 176px)}.controls{bottom:34px}.controls button{width:46px;height:46px;padding:5px}.controls svg{width:22px;height:22px}.controls img{width:23px;height:25px}.controls span{font-size:11px}footer button{font-size:14px;min-height:28px}.panel{padding:16px;gap:10px}.panel h2{font-size:26px}.panel>img{height:65px}.panel p{font-size:19px}#options img{height:40px}.panel button{min-height:42px}}

.controls{flex-direction:row-reverse}#sand-title{aspect-ratio:auto;border-radius:10px;max-height:43%;object-fit:contain}

#nickname{font:inherit;font-size:22px;width:min(300px,100%);padding:8px 12px;color:inherit;background:#fff3dd;border:1px solid #846640;border-radius:3px;user-select:text;-webkit-user-select:text}.nickname-label{font-size:20px}#name-error{font-size:18px;color:#943d32}#name-error:empty{display:none}#player-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-height:470px){#choose{justify-content:flex-start;gap:5px}#nickname{padding:4px 10px;min-height:36px}.nickname-label{font-size:17px}}

#result-character{width:150px;height:126px;flex-shrink:0}.panel:has(#result-character:not([hidden])){gap:10px}@media(max-height:470px){#result-character{width:90px;height:76px}}

/* A compact icon HUD stays within narrow player windows as well as phone screens. */
body{font-size:21px;line-height:1.45;text-size-adjust:100%;-webkit-text-size-adjust:100%}button,a{white-space:nowrap}#play{--hud-top:max(10px,env(safe-area-inset-top));--edge:max(14px,env(safe-area-inset-left));--bottom:env(safe-area-inset-bottom)}
.hud{top:var(--hud-top);left:var(--edge);right:max(14px,env(safe-area-inset-right));display:grid;grid-template-columns:auto minmax(0,1fr) 44px;gap:4px 14px;align-items:center}.hud .hud-identity{grid-column:1/-1;display:flex;flex-direction:row;justify-content:space-between;gap:16px;align-items:center;min-width:0}.hud #player-name{max-width:65%;font-size:17px;line-height:1.4}.hud #level{font-size:17px;white-space:nowrap}.hud #health{display:flex;flex-direction:row;gap:3px;align-items:center}.life{width:22px;height:25px;fill:#bd5a49;stroke:#653e30;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.life.lost{fill:transparent;opacity:.35}.hud .inventory{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:12px;min-width:0}.hud .hud-item{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:32px;flex-shrink:0}.hud-item img{width:28px;height:30px;object-fit:contain}.hud #gem-count{font-size:19px;font-variant-numeric:tabular-nums;line-height:1}.hud-item.inactive{opacity:.3}.hud #pause{width:44px;height:44px;min-height:44px;padding:10px;margin:0;display:grid;place-items:center;background:transparent}.hud #pause svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}#notice{top:calc(var(--hud-top) + 76px);left:16px;right:16px;font-size:18px;line-height:1.4;min-height:26px;text-wrap:pretty}#world{top:calc(var(--hud-top) + 122px);height:calc(100% - var(--hud-top) - 242px - var(--bottom));bottom:calc(120px + var(--bottom))}.controls{bottom:calc(48px + var(--bottom));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}.controls span{font-size:16px;line-height:1.1}.controls button{flex-shrink:0}footer{bottom:calc(5px + var(--bottom))}footer button{font-size:17px;line-height:1.35}#nickname{min-height:44px;font-size:21px}h1{font-size:28px;line-height:1.35}.panel h2{font-size:28px;line-height:1.4}.panel p{font-size:21px;line-height:1.5}.screen>.quiet{position:static;align-self:flex-start;margin-bottom:0}.screen{min-height:0}.choices{flex-shrink:0}#choose{gap:12px}.nickname-label{font-size:20px;line-height:1.4}.screen>p{line-height:1.4}.game-help p{line-height:1.5}
@media(max-width:360px){.hud{gap:4px 8px}.hud .inventory{gap:8px}.life{width:19px;height:24px}.hud-item img{width:25px;height:28px}.controls>div{gap:8px}.controls button{width:56px;height:56px}footer{gap:12px}footer button{font-size:16px}#notice{font-size:17px}.intro-actions button,.intro-actions a{font-size:17px!important}}
@media(max-height:470px){.hud{grid-template-columns:minmax(65px,1fr) auto auto 44px;gap:8px}.hud .hud-identity{grid-column:auto;flex-direction:column;gap:0;align-items:flex-start}.hud #player-name{max-width:100%;font-size:15px}.hud #level{font-size:15px}.hud .inventory{gap:8px}.hud #pause{min-height:44px}.life{width:18px;height:22px}#notice{top:calc(var(--hud-top) + 48px);font-size:17px;line-height:1.3}#world{top:calc(var(--hud-top) + 90px);bottom:calc(84px + var(--bottom));height:calc(100% - var(--hud-top) - 174px - var(--bottom))}.controls{bottom:calc(34px + var(--bottom))}.controls button{width:46px;height:46px;min-height:44px;padding:4px}.controls span{font-size:13px}.controls svg{width:21px;height:21px}.controls img{width:21px;height:23px}footer{bottom:var(--bottom)}footer button{font-size:15px;min-height:30px}#choose{padding:12px 18px;gap:6px;justify-content:flex-start}.screen>.quiet{min-height:32px;padding:3px 8px;font-size:17px}#choose h1{font-size:23px}.choices img{height:64px}.choices button{padding:8px;min-height:80px}#choose>p{font-size:17px}.nickname-label{font-size:18px}#nickname{min-height:36px;padding:3px 10px}.panel h2{font-size:24px}.panel p{font-size:19px}}
@media(max-width:360px) and (max-height:470px){.hud .hud-identity{display:none}.hud{grid-template-columns:auto minmax(0,1fr) 44px}.hud .inventory{gap:6px}.hud-item img{width:24px;height:27px}}

#rankings{width:100%;text-align:left}#ranking-title{font:inherit;font-size:22px;margin:5px 0}#rankings p{font-size:18px;line-height:1.45;margin:5px 0}#own-rank{color:#386646}.ranking-scroll{max-height:190px;overflow:auto;overscroll-behavior:contain}#rankings table{width:100%;border-collapse:collapse;font-size:18px;line-height:1.4;table-layout:fixed}#rankings th,#rankings td{padding:6px 5px;border-bottom:1px solid #84664045;overflow-wrap:anywhere}#rankings th{font-weight:400}#rankings th:first-child,#rankings td:first-child{width:48px}#rankings th:last-child,#rankings td:last-child{width:78px;text-align:right}.own-record{color:#386646;background:#dce7c44d}#rankings #score-retry{font-size:18px;text-decoration:underline;white-space:normal}.panel:has(#rankings:not([hidden])){gap:8px}.panel:has(#rankings:not([hidden])) #reward-art{display:none}.panel:has(#rankings:not([hidden])) #result-character{width:108px;height:91px}@media(max-height:470px){.ranking-scroll{max-height:125px}.panel:has(#rankings:not([hidden])) #result-character{width:65px;height:55px}}
