/* Voice tour: "museum guide" walk-through in Jeromy's own voice. Self-hosted, no inline code (CSP-safe). */
.gt-btn{position:fixed;right:24px;bottom:24px;z-index:9000;display:flex;align-items:center;gap:10px;padding:12px 18px 12px 12px;
  border-radius:999px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(135deg,#13294B,#0A192F);color:#FAF7F1;
  font:600 15px Inter,sans-serif;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 0 0 rgba(255,107,129,.5);animation:gt-call 2.6s ease-out 1.5s 3}
.gt-btn:hover{transform:translateY(-2px)}
.gt-btn .gt-mono{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font:700 13px "Space Grotesk",sans-serif;
  background:linear-gradient(135deg,#ff6b81,#7A2238);color:#fff}
@keyframes gt-call{0%{box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 0 0 rgba(255,107,129,.55)}100%{box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 0 18px rgba(255,107,129,0)}}
.gt-on .gt-btn{display:none}

/* spotlight: one frame around the current "room", everything else dimmed by its giant shadow */
.gt-spot{position:absolute;z-index:8990;pointer-events:none;border-radius:22px;border:1.5px solid rgba(255,107,129,.55);
  box-shadow:0 0 0 200vmax rgba(4,8,16,.62),0 0 40px rgba(255,107,129,.25) inset;opacity:0;transition:opacity .5s ease,
  top .7s cubic-bezier(.2,.8,.2,1),left .7s cubic-bezier(.2,.8,.2,1),width .7s cubic-bezier(.2,.8,.2,1),height .7s cubic-bezier(.2,.8,.2,1)}
.gt-spot.gt-show{opacity:1}

/* the guide card */
.gt-card{position:fixed;left:24px;bottom:24px;z-index:9001;width:min(430px,calc(100vw - 32px));padding:18px 18px 14px;border-radius:20px;
  background:rgba(12,21,39,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.1);
  box-shadow:0 20px 50px rgba(0,0,0,.55);color:#FAF7F1;font:15px/1.5 Inter,sans-serif;transform:translateY(24px);opacity:0;
  transition:transform .45s cubic-bezier(.2,.9,.3,1.2),opacity .35s}
.gt-on .gt-card{transform:none;opacity:1}
.gt-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.gt-av{position:relative;width:52px;height:52px;flex:none}
.gt-av b{position:absolute;inset:0;border-radius:50%;display:grid;place-items:center;font:700 18px "Space Grotesk",sans-serif;
  background:linear-gradient(135deg,#ff6b81,#7A2238);color:#fff;z-index:1}
.gt-av i{position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(255,107,129,.7);transform:scale(var(--lv,1));opacity:var(--op,.0);transition:transform .08s,opacity .2s}
.gt-name{font:700 15px "Space Grotesk",sans-serif;letter-spacing:.02em}
.gt-room{font-size:12px;color:#9fb0c8;text-transform:uppercase;letter-spacing:.12em}
.gt-text{min-height:4.5em;margin:0 0 12px;color:#E8EDF5}
.gt-text span{opacity:.35;transition:opacity .25s}.gt-text span.gt-said{opacity:1}
.gt-foot{display:flex;align-items:center;gap:8px}
.gt-dots{display:flex;gap:6px;flex:1}.gt-dots u{width:22px;height:4px;border-radius:4px;background:rgba(255,255,255,.15);text-decoration:none}
.gt-dots u.gt-done{background:#ff6b81}.gt-dots u.gt-now{background:linear-gradient(90deg,#ff6b81 var(--pp,0%),rgba(255,255,255,.15) var(--pp,0%))}
.gt-b{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#FAF7F1;border-radius:10px;padding:6px 11px;font:600 13px Inter,sans-serif;cursor:pointer}
.gt-b:hover{background:rgba(255,255,255,.14)}
@media (max-width:640px){.gt-card{left:16px;bottom:16px}.gt-btn{right:16px;bottom:16px}}
@media (prefers-reduced-motion:reduce){.gt-spot,.gt-card{transition:none}.gt-btn{animation:none}}
.gt-invite .gt-spot{opacity:0}
.gt-ask{gap:10px}.gt-go{background:linear-gradient(135deg,#ff6b81,#7A2238);border-color:transparent}
.gt-foot[hidden]{display:none}
.gt-ask{display:flex;flex-direction:column;gap:8px}
.gt-pick{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 14px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#FAF7F1;font:600 14px Inter,sans-serif}
.gt-pick small{font:400 12px Inter,sans-serif;color:#9fb0c8}.gt-pick:hover{background:rgba(255,255,255,.12)}
.gt-pick-long{background:linear-gradient(135deg,rgba(255,107,129,.28),rgba(122,34,56,.5));border-color:rgba(255,107,129,.6);
  box-shadow:0 0 0 0 rgba(255,107,129,.5);animation:gt-call 2.4s ease-out .6s 2}
.gt-pick-long small{color:#ffd9df}
.gt-skip{align-self:flex-start;background:none;border:0;color:#9fb0c8;font:500 12px Inter,sans-serif;cursor:pointer;padding:2px 4px;text-decoration:underline}
.gt-tap{margin-top:10px;width:100%}
.gt-dots{min-width:0}.gt-dots u{flex:1;width:auto;min-width:6px}
.gt-foot .gt-b{white-space:nowrap}

/* phone: compact card, dots on their own row, the ring never reaches the name (visual proof 4 Dec 2026) */
.gt-head{gap:16px}
@media (max-width:640px){
.gt-card{padding:12px 14px 10px;border-radius:16px}
.gt-head{gap:14px;margin-bottom:6px}
.gt-av{width:40px;height:40px}.gt-av b{font-size:14px}.gt-av i{inset:-4px}
.gt-text{font-size:14px;line-height:1.45;min-height:0;max-height:6.6em;overflow-y:auto;margin-bottom:8px;scrollbar-width:none}
.gt-foot{flex-wrap:wrap;gap:6px}.gt-dots{flex-basis:100%;order:-1;margin-bottom:2px}.gt-foot .gt-b{flex:1;padding:7px 8px}
}

/* phone v2: the site is the subject, the guide is a slim bar (his note 4 Dec 2026: "makahinga yung mga design") */
@media (max-width:640px){
.gt-card{left:10px;right:10px;bottom:10px;width:auto;padding:16px 12px 10px;border-radius:14px;display:grid;grid-template-columns:1fr auto;column-gap:8px;align-items:center;
  background:rgba(12,17,32,.86);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.gt-card>*{grid-column:1/-1}
.gt-card .gt-head{grid-column:1;grid-row:1;gap:8px;margin:0;min-width:0}
.gt-card .gt-foot{grid-column:2;grid-row:1;flex-wrap:nowrap;gap:5px}
.gt-card .gt-text{grid-row:2;font-size:13.5px;line-height:1.4;max-height:2.8em;margin:8px 0 0;overflow:hidden}
.gt-invite .gt-card .gt-text{max-height:none}
.gt-name{display:none}
.gt-room{font-size:10px;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gt-av{width:28px;height:28px}.gt-av b{font-size:11px}.gt-av i{inset:-3px;border-width:1.5px}
.gt-dots{position:absolute;left:14px;right:14px;top:7px;margin:0;gap:3px;order:0}
.gt-dots u{height:2px}
.gt-foot .gt-b{flex:none;padding:4px 9px;font-size:12px;border-radius:8px}
.gt-b[data-a=end]{font-size:0;padding:4px 9px}.gt-b[data-a=end]::before{content:"\2715";font-size:12px}
.gt-tap{grid-row:3;margin-top:8px}
}
@media (max-width:640px){
.gt-card .gt-ask{grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.gt-card .gt-pick{margin:0;padding:10px 11px;text-align:left}
.gt-card .gt-pick b{font-size:14px}.gt-card .gt-pick small{font-size:11.5px;line-height:1.35}
.gt-card .gt-skip{grid-column:1/-1;justify-self:start;margin-top:2px;font-size:12px}
}
/* phone: the start button is just the round badge, so it never covers the page's own buttons */
@media (max-width:480px){.gt-btn{padding:6px !important;gap:0 !important}.gt-btn>span:not(.gt-mono){display:none}}
/* phone: the stop label can shrink, it never runs under Pause */
@media (max-width:640px){.gt-head{min-width:0;overflow:hidden}.gt-head>div:last-child{min-width:0}.gt-room{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gt-foot{flex-shrink:0}}

/* tour: the top bar always stays above the highlight frame; Back button (4 Dec) */
.gt-on header{z-index:8995 !important}
.gt-b[disabled]{opacity:.35;cursor:default}

/* a hidden tour card must not catch taps: it sat over the JC button after the tour ended (4 Dec) */
html:not(.gt-on) .gt-card{pointer-events:none}
/* the frame slides only between stops; while scrolling it is fixed to the topic (no shake) */
.gt-spot{transition:opacity .5s ease}
.gt-spot.gt-glide{transition:opacity .5s ease,top .7s cubic-bezier(.2,.8,.2,1),left .7s cubic-bezier(.2,.8,.2,1),width .7s cubic-bezier(.2,.8,.2,1),height .7s cubic-bezier(.2,.8,.2,1)}

/* player controls (4 Dec): the JC face opens a speech-bubble panel; the bar stays slim */
.gt-av{border:0;padding:0;background:none;cursor:pointer;color:inherit}
.gt-av em{position:absolute;right:-3px;bottom:-3px;z-index:2;width:16px;height:16px;border-radius:50%;background:#0C1527;border:1px solid rgba(255,255,255,.3);
  display:grid;place-items:center}
.gt-av em::before{content:"";width:5px;height:5px;border-right:1.5px solid #FAF7F1;border-bottom:1.5px solid #FAF7F1;transform:translateY(-1px) rotate(45deg);transition:transform .2s}
.gt-open .gt-av em::before{transform:translateY(1px) rotate(-135deg)}
.gt-av:focus-visible,.gt-b:focus-visible,.gt-i:focus-visible,.gt-c:focus-visible{outline:2px solid #ff6b81;outline-offset:2px}
.gt-more{position:relative;margin-top:12px;padding:10px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.gt-more[hidden]{display:none}
.gt-more::before{content:"";position:absolute;top:-7px;left:18px;width:12px;height:12px;background:inherit;border-left:inherit;border-top:inherit;transform:rotate(45deg);
  background:#1b2640}
.gt-row{display:flex;gap:6px}
.gt-i{flex:1;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:10px;cursor:pointer;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#FAF7F1;font:600 11px Inter,sans-serif}
.gt-i svg{width:18px;height:18px;fill:currentColor}.gt-i:hover{background:rgba(255,255,255,.12)}
.gt-i[disabled]{opacity:.35;cursor:default}
.gt-speed{align-items:center;margin-top:8px}.gt-speed>span{font:600 11px Inter,sans-serif;color:#9fb0c8;text-transform:uppercase;letter-spacing:.08em;margin-right:4px}
.gt-c{flex:1;min-height:32px;border-radius:999px;cursor:pointer;border:1px solid rgba(255,255,255,.14);background:transparent;color:#FAF7F1;font:600 12px Inter,sans-serif}
.gt-c[aria-pressed=true]{background:#ff6b81;border-color:#ff6b81;color:#0A192F}
@media (max-width:640px){
  .gt-card .gt-more{grid-row:3;margin-top:10px;padding:8px}
  .gt-av em{width:13px;height:13px;right:-4px;bottom:-4px}.gt-av em::before{width:4px;height:4px}
  .gt-foot .gt-b{min-height:32px}
  .gt-head .gt-av{min-width:32px;min-height:32px;display:grid;place-items:center}
}

/* compact panel (his note: "its eating the screen"): one row, speed = one button that steps 0.75-1.5x; see-through (his note: semi transparent) */
.gt-rate b{font:700 14px "Space Grotesk",sans-serif;line-height:18px}
.gt-rate{color:#ff9aab}
.gt-card{background:rgba(12,21,39,.72)}
.gt-more{background:rgba(255,255,255,.04)}
.gt-more::before{background:rgba(22,32,54,.9)}
.gt-i{background:rgba(255,255,255,.04)}
@media (max-width:640px){
  .gt-card{background:rgba(12,17,32,.68)}
  .gt-card .gt-more{padding:6px;margin-top:8px;border-radius:12px}
  .gt-row{gap:4px}
  .gt-i{min-height:40px;font-size:10px;gap:1px;border-radius:9px}
  .gt-i svg{width:16px;height:16px}
  .gt-open .gt-text{max-height:1.4em}
}
@media (max-width:640px){.gt-open .gt-text{max-height:none;height:1.4em;line-height:1.4em}}

/* clean look (his design, 4 Dec): no pointer on the controls tray */
.gt-more::before{display:none}
/* minimized = the round JC face with its sound ring + the AI's speech bubble; nothing else */
html.gt-on:not(.gt-invite) .gt-card.gt-min{display:flex !important;align-items:flex-end;gap:10px;background:none !important;border:0;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;padding:0 !important;width:min(420px,calc(100vw - 32px))}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-head{margin:0;flex:none;overflow:visible}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-head>div:last-child,
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-foot,
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-dots{display:none !important}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-av{width:52px;height:52px;box-shadow:0 8px 24px rgba(0,0,0,.45);border-radius:50%}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-av b{font-size:17px}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-av i{inset:-5px;border-width:2px}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-text{flex:1;min-width:0;margin:0 0 4px;padding:10px 14px;border-radius:18px 18px 18px 4px;cursor:pointer;
  background:rgba(12,21,39,.72);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 30px rgba(0,0,0,.4);font-size:14px;line-height:1.45em;height:auto;min-height:0;max-height:calc(2.9em + 20px);overflow:hidden}
@media (max-width:640px){
  html.gt-on:not(.gt-invite) .gt-card.gt-min{left:12px;right:12px;bottom:12px;width:auto}
  html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-av{width:46px;height:46px}
  html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-text{font-size:13.5px}
}
/* bubble: exactly 2 whole lines. Top/bottom spacing is a same-colour border, so scrolled text can't show in it */
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-text{box-sizing:content-box;padding:0 14px;border:10px solid rgba(12,21,39,.72);border-left-width:0;border-right-width:0;
  background-clip:padding-box;max-height:2.9em;outline:1px solid rgba(255,255,255,.12);outline-offset:0}

/* sound blocked after a page change: minimized view shows the prompt as the bubble, not the big card */
html.gt-on:not(.gt-invite) .gt-card.gt-min.gt-wait .gt-text{display:none}
html.gt-on:not(.gt-invite) .gt-card.gt-min .gt-tap{margin:0 0 6px;width:auto;flex:1;min-height:44px;border-radius:18px 18px 18px 4px}
/* 5 Dec: before a tour starts (choices showing) the JC face is just a face: no arrow, no controls */
.gt-invite .gt-av em{display:none}
.gt-invite .gt-more{display:none !important}
.gt-invite .gt-av{pointer-events:none;cursor:default}
/* 5 Dec: the arrow badge and the sound ring stick out of the JC face; the phone rule that cut the head row off clipped them */
@media (max-width:640px){.gt-card .gt-head{overflow:visible}.gt-head>div:last-child{overflow:hidden}}

/* 5 Dec: the card being talked about sits straight (scroll tilt paused), so the frame matches its shape */
.gt-target{transform:none !important;transition:transform .4s ease}
