* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  background-color: #ff00ff;
  color: #ffffff;
  text-align: center;
  overflow-x: hidden;
  animation: flashbg 2s step-end infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    radial-gradient(2px 2px at 30px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 130px 90px, #ffff66, transparent),
    radial-gradient(1px 1px at 200px 160px, #ffffff, transparent),
    radial-gradient(2px 2px at 90px 220px, #66ffff, transparent),
    radial-gradient(1px 1px at 250px 50px, #ffffff, transparent),
    radial-gradient(2px 2px at 310px 260px, #ff66ff, transparent);
  background-repeat: repeat;
  background-size: 360px 300px;
  animation: twinkle 1.4s steps(2, end) infinite, drift 40s linear infinite;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 94%;
  max-width: 920px;
  margin: 14px auto 40px;
  border: 6px outset #ffff00;
  background: #000080;
  padding: 10px;
  box-shadow: 0 0 0 4px #ff0000, 0 0 0 8px #00ff00;
}

@keyframes flashbg {
  0%   { background-color: #ff00ff; }
  25%  { background-color: #00ffff; }
  50%  { background-color: #ffea00; }
  75%  { background-color: #ff3300; }
  100% { background-color: #ff00ff; }
}

@keyframes twinkle {
  0%   { opacity: 0.4; }
  100% { opacity: 0.95; }
}

@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 360px 600px; }
}

@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

@keyframes spinrev {
  from { transform: rotate(0); }
  to   { transform: rotate(-360deg); }
}

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.28); }
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes rainbowtext {
  0%   { color: #ff0000; }
  16%  { color: #ff9900; }
  33%  { color: #ffee00; }
  50%  { color: #33ff00; }
  66%  { color: #00ccff; }
  83%  { color: #cc33ff; }
  100% { color: #ff0000; }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 4px #ffffff, 0 0 8px #ff00ff; }
  50%      { text-shadow: 0 0 8px #ffffff, 0 0 22px #00ffff, 0 0 30px #ffff00; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-9deg); }
  50%      { transform: rotate(9deg); }
}

@keyframes drifthr {
  from { background-position: 0 0; }
  to   { background-position: 70px 0; }
}

.construction {
  background: repeating-linear-gradient(45deg, #ffcc00 0 18px, #000000 18px 36px);
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(16px, 4vw, 22px);
  padding: 10px;
  border: 4px solid #ffcc00;
  margin: 6px 0 12px;
  text-shadow: 2px 2px 0 #000000;
}

.topbar { margin: 8px 0; }

.wordart {
  font-family: Impact, "Arial Black", Charcoal, sans-serif;
  font-size: clamp(34px, 9vw, 86px);
  line-height: 1.02;
  letter-spacing: 1px;
  margin: 6px 0;
  background: linear-gradient(#ffffff 0%, #fff200 38%, #ff8a00 62%, #d40000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #000000;
  text-shadow: 4px 4px 0 #00ffff, 7px 7px 0 #ff00ff;
  animation: pop 1.1s ease-in-out infinite;
}

.subwordart {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(18px, 5vw, 38px);
  -webkit-text-stroke: 1px #000000;
  color: #ffff00;
  text-shadow: 3px 3px 0 #ff0000;
  animation: glow 1.6s ease-in-out infinite;
}

.scroller {
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  border: 3px ridge #00ff00;
  padding: 6px 0;
  margin: 8px 0;
}

.scroller2 {
  background: #ffff00;
  color: #ff0000;
  font-family: "Comic Sans MS", cursive;
  font-size: 20px;
  font-weight: bold;
  border: 3px ridge #ff0000;
  padding: 6px 0;
  margin: 8px 0;
}

.hip-emojis {
  font-size: clamp(48px, 14vw, 110px);
  margin: 10px 0;
  line-height: 1;
}

.hip-emojis span {
  display: inline-block;
  margin: 0 6px;
}

.spin { animation: spin 3s linear infinite; display: inline-block; }
.spin-fast { animation: spin 1.4s linear infinite; display: inline-block; }
.spinrev { animation: spinrev 2.4s linear infinite; display: inline-block; }
.bounce { animation: bounce 1s ease-in-out infinite; display: inline-block; }
.wiggle { animation: wiggle 0.7s ease-in-out infinite; display: inline-block; }

.nav { margin: 10px 0; }

.nav a {
  display: inline-block;
  margin: 4px;
  padding: 6px 12px;
  background: #ff00ff;
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  border: 3px outset #ff66ff;
  text-decoration: none;
}

.nav a:hover { background: #00ffff; color: #000000; }

.divider {
  height: 10px;
  border: 0;
  margin: 12px 0;
  background: repeating-linear-gradient(90deg, #ff0000 0 14px, #ffff00 14px 28px, #00ff00 28px 42px, #00ffff 42px 56px, #ff00ff 56px 70px);
  animation: drifthr 1.2s linear infinite;
}

.midi {
  background: #000000;
  color: #00ff00;
  border: 2px dashed #00ff00;
  padding: 6px;
  margin: 10px 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.section {
  background: #c0c0c0;
  color: #000080;
  border: 4px ridge #ffffff;
  margin: 14px 0;
  padding: 14px;
  text-align: center;
}

.section h2 {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(24px, 6vw, 44px);
  margin: 4px 0 12px;
  -webkit-text-stroke: 1px #000000;
  text-shadow: 2px 2px 0 #00ffff;
  animation: rainbowtext 4s linear infinite;
}

.section p {
  font-size: 17px;
  line-height: 1.55;
  color: #101010;
  max-width: 660px;
  margin: 10px auto;
}

.hips {
  background: repeating-linear-gradient(45deg, #ff00ff 0 24px, #00ffff 24px 48px);
  border: 8px outset #ffff00;
  padding: 16px;
  margin: 18px 0;
}

.hips h2 {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(28px, 8vw, 62px);
  margin: 6px 0;
  color: #ffffff;
  -webkit-text-stroke: 2px #000000;
  text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000080;
  animation: pop 0.9s ease-in-out infinite;
}

.hips p {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  max-width: 660px;
  margin: 12px auto;
  text-shadow: 1px 1px 0 #000000;
}

.pop-word {
  display: inline-block;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 1px 1px 0 #000000;
  animation: pop 0.8s ease-in-out infinite;
}

.rainbow {
  animation: rainbowtext 3s linear infinite;
  font-weight: bold;
}

.blink {
  animation: blink 0.7s step-end infinite;
  font-weight: bold;
}

.glow-text { animation: glow 1.5s ease-in-out infinite; }

.feats {
  list-style: none;
  margin: 14px auto;
  padding: 0;
  max-width: 640px;
  text-align: left;
}

.feats li {
  background: #ffffcc;
  border: 2px dashed #ff00ff;
  margin: 8px 0;
  padding: 9px 12px;
  font-size: 16px;
  color: #000080;
  font-weight: bold;
}

.feats li::before { content: "👉 "; }

table.stats {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  background: #000000;
}

table.stats caption {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  color: #00ff00;
  padding: 6px;
  letter-spacing: 2px;
}

table.stats th, table.stats td {
  border: 2px solid #00ff00;
  padding: 8px 10px;
  font-size: 15px;
  text-align: left;
}

table.stats th {
  background: #000080;
  color: #ffff00;
  width: 48%;
  font-family: "Comic Sans MS", cursive;
}

table.stats td {
  background: #101010;
  color: #00ffcc;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.films {
  list-style: square;
  text-align: left;
  max-width: 600px;
  margin: 10px auto;
  color: #101010;
  font-size: 17px;
}

.films li { margin: 7px 0; }

.newbadge {
  display: inline-block;
  background: #ff0000;
  color: #ffff00;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 11px;
  padding: 1px 5px;
  margin-left: 6px;
  border: 1px solid #ffffff;
  letter-spacing: 1px;
  animation: blink 0.6s step-end infinite;
}

.awards { margin: 14px 0; }

.award {
  display: inline-block;
  margin: 6px;
  padding: 8px 12px;
  background: #ffeb3b;
  color: #b00000;
  border: 3px ridge #ff8a00;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  animation: wiggle 1.4s ease-in-out infinite;
}

.guestbook {
  background: #ffffff;
  border: 4px ridge #ff00ff;
  padding: 14px;
  margin: 14px 0;
  text-align: left;
}

.guestbook h2 {
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(22px, 6vw, 40px);
  margin: 4px 0 14px;
}

.gb-entry {
  border-bottom: 1px dashed #888888;
  padding: 8px 4px;
  color: #101010;
  font-size: 15px;
}

.gb-name { font-weight: bold; color: #0000ff; }

.gb-date { color: #888888; font-size: 12px; }

.gb-sign {
  display: inline-block;
  margin: 12px auto 4px;
  padding: 10px 18px;
  background: #00ff00;
  color: #000000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  border: 4px outset #008000;
  text-decoration: none;
  animation: pop 1s ease-in-out infinite;
}

.gb-sign:hover { background: #ffff00; }

.webring {
  background: #000080;
  color: #ffffff;
  border: 4px ridge #00ffff;
  padding: 14px;
  margin: 14px 0;
}

.webring h3 {
  font-family: Impact, "Arial Black", sans-serif;
  color: #00ffff;
  font-size: 24px;
  margin: 4px 0;
  letter-spacing: 1px;
}

.webring p { font-size: 18px; color: #ffffff; }

.webring a { color: #ffff00; font-weight: bold; text-decoration: none; margin: 0 4px; }

.webring a:hover { color: #ff00ff; }

.badges { margin: 14px 0; }

.badge {
  display: inline-block;
  margin: 5px;
  padding: 5px 8px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  border: 2px outset #aaaaaa;
  background: #222222;
  color: #00ff00;
}

.badge.alt { background: #000080; color: #ffff00; }

.badge.alt2 { background: #660066; color: #00ffff; }

.counter {
  margin: 12px 0;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 15px;
  line-height: 1.7;
}

.counter .digits {
  display: inline-block;
  background: #000000;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 4px 8px;
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: bold;
}

.footer {
  margin-top: 16px;
  padding: 12px;
  background: #000000;
  color: #aaaaaa;
  border-top: 3px ridge #ffffff;
  font-size: 13px;
  line-height: 1.6;
}

.footer a { color: #00ffff; }

.disclaimer {
  font-size: 12px;
  color: #cccccc;
  margin-top: 10px;
  line-height: 1.45;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .wrap { width: 98%; padding: 6px; }
  table.stats th, table.stats td { display: block; width: 100%; font-size: 14px; padding: 6px; }
  table.stats th { border-bottom: 0; }
  .nav a { font-size: 15px; padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, body, body::before, .wordart, .award, .gb-sign, .newbadge { animation: none !important; }
  body { background-color: #001520; }
  .wordart { -webkit-text-fill-color: #fff200; color: #fff200; }
}
