/* Mobile menu — forge overlay, edge-to-edge */

.mob.mob-new {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.35s;
}

.mob.mob-new::before,
.mob.mob-new::after {
  content: none;
}

.mob.mob-new.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mob-new .mob-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  margin: 0;
  padding:
    calc(64px + env(safe-area-inset-top, 0px))
    0
    env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(93, 95, 239, 0.24), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(6, 182, 212, 0.16), transparent 50%),
    #05050f;
  transform: translateY(12px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-new.open .mob-panel {
  transform: none;
}

.mob-new .mob-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(238, 242, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 242, 255, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;
}

.mob-new .mob-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.7), rgba(165, 180, 252, 0.25), transparent 80%);
  pointer-events: none;
}

/* Head — full-bleed bar */
.mob-new .mob-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 20px 18px;
  border-bottom: 1px solid rgba(165, 180, 252, 0.12);
}

.mob-new .mob-brand {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.5);
}

.mob-new .mob-brand em {
  font-style: normal;
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mob-new .mob-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
}

.mob-new .mob-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
  animation: mob-pulse 2s ease-in-out infinite;
}

@keyframes mob-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Links — edge to edge rows */
.mob-new .mob-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  flex: 1;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mob-new .mob-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  border-radius: 0;
  border-bottom: 1px solid rgba(165, 180, 252, 0.1);
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 8.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #eef2ff;
  background: transparent;
  transform: translateX(-24px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s,
    color 0.2s,
    background 0.2s,
    padding-left 0.2s;
  transition-delay: calc(var(--mi, 0) * 0.045s + 0.06s);
}

.mob-new .mob-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #67e8f9;
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.2s, transform 0.25s;
}

.mob-new.open .mob-links a {
  transform: none;
  opacity: 1;
}

.mob-new .mob-num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(103, 232, 249, 0.45);
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
  align-self: flex-start;
  margin-top: 0.45em;
}

.mob-new .mob-links a:active,
.mob-new .mob-links a:hover {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.06);
  padding-left: 24px;
}

.mob-new .mob-links a:active::before,
.mob-new .mob-links a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.mob-new .mob-links a:focus-visible {
  outline: none;
  background: rgba(6, 182, 212, 0.08);
  color: #67e8f9;
}

.mob-new .mob-links a:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Foot — flush to bottom, full width CTA */
.mob-new .mob-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(165, 180, 252, 0.14);
  background: rgba(0, 0, 0, 0.25);
}

.mob-new .mob-cta {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mob-new .mob-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border-radius: 0;
  background: #5d5fef;
  border: none;
  border-top: 1px solid rgba(165, 180, 252, 0.15);
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  box-shadow: none;
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.32s,
    opacity 0.35s 0.32s,
    background 0.2s;
}

.mob-new.open .mob-cta a {
  transform: none;
  opacity: 1;
}

.mob-new .mob-cta a:hover,
.mob-new .mob-cta a:active {
  background: #4f51e0;
  box-shadow: none;
}

.mob-new .mob-cta a:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.55);
  outline-offset: -2px;
}

.mob-new .mob-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
    opacity 0.35s 0.38s;
}

.mob-new.open .mob-meta {
  transform: none;
  opacity: 1;
}

.mob-new .mob-meta a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(165, 180, 252, 0.75);
  padding: 0;
  border: none;
  border-radius: 0;
  transform: none;
  opacity: 1;
  transition: color 0.2s;
}

.mob-new .mob-meta a:hover {
  color: #67e8f9;
  background: transparent;
}

.mob-new .mob-meta span {
  font-family: 'Courier New', ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: rgba(238, 242, 255, 0.28);
  letter-spacing: 0.04em;
}

/* Hamburger stays above the overlay */
body.menu-open nav#nav {
  z-index: 220;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.menu-open nav#nav .logo {
  opacity: 0;
  pointer-events: none;
}

body.menu-open .hbg {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.1);
}

body.menu-open .hbg span {
  background: #67e8f9;
}

@media (prefers-reduced-motion: reduce) {
  .mob-new,
  .mob-new .mob-panel,
  .mob-new .mob-links a,
  .mob-new .mob-cta a,
  .mob-new .mob-meta,
  .mob-new .mob-live i {
    transition: none !important;
    animation: none !important;
  }

  .mob-new .mob-links a,
  .mob-new .mob-cta a,
  .mob-new .mob-meta {
    transform: none;
    opacity: 1;
  }
}
