body {
  background-color: #000080;
  background-image:
    linear-gradient(45deg, rgba(255,0,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,0,255,0.15) 75%),
    linear-gradient(45deg, rgba(0,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(0,255,255,0.15) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: #ffff00;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  margin: 0;
  padding: 0;
}

.marquee-bar {
  background: repeating-linear-gradient(
    45deg,
    #ffcc00 0 20px,
    #000000 20px 40px
  );
  border-top: 4px ridge #ff0000;
  border-bottom: 4px ridge #ff0000;
  padding: 6px 0;
  font-family: "Impact", "Arial Black", sans-serif;
  color: #ff0000;
  text-shadow: 2px 2px 0 #ffffff;
  font-size: 22px;
}

.main {
  max-width: 780px;
  margin: 20px auto;
  background: #c0c0c0;
  border: 6px outset #ffffff;
  padding: 16px;
  color: #000000;
}

h1.title {
  text-align: center;
  font-family: "Times New Roman", serif;
  font-size: 52px;
  margin: 0;
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.25);
}

.subtitle {
  text-align: center;
  font-style: italic;
  color: #800080;
  margin-top: 4px;
}

.panel {
  background: #ffffff;
  border: 4px inset #808080;
  padding: 12px;
  margin: 16px 0;
}

.panel h2 {
  font-family: "Impact", sans-serif;
  color: #ff00ff;
  text-shadow: 1px 1px 0 #00ffff;
  border-bottom: 2px dashed #000080;
  padding-bottom: 4px;
  margin-top: 0;
}

.counter {
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 36px;
  color: #00ff00;
  background: #000000;
  padding: 8px 12px;
  border: 4px inset #444;
  display: inline-block;
  letter-spacing: 6px;
}

.center { text-align: center; }

.construction-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.cone {
  width: 60px;
  height: 60px;
  position: relative;
  display: inline-block;
  animation: bounce 0.8s infinite alternate;
}
.cone::before {
  content: "";
  position: absolute;
  bottom: 0; left: 5px;
  width: 50px; height: 8px;
  background: #222;
  border-radius: 4px;
}
.cone::after {
  content: "";
  position: absolute;
  bottom: 6px; left: 20px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 48px solid #ff6600;
  filter: drop-shadow(0 0 1px #000);
}
@keyframes bounce { from { transform: translateY(0);} to { transform: translateY(-10px);} }

.digger {
  font-size: 56px;
  animation: dig 1s steps(2) infinite;
  display: inline-block;
}
@keyframes dig { 50% { transform: rotate(-15deg);} }

.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.rainbow {
  background: linear-gradient(90deg,#ff0000,#ff8800,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

table.guestbook {
  width: 100%;
  border-collapse: collapse;
}
table.guestbook td {
  border: 2px groove #808080;
  padding: 6px 8px;
  vertical-align: top;
  background: #fffacd;
  font-family: "Times New Roman", serif;
}
table.guestbook td.name {
  width: 30%;
  background: #ffe4f1;
  font-weight: bold;
  color: #800080;
}
table.guestbook td.date {
  width: 18%;
  font-size: 11px;
  color: #555;
  background: #e0ffe0;
}

form.gb input[type=text], form.gb textarea {
  width: 90%;
  border: 2px inset #808080;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  padding: 4px;
}
form.gb label { display:block; margin-top:8px; font-weight: bold; color: #000080;}
form.gb button {
  margin-top: 10px;
  background: #c0c0c0;
  border: 3px outset #ffffff;
  padding: 6px 14px;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  cursor: pointer;
}
form.gb button:active { border-style: inset; }

.navbar {
  text-align: center;
  background: #000080;
  color: #ffff00;
  padding: 6px;
  font-family: "Verdana", sans-serif;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.navbar a {
  color: #ffff00;
  margin: 0 8px;
  text-decoration: underline;
}
.navbar a:hover { color: #ff00ff; background: #ffff00; }

.webring {
  text-align: center;
  border: 3px dashed #ff00ff;
  padding: 10px;
  background: #ffffe0;
  color: #000;
}
.webring h2 {
  color: #ff0000;
  text-shadow: none;
  border: none;
}
.webring .fineprint {
  font-size: 11px;
  color: #444;
}

.badge {
  display: inline-block;
  width: 88px; height: 31px;
  line-height: 31px;
  text-align: center;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  margin: 4px;
  box-shadow: 1px 1px 0 #888;
  vertical-align: middle;
}
a.badge { text-decoration: none; }
.badge.firefox { background: linear-gradient(180deg,#ff9500,#b5260a); }
.badge.opera   { background: linear-gradient(180deg,#ff1b2d,#7a0000); }
.badge.brave   { background: linear-gradient(180deg,#ff5500,#662d91); }
.badge.html { background: linear-gradient(180deg,#cc0000,#660000); }
.badge.geo { background: linear-gradient(180deg,#ffcc00,#cc6600); color:#000;}

footer.foot {
  text-align: center;
  color: #ffff00;
  padding: 12px;
  font-size: 12px;
  text-shadow: 1px 1px 0 #000;
}
footer.foot a { color: #00ffff; }

hr.fancy {
  border: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg,#ff0000 0 10px,#ffff00 10px 20px,#00ff00 20px 30px,#00ffff 30px 40px,#ff00ff 40px 50px);
}

.blink-red { color: #ff0000; }

/* ===== FREE PET MONKEY ad (period-accurate obnoxious) ===== */
.monkey-ad {
  margin: 18px auto;
  max-width: 760px;
  padding: 6px;
  border: 6px ridge #ffff00;
  text-align: center;
  animation: monkeyFlash 0.5s steps(1) infinite;
  box-shadow: 0 0 0 4px #ff00ff, 0 0 22px 8px #00ffff;
}
.monkey-ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  padding: 10px 8px;
  border: 3px dashed #00ff00;
}
.monkey-pitch { flex: 1; }
.monkey-head {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 20px;
  font-weight: bold;
  color: #ffff00;
  margin: 2px 0 6px;
  text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff;
}
.monkey-sub {
  font-size: 18px;
  font-weight: bold;
  color: #00ff00;
  margin: 4px 0;
}
.monkey-marquee {
  color: #ffffff;
  font-weight: bold;
  background: #cc0000;
  border: 2px outset #ff8800;
  padding: 3px 0;
  margin: 6px 0;
}
.monkey-price {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin: 6px 0;
}
.monkey-price .blink { color: #00ff00; font-size: 28px; }
.monkey-btn {
  display: inline-block;
  margin: 8px auto 4px;
  padding: 10px 22px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  background: linear-gradient(180deg,#ffff00,#ff8800);
  border: 4px outset #ffcc00;
  border-radius: 8px;
  animation: monkeyPulse 0.6s ease-in-out infinite alternate;
}
.monkey-btn:hover { background: linear-gradient(180deg,#ff00ff,#00ffff); }
.monkey-fine {
  font-size: 9px;
  color: #888;
  margin: 8px 6px 2px;
  line-height: 1.3;
}
.monkey-spin {
  font-size: 46px;
  display: inline-block;
  animation: monkeySpin 1.2s linear infinite;
}
@keyframes monkeyFlash {
  0%   { background: #ff0000; }
  25%  { background: #ffff00; }
  50%  { background: #00ff00; }
  75%  { background: #00ffff; }
  100% { background: #ff00ff; }
}
@keyframes monkeyPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
@keyframes monkeySpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Generic retro buttons for new widgets ===== */
.panel button, form button {
  margin: 6px 4px 0;
  background: #c0c0c0;
  border: 3px outset #ffffff;
  padding: 6px 14px;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  cursor: pointer;
}
.panel button:active, form button:active { border-style: inset; }
form.gb input[type=email] {
  width: 90%;
  border: 2px inset #808080;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  padding: 4px;
}

/* ===== Splash / "click to ENTER" gate ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    repeating-linear-gradient(45deg,#000080 0 24px,#000060 24px 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, transform .6s ease;
}
.splash-gone { opacity: 0; transform: scale(1.3); pointer-events: none; }
.splash-box {
  background: #000;
  border: 8px ridge #ffcc00;
  box-shadow: 0 0 0 4px #ff00ff, 0 0 30px 10px #00ffff;
  padding: 26px 34px;
  text-align: center;
  max-width: 90%;
}
.splash-stars { color: #ffff00; font-size: 18px; margin: 0 0 6px; }
.splash-title {
  font-family: "Times New Roman", serif;
  font-size: 64px;
  margin: 4px 0;
  background: linear-gradient(90deg,#ff0000,#ff8800,#ffff00,#00ff00,#00ffff,#ff00ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #fff;
}
.splash-sub { color: #00ff00; font-size: 20px; font-weight: bold; margin: 6px 0; }
.splash-warn { font-size: 13px; margin: 6px 0 14px; }
.splash-doors { display: flex; gap: 16px; justify-content: center; }
.splash-door {
  font-family: "Comic Sans MS", cursive;
  font-size: 22px;
  font-weight: bold;
  padding: 12px 22px;
  border: 5px outset #fff;
  cursor: pointer;
}
.splash-door.enter {
  background: linear-gradient(180deg,#00ff00,#008000);
  color: #000;
  animation: monkeyPulse .6s ease-in-out infinite alternate;
}
.splash-door.exit { background: linear-gradient(180deg,#ff0000,#800000); color: #fff; }
.splash-door:active { border-style: inset; }
.splash-fine { color: #888; font-size: 11px; margin: 16px 0 0; }
.shake { animation: shake .4s linear; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-3deg); }
  40% { transform: translateX(8px) rotate(3deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ===== Top bar: speakers notice + music toggle ===== */
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
}
.speakers-notice { color: #800080; font-weight: bold; font-size: 13px; }
.music-toggle {
  background: linear-gradient(180deg,#00ffff,#0080ff);
  border: 3px outset #fff;
  padding: 4px 12px;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  cursor: pointer;
}
.music-toggle:active { border-style: inset; }

/* ===== Neighborhood address + NEW! + Last Updated ===== */
.hood { text-align: center; font-size: 12px; color: #000080; margin: 2px 0 10px; }
.updated b { color: #cc0000; }
.new-badge {
  background: #ff0000;
  color: #ffff00;
  font-weight: bold;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 3px;
  animation: blink 1s steps(2) infinite;
}

/* ===== Sparkle cursor trail ===== */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 9998;
  font-size: 16px;
  transform: translate(-50%, -50%);
  animation: sparkleFade .9s ease-out forwards;
}
@keyframes sparkleFade {
  from { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
  to   { opacity: 0; transform: translate(-50%,-160%) scale(0.2) rotate(180deg); }
}

/* ===== Falling snow ===== */
.snow-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9997; overflow: hidden; }
.snowflake {
  position: absolute;
  top: -5%;
  color: #fff;
  text-shadow: 0 0 3px #00ffff;
  animation-name: snowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes snowFall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: .9; }
  100% { transform: translateY(110vh) translateX(40px) rotate(360deg); opacity: .4; }
}

/* ===== Visitor poll ===== */
.poll-results { display: none; margin-top: 10px; text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
.poll-row { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 13px; }
.poll-label { width: 150px; font-weight: bold; color: #000080; }
.poll-bar { flex: 1; background: #d0d0d0; border: 1px inset #808080; height: 16px; }
.poll-fill {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg,#ff00ff 0 8px,#00ffff 8px 16px);
}
.poll-pct { width: 90px; text-align: right; font-size: 11px; color: #800080; }
.poll-total { text-align: center; font-weight: bold; color: #cc0000; margin-top: 8px; }

/* ===== Adopt-a-monkey pet ===== */
.pet-face { font-size: 72px; line-height: 1; margin: 6px 0; }
.pet-mood { font-weight: bold; color: #800080; }
.pet-nom { animation: petNom .4s ease; }
@keyframes petNom {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.4) rotate(-10deg); }
}

/* ===== 88x31 award badges ===== */
.badge-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.btn88 {
  width: 88px;
  height: 31px;
  font-size: 9px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border: 1px solid #000;
  box-shadow: inset -1px -1px 0 rgba(0,0,0,.4), inset 1px 1px 0 rgba(255,255,255,.5);
  text-shadow: 1px 1px 0 #000;
}
.b-cool { background: linear-gradient(180deg,#0040ff,#001080); }
.b-geo { background: linear-gradient(180deg,#00a000,#004000); }
.b-y2k { background: linear-gradient(180deg,#ff8800,#aa3300); }
.b-notepad { background: #fff; color: #000; text-shadow: none; }
.b-win98 { background: linear-gradient(180deg,#008080,#003838); }
.b-netscape { background: linear-gradient(180deg,#333,#000); color: #00ff00; }
.b-webtv { background: linear-gradient(180deg,#cc00cc,#550055); }
.b-256 { background: linear-gradient(90deg,#ff0000,#ffff00,#00ff00,#00ffff,#ff00ff); color:#000; text-shadow:none; }
.b-56k { background: linear-gradient(180deg,#ff4400,#660000); }

/* ===== Flag counter ===== */
.flag-counter { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 8px 0; }
.flag-row {
  background: #fffacd;
  border: 2px groove #808080;
  padding: 3px 8px;
  font-family: "Times New Roman", serif;
  font-size: 13px;
}
.flag-row b { color: #cc0000; }

/* ===== Floating site mascot ===== */
.mascot { position: fixed; left: 12px; bottom: 12px; z-index: 9996; text-align: center; pointer-events: none; }
.mascot-body { font-size: 52px; animation: monkeyPulse .8s ease-in-out infinite alternate; }
.mascot-bubble {
  max-width: 180px;
  background: #ffffcc;
  border: 3px solid #000080;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  margin-bottom: 4px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.mascot-pop { animation: petNom .35s ease; }

@media (max-width: 600px) {
  .mascot { display: none; }
  .splash-title { font-size: 44px; }
}
