/* ======================================================================
   WS8 "Sage Glass" — the Hunt Mode design language (from the user's two
   reference screenshots: gabby card fan + sage/gold glassmorphism app).
   Scoped to .sage views so the prospect-facing screens ALWAYS wear this calm,
   premium look regardless of the selected app theme; WS8d extends it app-wide.
   ====================================================================== */

.sage {
  --sg-bg1: #B7CEC7;
  --sg-bg2: #DCE7DD;
  --sg-gold-wash: rgba(217, 169, 78, 0.22);
  --sg-glass: rgba(255, 255, 255, 0.5);
  --sg-glass-strong: rgba(255, 255, 255, 0.66);
  --sg-glass-border: rgba(255, 255, 255, 0.65);
  --sg-cream: #F7F4EC;
  --sg-ink: #2E4A42;
  --sg-ink-soft: #6B837C;
  --sg-gold: #D9A94E;
  --sg-gold-deep: #C08F2F;
  --sg-teal: #5E8B7E;
  --sg-shadow: 0 10px 30px rgba(46, 74, 66, 0.14);
  --sg-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sage .screen {
  min-height: calc(100dvh - 88px);
  background:
    radial-gradient(120% 60% at 85% 0%, var(--sg-gold-wash), transparent 55%),
    linear-gradient(160deg, var(--sg-bg1), var(--sg-bg2));
  color: var(--sg-ink);
  font-family: var(--sg-font);
  border-radius: 0 0 28px 28px;
}
.sage h2, .sage h3 { color: var(--sg-ink); font-family: var(--sg-font); }

/* Glass + cream surfaces */
.sg-glass {
  background: var(--sg-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 26px;
  box-shadow: var(--sg-shadow);
}
.sg-cream { background: var(--sg-cream); border-radius: 22px; box-shadow: var(--sg-shadow); }

/* Pills + buttons */
.sg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; border-radius: 100px; font-family: var(--sg-font);
  font-weight: 600; font-size: 15px; transition: transform .12s ease, box-shadow .2s ease;
}
.sg-btn:active { transform: scale(0.97); }
.sg-btn-gold {
  background: linear-gradient(160deg, var(--sg-gold), var(--sg-gold-deep));
  color: #fff; box-shadow: 0 8px 22px rgba(192, 143, 47, 0.42);
}
.sg-btn-glass {
  background: var(--sg-glass-strong); color: var(--sg-ink);
  border: 1px solid var(--sg-glass-border); backdrop-filter: blur(12px);
}
.sg-btn-ink { background: var(--sg-ink); color: #fff; }
.sg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 100px; background: var(--sg-glass); border: 1px solid var(--sg-glass-border);
  color: var(--sg-ink-soft); font-size: 13px; font-weight: 600; font-family: var(--sg-font);
  backdrop-filter: blur(10px); white-space: nowrap;
}
.sg-chip.active { background: linear-gradient(160deg, var(--sg-gold), var(--sg-gold-deep)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(192,143,47,.35); }
.sg-sub { color: var(--sg-ink-soft); font-size: 14px; }

/* ---------------------------------------------------------------- deck fan */
.sg-stage { position: relative; height: 380px; margin: 8px 0 4px; }
.sg-fan { position: absolute; inset: 0; }
.sg-card {
  position: absolute; left: 50%; top: 54%; width: 168px; height: 236px; margin: -118px 0 0 -84px;
  border-radius: 18px; cursor: pointer; transform-origin: 50% 118%;
  transition: transform .55s cubic-bezier(0.34, 1.35, 0.5, 1), opacity .4s ease;
  will-change: transform;
}
.sg-card .sg-card-inner {
  position: absolute; inset: 0; border-radius: 18px;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(0.4, 0.9, 0.3, 1);
}
.sg-card.flipped .sg-card-inner { transform: rotateY(180deg); }
.sg-face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 14px 34px rgba(46, 74, 66, 0.22);
}
.sg-face-back { background: linear-gradient(165deg, #9FBDB3, #7FA79B); border: 1px solid rgba(255,255,255,.5); }
.sg-face-back svg { width: 100%; height: 100%; display: block; }
.sg-face-front {
  background: var(--sg-cream); transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px; text-align: center;
}
/* Question reveal card (the big prospect-facing one) */
.sg-card.drawn {
  z-index: 30;
  transform: translate(0, -74px) rotate(0deg) scale(1.5) !important;
  cursor: default;
}
.sg-card.dimmed { opacity: 0; pointer-events: none; }
.sg-qtext { font-family: var(--sg-font); font-weight: 600; color: var(--sg-ink); font-size: 13px; line-height: 1.45; }
.sg-qmark { font-size: 20px; margin-bottom: 8px; }
.sg-draw-hint { text-align: center; color: var(--sg-ink-soft); font-size: 14px; font-weight: 500; }

/* Shuffle animation: gather then refan */
@keyframes sgGather { 0% {} 50% { transform: translate(0,0) rotate(0deg); } 100% {} }
.sg-shuffling .sg-card { animation: sgGather .5s ease; }

/* ---------------------------------------------------------------- pitch */
.sg-pitch-num { font-size: 64px; font-weight: 700; font-family: var(--sg-font); color: var(--sg-ink); line-height: 1; letter-spacing: -2px; }
.sg-pitch-big { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; }

/* ---------------------------------------------------------------- hunt cards */
.sg-hunt-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.sg-hunt-row .av {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, var(--sg-teal), #4a7268); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--sg-font);
}
.sg-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 10px; border-radius: 100px; }
.sg-status.agreed { background: rgba(94,139,126,.16); color: var(--sg-teal); }
.sg-status.booked { background: rgba(217,169,78,.2); color: var(--sg-gold-deep); }
.sg-status.no { background: rgba(46,74,66,.12); color: var(--sg-ink); }
.sg-status.client { background: rgba(94,139,126,.2); color: #2f5d51; }
.sg-mini { padding: 9px 14px; font-size: 13px; border-radius: 100px; font-weight: 600; font-family: var(--sg-font); }

/* --------------------------------------------------------- center nav FAB */
.botnav .nav-hunt { position: relative; overflow: visible; }
.botnav .nav-hunt .nav-hunt-circle {
  width: 54px; height: 54px; border-radius: 50%; margin-top: -30px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #D9A94E, #C08F2F);
  box-shadow: 0 8px 20px rgba(192, 143, 47, 0.5), 0 0 0 5px var(--botnav-bg);
  color: #fff;
}
.botnav .nav-hunt svg { width: 24px; height: 24px; }
.botnav .nav-hunt span:last-child { margin-top: 3px; }
.botnav .nav-hunt.active .nav-hunt-circle { box-shadow: 0 8px 24px rgba(192,143,47,.7), 0 0 0 5px var(--botnav-bg); }

/* Sound toggle + outbox pill */
.sg-corner { position: absolute; top: 14px; right: 16px; display: flex; gap: 8px; z-index: 5; }
.sg-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--sg-glass);
  border: 1px solid var(--sg-glass-border); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; color: var(--sg-ink); font-size: 16px;
}
.sg-sync { font-size: 11px; color: var(--sg-ink-soft); text-align: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .sg-card, .sg-card .sg-card-inner { transition: none !important; animation: none !important; }
}
