/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: radial-gradient(circle at top, #140021 0%, #020308 55%, #000000 100%);
  color: #f9f5ff;
  overflow: hidden;
}

/* ===== Background glow & noise ===== */

.bg-glow {
  position: fixed;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%, rgba(255, 0, 189, 0.32), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(0, 255, 255, 0.27), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(140, 0, 255, 0.55), transparent 65%);
  filter: blur(22px);
  opacity: 0.8;
  z-index: -2;
  animation: bg-pulse 18s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.06);
    opacity: 0.8;
  }
}

/* ===== Layout ===== */

.shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.holo-card {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 28px;
  padding: 1.9rem 1.9rem 1.7rem;
  background: radial-gradient(circle at 0% 0%, #2b143a 0%, #070510 55%, #030308 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 60px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(186, 85, 255, 0.4);
  overflow: hidden;
}

/* reserve some space on right for the portrait (desktop-ish widths) */
@media (min-width: 720px) {
  .holo-card {
    padding-right: 250px;
  }
}

/* Scanline layer */
.scanline {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  animation: scan-move 4s linear infinite;
}

@keyframes scan-move {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(3px);
  }
}

/* ===== Portrait hologram ===== */

.portrait-wrapper {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  width: 34%;
  max-width: 190px;
  pointer-events: none;
  z-index: 1;
}

.hero-portrait {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.78;
  filter: drop-shadow(0 0 18px rgba(120, 200, 255, 0.8))
    drop-shadow(0 0 34px rgba(180, 120, 255, 0.7));
  mix-blend-mode: screen;
  animation:
    holoFloat 7s ease-in-out infinite alternate,
    holoFlicker 2.4s linear infinite;
  border-radius: 35% 50% 45% 55%;
}

@keyframes holoFloat {
  0% {
    transform: translateY(4px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    transform: translateY(2px) scale(0.99);
  }
}

@keyframes holoFlicker {
  0%,
  100% {
    opacity: 0.75;
  }
  8% {
    opacity: 0.4;
  }
  9% {
    opacity: 0.85;
  }
  30% {
    opacity: 0.7;
  }
  31% {
    opacity: 0.3;
  }
  32% {
    opacity: 0.8;
  }
  60% {
    opacity: 0.9;
  }
}

/* soften on very small screens so it doesn't overwhelm */
@media (max-width: 480px) {
  .portrait-wrapper {
    width: 45%;
    max-width: 155px;
    top: 1.3rem;
    right: 0.8rem;
  }
  .hero-portrait {
    opacity: 0.55;
  }
}

/* ===== Brand row ===== */

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}

.logo-k3 {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 0%, #ff4d9c, #a100ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
  box-shadow:
    0 0 18px rgba(255, 70, 164, 0.9),
    0 0 42px rgba(140, 0, 255, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.2rem;
}

.brand-tagline {
  font-size: 0.82rem;
  color: rgba(237, 228, 255, 0.78);
}

/* ===== Status row ===== */

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 2;
}

.status-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 200, 255, 0.7);
}

.status-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 165, 255, 0.4);
  background: radial-gradient(circle at 0% 0%, rgba(157, 238, 255, 0.35), transparent),
    rgba(5, 9, 30, 0.9);
  color: rgba(233, 230, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-pill.away {
  border-color: rgba(144, 189, 255, 0.7);
}

/* slightly tighter for inline placement */
.status-pill.tight {
  padding-inline: 0.55rem;
}

/* LED dot */
.led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0%, #8cfffb, #5166ff);
  box-shadow:
    0 0 6px rgba(128, 202, 255, 0.9),
    0 0 14px rgba(115, 145, 255, 0.7);
  animation: ledPulse 1.5s ease-in-out infinite;
}

@keyframes ledPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

/* ===== Text blocks ===== */

.main-message {
  position: relative;
  z-index: 2;
  margin-bottom: 1.6rem;
  max-width: 520px;
}

.headline {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.subline {
  font-size: 0.93rem;
  line-height: 1.45;
  color: rgba(230, 223, 255, 0.86);
}

/* ===== Ticker ===== */

.ticker {
  position: relative;
  z-index: 2;
  margin-bottom: 1.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 121, 255, 0.45);
  background: radial-gradient(circle at 0% 50%, rgba(255, 0, 163, 0.32), transparent),
    rgba(10, 3, 25, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
}

.ticker {
  position: relative;
  z-index: 2;
  margin-bottom: 1.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 121, 255, 0.45);
  background: radial-gradient(circle at 0% 50%, rgba(255, 0, 163, 0.32), transparent),
    rgba(10, 3, 25, 0.96);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
}

.ticker-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 224, 255, 0.86);
  flex-shrink: 0;
}

.ticker-text {
  font-size: 0.85rem;
  /* allow wrapping instead of cutting off */
  white-space: normal;
  overflow: visible;
  text-overflow: initial;

  flex: 1;
  min-width: 0;
  color: rgba(230, 223, 255, 0.9);
  transition: opacity 0.22s ease-out;
}

/* ===== Links ===== */

.links {
  position: relative;
  z-index: 2;
  margin-bottom: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.link-pill {
  flex: 1 1 calc(50% - 0.6rem);
  min-width: 130px;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  color: #f5f0ff;
  background: radial-gradient(circle at 0% 0%, #ff4dba, #7b2bff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    background 0.18s ease-out, opacity 0.18s ease-out;
}

.link-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  opacity: 0.96;
}

.link-pill.ghost {
  background: rgba(12, 9, 30, 0.8);
  border-color: rgba(203, 189, 255, 0.5);
}

/* ===== Footnote ===== */

.footnote {
  position: relative;
  z-index: 2;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(210, 203, 245, 0.85);
}

/* ===== Small screens tweaks ===== */

@media (max-width: 640px) {
  .holo-card {
    border-radius: 24px;
    padding: 1.4rem 1.2rem 1.4rem;
  }

  .brand {
    margin-bottom: 0.9rem;
  }

  .headline {
    font-size: 1.45rem;
  }

  .links {
    flex-direction: column;
  }

  .link-pill {
    flex: 1 1 auto;
  }
}