/* ===========================================================================
   WE Hub prototype — seat HUD + guided tour styles. Companion to tour.js.
   =========================================================================== */

/* --- Seat HUD: the persistent "whose eyes are these" bar ------------------ */
.seat-hud {
  position: sticky;
  top: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #0d2a4d;
  color: #dbe4f0;
  padding: .42rem .9rem;
  font-size: .8rem;
  line-height: 1.25;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.seat-hud .hud-tag {
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0d2a4d;
  background: #ffd79a;
  border-radius: 4px;
  padding: .1rem .35rem;
}
.seat-hud .hud-av {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #1b5aa8;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hud-av.big {
  width: 44px; height: 44px; font-size: 1rem;
  background: var(--brand);
}
.seat-hud .hud-who { flex: 1 1 auto; min-width: 0; }
.seat-hud .hud-who b { color: #fff; font-weight: 650; }
.seat-hud .hud-who small {
  display: block;
  font-size: .68rem;
  color: #9fb3cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-hud .hud-switch {
  flex: 0 0 auto;
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .28rem .65rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.seat-hud .hud-switch:hover { background: rgba(255,255,255,.24); }
.hud-flash { animation: hudflash .9s ease-out; }
@keyframes hudflash {
  from { background: #1b5aa8; }
  to   { background: #0d2a4d; }
}

/* Seat-conditional content */
.seat-hidden { display: none !important; }

/* --- Spotlight ring (dim happens via the giant box-shadow hole) ----------- */
.tour-ring {
  position: fixed;
  z-index: 60;
  border: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(13, 20, 32, .45);
  pointer-events: none;
  transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
}

/* --- Step card (bottom sheet) --------------------------------------------- */
.tour-card {
  position: fixed;
  z-index: 62;
  left: 50%;
  transform: translateX(-50%);
  bottom: .75rem;
  width: calc(100% - 1.2rem);
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(10, 16, 28, .35);
  padding: .85rem .95rem .95rem;
}
.tour-card h3 { font-size: 1.02rem; margin: .15rem 0 .35rem; }
.tour-card p  { font-size: .87rem; color: var(--ink-2); margin: 0 0 .7rem; }
.tour-card.tour-try { border-color: var(--accent); }
.tour-try-tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7c4a03;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 4px;
  padding: .12rem .4rem;
  margin-top: .3rem;
}
.tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.tour-count { font-size: .7rem; color: var(--ink-3); letter-spacing: .02em; }
.tour-x {
  font: inherit;
  font-size: .85rem;
  color: var(--ink-3);
  background: none;
  border: 0;
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: 6px;
}
.tour-x:hover { background: var(--line-2); color: var(--ink); }
.tour-nav {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.tour-nav .btn { min-height: 42px; font-size: .88rem; }
.tour-nav .btn:last-child { flex: 1 1 auto; }

/* --- Chapter interstitial -------------------------------------------------- */
.tour-chapter {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 14, 24, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.chapter-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(0,0,0,.4);
  padding: 1.1rem 1.15rem 1.2rem;
  margin: auto;
}
.chapter-card h2 { font-size: 1.25rem; margin: .5rem 0 .5rem; }
.chapter-card p  { font-size: .9rem; color: var(--ink-2); margin: 0 0 .9rem; }
.chapter-seat {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .6rem;
  padding: .6rem .7rem;
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  border-radius: var(--radius-sm);
}
.chapter-seat b { display: block; font-size: .95rem; }
.chapter-seat small { display: block; font-size: .76rem; color: var(--ink-3); }

/* --- Resume pill ----------------------------------------------------------- */
.tour-pill {
  position: fixed;
  z-index: 62;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  padding: .6rem 1.1rem;
  box-shadow: 0 6px 24px rgba(10,16,28,.35);
  cursor: pointer;
  white-space: nowrap;
}
.tour-pill:hover { background: #0c2e56; }

/* --- Permission gate interstitial ------------------------------------------ */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(9, 14, 24, .6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(0,0,0,.4);
  padding: 1.2rem 1.15rem 1.25rem;
  text-align: center;
  margin: auto;
}
.gate-lock { font-size: 1.9rem; margin-bottom: .3rem; }
.gate-card h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.gate-card p { font-size: .88rem; color: var(--ink-2); }
.gate-card .gate-note {
  font-size: .8rem;
  color: var(--ink-3);
  background: var(--line-2);
  border-radius: var(--radius-sm);
  padding: .55rem .65rem;
}
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .9rem;
}

@media (max-width: 520px) {
  .seat-hud .hud-who small { display: none; }
  .tour-card { bottom: 0; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
}
