body {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  color: #000000;
  background-color: #c0c0c0;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='8' height='8' fill='%23c0c0c0'/%3E%3Crect x='0' y='0' width='4' height='4' fill='%23c8c8c8'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%23c8c8c8'/%3E%3C/svg%3E");
  cursor: default;
}

a { color: #0000FF; }
a:visited { color: #800080; }
a:hover { color: #FF0000; }

.win95-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #FFFFFF;
  font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.win95-title__icon { width: 16px; height: 16px; margin-right: 6px; }
.win95-title__left { display: flex; align-items: center; }
.win95-title__buttons { display: flex; gap: 2px; }
.win95-title__btn {
  width: 16px; height: 14px;
  background: #c0c0c0;
  border: 1px outset #fff;
  font-size: 8px;
  line-height: 14px;
  text-align: center;
  font-family: 'Marlett', sans-serif;
  cursor: pointer;
}

.win95-window {
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  margin: 8px auto;
  max-width: 800px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.win95-window__body {
  border: 2px inset #dfdfdf;
  margin: 2px;
  background: #ffffff;
  padding: 0;
}

.address-bar {
  background: #c0c0c0;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  border-bottom: 1px solid #808080;
}
.address-bar__label { font-weight: bold; white-space: nowrap; }
.address-bar__input {
  flex: 1;
  border: 2px inset #dfdfdf;
  background: white;
  padding: 1px 4px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

.status-bar {
  background: #c0c0c0;
  border-top: 1px solid #808080;
  padding: 2px 6px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-bar__section {
  border: 1px inset #dfdfdf;
  padding: 1px 6px;
  flex: 1;
}

.page-content { padding: 12px 16px; line-height: 1.5; }

.page-header {
  text-align: center;
  padding: 16px;
  background: #000000;
  color: #00FF00;
}
.page-header h1 {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-size: 28px;
  color: #FF6600;
  text-shadow: 2px 2px #000;
  margin: 0 0 4px;
  letter-spacing: 2px;
}
.page-header h1 span { color: #FFFF00; }
.page-header .subtitle {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #00FF00;
}

.marquee-bar {
  background: #FFFF00;
  color: #FF0000;
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #FF0000;
  border-bottom: 2px solid #FF0000;
}
.marquee-bar__inner { display: inline-block; animation: marquee 25s linear infinite; }
@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-200%); }
}

.hit-counter {
  text-align: center;
  margin: 12px 0;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}
.hit-counter__display {
  display: inline-block;
  background: #000;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  padding: 2px 8px;
  border: 2px inset #666;
  letter-spacing: 2px;
}

hr.rainbow {
  border: none;
  height: 6px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red, orange, yellow, green, blue);
  margin: 12px 0;
}
hr.fire {
  border: none;
  height: 10px;
  background: linear-gradient(0deg, #f00, #ff0, #f80, #f00);
  background-size: 100% 200%;
  animation: fire-hr 0.6s ease-in-out infinite alternate;
  margin: 12px 0;
}
@keyframes fire-hr {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}

.webring-nav {
  text-align: center;
  margin: 20px 0;
  padding: 12px;
  border: 3px double #000080;
  background: #FFFFCC;
}
.webring-nav h3 {
  font-family: 'Comic Sans MS', cursive;
  color: #000080;
  margin: 0 0 8px;
  font-size: 16px;
}
.webring-nav__links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.webring-nav__btn {
  display: inline-block;
  padding: 4px 12px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}
.webring-nav__btn:hover { border-style: inset; }
.webring-nav__btn:active { border-style: inset; background: #a0a0a0; }

.members-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 12px 0;
}
.members-table th {
  background: #000080;
  color: #fff;
  padding: 4px 8px;
  text-align: left;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}
.members-table td {
  border: 1px solid #808080;
  padding: 4px 8px;
  background: #fff;
  vertical-align: top;
}
.members-table tr:nth-child(even) td { background: #f0f0f0; }

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.snapshot-card {
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  padding: 4px;
  text-align: center;
}
.snapshot-card__frame {
  border: 2px inset #dfdfdf;
  background: #fff;
  height: 160px;
  overflow: hidden;
  position: relative;
}
.snapshot-card__frame iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: 0 0;
  border: none;
  pointer-events: none;
}
.snapshot-card__frame .snapshot-card__overlay {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 35%;
  transform: rotate(-18deg);
  pointer-events: none;
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,.3));
  z-index: 2;
}
.snapshot-card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #1a1a2e;
  z-index: 3;
  font-family: 'Courier New', monospace;
  color: #0f0;
  text-align: center;
  overflow: hidden;
}
.snapshot-card__fallback.active { display: flex; }
.snapshot-card__fallback.loaded { background: transparent; }
.snapshot-card__fallback-icon {
  width: 32px; height: auto;
  z-index: 3;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(0,255,0,0.3));
  animation: apoc-icon-float-sm 3s ease-in-out infinite;
}
.snapshot-card__fallback.loaded .snapshot-card__fallback-icon {
  opacity: 0; transform: scale(0.5); pointer-events: none;
  transition: opacity 400ms, transform 400ms;
}
@keyframes apoc-icon-float-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.snapshot-card__fallback-title {
  margin-top: 4px;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f44;
  font-weight: bold;
  z-index: 3;
}
.snapshot-card__fallback.loaded .snapshot-card__fallback-title { display: none; }
.snapshot-card__fallback-status {
  margin-top: 3px;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: apoc-blink 0.6s step-end infinite;
  z-index: 2;
}
.snapshot-card__fallback.loaded .snapshot-card__fallback-status { display: none; }
@keyframes apoc-blink { 50% { color: #0a0; } }
.snapshot-card__fallback-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 5;
}
.snapshot-card__fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 400ms;
  z-index: 1;
}
.snapshot-card__fallback-img.visible { opacity: 1; }
.snapshot-card__fallback-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0,0,0,0.7);
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 7px;
  padding: 1px 4px;
  letter-spacing: 1px;
  z-index: 6;
  display: none;
}
.snapshot-card__fallback.loaded .snapshot-card__fallback-badge { display: block; }
.snapshot-card__fallback-source {
  position: absolute;
  bottom: 3px; left: 3px;
  background: rgba(0,0,0,0.7);
  color: #aaa;
  font-family: 'Courier New', monospace;
  font-size: 6px;
  padding: 1px 3px;
  letter-spacing: 1px;
  z-index: 6;
  display: none;
}
.snapshot-card__fallback.loaded .snapshot-card__fallback-source { display: block; }
.snapshot-card__label {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  padding: 4px;
  color: #000;
}
.snapshot-card__link {
  display: inline-block;
  padding: 2px 8px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-size: 10px;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}
.snapshot-card__link:active { border-style: inset; }

.under-construction {
  text-align: center;
  margin: 16px 0;
  font-family: 'Comic Sans MS', cursive;
  font-size: 12px;
  color: #FF0000;
}
.under-construction span { display: inline-block; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.guestbook {
  border: 3px double #008000;
  background: #e0ffe0;
  padding: 12px;
  margin: 16px 0;
}
.guestbook h3 {
  font-family: 'Comic Sans MS', cursive;
  color: #008000;
  margin: 0 0 8px;
}
.guestbook__entry {
  border-bottom: 1px dashed #008000;
  padding: 6px 0;
  font-size: 12px;
}
.guestbook__entry b { color: #000080; }
.guestbook__form {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.guestbook__input {
  border: 2px inset #dfdfdf;
  padding: 2px 6px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  flex: 1;
  min-width: 150px;
}

.sound-panel {
  border: 3px ridge #808080;
  background: #e8e8e8;
  padding: 8px 12px;
  margin: 16px 0;
}
.sound-panel h3 {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 13px;
  color: #000;
  margin: 0 0 6px;
  border-bottom: 1px solid #808080;
  padding-bottom: 4px;
}
.sound-panel__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: #000;
}
.sound-btn:active { border-style: inset; background: #a0a0a0; }
.sound-btn.playing { border-style: inset; background: #b0b0ff; }
.sound-btn__icon { font-size: 14px; }

.email-anim { display: inline-block; animation: email-bounce 0.5s ease infinite alternate; }
@keyframes email-bounce { to { transform: translateY(-3px); } }

.blink { animation: blink 1s step-end infinite; }

.best-viewed {
  text-align: center;
  margin: 16px 0;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  color: #808080;
}
.best-viewed__badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.badge-88x31 {
  width: 88px;
  height: 31px;
  border: 1px solid #000;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

@media (max-width: 600px) {
  .win95-window { margin: 4px; }
  .page-header h1 { font-size: 20px; }
  .snapshot-grid { grid-template-columns: 1fr; }
}

.dialup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #008080;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  color: #fff;
  transition: opacity 600ms;
}
.dialup-overlay.hidden { opacity: 0; pointer-events: none; }
.dialup-overlay__window {
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  width: min(90vw, 380px);
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.dialup-overlay__body {
  padding: 12px 16px;
  color: #000;
  font-size: 12px;
  line-height: 1.6;
}
.dialup-overlay__status {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #000080;
  margin-top: 8px;
}
.dialup-overlay__progress {
  margin-top: 8px;
  height: 16px;
  border: 2px inset #dfdfdf;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.dialup-overlay__progress-bar {
  height: 100%;
  background: #000080;
  width: 0%;
  transition: width 300ms;
}
.dialup-overlay__buttons { text-align: right; margin-top: 10px; }

.footer-webring {
  max-width: 1100px; margin: .6rem auto .3rem;
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .25rem .5rem;
  background: color-mix(in oklch, var(--bg-base, #f5f0e8) 85%, var(--casing-red, #a81e0f));
  border: 1px solid color-mix(in oklch, var(--casing-red, #a81e0f) 40%, transparent);
  border-radius: 3px;
  font-family: var(--font-stamp, 'Rubik', monospace);
  font-size: .52rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-webring__label { color: var(--casing-red, #a81e0f); white-space: nowrap; font-weight: bold; }
.footer-webring__site {
  color: var(--color-text, var(--fg-primary, var(--ink, #0d0800)));
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .7;
}
.footer-webring__btns { display: flex; gap: .2rem; }
.footer-webring__btn {
  background: var(--bg-elevated, var(--bg-base, #f5f0e8));
  border: 1px solid color-mix(in oklch, var(--casing-red, #a81e0f) 40%, transparent);
  color: var(--color-text, var(--fg-primary, var(--ink, #0d0800)));
  font-family: var(--font-stamp, 'Rubik', monospace);
  font-size: .48rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .12rem .4rem;
  cursor: pointer;
  transition: background 100ms, color 100ms;
}
.footer-webring__btn:hover {
  background: var(--casing-red, #a81e0f);
  color: var(--ink-on-accent, #fff);
}
@media (max-width: 640px) {
  .footer-webring { gap: .25rem; font-size: .45rem; }
  .footer-webring__site { max-width: 100px; }
  .footer-webring__btn { padding: .1rem .25rem; font-size: .42rem; }
}
@media (prefers-color-scheme: dark) {
  .footer-webring {
    background: color-mix(in oklch, var(--bg-base, #1a0000) 85%, var(--casing-red, #a81e0f));
    border-color: color-mix(in oklch, var(--casing-red, #a81e0f) 50%, transparent);
  }
  .footer-webring__site { color: var(--ink-on-dark, var(--color-text, #f5f0e8)); }
  .footer-webring__btn {
    background: color-mix(in oklch, var(--bg-base, #1a0000) 70%, var(--casing-red, #a81e0f));
    border-color: color-mix(in oklch, var(--casing-red, #a81e0f) 50%, transparent);
    color: var(--ink-on-dark, var(--color-text, #f5f0e8));
  }
  .footer-webring__btn:hover {
    background: var(--casing-red, #a81e0f);
    color: var(--ink-on-accent, #fff);
  }
}
