/* ============================================================
   WPN — Fullscreen overlay with top-left arrow hint
   ============================================================ */

.wpn-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.wpn-overlay--visible {
  opacity: 1;
}

/* Full-screen container — content at 25% from top, left edge max 474px */
.wpn-hint {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  padding-left: clamp(20px, 40vw, 435px);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.wpn-hint--visible {
  opacity: 1;
  pointer-events: auto;
}

.wpn-hint--closing {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Centered block: arrow on top, text below */
.wpn-hint__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 40px;
  max-width: 720px;
}

.wpn-hint__text {
  text-align: left;
}

/* Arrow SVG */
.wpn-hint__arrow {
  display: block;
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
  animation: wpn-nudge 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wpn-nudge {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-5px, -5px); }
}

/* Text */
.wpn-hint__title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.wpn-hint__desc {
  margin: 0;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* Branding */
.wpn-hint__branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.wpn-hint__branding-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.wpn-hint__branding-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wpn-hint__branding-logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.wpn-hint__branding-link:hover .wpn-hint__branding-logo {
  opacity: 0.8;
}

/* Buttons (Safari overlay) */
.wpn-hint__actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wpn-hint__btn-accept {
  padding: 16px 40px;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.wpn-hint__btn-accept:hover {
  opacity: 0.88;
}

.wpn-hint__btn-decline {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.wpn-hint__btn-decline:hover {
  color: rgba(255,255,255,0.75);
}

/* Forced centered layout (Safari) */
.wpn-hint--centered {
  padding-left: 0 !important;
  padding-top: 0 !important;
  justify-content: center;
  align-items: center;
}

.wpn-hint--centered .wpn-hint__inner {
  align-items: center;
}

.wpn-hint--centered .wpn-hint__text {
  text-align: center;
}

.wpn-hint--centered .wpn-hint__arrow {
  display: none;
}

/* ============================================================
   WPN — Floating arrow (browser-specific guidance)
   ============================================================ */

.wpn-float-arrow {
  position: fixed;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wpn-float-arrow--visible {
  opacity: 1;
  transform: translateY(0);
}

.wpn-float-arrow__svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4347ac;
  stroke: #4347ac;
  animation: wpn-float-bounce 1s ease-in-out infinite;
}

.wpn-float-arrow--up    .wpn-float-arrow__svg { animation-name: wpn-float-bounce-up; }
.wpn-float-arrow--down  .wpn-float-arrow__svg { animation-name: wpn-float-bounce-down; }
.wpn-float-arrow--left  .wpn-float-arrow__svg { animation-name: wpn-float-bounce-left; }
.wpn-float-arrow--right .wpn-float-arrow__svg { animation-name: wpn-float-bounce-right; }

@keyframes wpn-float-bounce-up    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes wpn-float-bounce-down  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes wpn-float-bounce-left  { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes wpn-float-bounce-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

.wpn-float-arrow__msg {
  white-space: nowrap;
}

/* Centered layout when viewport too narrow for left-aligned position */
@media (max-width: 1155px) {
  .wpn-hint {
    padding-left: 0;
    justify-content: center;
  }
  .wpn-hint__inner {
    align-items: center;
  }
  .wpn-hint__text {
    text-align: center;
  }
  .wpn-hint__arrow {
    width: 100px;
    height: 100px;
    transform: rotate(45deg);
  }
  .wpn-hint__title { font-size: 28px; }
  .wpn-hint__desc  { font-size: 16px; }
  @keyframes wpn-nudge {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50%       { transform: rotate(45deg) translate(-4px, -4px); }
  }
}
