:root {
  --clown-red: #e60026; /* sharper red */
  --clown-gold: #ffbf00; /* sharper yellow */
  --clown-blue: #1f3c88; /* keep contrast for accents */
  --clown-green: #00c853; /* sharper green */
  --ink: #1b1f3b;
  --paper: #fffaf3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --bg-tile-size: 120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--paper);
  position: relative;
  overflow-x: hidden;
}

/* Frosted (glassy) tiled background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("bg.PNG");
  background-repeat: repeat;
  background-size: var(--bg-tile-size) var(--bg-tile-size);
  filter: blur(3px);
  opacity: 0.8; /* ~50% visibility for glassy feel */
  transform: translateZ(0);
  z-index: -1;
}

.container { width: min(1100px, 92%); margin-inline: auto; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background:
    repeating-linear-gradient(90deg, #fff 0 22px, #cc0018 22px 44px);
  border-bottom: 3px solid var(--clown-red);
  backdrop-filter: blur(6px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 1.4rem;
  color: #062d1f;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(229, 255, 0, 0.95), rgba(247, 255, 16, 0.95));
  border: 2px solid rgba(255, 0, 0, 0.75);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 0 14px rgba(0,255,170,0.55);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  animation: brand-glow 2.2s ease-in-out infinite alternate;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--clown-blue);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}
.nav-links a:hover { transform: translateY(-1px); background: #1f4561; }
@keyframes brand-glow {
  0% {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 0 10px rgba(0,255,170,0.35);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 0 18px rgba(0,255,170,0.65);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 0 26px rgba(0,255,170,0.85);
    transform: translateY(0);
  }
}

/* Main */
.main { padding: 40px 0 120px; }
.hero { text-align: center; padding: 40px 10px; position: relative; }
.title {
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0 0 8px;
  color: var(--clown-gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.35);
}
.subtitle { margin: 0; font-weight: 500; color: #2f3354; }

/* Glass card for hero */
.glass-card {
  display: inline-block;
  padding: 18px 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Animated slogan */
/* removed slogan styles */

/* Collapsible */
.collapsible { position: relative; max-width: 860px; margin: 28px auto 0; }
.collapse-toggle { display: none; }
.panel {
  margin-top: 14px;
  padding: 18px 18px 16px;
  border: 6px double var(--clown-red);
  background:
    repeating-linear-gradient(45deg, rgba(255,191,0,0.28) 0 12px, rgba(255,255,255,0.25) 12px 24px),
    rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 8px; font-family: "Baloo 2", cursive; color: var(--clown-red); }
.panel p { margin: 0; line-height: 1.6; }

/* Circus ticket style for About panel */
#about #aboutPanel {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.85), rgba(255, 250, 243, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 191, 0, 0.15) 0 12px, transparent 12px 24px);
  border: 3px dashed var(--clown-red);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
}
#about #aboutPanel::before, #about #aboutPanel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  background: var(--paper);
  border: 3px solid var(--clown-red);
  border-radius: 50%;
  transform: translateY(-50%);
}
#about #aboutPanel::before { left: -12px; }
#about #aboutPanel::after { right: -12px; }
#about #aboutPanel h2 {
  margin-bottom: 10px;
  font-family: "Chewy", cursive;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--clown-blue);
  text-transform: none;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.08);
}
#about #aboutPanel p {
  color: #42210b;
  line-height: 1.8;
  font-weight: 500;
}

/* Marquee gallery */
.marquee {
  overflow: hidden;
  margin: 28px auto 0;
  border: 4px solid var(--clown-red);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9)),
    repeating-linear-gradient(90deg, #fff 0 18px, #ffefef 18px 36px);
  box-shadow: var(--shadow);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 16px;
  animation: scroll-x 3s linear infinite;
}
.marquee img {
  height: 270px;
  width: auto;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 3px solid var(--clown-gold);
  background: #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
@keyframes scroll-x {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Footer contract */
.footer {
  /* position: fixed; */
  inset-inline: 0;
  bottom: 0;
  background:
    linear-gradient(0deg, rgba(0, 181, 21, 0.96), rgba(255,255,255,0.9)),
    repeating-linear-gradient(90deg, #005b12 0 20px, #fff7eb 20px 40px);
  border-top: 6px solid var(--clown-red);
}
.contract {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
}
.contract-label { font-weight: 800; color: var(--clown-red); text-shadow: 0 1px 0 #fff; }
.contract-input {
  grid-column: 1 / -2;
  width: 100%;
  padding: 10px 12px;
  border: 3px solid var(--clown-gold);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.8)),
    repeating-linear-gradient(45deg, rgba(255,191,0,0.25) 0 10px, transparent 10px 20px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: #0e2740;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6), var(--shadow);
}
.copy-btn {
  grid-column: -2 / -1;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--clown-red), #b8001e);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 3px var(--clown-gold), 0 10px 20px rgba(230,0,38,0.25);
  position: relative;
  overflow: hidden;
}
.copy-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.copy-status { margin-left: 8px; font-size: 0.9rem; color: #216869; font-weight: 600; }

/* Copy confirmation pulse */
.copy-btn.copied {
  box-shadow:
    0 0 0 3px rgba(0,255,213,0.45),
    0 0 24px rgba(0,255,213,0.55),
    0 10px 22px rgba(230,0,38,0.25);
}
.copy-btn.copied::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(0,255,213,0.9);
  opacity: 0;
  animation: confirm-pulse 600ms ease-out;
  pointer-events: none;
}
@keyframes confirm-pulse {
  0% { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* Circus lights around contract bar */
.contract {
  position: relative;
}
.contract::before, .contract::after {
  content: "";
  position: absolute;
  inset-inline: -8px;
  height: 8px;
  top: -10px;
  background:
    radial-gradient(circle, var(--clown-red) 35%, transparent 36%) 0 0/22px 8px repeat-x,
    radial-gradient(circle, var(--clown-gold) 35%, transparent 36%) 11px 0/22px 8px repeat-x;
  animation: bulbs 1.2s linear infinite;
}
.contract::after {
  top: auto;
  bottom: -10px;
}
@keyframes bulbs {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
  100% { filter: brightness(1); }
}

@media (max-width: 640px) {
  .contract { grid-template-columns: 1fr auto; gap: 8px; }
  .contract-input { grid-column: 1 / -1; }
  .copy-btn { grid-column: 2 / 3; }
}

