/* Pepinho Games — navigation overlay for the standalone game bundles (Frogger V2, Rocket V2, Snake V2, Balln/Game:33).
 * Site chrome, so it uses the light + blue system (docs/DESIGN_SYSTEM_CURRENT.md): white pills, navy text, blue border, yellow primary CTA,
 * Fredoka 600 titles, Inter body. The game canvases and in-game HUD keep their own look. */
@font-face { font-family: "PGN Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("/telegram/fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "PGN Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/telegram/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "PGN Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/telegram/fonts/inter-400.woff2") format("woff2"); }

.pgn-root {
  --pgn-navy: #183b73; --pgn-blue: #397dd1; --pgn-yellow: #ffc83d; --pgn-text: #202b40; --pgn-border: #dce5f2;
  position: fixed; z-index: 2147483647;
  top: calc(env(safe-area-inset-top, 0px) + 8px); left: calc(env(safe-area-inset-left, 0px) + 8px);
  display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; max-width: calc(100vw - 16px);
  font-family: "PGN Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none; box-sizing: border-box;
}
.pgn-root[hidden], .pgn-chip[hidden] { display: none !important; }
.pgn-root * { box-sizing: border-box; }
.pgn-root > * { pointer-events: auto; }
.pgn-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 13px 0 10px; margin: 0;
  border-radius: 999px; border: 1px solid var(--pgn-blue); background: #fff; color: var(--pgn-navy);
  font: 600 13px/1 "PGN Inter", Inter, system-ui, sans-serif; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(24, 59, 115, .22); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pgn-chip:hover { background: #f1f6fd; }
.pgn-chip:focus-visible, .pgn-btn:focus-visible { outline: 2px solid var(--pgn-blue); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(255, 200, 61, .65); }
.pgn-chip svg { width: 14px; height: 14px; flex: none; }
.pgn-chip--menu { padding: 0 13px; }
@media (pointer: coarse) { .pgn-chip { min-height: 40px; } }
/* narrow screens: arrow + short label (the aria-label stays "Back to Games") */
.pgn-long { display: inline; } .pgn-short { display: none; }
@media (max-width: 520px), (orientation: landscape) and (max-height: 520px) { .pgn-long { display: none; } .pgn-short { display: inline; } }

/* mounted inside a game's own top bar (Frogger / Snake): flow layout, bar-sized */
.pgn-root--inline { position: static; flex: none; margin: 0 8px 0 0; max-width: none; z-index: auto; }
.pgn-root--inline .pgn-chip { min-height: 0; height: 26px; max-height: 100%; padding: 0 10px 0 7px; font-size: 12px; box-shadow: none; }
@media (pointer: coarse) { .pgn-root--inline .pgn-chip { height: 28px; } }

/* confirmation dialog */
.pgn-scrim {
  position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) calc(env(safe-area-inset-right, 0px) + 12px) calc(env(safe-area-inset-bottom, 0px) + 12px) calc(env(safe-area-inset-left, 0px) + 12px);
  background: rgba(24, 59, 115, .52); font-family: "PGN Inter", Inter, system-ui, sans-serif; touch-action: none; box-sizing: border-box;
}
.pgn-scrim[hidden] { display: none !important; }
.pgn-scrim * { box-sizing: border-box; }
.pgn-card {
  width: 100%; max-width: 380px; max-height: 100%; overflow: auto; padding: 22px 20px 20px; border-radius: 16px; background: #fff;
  border: 1px solid #dce5f2; box-shadow: 0 12px 28px rgba(24, 59, 115, .22); color: #202b40; text-align: center;
}
.pgn-title { margin: 0 0 8px; font: 600 22px/1.2 "PGN Fredoka", "PGN Inter", system-ui, sans-serif; color: #183b73; }
.pgn-body { margin: 0 0 18px; font: 400 14px/1.45 "PGN Inter", Inter, system-ui, sans-serif; color: rgba(32, 43, 64, .78); }
.pgn-actions { display: flex; flex-direction: column; gap: 10px; }
.pgn-btn {
  box-sizing: border-box; width: 100%; min-height: 46px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 "PGN Inter", Inter, system-ui, sans-serif; cursor: pointer;
  border: 1px solid #397dd1; background: #dbe8fb; color: #183b73; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pgn-btn--primary { background: #ffc83d; border-color: #e5aa1b; color: #183b73; box-shadow: none; }
.pgn-btn:hover { filter: brightness(.97); }
@media (min-width: 420px) and (max-height: 520px) { .pgn-actions { flex-direction: row-reverse; } .pgn-actions .pgn-btn { flex: 1; } }

/* Asteroids load/start hooks. The white card look was rejected.
   Other games must not adopt these classes. Asteroids overrides them in globals.css. */
.pgn-load { position: fixed; inset: 0; z-index: 80; }
.pgn-load, .pgn-start-layer {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: #f5f7fc; color: #202b40; font-family: "PGN Inter", Inter, system-ui, sans-serif; box-sizing: border-box;
}
.pgn-start-layer { position: absolute; inset: 0; z-index: 30; min-height: 0; height: auto; padding: 12px; background: transparent; overflow: auto; }
.pgn-load__card, .pgn-start {
  width: min(420px, 100%); background: #fff; border: 1px solid #dce5f2; border-radius: 16px;
  box-shadow: 0 12px 28px rgba(24, 59, 115, .08); padding: 16px 16px 14px; text-align: center;
}
.pgn-load__brand, .pgn-start__label {
  margin: 8px 0 0; color: #397dd1; font: 600 11px/1.2 "PGN Inter", Inter, system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
}
.pgn-load__title, .pgn-start__title {
  margin: 6px 0 0; color: #183b73; font: 600 32px/1.05 "PGN Fredoka", "PGN Inter", system-ui, sans-serif;
}
.pgn-start__objective, .pgn-load__status, .pgn-start__status {
  margin: 8px 0 0; color: rgba(32, 43, 64, .72); font: 400 14px/1.35 "PGN Inter", Inter, system-ui, sans-serif;
}
.pgn-start__best { margin: 8px 0 0; color: #183b73; font: 600 14px/1.2 "PGN Inter", Inter, system-ui, sans-serif; }
.pgn-start__play { width: 100%; margin-top: 12px; min-height: 48px; }
.pgn-start__row { display: flex; gap: 8px; margin-top: 8px; }
.pgn-start__row .pgn-btn { flex: 1; min-height: 44px; }
.pgn-load__track { height: 4px; margin: 14px auto 0; width: min(280px, 100%); border-radius: 99px; background: #eaf0fa; overflow: hidden; }
.pgn-load__track > span { display: block; height: 100%; width: 40%; background: #397dd1; }
.pgn-rules { margin: 0; padding-left: 18px; text-align: left; color: inherit; font: 400 14px/1.45 "PGN Inter", Inter, system-ui, sans-serif; }
@media (max-height: 520px) {
  .pgn-load, .pgn-start-layer { align-items: flex-start; }
  .pgn-start__title, .pgn-load__title { font-size: 26px; }
  .pgn-start { padding: 10px 12px; }
}

/* Rocket: its own top-left HUD (pause + settings buttons) and the platform bar fill the top edge, so the chip sits bottom-left, above the spike strip */
.pgn-root[data-pgn-game="rocket"] {
  top: auto; left: calc(env(safe-area-inset-left, 0px) + 6px); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
}

/* Balln: the floating chip only shows while Balln loads / failed (see game-nav.js); the way back during play is an entry inside Balln's own Options panel
 * (dark panel, so this one is a translucent light-on-dark button, 44px tall for touch). Balln's own main-menu home pill stays visible. */
.pgn-inmenu { display: block; width: 100%; margin: 10px 0 0; font-family: "PGN Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; box-sizing: border-box; }
.pgn-inmenu * { box-sizing: border-box; }
.pgn-inmenu__link {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; cursor: pointer;
  font: 600 14px/1.2 "PGN Inter", Inter, system-ui, sans-serif; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pgn-inmenu__link:hover { background: rgba(255, 255, 255, .2); }
.pgn-inmenu__link:focus-visible { outline: 2px solid #ffc83d; outline-offset: 2px; }
.pgn-inmenu__link svg { width: 14px; height: 14px; flex: none; }


/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
 * Shared game header (.pgh). ONE header for every Pepinho Games game, in the Telegram Mini App and on mobile web:
 *   row 1:  [ ‹ Back to Games ]                              PEPINHO GAMES
 *   row 2:  [ ● Logged in as <name> ]        [game actions]  [ Ranks ]   (Ranks only on the game's main menu)
 * In a short landscape phone screen both rows share one line so the header never covers the play area.
 * Markup is produced by components/arcade/GameHeader.tsx (React games + the Telegram wrapper bar) and by public/game-nav/game-nav.js (the standalone
 * vendored games on the web). Light + blue site chrome: navy pixel-mosaic bar, white pills with blue outline, yellow Fredoka brand text.
 * ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "PGN Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("/telegram/fonts/fredoka-600.woff2") format("woff2"); }
.pgh {
  --pgn-navy: #183b73; --pgn-blue: #397dd1; --pgn-yellow: #ffc83d;
  --pgh-mosaic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='64' shape-rendering='crispEdges'><rect width='160' height='64' fill='%23245a9e'/><rect x='0' y='0' width='26' height='14' fill='%23397dd1'/><rect x='30' y='0' width='16' height='14' fill='%23183b73'/><rect x='50' y='2' width='10' height='10' fill='%23ffc83d'/><rect x='64' y='0' width='22' height='14' fill='%234e8fe0'/><rect x='90' y='0' width='14' height='12' fill='%23c45b8a'/><rect x='108' y='0' width='20' height='14' fill='%231d4e8f'/><rect x='132' y='2' width='12' height='10' fill='%23397dd1'/><rect x='148' y='0' width='12' height='14' fill='%23183b73'/><rect width='160' height='36' y='14' fill='%23183b73'/><rect x='6' y='50' width='18' height='14' fill='%23183b73'/><rect x='28' y='52' width='12' height='10' fill='%23ffc83d'/><rect x='44' y='50' width='24' height='14' fill='%23397dd1'/><rect x='72' y='50' width='14' height='12' fill='%23c45b8a'/><rect x='90' y='50' width='20' height='14' fill='%234e8fe0'/><rect x='114' y='52' width='16' height='12' fill='%231d4e8f'/><rect x='134' y='50' width='18' height='14' fill='%23397dd1'/></svg>");
  position: relative; z-index: 30; flex: 0 0 auto; box-sizing: border-box; width: 100%; display: flex; flex-direction: column;
  padding: calc(7px + env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) 7px calc(10px + env(safe-area-inset-left, 0px));
  background-color: #245a9e; background-image: var(--pgh-mosaic); background-size: 160px 64px;
  border-bottom: 1px solid rgba(245, 247, 252, .16); box-shadow: 0 6px 18px rgba(24, 59, 115, .25);
  font-family: "PGN Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #f5f7fc; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.pgh * { box-sizing: border-box; }
.pgh[hidden], .pgh [hidden] { display: none !important; }
.pgh--fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483646; }
.pgh--page { position: fixed; top: 0; left: 0; right: 0; z-index: 40; }
/* TWO rows on every phone and tablet size, portrait and landscape (the standing layout rule):
 *   row 1:  [‹ Games] ................................ PEPINHO GAMES
 *   row 2:  [● Guest · Sign in | Logged in as <name>] ..... [game actions] [Ranking]   (Ranking only on the game's main menu; never a third row)
 * Visible chips are 26px tall (12px text, one border, no pill inside a pill). Header = safe area + 10 + 26 + 8 + 26 + 10 = 80px. Every control keeps a 44px-tall touch
 * area (an invisible ::after) and the areas of the two rows never overlap: row 1's area runs from the header's top edge down to 44px, row 2's from there to 88px (its last 8px
 * lie in the standard 8px gap every game leaves under the header, never over a game control). Neighbours in one row keep their areas apart with the 8px gap. */
.pgh { --pgh-chip: 26px; --pgh-padt: 10px; --pgh-rowgap: 8px; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: calc(var(--pgh-padt) + env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); padding-bottom: 10px; }
.pgh__row { display: flex; align-items: center; gap: 8px; min-width: 0; height: var(--pgh-chip); }
.pgh__row + .pgh__row { margin-top: var(--pgh-rowgap); }
.pgh__row--top { --pgh-area-top: calc(-1px - var(--pgh-padt)); justify-content: space-between; }
.pgh__row--id { --pgh-area-top: -1px; flex-wrap: nowrap; justify-content: space-between; }
.pgh__row--id:not(:has(> :not([hidden]):not(.pgh__slot:empty))) { display: none; }
.pgh__brand {
  margin-left: auto; padding-left: 8px; flex: 0 0 auto; white-space: nowrap; pointer-events: none; user-select: none; -webkit-user-select: none;
  font: 600 15px/1 "PGN Fredoka", "TG Fredoka", Fredoka, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #ffc83d;
}
.pgh__row--id .pgh__actions { margin-left: auto; }
.pgh .pgn-chip, .pgh__who, .pgh__pill, .pgh__actions .pg-btn, .pgh__actions .game-arcade-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: var(--pgh-chip); min-height: 0; margin: 0; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--pgn-blue); background: #fff; color: var(--pgn-navy);
  font: 600 12px/1 "PGN Inter", Inter, system-ui, sans-serif; letter-spacing: .01em; text-decoration: none; text-transform: none; white-space: nowrap; box-shadow: none; opacity: 1;
}
.pgh .pgn-chip { padding: 0 11px 0 8px; cursor: pointer; touch-action: manipulation; flex: 0 0 auto; }
.pgh .pgn-chip svg { width: 12px; height: 12px; }
.pgh .pgn-chip:hover, .pgh__pill:hover { background: #f1f6fd; }
.pgh__pill, .pgh__actions .pg-btn, .pgh__actions .game-arcade-btn { cursor: pointer; touch-action: manipulation; flex: 0 0 auto; }
.pgh__pill:focus-visible, .pgh .pgn-chip:focus-visible { outline: 2px solid var(--pgn-yellow); outline-offset: 2px; }
.pgh__pill--primary { background: var(--pgn-yellow); border-color: rgba(246, 205, 90, .55); }
/* 44px touch areas (the visible chip stays 26px) */
.pgh .pgn-chip::after, .pgh__pill::after, .pgh__actions .pg-btn::after, .pgh__actions .game-arcade-btn::after, .pgh__who a.pgh__action::after, .pgh__menu-btn::after { content: ""; position: absolute; left: -3px; right: -3px; top: var(--pgh-area-top); height: 44px; }
.pgh__who { flex: 0 1 auto; min-width: 0; max-width: 100%; justify-content: flex-start; cursor: default; pointer-events: auto; overflow: hidden; }
.pgh__who:has(a.pgh__action:not([hidden])) { overflow: visible; }
.pgh__who-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.pgh__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #9db3d6; }
.pgh__dot[data-run="ranked"] { background: #0e8f5a; box-shadow: 0 0 0 2px rgba(14, 143, 90, .22); }
.pgh__dot[data-run="practice"] { background: #e5aa1b; box-shadow: 0 0 0 2px rgba(229, 170, 27, .25); }
/* "Guest · Sign in" is ONE group: the link is plain text inside it (no second border, no second pill) */
.pgh__who .pgh__action { position: relative; flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: none; border-radius: 0; color: #1f5fb8; font: 700 12px/1 "PGN Inter", Inter, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; display: inline-flex; align-items: center; align-self: stretch; }
.pgh__who .pgh__sep { flex: 0 0 auto; opacity: .55; margin: 0; }
.pgh__who .pgh__note { opacity: .75; font-weight: 400; }
.pgh__actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex-wrap: nowrap; flex: 0 0 auto; }
.pgh__actions:empty { display: none; }
.pgh__slot { display: contents; }
.pgh__actions .pg-btns, .pgh__actions .pg-bar { display: contents; position: static; pointer-events: auto; }
.pgh__actions .pg-badge { padding: 0 8px; height: var(--pgh-chip); display: inline-flex; align-items: center; border-radius: 999px; background: var(--pgn-yellow); color: var(--pgn-navy); font: 600 11px/1 "PGN Inter", Inter, sans-serif; white-space: nowrap; }
/* compact game menu (sound + fullscreen): one icon button that opens a small panel */
/* a stand-alone sound button in the header (games without a menu): the same 26px round chip as the menu button, 44px touch area, no gradient or shadow */
.pgh__actions .game-arcade-sound { position: relative; width: var(--pgh-chip) !important; height: var(--pgh-chip) !important; min-width: 0 !important; min-height: 0 !important; flex: 0 0 var(--pgh-chip) !important; margin: 0 4px; padding: 0; border-radius: 999px; border: 1px solid var(--pgn-blue); background: #fff; color: var(--pgn-navy); box-shadow: none; }
.pgh__actions .game-arcade-sound::after { content: ""; position: absolute; left: -9px; right: -9px; top: var(--pgh-area-top); height: 44px; }
.pgh__actions .game-arcade-sound svg { width: 14px; height: 14px; }
.pgh__menu { position: relative; flex: 0 0 auto; }
.pgh__menu-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--pgh-chip); height: var(--pgh-chip); padding: 0; border-radius: 999px; border: 1px solid var(--pgn-blue); background: #fff; color: var(--pgn-navy); cursor: pointer; touch-action: manipulation; }
.pgh__menu-btn { margin: 0 4px; } .pgh__menu-btn::after { left: -9px; right: -9px; }
.pgh__menu-btn svg { width: 14px; height: 14px; }
.pgh__menu-btn:hover { background: #f1f6fd; }
.pgh__menu-btn:focus-visible { outline: 2px solid var(--pgn-yellow); outline-offset: 2px; }
.pgh__menu-panel { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; min-width: 190px; padding: 6px; display: flex; flex-direction: column; gap: 2px; border-radius: 14px; background: #fff; border: 1px solid #dce5f2; box-shadow: 0 10px 24px rgba(24, 59, 115, .28); }
.pgh__menu-panel[hidden] { display: none; }
.pgh__menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--pgn-navy); font: 600 14px/1.2 "PGN Inter", Inter, system-ui, sans-serif; text-align: left; cursor: pointer; touch-action: manipulation; }
.pgh__menu-item:hover { background: #f1f6fd; }
.pgh__menu-item:focus-visible { outline: 2px solid var(--pgn-blue); outline-offset: -2px; }
.pgh__menu-item svg { width: 18px; height: 18px; flex: none; }
.pgh__menu-hint { margin: 0; padding: 4px 12px 8px; font: 400 12px/1.35 "PGN Inter", Inter, system-ui, sans-serif; color: rgba(32, 43, 64, .78); }
/* narrow screens: shorter back label (the aria-label stays "Back to Games") */
.pgh .pgn-long { display: inline; } .pgh .pgn-short { display: none; }
@media (max-width: 519px), (orientation: landscape) and (max-height: 520px) { .pgh .pgn-long { display: none; } .pgh .pgn-short { display: inline; } }
@media (max-width: 340px) { .pgh__brand { font-size: 13px; } }
:root { --pgh-hbase: 80px; }
/* wide screens (desktop AND short landscape phones, like origin/main): ONE slim 44px line. A 2-row header would leave a landscape phone (844x390) only
 * ~265px for the game under the 36px footer, which clipped Snake's HUD / menu; the single row keeps the 44px touch areas (centred on the 26px chips). */
@media (min-width: 760px) {
  :root { --pgh-hbase: 44px; }
  .pgh { --pgh-padt: 0px; flex-direction: row; align-items: center; gap: 10px; min-height: calc(44px + env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); padding-bottom: 0; }
  .pgh__row { display: contents; --pgh-area-top: calc((var(--pgh-chip) - 44px) / 2 - 1px); }
  .pgh__row + .pgh__row { margin-top: 0; }
  .pgh__row--id:not(:has(> :not([hidden]):not(.pgh__slot:empty))) { display: contents; }
  .pgh .pgn-chip { order: 1; } .pgh__who, .pgh__slot { order: 2; } .pgh__actions { order: 3; margin-left: auto; } .pgh__brand { order: 4; font-size: 18px; margin-left: 0; }
  .pgh:not(:has(.pgh__actions > :not([hidden]))) .pgh__brand { margin-left: auto; }
}
/* Telegram Mini App, vendored game inside the wrapper's frame: the wrapper page renders the real header OUTSIDE the frame; in here only the "Main Menu" pill may float */
.pgh.pgh--chip { position: fixed; top: calc(6px + env(safe-area-inset-top, 0px)); left: calc(8px + env(safe-area-inset-left, 0px)); right: auto; width: auto; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.pgh.pgh--chip .pgh__row--top, .pgh.pgh--chip .pgh__who, .pgh.pgh--chip [data-pgh="ranks"] { display: none !important; }
.pgh.pgh--chip .pgh__row--id { display: flex !important; }
/* a vendored game that mounts the header inline (Snake) just takes its place in the page's own flow */
/* (inline / static header: the standard 8px gap under it is where row 2's touch area reaches, so it never covers a game control) */
.pgh:not(.pgh--fixed):not(.pgh--page):not(.pgh--chip) { position: relative; margin-bottom: 8px; }
/* (the game below a fixed header reads --pgh-h, set on <html> by game-nav.js, to reserve the space) */

/* ---- ONE shared footer: "Brought to you by [Pepinho Games logo]" -- identical on the website, in the Telegram Mini App and in every embedded game ----
 * Markup (components/arcade/GameFooter.tsx and public/game-nav/game-nav.js):  <footer class="pgf"><span class="pgf__t">Brought to you by</span><img class="pgf__logo"></footer>
 * Fixed values (CSS px): text Inter 11px / weight 600 / letter-spacing .02em / line-height 1 / colour #f5f7fc on the navy #183b73 bar; logo 76px wide, height by aspect ratio (never stretched);
 * 8px gap; 4px 12px padding; navy-blue background with a 1px top border; the bottom safe area is added below the content. Never positioned over gameplay:
 * every game reserves --pgf-reserve (footer height + safe area) at the bottom of its own layout. */
:root { --pgf-h: 36px; --pgf-reserve: calc(var(--pgf-h) + env(safe-area-inset-bottom, 0px)); }
.pgf { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; box-sizing: border-box; height: var(--pgf-reserve); padding: 4px max(12px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: center; gap: 8px; background: #183b73; border-top: 1px solid rgba(245, 247, 252, .16); color: #f5f7fc; pointer-events: none; user-select: none; -webkit-user-select: none; }
.pgf--flow { position: relative; flex: 0 0 auto; left: auto; right: auto; bottom: auto; width: 100%; }
.pgf__t { font: 600 11px/1 "PGN Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; text-transform: none; white-space: nowrap; color: #f5f7fc; opacity: 1; }
.pgf__logo { width: 76px; height: auto; max-width: none; display: block; flex: none; image-rendering: auto; }
