/*
  PLAYRS CLUB
  PLATFORM NAV v1

  DESIGN LAW
  dark translucent frosted glass (V5 -- was plain transparent + hairline)
  theme tokens (V7.1 -- was hardcoded dark-only values)
  inherited color
  hairline border
  no cards
  no gradients
  no bright status colors
  quiet, typography-first, restrained hover glow only
*/

#playrs-platform-nav-v1 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9997;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin: 0;
  padding:
    14px 20px
    calc(env(safe-area-inset-bottom, 0px) + 18px);

  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--playrs-text, inherit);

  background: var(--playrs-frosted, rgba(10,10,12,.55));
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border-top:
    1px solid
    var(--playrs-border, color-mix(in srgb, currentColor 14%, transparent));
}

/* Fallback for browsers without backdrop-filter: opaque, still legible. */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  #playrs-platform-nav-v1 {
    background: var(--playrs-frosted-fallback, rgba(7,7,8,.95));
  }
}

#playrs-platform-nav-v1 a {
  position: relative;

  color: inherit;
  text-decoration: none;
  font: inherit;
  letter-spacing: inherit;

  padding: 5px 2px;
  border-radius: 2px;

  opacity: .68;

  transition: opacity 180ms ease, box-shadow 180ms ease;
}

#playrs-platform-nav-v1 a:hover,
#playrs-platform-nav-v1 a:focus-visible {
  opacity: 1;
  box-shadow: 0 0 14px var(--playrs-hover, rgba(255,255,255,.09));
}

#playrs-platform-nav-v1 a:focus-visible {
  outline: 1px solid var(--playrs-focus, rgba(255,255,255,.55));
  outline-offset: 2px;
}

#playrs-platform-nav-v1 a[aria-current="page"] {
  opacity: 1;
}

/* HOME is the platform's canonical anchor (V5 section 06/11) -- sits
   centrally in DESTINATIONS and reads with slightly more visual
   weight than the rest, without becoming a loud/colored button. */
#playrs-platform-nav-v1 a[href="/"] {
  opacity: .8;
  font-weight: 500;
}

#playrs-platform-nav-v1 a[href="/"]:hover,
#playrs-platform-nav-v1 a[href="/"]:focus-visible {
  opacity: 1;
}

#playrs-platform-nav-v1 .playrs-platform-nav-sep {
  opacity: .3;
}

.playrs-platform-nav-theme {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 5px 2px;
  border-radius: 2px;

  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;

  opacity: .68;

  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.playrs-platform-nav-theme:hover,
.playrs-platform-nav-theme:focus-visible {
  opacity: 1;
  box-shadow: 0 0 14px var(--playrs-hover, rgba(255,255,255,.09));
}

.playrs-platform-nav-theme:focus-visible {
  outline: 1px solid var(--playrs-focus, rgba(255,255,255,.55));
  outline-offset: 2px;
}

@media (max-width: 520px) {

  #playrs-platform-nav-v1 {
    gap: 14px;
    font-size: 8px;
  }

}

/* V8 section 24/25/26/27: desktop reads as a floating instrument
   panel, detached from the viewport edges -- not a full-width footer
   strip. Mobile keeps the original edge-to-edge treatment above (touch
   target comfort takes priority over the floating presentation there
   -- section 27). Hard rectangular shape (radius unchanged from the
   rest of the platform's 2px law), not a pill. */
@media (min-width: 701px) {

  #playrs-platform-nav-v1 {
    left: 50%;
    right: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    transform: translateX(-50%);

    width: auto;
    max-width: calc(100vw - 64px);

    border-top: none;
    border:
      1px solid
      var(--playrs-border, color-mix(in srgb, currentColor 14%, transparent));
    border-radius: 3px;

    padding: 13px 22px;

    animation: playrs-platform-nav-float-in 320ms ease-out both;
  }

}

@keyframes playrs-platform-nav-float-in {

  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }

}

@media (min-width: 701px) and (prefers-reduced-motion: reduce) {

  #playrs-platform-nav-v1 {
    animation: none;
  }

}

/* Restrained icon control (ACCOUNT, section 04) -- same sizing/hover/
   focus language as the text links either side of it. */
.playrs-platform-nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.playrs-platform-nav-account svg {
  display: block;
  width: 15px;
  height: 15px;
}
