/* WILDPOST Neo-Pop-Styles. Alle Farben/Radien/Schatten via tokens.css. */

/* ——— Reset & Grundgerüst ——— */
* { box-sizing: border-box; scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--backdrop);
  font-family: var(--font-ui);
  color: var(--ink);
}
.mono { font-family: var(--font-mono); }

button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; margin: 0; text-align: inherit; }
textarea:focus, input:focus { outline: 3px solid var(--accent); outline-offset: -1px; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Phone-Frame: zentrierte 390px-Spalte mit Ink-Kanten links/rechts */
.wp-stage { min-height: 100vh; display: flex; justify-content: center; background: var(--backdrop); }
.wp-frame {
  width: 390px; max-width: 100%; min-height: 100vh;
  background: var(--bg);
  border-left: var(--border); border-right: var(--border);
  display: flex; flex-direction: column; position: relative;
}
.wp-main { flex: 1; padding-bottom: 16px; }

/* ——— Header ——— */
.wp-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 12px; }
.wp-logo { font-size: 27px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.wp-logo span { color: var(--pink); }
.wp-wallet {
  display: flex; align-items: center; gap: 6px;
  background: var(--coin); border: var(--border); border-radius: 12px;
  padding: 6px 10px; box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: 13px;
}

/* ——— Neo-Pop-Primitive ——— */
/* Press-Feel (Kern-Mikrointeraktion): bei :active um den Schattenversatz
   rücken und den Schatten auf 0 setzen. --px/--py = Schattenversatz. */
.press { --px: 5px; --py: 5px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.press:active { transform: translate(var(--px), var(--py)) !important; box-shadow: 0 0 0 var(--ink) !important; }
.press-3 { --px: 3px; --py: 3px; }
.press-4 { --px: 4px; --py: 4px; }
.press-6 { --px: 6px; --py: 6px; }

.card { background: var(--panel); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.sec-label { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; padding: 12px 16px 8px; }
.sec-label--tight { padding: 0 4px; }
.wp-title { padding: 2px 16px 4px; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }

/* Fortschrittsbalken */
.bar { height: 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg); overflow: hidden; }
.bar--detail { height: 14px; margin: 10px 4px 0; }
.bar--thin { height: 11px; border-radius: 7px; margin: 11px 2px 0; }
.bar-fill { height: 100%; background: var(--accent-grad); border-right: 2px solid var(--ink); }
.bar-fill--coin { background: var(--coin); }
.bar-fill--danger { background: var(--danger); }

/* Horizontale Chip-/Kartenreihen */
.wp-hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 10px; }
.wp-hscroll--couriers { gap: 12px; }

/* ——— Keyframes (aus dem Mockup) ——— */
@keyframes wp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
@keyframes wp-march { to { stroke-dashoffset: var(--march-to, -64); } }
@keyframes wp-slam {
  0% { transform: scale(2.4) rotate(-16deg); opacity: 0; }
  60% { transform: scale(.92) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(2deg); opacity: 1; }
}
@keyframes wp-pop {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rr)); opacity: 0; }
}
@keyframes wp-fall {
  0% { transform: translate(0, -14px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(-30px, 110px) rotate(-170deg); opacity: 0; }
}
@keyframes wp-toast {
  0% { transform: translateY(26px) rotate(-1.5deg); opacity: 0; }
  100% { transform: translateY(0) rotate(-1.5deg); opacity: 1; }
}
@keyframes wp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ——— Karte ——— */
.wp-map {
  position: relative; overflow: hidden;
  background: var(--map-bg); border: var(--border); border-radius: var(--radius);
}
.wp-map-main { height: 320px; margin: 0 12px; box-shadow: var(--shadow); }
.wp-map-detail { height: 190px; border-width: 2px; border-radius: 12px; }
.wp-map-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.wp-land { fill: var(--land); stroke: var(--ink); stroke-width: 1.5px; }
.wp-graticule { fill: none; stroke: var(--ink); stroke-width: 1px; opacity: .08; }
.wp-route {
  fill: none; stroke: var(--route); stroke-width: 3px; stroke-linecap: round;
  animation: wp-march 1.5s linear infinite;
}
.wp-city { fill: var(--panel); stroke: var(--ink); stroke-width: 2px; }
.wp-city-halo { fill: var(--pink); animation: wp-pulse 1.1s infinite; transform-box: fill-box; transform-origin: center; }
.wp-city-label {
  font-family: var(--font-mono); font-weight: 700; fill: var(--ink);
  letter-spacing: .12em; opacity: .65;
}
.wp-map-tag {
  position: absolute; left: 10px; bottom: 8px; z-index: 4;
  font-size: 8px; font-weight: 700; letter-spacing: 1.5px; opacity: .5;
}

/* Tier-Marker (HTML-Overlay, damit Emoji/Text scharf bleiben) */
.wp-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; background: var(--panel);
  border: var(--border); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; z-index: 3;
}
.wp-marker--big { width: 38px; height: 38px; font-size: 19px; }
.wp-marker-chip {
  position: absolute; transform: translate(-50%, 0);
  background: var(--panel); border: 2px solid var(--ink); border-radius: 8px;
  padding: 1px 6px; font-size: 9px; font-weight: 700; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink); z-index: 3;
}
.wp-feather { position: absolute; left: 44%; top: 30%; font-size: 22px; animation: wp-fall 3.2s ease-in .4s both; z-index: 4; }

/* AnimalRenderer (Emoji-Implementierung) */
.wp-animal { position: relative; display: inline-block; line-height: 1; }
.wp-animal[data-state="idle"] { animation: wp-bob 2.2s ease-in-out infinite; }
.wp-animal-inner { display: inline-block; }
.wp-animal[data-state="lost"] .wp-animal-inner { filter: grayscale(1); opacity: .55; }
/* sleeping: Nachtflug döst tagsüber — Bobben pausiert (nur idle bobbt),
   leicht entsättigt, kleines 💤-Badge oben rechts */
.wp-animal[data-state="sleeping"] { animation: none; }
.wp-animal[data-state="sleeping"] .wp-animal-inner { filter: grayscale(.3); }
.wp-animal[data-state="sleeping"]::after {
  content: '💤'; position: absolute; top: -.45em; right: -.5em;
  font-family: var(--font-mono); font-size: .55em; opacity: .75; z-index: 2;
}

/* ——— MapLibre-Engine (Live-Karte) ——— */
/* Marker-DOM wird von MapLibre positioniert (transform gehört MapLibre):
   Kreis + Chip stapeln sich im Wrap, statisch statt absolut. */
.wp-marker-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wp-marker--gl { position: static; transform: none; }
.wp-marker-chip--gl { position: static; transform: none; width: max-content; }

.wp-city-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink); }
.wp-city-dot.is-active::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: var(--pink); opacity: .5; z-index: -1;
  animation: wp-pulse 1.1s infinite;
}
.wp-city-dot-label {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 8px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink);
  opacity: .8; white-space: nowrap;
  text-shadow: 1px 0 var(--bg), -1px 0 var(--bg), 0 1px var(--bg), 0 -1px var(--bg);
}

/* Zoom-Control auf Neo Pop (Kompass ist deaktiviert) */
.wp-map .maplibregl-ctrl-group {
  background: var(--panel); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink); overflow: hidden;
}
.wp-map .maplibregl-ctrl-group:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.wp-map .maplibregl-ctrl-group button { width: 30px; height: 30px; background: var(--panel); border-bottom: 2px solid var(--ink); border-radius: 0; }
.wp-map .maplibregl-ctrl-group button:last-child { border-bottom: none; }
.wp-map .maplibregl-ctrl button .maplibregl-ctrl-icon { background-image: none !important; }
.wp-map .maplibregl-ctrl button .maplibregl-ctrl-icon::after {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-family: var(--font-mono);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.wp-map .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::after { content: '+'; }
.wp-map .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::after { content: '−'; }

/* Attribution: klein, mono, aber immer sichtbar (OSM-Lizenzpflicht) */
.wp-map .maplibregl-ctrl-attrib {
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  font-family: var(--font-mono); font-size: 8px; color: var(--ink);
  padding: 1px 6px; border-radius: 8px 0 0 0;
}
.wp-map .maplibregl-ctrl-attrib a { color: var(--ink); }
.wp-map .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 0; margin: 0; }
.wp-map .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner { display: block; }
/* !important: das Vendor-CSS stellt den Button per 3-Klassen-Selektor scharf */
.wp-map .maplibregl-ctrl-attrib-button, .wp-map .maplibregl-ctrl-attrib summary { display: none !important; }

.wp-map .maplibregl-canvas { outline: none; }
.wp-map .maplibregl-cooperative-gesture-screen { font-family: var(--font-ui); }

/* ——— Map-View ——— */
.wp-airbadge-row { padding: 0 16px 10px; }
.wp-airbadge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: var(--border); border-radius: 999px;
  padding: 5px 12px; box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: 11px; letter-spacing: 1.6px;
}
.wp-airdot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: wp-pulse 1.1s infinite; }

.wp-list { margin: 20px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.wp-list .sec-label { padding: 0 0 0 4px; }
.wp-list .sec-label + .sec-label, .wp-recent-label { margin-top: 8px; }

.wp-flight-card { width: 100%; padding: 12px; }
.wp-flight-row { display: flex; align-items: center; gap: 10px; }
.wp-flight-emoji { font-size: 32px; width: 44px; text-align: center; line-height: 1; }
.wp-flight-emoji--sm { font-size: 28px; width: 40px; }
.wp-flight-main { flex: 1; min-width: 0; }
.wp-flight-title { font-weight: 700; font-size: 14px; }
.wp-flight-sub { font-size: 10.5px; opacity: .75; margin-top: 2px; }
.wp-flight-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.wp-chip-eta { font-size: 11px; font-weight: 700; background: var(--bg); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 7px; }
.wp-chip-pts { font-size: 10px; font-weight: 700; background: var(--coin); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 7px; }
.wp-flight-card .bar { margin-top: 10px; }

.wp-chip-status {
  font-size: 10px; font-weight: 700; border: 2px solid var(--ink); border-radius: 8px;
  padding: 3px 8px; transform: rotate(-1.5deg); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
}
.wp-chip-status.is-delivered { background: var(--success); color: var(--ink); }
.wp-chip-status.is-lost { background: var(--danger); color: var(--panel); }

.wp-empty { padding: 26px 16px; text-align: center; }
.wp-empty-emoji { font-size: 34px; }
.wp-empty-title { font-weight: 700; font-size: 15px; margin-top: 8px; }
.wp-empty-sub { font-size: 11px; opacity: .7; margin-top: 4px; }

/* ——— Send-View ——— */
.wp-recip {
  flex: none; min-width: 112px; padding: 12px 12px 13px;
  border: var(--border); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink);
  background: var(--panel); color: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start;
}
.wp-recip.is-selected { background: var(--accent); color: var(--panel); }
.wp-recip-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--panel);
  border: var(--border); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.wp-recip-name { font-weight: 700; font-size: 13px; margin-top: 7px; }
.wp-recip-sub { font-size: 9.5px; opacity: .8; margin-top: 2px; }

.wp-courier {
  flex: none; min-width: 132px; padding: 14px 10px 15px; text-align: center;
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--panel); color: var(--ink);
}
.wp-courier.is-selected { background: var(--ink); color: var(--panel); box-shadow: 5px 5px 0 var(--pink); }
.wp-courier-emoji { font-size: 52px; line-height: 1.1; display: block; }
.wp-courier-name { font-weight: 700; font-size: 14px; margin-top: 8px; letter-spacing: .5px; display: block; }
.wp-courier-kmh { font-size: 10.5px; font-weight: 700; margin-top: 4px; opacity: .85; display: block; }
.wp-courier-risk { margin-top: 8px; font-size: 10px; font-weight: 700; color: var(--danger); display: block; }
.wp-sticker-guaranteed {
  display: inline-block; margin-top: 7px; background: var(--success);
  border: 2px solid var(--ink); border-radius: 8px; padding: 2px 7px;
  font-size: 9px; font-weight: 700; color: var(--ink);
  transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ink);
}

.wp-foods { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 16px; }
.wp-food {
  display: flex; align-items: center; gap: 6px;
  border: var(--border); border-radius: 12px; padding: 8px 10px;
  box-shadow: 3px 3px 0 var(--ink); background: var(--panel);
}
.wp-food.is-selected { background: var(--coin); }
.wp-food-emoji { font-size: 16px; }
.wp-food-name { font-weight: 700; font-size: 11.5px; }
.wp-food-fx { font-size: 9.5px; font-weight: 700; opacity: .75; white-space: nowrap; }

.wp-msg-wrap { padding: 0 16px; }
.wp-msg {
  width: 100%; resize: none; display: block;
  background: var(--panel); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 14px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink);
}

/* FLIGHT QUOTE: dunkle Karte, pinker Offset-Schatten, Mono. NUR Anzeige. */
.wp-quote {
  margin: 18px 16px 0; background: var(--ink); color: var(--panel);
  border: var(--border); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--pink);
  padding: 13px 16px; font-size: 11.5px;
}
.wp-quote-head {
  display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 2px;
  opacity: .6; padding-bottom: 8px;
  border-bottom: 1px dashed color-mix(in srgb, var(--panel) 30%, transparent);
}
.wp-quote-row { display: flex; justify-content: space-between; padding: 6px 0 0; }
.wp-quote-head + .wp-quote-row { padding-top: 8px; }
.wp-quote-row span { opacity: .65; }
.wp-quote-row--total {
  margin-top: 9px; padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--panel) 30%, transparent);
}
.wp-quote-reward { color: var(--coin); }
/* Nachtflug-Zeile (🌙 NIGHT COURIER): sekundär in --dim, Label wie üblich */
.wp-quote-row--night b { color: var(--dim); font-weight: 600; }
.wp-quote-risk-safe { color: var(--success); }
.wp-quote-risk-risky { color: var(--danger); }

.wp-cta-wrap { padding: 18px 16px 4px; }
.wp-cta {
  width: 100%; background: var(--accent-grad); color: var(--panel);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 17px; text-align: center; font-weight: 700; font-size: 16px; letter-spacing: 1.6px;
}
.wp-footnote { text-align: center; margin-top: 12px; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; opacity: .55; }

/* ——— Aviary ——— */
.wp-title-row { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 16px 14px; }
.wp-title-row .wp-title { padding: 0; white-space: nowrap; }
.wp-collected { font-size: 10px; font-weight: 700; letter-spacing: 1px; opacity: .65; white-space: nowrap; }
.wp-aviary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
.wp-aviary-card { padding: 14px 12px; text-align: center; }
.wp-aviary-card--locked {
  width: 100%; background: var(--panel);
  border: 2.5px dashed var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 25%, transparent);
}
.wp-aviary-emoji { font-size: 56px; line-height: 1.1; }
.wp-aviary-emoji--silhouette { filter: grayscale(1) brightness(0); opacity: .8; }
.wp-aviary-name { font-weight: 700; font-size: 15px; margin-top: 8px; letter-spacing: .5px; }
.wp-aviary-card--locked .wp-aviary-name { opacity: .75; }
.wp-aviary-kmh { font-size: 10px; font-weight: 700; margin-top: 3px; opacity: .75; }
.wp-aviary-card--locked .wp-aviary-kmh { opacity: .6; }
.wp-aviary-risk { font-size: 9.5px; font-weight: 700; margin-top: 3px; }
.wp-aviary-risk.is-risk { color: var(--danger); }
.wp-aviary-risk.is-safe { color: var(--success); }
.wp-aviary-endurance { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 9px; }
.wp-endurance-label { font-size: 8.5px; font-weight: 700; letter-spacing: 1.5px; opacity: .6; }
.wp-pips { font-size: 11px; color: var(--accent); }
.wp-upgrade-btn {
  display: block; width: 100%; margin-top: 10px; background: var(--coin);
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 8px; font-size: 9.5px; font-weight: 700; text-align: center;
}
.wp-lock-line { margin-top: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; }

/* ——— Flock ——— */
.wp-flock-col { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; }
.wp-me-card { position: relative; padding: 12px; }
.wp-me-badge {
  position: absolute; top: -11px; left: 14px; background: var(--accent); color: var(--panel);
  border: 2px solid var(--ink); border-radius: 8px; padding: 3px 9px;
  font-size: 9px; font-weight: 700; letter-spacing: 1.8px;
  transform: rotate(-1.5deg); box-shadow: 2px 2px 0 var(--ink);
}
.wp-me-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.wp-avatar {
  width: 42px; height: 42px; border-radius: 50%; border: var(--border); flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.wp-avatar--me { background: var(--accent-grad); color: var(--panel); }
.wp-avatar--0 { background: var(--accent); color: var(--panel); }
.wp-avatar--1 { background: var(--pink); color: var(--panel); }
.wp-avatar--2 { background: var(--success); color: var(--ink); }
.wp-avatar--3 { background: var(--coin); color: var(--ink); }
.wp-avatar--4 { background: var(--map-bg); color: var(--ink); }
.wp-friend-main { flex: 1; min-width: 0; }
.wp-friend-name { font-weight: 700; font-size: 14.5px; }
.wp-friend-sub { font-size: 10.5px; opacity: .75; margin-top: 2px; }
.wp-edit-btn {
  background: var(--panel); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink); padding: 7px 12px;
  font-weight: 700; font-size: 11px; letter-spacing: 1px;
}
.wp-edit-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wp-edit-label { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 1px; opacity: .55; }
.wp-edit-form input {
  width: 100%; background: var(--bg); border: 2px solid var(--ink); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.wp-edit-form input.mono { font-size: 12px; }
.wp-edit-split { display: flex; gap: 8px; }
.wp-edit-split > div { flex: 1; }
.wp-edit-split .wp-edit-label { display: block; margin-bottom: 5px; }
.wp-save-btn {
  margin-top: 4px; background: var(--success); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink); padding: 10px; text-align: center;
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px; width: 100%;
}
/* Roost-Umzug: der Hinweis, dass laufende Flüge ihren Sendezeit-Snapshot
   behalten (Migration 006) — sonst erwarten Nutzer eine Umleitung. */
.wp-roost-note {
  font-size: 9px; line-height: 1.5; letter-spacing: .5px; opacity: .65;
  border-left: 2.5px solid var(--accent); padding: 2px 0 2px 8px; margin: 2px 0;
}
.wp-edit-split .wp-save-btn, .wp-edit-split .wp-edit-btn { flex: 1; }
.wp-save-btn[disabled] { opacity: .55; }

.wp-live-roost-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 11px; border-top: 2px dashed var(--ink);
}
.wp-live-roost-title { font-weight: 700; font-size: 11.5px; letter-spacing: 1.2px; }
.wp-live-roost-sub { font-size: 9.5px; opacity: .6; margin-top: 2px; }
.wp-live-toggle {
  background: var(--panel); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); padding: 7px 14px;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; min-width: 52px; text-align: center;
}
.wp-live-toggle.is-on { background: var(--success); }
.wp-friend-card { padding: 12px; display: flex; align-items: center; gap: 12px; }
.wp-send-btn {
  background: var(--accent-grad); color: var(--panel); border: 2px solid var(--ink);
  border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); padding: 7px 12px;
  font-weight: 700; font-size: 11px; letter-spacing: 1px;
}
.wp-accept-btn, .wp-decline-btn {
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 11px; font-weight: 700; font-size: 12px;
}
.wp-accept-btn { background: var(--success); }
.wp-decline-btn { background: var(--panel); }
.wp-add-card { position: relative; padding: 10px; margin-top: 8px; }
.wp-add-inner { border: 2px dashed var(--ink); border-radius: 10px; padding: 14px 14px 16px; }
.wp-add-stamp {
  position: absolute; top: 16px; right: 18px; width: 38px; height: 44px;
  background: var(--coin); border: var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  transform: rotate(3deg); box-shadow: 2px 2px 0 var(--ink);
}
.wp-add-label { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; opacity: .65; }
.wp-add-to { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 1px; margin-top: 12px; opacity: .55; }
.wp-add-input {
  width: 100%; margin-top: 5px; background: var(--bg); border: 2px solid var(--ink);
  border-radius: 10px; padding: 10px 12px; font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.wp-request-btn {
  display: block; width: 100%; margin-top: 12px; background: var(--accent); color: var(--panel);
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  padding: 10px; text-align: center; font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
}

/* ——— Flight-Detail ——— */
.wp-detail-head { display: flex; align-items: center; gap: 10px; padding: 2px 16px 12px; }
.wp-back {
  width: 36px; height: 36px; background: var(--panel); border: var(--border); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.wp-detail-no { font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.wp-detail-card { position: relative; margin: 6px 12px 0; padding: 10px 10px 14px; }
.wp-sticker-status {
  position: absolute; top: -13px; right: 14px; z-index: 5;
  border: var(--border); border-radius: 12px; padding: 7px 13px;
  font-weight: 700; font-size: 12.5px; letter-spacing: 1.2px;
  box-shadow: 4px 4px 0 var(--ink);
  animation: wp-slam .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.wp-sticker-status.is-flying { background: var(--accent); color: var(--panel); }
.wp-sticker-status.is-delivered { background: var(--success); color: var(--ink); }
.wp-sticker-status.is-lost { background: var(--danger); color: var(--panel); }
.wp-confetti { position: absolute; top: 8px; right: 56px; z-index: 6; pointer-events: none; }
.wp-confetti i {
  position: absolute; display: block; border: 1.5px solid var(--ink);
  animation: wp-pop .9s ease-out .28s both;
}
.wp-confetti .c-accent { background: var(--accent); }
.wp-confetti .c-pink { background: var(--pink); }
.wp-confetti .c-coin { background: var(--coin); }
.wp-confetti .c-round { border-radius: 50%; }
.wp-detail-animal { display: flex; align-items: center; gap: 12px; margin: 14px 4px 0; }
.wp-detail-emoji { font-size: 44px; line-height: 1; }
.wp-detail-main { flex: 1; min-width: 0; }
.wp-detail-title { font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.wp-detail-sub { font-size: 11px; opacity: .75; margin-top: 2px; }
.wp-detail-pct { font-size: 15px; font-weight: 700; }
.wp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 4px 0; }
.wp-detail-cell { border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; background: var(--bg); }
.wp-detail-cell-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; opacity: .6; }
.wp-detail-cell-val { font-size: 11px; font-weight: 700; margin-top: 3px; }

.wp-message-card { position: relative; margin: 16px 12px 0; padding: 16px; overflow: hidden; }
.wp-message-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; opacity: .6; margin-bottom: 8px; }
.wp-message-body { font-size: 15.5px; line-height: 1.55; font-weight: 600; }
.wp-message-body.is-sealed { filter: blur(6px); user-select: none; opacity: .8; }
.wp-seal-wrap { position: absolute; inset: 34px 0 0; display: flex; align-items: center; justify-content: center; }
.wp-seal {
  border: var(--border); border-radius: 12px; padding: 8px 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg);
  background: var(--panel); color: var(--ink);
}
.wp-seal.is-lost { background: var(--danger); color: var(--panel); }
.wp-collect-wrap { display: flex; justify-content: center; margin-top: 18px; }
.wp-collect-sticker {
  background: var(--coin); border: var(--border); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink); padding: 10px 18px;
  font-weight: 700; font-size: 15px; transform: rotate(-1.5deg);
  animation: wp-slam .5s cubic-bezier(.2, 1.4, .4, 1) .5s both;
}
.wp-lost-line {
  text-align: center; margin-top: 16px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; color: var(--danger);
}

/* ——— Auth-View ——— */
.wp-frame.is-auth .wp-tabs, .wp-frame.is-auth .wp-header { display: none; }
.wp-auth { padding: 46px 16px 24px; display: flex; flex-direction: column; }
.wp-auth-logo { font-size: 40px; font-weight: 700; letter-spacing: -1.8px; text-align: center; }
.wp-auth-logo span { color: var(--pink); }
.wp-auth-claim { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 3px; opacity: .6; margin-top: 6px; }
.wp-auth-toggle { display: flex; gap: 10px; margin: 22px 4px 14px; }
.wp-auth-tab {
  flex: 1; text-align: center; padding: 10px; border: var(--border); border-radius: 14px;
  background: var(--panel); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
}
.wp-auth-tab.is-active { background: var(--ink); color: var(--panel); box-shadow: 3px 3px 0 var(--pink); }
.wp-auth-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.wp-auth-input {
  width: 100%; background: var(--bg); border: 2px solid var(--ink); border-radius: 10px;
  padding: 11px 12px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.wp-auth-map { height: 220px; border-width: 2px; border-radius: 12px; }
.wp-auth-roost { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; opacity: .7; }
.wp-auth-cta { margin-top: 10px; padding: 14px; font-size: 14px; }
.wp-auth .wp-footnote { margin-top: 16px; }
.wp-roost-pin {
  position: absolute; transform: translate(-50%, -90%);
  font-size: 26px; z-index: 5; pointer-events: none;
  filter: drop-shadow(2px 2px 0 var(--ink));
}

/* ——— Incoming / Resend / Logout ——— */
.wp-chip-incoming {
  font-size: 10px; font-weight: 700; background: var(--accent); color: var(--panel);
  border: 2px solid var(--ink); border-radius: 8px; padding: 2px 7px; white-space: nowrap;
}
.wp-chip-requested {
  font-size: 10px; font-weight: 700; background: var(--bg); color: var(--dim);
  border: 2px solid var(--ink); border-radius: 8px; padding: 3px 8px; white-space: nowrap;
}
.wp-resend-wrap { padding: 16px 16px 4px; }
.wp-resend-cta {
  width: 100%; background: var(--accent-grad); color: var(--panel);
  border: var(--border); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink);
  padding: 13px; text-align: center; font-weight: 700; font-size: 13.5px; letter-spacing: 1.4px;
}
.wp-resend-cta:disabled { opacity: .6; }
.wp-logout-btn { white-space: nowrap; }

/* ——— Supply Shop (Aviary, Phase 4) ——— */
.wp-shop-label { padding: 22px 16px 8px; }
.wp-shop-col { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 8px; }
.wp-shop-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; box-shadow: 4px 4px 0 var(--ink); }
.wp-shop-emoji { font-size: 26px; width: 34px; text-align: center; }
.wp-shop-main { flex: 1; min-width: 0; }
.wp-shop-name { font-weight: 700; font-size: 13px; letter-spacing: .3px; }
.wp-shop-fx { font-size: 9.5px; font-weight: 700; opacity: .7; margin-top: 2px; }
.wp-shop-qty {
  font-size: 10px; font-weight: 700; background: var(--bg);
  border: 2px solid var(--ink); border-radius: 8px; padding: 2px 6px;
}
.wp-shop-buy {
  background: var(--coin); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink); padding: 7px 10px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.wp-shop-buy:disabled { opacity: .6; }
.wp-shop-owned {
  font-size: 10px; font-weight: 700; background: var(--success);
  border: 2px solid var(--ink); border-radius: 8px; padding: 3px 8px;
  transform: rotate(-1.5deg); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
}

/* Vorrats-Badge auf den Futter-Chips (Compose) */
.wp-food { position: relative; }
.wp-food-qty {
  position: absolute; top: -9px; right: -7px;
  background: var(--accent); color: var(--panel);
  border: 2px solid var(--ink); border-radius: 8px; padding: 1px 5px;
  font-size: 9px; font-weight: 700;
}

/* Federglanz ✨: eigene Kartenspur glitzert (rein Optik) — Pink-Basis mit
   um eine halbe Periode versetzten Coin-Dashes (SVG-Engine) */
.wp-route--sparkle { stroke: var(--pink); }
.wp-route--glint { stroke: var(--coin); }

/* ——— Wallet-Overlay (Phase 4) ——— */
.wp-wallet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wp-wallet-panel {
  position: relative; width: min(340px, 92vw); max-height: 76vh;
  display: flex; flex-direction: column; padding: 18px 16px 14px;
  animation: wp-toast .25s cubic-bezier(.2, 1.4, .4, 1) both;
}
.wp-wallet-label { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; opacity: .6; }
.wp-wallet-balance {
  font-size: 30px; font-weight: 700; margin-top: 6px;
  background: var(--coin); border: var(--border); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink); padding: 10px 14px; align-self: flex-start;
  transform: rotate(-1deg);
}
.wp-wallet-sub { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; margin: 18px 0 8px; }
.wp-wallet-rows { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wp-wallet-row {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--bg);
  padding: 8px 10px;
}
.wp-wallet-row-emoji { font-size: 18px; width: 24px; text-align: center; }
.wp-wallet-row-main { flex: 1; min-width: 0; }
.wp-wallet-row-label { font-weight: 700; font-size: 12px; letter-spacing: .4px; }
.wp-wallet-row-time { font-size: 9px; font-weight: 700; opacity: .6; margin-top: 2px; }
.wp-wallet-row-delta { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.wp-wallet-row-delta.is-negative { color: var(--danger); }
.wp-wallet-empty { font-size: 10.5px; font-weight: 700; opacity: .6; padding: 12px 0; }

/* ——— Toast ——— */
.wp-toast-wrap {
  position: fixed; left: 0; right: 0; bottom: 96px;
  display: flex; justify-content: center; z-index: 60; pointer-events: none;
}
.wp-toast {
  background: var(--coin); border: var(--border); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink); padding: 11px 18px;
  font-weight: 700; font-size: 12.5px; color: var(--ink);
  animation: wp-toast .3s cubic-bezier(.2, 1.4, .4, 1) both;
}
.wp-toast:disabled { color: var(--ink); opacity: 1; } /* Button-Reset */
.wp-toast--danger { background: var(--danger); color: var(--panel); }
.wp-toast--danger:disabled { color: var(--panel); }
/* Nur klickbare Toasts fangen Pointer-Events (Press-Feel inklusive) */
.wp-toast--clickable { pointer-events: auto; cursor: pointer; }
.wp-toast--clickable:active { transform: translate(4px, 4px) rotate(-1.5deg); box-shadow: 0 0 0 var(--ink); }

/* ——— Landing-Alerts-Karte / iOS-Onboarding (Phase 3) ——— */
.wp-bell-card { position: relative; padding: 14px 44px 14px 14px; }
.wp-bell-title { font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.wp-bell-sub { font-size: 12px; margin-top: 4px; color: var(--dim); font-weight: 600; }
.wp-bell-enable {
  margin-top: 10px; background: var(--accent); color: var(--panel);
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 14px; font-weight: 700; font-size: 11px; letter-spacing: 1.5px;
}
.wp-bell-enable:disabled { opacity: .6; }
.wp-bell-dismiss {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* Flight-Log: LOAD MORE */
.wp-loadmore {
  background: var(--panel); border: var(--border); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); padding: 10px;
  font-weight: 700; font-size: 11px; letter-spacing: 2px; text-align: center;
}
.wp-loadmore:disabled { opacity: .6; }

/* ——— Tab-Bar ——— */
.wp-tabs {
  position: sticky; bottom: 0; z-index: 40; display: flex; gap: 10px;
  padding: 10px 12px 14px; background: var(--bg); border-top: var(--border);
}
.wp-tab {
  flex: 1; text-align: center; padding: 8px 4px 7px;
  border: var(--border); border-radius: 14px;
  background: var(--panel); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.wp-tab.is-active { background: var(--ink); color: var(--panel); box-shadow: 3px 3px 0 var(--pink); }
.wp-tab-ico { display: block; font-size: 17px; }
.wp-tab-lbl { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; margin-top: 3px; }

/* ——— Reduced Motion: alle Animationen/Transitions aus ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
