/**
 * PulseUp 하단 고정 네비 — Pulse Slide (A안) 슬라이딩 pill
 * --pu-nav-chrome-h: JS(bottom-nav-height.js / useBottomNavHeight) 측정값
 */

:root {
  --pu-nav-pill-h: 74px;
  --pu-nav-fab-size: 76px;
  --pu-nav-wrap-pad-x: 12px;
  --pu-nav-wrap-pad-top: 8px;
  --pu-nav-wrap-gap: 10px;
  --pu-nav-mobile-h: 92px;
  --pu-nav-desktop-h: 88px;
  --pu-nav-chrome-h: 88px;
  --pu-nav-slide-duration: 0.42s;
  --pu-nav-slide-ease: cubic-bezier(0.34, 1.25, 0.64, 1);
  --pu-nav-slide-inset-y: 8px;
  --pu-nav-slide-inset-x: 8px;
  --pu-nav-active-text: #9bea2f;
}

/* 모든 화면에서 nav wrapper는 문서 흐름 밖의 viewport chrome으로 취급 */
.nav-bottom-wrap.pu-nav-pulse-slide {
  position: fixed !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000;
}

/* ── Pulse Slide: 전 뷰포트 공통 (데스크톱·모바일 동일) ── */
.pu-nav-pulse-slide .pu-nav-shell {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.pu-nav-pulse-slide .pu-nav-slide-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #111317;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition:
    transform var(--pu-nav-slide-duration) var(--pu-nav-slide-ease),
    width var(--pu-nav-slide-duration) var(--pu-nav-slide-ease),
    opacity 0.14s ease;
  z-index: 0;
  will-change: transform, width;
  pointer-events: none;
}

.nav-bottom-wrap.pu-nav-pulse-slide.is-nav-synced .pu-nav-slide-indicator {
  opacity: 1;
}

.pu-nav-pulse-slide .mobile-bottom-nav {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: 1fr;
  align-items: stretch;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  padding: var(--pu-nav-slide-inset-y) var(--pu-nav-slide-inset-x);
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.pu-nav-pulse-slide .mobile-bottom-nav > a,
.pu-nav-pulse-slide .mobile-bottom-nav > button {
  position: relative;
  z-index: 2;
  grid-column: span 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  justify-self: stretch;
  align-self: stretch;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100%;
  min-height: 44px;
  padding: 0 4px;
  box-sizing: border-box;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.pu-nav-pulse-slide .mobile-bottom-nav > a span,
.pu-nav-pulse-slide .mobile-bottom-nav > button span {
  display: inline-block;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.62s cubic-bezier(0.2, 0.84, 0.28, 1),
    color 0.62s ease,
    text-shadow 0.62s ease,
    opacity 0.62s ease;
}

.pu-nav-pulse-slide .mobile-bottom-nav > a:not(.active),
.pu-nav-pulse-slide .mobile-bottom-nav > button:not(.active) {
  background: transparent !important;
  color: #6d707a !important;
}

.pu-nav-pulse-slide .mobile-bottom-nav > a.active,
.pu-nav-pulse-slide .mobile-bottom-nav > a.active span,
.pu-nav-pulse-slide .mobile-bottom-nav > button.active,
.pu-nav-pulse-slide .mobile-bottom-nav > button.active span {
  color: var(--pu-nav-active-text) !important;
}

.pu-nav-pulse-slide .mobile-bottom-nav > a.active span,
.pu-nav-pulse-slide .mobile-bottom-nav > button.active span {
  transform: scale(1.1);
  text-shadow: 0 0 13px rgba(155, 234, 47, 0.55);
}

.pu-nav-pulse-slide .mobile-bottom-nav > a.pulse-pop span {
  animation: pu-nav-hold-breathe 0.36s cubic-bezier(0.18, 1.25, 0.32, 1) both;
}

.nav-fab-stack {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: var(--pu-nav-fab-size);
  flex: 0 0 auto;
  z-index: 2;
}

.nav-fab {
  position: relative;
  z-index: 3;
  border: 0;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.nav-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 14, 17, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: default;
  touch-action: none;
  animation: pu-nav-action-backdrop-in 0.16s ease both;
}

.nav-action-backdrop[hidden] {
  display: none !important;
}

.nav-action-menu {
  position: absolute;
  right: 0;
  bottom: calc(var(--pu-nav-fab-size) + 10px);
  z-index: 2;
  width: min(372px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.975);
  box-shadow: 0 24px 68px rgba(17, 19, 23, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  gap: 9px;
  transform-origin: right bottom;
  animation: pu-nav-action-menu-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nav-action-menu[hidden] {
  display: none !important;
}

.nav-fab-stack--with-back .nav-action-menu {
  bottom: calc(var(--pu-nav-fab-size) + 62px);
}

.nav-action-menu--mypage {
  right: 12px;
  bottom: calc(var(--pu-nav-pill-h) + 18px);
  transform-origin: right bottom;
}

.nav-action-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 2px 4px 4px;
}

.nav-action-menu__head > div {
  min-width: 0;
}

.nav-action-menu__head > div > strong,
.nav-action-menu__head > div > span {
  display: block;
}

.nav-action-menu__head > div > strong {
  color: #12161c;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.nav-action-menu__head > div > span {
  margin-top: 4px;
  color: #707981;
  font-size: 10px;
  font-weight: 780;
  line-height: 1.35;
}

.nav-action-menu__head > button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: #eef1f2;
  color: #59616a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.nav-action-health {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(105, 160, 24, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, #efffc9 0%, #d8ff78 58%, #bff541 100%);
  color: #101317;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 12px 28px rgba(126, 191, 33, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.nav-action-health:active {
  transform: scale(.985);
}

.nav-action-health:disabled {
  cursor: wait;
  opacity: .72;
}

.nav-action-health.is-connected {
  background: linear-gradient(135deg, #f5ffe6, #e4ffc0);
}

.nav-action-health.is-disconnected {
  border-color: rgba(17, 19, 23, .72);
  background: linear-gradient(135deg, #101317 0%, #1c2523 100%);
  color: #fff;
  box-shadow: 0 15px 34px rgba(17, 19, 23, .22);
}

.nav-action-health.is-error {
  border-color: rgba(196, 48, 48, .2);
  background: linear-gradient(135deg, #fff3f1, #ffe3de);
}

.nav-action-health.is-loading {
  border-color: rgba(17, 19, 23, .08);
  background: #f1f4f3;
  box-shadow: none;
}

.nav-action-health__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #101317;
  color: #c8ff4a;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: -.02em;
  box-shadow: 0 8px 18px rgba(17, 19, 23, .18);
}

.nav-action-health.is-disconnected .nav-action-health__mark {
  background: #b9f238;
  color: #101317;
}

.nav-action-health__copy {
  min-width: 0;
}

.nav-action-health__copy em,
.nav-action-health__copy strong,
.nav-action-health__copy small {
  display: block;
  min-width: 0;
}

.nav-action-health__copy em {
  color: #507319;
  font-size: 9px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .04em;
}

.nav-action-health__copy strong {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.2;
}

.nav-action-health__copy small {
  margin-top: 5px;
  color: rgba(17, 19, 23, .64);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

.nav-action-health.is-disconnected .nav-action-health__copy em,
.nav-action-health.is-disconnected .nav-action-health__copy small {
  color: rgba(255, 255, 255, .68);
}

.nav-action-health > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #101317;
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
}

.nav-action-health.is-disconnected > b {
  background: #b9f238;
  color: #101317;
}

.nav-action-health-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(196, 48, 48, .16);
  border-radius: 14px;
  background: #fff4f2;
  color: #9b2626;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.nav-action-health-issue a {
  flex: 0 0 auto;
  color: #101317;
  font-weight: 1000;
  white-space: nowrap;
}

.nav-action-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nav-action-link {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 126px;
  padding: 13px;
  border: 1px solid rgba(17, 19, 23, .09);
  border-radius: 19px;
  color: #12161c;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  background: #f7f9f8;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nav-action-link--gps.is-open {
  border-color: #8bcf24;
  background: #f4ffe4;
  box-shadow: 0 0 0 3px rgba(151, 225, 45, .14);
}

.nav-action-link--photo {
  border-color: rgba(125, 190, 29, .25);
  background: linear-gradient(145deg, #f7ffe9, #eaffc9);
}

.nav-action-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 38px;
  height: 25px;
  padding: 0 7px;
  border-radius: 9px;
  background: #101317;
  color: #c8ff4a !important;
  font-size: 8px !important;
  font-weight: 1000 !important;
  letter-spacing: .03em;
}

.nav-action-link--photo .nav-action-link__icon {
  background: #95e425;
  color: #101317 !important;
}

.nav-action-link > i {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(17, 19, 23, .07);
  color: #101317;
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
}

.nav-action-link--primary {
  background: linear-gradient(145deg, #c5ff48 0%, #95ea25 56%, #7ed51e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 10px 24px rgba(139, 226, 32, 0.28);
}

.nav-action-link--disabled {
  cursor: not-allowed;
  background: rgba(239, 242, 244, 0.96);
  color: #68727c;
}

.nav-action-link--disabled strong {
  color: #313940;
}

.nav-action-link:active {
  transform: scale(0.98);
}

.nav-action-link strong,
.nav-action-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-action-gps-sports {
  padding: 11px;
  border: 1px solid rgba(126, 191, 33, .2);
  border-radius: 17px;
  background: #f8ffec;
  animation: pu-nav-action-menu-in .18s cubic-bezier(.2, .8, .2, 1) both;
}

.nav-action-gps-sports > span {
  display: block;
  margin-bottom: 8px;
  color: #53605b;
  font-size: 10px;
  font-weight: 850;
}

.nav-action-gps-sports > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.nav-action-gps-sports a,
.nav-action-gps-sports button {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #101317;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.nav-action-gps-sports button:disabled {
  opacity: .55;
  cursor: wait;
}

.nav-action-all-methods {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(17, 19, 23, .08);
  border-radius: 17px;
  background: #fff;
  color: #101317;
  text-decoration: none;
}

.nav-action-all-methods span,
.nav-action-all-methods strong,
.nav-action-all-methods small {
  display: block;
}

.nav-action-all-methods strong {
  font-size: 11px;
  font-weight: 1000;
}

.nav-action-all-methods small {
  margin-top: 3px;
  color: #747d79;
  font-size: 9px;
  font-weight: 760;
}

.nav-action-all-methods b {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #eef1f0;
  font-size: 14px;
}

/* Legacy JSP and secondary menus keep their compact list layout. */
.nav-action-menu:not(.nav-action-menu--record) {
  width: min(304px, calc(100vw - 24px));
  padding: 8px;
  border-radius: 22px;
  gap: 6px;
}

.nav-action-menu:not(.nav-action-menu--record) .nav-action-link {
  min-height: 0;
  padding: 12px 13px;
  border: 0;
  border-radius: 16px;
  background: rgba(245, 247, 248, .86);
}

.nav-action-menu:not(.nav-action-menu--record) .nav-action-link--primary {
  background: linear-gradient(145deg, #c5ff48 0%, #95ea25 56%, #7ed51e 100%);
}

@keyframes pu-nav-action-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-action-link strong {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.16;
}

.nav-action-link span {
  color: rgba(18, 22, 28, 0.66);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

@keyframes pu-nav-action-menu-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.nav-back-btn {
  display: grid;
  place-items: center;
  width: var(--pu-nav-fab-size);
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(17, 19, 23, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #111317;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(17, 19, 23, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-back-btn:active {
  transform: scale(0.96);
  background: rgba(245, 245, 247, 0.98);
}

.nav-back-btn[hidden] {
  display: none !important;
}

@keyframes pu-nav-hold-breathe {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1.1);
  }
}

/* 모바일: 슬라이딩 pill만 — 활성 탭 배경은 투명 (이중 레이어·좌측 pill 착시 방지) */
@media (max-width: 767px) {
  .nav-action-menu,
  .nav-fab-stack--with-back .nav-action-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--pu-nav-chrome-h, 92px) + 8px);
    width: auto;
    max-height: calc(100dvh - var(--pu-nav-chrome-h, 92px) - 24px);
    overflow-y: auto;
    border-radius: 20px;
    transform-origin: center bottom;
  }

  .nav-action-health {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .nav-action-health > b {
    grid-column: 2;
    justify-self: start;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav > a.active {
    background: transparent !important;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  :root {
    --pu-nav-pill-h: 68px;
    --pu-nav-fab-size: 68px;
    --pu-nav-wrap-pad-x: 8px;
    --pu-nav-wrap-gap: 8px;
    --pu-nav-slide-inset-x: 4px;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav > a,
  .pu-nav-pulse-slide .mobile-bottom-nav > button {
    padding-inline: 2px;
    font-size: 11px;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav > a.active span,
  .pu-nav-pulse-slide .mobile-bottom-nav > button.active span {
    transform: scale(1.04);
  }

  .nav-action-menu,
  .nav-fab-stack--with-back .nav-action-menu {
    left: 12px;
    right: 12px;
  }
}

.pu-nav-pulse-slide .mobile-bottom-nav > a:hover:not(.active) {
  color: #111317 !important;
}

body.home-landing:not(.home-hero-b):not(.home-hero-d):not(.home-hero-i)
  .pu-nav-pulse-slide .mobile-bottom-nav > a:not(.active) {
  color: #6d707a !important;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: var(--pu-nav-chrome-h, 88px);
  }

  body.feed-reel-page {
    padding-bottom: 0 !important;
  }

  .nav-bottom-wrap {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: calc(var(--pu-nav-mobile-h) + env(safe-area-inset-bottom, 0px)) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: var(--pu-nav-wrap-pad-top) var(--pu-nav-wrap-pad-x)
      calc(var(--pu-nav-wrap-pad-top) + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    z-index: 70;
    display: flex !important;
    justify-content: stretch;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--pu-nav-wrap-gap);
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(245, 245, 247, 0) 0%,
      rgba(245, 245, 247, 0.88) 38%,
      rgba(245, 245, 247, 0.96) 100%
    );
  }

  .nav-bottom-wrap > * {
    pointer-events: auto;
  }

  .nav-bottom-wrap--with-back {
    --pu-nav-mobile-h: 146px;
    align-items: flex-end;
  }

  .nav-bottom-wrap--with-back .pu-nav-shell,
  .nav-bottom-wrap--with-back .nav-fab-stack {
    align-self: flex-end;
  }

  .pu-nav-pulse-slide .pu-nav-shell {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: var(--pu-nav-pill-h);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 48px rgba(35, 35, 45, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-fab {
    display: grid;
    place-items: center;
    width: var(--pu-nav-fab-size);
    height: var(--pu-nav-fab-size);
    border-radius: 26px;
    background: #9edb3a;
    color: #101216;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 42px rgba(155, 226, 45, 0.38);
    flex-shrink: 0;
    transition: transform 0.15s;
    text-decoration: none;
  }

  .nav-fab:active {
    transform: scale(0.95);
  }

  body.feed-reel-page .nav-bottom-wrap {
    bottom: var(--pu-vv-bottom, 0px) !important;
    z-index: 80;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.94) 38%,
      #fff 100%
    );
  }

  body.feed-reel-page .nav-bottom-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: env(safe-area-inset-bottom, 0px);
    background: #fff;
    pointer-events: none;
  }

  body.feed-reel-page .pu-nav-pulse-slide .pu-nav-shell {
    background: #fff;
    border-color: rgba(17, 19, 23, 0.08);
  }

  body.feed-reel-page .feed-reel-app {
    padding-bottom: var(--pu-nav-chrome-h, 88px);
  }
}

/* 태블릿·데스크톱 — 모바일과 동일하게 중앙 정방형 인디케이터 사용 */
@media (min-width: 768px) {
  :root {
    --pu-nav-slide-inset-y: 6px;
    --pu-nav-slide-inset-x: 6px;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide {
    justify-content: center !important;
    align-items: center !important;
    height: calc(var(--pu-nav-desktop-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide .pu-nav-shell {
    flex: 0 0 auto !important;
    width: min(860px, calc(100vw - 120px)) !important;
    max-width: 860px !important;
    min-width: 0;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 19, 23, 0.08);
    box-shadow: 0 12px 40px rgba(13, 19, 28, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .pu-nav-pulse-slide .pu-nav-slide-indicator {
    display: block !important;
    visibility: visible !important;
    border-radius: 14px;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: 100% !important;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav > a {
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    min-height: 52px;
    width: 100%;
    justify-self: stretch;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav > a.active {
    background: transparent !important;
    color: var(--pu-nav-active-text) !important;
    box-shadow: none;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav > a:not(.active) {
    background: transparent !important;
    color: #6d707a !important;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide .nav-fab {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex-shrink: 0;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide .nav-back-btn {
    width: 64px;
    min-height: 40px;
    border-radius: 16px;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide.nav-bottom-wrap--with-back {
    --pu-nav-desktop-h: 128px;
    align-items: flex-end !important;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide.nav-bottom-wrap--with-back .pu-nav-shell,
  .nav-bottom-wrap.pu-nav-pulse-slide.nav-bottom-wrap--with-back .nav-fab-stack {
    align-self: flex-end;
  }
}

@media (min-width: 1024px) {
  .nav-bottom-wrap {
    z-index: 80;
  }
}

body.level-guide-page .nav-bottom-wrap.pu-nav-pulse-slide {
  --pu-nav-mobile-h: 92px;
  --pu-nav-desktop-h: 88px;
  align-items: center !important;
}

body.level-guide-page .nav-bottom-wrap.pu-nav-pulse-slide .nav-back-btn {
  display: none !important;
}

body.level-guide-page .nav-bottom-wrap.pu-nav-pulse-slide .pu-nav-shell,
body.level-guide-page .nav-bottom-wrap.pu-nav-pulse-slide .nav-fab-stack {
  align-self: center !important;
}

/* 홈/메인 허브 이동 직후에도 하단 탭은 항상 고정 노출 */
body.home-landing .nav-bottom-wrap.pu-nav-pulse-slide,
body.is-main-page .nav-bottom-wrap.pu-nav-pulse-slide {
  position: fixed !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000;
}

/* 마이페이지: 별도 플로팅 인증 버튼 대신 하단 메뉴 안에 인증을 배치 */
.pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > a.proof-link,
.pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > button.proof-link {
  background: #94ff00 !important;
  color: #101317 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(148, 255, 0, 0.38);
}

.pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > a.proof-link span,
.pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > button.proof-link span {
  color: inherit !important;
  text-shadow: none !important;
  transform: none !important;
}

@media (min-width: 768px) {
  .nav-bottom-wrap.pu-nav-pulse-slide .pu-nav-shell:has(.mobile-bottom-nav--with-proof) {
    width: min(980px, calc(100vw - 72px)) !important;
    max-width: 980px !important;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  :root {
    --pu-nav-pill-h: 68px;
    --pu-nav-fab-size: 68px;
    --pu-nav-mobile-h: 84px;
    --pu-nav-wrap-pad-x: 10px;
    --pu-nav-wrap-gap: 8px;
  }

  .nav-bottom-wrap--with-back {
    --pu-nav-mobile-h: 132px;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > a,
  .pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > button {
    font-size: 11px !important;
  }

  .pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > a.proof-link,
  .pu-nav-pulse-slide .mobile-bottom-nav.mobile-bottom-nav--with-proof > button.proof-link {
    border-radius: 16px !important;
  }
}

/* Mobile interaction baseline: keep the compact header, but never shrink
   primary navigation controls below a reliable touch target. */
@media (max-width: 767px) {
  .app-header .header-inner {
    height: 64px;
  }

  .app-header .nav.nav-web-secondary.nav-social-top {
    height: 44px;
    padding: 0;
  }

  .app-header .nav.nav-social-top a,
  .app-header .header-actions .button.header-plus-guide,
  .app-header .header-actions .header-notification-link,
  .app-header .header-admin-link {
    min-height: 44px;
  }

  .app-header .header-actions .button.header-plus-guide,
  .app-header .header-actions .header-notification-link {
    height: 44px;
  }

  .app-header .header-actions .button.header-plus-guide {
    width: 48px;
    min-width: 48px;
    padding-inline: 8px;
  }

  .nav-back-btn {
    min-height: 44px;
  }
}

/* Phones in landscape have very little usable height. The normal desktop
   branch is width-driven, so explicitly switch the app chrome to a compact
   mobile-landscape profile. */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --pu-nav-pill-h: 56px;
    --pu-nav-fab-size: 56px;
    --pu-nav-mobile-h: 64px;
    --pu-nav-desktop-h: 64px;
    --pu-nav-chrome-h: 64px;
    --pu-nav-wrap-pad-x: 10px;
    --pu-nav-wrap-pad-top: 4px;
    --pu-nav-wrap-gap: 8px;
    --pu-nav-slide-inset-y: 4px;
    --pu-nav-slide-inset-x: 4px;
  }

  body {
    padding-bottom: calc(var(--pu-nav-chrome-h) + env(safe-area-inset-bottom, 0px));
  }

  .app-header .header-inner {
    height: 52px;
    padding-inline: max(12px, env(safe-area-inset-left));
  }

  .app-header .logo {
    width: 150px;
    max-width: 150px;
  }

  .app-header .nav.nav-web-secondary.nav-social-top {
    height: 44px;
    max-width: 360px;
    padding: 0;
  }

  .app-header .nav.nav-social-top a {
    min-height: 44px;
    font-size: 12px;
  }

  .app-header .header-actions .button.header-plus-guide,
  .app-header .header-actions .button.header-start,
  .app-header .header-actions .header-notification-link {
    min-height: 44px;
    height: 44px;
  }

  .app-header .header-actions .button.header-start {
    display: none !important;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide,
  .nav-bottom-wrap.pu-nav-pulse-slide.nav-bottom-wrap--with-back {
    --pu-nav-mobile-h: 64px;
    --pu-nav-desktop-h: 64px;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .nav-bottom-wrap.pu-nav-pulse-slide .pu-nav-shell {
    width: min(720px, calc(100vw - 86px)) !important;
    max-width: 720px !important;
    height: 56px;
    border-radius: 16px;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide .nav-fab {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 12px;
  }

  .nav-bottom-wrap.pu-nav-pulse-slide .mobile-bottom-nav > a,
  .nav-bottom-wrap.pu-nav-pulse-slide .mobile-bottom-nav > button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 12px;
  }

  .nav-bottom-wrap--with-back .pu-nav-shell,
  .nav-bottom-wrap--with-back .nav-fab-stack {
    align-self: center;
  }

  .nav-bottom-wrap--with-back .nav-back-btn {
    display: none;
  }

  .nav-fab-stack--with-back .nav-action-menu {
    bottom: calc(var(--pu-nav-fab-size) + 10px);
  }

  main.page {
    padding-bottom: calc(var(--pu-nav-chrome-h) + 18px);
  }
}

/* Browser chrome can leave older/smaller phones with less than 340px of
   landscape content height. In that state even compact bottom chrome hides
   primary actions, so favor the page and restore the nav on rotation. */
@media (orientation: landscape) and (max-height: 340px) {
  :root {
    --pu-nav-chrome-h: 0px !important;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .nav-bottom-wrap.pu-nav-pulse-slide,
  body.home-landing .nav-bottom-wrap.pu-nav-pulse-slide,
  body.is-main-page .nav-bottom-wrap.pu-nav-pulse-slide,
  body.feed-reel-page .nav-bottom-wrap.pu-nav-pulse-slide {
    display: none !important;
  }

  main.page {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  body.feed-reel-page .feed-reel-app {
    padding-bottom: 0 !important;
  }
}
