  body {
    margin: 0; padding: 1rem;
    background: #000; color: #0f0;
    font-family: monospace; line-height: 1.4;
    display: flex; flex-direction: column; min-height: 100vh;
  }

  h1 {
    text-align: center; margin-bottom: 2rem;
  }

  .grid {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; flex-grow: 1;
  }

  .webring {
    border: 1px solid #0f0; padding: 1rem;
    flex: 1 1 calc(33% - 2rem); box-sizing: border-box;
    min-width: 220px;
  }

  .webring h2 {
    margin-top: 0; font-size: 1.1rem; text-transform: capitalize;
  }

  .webring hr {
    border: none; border-top: 1px solid #0f0; margin: .5rem 0;
  }

  .webring ul {
    list-style: none; padding: 0; margin: 0;
    /* limit to ~10 items, enable scrolling */
    max-height: calc(10 * 1.4em);
    overflow-y: auto;

    /* Firefox: thin, neon-green thumb on transparent track */
    scrollbar-width: thin;
    scrollbar-color: #0f0 transparent;

    /* IE/EdgeHTML older: hide scrollbar if you prefer */
    -ms-overflow-style: none;
  }

  /* WebKit/Blink scrollbar styling */
  .webring ul::-webkit-scrollbar {
    width: 4px;
    background: transparent;
  }

  .webring ul::-webkit-scrollbar-track {
    background: transparent;
  }

  .webring ul::-webkit-scrollbar-thumb {
    background-color: #0f0;
    border-radius: 2px;
    border: 1px solid #000;
  }

  /* Firefox-only override (redundant if scrollbar-color above works) */
  @-moz-document url-prefix() {
    .webring ul {
      scrollbar-width: thin;
      scrollbar-color: #0f0 transparent;
    }
  }

  /* Hide EdgeHTML scrollbar completely (optional) */
  .webring ul::-ms-scrollbar {
    width: 0;
    background: transparent;
  }

  .webring li {
    margin: .4rem 0;
    overflow-wrap: break-word; word-break: break-word; white-space: normal;
  }

  .webring a, a {
    color: #0f0; text-decoration: none;
  }

  .webring a:hover, a:hover {
    text-decoration: underline;
  }

  .surf-button {
    background: transparent; border: 1px solid #0f0; color: #0f0;
    padding: .3rem .6rem; cursor: pointer; font-family: monospace;
    margin-bottom: .5rem;
  }

  .surf-button:hover {
    background: #0f0; color: #000;
  }

  footer {
    text-align: center; padding: 1rem 0; font-size: .9rem;
    border-top: 1px solid #0f0; margin-top: 2rem;
  }

  footer a {
    color: #0f0; text-decoration: none; margin: 0 .5rem;
  }

  footer a:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .webring {
      flex: 1 1 calc(50% - 2rem);
    }
  }

  @media (max-width: 480px) {
    .webring {
      flex: 1 1 100%;
    }
  }

  /* Main page scrollbar – WebKit/Blink */
  html::-webkit-scrollbar {
    width: 6px;
    background: transparent;
  }

  html::-webkit-scrollbar-track {
    background: transparent;
  }

  html::-webkit-scrollbar-thumb {
    background-color: #0f0;
    border-radius: 2px;
    border: 1px solid #000;
  }

  /* Main page scrollbar – Firefox */
  html {
    scrollbar-width: thin;
    scrollbar-color: #0f0 transparent;
  }

  /* (Optional) Hide default scrollbar on old IE/Edge */
  html {
    -ms-overflow-style: none;
  }

  /* Terminal-style search */
  .search-box {
    position: fixed; top: 10px; right: 10px; z-index: 9999;
    background: #000; border: 1px solid #0f0; padding: 8px;
    font-family: monospace; width: 240px;
  }

  .search-box input {
    background: transparent; border: none; color: #0f0;
    padding: 4px 6px; width: 100%; outline: none; font-family: monospace;
    font-size: 16px;
  }

  .search-box input::placeholder {
    color: #0f0;
  }

  .search-box .search-info {
    margin-top: 4px; font-size: .7rem; color: #0f0;
  }

  .search-box .search-info em {
    font-style: normal; opacity: .7;
  }

  mark.search-highlight {
    background-color: yellow; padding: 0 2px; border-radius: 2px;
  }

  mark.current-highlight {
    background-color: orange; padding: 0 2px; border-radius: 2px;
  }

  mark:focus {
    outline: 1px dashed #0f0;
  }
  @media (max-width: 600px) {
  .search-box {
    position: fixed;
    top: auto !important;
    bottom: 20px !important;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: fit-content;
    max-width: 400px;
    z-index: 1000;
  }
}