/* number-bonds · fullscreen.css - fit the play area to the screen while the shell's fullscreen is on.
   Everything is scoped under html.pip-immersive; leaving fullscreen restores the normal page.
   Driven by fullscreen-fit.js (sets --fs-w, adds .fs-stage / .fs-wide / .fs-board-root). */
html.pip-immersive .fs-stage{display:flex;flex-direction:column;align-items:stretch;gap:8px;overflow-x:hidden}
html.pip-immersive .fs-stage>*{flex:none;min-width:0}
html.pip-immersive .fs-stage.fs-wide{display:grid;grid-template-columns:minmax(0,var(--fs-w,60vh)) minmax(0,1fr);column-gap:18px;row-gap:0;align-content:start;grid-auto-rows:min-content}
html.pip-immersive .fs-stage.fs-wide>*{grid-column:2;margin-bottom:8px}
html.pip-immersive .fs-stage.fs-wide>.fs-board-root{grid-column:1;grid-row:1 / span 40;align-self:start;margin-bottom:0}
html.pip-immersive .fs-stage>.fs-board-root{margin-left:auto;margin-right:auto}
html.pip-immersive #nb-stage{width:var(--fs-w,100%)!important;max-width:100%!important;margin:0 auto!important}
html.pip-immersive .nb-ladder{display:none!important}


/* pass 3: full-screen finish. Hide page chrome that is not part of play, keep it in the page. */
html.pip-immersive .facts,html.pip-immersive .nb-end-extra:empty,html.pip-native .facts{display:none!important}
html.pip-immersive .game-wrap,html.pip-native .game-wrap{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));padding-bottom:max(10px,env(safe-area-inset-bottom))}
html.pip-immersive .nb-mode,html.pip-native .nb-mode{min-height:44px}
html.pip-immersive .hud .btn,html.pip-native .hud .btn{min-height:44px}
html.pip-immersive #nb-stage,html.pip-native #nb-stage{touch-action:manipulation}
html.pip-immersive .nb-overlay{overflow:auto;overscroll-behavior:contain}
html.pip-native #nb-stage{max-width:min(100%,calc((100vh - 270px)*1.0));margin-left:auto;margin-right:auto}
@media (orientation:landscape) and (max-height:520px){html.pip-native #nb-stage{max-width:min(100%,calc(100vh - 90px))}}

/* phone, outside full screen: the board starts higher */
@media (max-width:480px){.facts{display:none}.game-wrap .nb-modes{margin-bottom:6px}}

/* tile feel: quick press response, softer lift */
html.hd-on .nb-tile{transition:transform .09s ease,filter .15s ease;-webkit-tap-highlight-color:transparent}
html.hd-on .nb-tile:active:not(:disabled){transform:scale(.93)}
html.hd-on .nb-tile[aria-pressed="true"]{filter:drop-shadow(0 4px 8px rgba(190,18,60,.45))}
html.hd-on .nb-tile.hint{filter:drop-shadow(0 0 8px rgba(250,204,21,.9))}

/* title and result panels: settle in, bigger final score */
.nb-panel:not([hidden]){animation:nbPanelIn .35s cubic-bezier(.2,1.2,.4,1) both}
@keyframes nbPanelIn{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.nb-big{background:linear-gradient(#fb4a6e,#be123c);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;font-size:clamp(2.6rem,12vw,3.6rem);line-height:1.05;filter:drop-shadow(0 2px 0 rgba(255,255,255,.8))}
.nb-newbest:not([hidden]){animation:nbPanelIn .5s .15s cubic-bezier(.2,1.4,.4,1) both}
.nb-combo.bump{text-shadow:0 0 10px rgba(225,29,72,.45)}
@media (prefers-reduced-motion:reduce){.nb-panel:not([hidden]),.nb-newbest:not([hidden]){animation:none}html.hd-on .nb-tile{transition:none}html.hd-on .nb-tile:active:not(:disabled){transform:none}}
