.links-page body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.links-page-main {
  height: calc(100vh - 76px);
  height: calc(100dvh - 76px);
  min-height: 0;
}

.links-page .topbar-link::before {
  content: "本編";
}

.links-page-intro {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  padding: 28px 0 34px;
  color: #ffffff;
  background: var(--manga-ink);
  border-bottom: 8px solid var(--manga-ink);
}

.links-page-intro > .container {
  display: grid;
  min-height: 0;
  place-items: center;
}

.links-page-intro::before {
  content: "";
  position: absolute;
  inset: -35%;
  opacity: 0.2;
  background: repeating-conic-gradient(
    from 220deg at 50% 48%,
    transparent 0deg 2.4deg,
    rgba(255, 255, 255, 0.15) 2.5deg 2.7deg,
    transparent 2.8deg 6.3deg
  );
  pointer-events: none;
}

.links-page-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 100%;
  margin: 0 auto;
  padding: 38px 48px 34px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--manga-ink);
  background: var(--manga-paper);
  border: 4px solid #ffffff;
  box-shadow: 12px 12px 0 #b9b4a9, 18px 18px 0 #ffffff;
  text-align: center;
}

.links-page-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--manga-ink);
  background: radial-gradient(circle at 50% 42%, #ffffff 0, transparent 62%);
  pointer-events: none;
}

.links-page-panel > * {
  position: relative;
  z-index: 1;
}

.links-page-chapter {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  min-width: 64px;
  border: 2px solid var(--manga-ink);
  background: var(--manga-paper);
  box-shadow: 4px 4px 0 var(--manga-ink);
  transform: rotate(-2deg);
}

.links-page-chapter span {
  padding: 4px 8px;
  color: #ffffff;
  background: var(--manga-ink);
  font: 700 0.62rem/1 "Noto Sans JP", sans-serif;
  letter-spacing: 0.12em;
}

.links-page-chapter strong {
  padding: 4px 8px 2px;
  font: 400 1.55rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.links-page-eyebrow {
  margin: 0 0 8px;
  color: #373631;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.links-page-eyebrow span {
  display: inline-block;
  padding: 3px 6px;
  color: #ffffff;
  background: var(--manga-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.links-page-panel h1 {
  margin: 0;
  font: 400 clamp(4rem, 8vw, 5.8rem)/0.86 "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 4px 4px 0 rgba(196, 20, 45, 0.22);
}

.links-page-panel > p:last-of-type {
  width: min(52ch, 100%);
  margin: 10px auto 0;
  color: #34332f;
  font-weight: 500;
  line-height: 1.6;
}

.links-page-stripe {
  display: flex;
  justify-content: center;
  margin: 16px -20px 0;
  padding: 7px 14px;
  overflow: hidden;
  color: #ffffff;
  background: var(--manga-ink);
  box-shadow: 5px 5px 0 var(--manga-red);
  font: 400 0.82rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-1deg);
}

.links-page-stripe span:not(:last-child)::after {
  content: "✦";
  margin: 0 18px;
  color: var(--manga-red);
  font-size: 0.65rem;
}

.links-page-panel .links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.links-page-panel .link-card {
  min-width: 0;
  gap: 11px;
  padding: 11px 13px;
  border-width: 2px;
  box-shadow: 5px 5px 0 var(--manga-ink);
}

.links-page-panel .link-card:nth-child(even) {
  box-shadow: 5px 5px 0 #7e7a72;
}

.links-page-panel .logo-wrap {
  width: 38px;
  height: 38px;
}

.links-page-panel .link-text {
  min-width: 0;
}

.links-page-panel .link-text h3 {
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.links-page-panel .link-text p {
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.links-page-panel .external-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .links-page-main {
    height: calc(100vh - 67px);
    height: calc(100dvh - 67px);
  }

  .links-page-intro {
    padding: 14px 0 20px;
  }

  .links-page-panel {
    padding: 52px 18px 24px;
    box-shadow: 8px 8px 0 #b9b4a9, 12px 12px 0 #ffffff;
  }

  .links-page-panel::before {
    inset: 9px;
  }

  .links-page-chapter {
    left: 16px;
    top: 16px;
  }

  .links-page-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .links-page-panel h1 {
    font-size: clamp(3.8rem, 20vw, 5rem);
  }

  .links-page-panel > p:last-of-type {
    margin-top: 14px;
    font-size: 0.9rem;
  }

  .links-page-stripe {
    margin: 14px -8px 0;
    font-size: 0.66rem;
  }

  .links-page-stripe span:not(:last-child)::after {
    margin: 0 8px;
  }

  .links-page-panel .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
  }

  .links-page-panel .link-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 9px 8px 9px 10px;
    box-shadow: 3px 3px 0 var(--manga-ink);
  }

  .links-page-panel .link-card:nth-child(even) {
    box-shadow: 3px 3px 0 #7e7a72;
  }

  .links-page-panel .logo-wrap {
    width: 32px;
    height: 32px;
  }

  .links-page-panel .link-text h3 {
    font-size: 0.88rem;
  }

  .links-page-panel .link-text p {
    font-size: 0.6rem;
  }

  .links-page-panel .external-icon {
    display: none;
  }
}

@media (max-height: 720px) {
  .links-page-panel {
    padding-top: 48px;
  }

  .links-page-eyebrow,
  .links-page-panel > p:last-of-type {
    display: none;
  }

  .links-page-panel h1 {
    font-size: 3.6rem;
  }

  .links-page-stripe,
  .links-page-panel .links-grid {
    margin-top: 12px;
  }
}
