/* Season Pass surfaces: the offer modal, the pass screen chrome, and the W4
   24-hour redemption window (countdown chip, shop banner, deadline line).

   Extracted out of game.html the same way shop.css / leaderboard.css /
   expeditions.css were: game.html sits at its flat file-size ratchet
   (scripts/check-file-size.mjs) with no headroom, and CSS files are not
   scanned by that gate, so moving four rules out here pays for the <link> and
   <script> tags W4 adds at net negative lines. The link tag is placed AFTER
   game.html's inline <style> block for the same reason shop.css is: the four
   moved rules keep their exact cascade position relative to .btn (game.html
   line 235), which they previously followed in source order.

   Moved verbatim from game.html: .bp-header (was :350), .pass-offer-badge and
   .pass-offer-benefits (were :391-392), .bp-buy-btn (was :444).

   Colour rule: every value here traces to docs/brand/ploposaurus.brand.json
   via the vars game.html's :root already publishes -
   background #0A0A1A (--bg-dark), surface #1A1040 (--bg-mid),
   primary #F093FB (--accent-pink), secondary #F5576C (--accent-red),
   reward #FBBF24 (--accent-gold). Nothing new is invented; #10B981 (success)
   is deliberately unused, it is reserved for post-purchase confirmation.
   The global @media (prefers-reduced-motion:reduce) block in game.html
   already flattens every animation and transition declared here. */

/* ---- moved verbatim from game.html ---- */
.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}
.pass-offer-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  color: #24122f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pass-offer-benefits {
  text-align: left;
  margin: 0.75rem auto 1rem;
  max-width: 290px;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}
.bp-buy-btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* ---- the offer modal, made to pop, invite and encourage (W4) ----
   The generic .modal is a flat indigo card. The pass offer is the single most
   valuable thing the game asks for, so it gets the brand surface (#1A1040 on
   #0A0A1A) with a pink rim and a soft gold inner glow behind the trophy,
   instead of a second-hand shop card. Scoped to this one modal id: nothing
   here can leak into the other twenty overlays. */
#season-pass-offer-modal .modal {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 147, 251, 0.18), transparent 62%),
    linear-gradient(160deg, var(--bg-mid, #1a1040), var(--bg-dark, #0a0a1a));
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(240, 147, 251, 0.42),
    0 0 46px rgba(240, 147, 251, 0.22);
}
#season-pass-offer-modal .dinosaur-pass-portrait {
  /* The trophy. A slow gold halo reads as "reward waiting", not as a nag. */
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.5));
  animation: pass-offer-trophy 3.2s ease-in-out infinite;
}
@keyframes pass-offer-trophy {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.06);
  }
}
#season-pass-offer-modal .pass-offer-badge {
  /* Gold badge, with the sheen sweeping across it rather than pulsing the
     whole chip: the discount is the hook, so it is the only moving colour. */
  background: linear-gradient(100deg, var(--accent-gold, #fbbf24), #fde68a 45%, var(--accent-gold, #fbbf24));
  background-size: 220% 100%;
  animation: pass-offer-sheen 3.6s linear infinite;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.34);
}
@keyframes pass-offer-sheen {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}
#season-pass-offer-modal h2 {
  background: linear-gradient(120deg, #fff, var(--accent-pink, #f093fb));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#season-pass-offer-modal .pass-offer-benefits li::marker {
  color: var(--accent-gold, #fbbf24);
}

/* ---- the countdown chip (public/season-pass-window.js) ----
   Fixed, pinned directly above .quick-drawer-tab (game.html), which is itself
   fixed at top:50% with a clamped height and translateY(-50%). The chip sits
   one chip-height above that box's top edge and shares the tab's right
   inset, so the two read as one edge cluster on every screen size. z-index 31
   is one above the tab (30) and well below the drawer overlay (46), so an
   open drawer covers it instead of the chip floating over the drawer. */
.pass-window-chip {
  position: fixed;
  right: var(--sar, 0px);
  top: calc(50% - var(--quick-tab-height, clamp(130px, 26vh, 190px)) / 2 - 46px);
  z-index: 31;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 5px 9px;
  min-height: 40px;
  border: 1px solid rgba(240, 147, 251, 0.55);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(150deg, var(--bg-mid, #1a1040), var(--bg-dark, #0a0a1a));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow:
    -2px 2px 12px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(240, 147, 251, 0.28);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.pass-window-chip:active {
  transform: scale(0.95);
}
.pass-window-chip:focus-visible {
  outline: 3px solid var(--accent-gold, #fbbf24);
  outline-offset: 3px;
}
.pass-window-chip-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-gold, #fbbf24);
  white-space: nowrap;
}
.pass-window-chip-time {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
}
/* Under one hour the chip switches to the urgency colour and starts a slow
   breath. Colour AND motion, never colour alone (the countdown text itself
   carries the same fact for anyone who reads neither). */
.pass-window-chip.urgent {
  border-color: rgba(245, 87, 108, 0.72);
  box-shadow:
    -2px 2px 12px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(245, 87, 108, 0.4);
  animation: pass-window-urgent 1.8s ease-in-out infinite;
}
.pass-window-chip.urgent .pass-window-chip-time {
  color: var(--accent-red, #f5576c);
}
@keyframes pass-window-urgent {
  0%,
  100% {
    box-shadow:
      -2px 2px 12px rgba(0, 0, 0, 0.45),
      0 0 14px rgba(245, 87, 108, 0.3);
  }
  50% {
    box-shadow:
      -2px 2px 12px rgba(0, 0, 0, 0.45),
      0 0 26px rgba(245, 87, 108, 0.62);
  }
}

/* ---- the Season Pass screen's deadline line (bindCurrentPassButton) ---- */
.bp-offer-window-note {
  width: 100%;
  max-width: 400px;
  margin-top: 0.6rem;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold, #fbbf24);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
}
.bp-offer-window-note.urgent {
  border-color: rgba(245, 87, 108, 0.45);
  background: rgba(245, 87, 108, 0.12);
  color: var(--accent-red, #f5576c);
}

/* ---- the shop banner (monetization.js renderShop) ----
   A ROUTE, not a buy card: it carries no price and no data-shop-buy, so the
   promotional SKU is never chargeable from the browse grid. Styled as a rim,
   not as a filled gold card, so it does not outrank the real shop cards. */
.pass-window-banner {
  border: 1px solid rgba(240, 147, 251, 0.5) !important;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(240, 147, 251, 0.14), transparent 60%),
    linear-gradient(150deg, var(--bg-mid, #1a1040), var(--bg-dark, #0a0a1a));
}
.pass-window-banner .shop-title {
  color: var(--accent-gold, #fbbf24);
}
