.pf{--ink:#14100d;--slab:#2b231c;--ember:#ff7a1a;--gold:#ffc14d;--text:#f1e4d0;--dim:#a8977f;color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.pf *{box-sizing:border-box}
.pf-bar{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}
.pf button{font:inherit;font-weight:800;min-height:44px;min-width:44px;padding:.55rem 1rem;border-radius:12px;border:2px solid #0d0a08;background:#3d3228;color:var(--text);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;letter-spacing:.02em}
.pf button:active{transform:translateY(1px);background:#4a3c30}
.pf button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.pf button.hot{background:linear-gradient(#ff9a3c,#e2551a);color:#1b0e05;border-color:#7a2a0a;box-shadow:0 3px 0 #7a2a0a}
.pf button.hot:active{box-shadow:0 1px 0 #7a2a0a;transform:translateY(2px)}
.pf-stage{position:relative;width:100%;border-radius:18px;overflow:hidden;background:var(--ink);border:2px solid #0d0a08;box-shadow:0 6px 0 #0d0a08}
.pf-stage canvas{display:block;margin:0 auto;touch-action:none;-ms-touch-action:none;cursor:pointer;max-width:100%}
.pf-ov{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:.6rem;padding:1rem 1.1rem calc(1rem + env(safe-area-inset-bottom));background:rgba(20,16,13,.9);text-align:center}
.pf-ov[hidden]{display:none}
.pf-ov#ov-perk{top:auto;bottom:0;justify-content:flex-start;background:rgba(20,16,13,.93);border-top:3px solid var(--ember);padding-top:.7rem}
.pf-ov h2{font-size:2rem;line-height:1;font-weight:900;letter-spacing:.04em;color:var(--gold);text-transform:uppercase}
.pf-ov#ov-perk h2{font-size:1.05rem;letter-spacing:.06em}
.pf-ov p{font-size:.92rem;line-height:1.4;color:var(--dim)}
.pf-ov .big{color:var(--text);font-size:1rem}
.pf-perk{display:block;text-align:left;width:100%}
.pf-perk b{display:block;color:var(--gold);font-size:.98rem}
.pf-perk span{display:block;font-weight:600;font-size:.84rem;color:var(--text);margin-top:.1rem}
.pf-row{display:flex;gap:.6rem}
.pf-row button{flex:1}
#hint{margin-top:.7rem;min-height:2.6em;font-size:.95rem;line-height:1.35;color:var(--text);text-align:center}
#status{font-size:.78rem;color:var(--dim);text-align:center;min-height:1.2em}
@media (max-height:760px){.pf-ov h2{font-size:1.6rem}.pf-ov p{font-size:.85rem}}
@media (prefers-reduced-motion:reduce){.pf *{transition:none!important;animation:none!important}}
.pf [hidden]{display:none!important}
.pf button:disabled{opacity:.45;cursor:default}
#t-streak{color:var(--gold)}
.pf-row{flex-wrap:wrap}
.pf-bar{padding-top:env(safe-area-inset-top,0)}
.pf-ov{padding-left:max(1.1rem,env(safe-area-inset-left));padding-right:max(1.1rem,env(safe-area-inset-right))}

/* full screen (shell immersive / native): the board fills the stage, no page chrome */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage,.game-wrap.pip-stage:fullscreen{display:flex;flex-direction:column;padding:0 max(.5rem,env(safe-area-inset-right)) max(.4rem,env(safe-area-inset-bottom)) max(.5rem,env(safe-area-inset-left));overflow:hidden}
html.pip-immersive .pip-actions,html.pip-native .pip-actions,.pip-stage:fullscreen .pip-actions{display:none}
html.pip-immersive .pf,html.pip-native .pf,.pip-stage:fullscreen .pf{flex:1;min-height:0;display:flex;flex-direction:column}
html.pip-immersive .pf-bar,html.pip-native .pf-bar,.pip-stage:fullscreen .pf-bar{padding-top:.3rem;flex:none}
html.pip-immersive .pf-stage,html.pip-native .pf-stage,.pip-stage:fullscreen .pf-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;box-shadow:none}
html.pip-immersive .pf-stage canvas,html.pip-native .pf-stage canvas,.pip-stage:fullscreen .pf-stage canvas{margin:0;max-width:none}
html.pip-immersive #hint,html.pip-native #hint,.pip-stage:fullscreen #hint{margin-top:.3rem;min-height:0;font-size:.85rem;flex:none}
html.pip-immersive #status,html.pip-native #status,.pip-stage:fullscreen #status{flex:none}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .pf,html.pip-native .pf{flex-direction:row;gap:.5rem}
html.pip-immersive .pf-bar,html.pip-native .pf-bar{flex-direction:column;justify-content:center;padding-top:0}
html.pip-immersive .pf-stage,html.pip-native .pf-stage{flex:1;min-width:0}
html.pip-immersive #hint,html.pip-native #hint,html.pip-immersive #status,html.pip-native #status{display:none}
.pf-ov h2{font-size:1.3rem}.pf-ov{gap:.35rem;padding-top:.4rem;padding-bottom:.4rem}
}
