/* 4 Princes — the site header (4p-ui-v4, v5). One header on every player page: platform pages, game pages and
   the static home / Blastile / 3 Islands pages. Markup: View::nav() (PHP), behaviour: 4p-nav.js.
   * Full width: logo at the left edge, Games / Matches / How it works in the centre, account at the right edge.
   * No heavy bar: the header sits on the page background (transparent); it turns dark (.fpn-solid) once the
     page scrolls under it. On the home page (data-fpn-over=".story") it floats over the hero photo, which gets
     a soft dark gradient at the top, and turns dark when the visitor scrolls past the hero.
   * Nothing may wrap: when the full header does not fit, 4p-nav.js sets .fpn-m (the phone layout); the media
     query below does the same without JavaScript under 900 px. */
.fpn{--fpn-gold:#E2B04A;--fpn-gold-soft:#F3D58E;--fpn-crown:#FFCA28;--fpn-text:#F2F4F8;--fpn-muted:#A9B2C5;--fpn-panel:#232b3b;--fpn-line:rgba(255,255,255,.09);
  position:sticky;top:0;z-index:60;background:transparent;border-bottom:1px solid transparent;
  transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease;
  font-family:Outfit,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--fpn-text);line-height:1.25;text-align:left;
  -webkit-font-smoothing:antialiased;direction:ltr;user-select:none;-webkit-user-select:none}
.fpn.fpn-solid,.fpn.fpn-open{background:#11151F;border-bottom-color:var(--fpn-line);box-shadow:0 6px 24px rgba(0,0,0,.25)}
.fpn[data-fpn-over]{position:fixed;left:0;right:0;top:0}
.fpn[data-fpn-over]:not(.fpn-solid):not(.fpn-open) .fpn-brand b,.fpn[data-fpn-over]:not(.fpn-solid):not(.fpn-open) .fpn-link,
.fpn[data-fpn-over]:not(.fpn-solid):not(.fpn-open) .fpn-signin{text-shadow:0 1px 10px rgba(0,0,0,.65)}
.fpn *,.fpn *::before,.fpn *::after{box-sizing:border-box;margin:0;padding:0}
.fpn a{text-decoration:none;color:inherit}
.fpn [hidden]{display:none !important}
.fpn-bar{width:100%;height:68px;padding:0 28px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;column-gap:24px;white-space:nowrap}
.fpn-brand{display:flex;align-items:center;gap:10px;justify-self:start;color:var(--fpn-crown)}
.fpn-brand svg{width:38px;height:38px;flex:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}
.fpn-brand b{font-size:21px;font-weight:800;letter-spacing:.3px;white-space:nowrap;color:var(--fpn-crown)}
.fpn-main{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;white-space:nowrap;font-size:15px;font-weight:600}
.fpn-right{display:flex;align-items:center;gap:12px;justify-self:end;white-space:nowrap}
.fpn-link{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:10px;border:0;background:none;
  font:inherit;font-weight:600;color:#EEF1F6;cursor:pointer;white-space:nowrap;position:relative}
.fpn-link:hover,.fpn-link[aria-expanded=true]{background:rgba(255,255,255,.09);color:#fff}
.fpn-link.fpn-on{color:var(--fpn-gold-soft)}
.fpn-link.fpn-on::after{content:"";position:absolute;left:14px;right:14px;bottom:3px;height:2px;border-radius:2px;background:var(--fpn-gold)}
.fpn-chev{width:12px;height:12px;flex:none;transition:transform .15s}
.fpn [aria-expanded=true] .fpn-chev{transform:rotate(180deg)}
.fpn a:focus-visible,.fpn button:focus-visible{outline:2px solid var(--fpn-gold-soft);outline-offset:2px}
.fpn-dd{position:relative}
.fpn-panel{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);z-index:70;background:var(--fpn-panel);
  border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 22px 56px rgba(0,0,0,.55);padding:10px;text-shadow:none}
.fpn-panel::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}   /* hover bridge to the panel */
.fpn-gamespanel{width:460px}
.fpn-game{display:flex;align-items:center;gap:16px;padding:12px 14px;border-radius:12px;color:var(--fpn-text);white-space:nowrap}
.fpn-game img{flex:none;border-radius:22%;display:block;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.fpn-gamespanel .fpn-game img{width:64px;height:64px}
.fpn-mgames .fpn-game img{width:48px;height:48px}
.fpn-game span{display:flex;flex-direction:column;gap:3px;min-width:0}
.fpn-game b{font-size:17px;font-weight:800}
.fpn-game small{font-size:13.5px;color:var(--fpn-muted);font-weight:500;overflow:hidden;text-overflow:ellipsis}
.fpn .fpn-game:hover,.fpn .fpn-game:focus-visible{background:rgba(255,255,255,.07);color:var(--fpn-text)}
.fpn-game[aria-current=page]{background:rgba(226,176,74,.12)}
.fpn-game[aria-current=page] b{color:var(--fpn-gold-soft)}
/* the wallet pill: [coin] 1,000 [FREE] — one currency today; .fpn-wallet[data-currency] is ready for a switch */
.fpn-wallet{display:flex;align-items:center}
.fpn-coins{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 8px 0 7px;border-radius:999px;background:rgba(14,18,28,.55);
  border:1px solid rgba(226,176,74,.55);color:#FFF3D0;font-size:15px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:none}
.fpn-coins:hover{background:rgba(226,176,74,.16)}
.fpn-coin{width:20px;height:20px;flex:none}
.fpn-cur{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:6px;font-size:10.5px;font-weight:900;letter-spacing:.07em;line-height:1}
.fpn-cur-free{background:#2E9E5B;color:#fff}
/* the avatar button and the account menu */
.fpn-avatar{width:40px;height:40px;border-radius:50%;border:1.5px solid rgba(243,213,142,.6);background:rgba(14,18,28,.55);color:#E6EAF2;
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.fpn-avatar svg{width:22px;height:22px}
.fpn-avatar:hover,.fpn-avatar[aria-expanded=true]{border-color:var(--fpn-gold);color:#fff;background:rgba(226,176,74,.16)}
.fpn-user .fpn-panel{left:auto;right:0;transform:none;width:240px}
.fpn-user .fpn-panel::before{display:none}
.fpn-who{display:flex;flex-direction:column;gap:2px;padding:8px 12px 12px;margin-bottom:6px;border-bottom:1px solid var(--fpn-line)}
.fpn-who small{font-size:12px;color:var(--fpn-muted);font-weight:600}
.fpn-who b{font-size:16px;font-weight:800;color:var(--fpn-gold-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fpn-item{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:9px;border:0;background:none;font:inherit;font-size:15px;
  font-weight:600;color:var(--fpn-text);cursor:pointer;white-space:nowrap}
.fpn-item:hover,.fpn-item:focus-visible{background:rgba(255,255,255,.07)}
.fpn-item[aria-current=page]{color:var(--fpn-gold-soft)}
.fpn-out{display:block;margin-top:6px;padding-top:6px;border-top:1px solid var(--fpn-line)}
.fpn-signin{font-size:15px;font-weight:600;color:#EEF1F6;padding:0 6px;white-space:nowrap}
.fpn-signin:hover{color:var(--fpn-gold-soft)}
.fpn-cta{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border-radius:999px;background:var(--fpn-gold);
  color:#1b2130 !important;font-size:15px;font-weight:800;white-space:nowrap;text-shadow:none !important}
.fpn-cta:hover{background:var(--fpn-gold-soft)}
.fpn-burger{display:none;width:42px;height:42px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:rgba(14,18,28,.5);
  cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:none}
.fpn-burger span{display:block;width:18px;height:2px;border-radius:2px;background:var(--fpn-text);transition:transform .15s,opacity .15s}
.fpn-burger[aria-expanded=true] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.fpn-burger[aria-expanded=true] span:nth-child(2){opacity:0}
.fpn-burger[aria-expanded=true] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
/* the phone panel: full width under the bar */
.fpn-mob{display:block;position:absolute;left:0;right:0;top:100%;z-index:70;background:#171d2a;border-bottom:1px solid var(--fpn-line);
  box-shadow:0 24px 48px rgba(0,0,0,.55);padding:10px 16px 18px;max-height:calc(100vh - 58px);max-height:calc(100dvh - 58px);overflow-y:auto;
  white-space:nowrap;overscroll-behavior:contain;text-shadow:none}
.fpn-mlabel{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--fpn-muted);padding:12px 4px 6px;
  overflow:hidden;text-overflow:ellipsis}
.fpn-mgames .fpn-game{padding:8px}
.fpn-mlink{display:block;width:100%;text-align:left;padding:13px 8px;border:0;border-radius:10px;background:none;font:inherit;font-size:16px;font-weight:600;
  color:var(--fpn-text);cursor:pointer;white-space:nowrap}
.fpn-mlink:hover,.fpn-mlink:focus-visible{background:rgba(255,255,255,.07)}
.fpn-mlink.fpn-on,.fpn-mlink[aria-current=page]{color:var(--fpn-gold-soft)}
.fpn-macct .fpn-out{border-top:0;margin:0;padding:0}
.fpn-mauth{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--fpn-line)}
.fpn-mauth .fpn-cta{height:46px;font-size:16px}
.fpn-mauth .fpn-signin{text-align:center;padding:12px}
/* the phone layout: logo + coins + Menu */
.fpn.fpn-m .fpn-bar{display:flex;height:58px;padding:0 14px;gap:10px}
.fpn.fpn-m .fpn-brand svg{width:30px;height:30px}
.fpn.fpn-m .fpn-brand b{font-size:18px}
.fpn.fpn-m .fpn-main,.fpn.fpn-m .fpn-user,.fpn.fpn-m .fpn-right>.fpn-signin,.fpn.fpn-m .fpn-right>.fpn-cta{display:none}
.fpn.fpn-m .fpn-right{margin-left:auto;gap:10px}
.fpn.fpn-m .fpn-burger{display:flex}
@media (max-width:899px){
  .fpn .fpn-bar{display:flex;height:58px;padding:0 14px;gap:10px}
  .fpn .fpn-brand svg{width:30px;height:30px}
  .fpn .fpn-brand b{font-size:18px}
  .fpn .fpn-main,.fpn .fpn-user,.fpn .fpn-right>.fpn-signin,.fpn .fpn-right>.fpn-cta{display:none}
  .fpn .fpn-right{margin-left:auto;gap:10px}
  .fpn .fpn-burger{display:flex}
}
/* game pages: compact and not sticky, so it never covers the board */
.fpn.fpn-gamepage{position:relative}
.fpn.fpn-gamepage .fpn-bar{height:54px}
.fpn.fpn-gamepage .fpn-brand svg{width:32px;height:32px}
.fpn.fpn-gamepage .fpn-brand b{font-size:19px}
.fpn.fpn-gamepage.fpn-m .fpn-bar{height:52px;padding:0 12px}
.fpn.fpn-gamepage .fpn-mob{max-height:calc(100vh - 52px);max-height:calc(100dvh - 52px)}
@media (max-width:899px){.fpn.fpn-gamepage .fpn-bar{height:52px;padding:0 12px}}
@media (max-width:374px){.fpn .fpn-brand b{font-size:16px}.fpn .fpn-coins{font-size:14px;gap:5px}.fpn .fpn-cur{padding:0 4px}}
@media (prefers-reduced-motion:reduce){.fpn,.fpn-chev,.fpn-burger span{transition:none}}
/* the small footer under the game pages */
.fpn-foot{text-align:center;padding:18px 16px 26px;font:500 13px/1.4 Outfit,system-ui,sans-serif;color:#A9B2C5}
.fpn-foot a{color:#F3D58E;text-decoration:none}
.fpn-foot a:hover{text-decoration:underline}
