:root {
  --bg: #07050d;
  --bg-accent: #1a1030;
  --panel: rgba(20, 14, 35, 0.82);
  --panel-strong: #120b22;
  --text: #f4eeff;
  --muted: #c5b8e7;
  --line: rgba(176, 133, 255, 0.2);
  --brand: #a14cff;
  --brand-dark: #6d21c8;
  --shadow: 0 24px 55px rgba(8, 3, 18, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PT Sans", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(161, 76, 255, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(91, 36, 168, 0.28), transparent 38%),
    linear-gradient(135deg, #04020a 0%, var(--bg) 46%, #150a28 100%);
}

.bubble-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 231, 231, 0.95), rgba(255, 231, 231, 0.25) 18%, transparent 22%),
    radial-gradient(circle at 35% 35%, #ff7d7d 0%, #ff3131 40%, #b30000 100%);
  box-shadow:
    0 0 24px rgba(255, 54, 54, 0.35),
    inset -12px -16px 18px rgba(122, 0, 0, 0.38);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.5);
  animation: bubble-pop 0.35s ease forwards, bubble-float linear infinite;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.bubble:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

@keyframes bubble-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 0.92;
    transform: scale(1);
  }
}

@keyframes bubble-float {
  from {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }

  to {
    translate: 0 0;
  }
}

.bubble-counter {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid rgba(255, 110, 110, 0.4);
  border-radius: 999px;
  background: rgba(30, 11, 18, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #ffd6d6;
  backdrop-filter: blur(8px);
}

.robot-companion {
  --look-x: 0px;
  --look-y: 0px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 88px;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.robot-head {
  position: relative;
  width: 78px;
  height: 56px;
  margin: 0 auto;
  border: 3px solid #bfd4ff;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #eaf2ff 0%, #a7c2ff 100%);
}

.robot-head::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 6px;
  height: 16px;
  background: #bfd4ff;
  transform: translateX(-50%);
}

.robot-head::after {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5555;
  box-shadow: 0 0 18px rgba(255, 85, 85, 0.6);
  transform: translateX(-50%);
}

.robot-eye {
  position: absolute;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #13213d;
  overflow: hidden;
}

.robot-eye::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4b4b;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 0.08s linear;
}

.robot-eye-left {
  left: 16px;
}

.robot-eye-right {
  right: 16px;
}

.robot-body {
  position: relative;
  width: 60px;
  height: 68px;
  margin: 8px auto 0;
  border: 3px solid #bfd4ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #8fb4ff 0%, #6f8fd1 100%);
}

.robot-body::before,
.robot-body::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 12px;
  height: 34px;
  border-radius: 10px;
  background: #bfd4ff;
}

.robot-body::before {
  left: -12px;
  transform: rotate(18deg);
}

.robot-body::after {
  right: -12px;
  transform: rotate(-18deg);
}

.robot-body {
  box-shadow: inset 0 -10px 16px rgba(16, 37, 84, 0.2);
}

.robot-body > span {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero,
.section-header,
.content-panel,
.person-card,
.nav-card {
  backdrop-filter: blur(8px);
}

.hero,
.section-header {
  text-align: center;
  padding: 40px 24px 24px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  text-shadow: 0 0 22px rgba(161, 76, 255, 0.28);
}

h1,
h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  line-height: 1.1;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
}

.section-header p,
.content-panel p,
.nav-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(24, 15, 42, 0.95), rgba(12, 8, 24, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
}

.nav-card:hover {
  transform: translateY(-8px);
  border-color: rgba(161, 76, 255, 0.55);
  box-shadow: 0 26px 60px rgba(90, 33, 167, 0.35);
}

.nav-card h2,
.person-card h2,
.coach-panel h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  margin-top: 0;
  line-height: 1.25;
}

.countdown-section {
  margin-top: 30px;
}

.countdown-panel {
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 14, 35, 0.9), rgba(10, 7, 20, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.countdown-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.time-card {
  padding: 22px 14px;
  background: rgba(161, 76, 255, 0.08);
  border: 1px solid rgba(161, 76, 255, 0.22);
  border-radius: 18px;
}

.time-value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--text);
}

.time-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inner-page {
  padding-top: 28px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #d8baff;
  text-decoration: none;
  font-weight: 700;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.person-card,
.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
}

.person-card h2 {
  margin-top: 18px;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 2px dashed rgba(161, 76, 255, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(161, 76, 255, 0.12), rgba(56, 25, 96, 0.22)),
    var(--panel-strong);
  color: var(--muted);
  font-size: 1.1rem;
}

.person-photo {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 320px;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 18px;
  border: 1px solid rgba(161, 76, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: var(--panel-strong);
}

.person-photo-roma {
  object-position: center 18%;
}

.person-photo-max {
  object-position: center 20%;
}

.person-photo-patriot {
  object-position: center 14%;
}

.content-panel {
  padding: 28px;
}

.placeholder-text {
  margin: 0;
  font-size: 1.15rem;
}

.awards-list {
  margin: 0;
  padding-left: 24px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.8;
}

.awards-list li + li {
  margin-top: 8px;
}

.coach-panel {
  max-width: 860px;
  margin: 0 auto;
}

.robot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.robot-photo {
  min-height: 360px;
  max-height: 360px;
  object-position: center;
}

.robot-description {
  max-width: 980px;
  margin: 28px auto 0;
}

.robot-description h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-card {
    min-height: 220px;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: stretch;
  }

  .robot-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bubble-counter {
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .robot-companion {
    right: 10px;
    bottom: 10px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }

  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 28px 0 40px;
  }

  .hero,
  .section-header {
    padding: 24px 10px 18px;
  }

  .photo-placeholder {
    min-height: 240px;
  }

  .person-photo {
    min-height: 240px;
    max-height: 240px;
  }

  .robot-photo {
    min-height: 260px;
    max-height: 260px;
  }

  .nav-card,
  .countdown-panel,
  .person-card,
  .content-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .countdown-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .time-card {
    padding: 18px 10px;
  }
}

@media (max-width: 420px) {
  .countdown-grid {
    grid-template-columns: 1fr;
  }
}
