html { background: #000; overflow-x: hidden; }
html, body { margin: 0; min-height: 100%; }
body {
  color: #fff;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Comic Neue', cursive;
  font-size: 22px;
  overflow-x: hidden;
  cursor: auto;
}

#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

#gate { position: fixed; inset: 0; z-index: 1000; background: #1a1a1a; display: grid; place-items: center; padding: 20px; box-sizing: border-box; }
#gate.hidden { display: none; }
.gate-box { max-width: 460px; width: 100%; background: #fff; color: #111; border: 1px solid #888; padding: 24px; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
.gate-box h2 { margin: 0 0 12px; font-size: 20px; }
.gate-lead { font-weight: bold; margin: 0 0 16px; }
#terms-link { color: #1a5fb4; }
.gate-terms { max-height: 180px; overflow-y: auto; border: 1px solid #ccc; padding: 10px 12px; margin-top: 14px; font-size: 14px; line-height: 1.5; color: #333; }
.gate-terms p { margin: 0 0 10px; }
.gate-actions { display: flex; gap: 10px; margin-top: 18px; }
.gate-actions button { font-family: inherit; font-size: 15px; padding: 10px 16px; border: 1px solid #555; cursor: pointer; }
#accept { background: #1a7d2c; color: #fff; }
#decline { background: #eee; color: #111; }

.page { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; padding: 24px 16px 80px; }

h1 {
  font-weight: bold;
  font-size: clamp(32px, 7vw, 64px);
  text-align: center;
  margin: 28px 0 8px;
  color: #ffff00;
}
.center { text-align: center; }
.blink { animation: blink 0.8s steps(1) infinite; color: #ff0; font-weight: bold; }
.title-teeth { height: 34px; vertical-align: middle; }
.mirror { transform: scaleX(-1); }

.banners { display: flex; flex-direction: column; align-items: center; gap: 28px; margin: 36px 0; }
.banners img { max-width: 100%; }

.collage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 80px; margin: 32px 0; }
.collage img { max-width: 180px; }
.collage img.chimp { width: 260px; max-width: 260px; }
.collage img:hover { transform: scale(1.4) rotate(5deg); z-index: 5; position: relative; }

.scatter { position: absolute; top: 0; left: 0; width: 100%; z-index: 2; pointer-events: none; overflow: hidden; }
.scatter img { position: absolute; }

.panther { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 6; pointer-events: none; }
.wizard { position: absolute; top: 170px; right: 2%; z-index: 2; pointer-events: none; }
.toucan { position: fixed; bottom: 4%; right: 5%; width: 200px; z-index: 1; pointer-events: none; }

.flyer { position: fixed; left: 0; z-index: 5; pointer-events: none; }
.saucer-ltr { top: 16%; animation: saucer-ltr 14s linear infinite; }
.saucer-rtl { top: 64%; animation: saucer-rtl 19s linear infinite -6s; }
.fish-ltr   { top: 68%; animation: fish-ltr 16s linear infinite -3s; }
.trout-rtl  { top: 78%; animation: trout-rtl 21s linear infinite -9s; }
.fish-rtl   { top: 81%; animation: fish-rtl 18s linear infinite -11s; }
.trout-ltr  { top: 92%; animation: trout-ltr 24s linear infinite -5s; }

.spin     { animation: spin 4s linear infinite; }
.spin-rev { animation: spin 6s linear infinite reverse; }
.float    { animation: float 3s ease-in-out infinite; }
.bounce   { animation: bounce 0.6s ease-in-out infinite alternate; }
.shake    { animation: shake 0.15s linear infinite; }
.wobble   { animation: wobble 1.2s ease-in-out infinite; }
.pulse    { animation: pulse 1s ease-in-out infinite; }
.flip     { animation: flip 3s linear infinite; }

.sparkle { position: fixed; pointer-events: none; z-index: 10; animation: fall 0.9s linear forwards; }


@keyframes saucer-ltr { from { transform: translateX(-640px); } to { transform: translateX(100vw); } }
@keyframes saucer-rtl { from { transform: translateX(100vw) scaleX(-1); } to { transform: translateX(-640px) scaleX(-1); } }
@keyframes fish-ltr   { from { transform: translateX(-365px); } to { transform: translateX(100vw); } }
@keyframes fish-rtl   { from { transform: translateX(100vw) scaleX(-1); } to { transform: translateX(-365px) scaleX(-1); } }
@keyframes trout-ltr  { from { transform: translateX(-590px); } to { transform: translateX(100vw); } }
@keyframes trout-rtl  { from { transform: translateX(100vw) scaleX(-1); } to { transform: translateX(-590px) scaleX(-1); } }
@keyframes blink  { 50% { opacity: 0; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes float  { 50% { transform: translateY(-20px); } }
@keyframes bounce { to { transform: translateY(-25px); } }
@keyframes shake  { 25% { transform: translate(2px, -2px); } 75% { transform: translate(-2px, 2px); } }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(1.08); } }
@keyframes pulse  { 50% { transform: scale(1.15); } }
@keyframes flip   { to { transform: rotateY(360deg); } }
@keyframes fall   { to { transform: translateY(40px) rotate(180deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

body.entered { cursor: url("img/cursor.png") 32 37, pointer; }
body.entered a, body.entered button { cursor: url("img/cursor.png") 32 37, pointer; }