body {
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(16, 17, 13, 0.98) 0%, rgba(16, 17, 13, 0.96) 48%, rgba(43, 20, 14, 0.96) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    #10110d;
  color: #fff6df;
  font-family: Arial, "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

body::before,
body::after,
.hero::before,
.hero::after {
  display: none !important;
}

h1,
h2,
h3,
button,
.launch,
.topbar a,
.eyebrow,
.section-label,
.card-top,
.meta {
  font-family: Arial, "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.shell {
  position: relative;
  z-index: 2;
}

.hero {
  display: block;
  position: relative;
  isolation: isolate;
  padding: 10px 0 28px;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: #27e68a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.08em;
  margin: 0 0 20px;
  color: #fff6df;
  font-size: clamp(4.2rem, 11vw, 6.9rem);
  font-weight: 900;
  line-height: 0.86;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.38);
}

h1 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05em;
  height: 1em;
  padding: 0 0.07em 0.05em;
  border: 2px solid #28e58a;
  background: rgba(42, 173, 80, 0.34);
  color: #dffc57;
  font-size: 1em;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
  vertical-align: baseline;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: #ddd1bb;
  font-size: 1.08rem;
  line-height: 1.45;
}

.topbar {
  margin-bottom: 24px;
}

.challenge-page .shell {
  width: min(100% - 40px, 920px);
  padding: 18px 0 42px;
}

.challenge-page .hero {
  padding: 22px 0 28px;
}

.topbar a {
  border: 1px solid rgba(39, 230, 138, 0.45);
  border-radius: 0;
  background: rgba(15, 22, 16, 0.78);
  color: #fff6df;
  font-weight: 900;
}

.panel,
.challenge-card,
.crew-card,
.story-grid p,
.lab-card .tile {
  border-color: rgba(39, 230, 138, 0.28);
  border-radius: 0;
  background: rgba(18, 22, 16, 0.88);
  box-shadow: none;
}

.panel:hover,
.challenge-card:hover,
.crew-card:hover,
.viewer-panel:hover {
  border-color: rgba(39, 230, 138, 0.48);
  box-shadow: none;
  transform: none;
}

.launch,
button {
  border-radius: 0;
  background: #27e68a;
  color: #07120c;
  font-weight: 900;
}

pre,
textarea,
input,
code {
  border-radius: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body.portal-page .shell {
  width: min(100% - 40px, 1680px);
  padding: 10px 0 34px;
}

body.portal-page .hero {
  grid-template-columns: 1fr;
  padding: 8px 0 18px;
}

body.portal-page .lab-card {
  display: none;
}

body.portal-page .section {
  margin-top: 18px;
}

body.portal-page .challenge-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.portal-page .challenge-card {
  min-height: 174px;
  padding: 10px;
}

body.portal-page .challenge-card h3 {
  margin: 8px 0 6px;
  font-size: 1.06rem;
  line-height: 1.08;
}

body.portal-page .challenge-card p {
  margin-bottom: 6px;
  font-size: 0.78rem;
  line-height: 1.28;
}

body.portal-page .challenge-card p:not(.handler):not(.hint),
body.portal-page .hint {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.portal-page .card-top span,
body.portal-page .card-top strong,
body.portal-page .meta {
  font-size: 0.74rem;
}

body.portal-page .launch {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 8px;
  font-size: 0.78rem;
}

@media (max-width: 1120px) {
  body.portal-page .challenge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.portal-page .shell,
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
    line-height: 0.92;
  }

  body.portal-page .challenge-grid {
    grid-template-columns: 1fr;
  }
}
