/* One public navigation surface, independent of the staff workspace. */
/* Reserve the enhanced header's dimensions before deferred navigation loads. */
.header-v3 > .nav-v3,.site-header > .site-nav { --nav-height: 88px; min-height: 88px; width: min(calc(100% - 72px),var(--shell)); }
.header-v3 > .nav-v3 .logo-lockup-v3,.site-header > .site-nav .logo-lockup-v3 { width: 190px; min-width: 190px; height: 54px; }
.public-header-v6 { background: color-mix(in srgb, var(--bg) 94%, transparent); }
/* A calmer, more deliberate masthead: the active destination and the main
   owner action read immediately, while the original brand remains intact. */
.public-header-v6 {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--pink) 22%, var(--line-soft));
  backdrop-filter: blur(18px) saturate(1.12);
}
.public-header-v6::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--violet) 45%, var(--cyan) 82%, transparent);
  opacity: .56; pointer-events: none;
}
/* Leave room around the rounded panel without moving Close away from its opener. */
.public-nav-v6 { width: min(calc(100% - 72px),var(--shell)); min-height: 88px; display: flex; align-items: center; gap: 26px; }
.navigation-brand-v6 { display: inline-flex; align-items: center; flex: none; }
.navigation-brand-v6 img { width: 190px; height: 54px; object-fit: contain; }
.public-nav-v6 > .navigation-brand-v6 { position: relative; isolation: isolate; }
/* Two prepainted halos crossfade around the crisp original artwork. */
.public-nav-v6 > .navigation-brand-v6::before,
.public-nav-v6 > .navigation-brand-v6::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/browserp-logo-v5.png?v=20260908") center / contain no-repeat; transform-origin: left center; opacity: .03; }
.public-nav-v6 > .navigation-brand-v6::before { filter: drop-shadow(0 0 3px rgb(236 79 166 / .6)) drop-shadow(0 0 9px rgb(236 79 166 / .36)); animation: navigation-brand-glow 18.4s ease-in-out infinite; }
.public-nav-v6 > .navigation-brand-v6::after { z-index: 1; background: linear-gradient(100deg,transparent 28%,rgb(236 79 166 / .18) 43%,rgb(155 108 255 / .24) 51%,rgb(89 205 224 / .19) 59%,transparent 74%) 0 0 / 260% 100%; mask: url("/assets/browserp-logo-v5.png?v=20260908") center / contain no-repeat; -webkit-mask: url("/assets/browserp-logo-v5.png?v=20260908") center / contain no-repeat; animation: navigation-brand-wave 18.4s linear infinite; }
.public-nav-v6 > .navigation-brand-v6 img { transform-origin: left center; animation: navigation-brand-breathe 18.4s ease-in-out infinite; }
.public-nav-v6[data-brand-motion="paused"] > .navigation-brand-v6 img,
.public-nav-v6[data-brand-motion="paused"] > .navigation-brand-v6::before,
.public-nav-v6[data-brand-motion="paused"] > .navigation-brand-v6::after { animation-play-state: paused; }
@keyframes navigation-brand-breathe { 0%, 50%, 100% { transform: scale(1); opacity: .96; } 25%, 75% { transform: scale(1.018); opacity: 1; } }
@keyframes navigation-brand-glow { 0%, 50%, 100% { transform: scale(1); opacity: .03; } 25% { transform: scale(1.018); opacity: .6; } 75% { transform: scale(1.018); opacity: .03; } }
@keyframes navigation-brand-wave { 0%, 10%, 75%, 100% { background-position: 100% 0; opacity: 0; } 23% { opacity: .65; } 42% { background-position: 0 0; opacity: .5; } 55% { opacity: 0; } }
.public-nav-links-v6 { display: flex; align-items: center; gap: 3px; margin-right: auto; }
.public-nav-links-v6 > a { position: relative; padding: 12px; color: var(--copy); font-size: 14px; font-weight: 650; transition: color .2s ease; }
.public-nav-links-v6 > a::after { content: ""; position: absolute; height: 2px; bottom: 5px; inset-inline: 12px; background: var(--pink); border-radius: 2px; transform: scaleX(0); transition: transform .2s ease; }
.public-nav-links-v6 > a:hover,.public-nav-links-v6 > a[aria-current="page"] { color: var(--text); }
.public-nav-links-v6 > a:hover::after,.public-nav-links-v6 > a[aria-current="page"]::after { transform: scaleX(1); }
.public-nav-links-v6 > a[aria-current="page"] {
  background: color-mix(in srgb, var(--pink) 10%, transparent);
  border-radius: 10px;
}
.public-nav-actions-v6 { display: flex; align-items: center; gap: 10px; }
.public-nav-actions-v6 > .button-v3 { white-space: nowrap; font-size: 14px; }
.public-nav-actions-v6 .account-name-v3 { max-width: 92px; }
.navigation-find-v7 {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 86px; min-width: 86px; height: 46px; padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--cyan) 46%, var(--line));
  border-radius: var(--radius-sm); background: color-mix(in srgb, var(--cyan) 8%, var(--panel));
  color: var(--text); font-size: 14px; font-weight: 750; cursor: pointer;
  touch-action: manipulation; transition: background .2s ease, border-color .2s ease, transform .2s var(--motion-ease);
}
.navigation-find-v7 svg { width: 20px; height: 20px; flex: none; color: var(--cyan); }
.navigation-find-v7:hover,.navigation-find-v7[aria-expanded="true"] {
  background: color-mix(in srgb, var(--cyan) 16%, var(--panel)); border-color: var(--cyan);
}
.navigation-find-v7:active { transform: scale(.97); }
.navigation-toggle-v6,.navigation-close-v6 { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100px; min-width: 100px; height: 46px; padding: 10px 13px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; touch-action: manipulation; transition: border-color .2s ease,background .2s ease; }
.navigation-toggle-v6:hover,.navigation-close-v6:hover { background: var(--panel-2); border-color: var(--pink); }
.navigation-toggle-v6 {
  border-color: color-mix(in srgb, var(--pink) 26%, var(--line));
  box-shadow: inset 0 0 0 1px var(--edge-highlight);
}
.navigation-toggle-v6 svg { color: var(--pink); }
.navigation-toggle-v6:active,.navigation-close-v6:active { border-color: var(--pink-strong); }
.navigation-toggle-v6 svg,.navigation-close-v6 svg { width: 22px; height: 22px; flex: none; }
.navigation-dialog-v6 { position: fixed; inset: 4px 12px 12px auto; width: min(410px,calc(100vw - 24px)); max-width: none; height: min(560px,calc(100dvh - 16px)); max-height: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft); color: var(--text); box-shadow: var(--shadow-lg); overflow: visible; opacity: 0; transition: opacity var(--motion-enter, 180ms) ease; }
.navigation-dialog-v6[open] { display: flex; }
.navigation-dialog-v6[data-open="true"] { opacity: 1; transform: none; }
.navigation-dialog-v6::backdrop { background: rgb(3 2 6 / .72); backdrop-filter: none; opacity: 0; transition: opacity var(--motion-enter, 180ms) ease; }
.navigation-dialog-v6[data-open="true"]::backdrop { opacity: 1; }
.navigation-panel-v6 { display: flex; flex-direction: column; min-width: 0; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; background: var(--surface-raised, var(--panel)); }
.navigation-panel-v6 {
  background: radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--pink) 12%, transparent), transparent 35%),
    var(--surface-raised, var(--panel));
}
.navigation-top-v6 { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex: none; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.navigation-top-v6 .navigation-brand-v6 img { width: 150px; height: 42px; }
.navigation-close-v6 { position: fixed; top: 21px; right: 36px; z-index: 1; }
.navigation-close-v6[data-icon-only="true"] { min-width: 0; padding: 8px; }
.navigation-close-v6[data-icon-only="true"] > span { display: none; }
.navigation-close-v6 svg { transition: transform .25s var(--motion-ease); }
.navigation-scroll-v6 { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.navigation-eyebrow-v6 { color: var(--pink-strong); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.navigation-intro-v6 h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.navigation-intro-v6 p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.navigation-search-v6 { display: flex; align-items: center; min-height: 50px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); transition: border-color .2s ease,box-shadow .2s ease; }
.navigation-search-v6:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: none; }
.navigation-search-v6 input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--text); font-size: 16px; }
.navigation-search-v6 input:focus { outline: none; }
.navigation-search-v6 input::placeholder { color: var(--muted); opacity: 1; }
.navigation-search-v6 button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 9px; background: var(--panel-2); color: var(--pink-strong); cursor: pointer; touch-action: manipulation; }
.navigation-search-v6 button:hover { background: var(--line); }
.navigation-search-v6 svg { width: 20px; height: 20px; }
.navigation-links-v6 { display: grid; grid-template-columns: 1fr; gap: 4px; }
.navigation-link-v6 { position: relative; display: flex; align-items: center; min-width: 0; min-height: 50px; gap: 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: transparent; transition: border-color var(--motion-fast, 160ms),background var(--motion-fast, 160ms); }
.navigation-link-v6:hover { transform: none; border-color: var(--interactive-edge); background: var(--surface-hover); }
.navigation-link-v6[aria-current="page"] { border-color: var(--interactive-edge); background: var(--selection-surface); box-shadow: inset 3px 0 var(--pink); }
.navigation-link-icon-v6 { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; color: var(--pink-strong); background: rgb(236 79 166 / .09); }
.navigation-link-icon-v6 svg { width: 18px; height: 18px; }
.navigation-link-copy-v6 { display: grid; flex: 1; min-width: 0; gap: 2px; }
.navigation-link-copy-v6 strong { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.navigation-link-copy-v6 small { min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.navigation-link-v6 > svg { flex: none; margin-left: auto; width: 15px; height: 15px; color: var(--muted); transition: transform .2s ease,color .2s ease; }
.navigation-link-v6:hover > svg { color: var(--pink-strong); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .navigation-close-v6:hover svg { transform: rotate(90deg); }
  .navigation-link-v6:hover > svg { transform: translateX(3px); }
}
.navigation-disclosure-v6 { border-top: 1px solid var(--line-soft); padding-top: 6px; }
.navigation-disclosure-summary-v6 { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 4px; color: var(--copy); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.navigation-disclosure-summary-v6::-webkit-details-marker { display: none; }
.navigation-disclosure-summary-v6::after { content: ""; width: 8px; height: 8px; margin-right: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.navigation-disclosure-v6[open] > .navigation-disclosure-summary-v6::after { transform: rotate(225deg); }
.navigation-disclosure-summary-v6:hover { color: var(--text); }
.navigation-disclosure-summary-v6:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.navigation-game-grid-v6 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.navigation-game-v6 { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; font-weight: 700; transition: border-color .2s ease,background .2s ease; }
.navigation-game-v6[data-platform="fivem"] { --game-colour: #ffa45e; }
.navigation-game-v6[data-platform="redm"] { --game-colour: #ff7a82; }
.navigation-game-v6[data-platform="minecraft"] { --game-colour: #80d697; }
.navigation-game-v6[data-platform="roblox"] { --game-colour: #e5e9f0; }
.navigation-game-v6 svg { width: 23px; height: 23px; color: var(--game-colour); }
.navigation-game-v6:hover,.navigation-game-v6[aria-current="page"] { border-color: var(--game-colour); background: color-mix(in srgb,var(--game-colour) 8%,var(--panel)); }
.navigation-games-v6 {
  padding: 10px 12px 4px; border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--line));
  border-radius: var(--radius-md); background: color-mix(in srgb, var(--violet) 6%, var(--panel));
}
.navigation-games-v6 .navigation-disclosure-summary-v6 { color: var(--text); }
.navigation-games-v6 .navigation-game-grid-v6 { margin-bottom: 8px; }
.navigation-game-v6 { background: color-mix(in srgb, var(--game-colour) 4%, var(--panel)); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .navigation-game-v6 { transition: border-color .2s ease, background .2s ease, transform .2s var(--motion-ease); }
  .navigation-game-v6:hover { transform: translateY(-2px) scale(1.015); }
}
.navigation-appearance-v6 { padding-top: 6px; }
.navigation-appearance-heading-v6 { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.navigation-appearance-heading-v6 h3 { margin: 0; font-size: 14px; font-weight: 750; }
.navigation-appearance-heading-v6 span { min-width: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.navigation-theme-choices-v6 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 8px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.navigation-theme-choice-v6 { min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.navigation-theme-choice-v6:hover { color: var(--text); background: var(--panel-2); }
.navigation-theme-choice-v6[aria-pressed="true"] { color: var(--cyan); border-color: var(--interactive-edge); background: var(--selection-surface); box-shadow: inset 0 1px rgb(255 255 255 / .08); }
.navigation-motion-choice-v7,.brand-motion-setting-v7 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 44px; color: var(--copy); font-size: 14px; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.navigation-motion-choice-v7 input,.brand-motion-setting-v7 input { width: 18px; height: 18px; accent-color: var(--pink); }
.brand-motion-setting-v7 { padding: 16px 0; }
.brand-motion-setting-v7 small { width: 100%; padding-left: 28px; color: var(--muted); font-size: 14px; font-weight: 450; line-height: 1.5; overflow-wrap: anywhere; }
:root[data-brand-motion="off"] .public-nav-v6 > .navigation-brand-v6 img,
:root[data-brand-motion="off"] .public-nav-v6 > .navigation-brand-v6::before,
:root[data-brand-motion="off"] .public-nav-v6 > .navigation-brand-v6::after { animation: none !important; }
.navigation-account-v6 { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.navigation-account-v6 > .button-v3 { width: 100%; border-radius: var(--radius-sm); }
.navigation-account-v6 .account-trigger-v3 { width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); text-align: left; }
.navigation-account-v6 .account-name-v3 { display: block; min-width: 0; max-width: none; flex: 1; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.navigation-account-v6 .account-avatar-v3,.navigation-account-v6 .account-initials-v3 { flex: none; }
.navigation-account-v6 .account-popover-v3 { position: static; min-width: 0; margin-top: 8px; box-shadow: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); transform-origin: top center; }
.navigation-account-v6 .account-popover-v3 a,.navigation-account-v6 .account-popover-v3 button { min-width: 0; font-size: 14px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.navigation-footer-v6 { display: grid; gap: 8px; }
.navigation-footer-v6 > .button-v3 { display: flex; justify-content: space-between; min-height: 48px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px; }
.navigation-footer-v6 svg { width: 18px; height: 18px; }
.navigation-extra-v6 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; }
.navigation-extra-v6 a { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: flex-start; color: var(--muted); font-size: 14px; }
.navigation-extra-v6 a:hover { color: var(--text); }
.navigation-dialog-v6[data-open="true"] .navigation-enter-v6 { animation: navigation-arrive-v6 var(--motion-enter, 180ms) var(--motion-ease) both; }
.navigation-enter-v6:nth-child(2) { animation-delay: 30ms !important; }
.navigation-enter-v6:nth-child(3) { animation-delay: 55ms !important; }
.navigation-enter-v6:nth-child(4) { animation-delay: 80ms !important; }
.navigation-enter-v6:nth-child(5),.navigation-enter-v6:nth-child(6),.navigation-enter-v6:nth-child(7) { animation-delay: 100ms !important; }
@keyframes navigation-arrive-v6 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* The page is inert while the modal is open; pause ambient repainting behind it. */
.navigation-open-v6 .hero-v3::after,.navigation-open-v6 .navigation-brand-v6,.navigation-open-v6 .public-nav-v6 > .navigation-brand-v6 img,.navigation-open-v6 .public-nav-v6 > .navigation-brand-v6::before,.navigation-open-v6 .public-nav-v6 > .navigation-brand-v6::after,.navigation-open-v6 .logo-lockup-v3 { animation-play-state: paused; }
.navigation-open-v6 .public-nav-links-v6 { visibility: hidden; }
@media (max-width: 1200px) { .public-nav-v6 { gap: 16px; } .public-nav-actions-v6 .account-name-v3 { display: none; } .navigation-find-v7 { width: 46px; min-width: 46px; padding: 9px; } .navigation-find-v7 span { display: none; } }
@media (max-width: 1080px) { .public-nav-v6 { justify-content: flex-start; } .public-nav-v6 > .navigation-brand-v6 { margin-inline-end: auto; } .public-nav-links-v6,.public-nav-actions-v6 { display: none; } }
@media (min-width: 1081px) {
  .navigation-account-v6 { display: none; }
  body .navigation-dialog-v6 .navigation-footer-v6 > .button-v3[href="/list-server"] { display: none; }
}
@media (max-width: 520px) {
  .header-v3 > .nav-v3,.site-header > .site-nav { --nav-height: 68px; min-height: 68px; width: min(calc(100% - 28px),var(--shell)); }
  .header-v3 > .nav-v3 .logo-lockup-v3,.site-header > .site-nav .logo-lockup-v3 { width: 165px; min-width: 165px; height: 48px; }
  .public-nav-v6 { width: min(calc(100% - 28px),var(--shell)); min-height: 68px; gap: 8px; }
  .public-nav-v6 > .navigation-brand-v6 { margin-right: auto; }
  .public-nav-v6 .navigation-brand-v6 img { width: 165px; height: 48px; }
  .navigation-find-v7,.navigation-toggle-v6 { width: 42px; min-width: 42px; height: 42px; padding: 8px; }
  .navigation-toggle-v6 span { display: none; }
  .navigation-dialog-v6 { inset: 0 0 0 auto; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .navigation-top-v6 { padding: max(12px,env(safe-area-inset-top)) 20px 12px; }
  .navigation-scroll-v6 { padding: 16px 20px max(20px,env(safe-area-inset-bottom)); gap: 12px; }
  .navigation-search-v6 input { font-size: 16px; }
  .navigation-search-v6 input::placeholder { font-size: 14px; }
  .navigation-link-v6 { padding: 8px 12px; gap: 10px; }
  .navigation-intro-v6 h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .navigation-dialog-v6,.navigation-dialog-v6::backdrop,.navigation-dialog-v6 *, .public-nav-v6 *, .public-nav-v6 > .navigation-brand-v6::before, .public-nav-v6 > .navigation-brand-v6::after { animation: none !important; transition: none !important; }
  .navigation-find-v7:active { transform: none; }
}
@media (hover: none), (pointer: coarse) {
  .navigation-toggle-v6:active,.navigation-close-v6:active { background: var(--panel-2); filter: brightness(1.12) saturate(1.06); box-shadow: 0 5px 20px rgb(236 79 166 / .3), 0 0 14px rgb(155 108 255 / .2); }
}

/* Product polish also styles these links. Keep theme labels and surfaces in
   the same frame while retaining border and depth feedback. */
:root[data-theme] .navigation-game-v6 { transition-property: border-color,box-shadow; }
@media (prefers-reduced-motion: reduce) { :root[data-theme] .navigation-game-v6 { transition: none; } }
