/* Quiet game artwork uses the same solid palette as the cards. */
.home .home-hero--crew {
  min-height: 340px;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.home-hero--crew .home-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 28px 42px;
}
.home-hero--crew .home-hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-top: 16px;
}
.home-hero--crew .home-hero__description {
  max-width: 480px;
  margin-top: 14px !important;
}
.home-hero--crew .home-actions {
  margin-top: 20px;
}
.home-hero--crew .home-button {
  min-height: 44px;
  padding: 12px 18px;
}
.home-hero--crew .home-hero__copy {
  animation: none;
}
.crew-hero__art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  background: var(--solid-panel);
  border-left: 1px solid #46617d;
}
.crew-hero__art > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(0.8) contrast(1.08);
  opacity: 0.75;
}
.crew-hero__shade {
  position: absolute;
  inset: 0;
  background: #243b5633;
}
.crew-hero__caption {
  position: absolute;
  left: 42px;
  right: 40px;
  bottom: 16px;
  color: #c2d6e8;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.crew-hero__caption-line {
  height: 1px;
  background: #aecde147;
  flex: 1;
}
.crew-hero__caption i {
  font-size: 19px;
}

/* Public player cards: existing fields, grouped for comparison. */
.crew-roster {
  --crew-ink: var(--solid-dark);
  --crew-muted: #b6c9db;
  position: relative;
  isolation: isolate;
  width: min(1280px, calc(100% - 32px));
  margin: 58px auto 0;
  padding-bottom: 28px;
  scroll-margin-top: 28px;
}
/* The grid is the only background decoration behind the profiles. */
.crew-roster::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.crew-roster::before {
  inset: 60px 0 0;
  border: 1px solid #b9cddd;
  border-radius: 22px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cpath%20d%3D%22M0%2048V0H48%22%20fill%3D%22none%22%20stroke%3D%22%23b9cddd%22%20stroke-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M20%2024h8m-4-4v8%22%20fill%3D%22none%22%20stroke%3D%22%237894ad%22%20stroke-opacity%3D%22.65%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%222%22%20fill%3D%22%233b64a7%22%20fill-opacity%3D%22.45%22%2F%3E%3C%2Fsvg%3E");
}
.crew-roster__heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.crew-roster__heading::after {
  content: "";
  height: 1px;
  background: var(--solid-line);
  flex: 1;
}
.crew-roster__heading h2 {
  font-family: var(--font-display);
  color: var(--crew-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0;
}
.crew-roster__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
/* Fixed tracks keep every profile the same height, including empty profiles. */
.crew-card {
  position: relative;
  min-width: 0;
  height: 326px;
  border: 1px solid #4d6781;
  border-radius: 19px;
  background: var(--solid-dark);
  color: #f3f7fc;
  box-shadow: 0 16px 35px -24px #152e5673;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.crew-card:hover {
  border-color: #a8d1ef;
  box-shadow: 0 20px 40px -24px #152e5699;
}
/* Clipped artwork stays separate from the game popover, which must escape the card. */
.crew-card__cover {
  position: relative;
  height: 96px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid #7894ad55;
  background: var(--solid-panel);
}
.crew-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M0 28V0H28' fill='none' stroke='%23a8d1ef' stroke-opacity='.12'/%3E%3C/svg%3E");
}
.crew-card__cover::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -42px;
  top: -119px;
  border: 1px solid #a8d1ef55;
  border-radius: 50%;
  box-shadow:
    0 0 0 14px #a8d1ef0a,
    0 0 0 28px #a8d1ef0a;
}
.crew-card__plate {
  position: absolute;
  right: 23px;
  top: 36px;
  width: 124px;
  height: 84px;
  border: 1px solid #a8d1ef55;
  border-radius: 8px;
  background: #365575;
  transform: skewX(-22deg) rotate(-6deg);
  transition: transform 0.35s;
}
.crew-card__plate--back {
  right: 65px;
  top: 50px;
  width: 152px;
  background: transparent;
  border-color: #a8d1ef33;
  transform: skewX(-22deg) rotate(-6deg) translate(-8px, 8px);
}
.crew-card__cover-line {
  position: absolute;
  left: 20px;
  bottom: 22px;
  width: 36px;
  height: 2px;
  background: var(--solid-accent);
  box-shadow:
    44px 0 #a8d1ef55,
    0 -7px #a8d1ef22;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .crew-card:hover .crew-card__plate {
    transform: skewX(-22deg) rotate(-6deg) translateX(8px);
  }
  .crew-card:hover .crew-card__plate--back {
    transform: skewX(-22deg) rotate(-6deg) translate(-16px, 8px);
  }
}
.crew-card--top {
  border-color: #a6a18b;
}
.crew-card:has(.crew-games[open]) {
  z-index: 3;
}
.crew-card__badges {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 24px;
  margin-bottom: 16px;
}
.crew-card__flags {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.crew-status,
.crew-top,
.crew-streamer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #7894ad66;
  border-radius: 6px;
  background: var(--solid-deep);
  color: #c4d2e0;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
}
.crew-status > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b9caf;
}
.crew-status--online {
  color: #c3ead7;
  border-color: #9bc9b366;
}
.crew-status--online > span {
  background: #9ad6b9;
}
.crew-icon {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.crew-icon--crown {
  color: #efd9a8;
}
.crew-top {
  color: #efd9a8;
  border-color: #c9b08188;
}
.crew-streamer {
  color: #dfcff6;
  border-color: #b29ac488;
}
.crew-card__body {
  position: relative;
  margin-top: -22px;
  padding: 0 20px 18px;
  display: grid;
  grid-template-rows: 96px 78px 34px;
  gap: 12px;
}
.crew-card__identity {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}
.crew-card__avatar {
  display: block;
  align-self: flex-end;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--solid-dark);
  outline: 1px solid #7894ad;
}
.crew-card__avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--solid-accent);
  background: var(--solid-panel);
  font-size: 26px;
  font-weight: 650;
}
.crew-card__name {
  min-width: 0;
  flex: 1;
}
.crew-card__identity h3 {
  margin: 0 0 6px;
  color: #f3f7fc;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.crew-card__nickname {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .crew-card,
  .crew-card__plate {
    transition: none;
  }
}
.crew-games {
  position: relative;
  max-width: 100%;
}
.crew-games summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #7894ad66;
  border-radius: 7px;
  background: var(--solid-panel);
  color: var(--solid-accent);
  font-size: 10px;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.crew-games summary::-webkit-details-marker {
  display: none;
}
.crew-games summary > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crew-games summary > i,
.crew-games summary > small {
  flex-shrink: 0;
}
.crew-games summary:hover,
.crew-games[open] summary {
  border-color: var(--solid-accent);
}
.crew-games summary:focus-visible {
  outline: 2px solid var(--solid-accent);
  outline-offset: 3px;
}
.crew-games__empty {
  color: var(--crew-muted);
  font-size: 10px;
}
.crew-games__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  width: min(300px, 100% + 80px);
  padding: 12px;
  border: 1px solid #7894ad;
  border-radius: 12px;
  background: var(--solid-deep);
  box-shadow: 0 16px 30px #10233b66;
}
/* Close the physical hover gap without adding visible padding to the badge. */
.crew-games__panel::before {
  content: "";
  position: absolute;
  height: 9px;
  top: -9px;
  left: 0;
  right: 0;
}
.crew-games__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #7894ad55;
}
.crew-games__heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid #7894ad66;
  border-radius: 9px;
  color: var(--solid-accent);
  background: var(--solid-panel);
  font-size: 16px;
}
.crew-games__heading p {
  margin: 0;
  color: #f3f7fc;
  font-size: 11px;
  font-weight: 650;
}
.crew-games__count {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid #7894ad66;
  border-radius: 5px;
  color: var(--solid-accent);
  font-size: 10px;
}
.crew-games__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #7894ad transparent;
}
.crew-games__panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.crew-games__panel li + li {
  margin-top: 6px;
}
.crew-games__panel .crew-games__primary {
  background: var(--solid-panel);
  border-color: #7894ad66;
}
.crew-games__initial {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 36px;
  border: 1px solid #7894ad66;
  border-radius: 5px 11px 5px 5px;
  background: var(--solid-dark);
  color: var(--solid-accent);
  font-family: var(--font-ui);
  font-size: 17px;
}
.crew-games__title {
  min-width: 0;
  flex: 1;
  line-height: 1.5;
  color: #f3f7fc;
}
.crew-games__title small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--solid-accent);
}
.crew-games__primary-mark {
  color: #efd9a8;
  font-size: 11px;
}
.crew-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 9px 0;
  border-block: 1px solid #7894ad55;
}
.crew-card__stats > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-inline: 4px 12px;
}
.crew-card__stats > div + div {
  padding-inline: 20px 0;
  border-left: 1px solid #7894ad55;
}
.crew-card__stats dt {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  height: 28px;
  margin-top: 4px;
  color: var(--crew-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.crew-card__stats dt > :is(i, svg) {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--solid-accent);
}
.crew-card__stats > div:last-child dt > :is(i, svg) {
  color: #dfc78f;
}
.crew-card__stats dd {
  order: -1;
  margin: 0;
  color: #f3f7fc;
  font-size: 28px;
  line-height: 1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.crew-card__section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.crew-card__section h4 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--crew-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}
.crew-card__languages {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #7894ad transparent;
}
.crew-card__languages li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid #7894ad44;
  border-radius: 5px;
  background: #304d6b;
  color: #e0ebf5;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.crew-card__languages img {
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.crew-card__languages .crew-card__muted {
  background: transparent;
  border: 0;
  padding: 5px 0;
  color: var(--crew-muted);
}
.crew-roster__empty {
  grid-column: 1/-1;
  padding: 50px 30px;
  border: 1px solid var(--solid-line);
  border-radius: 18px;
  text-align: center;
  color: #52657c;
}
.crew-roster__empty > i {
  font-size: 32px;
  color: #718eab;
}
.crew-roster__empty h3 {
  font-size: 20px;
  margin: 20px 0;
}
.crew-roster__empty a {
  color: var(--solid-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-block: 10px;
  display: inline-block;
}
.crew-roster a:focus-visible {
  outline: 3px solid var(--solid-blue);
  outline-offset: 5px;
}
@media (max-width: 1050px) {
  .home .home-hero--crew {
    min-height: 340px;
  }
  .home-hero--crew .home-hero__copy {
    padding: 28px 0 28px 30px;
  }
  .home-hero--crew .home-hero__copy h1 {
    font-size: 38px;
  }
  .crew-roster__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .home .home-hero--crew {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-hero--crew .home-hero__copy {
    padding: 28px 25px 32px;
  }
  .home-hero--crew .home-hero__copy h1 {
    font-size: clamp(32px, 8vw, 42px);
  }
  .crew-hero__art {
    display: none;
  }
  .crew-hero__caption {
    left: 25px;
    right: 25px;
    bottom: 20px;
  }

  .crew-roster {
    margin-top: 38px;
  }
  .crew-roster__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* A compact, single-panel statement about the team. */
.crew-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: min(1280px, calc(100% - 32px));
  min-height: 200px;
  padding: 30px 40px;
  margin: 32px auto 0;
  border: 1px solid #46617d;
  border-radius: 24px;
  background: var(--solid-dark);
  color: var(--solid-white);
}
.crew-story__copy {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.crew-story__emblem {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  height: 56px;
  border: 1px solid #7894ad66;
  border-radius: 16px;
  background: var(--solid-panel);
  color: var(--solid-accent);
}
.crew-story__text {
  max-width: 760px;
  min-width: 0;
}
.crew-story h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.crew-story__text > p {
  margin: 0;
  color: #c9d6ed;
  font-size: 13px;
  line-height: 1.75;
}
.crew-story__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--solid-accent);
  color: var(--solid-deep);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.2s;
}
.crew-story__link:hover {
  background: #c9e4f4;
  color: var(--solid-deep);
}
.crew-story__link:focus-visible {
  outline: 3px solid var(--solid-accent);
  outline-offset: 5px;
}
@media (max-width: 1000px) {
  .crew-story {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 32px;
  }
  .crew-story__link {
    justify-self: start;
    margin-left: 80px;
  }
}
@media (max-width: 700px) {
  .crew-story {
    width: 100%;
    border-radius: 0;
    border-inline: 0;
    padding: 26px 25px;
    min-height: 0;
  }
  .crew-story__emblem {
    display: none;
  }
  .crew-story__link {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crew-story__link {
    transition: none;
  }
}
