.links-page {
  display: grid;
  gap: 18px;

  color: #d7d7d7;
  font-family: "VCR", monospace;
}

.links-page__intro {
  padding: 18px;

  background:
    repeating-linear-gradient(
      135deg,
      #080808 0,
      #080808 8px,
      #151515 8px,
      #151515 16px
    );

  border: 1px solid #a80000;
}

.links-page__intro h1 {
  margin: 0 0 10px;

  color: #ff2525;
  font-family: "NR", sans-serif;
  font-size: 34px;
  text-transform: lowercase;

  text-shadow:
    2px 2px 0 black,
    0 0 7px red;
}

.links-page__intro p {
  margin: 0;

  font-size: 12px;
  line-height: 1.6;
}

/* Shared panel */

.links-panel {
  overflow: hidden;

  background: #050507;
  border: 1px solid #720000;
}

.links-panel__header {
  padding: 8px 12px;

background-image: url("https://dl.glitter-graphics.com/pub/2898/2898739pcnmkcrxo2.png");
background-repeat: repeat;

  border-bottom: 1px solid black;
}

.links-panel__header h2 {
  margin: 0;

  color: white;
  font-family: "NR", sans-serif;
  font-size: 18px;
  text-align: center;
  text-transform: lowercase;

  text-shadow:
    2px 2px 0 black,
    0 0 5px red;
}

.links-panel__body {
  padding: 14px;
}

.links-panel__note,
.neighbor-button-help {
  margin: 0 0 12px;

  color: #aaa;
  font-size: 10px;
  line-height: 1.5;
}

/* Social/profile links */

.profile-link-list {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 8px;

  list-style: none;
}

.profile-link-list a {
  padding: 10px;

  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;

  color: #ddd;
  background: #0b0b0f;

  border: 1px solid #3b0000;

  text-decoration: none;
}

.profile-link-list a:hover {
  background: #170000;
  border-color: #d00000;
}

.profile-link-list__name {
  color: #ff3131;
  font-size: 12px;
}

.profile-link-list__description {
  color: #aaa;
  font-size: 11px;
}

/* Neighbor buttons */

.neighbor-button-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;

  padding: 10px;

  background:
    repeating-linear-gradient(
      135deg,
      #070707 0,
      #070707 6px,
      #111 6px,
      #111 12px
    );

  border: 1px dashed #500000;
}

.neighbor-button-grid a,
.neighbor-button-grid img {
  display: block;
}

.neighbor-button-grid img {
  width: 88px;
  height: 31px;

  object-fit: fill;
  image-rendering: pixelated;

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.neighbor-button-grid a:hover img {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.neighbor-button-help {
  margin: 12px 0 0;
}

/* Cool-site entries */

.cool-site-list,
.archive-link-list {
  display: grid;
  gap: 10px;
}

.cool-site {
  padding: 12px;

  background: #0a0a0e;
  border-left: 3px solid #9d0000;
}

.cool-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cool-links-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #333;

  font-size: 10px;
  line-height: 1.4;
}

.cool-links-list li:last-child {
  border-bottom: 0;
}

.cool-links-list a {
  margin-right: 6px;

  color: #ff3131;
  font-weight: bold;
  text-decoration: none;
}

.cool-links-list a:hover {
  color: white;
  text-decoration: underline;
}

.cool-links-list span {
  color: #aaa;
}

.wayback-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.wayback-list li {
  padding: 6px 0;

  border-bottom: 1px dotted #333;

  font-size: 11px;
  line-height: 1.4;
}

.wayback-list li:last-child {
  border-bottom: 0;
}

.wayback-list a {
  margin-right: 6px;

  color: #ff3131;
  font-weight: bold;
  text-decoration: none;
}

.wayback-list a:hover {
  color: white;
  text-decoration: underline;
}

.wayback-list span {
  color: #aaa;
}

/* Resources notice */

.resource-page-notice {
  padding: 14px;

  color: white;
  background:
    repeating-linear-gradient(
      135deg,
      #680000 0,
      #680000 8px,
      #9c0000 8px,
      #9c0000 16px
    );

  border: 1px solid black;

  text-align: center;
}

.resource-page-notice strong {
  display: block;
  margin-bottom: 7px;

  font-family: "NR", sans-serif;
  font-size: 16px;
  text-transform: lowercase;

  text-shadow:
    2px 2px 0 black,
    0 0 5px red;
}

.resource-page-notice p {
  margin: 0;

  font-size: 11px;
  line-height: 1.5;
}

.resource-page-notice a {
  color: white;
  font-weight: bold;
}

/* ads */

.tiny-ad-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tiny-ad-grid a,
.tiny-ad-grid img {
  display: block;
}

.tiny-ad-grid img {
  max-width: 100%;
  height: auto;

  image-rendering: pixelated;
}

.tiny-ad-grid a:hover img {
  filter: brightness(1.2);
}

/* email */
.contact-panel {
  width: 100%;
  overflow: visible;

  color: #d7d7d7;
  background: #050507;

  border: 1px solid #720000;
}

.contact-panel__header {
  padding: 8px 12px;

background-image: url("https://dl.glitter-graphics.com/pub/2898/2898739pcnmkcrxo2.png");
background-repeat: repeat;

  border-bottom: 1px solid black;
}

.contact-panel__header h2 {
  margin: 0;

  color: white;
  font-family: "NR", sans-serif;
  font-size: 18px;
  text-align: center;
  text-transform: lowercase;

  text-shadow:
    2px 2px 0 black,
    0 0 5px red;
}

.contact-panel__body {
  padding: 14px;
  text-align: center;
}

.contact-panel__body p {
  margin: 0 0 12px;

  color: #aaa;
  font-family: "VCR", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.email-copy__button {
  position: relative;

  padding: 8px 12px;

  color: #ff3131;
  background: #08080b;

  border: 1px solid #770000;

  font-family: "VCR", monospace;
  font-size: 12px;

  cursor: pointer;
}

.email-copy__button:hover,
.email-copy__button:focus-visible {
  color: white;
  border-color: #ff3131;
}

.email-copy__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);

  padding: 5px 7px;

  color: white;
  background: black;

  border: 1px solid #ff3131;

  font-size: 9px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transform: translateX(-50%) translateY(4px);

  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.email-copy__button:hover .email-copy__tooltip,
.email-copy__button:focus-visible .email-copy__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.email-copy__status {
  color: #aaa;
  font-family: "VCR", monospace;
  font-size: 12px;
}

.link-back-box {
  margin-top: 16px;
  padding: 12px;

  background: #08080b;
  border: 1px dashed #700000;
}

.link-back-box h3 {
  margin: 0 0 10px;

  color: #ff3131;
  font-family: "NR", sans-serif;
  font-size: 14px;
  text-align: center;
  text-transform: lowercase;
}

.link-back-box__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-back-box__preview {
  width: 100px;
  flex-shrink: 0;

  display: grid;
  justify-items: center;
  gap: 5px;
}

.link-back-box__preview a,
.link-back-box__preview img {
  display: block;
}

.link-back-box__preview img {
  width: 88px;
  height: 31px;

  image-rendering: pixelated;
}

.link-back-box__preview span {
  color: #777;
  font-size: 9px;
}

.link-back-box__code {
  min-width: 0;
  height: 58px;
  padding: 7px;

  flex: 1;
  resize: none;

  color: #ddd;
  background: #020203;

  border: 1px solid #4d0000;

  font-family: monospace;
  font-size: 9px;
  line-height: 1.3;
}

.link-back-box__actions {
  margin-top: 8px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.link-back-box__copy {
  padding: 5px 9px;

  color: #ff3131;
  background: #09090c;

  border: 1px solid #770000;

  font-family: "VCR", monospace;
  font-size: 9px;

  cursor: pointer;
}

.link-back-box__copy:hover {
  color: white;
  border-color: #ff3131;
}

.link-back-box__status {
  color: #aaa;
  font-size: 9px;
}

.webring-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;

  padding: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  background: #08080b;
  border: 1px solid #3d0000;
}

.webring-item {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.webring-item nav {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* .webring-item .sanringo {
  margin-left: auto;
  margin-right: auto;
} */

.webring-list {
  scrollbar-width: thin;
  scrollbar-color: #b00000 #08080b;
}

.webring-list::-webkit-scrollbar {
  width: 10px;
}

.webring-list::-webkit-scrollbar-track {
  background: #08080b;
}

.webring-list::-webkit-scrollbar-thumb {
  background: #b00000;
  border: 2px solid #08080b;
  border-radius: 10px;
}