/* One self-contained entrance. No styles from the retired proposals are loaded. */
.thp-intro {
  --intro-gold: #ddc689;
  --intro-cream: #f4edd9;
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  overflow: hidden;
  isolation: isolate;
  background: #071c17;
  color: var(--intro-cream);
  font-family: "DM Sans", sans-serif;
}
.thp-intro *, .thp-intro *::before, .thp-intro *::after { box-sizing: border-box; }
.thp-intro [hidden], .thp-intro[hidden] { display: none !important; }
.thp-intro button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.thp-intro button:focus-visible, .thp-intro input:focus-visible { outline: 2px solid #f2d991; outline-offset: 5px; }
.thp-intro-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.thp-intro-scene, .thp-intro-atmosphere, .thp-intro-stage { position: absolute; inset: 0; }
.thp-intro-scene { z-index: -1; overflow: hidden; }
.thp-intro-architecture {
  width: 100%; height: 100%; position: absolute; inset: 0;
  object-fit: cover; object-position: center;
  transition: transform 1.7s cubic-bezier(.4,0,.2,1), opacity 1.5s ease;
}
.thp-intro-atmosphere {
  background: radial-gradient(ellipse at 50% 38%, #bbcfa807, transparent 45%),
    linear-gradient(180deg, #051b171f, transparent 25%, transparent 75%, #03150f66);
  transition: background 1.5s ease;
}
.thp-intro-brand {
  position: absolute; z-index: 8; left: clamp(22px, 4vw, 72px); top: clamp(20px, 3.8vh, 42px);
  display: flex; align-items: center; gap: 13px;
  font: 700 clamp(15px, 1.2vw, 21px)/1.2 "Manrope", sans-serif;
  transition: opacity .5s ease;
}
.thp-intro-brand img { width: 52px; height: 52px; padding: 2px; object-fit: contain; border-radius: 50%; background: #fffdf4; box-shadow: 0 0 0 1px #dbbe7866, 0 8px 30px #0003; }
.thp-intro-brand strong { color: var(--intro-gold); }
.thp-intro-skip {
  position: absolute; z-index: 10; right: clamp(22px, 4vw, 72px); top: clamp(23px, 4vh, 45px);
  min-height: 44px; padding: 0 20px; display: flex; align-items: center; gap: 25px;
  border: 1px solid #e6e9d938; border-radius: 30px;
  background: #15352d66; color: var(--intro-cream); backdrop-filter: blur(12px);
  font-size: 12px !important; font-weight: 600 !important;
  transition: border-color .2s, background .2s, opacity .5s;
}
.thp-intro-skip span { color: var(--intro-gold); font-size: 20px; }
.thp-intro-skip:hover { border-color: var(--intro-gold); background: #284a3e99; }
.thp-intro-stage { pointer-events: none; }
.thp-intro-character-wrap {
  position: absolute; z-index: 3; left: 50%; bottom: 23%; width: min(39vw, 520px); height: 61dvh;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 24px #0005);
  transition: opacity .8s, transform 1.2s cubic-bezier(.4,0,.2,1);
}
.thp-intro-still, .thp-intro-motion { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 2 / 3; transform: translateX(-50%); }
.thp-intro-still { overflow: hidden; }
.thp-intro-atlas-poster { display: block; width: 200%; height: 200%; max-width: none; }
.thp-intro-still.is-original .thp-intro-atlas-poster { width: 100%; height: 100%; object-fit: contain; }
.thp-intro-motion { opacity: 0; pointer-events: none; }
.has-thp-motion .thp-intro-motion { opacity: 1; }
.has-thp-motion .thp-intro-still { visibility: hidden; }
.thp-intro-character-wrap::after { content: ""; position: absolute; z-index: -1; left: 57%; bottom: -.5%; width: 43%; height: 2.2%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #010e09a8, transparent 72%); filter: blur(3px); }
.thp-intro-host-label {
  position: absolute; left: 50%; bottom: 19.5%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; color: #f5eed9;
  font: 700 11px/1 "Manrope", sans-serif; letter-spacing: .13em;
  transition: opacity .5s;
}
.thp-intro-host-label > span:last-child { color: var(--intro-gold); font-size: 9px; padding: 4px; border: 1px solid #c3b17166; border-radius: 4px; letter-spacing: .03em; }
.thp-intro-voice-wave { display: flex; align-items: center; justify-content: center; gap: 3px; width: 24px; height: 18px; margin-right: 4px; }
.thp-intro-voice-wave i { width: 2px; height: 4px; border-radius: 2px; background: #d8cf9b; }
.thp-intro-voice-wave i:nth-child(2), .thp-intro-voice-wave i:nth-child(4) { height: 9px; }
.thp-intro-voice-wave i:nth-child(3) { height: 14px; }
.thp-intro.is-speaking .thp-intro-voice-wave i { animation: intro-voice-wave .65s ease-in-out infinite alternate; }
.thp-intro.is-speaking .thp-intro-voice-wave i:nth-child(even) { animation-delay: -.4s; }
.thp-intro-start, .thp-intro-form {
  position: absolute; z-index: 10; left: 50%; bottom: max(26px, 4.6dvh); width: min(350px, calc(100vw - 40px));
  transform: translateX(-50%); display: grid; justify-items: center; gap: 11px; pointer-events: auto;
  margin: 0; transition: opacity .3s;
}
.thp-intro-start-voice {
  width: 100%; min-height: 62px; padding: 8px 9px 8px 23px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid #f4e6b9b3; border-radius: 999px;
  background: linear-gradient(115deg, #eadb9e, #cfb46b 55%, #c3a354); color: #102c23;
  box-shadow: 0 0 0 5px #ebd19109, 0 8px 44px #d4bd6030, inset 0 1px #ffffed80;
  font-size: 14px !important; font-weight: 800 !important;
  transition: transform .2s, box-shadow .2s;
}
.thp-intro-start-voice:hover { transform: translateY(-3px); box-shadow: 0 0 0 6px #ebd19110, 0 12px 48px #d4bd604a; }
.thp-intro-enter { width: 42px; height: 42px; margin-left: auto; display: grid; place-items: center; border: 1px solid #27463430; border-radius: 50%; font-size: 24px; font-weight: 400; }
.thp-intro-start-silent, .thp-intro-secondary {
  min-height: 36px; padding: 6px 12px; border: 0; background: transparent; color: #d0d9cd;
  font-size: 12px !important; font-weight: 500 !important;
}
.thp-intro-start-silent:hover, .thp-intro-secondary:hover { color: #fff3c9; text-decoration: underline; text-underline-offset: 5px; }
.thp-intro-form { width: min(390px, calc(100vw - 40px)); bottom: max(16px, 2.8dvh); gap: 7px; }
.thp-intro-form label { justify-self: start; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.thp-intro-form label span { margin-left: 5px; color: #bec9ba; font-weight: 400; font-size: 11px; }
.thp-intro-name-row { width: 100%; padding: 5px; display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid #d6d6b05e; border-radius: 16px; background: #18372dce; backdrop-filter: blur(16px); }
.thp-intro-name-row:focus-within { border-color: #e4cd88; box-shadow: 0 0 0 3px #d2c68516; }
.thp-intro-form input { width: 100%; height: 44px; padding: 0 13px; border: 0; border-radius: 10px; outline: none; color: #fff; background: transparent; font: 400 16px "DM Sans", sans-serif; }
.thp-intro-form input::placeholder { color: #bdc5b9; font-size: 13px; }
.thp-intro-form input:focus-visible { outline: none; }
.thp-intro-primary { min-height: 44px; padding: 0 16px; border: 1px solid #f5e3a3; border-radius: 11px; background: #dac17b; color: #102b22; font-size: 12px !important; font-weight: 800 !important; }
.thp-intro-primary:hover { background: #efdaa0; }
.thp-intro-ai-note { font-size: 9px; font-weight: 400; color: #aab8a7; }
.thp-intro.is-ready .thp-intro-host-label { opacity: 0; }
.thp-intro.is-opening .thp-intro-character-wrap { opacity: 0; transform: translateX(-50%) scale(1.08); }
.thp-intro.is-opening .thp-intro-architecture { transform: scale(1.4); opacity: .15; }
.thp-intro.is-opening .thp-intro-brand, .thp-intro.is-opening .thp-intro-skip, .thp-intro.is-opening .thp-intro-host-label, .thp-intro.is-opening .thp-intro-form { opacity: 0; pointer-events: none; }
@keyframes intro-voice-wave { to { transform: scaleY(.35); } }
@media (max-width: 900px) {
  .thp-intro-character-wrap { width: 49vw; height: 57dvh; bottom: 23%; }
  .thp-intro-host-label { bottom: 22%; }
}
@media (max-width: 600px) {
  .thp-intro-brand { left: 20px; top: max(20px, env(safe-area-inset-top)); gap: 8px; font-size: 12px; }
  .thp-intro-brand img { width: 40px; height: 40px; }
  .thp-intro-brand > span { max-width: 85px; line-height: 1.5; }
  .thp-intro-brand strong { display: block; }
  .thp-intro-skip { right: 20px; top: max(22px, env(safe-area-inset-top)); min-height: 38px; padding: 0 13px; gap: 12px; font-size: 11px !important; }
  .thp-intro-character-wrap { width: 70vw; height: 49dvh; bottom: 23%; }
  .thp-intro-host-label { bottom: 20.5%; }
  .thp-intro-start { bottom: max(32px, 6dvh); width: min(310px, calc(100vw - 44px)); }
  .thp-intro-start-voice { min-height: 59px; }
  .thp-intro-form { bottom: max(22px, 4dvh); }
}
@media (max-height: 720px) and (min-width: 601px) {
  .thp-intro-host-label { display: none; }
}
@media (max-height: 600px) and (min-width: 601px) {
  .thp-intro-brand { top: 18px; }
  .thp-intro-brand img { width: 42px; height: 42px; }
  .thp-intro-skip { top: 20px; }
  .thp-intro-start { bottom: 15px; gap: 3px; width: 300px; }
  .thp-intro-start-voice { min-height: 50px; }
  .thp-intro-enter { width: 34px; height: 34px; }
  .thp-intro-host-label { display: none; }
  .thp-intro-form { bottom: 12px; gap: 3px; }
  .thp-intro.is-ready .thp-intro-character-wrap { bottom: 32%; height: 52dvh; }
}
@media (max-height: 620px) and (max-width: 600px) {
  .thp-intro-character-wrap { height: 43dvh; bottom: 33%; }
  .thp-intro-start { bottom: 16px; gap: 4px; }
  .thp-intro-host-label { bottom: 27%; }
  .thp-intro-form { bottom: 12px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .thp-intro *, .thp-intro *::before, .thp-intro *::after { animation: none !important; transition: none !important; }
}
/* Route announcements and replay live outside the welcome dialog. */
.thp-guide-bubble { position: fixed; z-index: 2147482999; right: 158px; bottom: clamp(190px,24vh,280px); width: min(360px,calc(100vw - 190px)); padding: 16px 18px; border: 1px solid #18423726; border-radius: 20px 20px 4px 20px; background: #fffffcf5; color: #173c33; font: 700 14px/1.45 "DM Sans",sans-serif; box-shadow: 0 18px 46px #0b261f38; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .24s,transform .24s; }
.thp-guide-bubble.is-visible { opacity: 1; transform: none; }
.thp-intro-replay { display: block; margin: 8px auto 0; padding: 6px 8px; border: 0; background: transparent; color: #315c50; cursor: pointer; font: 800 14px "DM Sans",sans-serif; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .thp-guide-bubble { right: 108px; bottom: 210px; width: min(260px,calc(100vw - 126px)); } }

/* Entrada legible y con un único llamado principal. */
.thp-intro-start { width:min(390px,calc(100vw - 40px)); gap:8px; }
.thp-intro-start-voice { min-height:66px; font-size:18px !important; }
.thp-intro-start-help { margin:0; color:#f4edd9; text-align:center; font-size:13px; line-height:1.4; }
.thp-intro-start-silent { min-height:44px; font-size:15px !important; text-decoration:underline; text-underline-offset:4px; }
.thp-intro.is-peeking .thp-intro-host-label { display:none; }
@media(max-width:380px) { .thp-intro-start-voice { font-size:16px !important; padding-left:15px; gap:8px; } }
