/* EBAI INTERFACE 3.0 — Phase 1.1: scoped refinement using Full Version design tokens. */
body.ebai-interface-active { overflow: auto !important; height: auto !important; background: #F5F9FC !important; }
body.ebai-interface-active > .app,
body.ebai-interface-active .website-header,
body.ebai-interface-active .website-footer { display: none !important; }
#ebai-interface3 { --ebai-accent: #00BAFF; --ebai-text: #17212B; --ebai-muted: #607080; color: var(--ebai-text); font-family: Nunito, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; min-height: 100dvh; background: #F5F9FC; }
#ebai-interface3 * { box-sizing: border-box; }
#ebai-interface3 .ebai-gateway-shell { max-width: 1080px; margin: 0 auto; padding: 32px 32px 24px; }
#ebai-interface3 .ebai-gateway-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
#ebai-interface3 .ebai-gateway-identity { display: flex; align-items: center; gap: 12px; }
#ebai-interface3 .ebai-gateway-identity strong { font-size: 20px; font-weight: 850; letter-spacing: 0; }
#ebai-interface3 .ebai-gateway-brand img { object-fit: contain; width: 56px; height: 56px; }
#ebai-interface3 .ebai-gateway-brand span { color: var(--ebai-muted); font-size: 13px; }
#ebai-interface3 .ebai-gateway-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 44px; border: 1px solid rgba(20, 40, 60, .10); border-radius: 28px; background: #FFFFFF; box-shadow: 0 18px 46px rgba(20, 40, 60, .08); }
#ebai-interface3 .ebai-gateway-copy { min-width: 0; }
#ebai-interface3 .ebai-gateway-eyebrow { margin: 0 0 14px; color: #007EAE; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
#ebai-interface3 h1 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.16; letter-spacing: -.025em; margin: 0; font-weight: 800; outline: none; }
#ebai-interface3 h1 em { font-style: normal; color: #007EAE; }
#ebai-interface3 .ebai-gateway-intro { margin: 18px 0 24px; max-width: 400px; color: var(--ebai-muted); font-size: 16px; line-height: 1.6; }
#ebai-interface3 .ebai-gateway-actions { display: flex; flex-direction: column; align-items: center; max-width: 320px; }
#ebai-interface3 a { text-decoration: none; }
#ebai-interface3 .ebai-gateway-primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 230px; max-width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 18px; background: var(--ebai-accent); color: var(--ebai-text); font-size: 17px; line-height: 1.2; font-weight: 850; box-shadow: 0 12px 28px rgba(0, 186, 255, .20); transition: transform 160ms ease, background 160ms ease; }
#ebai-interface3 .ebai-gateway-primary > span:nth-child(2) { flex: 1; }
#ebai-interface3 .ebai-gateway-action-icon { font-size: 22px; }
#ebai-interface3 .ebai-gateway-actions p { text-align: center; margin: 8px 0 18px; color: var(--ebai-muted); font-size: 12px; line-height: 1.5; }
#ebai-interface3 .ebai-gateway-secondary { align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 20px; border: 1px solid rgba(20, 40, 60, .14); border-radius: 16px; background: #FFFFFF; color: var(--ebai-muted); font-size: 15px; font-weight: 700; transition: background 160ms ease; }
#ebai-interface3 .ebai-gateway-actions p:last-child { margin-bottom: 0; }
#ebai-interface3 a:focus-visible { outline: 3px solid #007EAE; outline-offset: 4px; }
#ebai-interface3 .ebai-gateway-primary:hover { background: #00A6E6; transform: translateY(-1px); }
#ebai-interface3 .ebai-gateway-secondary:hover { background: #F5F9FC; }
#ebai-interface3 .ebai-gateway-illustration { position: relative; display: grid; justify-items: center; align-content: center; min-height: 300px; }
#ebai-interface3 .ebai-gateway-orbit { position: absolute; width: 270px; height: 270px; max-width: 100%; border-radius: 50%; background: #EAF7FF; border: 1px solid rgba(0, 186, 255, .12); }
#ebai-interface3 .ebai-gateway-illustration img { position: relative; width: min(100%, 280px); height: auto; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(20, 40, 60, .08)); }
#ebai-interface3 .ebai-gateway-mascot-note { position: relative; color: var(--ebai-muted); font-size: 12px; line-height: 1.5; text-align: center; margin-top: 10px; }
#ebai-interface3 .ebai-gateway-footnote { margin: 24px 0 0; color: var(--ebai-muted); font-size: 12px; text-align: center; }
#ebai-interface3 .ebai-gateway-status { display: inline-block; margin: 0 0 20px; padding: 10px 14px; background: #EAF7FF; color: #007EAE; border-radius: 12px; font-size: 13px; }
#ebai-interface3 .ebai-gateway-return { display: block; width: fit-content; color: #007EAE; font-size: 15px; font-weight: 800; padding: 12px 0; }
@media (max-width: 900px) {
  #ebai-interface3 .ebai-gateway-shell { padding: 24px; }
  #ebai-interface3 .ebai-gateway-card { padding: 32px; gap: 24px; }
  #ebai-interface3 .ebai-gateway-illustration { min-height: 250px; }
  #ebai-interface3 .ebai-gateway-orbit { width: 230px; height: 230px; }
}
@media (max-width: 640px) {
  #ebai-interface3 .ebai-gateway-shell { padding: 20px 16px; }
  #ebai-interface3 .ebai-gateway-brand { justify-content: center; margin-bottom: 20px; }
  #ebai-interface3 .ebai-gateway-brand span { display: none; }
  #ebai-interface3 .ebai-gateway-card { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; border-radius: 24px; gap: 20px; }
  #ebai-interface3 .ebai-gateway-copy { text-align: center; }
  #ebai-interface3 .ebai-gateway-intro, #ebai-interface3 .ebai-gateway-actions { margin-left: auto; margin-right: auto; }
  #ebai-interface3 .ebai-gateway-primary { text-align: left; width: 230px; min-height: 50px; padding: 11px 18px; }
  #ebai-interface3 .ebai-gateway-illustration { min-height: 0; }
  #ebai-interface3 .ebai-gateway-illustration img { width: 160px; }
  #ebai-interface3 .ebai-gateway-orbit { width: 150px; height: 150px; }
  #ebai-interface3 .ebai-gateway-return { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { #ebai-interface3 a { transition: none; } }

/* EBAI INTERFACE 3.0 — Phase 1.5: stable Welcome-only frame, larger artwork, decoded reveals and subtle crossfade. */
#ebai-interface3 .ebai-gateway-poses { position: relative; width: min(100%, 280px); aspect-ratio: 1; }
#ebai-interface3 .ebai-gateway-poses > img { position: absolute; left: calc((100% - var(--pose-size)) / 2); top: calc((100% - var(--pose-size)) / 2); width: var(--pose-size); height: var(--pose-size); object-fit: contain; opacity: 0; pointer-events: none; transition: none; }
#ebai-interface3 .ebai-gateway-poses > img[data-ebai-pose="default"] { --pose-size: 129.4%; }
#ebai-interface3 .ebai-gateway-poses > img[data-ebai-pose="guide"] { --pose-size: 115.4%; }
#ebai-interface3 .ebai-gateway-poses > img[data-ebai-pose="explore"] { --pose-size: 128.6%; }
#ebai-interface3 .ebai-gateway-poses > img.can-crossfade { transition: opacity 250ms ease; }
#ebai-interface3 .ebai-gateway-poses > img.is-active { opacity: 1; }
@media (max-width: 900px) {
  #ebai-interface3 .ebai-gateway-poses > img[data-ebai-pose="default"] { --pose-size: 119.5%; }
  #ebai-interface3 .ebai-gateway-poses > img[data-ebai-pose="guide"] { --pose-size: 106.6%; }
  #ebai-interface3 .ebai-gateway-poses > img[data-ebai-pose="explore"] { --pose-size: 118.7%; }
}
@media (max-width: 640px) { #ebai-interface3 .ebai-gateway-poses { width: 160px; } }
@media (prefers-reduced-motion: reduce) { #ebai-interface3 .ebai-gateway-poses > img.can-crossfade { transition: none; } }
