:root {
  --hot: #ff00aa;
  --lime: #b8ff00;
  --sky: #00e5ff;
  --gold: #ffe600;
  --grape: #7a00ff;
  --ketchup: #ff2a2a;
  --mustard: #ffd000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  min-height: 100vh;
  font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  color: #1a0014;
  background:
    radial-gradient(circle at 20% 20%, #ff8ae2 0 18%, transparent 19%),
    radial-gradient(circle at 80% 10%, #ffe600 0 14%, transparent 15%),
    radial-gradient(circle at 70% 80%, #00e5ff 0 16%, transparent 17%),
    repeating-linear-gradient(45deg, #ff9de0 0 18px, #ffe27a 18px 36px, #9dffd2 36px 54px, #9ecbff 54px 72px);
  background-attachment: fixed;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><text y='28' font-size='28'>🌭</text></svg>") 8 8, auto;
}

body.party {
  animation: disco 0.35s steps(4) infinite;
}

@keyframes disco {
  0% { filter: hue-rotate(0deg) saturate(1.4); }
  25% { filter: hue-rotate(90deg) saturate(2); }
  50% { filter: hue-rotate(180deg) contrast(1.4); }
  75% { filter: hue-rotate(270deg) saturate(2); }
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(#ffe600 1.4px, transparent 1.5px);
  background-size: 42px 42px, 73px 73px;
  opacity: 0.35;
  animation: twinkle 1.2s steps(2) infinite;
}

@keyframes twinkle { 50% { opacity: 0.08; } }

.duck-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.site {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 18px auto 80px;
  padding: 0 12px;
}

.blink {
  animation: blink 0.7s step-end infinite;
}

@keyframes blink { 50% { visibility: hidden; } }

.marquee-wrap {
  background: #000;
  color: #0f0;
  border: 6px ridge #ff00aa;
  padding: 6px 0;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 8px 8px 0 #7a00ff;
  overflow: hidden;
}

.marquee-wrap p {
  margin: 0;
  white-space: nowrap;
  animation: slide 14s linear infinite;
}

@keyframes slide {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  background: linear-gradient(#fff, #ffd6ef);
  border: 5px dashed #ff00aa;
  padding: 8px 12px;
  margin-top: 10px;
  transform: rotate(-0.6deg);
}

.best-viewed {
  font-size: 12px;
  color: #550033;
}
.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.lang-box {
  display: flex;
  gap: 4px;
  border: 3px outset #ffcc00;
  background: #220044;
  padding: 3px;
}

.lang-btn {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: 800;
  font-size: 12px;
  border: 2px outset #fff;
  background: #ff00aa;
  color: #fff;
  cursor: pointer;
  padding: 3px 8px;
}

.lang-btn.is-on {
  background: #00ff88;
  color: #111;
  border-style: inset;
}

.lang-btn:hover {
  transform: rotate(-4deg) scale(1.05);
}


.counter {
  background: #111;
  color: #ff3;
  font-family: "Courier New", monospace;
  padding: 4px 8px;
  border: 3px inset #888;
  letter-spacing: 3px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  justify-content: center;
}

nav a, .btn {
  display: inline-block;
  text-decoration: none;
  color: #000;
  background: linear-gradient(#fff76a, #ff9f1c);
  border: 4px outset #ffd000;
  padding: 8px 12px;
  font-weight: 800;
  box-shadow: 4px 4px 0 #7a00ff;
  transform: rotate(-2deg);
}

nav a:nth-child(even), .btn.alt {
  background: linear-gradient(#b8ff00, #00c853);
  border-color: #8cff00;
  transform: rotate(2deg);
}

nav a:hover, .btn:hover {
  transform: scale(1.12) rotate(8deg);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  background: #fff8c8;
  border: 8px double #ff2a2a;
  padding: 16px;
  box-shadow: 12px 12px 0 #00e5ff, -8px -8px 0 #ff00aa;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 0.95;
  background: linear-gradient(90deg, #ff00aa, #ffe600, #00e5ff, #b8ff00, #ff00aa);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 2s linear infinite;
  text-shadow: none;
  filter: drop-shadow(3px 3px 0 #7a00ff);
}

@keyframes rainbow { to { background-position: 200% 0; } }

.subtitle {
  font-size: 20px;
  transform: rotate(-2deg);
}

.potato {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  animation: spin 4s linear infinite;
  filter: drop-shadow(0 0 12px #ff00aa);
}

@keyframes spin { to { transform: rotate(360deg); } }

.speech {
  background: #fff;
  border: 4px solid #000;
  border-radius: 18px;
  padding: 10px 12px;
  position: relative;
  margin-top: 8px;
  font-size: 14px;
}

.speech:after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -14px;
  border: 8px solid transparent;
  border-top-color: #000;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.card {
  background: #fff;
  border: 6px groove #7a00ff;
  padding: 12px;
  transform: rotate(-1deg);
}

.card:nth-child(even) {
  background: #e8fff4;
  transform: rotate(1.4deg);
}

.card h2 {
  margin: 0 0 8px;
  color: #c4007a;
  text-decoration: underline wavy #00e5ff;
}

.awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  border: 4px ridge gold;
  background: #111;
  color: gold;
  padding: 6px 8px;
  font-size: 12px;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse { 50% { transform: scale(1.08); } }

.construction {
  display: flex;
  align-items: center;
  gap: 10px;
  background: repeating-linear-gradient(135deg, #111 0 12px, #ffe600 12px 24px);
  color: #111;
  padding: 10px;
  font-weight: 900;
}

.cone {
  font-size: 42px;
  animation: bounce 0.5s ease-in-out infinite;
}

@keyframes bounce {
  50% { transform: translateY(-8px) rotate(-10deg); }
}

form {
  display: grid;
  gap: 8px;
}

label { font-weight: 800; }

input, textarea, select {
  font: inherit;
  border: 4px inset #ff00aa;
  background: #fffbe6;
  padding: 6px;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.guestbook {
  max-height: 240px;
  overflow: auto;
  background: #001a00;
  color: #7cff7c;
  font-family: "Courier New", monospace;
  padding: 10px;
  border: 4px inset #0f0;
}

.guest { margin: 0 0 10px; }

.webring {
  text-align: center;
  background: #220033;
  color: #fff;
  padding: 14px;
  border: 8px ridge silver;
  margin-top: 16px;
}

.webring a { color: #ffe600; }

footer {
  text-align: center;
  margin-top: 18px;
  padding: 12px;
  background: #000;
  color: #0f0;
  border: 5px dotted #ff00aa;
}

.popup {
  position: fixed;
  z-index: 20;
  width: min(320px, 90vw);
  background: #c0c0c0;
  border: 4px outset #fff;
  box-shadow: 10px 10px 0 #000;
}

.popup header {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
}

.popup .body { padding: 12px; font-family: Tahoma, sans-serif; }

.trail {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font-size: 22px;
  animation: fade 0.8s ease-out forwards;
}

@keyframes fade {
  to { opacity: 0; transform: translateY(-24px) scale(0.4); }
}

.runner {
  position: relative;
}

#runaway {
  position: relative;
}

.secret {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #000;
  color: #ff00aa;
  border: 8px dashed #b8ff00;
  text-align: center;
}

.secret.show { display: block; }

.hamsters {
  display: flex;
  justify-content: space-around;
  font-size: 42px;
}

.hamster { animation: dance 0.4s ease-in-out infinite alternate; }
.hamster:nth-child(2) { animation-delay: 0.1s; }
.hamster:nth-child(3) { animation-delay: 0.2s; }

@keyframes dance {
  from { transform: translateY(0) rotate(-12deg); }
  to { transform: translateY(-14px) rotate(12deg); }
}

@media (max-width: 720px) {
  .hero, .grid { grid-template-columns: 1fr; }
  .potato { width: 160px; height: 160px; }
  .topbar { flex-wrap: wrap; }
  .topbar-right { align-items: flex-start; text-align: left; }
}
