/* Functional and accessibility layer for the static application. */
@font-face { font-family: "Yekan Bakh"; font-style: normal; font-weight: 300; src: url("./YekanBakh-Light-R2jMwAlK.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Yekan Bakh"; font-style: normal; font-weight: 400; src: url("./YekanBakh-Regular-CIDCdysl.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Yekan Bakh"; font-style: normal; font-weight: 600; src: url("./YekanBakh-SemiBold-DoVIyzez.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Yekan Bakh"; font-style: normal; font-weight: 700; src: url("./YekanBakh-Bold-CeAOzI0r.woff2") format("woff2"); font-display: swap; }
html { height: 100%; }
body { min-height: 100%; min-height: 100dvh; height: auto; overflow: hidden; }
button { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ffb545; outline-offset: 3px; }
#root { min-height: 100dvh; overflow: hidden; background: #f7f6fb; box-shadow: 0 0 70px #2f29451f; }
.screen { min-height: 0; overflow: hidden; }
.home-screen { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.home-screen::-webkit-scrollbar, .topic-scroll::-webkit-scrollbar, .conversation::-webkit-scrollbar { display: none; }
.hero-panel { width: calc(100% - 32px); flex: none; }
.hero-panel h1 { color: #222232; margin: 2px 0 12px; font-size: 20px; line-height: 1.45; }
.online-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.online-pill span, .chat-person p span { width: 8px; height: 8px; border-radius: 50%; background: #28c76f; box-shadow: 0 0 0 4px #28c76f1f; }
.topic-section { width: 90%; max-width: none; flex: none; }
.topic-section h2 { text-align: center; color: #282839; margin: 10px; font-size: 14px; }
.topic-scroll { width: 100%; padding: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; }
.topic-chip { border: 2px solid #e1e0ea; scroll-snap-align: start; transition: border-color .2s, background-color .2s, transform .2s; }
.topic-chip:active { transform: scale(.97); }
.primary-action { border: 0; flex: none; margin: auto auto max(22px, env(safe-area-inset-bottom)); transition: transform .2s, box-shadow .2s; }
.primary-action:hover { box-shadow: 0 20px 34px #654ee55c; transform: translateY(-1px); }
.search-radar .ring-a, .search-radar .ring-b { animation: radar-pulse 2.4s ease-out infinite; }
.search-radar .ring-b { animation-delay: -1.2s; }
.search-core { animation: core-float 1.8s ease-in-out infinite; }
.dot { animation: dot-pulse 1.6s ease-in-out infinite alternate; }
.dot-indigo { animation-delay: -.5s; }.dot-coral { animation-delay: -1s; }
.search-footer { margin-bottom: max(16px, env(safe-area-inset-bottom)); }
.close-button, .cancel-button { border: 1px solid #e4e3ec; }
.private-note { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.icon-button { display: grid; place-items: center; color: #555467; background: transparent; border-radius: 10px; width: 38px; height: 38px; }
.icon-button:hover { background: #f1effb; }
.chat-person h1 { margin: 0; }
.chat-person p { display: flex; align-items: center; gap: 6px; color: #28a65e; }
.menu-wrap { position: relative; }
.chat-menu { z-index: 10; position: absolute; top: 44px; left: 0; min-width: 145px; padding: 6px; background: #fff; border: 1px solid #e4e3ec; border-radius: 14px; box-shadow: 0 14px 36px #2a273b26; }
.chat-menu button { width: 100%; padding: 10px 12px; text-align: right; color: #585869; background: transparent; border-radius: 9px; font-size: 13px; font-weight: 700; }
.chat-menu button:hover { background: #f5f2ff; color: #654ee5; }
.conversation { overscroll-behavior-y: contain; scrollbar-width: none; }
.bubble { overflow-wrap: anywhere; }
.composer { padding-bottom: max(18px, env(safe-area-inset-bottom)); height: auto; min-height: 92px; }
.composer button:not(:disabled) { color: #fff; background: linear-gradient(#816bf4,#644ee5); box-shadow: 0 10px 20px #654ee536; }
.composer input:focus { border-color: #806af4; box-shadow: 0 0 0 4px #806af416; }
.toast { z-index: 20; position: absolute; bottom: 106px; left: 50%; translate: -50% 0; min-width: max-content; padding: 11px 18px; color: #fff; background: #292839; border-radius: 999px; font-size: 13px; box-shadow: 0 12px 32px #29283938; }
.skip-link { z-index: 100; position: fixed; top: 8px; right: 8px; padding: 9px 14px; color: #fff; background: #292839; border-radius: 9px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
noscript { display: block; margin: auto; padding: 24px; text-align: center; }

@keyframes radar-pulse { 0% { opacity: .85; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes core-float { 50% { transform: translateY(-5px); } }
@keyframes dot-pulse { to { transform: scale(1.35); opacity: .55; } }

@media (min-width: 700px) {
  body { justify-content: center; padding-block: 24px; }
  #root { height: min(820px, calc(100dvh - 48px)); min-height: 600px; border: 1px solid #dfddea; border-radius: 32px; overflow: hidden; }
}

@media (max-height: 740px) {
  .orbit-stage { height: 170px; transform: scale(.82); margin-block: -12px; }
  .hero-panel { margin-block: 10px; padding-block: 18px; }
  .topic-section { margin-block: 8px; }
  .safety-note { margin-block: 10px; }
  .primary-action { margin-bottom: 18px; }
  .search-content { margin-top: 54px; }
  .search-radar { height: 220px; transform: scale(.86); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
