* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  color: #000;
  background-color: #0f0;
  background-image:
    repeating-linear-gradient(45deg, #ff0 0 20px, #0f0 20px 40px);
  overflow-x: hidden;
}

a { color: #00f; }

.marquee {
  background: #f00;
  color: #ff0;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  padding: 6px 0;
  border-bottom: 4px dashed #ff0;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 18s linear infinite;
}
@keyframes scroll { to { transform: translateX(-100%); } }

header {
  text-align: center;
  background: #000;
  color: #fff;
  padding: 16px;
  border-bottom: 6px ridge #f0f;
}
.logo {
  font-size: clamp(28px, 7vw, 64px);
  font-family: Impact, "Arial Black", sans-serif;
  color: #0ff;
  text-shadow: 3px 3px #f0f, 6px 6px #ff0;
  transform: rotate(-2deg);
}
.logo span { color: #f00; }
.tagline { font-size: 18px; margin-top: 6px; }

.tiny { font-size: 4px; color: #666; }
header .tiny { color: #888; }

main {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.content {
  background: #fff;
  border: 8px groove #f0f;
  padding: 20px;
  min-width: 0;
}

.ad {
  background: #ff0;
  border: 4px dashed #f00;
  padding: 10px;
  text-align: center;
  align-self: start;
  position: sticky;
  top: 10px;
  font-weight: bold;
}
.ad-label { font-size: 9px; color: #888; font-family: Arial, sans-serif; }
.weird-block { font-size: 48px; animation: spin 2s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.blink { animation: blink 0.8s steps(2, start) infinite; color: #f00; font-size: 20px; }
@keyframes blink { to { visibility: hidden; } }

.rainbow {
  font-size: clamp(30px, 6vw, 56px);
  text-align: center;
  margin: 0;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 2s linear infinite;
  font-family: Impact, "Arial Black", sans-serif;
}
@keyframes rainbow { to { background-position: 200% center; } }

h2 { text-align: center; color: #f00; font-size: 18px; }
h3 { color: #00f; text-decoration: underline wavy #f0f; }

.file-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #eef;
  border: 2px inset #999;
  padding: 12px;
}
.file-icon { font-size: 56px; }
.filename {
  font-family: "Courier New", monospace;
  font-weight: bold;
  word-break: break-all;
  color: #900;
}
.stats { font-family: Tahoma, Verdana, sans-serif; font-size: 14px; margin-top: 6px; }
.stats td:first-child { font-weight: bold; padding-right: 8px; vertical-align: top; }

.features li { margin: 4px 0; font-size: 18px; }

.big-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.fake {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  border: 4px outset #ddd;
  padding: 6px 12px;
  background: #0c0;
  color: #fff;
}
.huge {
  font-size: 22px;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 0 0 4px #000, 0 0 20px 6px rgba(255,255,0,.8);
  animation: pulse 1s ease-in-out infinite;
  text-shadow: 2px 2px #000;
}
.huge:nth-child(2) { animation-delay: .25s; }
.huge:nth-child(3) { animation-delay: .5s; }
.huge:nth-child(4) { animation-delay: .75s; }
@keyframes pulse { 50% { transform: scale(1.05) rotate(-1deg); } }
.green-btn { background: linear-gradient(#5f5, #080) !important; }
.orange-btn { background: linear-gradient(#fb4, #e60) !important; }
.blue-btn { background: linear-gradient(#5cf, #04a) !important; }
.purple-btn { background: linear-gradient(#d6f, #70a) !important; }

.comments { display: flex; flex-direction: column; gap: 8px; }
.comment { background: #ffe; border: 1px solid #cc9; padding: 8px; font-family: Verdana, sans-serif; font-size: 13px; }
.comment p { margin: 4px 0 0; }
.comment .time { color: #999; font-size: 11px; }
.comment .tag { background: #f00; color: #fff; font-size: 10px; padding: 1px 4px; }

footer {
  text-align: center;
  background: #000;
  color: #fff;
  padding: 20px;
  margin-top: 20px;
}
footer a { color: #0ff; }
footer .tiny { color: #aaa; font-size: 12px; max-width: 600px; margin: 8px auto; }
.visitors { font-family: "Courier New", monospace; }
#visitor { background: #222; color: #0f0; padding: 2px 6px; letter-spacing: 3px; }

@media (max-width: 800px) {
  main { grid-template-columns: 1fr; }
  .ad { position: static; }
  .ad-left { order: 2; }
  .ad-right { order: 3; }
  .file-card { flex-direction: column; }
}
