@import url('base.css');

.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(12, 10, 9, 0.7), var(--charcoal)),
    url('https://yqcdn.fuhua95.com/game/20250722/6bde4e439817b059de9ef726f22b2252.png');
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid var(--bone-gray);
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--stone-300);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto;
}

.codes-section {
  padding: 3rem 0 5rem;
}

.codes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .codes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .codes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.code-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(16, 185, 129, 0.08) 50%);
  border-bottom-left-radius: 100%;
}

.code-card.ghost::before {
  background: linear-gradient(135deg, transparent 50%, rgba(249, 115, 22, 0.08) 50%);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.code-name {
  font-family: 'Ma Shan Zheng', 'Cinzel Decorative', cursive;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--poison-green);
  letter-spacing: 0.05em;
}

.code-card.ghost .code-name {
  color: var(--ghost-orange);
}

.code-reward {
  color: var(--stone-300);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  min-height: 4.5rem;
}

.copy-btn {
  width: 100%;
  padding: 0.625rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.copy-btn {
  background: var(--poison-green);
  color: var(--charcoal);
}

.copy-btn:hover {
  background: #34d399;
}

.copy-btn.copied {
  background: var(--ghost-orange);
  color: #fff;
}

.code-card.ghost .copy-btn {
  background: var(--ghost-orange);
  color: #fff;
}

.code-card.ghost .copy-btn:hover {
  background: #fb923c;
}

.bonus-section {
  margin-top: 3rem;
  background: var(--charcoal-card);
  border: 1px solid var(--bone-gray);
  border-radius: 0.75rem;
  padding: 2rem;
}

.bonus-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--ghost-orange);
}

.bonus-section p {
  color: var(--stone-300);
  margin-bottom: 1rem;
}
