* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0d1117;
  color: #e6edf3;
  font-family: system-ui, -apple-system, sans-serif;
}

.quest-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.quest-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;

  padding: 10px 18px;
  border-radius: 12px;

  background: #21262d;
  border: 1px solid #30363d;

  transition: .2s ease;
}

.back-btn:hover {
  background: #30363d;
  transform: translateY(-2px);
}

.quest-description {
  margin-bottom: 30px;
}

.note {
  border-left: 3px solid #58a6ff;
  background: rgba(88,166,255,.08);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}

kbd {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .8rem;
}

.expand-section {
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  background: #161b22;
}

.expand-toggle {
  width: 100%;
  padding: 16px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #161b22;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.expand-toggle i {
  transition: transform .3s ease;
}

.expand-section.active .expand-toggle i {
  transform: rotate(180deg);
}

.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.expand-section.active .expand-content {
  max-height: 800px;
}

.code-box {
  position: relative;
  padding: 20px;
  background: #0d1117;
  border-top: 1px solid #30363d;
}

.code-box pre {
  margin: 0;
  max-height: 400px;
  overflow: auto;
}

.code-box code {
  font-family: monospace;
  font-size: .85rem;
  line-height: 1.6;
  color: #79c0ff;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 34px;
  height: 34px;

  border-radius: 8px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #fff;

  cursor: pointer;
  display: grid;
  place-items: center;

  transition: .2s ease;
}

.copy-btn:hover {
  background: #30363d;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}
.code-box pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding-right: 10px;
}
.highlight {
  background: #21262d;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #79c0ff;
}

.extra-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(88,166,255,.08);
  border-left: 3px solid #58a6ff;
  font-size: .9rem;
  line-height: 1.6;
}