:root {
  --void:        #02041A;
  --void-2:      #060B2A;
  --void-3:      #0C1545;
  --nebula:      #1A2070;
  --silver:      #C8D3E8;
  --silver-dim:  #7A89AB;
  --silver-mute: #4A5876;
  --silver-deep: #2A3556;
  --saber-blue:  #5DC9FF;
  --saber-green: #6BFF7F;
  --saber-pink:  #FF6BD8;
  --saber-red:   #FF4747;
  --saber-white: #FFFFFF;
  --gold-glow:   #FFD86B;
  --ink:         #02041A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--void);
  color: var(--silver);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

body {
  background: var(--void);
  min-height: 100vh;
}

/* ============ Background Canvas (stars) ============ */
#space-bg, #trail-fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#trail-fx { z-index: 999; }

/* ============ Entry Overlay Canvas ============ */
#entry-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* ============ Entry Overlay ============ */
#entry {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  transition: background-color 0.7s ease, opacity 0.8s ease, visibility 0.8s ease;
}
#entry.departing {
  background: rgba(2, 4, 26, 0);
}
#entry.departing #entry-fx {
  opacity: 0;
}
#entry.departing .entry-card {
  opacity: 0;
  transform: scale(1.16);
  filter: blur(8px);
}
#entry.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.entry-card {
  text-align: center;
  padding: 40px 30px;
  max-width: 460px;
  position: relative;
  z-index: 1;
  transition: opacity 0.45s ease, transform 0.7s ease, filter 0.7s ease;
}
.entry-card::before, .entry-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--saber-blue);
  opacity: 0.55;
}
.entry-card::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}
.entry-card::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}
.entry-kicker {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--saber-blue);
  margin-bottom: 22px;
  opacity: 0.9;
  animation: blink-soft 2.4s ease-in-out infinite;
}
.entry-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--silver);
  margin-bottom: 34px;
  text-shadow: 0 0 18px rgba(93, 201, 255, 0.4);
}
.entry-title em {
  font-style: normal;
  color: var(--saber-blue);
  text-shadow:
    0 0 8px var(--saber-blue),
    0 0 24px rgba(93, 201, 255, 0.6);
}
.entry-sub {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--silver-dim);
  margin-bottom: 32px;
}
#enterBtn {
  background: transparent;
  border: 1px solid var(--saber-blue);
  color: var(--silver);
  padding: 16px 32px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    inset 0 0 0 0 var(--saber-blue),
    0 0 24px rgba(93, 201, 255, 0.15);
  position: relative;
  overflow: hidden;
}
#enterBtn:hover {
  box-shadow:
    inset 240px 0 0 0 rgba(93, 201, 255, 0.18),
    0 0 36px rgba(93, 201, 255, 0.5);
  color: white;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}
#enterBtn:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}
#enterBtn:disabled {
  cursor: wait;
}
#enterBtn::before {
  content: '› ';
  color: var(--saber-blue);
}
.entry-hint {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--silver-mute);
  line-height: 1.5;
}

@keyframes blink-soft {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.4; }
}

/* ============ Main ============ */
main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
main.in {
  opacity: 1;
  transform: translateY(0);
}

body.entry-active {
  overflow: hidden;
}

/* ============ Hero ============ */
.hero {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--saber-blue);
  margin-bottom: 28px;
}
.hero-kicker::before, .hero-kicker::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--saber-blue);
  opacity: 0.5;
}
.hero-kicker .pulse {
  width: 8px; height: 8px;
  background: var(--saber-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--saber-blue);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 6px;
  color: var(--silver);
  margin-bottom: 22px;
  text-shadow: 0 0 40px rgba(93, 201, 255, 0.3);
}
.hero p {
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--silver-dim);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 540px) {
  .hero h1 { font-size: 32px; letter-spacing: 3px; }
  .entry-title { font-size: 30px; }
}

/* ============ Section labels ============ */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--silver-dim);
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--silver-deep);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  width: 10px; height: 10px;
  border: 1px solid var(--saber-blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.section-label .dim {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--silver-mute);
}

/* ============ Lightsabers ============ */
.sabers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 80px;
}
.saber {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 56px;
  position: relative;
  cursor: pointer;
  --c-blade: #5DC9FF;
  --c-glow:  rgba(93, 201, 255, 0.9);
  --c-glow2: rgba(93, 201, 255, 0.4);
}
.saber.green {
  --c-blade: #6BFF7F;
  --c-glow:  rgba(107, 255, 127, 0.9);
  --c-glow2: rgba(107, 255, 127, 0.4);
}

/* HILT (the handle) */
.hilt {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 30px;
  background:
    linear-gradient(180deg,
      #1A1A1A 0%,
      #5A5A5A 18%,
      #C8C8C8 32%,
      #E8E8E8 48%,
      #B8B8B8 52%,
      #6A6A6A 72%,
      #2A2A2A 100%);
  border: 1px solid #0A0A0A;
  border-radius: 3px;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
/* Pommel (the rear cap) */
.hilt::before {
  content: '';
  position: absolute;
  top: -2px; bottom: -2px;
  left: 0;
  width: 10px;
  background: linear-gradient(180deg, #1A1A1A, #4A4A4A 50%, #1A1A1A);
  border-right: 1px solid #0A0A0A;
}
/* Grip texture / emitter ring */
.hilt::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 14px;
  background:
    linear-gradient(180deg, #2A2A2A, #888 50%, #2A2A2A),
    linear-gradient(90deg, transparent, rgba(0,0,0,0.3));
  border-left: 1px solid #0A0A0A;
  box-shadow:
    inset 2px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.5);
}
/* Activation switch button */
.hilt-switch {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  width: 6px;
  height: 8px;
  background: var(--c-blade);
  box-shadow: 0 0 6px var(--c-glow);
  border-radius: 1px;
  z-index: 2;
}
/* Grip ridges */
.hilt-ridges {
  position: absolute;
  top: 50%;
  left: 42px;
  transform: translateY(-50%);
  width: 32px;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0 1px,
    transparent 1px 3px
  );
  z-index: 1;
}

/* BLADE */
.blade {
  flex: 1;
  height: 14px;
  position: relative;
  transform-origin: left center;
  transform: scaleX(0);
  animation: ignite 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
}
.blade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--c-glow2) 12%,
    var(--c-blade) 32%,
    #FFFFFF 50%,
    var(--c-blade) 68%,
    var(--c-glow2) 88%,
    transparent 100%);
  box-shadow:
    0 0 8px var(--c-glow),
    0 0 18px var(--c-glow),
    0 0 36px var(--c-glow2),
    0 0 60px var(--c-glow2);
  border-radius: 2px;
}
.blade::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: white;
  box-shadow: 0 0 6px white;
  border-radius: 2px;
}
.blade-label {
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--ink);
  text-shadow:
    0 0 6px white,
    0 1px 0 rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  opacity: 0;
  animation: label-fade-in 0.5s ease 0.85s forwards;
}

/* Ignite animation */
@keyframes ignite {
  0%   { transform: scaleX(0); }
  20%  { transform: scaleX(0.05); }
  100% { transform: scaleX(1); }
}
@keyframes label-fade-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* HOVER: humming saber */
.saber:hover .blade::before {
  animation: hum 0.16s ease-in-out infinite alternate;
}
.saber:hover .hilt-switch {
  box-shadow: 0 0 12px var(--c-glow), 0 0 24px var(--c-glow);
}
@keyframes hum {
  from {
    box-shadow:
      0 0 8px var(--c-glow),
      0 0 18px var(--c-glow),
      0 0 36px var(--c-glow2),
      0 0 60px var(--c-glow2);
    filter: brightness(1);
  }
  to {
    box-shadow:
      0 0 14px var(--c-glow),
      0 0 28px var(--c-glow),
      0 0 56px var(--c-glow2),
      0 0 90px var(--c-glow2);
    filter: brightness(1.15);
  }
}
.saber:active {
  transform: translateX(2px);
}
/* Spin animation (force easter egg) */
@keyframes saber-spin {
  0%   { transform: rotate(0deg) scaleX(1); }
  50%  { transform: rotate(180deg) scaleX(1); }
  100% { transform: rotate(360deg) scaleX(1); }
}
.saber.spinning .blade {
  animation: saber-spin 1s ease-in-out;
}

@media (max-width: 540px) {
  .blade-label { font-size: 11px; letter-spacing: 2px; }
  .hilt { width: 72px; height: 26px; }
  .hilt-ridges { width: 22px; left: 36px; }
}
@media (max-width: 380px) {
  .blade-label { font-size: 10px; letter-spacing: 1.5px; }
  .hilt { width: 56px; }
  .hilt-ridges { width: 16px; left: 28px; }
}

/* ============ Space coordinates ============ */
.coordinates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 80px;
}
.coordinate-card {
  --coordinate-color: var(--saber-blue);
  --coordinate-rgb: 93, 201, 255;
  min-height: 238px;
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  color: var(--silver);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(var(--coordinate-rgb), .11), transparent 48%), rgba(8, 14, 40, .82);
  border: 1px solid rgba(var(--coordinate-rgb), .42);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 18px 50px rgba(0,0,0,.22);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.coordinate-card.green {
  --coordinate-color: var(--saber-green);
  --coordinate-rgb: 107, 255, 127;
}
.coordinate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(var(--coordinate-rgb), .025) 3px 4px);
  pointer-events: none;
}
.coordinate-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--coordinate-rgb), .12);
  border-radius: 8px;
  pointer-events: none;
}
.coordinate-card:hover,
.coordinate-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--coordinate-color);
  background: linear-gradient(145deg, rgba(var(--coordinate-rgb), .18), transparent 55%), rgba(10, 19, 53, .94);
  box-shadow: 0 20px 55px rgba(0,0,0,.32), 0 0 32px rgba(var(--coordinate-rgb), .18);
  outline: none;
}
.orbit-system {
  width: 82px;
  height: 82px;
  position: relative;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(var(--coordinate-rgb), .55);
  border-radius: 50%;
}
.orbit-one { inset: 11px; transform: rotate(-18deg) scaleY(.42); }
.orbit-two { inset: 2px; transform: rotate(54deg) scaleY(.33); opacity: .55; }
.planet {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 3%, rgba(255,255,255,.45) 4%, transparent 18%), radial-gradient(circle at 35% 30%, var(--coordinate-color), #173260 68%, #071126 100%);
  box-shadow: inset -12px -10px 18px rgba(0,0,0,.48), 0 0 26px rgba(var(--coordinate-rgb), .48);
}
.satellite {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 17px;
  right: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(var(--coordinate-rgb), .85);
  transform-origin: -38px 38px;
  animation: satellite-orbit 7s linear infinite;
}
@keyframes satellite-orbit { to { transform: rotate(360deg); } }
.coordinate-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.coordinate-code {
  margin-bottom: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--coordinate-color);
}
.coordinate-content strong {
  max-width: 100%;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .7px;
  color: #fff;
  white-space: nowrap;
}
.coordinate-description {
  margin-top: 8px;
  min-height: 42px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--silver-dim);
}
.coordinate-action {
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(var(--coordinate-rgb), .5);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--coordinate-color);
}
.coordinate-card:hover .planet,
.coordinate-card:focus-visible .planet {
  box-shadow: inset -12px -10px 18px rgba(0,0,0,.4), 0 0 38px rgba(var(--coordinate-rgb), .72);
}
.coordinate-card.spinning .orbit-system { animation: coordinate-spin 1s ease-in-out; }
@keyframes coordinate-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .coordinates { grid-template-columns: 1fr; }
  .coordinate-card { min-height: 190px; }
}
@media (max-width: 380px) {
  .coordinate-card { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .orbit-system { width: 80px; height: 80px; }
  .planet { width: 42px; height: 42px; }
  .coordinate-description { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .satellite { animation: none; }
  .coordinate-card { transition: none; }
}

/* ============ Guided lead chat ============ */
.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;
}
body.chat-active { overflow: hidden; }
body.chat-active #entry { display: none; }
.lead-chat {
  --chat-green: #21e6a8;
  --chat-green-dark: #087a61;
  --chat-panel: rgba(7, 17, 38, .94);
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #f6f9ff;
  background:
    radial-gradient(circle at 85% 15%, rgba(93, 201, 255, .12), transparent 34%),
    linear-gradient(rgba(3, 8, 24, .82), rgba(3, 8, 24, .96));
  font-family: 'Space Mono', monospace;
}
.lead-chat.is-leaving { animation: chat-warp .8s ease-in forwards; pointer-events: none; }
@keyframes chat-warp { to { opacity: 0; transform: scale(1.08); filter: blur(12px); } }
.chat-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 42px) 12px;
  background: rgba(6, 22, 44, .88);
  border-bottom: 1px solid rgba(93, 201, 255, .25);
  box-shadow: 0 8px 35px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}
.chat-avatar {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px;
  display: grid; place-items: center; overflow: visible;
  border: 1px solid rgba(93, 201, 255, .5); border-radius: 50%;
  background: radial-gradient(circle, #172c54, #071126);
  box-shadow: 0 0 24px rgba(93, 201, 255, .2);
}
.chat-avatar img { width: 42px; height: 42px; object-fit: cover; object-position: center 34%; border-radius: 50%; }
.presence-dot {
  position: absolute; right: -1px; bottom: 2px; width: 11px; height: 11px;
  border: 2px solid #07162c; border-radius: 50%; background: var(--chat-green);
  box-shadow: 0 0 9px var(--chat-green);
}
.chat-contact { min-width: 0; }
.chat-name { font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.verified {
  display: inline-grid; place-items: center; width: 16px; height: 16px;
  color: #031326; background: var(--chat-green); border-radius: 50%; font-size: 11px;
}
.chat-status { margin-top: 4px; color: #aebed0; font-size: 10px; }
.chat-status span { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--chat-green); border-radius: 50%; }
.chat-signal { margin-left: auto; color: rgba(93, 201, 255, .68); font: 700 8px/1 'Orbitron', sans-serif; letter-spacing: 2px; }
.chat-messages {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 28px clamp(15px, 4vw, 30px) 32px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 201, 255, .35) transparent;
}
.message-row { display: flex; gap: 10px; margin: 0 0 13px; animation: message-in .32s ease both; }
.message-row.user { justify-content: flex-end; }
.message-row.bot + .message-row.bot { margin-top: -4px; }
.mini-avatar {
  align-self: flex-end; flex: 0 0 30px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: #102348;
  border: 1px solid rgba(93, 201, 255, .28);
}
.mini-avatar img { width: 26px; height: 26px; object-fit: cover; object-position: center 34%; border-radius: 50%; }
.bubble {
  max-width: min(620px, calc(100vw - 88px));
  padding: 12px 15px;
  border: 1px solid rgba(93, 201, 255, .14);
  border-radius: 5px 16px 16px 16px;
  background: rgba(22, 39, 62, .96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  font-size: clamp(12px, 1.5vw, 14px); line-height: 1.58;
}
.user .bubble {
  border-color: rgba(33, 230, 168, .28); border-radius: 16px 5px 16px 16px;
  background: linear-gradient(135deg, #087a61, #075746);
}
.bubble-meta { float: right; margin: 8px 0 -5px 10px; color: #69d8ff; font-size: 10px; letter-spacing: -2px; }
.typing-bubble { display: flex; gap: 5px; align-items: center; min-width: 58px; min-height: 25px; }
.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: #8aa0b8; animation: typing 1.15s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-5px); opacity: 1; } }
@keyframes message-in { from { opacity: 0; transform: translateY(8px); } }
.chat-controls {
  padding: 10px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(3, 8, 24, .97) 25%);
}
.quick-replies { width: min(760px, 100%); margin: 0 auto 10px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.quick-replies:empty { display: none; }
.reply-button, .whatsapp-button {
  appearance: none; border: 1px solid rgba(33, 230, 168, .55); border-radius: 999px;
  padding: 11px 17px; color: #edfff9; background: rgba(8, 96, 75, .88);
  font: 700 12px/1.2 'Space Mono', monospace; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.reply-button:hover, .reply-button:focus-visible, .whatsapp-button:hover, .whatsapp-button:focus-visible {
  transform: translateY(-2px); background: #0c9876; box-shadow: 0 8px 24px rgba(33, 230, 168, .18); outline: 2px solid #8fffdc; outline-offset: 2px;
}
.chat-form { width: min(760px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 48px; gap: 9px; }
.chat-form.is-hidden { display: none; }
.chat-form input {
  min-width: 0; height: 48px; padding: 0 17px; color: #fff;
  background: rgba(14, 28, 50, .96); border: 1px solid rgba(93, 201, 255, .25); border-radius: 14px;
  font: 13px 'Space Mono', monospace; outline: none;
}
.chat-form input:focus { border-color: #5dc9ff; box-shadow: 0 0 0 3px rgba(93, 201, 255, .12); }
.chat-form button {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px;
  background: var(--chat-green); color: #041225; cursor: pointer;
}
.chat-form button:disabled, .chat-form input:disabled { opacity: .55; cursor: wait; }
.chat-form svg { width: 21px; fill: currentColor; }
.chat-legal { margin: 8px auto 0; text-align: center; color: #72839b; font-size: 9px; }
.chat-legal a { color: #9eb3ca; }
.turnstile-container { width: min(760px, 100%); margin: 8px auto 0; display: flex; justify-content: center; }
@media (max-width: 560px) {
  .chat-header { min-height: 68px; padding-left: 14px; }
  .chat-avatar { width: 42px; height: 42px; }
  .chat-avatar img { width: 36px; height: 36px; }
  .chat-signal { display: none; }
  .chat-messages { padding-top: 19px; }
  .bubble { max-width: calc(100vw - 116px); font-size: 12px; overflow-wrap: anywhere; }
  .reply-button { flex: 1 1 100%; min-width: 0; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-chat *, .lead-chat *::before, .lead-chat *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ Comms (social channels) ============ */
.comms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.comm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 10px 16px;
  background: rgba(8, 14, 40, 0.55);
  border: 1px solid var(--silver-deep);
  text-decoration: none;
  color: var(--silver);
  transition: all 0.35s ease;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.comm::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--saber-blue);
  border-left: 1px solid var(--saber-blue);
  opacity: 0.6;
}
.comm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(93, 201, 255, 0.04) 2px 3px
  );
  pointer-events: none;
}
.comm:hover {
  border-color: var(--saber-blue);
  background: rgba(20, 40, 90, 0.65);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(93, 201, 255, 0.4),
    0 12px 40px rgba(93, 201, 255, 0.2);
}
.comm-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle, rgba(8, 14, 40, 0.8) 0%, rgba(2, 4, 26, 1) 70%);
  border: 1px solid var(--silver-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.35s ease;
  box-shadow:
    inset 0 0 12px rgba(93, 201, 255, 0.15),
    0 0 20px rgba(93, 201, 255, 0.1);
}
.comm:hover .comm-orb {
  box-shadow:
    inset 0 0 14px rgba(93, 201, 255, 0.3),
    0 0 24px rgba(93, 201, 255, 0.4);
  border-color: var(--saber-blue);
}
.comm-orb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px dashed rgba(93, 201, 255, 0.25);
  border-radius: 50%;
  transition: all 0.5s ease;
}
.comm:hover .comm-orb::before {
  animation: orb-rotate 4s linear infinite;
  border-color: rgba(93, 201, 255, 0.55);
}
@keyframes orb-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.comm-orb svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}
.comm-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--silver);
  position: relative;
  z-index: 1;
}
.comm-channel {
  position: absolute;
  top: 6px; right: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--silver-mute);
  z-index: 1;
}
@media (max-width: 540px) {
  .comms { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Footer ============ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 40px;
  color: var(--silver-mute);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1.8;
}
footer .sep {
  width: 60px;
  height: 1px;
  background: var(--silver-deep);
  margin: 0 auto 22px;
}
footer .tagline {
  display: block;
  margin-top: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--saber-blue);
  opacity: 0.7;
}
footer .heart { color: var(--saber-red); }

.chewie-button {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  z-index: 110;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9955, #ff2c2c);
  color: #091523;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(255, 94, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0.98;
}
.chewie-button:hover {
  transform: translate(-50%, -2px);
  box-shadow: 0 0 42px rgba(255, 130, 0, 0.55);
}
@keyframes chewie-pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(255, 94, 0, 0.35); }
  50% { box-shadow: 0 0 44px rgba(255, 130, 0, 0.55); }
}
.chewie-button {
  animation: chewie-pulse 2s infinite;
}
.chewie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  pointer-events: none;
}
.chewie-overlay.active {
  display: flex;
}
.chewie-overlay img {
  max-width: min(92vw, 520px);
  max-height: min(92vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 170, 65, 0.55));
  animation: chewie-pop 0.45s ease;
}
@keyframes chewie-pop {
  from { transform: scale(0.74) rotate(-7deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ============ Audio toggle ============ */
#audioBtn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  width: 44px; height: 44px;
  background: rgba(8, 14, 40, 0.85);
  border: 1px solid var(--saber-blue);
  color: var(--saber-blue);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(93, 201, 255, 0.2);
  opacity: 0;
  transform: scale(0.7);
}
#audioBtn.in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease 1.5s, transform 0.6s ease 1.5s;
}
#audioBtn:hover {
  background: rgba(30, 60, 100, 0.85);
  box-shadow: 0 0 30px rgba(93, 201, 255, 0.5);
}
#audioBtn .icon-on, #audioBtn .icon-off {
  line-height: 1;
}
#audioBtn.muted .icon-on { display: none; }
#audioBtn:not(.muted) .icon-off { display: none; }

/* ============ Transmission modal ============ */
#modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 26, 0.85);
  backdrop-filter: blur(8px);
}
#modal[data-open] {
  display: flex;
  animation: modal-in 0.4s ease;
}
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  max-width: 460px;
  padding: 36px 28px;
  background: var(--void-2);
  border: 1px solid var(--saber-blue);
  position: relative;
  text-align: center;
  box-shadow:
    0 0 60px rgba(93, 201, 255, 0.4),
    inset 0 0 30px rgba(93, 201, 255, 0.05);
}
.modal-content::before, .modal-content::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--saber-blue);
}
.modal-content::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.modal-content::after  { bottom: 0; right: 0; border-left: none; border-top: none; }
.modal-kicker {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold-glow);
  margin-bottom: 16px;
  animation: blink-soft 1.6s ease-in-out infinite;
}
.modal-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--silver);
  margin-bottom: 18px;
  text-shadow: 0 0 14px rgba(93, 201, 255, 0.6);
}
.modal-content p {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver-dim);
  letter-spacing: 1px;
  margin-bottom: 28px;
}
#modalClose {
  background: transparent;
  border: 1px solid var(--saber-blue);
  color: var(--silver);
  padding: 10px 22px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#modalClose:hover {
  background: rgba(93, 201, 255, 0.15);
  box-shadow: 0 0 24px rgba(93, 201, 255, 0.4);
}

/* ============ Restored Banner ============ */
#restoredBanner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 500;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--saber-green);
  background: rgba(6, 11, 42, 0.92);
  border: 1px solid var(--saber-green);
  padding: 12px 22px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(107, 255, 127, 0.2);
}
#restoredBanner.active {
  animation: restored-in-out 3.5s ease forwards;
}
@keyframes restored-in-out {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  78%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

/* ============ Hidden Easter Egg Stars ============ */
.secret-star {
  position: absolute;
  width: 14px; height: 14px;
  z-index: 5;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.2s ease;
}
.secret-star::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--gold-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
  opacity: 0.45;
  animation: secret-pulse 2.4s ease-in-out infinite;
}
.secret-star:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(255, 216, 107, 0.5);
}
@keyframes secret-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50%      { opacity: 0.7; transform: scale(1.15); }
}
