.pdc-shell {
  display: grid;
  gap: 4.5rem;
}

.pdc-page {
  scroll-margin-top: 95px;
  min-height: 80vh;
}

.pdc-section-heading {
  max-width: 860px;
  margin-bottom: 1.6rem;
}

.pdc-section-heading h2,
.hope-chest-intro h2 {
  margin: .25rem 0 .65rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.pdc-action-grid,
.pdc-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pdc-action-card,
.pdc-support-grid > article {
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid rgba(188, 140, 242, .24);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31, 12, 54, .9), rgba(13, 7, 25, .9));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.pdc-action-card > span,
.pdc-support-grid > article > b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(138, 43, 226, .2);
  font-size: 1.45rem;
}

.pdc-action-card h3,
.pdc-support-grid h3 {
  margin: 0 0 .55rem;
}

.pdc-action-card p,
.pdc-support-grid p,
.pdc-section-heading > p:last-child,
.hope-chest-intro p,
.legacy-detail > p {
  color: var(--muted);
  line-height: 1.65;
}

.pdc-support-grid .button {
  margin-top: .8rem;
}

.pdc-direction {
  margin-top: 1rem;
}

.support-safety,
.legacy-disclosure {
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: .9rem;
}

.support-safety {
  margin-top: 1rem;
}

.hope-chest-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 218, 128, .3);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 3, 12, .2), rgba(7, 3, 12, .87));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.hope-chest-shade {
  min-height: calc(100vh - 4rem);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 22px;
  background: rgba(8, 4, 14, .3);
  backdrop-filter: blur(3px);
}

.hope-chest-intro {
  max-width: 900px;
}

.hope-chest-intro h3 {
  margin: .2rem 0 .8rem;
  color: #ffe0a1;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.25rem, 2.7vw, 2rem);
}

.hope-chest-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.25rem 0 1.5rem;
}

.hope-chest-stats span {
  min-width: 145px;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(10, 6, 16, .68);
}

.hope-chest-stats strong,
.hope-chest-stats small {
  display: block;
}

.hope-chest-stats strong {
  color: #ffe0a1;
  font-family: "Orbitron", sans-serif;
  font-size: 1.35rem;
}

.hope-chest-stats small {
  margin-top: .2rem;
  color: rgba(255, 255, 255, .78);
}

.legacy-token-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
}

.legacy-token-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 72px auto auto;
  justify-items: center;
  min-width: 0;
  min-height: 210px;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(12, 7, 19, .7);
  color: #fff;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.legacy-token-card:hover,
.legacy-token-card.selected {
  transform: translateY(-3px);
  border-color: rgba(255, 218, 128, .65);
  background: rgba(31, 14, 42, .78);
}

.legacy-token-logo {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: .55rem 0 .65rem;
  overflow: hidden;
  border: 2px solid rgba(255, 224, 161, .45);
  border-radius: 50%;
  background: rgba(138, 43, 226, .2);
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.legacy-token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-card-copy {
  min-width: 0;
}

.legacy-card-copy strong,
.legacy-card-copy small {
  display: block;
}

.legacy-card-copy strong {
  color: #ffe0a1;
  font-family: "Orbitron", sans-serif;
}

.legacy-card-copy small {
  margin-top: .25rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.15;
}

.legacy-contract {
  align-self: end;
  width: 100%;
  margin-top: .7rem;
  overflow: hidden;
  color: rgba(255, 255, 255, .56);
  font-family: monospace;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legacy-paused {
  background: rgba(255, 213, 109, .16);
  color: #ffe0a1;
}

.legacy-archived {
  background: rgba(160, 175, 255, .16);
  color: #d9deff;
}

.legacy-live {
  background: rgba(83, 224, 162, .16);
  color: #9ff0c9;
}

.legacy-detail {
  margin-top: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(9, 5, 15, .77);
  backdrop-filter: blur(10px);
}

.legacy-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legacy-detail-heading h3 {
  margin: .25rem 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.legacy-detail-heading h3 span {
  color: #ffe0a1;
}

.legacy-detail-grid {
  margin: 1rem 0;
}

.legacy-detail-grid .mono {
  word-break: break-all;
}

.legacy-disclosure {
  margin: 1rem 0 0;
}

@media (max-width: 1100px) {
  .legacy-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdc-action-grid,
  .pdc-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pdc-shell {
    gap: 3.2rem;
  }

  .pdc-action-grid,
  .pdc-support-grid,
  .legacy-token-grid {
    grid-template-columns: 1fr;
  }

  .legacy-token-card {
    grid-template-columns: 66px 1fr;
    grid-template-rows: auto auto auto;
    justify-items: start;
    min-height: 132px;
    text-align: left;
  }

  .legacy-token-card .legacy-status {
    grid-column: 1 / -1;
  }

  .legacy-token-logo {
    grid-row: 2;
    margin: 0;
  }

  .legacy-card-copy {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .legacy-contract {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}