:root {
  --bg: #000;
  --panel: linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(7, 7, 7, 0.9));
  --panel-border: rgba(123, 255, 59, 0.16);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --neon: #7bff3b;
  --neon-soft: rgba(123, 255, 59, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --vh: 1vh;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(123, 255, 59, 0.08), transparent 32%),
    linear-gradient(180deg, #020202 0%, #000 100%);
}

button,
a,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

#fx-canvas,
.ambient,
.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#fx-canvas {
  z-index: 0;
}

.ambient {
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}

.ambient-one {
  background: radial-gradient(circle at 18% 18%, rgba(123, 255, 59, 0.22), transparent 40%);
  transform: translate3d(calc(var(--parallax-x) * -1.2), calc(var(--parallax-y) * -1.2), 0);
}

.ambient-two {
  background: radial-gradient(circle at 76% 68%, rgba(123, 255, 59, 0.16), transparent 38%);
  transform: translate3d(calc(var(--parallax-x) * 1.2), calc(var(--parallax-y) * 1.2), 0);
}

.grid-lines {
  background-image:
    linear-gradient(rgba(123, 255, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 255, 59, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 82%);
  opacity: 0.24;
  animation: breathe 9s ease-in-out infinite;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.screen {
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

.screen-active {
  display: flex;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--neon);
}

.muted {
  color: var(--muted);
}

.loading-copy {
  width: min(90vw, 520px);
}

.loading-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  min-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.loading-copy p {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: 1rem;
}

.pulse-stage {
  width: min(1180px, 100%);
  min-height: calc(var(--vh, 1vh) * 100 - 40px);
  position: relative;
  overflow: hidden;
}

.pulse-stage::before {
  content: "";
  position: absolute;
  inset: 10% 14% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(123, 255, 59, 0.18), transparent 72%);
  filter: blur(28px);
  opacity: 0.7;
}

.pulse-monitor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 1120px);
  height: clamp(120px, 22vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.985);
  transition: opacity 0.55s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 1;
}

.pulse-stage.line-live .pulse-monitor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pulse-stage.rise-live .pulse-monitor {
  transform: translate(-50%, calc(-50% - 280px)) scale(0.94);
}

.pulse-grid,
.pulse-wave,
.pulse-scan {
  position: absolute;
  inset: 0;
}

.pulse-grid {
  background-image:
    linear-gradient(rgba(123, 255, 59, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 255, 59, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  opacity: 0.3;
}

.pulse-wave {
  overflow: visible;
}

.pulse-wave path {
  fill: none;
  stroke: var(--neon);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 8px rgba(123, 255, 59, 0.55))
    drop-shadow(0 0 24px rgba(123, 255, 59, 0.28));
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  opacity: 0.36;
}

.pulse-stage.line-live .pulse-wave path {
  animation:
    monitorDraw 2.75s cubic-bezier(0.2, 0.82, 0.18, 1) forwards,
    monitorGlow 1.65s ease-in-out 2.1s 2;
}

.pulse-scan {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(123, 255, 59, 0.08) 42%,
    rgba(123, 255, 59, 0.38) 50%,
    rgba(123, 255, 59, 0.08) 58%,
    transparent 100%
  );
  transform: translateX(-108%);
  opacity: 0;
  mix-blend-mode: screen;
}

.pulse-stage.line-live .pulse-scan {
  animation: sweepLine 2.8s cubic-bezier(0.22, 0.84, 0.24, 1) forwards;
}

.verse-block {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(980px, 100%);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 44px)) scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 0.8s ease;
  filter: blur(14px);
  z-index: 2;
}

.pulse-stage.verse-live .verse-block {
  opacity: 1;
  transform: translate(-50%, calc(-50% - 20px)) scale(1);
  filter: blur(0);
}

.verse-reference {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(123, 255, 59, 0.28);
  border-radius: 999px;
  background: rgba(123, 255, 59, 0.08);
  color: var(--neon);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  box-shadow: 0 0 30px rgba(123, 255, 59, 0.08);
}

.verse-quote {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0 22px rgba(123, 255, 59, 0.12),
    0 18px 52px rgba(0, 0, 0, 0.65);
}

.pulse-stage.verse-live .verse-quote {
  animation: verseBeat 1.35s ease-in-out 2;
}

.pulse-reveal-logo {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  width: min(360px, 72vw);
  opacity: 0;
  transform: translate(-50%, 30px) scale(0.84);
  filter:
    drop-shadow(0 0 0 rgba(123, 255, 59, 0))
    drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 0.65s ease;
  z-index: 3;
}

.pulse-stage.logo-live .pulse-reveal-logo {
  opacity: 1;
  transform: translate(-50%, 0) scale(0.96);
  filter:
    drop-shadow(0 0 18px rgba(123, 255, 59, 0.22))
    drop-shadow(0 24px 50px rgba(0, 0, 0, 0.48));
}

.video-shell {
  position: relative;
  width: min(100%, 1160px);
  min-height: min(88vh, 760px);
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(123, 255, 59, 0.16), transparent 28%),
    rgba(7, 7, 7, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(123, 255, 59, 0.08),
    0 30px 120px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(123, 255, 59, 0.1);
}

#hero-video,
.placeholder-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hero-video {
  object-fit: cover;
  background: #020202;
}

.placeholder-shell {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(123, 255, 59, 0.14), transparent 36%),
    linear-gradient(160deg, rgba(123, 255, 59, 0.06), rgba(0, 0, 0, 0.18)),
    #030303;
}

.placeholder-panel {
  width: min(100%, 560px);
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.placeholder-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.98;
}

.placeholder-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.placeholder-logo {
  width: min(260px, 56vw);
  margin: 0 0 18px;
  display: block;
}

.placeholder-bar {
  margin-top: 24px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.placeholder-bar span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  animation: loadingBar 1.2s linear infinite;
}

.skip-button,
.icon-button,
.action-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.skip-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.76);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skip-button:hover,
.icon-button:hover,
.action-button:hover {
  transform: translateY(-1px);
}

#message-screen {
  flex-direction: column;
  text-align: center;
  gap: 20px;
}

.message-glow {
  width: min(200px, 60vw);
  height: min(200px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 255, 59, 0.44), transparent 70%);
  animation: heartbeat 1.3s ease-in-out infinite;
}

.cinematic-message {
  margin: 0;
  padding: 0 10px;
  font-size: clamp(2.2rem, 9vw, 5.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  max-width: 980px;
}

#event-screen {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 30px;
  padding-top: 36px;
  padding-bottom: 58px;
}

.hero-copy {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid rgba(123, 255, 59, 0.12);
  background:
    linear-gradient(180deg, rgba(123, 255, 59, 0.04), transparent 56%),
    rgba(10, 10, 10, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}

.pulse-logo {
  width: min(390px, 76vw);
  margin: 18px auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(123, 255, 59, 0.1));
}

.intro-text {
  width: min(760px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 3vw, 1.28rem);
  line-height: 1.8;
}

.hero-divider {
  width: min(320px, 48vw);
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(123, 255, 59, 0.8), transparent);
}

.cards-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.info-card {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 22px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.info-card.card-featured {
  background:
    radial-gradient(circle at top left, rgba(123, 255, 59, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(16, 24, 10, 0.94), rgba(7, 7, 7, 0.92));
  border-color: rgba(123, 255, 59, 0.24);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 30px rgba(123, 255, 59, 0.08);
}

.info-card.card-compact {
  gap: 14px;
}

.info-card.card-compact .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
}

.info-card.card-compact .card-title {
  font-size: 1.2rem;
}

.info-card.visible {
  animation: cardReveal 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(123, 255, 59, 0.12), rgba(123, 255, 59, 0.03));
  color: var(--neon);
  border: 1px solid rgba(123, 255, 59, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title,
.card-text {
  margin: 0;
}

.card-title {
  font-size: 1.5rem;
  line-height: 1.1;
}

.card-text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-button,
.icon-button {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--neon);
  color: #091102;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(123, 255, 59, 0.18);
}

.alt-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ghost-button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(123, 255, 59, 0.24);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

.calendar-dialog {
  width: min(92vw, 560px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.92);
}

.calendar-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.dialog-body {
  padding: 24px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-body h3 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.calendar-options {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  #event-screen {
    padding: 48px 28px 72px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card.card-wide {
    grid-column: span 2;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(1.04);
  }
}

@keyframes loadingBar {
  from {
    transform: translateX(-220%);
  }

  to {
    transform: translateX(360%);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.74;
  }

  40% {
    transform: scale(1.08);
    opacity: 1;
  }

  60% {
    transform: scale(0.98);
  }
}

@keyframes monitorDraw {
  0% {
    stroke-dashoffset: 1800;
    opacity: 0.25;
  }

  68% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0.98;
  }
}

@keyframes monitorGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 8px rgba(123, 255, 59, 0.55))
      drop-shadow(0 0 24px rgba(123, 255, 59, 0.28));
  }

  50% {
    filter:
      drop-shadow(0 0 12px rgba(123, 255, 59, 0.85))
      drop-shadow(0 0 34px rgba(123, 255, 59, 0.42));
  }
}

@keyframes sweepLine {
  0% {
    transform: translateX(-108%);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    transform: translateX(108%);
    opacity: 0;
  }
}

@keyframes verseBeat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  30% {
    transform: scale(1.015);
    opacity: 1;
  }

  52% {
    transform: scale(0.992);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 719px) {
  .pulse-stage {
    min-height: calc(var(--vh, 1vh) * 100 - 24px);
  }

  #event-screen {
    gap: 14px;
    padding: 14px 12px 30px;
  }

  .hero-copy {
    padding: 14px 14px 16px;
    border-radius: 24px;
  }

  .hero-meta {
    gap: 6px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
  }

  .hero-tag {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .pulse-logo {
    width: min(210px, 56vw);
    margin: 8px auto 10px;
  }

  .intro-text {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 34ch;
  }

  .hero-divider {
    width: min(180px, 48vw);
    margin-top: 14px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .info-card {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    min-height: 0;
  }

  .info-card.card-featured {
    padding: 14px;
    border-radius: 22px;
  }

  .info-card.card-compact {
    gap: 9px;
  }

  .card-head {
    gap: 8px;
    align-items: flex-start;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .card-icon svg {
    width: 18px;
    height: 18px;
  }

  .info-card.card-featured .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .info-card.card-compact .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .card-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .card-title {
    font-size: 0.98rem;
    line-height: 1.05;
  }

  .info-card.card-featured .card-title {
    font-size: 1.12rem;
  }

  .info-card.card-compact .card-title {
    font-size: 0.92rem;
  }

  .card-text {
    margin-top: 4px;
    font-size: 0.79rem;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .info-card.card-featured .card-text {
    font-size: 0.83rem;
    line-height: 1.4;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .info-card.card-compact .card-text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .card-actions {
    gap: 6px;
    margin-top: 0;
  }

  .action-button,
  .icon-button,
  .tag {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 10px 10px;
    border-radius: 13px;
    font-size: 0.78rem;
    text-align: center;
  }

  .info-card.card-wide {
    grid-column: span 2;
  }

  .pulse-monitor {
    height: 120px;
  }

  .pulse-stage.rise-live .pulse-monitor {
    transform: translate(-50%, calc(-50% - 220px)) scale(0.9);
  }

  .verse-block {
    width: min(330px, calc(100% - 28px));
  }

  .verse-reference {
    margin-bottom: 12px;
    padding: 9px 14px;
    font-size: 0.74rem;
  }

  .verse-quote {
    max-width: 8.6ch;
    margin: 0 auto;
    font-size: clamp(1.9rem, 10.2vw, 3.4rem);
    line-height: 0.9;
  }

  .pulse-stage.verse-live .verse-block {
    transform: translate(-50%, calc(-50% - 58px)) scale(1);
  }

  .pulse-reveal-logo {
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    width: min(205px, 50vw);
    transform: translate(-50%, 34px) scale(0.82);
  }
}
