.hub-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hub-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.hub-nav a:hover,
.hub-nav [aria-current] {
  color: var(--white);
}

.hub-nav [aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.hub-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(380px, 35vw, 550px);
  overflow: hidden;
  background: #101622;
  border-bottom: 1px solid #383943;
}

.hub-art,
.hub-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub-art {
  z-index: -2;
  object-fit: cover;
  object-position: 55% 61%;
}

.hub-hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0b111be8, #0b111bbd 29%, #0b111b69 47%, transparent 67%);
}

.hub-hero-inner {
  padding-block: 52px;
}

.hub-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid #53766d;
  border-radius: 30px;
  background: #19312e;
  color: #bcf3e6;
  font-size: 13px;
  font-weight: 800;
}

.hub-stage i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#hub-title {
  margin-block: 20px 16px;
  font-size: clamp(55px, 6.5vw, 104px);
  letter-spacing: -.07em;
}

#hub-title em {
  margin-inline-start: .025em;
}

.hub-intro {
  max-width: 35ch;
  margin-bottom: 26px;
  color: #f4ede9;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hub-roadmap {
  padding-block: clamp(38px, 5vw, 68px) clamp(43px, 5.2vw, 72px);
}

.hub-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 29px;
}

.hub-section-head h2,
.playtest-card h2 {
  margin: 0;
}

.hub-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-steps li {
  position: relative;
  padding: 20px 0 0;
  border-top: 1px solid #434b57;
}

.hub-steps li::before {
  content: "";
  position: absolute;
  inset: -5px auto auto 0;
  width: 9px;
  height: 9px;
  border: 1px solid #74818d;
  border-radius: 50%;
  background: var(--ink);
}

.hub-steps [aria-current] {
  border-color: #936357;
}

.hub-steps [aria-current]::before {
  border-color: var(--coral);
  background: var(--coral);
}

.step-state {
  margin: 0 0 7px;
  color: #aeb7c3;
  font-size: 13px;
  font-weight: 780;
}

[aria-current="step"] .step-state {
  color: var(--coral);
}

.hub-steps h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.2vw, 29px);
  line-height: 1.16;
  letter-spacing: -.038em;
}

.hub-steps li > p:last-child,
.playtest-card p {
  margin: 0;
  max-width: 39ch;
  color: #c6cbd2;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hub-playtest {
  margin-bottom: clamp(44px, 6vw, 90px);
}

.playtest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(23px, 4vw, 75px);
  padding: clamp(24px, 3.6vw, 52px);
  border: 1px solid #3c5356;
  border-radius: 10px;
  background: linear-gradient(115deg, #1d2b33, #151c27);
}

.playtest-card h2 {
  font-size: clamp(29px, 3.1vw, 45px);
  margin-bottom: 10px;
}

.playtest-controls {
  border-left: 1px solid #3c5156;
  padding-left: clamp(18px, 3vw, 42px);
}

.playtest-controls #playtest-status {
  min-height: 1.65em;
  margin-bottom: 10px;
  color: #d5e8e4;
  overflow-wrap: anywhere;
}

.playtest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 17px;
}

.playtest-leave {
  border: 1px solid #637481;
  background: #1b2731;
}

.playtest-leave:hover {
  border-color: var(--mint);
}

.hub-text-button {
  min-height: 44px;
  padding: 6px 0;
  background: transparent;
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.hub-text-button:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hub-playtest [hidden],
.hub-dialog [hidden] {
  display: none;
}

.hub-dialog {
  width: min(465px, calc(100% - 32px));
}

.hub-dialog .close-reader {
  font-size: 24px;
  line-height: 1;
}

.hub-dialog h2 {
  padding-right: 30px;
}

.hub-dialog label {
  display: block;
  margin-block: 13px 5px;
  font-size: 14px;
  font-weight: 750;
}

.hub-dialog input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #4e5b6e;
  border-radius: 5px;
  background: #0d1520;
  color: var(--white);
  font-size: 16px;
}

.hub-field-hint {
  margin: 6px 0 0;
  color: #bbc4d1;
  font-size: 13px;
}

.hub-form-error {
  margin: 0;
  color: #ffb49e;
  font-size: 14px;
}

.hub-form-error:not(:empty) {
  margin-top: 12px;
}

#account-submit {
  width: 100%;
  margin-top: 18px;
}

#account-switch {
  display: block;
  margin: 5px auto 0;
}

@media (max-width: 680px) {
  .hub-nav {
    font-size: 13px;
  }

  .hub-nav [aria-current] {
    display: none;
  }

  .hub-hero {
    align-items: start;
  }

  .hub-hero-inner {
    padding-block: 29px clamp(156px, 42vw, 218px);
  }

  .hub-art {
    object-position: 81% 65%;
  }

  .hub-hero::after {
    background: linear-gradient(180deg, #0b111be6, #0b111bbf 39%, #0b111b4d 58%, transparent 78%);
  }

  #hub-title {
    font-size: clamp(40px, 10.9vw, 73px);
    margin-block: 14px 12px;
  }

  .hub-intro {
    margin-bottom: 18px;
  }

  .hub-section-head {
    margin-bottom: 22px;
  }

  .hub-steps {
    display: block;
    padding-left: 4px;
  }

  .hub-steps li {
    padding: 0 0 24px 19px;
    border-top: 0;
    border-left: 1px solid #434b57;
  }

  .hub-steps [aria-current] {
    border-color: #936357;
  }

  .hub-steps li:last-child {
    padding-bottom: 0;
    border-color: transparent;
  }

  .hub-steps li::before {
    inset: 5px auto auto -5px;
  }

  .playtest-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .playtest-controls {
    border-left: 0;
    border-top: 1px solid #3c5156;
    padding: 16px 0 0;
  }
}
