/* Tempo Tunnel: two-ink print look. Scoped under .tt. */
.tt{--paper:#F1E9D8;--ink:#1D2B6B;--hot:#F0482B;position:relative;max-width:420px;margin:0 auto;color:var(--ink);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.tt-stage{position:relative;border:3px solid var(--ink);background:var(--paper);box-shadow:5px 5px 0 var(--hot);overflow:hidden;line-height:0}
.tt-stage canvas{display:block;touch-action:none;width:100%;-webkit-tap-highlight-color:transparent;outline:none}
.tt-card{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:var(--paper);line-height:1.35;text-align:center;overflow:auto}
.tt-card[hidden]{display:none}
.tt-card h2{font:800 1.7rem system-ui,sans-serif;letter-spacing:.02em;text-transform:uppercase}
.tt-card p{font:600 .9rem system-ui,sans-serif}
.tt-score{font:800 2.6rem ui-monospace,Menlo,Consolas,monospace;color:var(--hot)}
.tt-btn{min-height:48px;min-width:48px;padding:.6rem 1rem;font:800 1rem system-ui,sans-serif;color:var(--paper);background:var(--ink);border:3px solid var(--ink);box-shadow:3px 3px 0 var(--hot);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tt-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--hot)}
.tt-btn.alt{background:var(--paper);color:var(--ink)}
.tt-btn:disabled{opacity:.35;box-shadow:none;cursor:default}
.tt-btn:focus-visible{outline:3px solid var(--hot);outline-offset:2px}
.tt-row{display:flex;gap:10px;align-items:center;justify-content:center}
.tt-row .grow{flex:1}
.tt-lvl{font:800 1.3rem system-ui,sans-serif;min-width:7rem}
.tt-how{font:600 .82rem system-ui,sans-serif;opacity:.85}
.tt-bar{display:flex;gap:8px;margin-top:12px;justify-content:space-between}
.tt-bar .tt-btn{flex:1;font-size:.85rem;padding:.4rem .5rem;box-shadow:2px 2px 0 var(--hot)}
.tt-stars{font:800 1rem system-ui,sans-serif;min-height:1.4em}
.tt-stars::before{content:"";display:inline-block;width:0}
@media (prefers-reduced-motion:reduce){.tt-btn{transition:none}.tt-btn:active{transform:none}}
@supports (background:color-mix(in srgb,red 50%,transparent)){.tt-card{background:color-mix(in srgb,var(--paper) 86%,transparent)}}

/* Full screen (native and immersive): fill the stage, hide the page copy */
html.pip-immersive .game-wrap.pip-stage{display:flex;flex-direction:column;overflow:hidden!important;padding-left:8px!important;padding-right:8px!important;padding-bottom:8px!important}
html.pip-immersive .tt{flex:1 1 0;min-height:0;max-width:none;width:100%;margin:0;display:flex;flex-direction:column}
html.pip-immersive .tt-stage{flex:1 1 0;min-height:0;display:flex;align-items:center;justify-content:center;box-shadow:none}
html.pip-immersive .tt-bar{flex:0 0 auto;margin-top:8px;padding-bottom:max(0px,env(safe-area-inset-bottom))}
html.pip-immersive .tt-bar .tt-btn{min-height:48px}
html.pip-immersive .tt-card{overflow:auto;justify-content:flex-start}
html.pip-immersive .tt-card>*:first-child{margin-top:auto}
html.pip-immersive .tt-card>*:last-child{margin-bottom:auto}
html.pip-immersive .pip-actions,html.pip-immersive .tt-how{display:none}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .tt{flex-direction:row;gap:8px}
html.pip-immersive .tt-bar{flex-direction:column;justify-content:center;margin-top:0;width:116px}
html.pip-immersive .tt-card{gap:6px;padding-top:8px;padding-bottom:8px}
html.pip-immersive .tt-card h2{font-size:1.2rem}
html.pip-immersive .tt-score{font-size:1.8rem}
}
