@charset "UTF-8";

/* One centered six-star meter, with the two families balanced beneath it. */
#people { position: relative; isolation: isolate; }
#people::before,
#people::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-size: 110% 100%;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}
#people::before {
  background-image: radial-gradient(ellipse 74% 90% at 16% 48%, #ff3567 0%, #ff3567d9 28%, #ff35675c 63%, #ff356700 100%);
  background-position: 70% 50%;
}
#people::after {
  background-image: radial-gradient(ellipse 74% 90% at 84% 52%, #387dff 0%, #387dffd9 28%, #387dff5c 63%, #387dff00 100%);
  background-position: 20% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  #people:has(.crew-game.is-assembling)::before { animation: crew-siren-red 1.2s ease-in-out infinite; }
  #people:has(.crew-game.is-assembling)::after { animation: crew-siren-blue 1.2s ease-in-out infinite; }
}
@keyframes crew-siren-red {
  0%, 50%, 100% { opacity: .03; background-position: 70% 50%; }
  25% { opacity: .48; background-position: 20% 50%; }
}
@keyframes crew-siren-blue {
  0%, 50%, 100% { opacity: .03; background-position: 20% 50%; }
  75% { opacity: .48; background-position: 80% 50%; }
}
#people .section-heading {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  text-align: center;
}
#people .section-heading > div { max-width: 100%; }
#people .section-heading .eyebrow { justify-content: center; }
#people .section-heading > p { max-width: 640px; margin: 0; text-align: center; }

.crew-game { --crew-pink: #ffc0df; --crew-blue: #c2ddff; min-width: 0; text-align: center; }
.crew-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  border: 0;
}
.crew-wanted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.crew-game-stars { display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; }
.crew-game-stars [data-crew-star] {
  --crew-star-color: var(--crew-pink);
  --crew-star-glow: #f6a3d47a;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  fill: transparent;
  stroke: var(--crew-star-color);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .62;
  transform-origin: center;
  transition: fill .25s ease, stroke .25s ease, opacity .25s ease, filter .3s ease;
}
.crew-game-stars [data-crew-star="katya"],
.crew-game-stars [data-crew-star="nikita"],
.crew-game-stars [data-crew-star="daniil"] {
  --crew-star-color: var(--crew-blue);
  --crew-star-glow: #a5c1ff80;
}
.crew-game-stars [data-crew-star].is-active {
  fill: var(--crew-star-color);
  stroke: var(--crew-star-color);
  opacity: 1;
  filter: drop-shadow(0 0 7px var(--crew-star-glow));
  animation: crew-star-arrive .38s cubic-bezier(.2, .75, .3, 1) both;
}
.crew-game-count { margin: 0; color: #e4d6ee; font-size: 14px; line-height: 1.6; white-space: nowrap; }
.crew-game-count [data-crew-count] { color: #fff8fc; font-family: var(--ui-font); font-weight: 750; }
.crew-assemble { flex: none; width: auto; min-width: 200px; max-width: 100%; min-height: 48px; padding: 11px 23px; }
.crew-game-hint { max-width: 560px; margin: 20px auto 36px; color: #dfcee9; font-size: 14px; line-height: 1.7; text-align: center; text-wrap: balance; }

.crew-game .crew-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(960px, 100%);
  gap: 0;
  margin-inline: auto;
}
.crew-game .crew-card { min-width: 0; padding: 8px 0 16px; text-align: center; }
.crew-game .crew-guests { --crew-team: var(--crew-pink); --crew-team-soft: #ffc0df80; --crew-team-glow: #f4a6cd48; }
.crew-game .crew-family { --crew-team: var(--crew-blue); --crew-team-soft: #c2ddff80; --crew-team-glow: #a5c1ff4d; }
.crew-game .crew-card .crew-tag,
.crew-game .crew-card .crew-heading h3 { color: var(--crew-team); }
.crew-game .crew-card + .crew-card { padding: 8px 0 16px; border-top: 0; border-left: 1px solid #d9bde533; }
.crew-game .crew-heading { align-items: center; min-height: 0; margin-bottom: 24px; text-align: center; }
.crew-game .crew-names { align-items: center; gap: 8px; }

.crew-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  appearance: none;
  background: transparent;
  color: var(--crew-team, #fef4fc);
  font-family: "Inter", "Manrope", Arial, sans-serif;
  font-size: clamp(36px, 3.7vw, 49px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.055em;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.crew-member > span {
  min-width: 0;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .14em;
  transition: text-decoration-color .2s ease, text-shadow .25s ease;
}
@media (hover: hover) {
  .crew-member:hover > span { text-decoration-color: var(--crew-team-soft); }
}
.crew-member:focus-visible { outline: 2px solid var(--crew-team); outline-offset: 6px; }
.crew-member:focus-visible > span { text-decoration-color: var(--crew-team); }
.crew-member.is-active > span { text-decoration-color: var(--crew-team); text-shadow: 0 0 14px var(--crew-team-glow); }
.crew-game.is-assembling .crew-assemble,
.crew-game.is-assembling .crew-member { cursor: progress; }
.crew-assemble:disabled { opacity: .7; }
.crew-game-status { max-width: 650px; min-height: 24px; margin: 24px auto 0; color: #ffdaeb; font-size: 16px; line-height: 1.5; text-align: center; }

@keyframes crew-star-arrive {
  0% { transform: scale(.88); }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (max-width: 560px) {
  #people .section-heading { gap: 17px; margin-bottom: 30px; }
  .crew-controls { gap: 17px; }
  .crew-game-stars { gap: 6px; }
  .crew-game-stars [data-crew-star] { width: 32px; height: 32px; flex-basis: 32px; }
  .crew-assemble { min-height: 50px; }
  .crew-game-hint { margin: 19px auto 31px; }
  .crew-game .crew-grid { grid-template-columns: 1fr; gap: 28px; }
  .crew-game .crew-card { padding: 0 0 12px; }
  .crew-game .crew-card + .crew-card { padding: 29px 0 12px; border-left: 0; border-top: 1px solid #d9bde533; }
  .crew-game .crew-heading { margin-bottom: 23px; }
  .crew-member { font-size: 43px; }
  .crew-game-status { margin-top: 21px; }
}
@media (max-width: 350px) {
  .crew-game-stars { gap: 6px; }
  .crew-game-stars [data-crew-star] { width: 30px; height: 30px; flex-basis: 30px; }
  .crew-member { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  #people::before,
  #people::after { display: none; animation: none !important; opacity: 0 !important; }
  .crew-game-stars [data-crew-star],
  .crew-member > span,
  .crew-assemble {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
