/* ============================================================
   Trippee — overlay styles: rewarded-ad gate (ported from the
   reference), the in-app guided tour, and the accept/win toast.
   ============================================================ */

/* ---------- Rewarded ad overlay (monetization) ---------- */
.adlayer { position: absolute; inset: 0; z-index: 80; display: none;
  background: rgba(6,20,15,.72); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 22px; animation: fade .25s ease both; }
.adlayer.show { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.adcard { width: 100%; background: #0d0f12; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.5); position: relative; animation: pop .3s ease both; }
.adtop { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; color: #cfd6d0; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.adtop .sp { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.adtop .sp b { background: #f5c518; color: #111; padding: 2px 6px; border-radius: 5px; font-size: 9.5px; letter-spacing: .08em; }
.adclose { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: not-allowed;
  background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: .2s; }
.adclose.ready { cursor: pointer; background: rgba(255,255,255,.9); color: #111; }

/* mock ad creative */
.adcreative { aspect-ratio: 1/1; position: relative;
  background: radial-gradient(120% 120% at 20% 10%, #ff8a5c, #ff5470 45%, #8a4bff 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 26px; overflow: hidden; }
.adcreative .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; }
.adcreative .b1 { width: 140px; height: 140px; background: #ffe27a; top: -30px; right: -30px; }
.adcreative .b2 { width: 120px; height: 120px; background: #5ce0d8; bottom: -24px; left: -24px; }
.adcreative .kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; font-weight: 700; }
.adcreative .head { font-size: 30px; font-weight: 900; line-height: 1.05; margin: 8px 0; letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.adcreative .cta-fake { margin-top: 14px; background: #fff; color: #111; font-weight: 800;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; }
.adcreative .float-price { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.28);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.adbar { height: 4px; background: rgba(255,255,255,.15); }
.adbar i { display: block; height: 100%; width: 0; background: #f5c518; transition: width .3s linear; }
.adfoot { padding: 14px; background: #0d0f12; }
.adfoot .line { color: #aeb6b0; font-size: 12.5px; text-align: center; margin-bottom: 10px; }
.adfoot .count { color: #fff; font-weight: 800; }
.btn.locked { background: #2a2e2c; color: #7f8a84; cursor: not-allowed; box-shadow: none; }

/* ---------- Watch-driver-demo launcher (lives in the status bar so it
   never overlaps a screen's bottom CTA) ---------- */
.demo-chip { display: inline-flex; align-items: center; gap: 6px;
  background: var(--pine-700); color: #eafff4; border: 0; border-radius: 999px;
  padding: 5px 11px; font-family: var(--font); font-size: 11.5px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 12px rgba(11,50,38,.25); transition: .15s; }
.demo-chip:hover { background: var(--pine-900); }
.demo-chip svg { width: 11px; height: 11px; }
.statusbar .demo-flag { font-size: 11px; font-weight: 700; color: var(--pine-500);
  background: var(--mint-100); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }

/* ---------- Guided tour ---------- */
.tourlayer { position: absolute; inset: 0; z-index: 90; display: none; }
.tourlayer.show { display: block; }
.tour-dim { position: absolute; inset: 0; background: rgba(6,20,15,.55); transition: clip-path .3s ease; }
.tour-spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 3px var(--mint-300), 0 0 0 9999px rgba(6,20,15,.62);
  transition: all .35s cubic-bezier(.4,0,.2,1); pointer-events: none; opacity: 0; }
.tour-spot.on { opacity: 1; }
.tour-panel { position: absolute; left: 16px; right: 16px; bottom: 18px; background: #0d1f18;
  color: #eafff4; border-radius: 20px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1); }
.tour-panel .tp-progress { height: 4px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.tour-panel .tp-progress i { display: block; height: 100%; background: var(--mint-300); transition: width .3s ease; }
.tour-panel .tp-caption { font-size: 15px; line-height: 1.45; font-weight: 600; min-height: 44px; }
.tour-panel .tp-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.tour-panel .tp-step { font-size: 12px; color: #9fc7b4; font-weight: 600; }
.tour-panel .tp-controls { display: inline-flex; gap: 8px; }
.tp-btn { background: rgba(255,255,255,.12); color: #eafff4; border: 0; border-radius: 12px;
  padding: 9px 14px; font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.tp-btn:hover { background: rgba(255,255,255,.2); }
.tp-btn.primary { background: var(--mint-300); color: var(--pine-900); }
.tp-btn.primary:hover { background: #7ad3a7; }

/* ---------- Toast (rider accepted your bid / general) ---------- */
.toast-wrap { position: absolute; top: 56px; left: 16px; right: 16px; z-index: 85;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #0d1f18; color: #eafff4; border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4); border: 1px solid rgba(143,224,184,.35);
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600;
  animation: toastin .35s ease both; }
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-300); flex: 0 0 9px;
  box-shadow: 0 0 0 4px rgba(143,224,184,.25); }
.toast strong { color: #fff; }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastout .3s ease both; }
@keyframes toastout { to { opacity: 0; transform: translateY(-10px); } }
