body.challenge-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(13, 110, 253, 0.12), transparent 34%),
    linear-gradient(180deg, #f8f9fa 0%, #eef2f7 100%);
}

.page-shell {
  min-height: 100vh;
}

.puzzle-card {
  border: 0;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.puzzle-copy p,
.puzzle-copy li,
.puzzle-copy cite {
  color: #495057;
  line-height: 1.8;
}

.puzzle-copy p:last-child,
.puzzle-copy li:last-child {
  margin-bottom: 0;
}

.action-stack {
  display: grid;
  gap: 1rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.action-row > * {
  flex-shrink: 0;
}

.result-panel {
  min-height: 4.5rem;
  margin-bottom: 0;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 1rem;
  background: rgba(248, 249, 250, 0.95);
  color: #495057;
  white-space: pre-wrap;
}

pre.result-panel {
  overflow: auto;
}

.hint-panel details {
  padding: 1rem 1.125rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.05);
}

.hint-panel summary {
  font-weight: 600;
  cursor: pointer;
}

.hint-panel details[open] summary {
  margin-bottom: 0.75rem;
}

.btn-link-entry {
  min-width: 12rem;
}

.list-surface {
  padding: 1rem 1.125rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.list-surface hr {
  margin: 1rem 0;
}

.inline-code-block {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .page-shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .puzzle-card {
    border-radius: 1.25rem;
  }

  .result-panel {
    min-height: 5.25rem;
  }
}
