
.credits-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.credits-hero-art {
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--rr-blue);
}

.credits-hero-art img {
  width: min(320px, 80%);
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.credits-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 32px;
}

.credits-hero-tag {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credits-hero-info h1 {
  margin: 0 0 14px;
  color: var(--text-light);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  text-align: left;
}

.credits-hero-info p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.credit-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.credit-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 14px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  text-align: left;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.credit-box:hover {
  background: var(--bg-raised);
  transform: translateY(-3px);
}

.credit-box h2 {
  margin: 0 0 6px;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
}

.credit-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credit-box li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
}

.credit-role {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.credit-name {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.credit-box--wide {
  grid-column: span 2;
}

.credit-box--wide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

@media (max-width: 1000px) {
  .credit-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .credit-box--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .credits-hero {
    grid-template-columns: 1fr;
  }

  .credits-hero-art {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .credit-boxes {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .credit-box--wide ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .credits-hero-info {
    padding: 24px 20px;
  }
}

.credits-hero-art img {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.credits-hero-art img.egg-spin {
  animation: egg-spin 0.9s cubic-bezier(0.45, 0, 0.2, 1) 1;
}
@keyframes egg-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}
.egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}
.egg-overlay.open { display: flex; }
.egg-modal {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  text-align: center;
  background: var(--bg-surface);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  animation: egg-pop 0.35s ease both;
}
@keyframes egg-pop {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.egg-modal h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--text-light);
  font-size: 24px;
}
.egg-modal p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.egg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.egg-btn {
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--rr-blue);
  cursor: pointer;
  text-decoration: none;
}
.egg-btn.secondary { background: rgba(255, 255, 255, 0.1); }
.egg-btn:hover { background: var(--rr-blue-hover); }
.egg-btn.secondary:hover { background: rgba(255, 255, 255, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .credits-hero-art img.egg-spin { animation-duration: 0.01s; }
}
