:root {
  --ecs-ink: #03050d;
  --ecs-ink-2: #0a1024;
  --ecs-text: #f7f8ff;
  --ecs-muted: rgba(247,248,255,0.76);
  --ecs-line: rgba(132, 147, 255, 0.18);
  --ecs-blue: #3154ff;
  --ecs-blue-2: #8ea2ff;
  --ecs-violet: #b66cff;
  --ecs-pink: #e34dff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  touch-action: manipulation;
}

body.ecs-body {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ecs-text);
  background: var(--ecs-ink);
  font-family: Inter, Avenir Next, Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  user-select: none;
}

.ecs-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 12%, rgba(67, 84, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 82% 18%, rgba(180, 87, 255, 0.16), transparent 28rem),
    linear-gradient(110deg, rgba(4, 7, 16, 0.97), rgba(12, 16, 39, 0.985) 44%, rgba(2, 4, 11, 1));
}

.ecs-texture,
.ecs-texture::before,
.ecs-texture::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.ecs-texture {
  z-index: -7;
  opacity: 0.9;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.03), transparent 18%, transparent 64%, rgba(255,255,255,0.018)),
    radial-gradient(circle at 27% 41%, rgba(62, 84, 255, 0.15), transparent 28rem);
}

.ecs-texture::before {
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
}

.ecs-texture::after {
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,0.32) 0 1px, transparent 1px),
    radial-gradient(circle at 86% 78%, rgba(83, 113, 255,0.45) 0 1px, transparent 1px);
  background-size: 34px 34px, 48px 48px;
  mix-blend-mode: screen;
}

.ecs-ambient {
  position: absolute;
  z-index: -6;
  width: 50vw;
  height: 50vw;
  max-width: 860px;
  max-height: 860px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.22;
  pointer-events: none;
}

.ecs-ambient--left {
  left: -24vw;
  top: 2vh;
  background: radial-gradient(circle, rgba(60, 72, 255, 0.7), transparent 62%);
}

.ecs-ambient--right {
  right: -18vw;
  top: -18vh;
  background: radial-gradient(circle, rgba(180, 92, 255, 0.58), transparent 65%);
}

.ecs-plate {
  position: absolute;
  z-index: -5;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.006));
  border: 1px solid rgba(150, 160, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transform: rotate(-18deg) skewX(-10deg);
}

.ecs-plate--one {
  width: 50vw;
  height: 28vh;
  right: -12vw;
  top: -12vh;
}

.ecs-plate--two {
  width: 36vw;
  height: 18vh;
  left: -12vw;
  top: 5vh;
  opacity: 0.74;
}

.ecs-content {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3.4vh, 40px);
  padding: clamp(18px, 3.2vh, 34px) clamp(18px, 4vw, 68px) 0;
  min-height: 0;
}

.ecs-hero {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(96px, 18vh, 190px);
}

.ecs-logo,
.ecs-brand-image-wrap {
  margin-bottom: clamp(16px, 2vh, 20px);
}

.ecs-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255,255,255,0.18);
}

.ecs-logo span {
  display: block;
  font-size: clamp(24px, calc(var(--ecs-logo-width, 190px) / 5), 38px);
  font-weight: 950;
  letter-spacing: -0.105em;
  transform: scaleX(1.12);
}

.ecs-logo small {
  display: block;
  margin-top: 0.22em;
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 500;
  letter-spacing: 0.64em;
  opacity: 0.68;
  padding-left: 0.55em;
}

.ecs-brand-image {
  display: block;
  width: min(var(--ecs-logo-width, 190px), 58vw);
  max-width: 58vw;
  height: auto;
  max-height: 92px;
  margin: 0 auto;
}

.ecs-hero h1 {
  display: inline-block;
  margin: 0;
  padding: 0 0 0.14em;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 760;
  color: transparent;
  background: linear-gradient(112deg, #fbf5ff 0%, #b591ff 26%, #7f9bff 54%, #2448ff 82%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 14px 26px rgba(44, 72, 255, 0.18));
}

.ecs-subtitle {
  margin: clamp(18px, 2.2vh, 22px) auto 0;
  max-width: 900px;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ecs-muted);
}

.ecs-instruction {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: clamp(16px, 2vh, 18px) 0 0;
  color: rgba(247,248,255,0.68);
  font-size: clamp(15px, 1.18vw, 20px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.ecs-instruction span {
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ecs-violet), var(--ecs-blue));
  box-shadow: 0 0 14px rgba(92, 113, 255, 0.8);
  flex: 0 0 auto;
}

.ecs-runner-wrap {
  position: relative;
  width: calc(100% + clamp(36px, 8vw, 136px));
  height: clamp(238px, 33vh, 340px);
  margin-top: 0;
  margin-left: calc(-1 * clamp(18px, 4vw, 68px));
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(6,9,20,0.14) 40%, rgba(4,7,15,0.45) 100%);
  border-radius: 0;
}

.ecs-runner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: manipulation;
}

.ecs-overlay {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  display: grid;
  gap: 6px;
  place-items: center;
  min-width: min(460px, calc(100% - 40px));
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid rgba(150, 160, 255, 0.2);
  border-radius: 22px;
  background: rgba(6, 8, 18, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.36);
  transition: opacity 220ms ease, transform 220ms ease;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font: inherit;
  text-align: center;
}

.ecs-overlay.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.ecs-overlay-kicker {
  color: var(--ecs-blue-2);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.ecs-overlay-title {
  color: #fff;
  font-size: clamp(16px, 1.35vw, 21px);
  letter-spacing: 0.04em;
}

.ecs-overlay-score {
  color: rgba(247,248,255,0.68);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ecs-overlay:not(.is-hidden) {
  cursor: pointer;
  pointer-events: auto;
}
.ecs-overlay:focus,
.ecs-overlay:focus-visible {
  outline: none;
}

.ecs-status {
  position: relative;
  z-index: 4;
  height: clamp(56px, 7vh, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 clamp(22px, 4.7vw, 70px);
  background: linear-gradient(180deg, rgba(3,5,13,0.04), rgba(3,5,13,0.24));
}

.ecs-status div {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(12px, 1.4vw, 24px);
  min-width: 0;
}

.ecs-status span {
  color: rgba(247,248,255,0.73);
  font-size: clamp(12px, 0.95vw, 14px);
  letter-spacing: 0.42em;
  white-space: nowrap;
}

.ecs-status strong {
  color: var(--ecs-blue-2);
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(72, 98, 255, 0.74);
}

.ecs-status div:last-child strong {
  font-size: clamp(12px, 0.95vw, 14px);
  letter-spacing: 0.42em;
  text-shadow: 0 0 12px rgba(72, 98, 255, 0.64);
}

.ecs-status i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ecs-blue);
  box-shadow: 0 0 0 12px rgba(49, 84, 255, 0.11), 0 0 24px rgba(70, 95, 255, 0.95);
}


@media (min-width: 621px) and (max-width: 1180px) {
  .ecs-hero {
    padding-top: clamp(130px, 20vh, 210px);
  }
}

@media (max-width: 900px) {
  .ecs-scene {
    min-height: 620px;
  }

  .ecs-plate--one {
    width: 68vw;
    right: -18vw;
  }

  .ecs-plate--two {
    width: 48vw;
  }

  .ecs-hero h1 {
    font-size: clamp(36px, 7vw, 56px);
  }

  .ecs-subtitle {
    font-size: clamp(19px, 2.9vw, 26px);
  }

  .ecs-status div:last-child span {
    display: none;
  }
}

@media (max-width: 620px) {
  .ecs-scene {
    min-height: 600px;
  }

  .ecs-content {
    justify-content: space-between;
    gap: 18px;
    padding-inline: 18px;
    padding-top: 18px;
  }

  .ecs-brand-image {
    width: min(var(--ecs-logo-width, 170px), 48vw);
    max-width: 48vw;
    max-height: 72px;
  }

  .ecs-hero {
    padding-top: clamp(120px, 21vh, 190px);
  }

  .ecs-subtitle {
    font-size: 20px;
  }

  .ecs-instruction {
    max-width: 320px;
    justify-content: center;
    font-size: 13px;
  }

  .ecs-runner-wrap {
    width: calc(100% + 36px);
    height: 260px;
    margin-left: -18px;
    border-radius: 0;
  }

  .ecs-overlay {
    min-width: min(360px, calc(100% - 20px));
    min-height: 118px;
    padding: 22px 18px;
    bottom: 18%;
  }

  .ecs-status {
    height: 58px;
    padding-inline: 18px;
  }

  .ecs-status span {
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .ecs-status strong {
    font-size: 22px;
  }

  .ecs-status div:last-child strong {
    display: none;
  }

  .ecs-status i {
    width: 14px;
    height: 14px;
  }
}

@media (max-height: 760px) and (min-width: 760px) {
  .ecs-hero h1 {
    font-size: clamp(38px, 4.6vw, 56px);
  }

  .ecs-hero {
    padding-top: clamp(110px, 18vh, 160px);
  }

  .ecs-subtitle {
    font-size: clamp(18px, 1.65vw, 23px);
    margin-top: 14px;
  }

  .ecs-instruction {
    margin-top: 12px;
  }

  .ecs-runner-wrap {
    height: 245px;
  }

  .ecs-status {
    height: 56px;
  }
}

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