/* ================================================================
   Waypoint Zero — App Preview Modal
   Self-contained styles. All classes prefixed `wz-` to avoid clashes.
   Inherits color tokens (--bg, --green-bright, --red, etc.) from styles.css.
   ================================================================ */

/* --- Trigger button (lives in the hero, below waitlist form) --- */
.btn-green-outline {
  display: inline-block;
  margin-top: 0.7rem;
  background: transparent;
  border: 1px solid var(--green-bright);
  color: var(--green-bright);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.btn-green-outline:hover {
  background: rgba(90, 140, 64, 0.14);
  box-shadow: 0 0 14px rgba(90, 140, 64, 0.35);
}
.btn-green-outline:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

/* Lock states for the preview trigger */
.btn-green-outline.locked {
  color: var(--muted);
  border-color: rgba(90, 140, 64, 0.45);
  opacity: 0.85;
}
.btn-green-outline.locked:hover {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.55);
  color: var(--text);
  box-shadow: none;
}

.btn-green-outline.unlocked {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.btn-green-outline.just-unlocked {
  animation: wz-trigger-pulse 1.6s ease;
}
@keyframes wz-trigger-pulse {
  0%   { box-shadow: 0 0 0 rgba(90, 140, 64, 0); }
  20%  { box-shadow: 0 0 24px rgba(90, 140, 64, 0.7); }
  100% { box-shadow: 0 0 0 rgba(90, 140, 64, 0); }
}

/* Email-input shake when user clicks locked button */
.wz-shake {
  animation: wz-shake-anim 0.45s ease;
}
@keyframes wz-shake-anim {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* --- Modal overlay --- */
.wz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2vh 1rem;
  background: rgba(0, 0, 0, 0.88);
  font-family: "Inter", sans-serif;
}
.wz-modal-overlay.open { display: flex; }

.wz-modal-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 140, 64, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 64, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.wz-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 28, 20, 0.9);
  border: 1px solid rgba(90, 140, 64, 0.45);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 150ms ease, transform 150ms ease;
}
.wz-modal-close:hover {
  background: rgba(192, 57, 43, 0.85);
  transform: scale(1.06);
}

/* --- Phone frame --- */
.wz-phone {
  position: relative;
  width: min(380px, 92vw);
  aspect-ratio: 9 / 19.5;
  max-height: 96vh;
  background: #050805;
  border-radius: 38px;
  border: 2px solid #1c211c;
  box-shadow:
    0 0 60px rgba(90, 140, 64, 0.22),
    0 0 120px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.wz-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.wz-phone-statusbar {
  flex: 0 0 auto;
  height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px 2px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: #000;
}
.wz-phone-statusbar .wz-status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}
.wz-phone-statusbar svg { width: 14px; height: 14px; }

/* --- Phone screen content area --- */
.wz-phone-screen {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

/* Each individual screen — overlapping for slide/fade transitions */
.wz-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.85rem 1rem;
  background: var(--bg);
  transition: transform 350ms ease, opacity 150ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.wz-screen::-webkit-scrollbar { width: 4px; }
.wz-screen::-webkit-scrollbar-thumb { background: rgba(90,140,64,0.4); border-radius: 2px; }

.wz-screen.enter-from-right { transform: translateX(100%); }
.wz-screen.enter-from-left  { transform: translateX(-100%); }
.wz-screen.exit-left        { transform: translateX(-100%); }
.wz-screen.exit-right       { transform: translateX(100%); }
.wz-screen.in               { transform: translateX(0); opacity: 1; }
.wz-screen.pre-fade         { opacity: 0; transform: translateX(0); }
.wz-screen.fading-out       { opacity: 0; }

/* --- Bottom navigation (interactive) --- */
.wz-phone-bottom-nav {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0.5rem 0.3rem 0.65rem;
  background: #050805;
  border-top: 1px solid rgba(90, 140, 64, 0.3);
}
.wz-nav-tab {
  position: relative;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px 6px;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}
.wz-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 150ms ease;
}
.wz-nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wz-nav-label { display: block; }
.wz-nav-tab:hover { color: var(--text); }
.wz-nav-tab:hover .wz-nav-icon { opacity: 1; }
.wz-nav-tab.active { color: var(--green-bright); }
.wz-nav-tab.active .wz-nav-icon { opacity: 1; }
.wz-nav-tab.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 2px;
  background: var(--green-bright);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(90, 140, 64, 0.55);
}
.wz-nav-tab:focus-visible {
  outline: none;
}
.wz-nav-tab:focus-visible::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(90, 140, 64, 0.55);
  border-radius: 4px;
}

/* --- Reusable in-screen elements --- */
.wz-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(90, 140, 64, 0.18);
}
.wz-logo-mini {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--green-bright);
}
.wz-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.wz-signal-bars span {
  width: 3px;
  background: var(--green-bright);
  border-radius: 1px;
}
.wz-signal-bars span:nth-child(1) { height: 4px; }
.wz-signal-bars span:nth-child(2) { height: 7px; }
.wz-signal-bars span:nth-child(3) { height: 10px; }
.wz-signal-bars span:nth-child(4) { height: 13px; }

.wz-h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.wz-h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin: 0 0 0.4rem;
}
.wz-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Buttons */
.wz-btn {
  display: block;
  width: 100%;
  border: none;
  padding: 0.72rem 0.8rem;
  border-radius: 6px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 150ms ease, background-color 150ms ease;
}
.wz-btn-green {
  background: var(--green-bright);
  color: #050805;
}
.wz-btn-green:hover { filter: brightness(1.08); }
.wz-btn-red {
  background: var(--red);
  color: #fff;
}
.wz-btn-red:hover { filter: brightness(1.08); }
.wz-btn-darkred {
  background: #4a1410;
  color: #f4b8b0;
  border: 1px solid rgba(192, 57, 43, 0.55);
}
.wz-btn-outline {
  background: transparent;
  border: 1px solid var(--green-bright);
  color: var(--green-bright);
}
.wz-btn-outline:hover { background: rgba(90, 140, 64, 0.14); }
.wz-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Profile card */
.wz-profile-card {
  background: var(--surface);
  border: 1px solid rgba(90, 140, 64, 0.32);
  border-left: 3px solid var(--green-bright);
  border-radius: 8px;
  padding: 0.85rem;
}
.wz-callsign {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--text);
}
.wz-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.2rem;
}
.wz-rank-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--green-bright);
}
.wz-rank-progress-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.wz-progress-bar {
  width: 100%;
  height: 6px;
  background: #1a201a;
  border-radius: 3px;
  margin-top: 0.4rem;
  overflow: hidden;
}
.wz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-bright) 100%);
  width: 0%;
  transition: width 600ms ease;
}

/* Rank ladder */
.wz-rank-ladder {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 0.7rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-rank-ladder span {
  flex: 1;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.wz-rank-ladder span.current {
  background: rgba(90, 140, 64, 0.18);
  border-color: rgba(90, 140, 64, 0.5);
  color: var(--green-bright);
}

/* Stats row */
.wz-stats-row {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(90, 140, 64, 0.15);
}
.wz-stats-row > div { flex: 1; }
.wz-stats-row .wz-stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  color: var(--text);
}
.wz-stats-row .wz-stat-lbl {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Mission streak (Screen 1) */
.wz-streak-section {
  background: var(--surface);
  border: 1px solid rgba(90, 140, 64, 0.22);
  border-radius: 8px;
  padding: 0.7rem;
}
.wz-streak-days {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.wz-streak-day {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(90, 140, 64, 0.32);
  background: rgba(20, 28, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.wz-streak-day.active {
  background: var(--green-bright);
  color: #050805;
  border-color: var(--green-bright);
}

/* Mission cards (Screen 2) */
.wz-mission-card {
  background: var(--surface);
  border: 1px solid rgba(90, 140, 64, 0.32);
  border-left: 4px solid var(--green-bright);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.wz-mission-card:hover {
  border-color: rgba(90, 140, 64, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90, 140, 64, 0.14);
}
.wz-mission-card.type-walk { border-left-color: #6aaa50; }
.wz-mission-card.type-jog  { border-left-color: #e8a84a; }
.wz-mission-card.type-hike { border-left-color: #c0392b; }

.wz-mission-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0.25rem 0 0.4rem;
  text-transform: uppercase;
  color: var(--text);
}
.wz-mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Mission type pills */
.wz-badge--walk { background: rgba(106, 170, 80, 0.22); color: #8dc873; }
.wz-badge--jog  { background: rgba(232, 168, 74, 0.22); color: #e8a84a; }
.wz-badge--hike { background: rgba(192, 57, 43, 0.22); color: #ff8a7a; }
/* Difficulty pills */
.wz-badge--diff { font-size: 0.65rem; padding: 1px 6px; border: 1px solid currentColor; background: transparent; }
.wz-badge--diff-recon      { color: #8dc873; }
.wz-badge--diff-extraction { color: #e8a84a; }
.wz-badge--diff-combat     { color: #ff8a7a; }

/* Map (Screens 3 & 4) */
.wz-map {
  width: 100%;
  height: 150px;
  background: #0a0f0a;
  border: 1px solid rgba(90, 140, 64, 0.25);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.wz-map svg { width: 100%; height: 100%; display: block; }
.wz-map .wz-route-line {
  stroke: var(--green-bright);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
  opacity: 0.7;
}
.wz-map .wz-waypoint {
  fill: #0a0f0a;
  stroke: var(--green-bright);
  stroke-width: 1.5;
  transition: fill 200ms ease, r 200ms ease;
}
.wz-map .wz-waypoint.flash {
  fill: var(--green-bright);
}
.wz-map .wz-waypoint-label {
  fill: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: 9px;
  text-anchor: middle;
}
.wz-map .wz-walker {
  fill: var(--green-bright);
  filter: drop-shadow(0 0 4px rgba(90, 140, 64, 0.8));
  transition: cx 1s linear, cy 1s linear;
}
.wz-map .wz-walker-pulse {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1;
  opacity: 0;
  animation: wz-pulse 1.6s infinite;
}
@keyframes wz-pulse {
  0%   { r: 4; opacity: 0.7; }
  100% { r: 14; opacity: 0; }
}

/* Mission detail rows */
.wz-detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.7rem;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}
.wz-detail-list dt {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-detail-list dd {
  margin: 0;
  color: var(--text);
}

/* Inventory */
.wz-inventory {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wz-inv-item {
  background: rgba(20, 28, 20, 0.85);
  border: 1px solid rgba(90, 140, 64, 0.28);
  border-top: 2px solid var(--green-bright);
  border-radius: 5px;
  padding: 0.5rem 0.6rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  animation: wz-slide-up 320ms ease both;
}
.wz-inv-item.evidence { border-top-color: var(--red); }
.wz-inv-icon {
  font-size: 1.1rem;
  line-height: 1.1;
  flex-shrink: 0;
}
.wz-inv-body {
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.35;
}
.wz-inv-body strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  color: var(--green-bright);
  font-weight: 400;
  margin-bottom: 2px;
}
@keyframes wz-slide-up {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Notepad */
.wz-notepad {
  width: 100%;
  min-height: 70px;
  background: rgba(20, 28, 20, 0.85);
  border: 1px solid rgba(90, 140, 64, 0.28);
  border-radius: 5px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  padding: 0.5rem 0.6rem;
  resize: vertical;
}
.wz-notepad::placeholder { color: var(--muted); font-style: italic; }
.wz-notepad:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 1px rgba(90,140,64,0.5);
}

/* Active mission top bar */
.wz-active-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: rgba(20, 28, 20, 0.75);
  border: 1px solid rgba(90, 140, 64, 0.3);
  border-radius: 6px;
}
.wz-active-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}
.wz-timer {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--green-bright);
}

/* Walkie-talkie panel */
.wz-walkie {
  background: rgba(20, 28, 20, 0.92);
  border: 1px solid rgba(90, 140, 64, 0.32);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.wz-walkie.flash {
  border-color: var(--green-bright);
  box-shadow: 0 0 14px rgba(90, 140, 64, 0.4);
}
.wz-walkie-msg {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  min-height: 2.6em;
}
.wz-walkie-from {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--green-bright);
}

/* Top notification banner (Screen 4) */
.wz-found-banner {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(90, 140, 64, 0.95);
  color: #050805;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  z-index: 50;
  pointer-events: none;
  animation: wz-banner-flash 3s ease forwards;
  white-space: nowrap;
}
@keyframes wz-banner-flash {
  0%   { opacity: 0; transform: translate(-50%, -10px); }
  10%  { opacity: 1; transform: translate(-50%, 0); }
  80%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* Evidence board (Screen 5) */
.wz-evidence-board {
  background:
    radial-gradient(ellipse at center, rgba(90, 140, 64, 0.05), transparent 70%),
    rgba(15, 20, 15, 0.6);
  border: 1px solid rgba(90, 140, 64, 0.25);
  border-radius: 6px;
  padding: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.wz-pin-card {
  background: var(--surface);
  border: 1px solid rgba(90, 140, 64, 0.3);
  border-top: 3px solid var(--green-bright);
  border-radius: 4px;
  padding: 0.45rem 0.55rem;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: var(--text);
  position: relative;
  transform: rotate(-1deg);
  transition: transform 150ms ease;
}
.wz-pin-card:nth-child(2n) { transform: rotate(1deg); }
.wz-pin-card:nth-child(3n) { transform: rotate(-0.5deg); }
.wz-pin-card.evidence { border-top-color: var(--red); }
.wz-pin-card.notes {
  background: #f4ecd6;
  color: #2a1f0a;
  border-color: #b09864;
  border-top-color: #b09864;
  font-family: "Inter", sans-serif;
  font-style: italic;
  grid-column: span 2;
  clip-path: polygon(0 4%, 6% 0, 14% 3%, 22% 0, 32% 4%, 42% 0, 55% 3%, 68% 0, 80% 4%, 92% 0, 100% 5%,
                    100% 96%, 92% 100%, 80% 96%, 68% 100%, 55% 97%, 42% 100%, 32% 96%, 22% 100%,
                    14% 97%, 6% 100%, 0 95%);
  padding: 0.7rem 0.85rem;
}
.wz-pin-card .wz-pin-icon {
  font-size: 1rem;
  margin-right: 0.3rem;
}
.wz-pin-card strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  color: var(--green-bright);
  font-weight: 400;
  margin-bottom: 2px;
  font-size: 0.78rem;
}
.wz-pin-card.evidence strong { color: #ff8a7a; }
.wz-pin-card.notes strong { color: #5a3a14; }

.wz-debrief {
  background: rgba(20, 28, 20, 0.85);
  border: 1px solid rgba(90, 140, 64, 0.32);
  border-left: 3px solid var(--green-bright);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
}
.wz-debrief .wz-debrief-from {
  display: block;
  font-style: normal;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--green-bright);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

/* Screen 6 — Mission Complete */
.wz-screen.complete {
  background:
    radial-gradient(circle at top, rgba(90, 140, 64, 0.22), transparent 70%),
    #0d1410;
  align-items: stretch;
}
.wz-complete-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.wz-rankup {
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  background: rgba(90, 140, 64, 0.18);
  border: 1px solid var(--green-bright);
  border-radius: 6px;
  padding: 0.55rem;
  text-transform: uppercase;
  animation: wz-rankup-flash 1.6s ease;
}
@keyframes wz-rankup-flash {
  0%   { opacity: 0; transform: scale(0.92); box-shadow: 0 0 0 rgba(90,140,64,0); }
  20%  { opacity: 1; transform: scale(1.05); box-shadow: 0 0 24px rgba(90,140,64,0.7); }
  60%  { transform: scale(1); }
  100% { box-shadow: 0 0 6px rgba(90,140,64,0.25); }
}

.wz-final-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
  background: rgba(20, 28, 20, 0.7);
  border: 1px solid rgba(90, 140, 64, 0.28);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
}
.wz-final-stats .wz-fs-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-final-stats .wz-fs-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: right;
}

.wz-quote {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
  text-align: center;
  padding: 0 0.4rem;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .wz-modal-overlay { padding: 1vh 0.5rem; }
  .wz-phone {
    width: 96vw;
    border-radius: 28px;
    border-width: 2px;
  }
  .wz-modal-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }
  .wz-h1 { font-size: 1.3rem; }
  .wz-screen { padding: 0.7rem 0.7rem 0.85rem; }
  .wz-evidence-board { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
}

@media (max-height: 700px) {
  .wz-phone { aspect-ratio: auto; height: 92vh; }
}

/* ================================================================
   TAB EXTENSIONS — Mission/Map/Ranking/Inventory + sub-tabs
   ================================================================ */

.wz-subtitle {
  margin: -4px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

/* --- Mission tab list --- */
.wz-mission-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.wz-mission-card {
  outline: none;
}
.wz-mission-card:focus-visible {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 1px rgba(90, 140, 64, 0.6);
}
.wz-badge-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.3rem;
}
.wz-mission-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0.1rem 0 0.4rem;
  text-transform: uppercase;
  color: var(--text);
}
.wz-mission-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.wz-mission-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wz-meta-icon {
  display: inline-block;
  font-size: 0.78rem;
  margin-right: 2px;
  filter: grayscale(0.3);
}

/* --- Sub-tabs (used by Ranking + Inventory) --- */
.wz-subtabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(20, 28, 20, 0.6);
  border: 1px solid rgba(90, 140, 64, 0.25);
  border-radius: 6px;
  padding: 3px;
}
.wz-subtab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.wz-subtab:hover { color: var(--text); }
.wz-subtab.active {
  background: rgba(90, 140, 64, 0.22);
  color: var(--green-bright);
}

/* ================================================================
   MAP TAB
   ================================================================ */

.wz-fieldmap-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 460;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(90, 140, 64, 0.32);
  background: #0a0f0a;
}

.wz-fieldmap {
  display: block;
  width: 100%;
  height: 100%;
}

/* Routes */
.wz-fieldmap-route { cursor: pointer; }
.wz-route-path {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
  stroke-linecap: round;
  transition: stroke-width 200ms ease, opacity 200ms ease;
}
.wz-route-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  cursor: pointer;
  pointer-events: stroke;
}
.wz-route-start, .wz-route-end, .wz-route-wp {
  transition: opacity 200ms ease;
}
.wz-route-pulse {
  fill: none;
  stroke-width: 1;
  opacity: 0.6;
  animation: wz-route-pulse-anim 2.4s ease-out infinite;
  transform-box: fill-box;
}
@keyframes wz-route-pulse-anim {
  0%   { r: 4;  opacity: 0.7; }
  100% { r: 16; opacity: 0;   }
}
.wz-route-wp-label {
  fill: #050805;
  font-family: "Bebas Neue", sans-serif;
  font-size: 5px;
  text-anchor: middle;
  pointer-events: none;
}
.wz-route-label {
  fill: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: 7px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Type-coloured routes */
.wz-fieldmap-route.type-walk .wz-route-path,
.wz-fieldmap-route.type-walk .wz-route-pulse { stroke: #6aaa50; }
.wz-fieldmap-route.type-walk .wz-route-start,
.wz-fieldmap-route.type-walk .wz-route-wp,
.wz-fieldmap-route.type-walk .wz-route-end { fill: #6aaa50; stroke: none; }

.wz-fieldmap-route.type-jog .wz-route-path,
.wz-fieldmap-route.type-jog .wz-route-pulse { stroke: #e8a84a; }
.wz-fieldmap-route.type-jog .wz-route-start,
.wz-fieldmap-route.type-jog .wz-route-wp,
.wz-fieldmap-route.type-jog .wz-route-end { fill: #e8a84a; stroke: none; }

.wz-fieldmap-route.type-hike .wz-route-path,
.wz-fieldmap-route.type-hike .wz-route-pulse { stroke: #c0392b; }
.wz-fieldmap-route.type-hike .wz-route-start,
.wz-fieldmap-route.type-hike .wz-route-wp,
.wz-fieldmap-route.type-hike .wz-route-end { fill: #c0392b; stroke: none; }

/* Highlight handling */
.wz-fieldmap.has-highlight .wz-fieldmap-route { opacity: 0.25; }
.wz-fieldmap.has-highlight .wz-fieldmap-route.highlighted { opacity: 1; }
.wz-fieldmap-route.highlighted .wz-route-path { stroke-width: 2.4; }

/* Compass */
.wz-compass {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  pointer-events: none;
}
.wz-compass svg { width: 100%; height: 100%; display: block; }

/* Legend */
.wz-map-legend {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(8, 12, 8, 0.88);
  border: 1px solid rgba(90, 140, 64, 0.32);
  border-radius: 5px;
  padding: 0.4rem 0.55rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.wz-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wz-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.wz-legend-dot.type-walk { background: #6aaa50; }
.wz-legend-dot.type-jog  { background: #e8a84a; }
.wz-legend-dot.type-hike { background: #c0392b; }

/* Popup card */
.wz-map-popup {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  width: min(82%, 280px);
  background: rgba(15, 22, 15, 0.97);
  border: 1px solid rgba(90, 140, 64, 0.5);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(90, 140, 64, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 5;
  animation: wz-popup-in 200ms ease both;
}
.wz-map-popup.hidden { display: none; }
@keyframes wz-popup-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.wz-popup-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.wz-popup-meta {
  display: flex;
  gap: 0.7rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.wz-popup-btn {
  width: 100%;
  padding: 0.5rem;
}

/* ================================================================
   RANKING TAB
   ================================================================ */

.wz-ranking-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Vertical rank ladder */
.wz-rank-ladder-vert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(20, 28, 20, 0.55);
  border: 1px solid rgba(90, 140, 64, 0.22);
  border-radius: 6px;
  padding: 0.4rem;
}
.wz-rank-row-vert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  background: rgba(8, 12, 8, 0.4);
  border: 1px solid transparent;
}
.wz-rank-row-vert.current {
  background: rgba(90, 140, 64, 0.16);
  border-color: rgba(90, 140, 64, 0.5);
  box-shadow: 0 0 12px rgba(90, 140, 64, 0.18);
}
.wz-rank-row-vert.future { opacity: 0.5; }
.wz-rank-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wz-rank-dot.dot-muted { background: #2a302a; }
.wz-rank-dot.dot-green { background: #6aaa50; box-shadow: 0 0 6px rgba(106, 170, 80, 0.6); }
.wz-rank-dot.dot-blue  { background: #5ba3d9; box-shadow: 0 0 6px rgba(91, 163, 217, 0.5); }
.wz-rank-dot.dot-amber { background: #e8a84a; box-shadow: 0 0 6px rgba(232, 168, 74, 0.5); }
.wz-rank-dot.dot-red   { background: #c0392b; box-shadow: 0 0 6px rgba(192, 57, 43, 0.5); }
.wz-rank-row-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  color: var(--text);
  text-transform: uppercase;
}
.wz-rank-row-vert.current .wz-rank-row-name { color: var(--green-bright); }
.wz-rank-row-thresh {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Lifetime stats */
.wz-lifetime-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 0.6rem;
  background: rgba(20, 28, 20, 0.6);
  border: 1px solid rgba(90, 140, 64, 0.22);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
}
.wz-lifetime-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-lifetime-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: right;
}

/* Leaderboard */
.wz-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wz-leaderboard-row {
  display: grid;
  grid-template-columns: 22px 22px 1fr auto auto auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: rgba(20, 28, 20, 0.7);
  border: 1px solid rgba(90, 140, 64, 0.22);
  border-radius: 5px;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  color: var(--text);
}
.wz-leaderboard-row.is-you {
  border-color: var(--green-bright);
  background: rgba(90, 140, 64, 0.16);
  box-shadow: 0 0 12px rgba(90, 140, 64, 0.22);
}
.wz-lb-pos {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.wz-lb-medal { font-size: 0.95rem; line-height: 1; text-align: center; }
.wz-lb-callsign {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz-lb-callsign em {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--green-bright);
  margin-left: 2px;
}
.wz-lb-rank {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  background: rgba(90, 140, 64, 0.18);
  color: var(--muted);
  border-radius: 3px;
}
.wz-leaderboard-row.is-you .wz-lb-rank {
  background: rgba(90, 140, 64, 0.32);
  color: var(--green-bright);
}
.wz-lb-stat {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ================================================================
   INVENTORY TAB
   ================================================================ */

.wz-inventory-body { display: flex; flex-direction: column; gap: 0.65rem; }

.wz-gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.wz-gear-card {
  background: rgba(20, 28, 20, 0.85);
  border: 1px solid rgba(90, 140, 64, 0.28);
  border-top: 2px solid var(--green-bright);
  border-radius: 5px;
  padding: 0.55rem 0.55rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wz-gear-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.wz-gear-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}
.wz-gear-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
  flex: 1;
}
.wz-status-pill {
  align-self: flex-start;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 0.2rem;
}
.wz-status-pill.green { color: #8dc873; background: rgba(90, 140, 64, 0.22); border: 1px solid rgba(90, 140, 64, 0.45); }
.wz-status-pill.amber { color: #e8a84a; background: rgba(232, 168, 74, 0.18); border: 1px solid rgba(232, 168, 74, 0.45); }

/* Evidence */
.wz-evidence-pinboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem;
  background:
    radial-gradient(ellipse at center, rgba(90, 140, 64, 0.06), transparent 70%),
    rgba(15, 20, 15, 0.6);
  border: 1px solid rgba(90, 140, 64, 0.25);
  border-radius: 6px;
}
.wz-evidence-slot {
  border-radius: 5px;
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  min-height: 88px;
}
.wz-evidence-slot.locked {
  border: 1px dashed rgba(90, 140, 64, 0.42);
  background: rgba(8, 12, 8, 0.4);
  color: var(--muted);
}
.wz-evidence-slot.found {
  background: var(--surface);
  border: 1px solid rgba(192, 57, 43, 0.45);
  border-top: 3px solid var(--red);
}
.wz-evidence-icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.85;
}
.wz-evidence-locked-text {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.25;
}
.wz-evidence-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.wz-evidence-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
.wz-evidence-hint {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

/* Mobile tweaks for new pieces */
@media (max-width: 480px) {
  .wz-mission-meta { grid-template-columns: 1fr 1fr; font-size: 0.66rem; }
  .wz-leaderboard-row {
    grid-template-columns: 18px 18px 1fr auto auto;
    font-size: 0.68rem;
    gap: 0.3rem;
  }
  .wz-leaderboard-row .wz-lb-stat:nth-of-type(2) { display: none; }
  .wz-rank-row-thresh { font-size: 0.65rem; }
  .wz-route-label { font-size: 6px; }
}

/* ================================================================
   Icon sizing — every container that wraps an SVG gets a defined size
   so icons render predictably across all screens.
   ================================================================ */
.wz-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  color: var(--green-bright);
  vertical-align: middle;
}
.wz-meta-icon svg { width: 100%; height: 100%; display: block; }

.wz-inv-icon,
.wz-pin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--green-bright);
}
.wz-inv-icon svg, .wz-pin-icon svg { width: 100%; height: 100%; display: block; }

.wz-gear-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 28px;
  height: 28px;
  color: var(--green-bright);
}
.wz-gear-icon svg { width: 100%; height: 100%; display: block; }

.wz-evidence-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.wz-evidence-icon svg { width: 100%; height: 100%; display: block; }
.wz-evidence-slot.found .wz-evidence-icon { color: var(--green-bright); }

.wz-walkie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  color: var(--green-bright);
  vertical-align: middle;
}
.wz-walkie-icon svg { width: 100%; height: 100%; display: block; }

.wz-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
}
.wz-inline-icon.flame { color: #e8a84a; }
.wz-inline-icon svg { width: 100%; height: 100%; display: block; }

.wz-voice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
}
.wz-voice-icon svg { width: 100%; height: 100%; display: block; }

.wz-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}
.wz-trigger-icon svg { width: 100%; height: 100%; display: block; }

.wz-lb-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.wz-lb-medal svg { width: 100%; height: 100%; display: block; }

/* Walkie-talkie language toast (only shown on non-English UI when radio toggles ON) */
.wz-walkie-lang-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  background: rgba(20, 28, 20, 0.96);
  border: 1px solid var(--green-bright);
  color: var(--green-bright);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 18px rgba(90, 140, 64, 0.2);
  animation: wz-banner-flash 4.5s ease forwards;
  pointer-events: none;
}

/* Voice toggle next to the modal close button */
.wz-voice-toggle {
  position: absolute;
  top: 14px;
  right: 62px;
  background: rgba(20, 28, 20, 0.9);
  border: 1px solid rgba(90, 140, 64, 0.45);
  color: var(--green-bright);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0 0.6rem;
  height: 38px;
  border-radius: 19px;
  cursor: pointer;
  z-index: 3;
  transition: background-color 150ms ease, color 150ms ease;
}
.wz-voice-toggle:hover { background: rgba(90, 140, 64, 0.2); }
.wz-voice-toggle.off { color: var(--muted); border-color: rgba(255,255,255,0.15); }

/* Audio unlock banner inside the modal */
.wz-audio-unlock-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(192, 57, 43, 0.92);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  z-index: 4;
  animation: wz-banner-flash 3s ease forwards;
  pointer-events: none;
}

/* ================================================================
   PREVIEW banner — persistent ribbon inside the phone
   ================================================================ */
.wz-preview-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.32rem 0.6rem;
  background: rgba(192, 57, 43, 0.16);
  border-bottom: 1px solid rgba(192, 57, 43, 0.35);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #ff8a7a;
  text-transform: uppercase;
}
.wz-preview-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8a7a;
  box-shadow: 0 0 8px rgba(255, 138, 122, 0.7);
  animation: wz-preview-blink 1.6s ease-in-out infinite;
}
@keyframes wz-preview-blink {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Skip button inside the active mission screen */
.wz-skip-btn {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(90, 140, 64, 0.35);
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: -0.4rem;
  margin-bottom: 0.25rem;
  transition: color 150ms ease, border-color 150ms ease;
}
.wz-skip-btn:hover {
  color: var(--green-bright);
  border-color: var(--green-bright);
}

/* Inline soft-bypass link in the form-message slot */
.wz-bypass-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green-bright);
  text-decoration: underline;
  cursor: pointer;
}
.wz-bypass-link:hover { filter: brightness(1.2); }

/* ================================================================
   Phone-sized devices: drop the phone-frame mockup entirely.
   Preview fills the screen edge-to-edge like a real native app.
   iPad portrait (768px) and desktop keep the framed mockup.
   ================================================================ */
@media (max-width: 600px), (max-height: 500px) {
  .wz-modal-overlay {
    padding: 0;
  }
  .wz-phone {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .wz-phone-notch,
  .wz-phone-statusbar { display: none; }
  .wz-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    z-index: 10;
  }
  .wz-screen { padding-top: 0.7rem; }
  .wz-screen-header { padding-right: 46px; }
}
