:root{
  --bg:#091961;
  --panel:#081b55;
  --text:#e1e8ff;
  --muted:#98a2b3;
  --accent:#78b9ff;
  --accent-2:#0000ff;
  --accent-3:#3dd5ff;
  --glass:rgba(255,255,255,0.06);
  --border:rgba(2, 0, 27, 0.498);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
}

*{box-sizing:border-box}
html, body{height:100%; scroll-behavior: smooth;}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text); background:var(--bg); overflow-x:hidden;
}

/* Animated canvas background */
#bg-canvas{position:fixed; inset:0; z-index:-2}
.glow{
  position:fixed; inset:-20% -20% auto auto; z-index:-1; filter:blur(60px); opacity:.15;
  background:conic-gradient(from 90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  width:100vmax; height:100vmax; border-radius:100%; mix-blend-mode:screen;
  animation:spin 20s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* Layout */
.wrap{max-width:var(--max); margin:0 auto; padding:0px 20px 80px}

/* Topbar */
.topbar{display:flex; align-items:center; justify-content:space-between; gap:5px; position:static; margin: 0px}
.brand{display:flex; align-items:center; gap:12px}
.logo{width:40px; height:40px; border-radius:10px; background:
  url("images/icon.png") center/cover no-repeat;
  box-shadow:0 6px 20px rgba(124,158,255,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

.brand h1{font-size:18px; margin:0}
nav{display:flex; gap:6px; flex-wrap:wrap}
.pill{display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:999px; color:var(--text); text-decoration:none; transition:.2s transform, .2s box-shadow;
}

.pill:hover{transform:translateY(-2px); box-shadow:0 8px 20px rgba(124,158,255,.18)}

/* Hero */
.hero{display:grid; grid-template-columns:1.1fr .9fr; gap:26px; align-items:center; margin-top:24px; display: flex; justify-content: center;}
@media (max-width:900px){.hero{grid-template-columns:1fr}}
.card{padding:20px; text-align: center; justify-self: center;}
.hero .card{padding:30px;}
.kicker{font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-size:12px}
.title{font-size:clamp(28px, 5vw, 48px); line-height:1.07; margin:.35em 0 .2em}
.subtitle{color:#c3ccff; opacity:.9}
.cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}
.btn{display:flex; align-items:center; gap:10px; padding:12px 15px; border-radius:12px; text-decoration:none; border:1px solid var(--border); justify-content: center;
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); color:var(--text); font-weight:600}
.btn.primary{background:linear-gradient(180deg, rgba(124,158,255,.35), rgba(124,158,255,.18)); border-color:rgba(124,158,255,.55); box-shadow:0 10px 24px rgba(124,158,255,.25); justify-content: center}

/* Mini About / Portfolio */
.about{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:22px}
@media (max-width:900px){.about{grid-template-columns:1fr}}
.about .tile{padding:20px}
.about h3{margin:0 0 10px}
.list{margin:0; padding:0; list-style:none; display:grid; gap:8px}
.list li{display:flex; align-items:center; gap:10px; padding:10px; border:1px dashed var(--border); border-radius:12px; background:rgba(255,255,255,.03)}
    
/* Stats widget */
.stats { margin-top: 12px; display: grid; gap: 10px }
.stat { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.04) }
.stat span { font-variant-numeric: tabular-nums; letter-spacing: .5px }

#links .linkcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  min-height: 130px;
}

#links .linkcard .link-info {
  flex: 1 1 auto;
}

#links .linkcard .btn {
  align-self: center;
  margin-top: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

a:link {
  color: #c8ebff;
  text-decoration: none;
  font-weight: bold;
}

a:visited {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #a1bcff;
  text-decoration: none;
  font-weight: bold;
}

a:active {
  color: #00fff2;
  text-decoration: none;
  font-weight: bold;
}

.banner {
  width: 100%;
  max-width: 960px;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-center {
  width: min(620px, calc(100% - 32px));
  margin: 40px auto 70px;
  text-align: center;
  position: relative;
  z-index: 9999;
  overflow: visible;
  flex-direction: column;
  align-items: center;
}

.command-menu {
  display: none;
  margin-top: 0;
  text-align: left;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,7,12,.90);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
}

.command-menu.show {
  display: block;
}

.command-option {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.command-option.last-child {
  border-bottom: none;
}

.command-option:hover,
.command-option.active {
  background: rgba(124,158,255,.18);
  color: white;
}

.command-name {
  color: #7c9eff;
  font-weight: 800;
  font-family: consolas, monospace;
}

.command-label {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.command-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,7,12,.62);
  backdrop-filter: blur(8px);
  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.command-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.command-box input::placeholder {
  color: rgba(255,255,255,.32);
}

.command-box.error {
  animation: commandShake .28s linear 2;
  border-color: rgba(255,93,115,.65);
}

.command-box.teleport {
  border-color: rgba(124,158,255,.7);
  box-shadow:
    0 0 35px rgba(124,158,255,.22),
    0 20px 60px rgba(0,0,0,.35);
}

.command-desc {
  color: rgba(255,255,255,.45);
  font-size: 13px;
}

@keyframes commandShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.main-section {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 15px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}

.main-section h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 78px);
  letter-spacing: -.07em;
  line-height: .9;
}

.main-section p {
  max-width: 720px;
  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.7;
}

.main {
  width: min(1000px, calc(100% - 32px));
  display: flex;
  justify-content: left;
  margin: 0 auto 80px;
}

.main h1 {
  font-size: 100px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.social-grid a {
  color: white;
  text-decoration: none;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  transition: .18s ease;
}

.social-grid a:hover {
  transform: translateY(-2px);
  background: rgba(124,158,255,.16);
}

@media (max-width: 760px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-section {
    padding: 44px 22px;
  }
}

/* Sections */
section{margin-top:40px}
.section-title{font-size:22px; margin:0 0 12px; color:#aebaff}
.grid{display:inline-flexbox; grid-template-columns:repeat(3,1fr); gap:50px}
@media (max-width:900px){.grid{grid-template-columns:1fr}}
.panel{padding:20px}

/* Footer */
footer{margin:50px 0 0; padding:20px; color:var(--muted); text-align:center}

/* Small helpers */
.muted{color:var(--muted)}
.tag{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.04)}

img,
.floating-object,
.scroll-image,
.orb {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.main-section {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  cursor: pointer;

  width: 46px;
  height: 46px;
}

.menu-toggle:hover {
  background: rgba(255,255,255,.14);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* dark blurry curtain behind menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* right side drawer */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;

  width: 20vw;
  min-width: 280px;
  max-width: 420px;
  height: 100vh;

  padding: 28px;
  border-left: 1px solid rgba(255,255,255,.14);
  background: rgba(0, 0, 50, 0.5);
  box-shadow: -30px 0 80px rgba(0,0,0,.45);

  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.side-menu.show {
  transform: translateX(0);
}

.side-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.side-menu-top h2 {
  margin: 0;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.side-menu-bottom {
  margin-top: auto;
  padding-top: 18px;
}

.support-button {
  position: relative;

  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 14px 15px;

  border-radius: 18px;
  border: 1px solid rgba(143, 162, 255, 0.32);

  background:
    radial-gradient(circle at top right, rgba(143, 175, 255, 0.28), transparent 45%),
    rgba(143, 173, 255, 0.1);

  color: white;
  text-decoration: none;

  box-shadow:
    0 16px 45px rgba(79, 117, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.support-button::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );

  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.support-button:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 175, 255, 0.58);

  background:
    radial-gradient(circle at top right, rgba(143, 171, 255, 0.38), transparent 45%),
    rgba(143, 177, 255, 0.16);

  box-shadow:
    0 20px 60px rgba(79, 141, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.support-button:hover::before {
  transform: translateX(120%);
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  font-size: 18px;
  font-weight: 900;
}

.support-button span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.support-button strong {
  color: white;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.menu-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.menu-close:hover {
  background: rgba(255,255,255,.14);
}

.side-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-menu-links a {
  display: block;
  padding: 16px 14px;
  border-radius: 14px;

  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.side-menu-links a:hover {
  color: white;
  background: rgba(255,255,255,.12);
}

/* stops page scroll while menu is open */
body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* mobile: make drawer wider */
@media (max-width: 760px) {
  .side-menu {
    width: 78vw;
    min-width: 0;
  }
}

.story-section {
  width: min(1000px, calc(100% - 32px));
  min-height: 65vh;
  margin: 80px auto 80px;

  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

/* Big typewriter text */
.typewriter-title {
  --reveal-progress: 0;

  min-height: 1.1em;
  margin: 0;

  opacity: var(--reveal-progress);
  transform: translateY(calc((1 - var(--reveal-progress)) * 36px));
  filter: blur(calc((1 - var(--reveal-progress)) * 8px));

  color: white;
  font-size: clamp(46px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 950;

  transition:
    opacity 0.05s linear,
    transform 0.05s linear,
    filter 0.05s linear;
}

.typewriter-title.smaller {
  font-size: clamp(30px, 6vw, 70px);
  max-width: 900px;
}

.typewriter-title.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.typewriter-title::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 0.8em;
  margin-left: 0.08em;
  background: white;
  vertical-align: -0.08em;
  box-shadow: 0 0 20px rgba(255,255,255,.7);
  opacity: var(--reveal-progress);
}

.typewriter-title.done::after {
  display: none;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

/* Boxes reveal once and stay */
.reveal-box {
  --reveal-progress: 0;

  opacity: var(--reveal-progress);
  transform:
    translateY(calc((1 - var(--reveal-progress)) * 34px))
    scale(calc(0.97 + (var(--reveal-progress) * 0.03)));

  filter: blur(calc((1 - var(--reveal-progress)) * 8px));

  transition:
    opacity 0.05s linear,
    transform 0.05s linear,
    filter 0.05s linear;
}

.reveal-box.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Video showcase */
.video-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  text-decoration: none;
  color: white;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  background: rgba(124,158,255,.14);
  border-color: rgba(124,158,255,.35);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  color: white;
}

.video-info p {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  line-height: 1.5;
}

/* Social showcase */
.social-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.social-showcase a {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  text-decoration: none;
  color: white;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.social-showcase a:hover {
  transform: translateY(-3px);
  background: rgba(124,158,255,.14);
  border-color: rgba(124,158,255,.35);
}

.social-showcase span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.social-showcase strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

/* About / Contact boxes */
.about-showcase,
.contact-showcase {
  max-width: 760px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.about-showcase h2,
.contact-showcase h3 {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.about-showcase p,
.contact-showcase p {
  color: rgba(255,255,255,.68);
  font-size: 18px;
  line-height: 1.7;
}

.contact-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(124,158,255,.18);
  color: white;
  text-decoration: none;
  font-weight: 900;
}

/* Mobile */
@media (max-width: 760px) {
  .story-section {
    min-height: 48vh;
  }

  .typewriter-title {
    font-size: clamp(40px, 14vw, 70px);
  }

  .typewriter-title.smaller {
    font-size: clamp(30px, 10vw, 50px);
  }

  .video-showcase,
  .social-showcase {
    grid-template-columns: 1fr;
  }

  .about-showcase,
  .contact-showcase {
    padding: 24px;
    border-radius: 22px;
  }

  .about-showcase p,
  .contact-showcase p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-title,
  .reveal-box {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .typewriter-title::after {
    display: none;
  }
}

.scroll-continue {
  --scroll-line-width: 220px;
  --scroll-line-color: rgba(255, 255, 255, 0.25);
  --scroll-text-color: rgba(255, 255, 255, 0.58);
  --scroll-arrow-color: rgba(255, 255, 255, 0.72);

  width: 100%;
  display: flex;
  justify-content: center;

  margin: 34px 0 52px;
}

.scroll-continue-btn {
  width: var(--scroll-line-width);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;

  color: var(--scroll-arrow-color);
  cursor: pointer;
}

.scroll-continue-text {
  color: var(--scroll-text-color);

  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
}

.scroll-continue-line {
  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--scroll-line-color),
    transparent
  );
}

.wide-scroll-arrow {
  width: calc(var(--scroll-line-width) * 0.52);
  height: 28px;

  color: var(--scroll-arrow-color);

  animation: scrollArrowFloat 1.45s ease-in-out infinite;
}

.scroll-continue-btn:hover {
  --scroll-line-color: rgba(255, 255, 255, 0.42);
  --scroll-text-color: rgba(255, 255, 255, 0.78);
  --scroll-arrow-color: rgba(255, 255, 255, 0.9);
}

@keyframes scrollArrowFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

/* After the first visit, reveal everything instantly */
html.skip-intro-animations .reveal-box,
html.skip-intro-animations .story-title-section,
html.skip-intro-animations .typewriter-title,
html.skip-intro-animations .blur-reveal,
html.skip-intro-animations [data-scroll-reveal],
html.skip-intro-animations .char,
html.skip-intro-animations .word {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  clip-path: none !important;
  animation: none !important;
  transition: none !important;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: fit-content;
  max-width: 100%;

  margin: 0 auto 12px;
  padding: 0;

  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;

  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.status-dot {
  position: relative;

  width: 8px;
  height: 8px;
  flex: 0 0 auto;

  border-radius: 999px;
  background: #8bffb0;
  box-shadow:
    0 0 10px rgba(139,255,176,.9),
    0 0 22px rgba(139,255,176,.55);

  animation: detectorBlink 1.4s ease-in-out infinite;
}

@keyframes detectorBlink {
  0%, 100% {
    opacity: .55;
    transform: scale(.92);
  }

  45% {
    opacity: 1;
    transform: scale(1.15);
  }

  60% {
    opacity: .75;
    transform: scale(.98);
  }
}

@keyframes detectorPing {
  0% {
    opacity: .7;
    transform: scale(.45);
  }

  70% {
    opacity: 0;
    transform: scale(1.8);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.status-dot::before {
  content: "";
  position: absolute;
  inset: -3px;

  border-radius: 999px;
  background: currentColor;
  opacity: .22;

  filter: blur(4px);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -7px;

  border-radius: 999px;
  border: 1px solid currentColor;

  opacity: 0;
  transform: scale(0.45);

  animation: detectorPing 1.4s ease-out infinite;
}

#connectionState {
  color: rgba(255,255,255,.78);
}

#connectionPing {
  color: rgba(255,255,255,.68);
  min-width: 34px;
}

#browserText {
  color: rgba(255,255,255,.72);
}

.mini-separator,
.status-separator {
  margin: 0 3px;
  color: #ffffff;
}

.connection-status.stable .status-dot {
  color: #8bffb0;
  background: #8bffb0;
  box-shadow:
    0 0 10px rgba(139,255,176,.9),
    0 0 24px rgba(139,255,176,.55);
}

.connection-status.slow .status-dot {
  color: #ffd36a;
  background: #ffd36a;
  box-shadow:
    0 0 10px rgba(255,211,106,.9),
    0 0 24px rgba(255,211,106,.55);

  animation-duration: .9s;
}

.connection-status.slow .status-dot::after {
  animation-duration: .9s;
}

.connection-status.unstable .status-dot {
  color: #ff6b8a;
  background: #ff6b8a;
  box-shadow:
    0 0 10px rgba(255,107,138,.9),
    0 0 24px rgba(255,107,138,.55);

  animation-duration: .45s;
}

.connection-status.unstable .status-dot::after {
  animation-duration: .45s;
}

.connection-status.offline .status-dot {
  color: #616161;
  background: #616161;
  box-shadow:
    0 0 10px rgba(159,159,158,.9),
    0 0 24px rgba(95, 95, 95, 0.9);
}

@media (max-width: 760px) {
  .connection-status {
    gap: 7px;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .mini-separator,
  .status-separator {
    margin: 0 1px;
  }
}
