/* ============================================================
   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 {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}

.wpn-hint__branding-label {
  font-size: 10px;
  color: #fff;
  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-link:hover {
  opacity: 0.7;
}

.wpn-hint__branding-logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* 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;
}

/* 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); }
  }
}
