
:root{
  --bg:#111413;
  --text:#f5f7f4;
  --accent:164,255,209;
  --bar-h:clamp(54px,6vw,62px);
  --circle:calc(var(--bar-h) - 14px);
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text)}
body{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  display:grid;
  place-items:center;
  background:
    radial-gradient(900px 420px at 50% 45%,rgba(255,255,255,.035),transparent 70%),
    #111413;
}
button,input{font:inherit}
button{cursor:pointer}

.stage{
  width:min(920px,calc(100vw - 32px));
  max-width:100%;
  text-align:center;
}
.semantic{width:100%}
.searchShell{
  position:relative;
  width:100%;
  height:var(--bar-h);
  border-radius:999px;
}
.search{
  position:relative;
  z-index:5;
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:calc(var(--circle) + 8px) minmax(0,1fr) calc(var(--circle) + 8px);
  align-items:center;
  padding:0 7px;
  border:1px solid transparent;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(168,179,169,.36),rgba(86,97,88,.30));
  box-shadow:
    0 18px 60px rgba(0,0,0,.22),
    inset 0 1px rgba(255,255,255,.12),
    inset 0 -1px rgba(0,0,0,.04);
  backdrop-filter:blur(22px) saturate(1.1);
  overflow:hidden;
}

/* Exact-size border SVG; JS keeps it in sync at every resize / zoom level */
.borderFx{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:3;
  pointer-events:none;
  overflow:visible;
}
.borderFx .base{
  fill:none;
  stroke:rgba(255,255,255,.11);
  stroke-width:1.0;
  vector-effect:non-scaling-stroke;
}
.borderFx .moving{
  fill:none;
  stroke:rgba(255,255,255,.98);
  stroke-width:1.65;
  stroke-linecap:round;
  vector-effect:non-scaling-stroke;
  stroke-dasharray:220 780;
  filter:url(#softGlow);
  animation:borderTravel 4.7s linear infinite;
}
.semantic.typing .borderFx .moving{
  animation-play-state:paused;
  opacity:.14;
}
@keyframes borderTravel{to{stroke-dashoffset:-1000}}

.infinity,
.submit{
  width:var(--circle);
  height:var(--circle);
  border-radius:50%;
  padding:0;
  display:grid;
  place-items:center;
  justify-self:center;
  align-self:center;
  line-height:0;
}

.infinity{
  position:relative;
  border:1px solid rgba(255,255,255,.92);
  background:#fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.95),
    0 0 10px rgba(255,255,255,.56),
    0 0 24px rgba(255,255,255,.28);
}
.infinity::after{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.10) 56%, transparent 72%);
  filter:blur(1.6px);
  opacity:.85;
  pointer-events:none;
}

/* Rebuilt from the reference: two interlocking loops, blue left / gray right */
.infinity svg{
  width:46%;
  height:46%;
  display:block;
  overflow:visible;
}
.infinity .infinityBase{
  fill:none;
  stroke:#78c8ff;
  stroke-width:3.20;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.infinity .multiTrack{
  fill:none;
  stroke:url(#infinityGradient);
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
  pathLength:1000;
  stroke-dasharray:120 880;
  animation:infinityColorTravel 2.8s linear infinite;
  filter:drop-shadow(0 0 0.8px rgba(255,255,255,.34));
}
@keyframes infinityColorTravel{
  to{stroke-dashoffset:-1000}
}

.inputWrap{
  min-width:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
}
input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:clamp(13px,1.6vw,15px);
  padding:0 8px;
}
input::placeholder{color:rgba(255,255,255,.74)}

.submit{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.78);
  transition:.2s ease;
}
.submit svg{
  width:40%;
  height:40%;
  display:block;
}
.submit.active{
  color:#fff;
  border-color:rgba(var(--accent),.48);
  background:rgba(var(--accent),.18);
  box-shadow:
    inset 0 1px rgba(255,255,255,.15),
    0 0 24px rgba(var(--accent),.26);
}
.submit:hover{transform:scale(1.03)}

.joinPatch{
  position:absolute;
  top:6px;
  bottom:6px;
  z-index:4;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(168,179,169,.36),rgba(86,97,88,.30));
}
.joinPatch.left{
  left:0;
  width:calc(var(--circle) + 24px);
  border-top-left-radius:999px;
  border-bottom-left-radius:999px;
}
.joinPatch.right{
  right:0;
  width:calc(var(--circle) + 24px);
  border-top-right-radius:999px;
  border-bottom-right-radius:999px;
}


.chipsViewport{
  width:100%;
  margin-top:13px;
  overflow:hidden;
}
.chips{
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
}
.chip{
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(79,90,82,.45);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:clamp(10px,1.3vw,11px);
  white-space:nowrap;
  backdrop-filter:blur(10px);
}
.chip:hover{background:rgba(255,255,255,.10)}

.infoLayer{
  position:fixed;
  inset:0;
  z-index:20;
  display:none;
  place-items:center;
  padding:22px;
  background:rgba(5,9,8,.64);
  backdrop-filter:blur(16px) saturate(.9);
}
.infoLayer.show{display:grid;animation:fade .22s ease both}
@keyframes fade{from{opacity:0}to{opacity:1}}
.infoCard{
  width:min(860px,94vw);
  max-height:min(82vh,760px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.15);
  background:linear-gradient(180deg,rgba(22,29,26,.95),rgba(13,18,16,.94));
  border-radius:28px;
  padding:clamp(24px,3.2vw,30px);
  text-align:left;
  box-shadow:0 30px 100px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.04);
}.infoTitle{
  margin:17px 0 12px;
  font-size:clamp(30px,6vw,68px);
  line-height:.97;
  letter-spacing:-.05em;
  font-weight:820;
}
.infoText{
  max-width:720px;
  font-size:clamp(14px,2vw,16px);
  line-height:1.65;
  color:rgba(255,255,255,.75)
}.closeInfo{
  margin-top:22px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
}

.languageToast{
  position:fixed;
  left:50%;
  bottom:30px;
  transform:translateX(-50%) translateY(10px);
  background:rgba(20,27,24,.94);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:.22s ease;
  box-shadow:0 16px 50px rgba(0,0,0,.25);
}
.languageToast.show{opacity:1;transform:translateX(-50%) translateY(0)}

@media(max-width:680px){
  :root{
    --bar-h:56px;
    --circle:42px;
  }
  .stage{width:min(100%,calc(100vw - 20px))}
  .search{
    grid-template-columns:50px minmax(0,1fr) 50px;
    padding-inline:6px;
  }
  .chipsViewport{
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding-bottom:2px;
  }
  .chipsViewport::-webkit-scrollbar{display:none}
  .chips{
    justify-content:flex-start;
    flex-wrap:nowrap;
    width:max-content;
    padding-inline:2px;
  }
}
@media(max-width:430px){
  :root{
    --bar-h:52px;
    --circle:38px;
  }
  .search{grid-template-columns:46px minmax(0,1fr) 46px}
  input{font-size:13px;padding-inline:5px}
}
@media(max-height:430px){
  body{align-items:center}
  .chipsViewport{margin-top:9px}
}
@media(prefers-reduced-motion:reduce){
  .borderFx .moving{animation:none}
}
