:root{--ink:#1d2a3a;--paper:#f4e7c8;--tomato:#e8453c;--teal:#2f8f86;--sand:#e9d6a6}
body.jt-body{background:var(--paper);color:var(--ink);font-family:"Trebuchet MS","Segoe UI",system-ui,sans-serif}
.jt-body .game-header{background:var(--ink);border-bottom:0;color:var(--paper)}
.jt-body .game-header a,.jt-body .game-header .game-tag{color:var(--paper)}
.jt-title{text-align:center;margin:0 0 .6rem}
.jt-title p{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#5b6675}
.jt-title h1{font-size:1.7rem;font-weight:800;color:var(--ink)}
#jt-stage{position:relative;margin:0 auto;width:100%;height:600px;max-width:420px;border:3px solid var(--ink);border-radius:14px;overflow:hidden;background:var(--paper);box-shadow:5px 5px 0 var(--ink);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
#jt-canvas{display:block;touch-action:none;width:100%;height:100%;outline:none}
.jt-btns{position:absolute;top:8px;right:8px;display:flex;gap:8px;z-index:5;padding-top:env(safe-area-inset-top,0)}
.jt-ib{width:46px;height:46px;border-radius:12px;border:3px solid var(--ink);background:var(--paper);color:var(--ink);cursor:pointer;display:grid;place-items:center;padding:0;font:inherit;box-shadow:2px 2px 0 var(--ink)}
.jt-ib:active{transform:translate(2px,2px);box-shadow:none}
.jt-ib:focus-visible,.jt-bt:focus-visible,.jt-chip:focus-visible{outline:3px solid var(--tomato);outline-offset:2px}
.jt-ib svg{width:24px;height:24px;stroke:var(--ink);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.jt-ib.off .wave{display:none}.jt-ib:not(.off) .cut{display:none}
.jt-ov{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:.6rem;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0));background:rgba(244,231,200,.94);overflow:auto;text-align:center}
.jt-ov[hidden]{display:none}
.jt-ov h2{font-size:2rem;line-height:1;font-weight:900;color:var(--ink)}
.jt-ov p,.jt-ov li{font-size:.9rem;line-height:1.35;color:#33415a}
.jt-ov ul{list-style:none;padding:0;margin:0;text-align:left;font-size:.8rem}
.jt-bt{min-height:52px;min-width:200px;padding:.6rem 1.2rem;border:3px solid var(--ink);border-radius:14px;background:var(--tomato);color:#fff;font:800 1.1rem "Trebuchet MS","Segoe UI",system-ui,sans-serif;cursor:pointer;box-shadow:3px 3px 0 var(--ink)}
.jt-bt:active{transform:translate(3px,3px);box-shadow:none}
.jt-bt.alt{background:var(--teal)}
.jt-bt.ghost{background:var(--paper);color:var(--ink)}
.jt-flavors{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.jt-chip{min-height:44px;display:flex;align-items:center;gap:6px;padding:0 10px;border:2px solid var(--ink);border-radius:999px;background:var(--paper);color:var(--ink);font:700 .78rem "Trebuchet MS","Segoe UI",system-ui,sans-serif;cursor:pointer}
.jt-chip .sw{width:16px;height:16px;border-radius:50%;border:2px solid var(--ink)}
.jt-chip.on{background:var(--ink);color:var(--paper)}
.jt-chip:disabled{opacity:.5;cursor:default}
.jt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jt-how{max-width:420px;margin:1rem auto 0;font-size:.85rem;color:#33415a;line-height:1.5}
.jt-how h2{font-size:1rem;margin-bottom:.3rem;color:var(--ink)}
@media (prefers-reduced-motion:reduce){.jt-ib:active,.jt-bt:active{transform:none}}
.jt-how ul{list-style:none;margin-top:.5rem;font-size:.8rem}

.jt-ib[hidden],#jt-restart[hidden],#jt-goal:empty{display:none}
.jt-hero{width:96px;height:auto;flex:none}
.jt-wob{transform-origin:60px 90px;animation:jt-wob 2.6s ease-in-out infinite}
@keyframes jt-wob{0%,100%{transform:skewX(-3deg) scaleY(1)}50%{transform:skewX(3deg) scaleY(.96)}}
#jt-goal{font-weight:700;color:var(--ink)}
.jt-ov{padding-top:calc(16px + env(safe-area-inset-top,0))}
@media (prefers-reduced-motion:reduce){.jt-wob{animation:none}}
@media (max-height:640px){.jt-hero{display:none}}

html.pip-immersive .jt-title,html.pip-immersive .jt-how,html.pip-immersive .game-header,html.pip-immersive .ad-well,html.pip-immersive footer,html.pip-immersive #similar-games,html.pip-native .jt-title,html.pip-native .jt-how{display:none!important}
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;overflow:hidden}
html.pip-immersive .game-wrap.pip-stage{padding-bottom:env(safe-area-inset-bottom,0)!important}
html.pip-immersive #jt-stage,html.pip-native #jt-stage{border:0;border-radius:0;box-shadow:none;max-width:none;flex:none}
html.pip-immersive .jt-btns{top:6px}
@media (orientation:landscape) and (max-height:500px){.jt-ov{gap:.35rem;padding-top:calc(8px + env(safe-area-inset-top,0))}.jt-ov h2{font-size:1.4rem}.jt-bt{min-height:44px}}
html.pip-native .game-wrap{max-width:none;width:100%;height:100%}
