/* PlayHub standard footer — generated by tools/apply-footer.mjs (edit there, not here) */
.ph-footer{display:block;width:100%;clear:both;margin:28px 0 0;padding:16px 12px calc(22px + env(safe-area-inset-bottom,0px));border-top:1px solid #d3dae4;background:transparent;color:#6b7280;font:12px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Microsoft YaHei","Noto Sans SC",Arial,sans-serif;text-align:center;-webkit-text-size-adjust:100%;box-sizing:border-box}
.ph-footer *{box-sizing:border-box}
.ph-footer-in{max-width:980px;margin:0 auto}
.ph-footer p{margin:6px 0;padding:0;color:#6b7280;font-size:12px}
.ph-footer a{color:#4b5563;text-decoration:none}
.ph-footer a:hover,.ph-footer a:focus-visible{color:#c2410c;text-decoration:underline}
.ph-fblock+.ph-fblock{margin-top:14px;padding-top:12px;border-top:1px dashed #d3dae4}
.ph-fcopy a{text-decoration:underline;text-underline-offset:2px;white-space:normal}
.ph-flinks{list-style:none;margin:6px auto 4px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);max-width:540px}
.ph-flinks li{position:relative;margin:0;padding:0;list-style:none}
.ph-flinks a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 6px;line-height:1.25;text-align:center}
.ph-flinks li:not(:nth-child(3n+1))::before{content:"";position:absolute;left:0;top:30%;height:40%;border-left:1px solid #c5ccd8}
.ph-flinks li:last-child:nth-child(3n+1){grid-column:1/-1}
.ph-fcats{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin:8px auto 2px;padding:0;color:#6b7280;font-size:12px;line-height:1.65;text-align:center}
.ph-fcats a{color:#4b5563;padding:2px 0}
.ph-fcats-sep{display:inline-block;margin:0 .45em;opacity:.65}
.ph-fage{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;color:#6b7280;font-size:12px;line-height:1.65;text-align:center}
.ph-fage a{color:#6b7280}
.ph-fage-sep{display:inline-block;width:1px;height:0.9em;margin:0 .55em;background:currentColor;opacity:.4;flex:0 0 1px}
.ph-ftips span{display:block}
.ph-fcr{color:#9aa3b2}
.ph-fcontact{word-break:break-word}
@media (min-width:1000px){
  .ph-flinks{display:flex;flex-wrap:wrap;justify-content:center;max-width:none}
  .ph-flinks a{display:inline-flex;min-height:34px;padding:4px 12px}
  .ph-flinks li:last-child:nth-child(3n+1){grid-column:auto}
  .ph-flinks li::before{display:none}
  .ph-flinks li:not(:first-child)::before{display:block}
}
body.fullplay .ph-footer{order:3}
/* game toolbar: touch targets >= 44px (WCAG 2.5.5 / QA batch1) */
#btnPause,#btnExit,#btnMute,#btnRestart{min-height:44px;min-width:44px}
/* game title in the player top bar: never cut to "Glimbr…" — takes the free width, shrinks on narrow screens, wraps to 2 lines before it would clip (rework 1) */
.player-header{min-width:0}.player-header .player-controls{flex:0 0 auto}
.player-header strong{flex:1 1 auto;min-width:0;white-space:normal;text-overflow:clip;overflow:hidden;overflow-wrap:anywhere;line-height:1.08;font-size:clamp(12px,3.7vw,15px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* rework1 landscape phones (<=480px tall): header + HUD become side rails, the game gets the full height (app.js PH-LAND-SIDEBAR skips absolute rails) */@media (orientation:landscape) and (max-height:480px){#playerBox{position:relative}#playerBox>.player-header{position:absolute !important;left:0;top:0;bottom:0;width:128px;height:auto !important;min-height:0 !important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;padding:6px !important;z-index:4;background:rgba(10,6,24,.35)}#playerBox>.player-header strong{flex:0 0 auto;text-align:center;font-size:14px;-webkit-line-clamp:3;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6)}#playerBox>.player-header .player-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px}#playerBox>.player-header .player-controls>button{min-height:44px !important;min-width:44px !important;padding:0 4px !important;margin:0}#playerBox>.player-header .player-controls>#btnRestart,#playerBox>.player-header .player-controls>#btnExit{grid-column:span 2}body #playerBox>.hud{position:absolute !important;right:0;top:0;bottom:0;width:128px;height:auto !important;flex-direction:column;justify-content:center;align-items:center;gap:8px;z-index:4;line-height:1.3 !important;font-size:13px !important;background:rgba(10,6,24,.35);color:#fff}#playerBox>#playerStage{flex:1 1 auto;height:100%;padding-left:128px;padding-right:128px;box-sizing:border-box}}/* engine opt-in games (orient any|wide: body.ph-orient): the game draws its own HUD -> narrow icon rail on the left only, the whole rest of the width is the game box */@media (orientation:landscape) and (max-height:480px){body.ph-orient #playerBox>.player-header{width:84px;padding:6px 5px !important;gap:6px}body.ph-orient #playerBox>.player-header strong{font-size:12px;-webkit-line-clamp:4}body.ph-orient #playerBox>.player-header .player-controls{grid-template-columns:1fr;gap:6px}body.ph-orient #playerBox>.player-header .player-controls>#btnRestart,body.ph-orient #playerBox>.player-header .player-controls>#btnExit{grid-column:auto}body.ph-orient #playerBox>.player-header .player-controls>button{font-size:13px !important}body.ph-orient #playerBox>.hud{display:none !important}body.ph-orient #playerBox>#playerStage{padding-left:84px;padding-right:0}}/* blurred side fill behind the game on landscape/desktop (every game: --rw-cover = own art cover, else the game's share image via app.js PH-STAGE-COVER) */@media (orientation:landscape),(min-width:701px){#playerStage{background:linear-gradient(rgba(20,10,30,.45),rgba(20,10,30,.55)),var(--rw-cover,none) center/cover no-repeat,#1d1438;position:relative}#playerStage::after{content:"";position:absolute;inset:0;pointer-events:none;backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);z-index:0}#playerStage>#cwrap{position:relative;z-index:1}}@media (max-width:420px){.player-header{padding-left:10px;gap:6px}.player-header .player-controls{gap:4px}.player-header .player-controls .btn-sm{padding-left:9px;padding-right:9px}}
@media (orientation:landscape) and (max-height:480px){.player-header strong{font-size:14px;-webkit-line-clamp:2}}
@media print{.ph-footer{display:none}}
