/* LAWS:
   - design only, for the first five minutes' hand-over (onboard.view.js): the card over the start painting, the seal, the
     explorer grid's frame, Wren's bubble and the glow round what he points at. No copy, no logic.
   - colours from the kit's tokens (the theme's --card/--ink, and tokens.raw.css's --wfGlow*); lengths from tokens.raw.css's
     --ob* or in rem/em. No hex, no px literal (tools/ui-gate.mjs check ①).
   - the owner's look, from the flight lab (2026-11-23): text never white on the picture (the card is paper); the bubble has
     an ink border and a tail pointing at Wren; what he points at pulses a strong orange; LAPTOP AND TABLET FIRST, the phone
     catered for.
   - every selector is inside `.ob` except `.wf-glow`, which marks whatever Wren points at, anywhere, and `.ob-map`, the
     warm-up intro card's folded map (that card is the quest screen's own).
   History: outputs/first-five-minutes/06-BUILD-PLAN.md F3, 2026-11-23 (v735). */

/* the card stands at the TOP, never centred: the explorer grid's pictures arrive after Wren has landed on its edge, and a
   centred card would grow upwards from under his feet. What is behind (the start screen) is blurred away. */
.ob{ position:fixed; inset:0; z-index:8000; display:grid; place-items:start center;
  /* room ABOVE the card for Wren to stand on its top edge (characters stand on the card): his height, set by the view */
  padding:calc(var(--obTopRoom, 6rem) + 0.5rem) 1rem 1rem;
  overflow:auto; background:var(--shade); backdrop-filter:blur(var(--obBlur)); -webkit-backdrop-filter:blur(var(--obBlur)); }
.ob .ob-card{ position:relative; width:min(100%, var(--obCardW)); box-sizing:border-box; padding:1.6rem 1.5rem;
  border-radius:1.75rem; border:var(--obHair) solid var(--line); color:var(--ink);
  background:linear-gradient(180deg, var(--cardHi), var(--card) 55%, var(--cardLo)); box-shadow:0 0.5rem 2rem var(--shade);
  display:grid; gap:0.9rem; justify-items:center; text-align:center; }
.ob .ob-title{ margin:0; font-size:1.7rem; line-height:1.15; color:var(--ink); }
.ob .ob-title:focus, .ob .ob-title:focus-visible{ outline:none !important; box-shadow:none !important; }   /* focused for
   the screen reader's sake, never drawn as a box */
.ob .ob-line, .ob .ob-lead{ margin:0; font-size:1.15rem; font-weight:700; color:var(--ink); max-width:32em; }
.ob .ob-go{ min-height:3.25rem; font-size:1.2rem; padding:0 1.6rem; }
.ob .ob-again{ min-height:2.75rem; }
.ob .ob-sealwrap{ display:grid; justify-items:center; gap:0.4rem; }
.ob .ob-seal{ width:var(--obSeal); height:var(--obSeal); padding:0; border:0; border-radius:50%; background:none; cursor:pointer;
  animation:obSealBreathe 2.4s ease-in-out infinite; }
.ob .ob-seal img{ width:100%; height:100%; object-fit:contain; }
.ob .ob-seal.broken{ animation:obSealBreak .42s ease-in forwards; }
.ob .ob-hint{ margin:0; font-weight:800; font-size:1.2rem; color:var(--ink); }
.ob .ob-faces{ width:100%; }
.ob .ob-next{ min-height:3.25rem; min-width:9rem; font-size:1.25rem; }
.ob .ob-skip{ position:fixed; left:1rem; bottom:1rem; min-height:2.75rem; z-index:8001; }
@keyframes obSealBreathe{ 50%{ transform:scale(1.05); } }
@keyframes obSealBreak{ to{ transform:scale(1.35) rotate(-8deg); opacity:0; } }

/* THE HOME TOUR's layer: the page shows through untouched (no shade, no blur); it is there only to take a tap as "next" */
.ob.ob-tour{ background:none; backdrop-filter:none; -webkit-backdrop-filter:none; padding:0; cursor:pointer; }
/* …and a guide that takes nothing from her (the warm-up's pointer at the speaker): every tap reaches the page */
.ob.ob-tour.ob-pass{ pointer-events:none; cursor:auto; }

/* THE WARM-UP'S FOLDED MAP (first five minutes F4): on the intro card (#teach), closed until Wren arrives, then open.
   Outside `.ob` on purpose: the intro card is the quest screen's own. */
.ob-map{ display:block; width:min(70%, var(--obMapW)); height:auto; margin:0.4rem auto 0.8rem; }

/* Wren's bubble: an ink border and a tail that points at him (--tx: where he is, from the bubble's left edge) */
.ob .ob-bubble{ position:fixed; z-index:9001; max-width:min(80vw, 24rem); padding:0.75rem 1rem; border-radius:1.1rem;
  /* 90% opaque (the owner 2026-11-23: "mostly opaque … a tiny bit of translucency"), in the theme's own paper */
  background:color-mix(in srgb, var(--well) 90%, transparent); color:var(--ink); border:var(--obBorder) solid var(--ink);
  box-shadow:0 0.5rem 1.4rem var(--shade);
  font-weight:800; font-size:1.15rem; line-height:1.3; text-align:left; pointer-events:none; opacity:0; transition:opacity .2s; }
.ob .ob-bubble.on{ opacity:1; }
.ob .ob-bubble::before, .ob .ob-bubble::after{ content:''; position:absolute; left:var(--tx, 50%); width:0; height:0;
  border-style:solid; border-color:transparent; transform:translateX(-50%); }
.ob .ob-bubble::before{ top:100%; border-width:var(--obTail) var(--obTailW) 0; border-top-color:var(--ink); }
.ob .ob-bubble::after{ top:100%; border-width:var(--obTailIn) var(--obTailInW) 0; border-top-color:var(--well); }
.ob .ob-bubble.below::before{ top:auto; bottom:100%; border-width:0 var(--obTailW) var(--obTail); border-color:transparent transparent var(--ink); }
.ob .ob-bubble.below::after{ top:auto; bottom:100%; border-width:0 var(--obTailInW) var(--obTailIn); border-color:transparent transparent var(--well); }
.ob .ob-bubble.side::before, .ob .ob-bubble.side::after{ left:100%; top:var(--ty, 50%); transform:translateY(-50%); }
.ob .ob-bubble.side::before{ border-width:var(--obTailW) 0 var(--obTailW) var(--obTail); border-color:transparent transparent transparent var(--ink); }
.ob .ob-bubble.side::after{ border-width:var(--obTailInW) 0 var(--obTailInW) var(--obTailIn); border-color:transparent transparent transparent var(--well); }
.ob .ob-bubble.side.tail-left::before, .ob .ob-bubble.side.tail-left::after{ left:auto; right:100%; }
.ob .ob-bubble.side.tail-left::before{ border-width:var(--obTailW) var(--obTail) var(--obTailW) 0; border-color:transparent var(--ink) transparent transparent; }
.ob .ob-bubble.side.tail-left::after{ border-width:var(--obTailInW) var(--obTailIn) var(--obTailInW) 0; border-color:transparent var(--well) transparent transparent; }

/* THE CHOSEN EXPLORER (owner 2026-11-23: "a large image and then a confirmation button. Like a box on the left", then "one
   large panel that includes the large image and the 16 small ones. Not two panels"): the roster's big portrait, her name and
   "This one!" are the LEFT COLUMN of the same card. Wide: two columns from the start, the left one waiting behind a dashed
   frame, so nothing moves under Wren. Narrow: inside the card, in the grid's place, once she has tapped a face. */
.ob .ob-wrap{ display:flex; align-items:flex-start; justify-content:center; width:100%; }
.ob .ob-card.ob-two{ width:min(100%, var(--obCardWide)); grid-template-columns:var(--obSideW) 1fr; column-gap:1.6rem;
  align-items:center; }
.ob .ob-pickcol{ display:grid; gap:0.9rem; justify-items:center; min-width:0; }
.ob .ob-chosen{ gap:0.9rem; }
.ob .ob-chosen .rbig{ width:var(--obBig); height:var(--obBig); }
.ob .ob-chosen.side{ align-self:stretch; justify-content:center; padding-right:1.6rem;
  border-right:var(--obHair) solid var(--line); }
/* her nickname, under her explorer: the box it is typed in (the head's own name label steps aside for it) */
.ob .ob-chosen .rname{ display:none; }
.ob .ob-nicklbl{ font-weight:800; font-size:1rem; color:var(--ink); margin-bottom:-0.5rem; }
.ob .ob-nick{ width:100%; max-width:14rem; box-sizing:border-box; min-height:2.9rem; padding:0 0.8rem; text-align:center;
  font:inherit; font-weight:800; font-size:1.3rem; color:var(--ink); background:var(--well); border:var(--obHair) solid var(--line);
  border-radius:0.8rem; }
/* waiting: a dashed frame where her explorer will stand, and nothing in it yet */
.ob .ob-chosen.side.waiting .rbig{ border:var(--obDash) dashed var(--line); border-radius:50%; box-sizing:border-box; }
.ob .ob-chosen.side.waiting .rbig img, .ob .ob-chosen.side.waiting .rname, .ob .ob-chosen.side.waiting .ob-next{ visibility:hidden; }
.ob .ob-chosen.inset{ display:none; }
.ob .ob-card.confirming .ob-chosen.inset{ display:flex; }
.ob .ob-card.confirming .ob-faces{ display:none; }
.ob .ob-chosen.inset .rbig{ width:var(--obBigPhone); height:var(--obBigPhone); }

/* laptop and tablet first: more room, bigger words */
@media (min-width:44em){
  .ob .ob-card{ padding:2.2rem 2.4rem; }
  .ob .ob-title{ font-size:2.1rem; }
  .ob .ob-line, .ob .ob-lead{ font-size:1.3rem; }
  .ob .ob-bubble{ font-size:1.3rem; max-width:26rem; }
}

/* WHAT WREN POINTS AT GLOWS: a strong orange ring that breathes out from it while he points, and goes when he moves on */
.wf-glow{ position:relative; z-index:2; outline:var(--obGlowRing) solid var(--wfGlow); outline-offset:var(--obGlowOff);
  animation:wfGlowPulse 1.1s ease-in-out infinite; }
@keyframes wfGlowPulse{
  0%, 100%{ box-shadow:0 0 0 0 var(--wfGlowA), 0 0 var(--obGlowBlurA) 0 var(--wfGlowB); }
  50%{ box-shadow:0 0 0 var(--obGlowSpread) var(--wfGlow0), 0 0 var(--obGlowBlurB) 0 var(--wfGlowC); }
}
@media (prefers-reduced-motion: reduce){
  .wf-glow{ animation:none; box-shadow:0 0 var(--obGlowBlurA) 0 var(--wfGlowC); }
  .ob .ob-seal{ animation:none; }
  .ob .ob-seal.broken{ animation:none; opacity:0; }
}
