
    :host{display:block;width:100%;height:100%;color-scheme:dark;--focus:#ffe23f;font-family:"Chakra Petch","Avenir Next",Avenir,sans-serif;overflow:hidden;overscroll-behavior:none;touch-action:none;-webkit-tap-highlight-color:transparent}
    *{box-sizing:border-box}button{font:inherit}
    .game-shell{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain;background:#000;color:#f4f6ff}
    .app{width:min(100%,480px);margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 12px calc(max(18px,env(safe-area-inset-bottom)) + 64px);display:flex;flex-direction:column}
    .top-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 2px 8px}
    .top-title{font-size:12px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:rgba(220,228,255,.6);text-align:center}
    .icon-button{width:44px;height:44px;flex:none;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;color:#e6ebff;background:rgba(255,255,255,.07);cursor:pointer;touch-action:manipulation}
    .icon-button svg{width:20px;height:20px;fill:currentColor}
    .icon-button:active{transform:translateY(1px)}
    .icon-button:focus-visible,.tp-btn:focus-visible,.tp-dbtn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
    .tp-logo{text-align:center;font-family:"Bungee",cursive;font-size:clamp(30px,9vw,44px);line-height:1.05;letter-spacing:.04em;color:#ffc21f;text-shadow:3px 3px 0 #e05d00,6px 6px 0 rgba(224,93,0,.35);margin:2px 0 10px;user-select:none}
    .tp-scorebar{display:flex;justify-content:space-between;align-items:flex-start;width:min(100%,448px);margin:0 auto 6px;padding:0 6px;font-family:"Press Start 2P",ui-monospace,monospace;color:#fff}
    .tp-score{display:flex;flex-direction:column;gap:6px;min-width:86px}
    .tp-score.center{align-items:center;text-align:center}
    .tp-score.right{align-items:flex-end;text-align:right}
    .tp-score span{font-size:9px;letter-spacing:.04em;color:#dfe6ff}
    .tp-score strong{font-size:14px;font-weight:400;color:#fff}
    .tp-score .tp-1up{animation:tpBlink 1.1s steps(1) infinite}
    @keyframes tpBlink{0%,62%{opacity:1}63%,100%{opacity:.1}}
    .tp-stage{position:relative;width:min(100%,448px);margin:0 auto;background:#000}
    .tp-stage canvas{display:block;width:100%;height:auto}
    .tp-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,10,.66);padding:18px;z-index:2}
    .tp-overlay[hidden]{display:none}
    .tp-panel{text-align:center;max-width:340px;width:100%}
    .tp-panel h2{margin:0 0 10px;font-family:"Press Start 2P",ui-monospace,monospace;font-weight:400;font-size:19px;line-height:1.5;color:#ffe23f}
    .tp-panel h2.red{color:#ff3b30}
    .tp-panel p{margin:0 0 14px;font-size:14px;line-height:1.55;color:#cfd8ff}
    .tp-panel p.tp-final{font-family:"Press Start 2P",ui-monospace,monospace;font-size:12px;color:#fff;line-height:1.7}
    .tp-btnrow{display:flex;flex-direction:column;gap:10px;align-items:stretch}
    .tp-btn{min-height:50px;padding:0 18px;border:2px solid #ffe23f;border-radius:6px;background:#ffe23f;color:#141414;font-weight:800;font-size:15px;letter-spacing:.05em;text-transform:uppercase;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 0 #b79b00}
    .tp-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #b79b00}
    .tp-btn.ghosty{background:transparent;color:#dfe6ff;border-color:rgba(223,230,255,.55);box-shadow:none}
    .tp-strip{display:flex;align-items:center;justify-content:space-between;width:min(100%,448px);margin:8px auto 0;padding:0 8px;min-height:30px}
    .tp-lives{display:flex;gap:7px;align-items:center}
    .tp-life{width:19px;height:19px;border-radius:50%;background:conic-gradient(#ffe23f 0deg 55deg,transparent 55deg 125deg,#ffe23f 125deg 360deg)}
    .tp-fruitbox{display:flex;align-items:center;gap:8px;font-family:"Press Start 2P",ui-monospace,monospace;font-size:8.5px;color:#ffd9a3}
    .tp-fruitbox canvas{width:26px;height:26px}
    .tp-dpad{display:grid;grid-template-columns:repeat(3,62px);grid-template-rows:repeat(3,62px);gap:6px;justify-content:center;margin:16px auto 4px}
    .tp-dbtn{border:2px solid rgba(120,140,255,.65);border-radius:10px;background:#0a1030;color:#cdd8ff;font-size:21px;cursor:pointer;touch-action:none;display:grid;place-items:center;padding:0;box-shadow:0 3px 0 rgba(30,45,140,.9)}
    .tp-dbtn:active{background:#1a2a6e;transform:translateY(2px);box-shadow:0 1px 0 rgba(30,45,140,.9)}
    .tp-dpad .up{grid-area:1/2}.tp-dpad .left{grid-area:2/1}.tp-dpad .mid{grid-area:2/2}.tp-dpad .right{grid-area:2/3}.tp-dpad .down{grid-area:3/2}
    .tp-dbtn.mid{font-size:12px;font-weight:800;letter-spacing:.06em;color:#ffe23f;border-color:rgba(255,226,63,.55)}
    .tp-hint{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:14px 0 0;color:rgba(207,216,255,.85);font-size:11px;font-weight:700;text-align:center}
    .tp-hint span{padding:4px 8px;border:1px solid rgba(255,255,255,.22);border-radius:7px;background:rgba(255,255,255,.05)}
    .tp-tally{margin:12px 0 0;text-align:center;color:rgba(207,216,255,.75);font-size:12.5px;font-weight:700;letter-spacing:.03em}
    .tp-note{margin:7px 0 0;text-align:center;color:rgba(207,216,255,.45);font-size:11.5px}
    @media(max-width:380px){.tp-dpad{grid-template-columns:repeat(3,56px);grid-template-rows:repeat(3,56px)}}
    @media(prefers-reduced-motion:reduce){.tp-score .tp-1up{animation:none}}
    