:root {
  --cream: #f4efe2;
  --red: #c12720;
  --ink: #16211f;
  --water-top: #204957;
  --water-mid: #0f2a35;
  --water-deep: #050f15;
  --bass: #0a1f28;
  --bass-mouth: #05141c;
  --bass-throat: #030d13;
  --bass-eye: #0f2933;
  --card: rgba(244, 239, 226, 0.045);
  --card-border: rgba(244, 239, 226, 0.12);
  --muted: #7fa3ad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  background: var(--water-deep);
  color: var(--cream);
}

/* ---------- HERO ---------- */
.hero {
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  padding: 56px 20px 30px;
}
.hero-title {
  font-family: "Anton", "Arial Black", Impact, sans-serif;
  font-size: clamp(88px, 22vw, 190px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--red);
  margin: 0;
  transform: scaleY(1.08);
}
.hero-dates {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  font-size: 12px;
  color: #8a8574;
  margin: 22px 0 0;
}

/* ---------- WATERLINE ---------- */
.waterline {
  position: relative;
  background: var(--cream);
  height: 60px;
  overflow: hidden;
}
.wave-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frog-lure {
  position: absolute;
  width: 120px;
  right: 14%;
  top: 2px;
  animation: bob 3.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(4px) rotate(-2deg); }
}

/* ---------- WATER ---------- */
.water {
  background: linear-gradient(var(--water-top), var(--water-mid) 30%, var(--water-deep) 75%);
  padding: 40px 20px 0;
  position: relative;
  overflow: hidden;
}
.water > section, .footer { position: relative; z-index: 1; }

/* ---------- COUNTDOWN ---------- */
.countdown {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}
.countdown-num {
  font-family: "Anton", "Arial Black", Impact, sans-serif;
  font-size: clamp(90px, 18vw, 150px);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: clamp(13px, 2.4vw, 18px);
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- PANELS ---------- */
.panel {
  max-width: 520px;
  margin: 0 auto 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 2px solid var(--red);
  border-radius: 4px;
  padding: 30px 30px 26px;
}
.panel-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  color: var(--cream);
}
.panel-sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.panel-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin: 16px 0 7px;
}
input {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--cream);
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  outline: none;
}
input:focus { border-color: #6fa8b5; }
input::placeholder { color: #5d7f89; }
input[type="date"] { color-scheme: dark; }
input[type="file"] {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--muted);
}
input[type="file"]::file-selector-button {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(244,239,226,0.14);
  border: none;
  border-radius: 3px;
  padding: 7px 12px;
  margin-right: 10px;
  cursor: pointer;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-red {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--cream);
  background: var(--red);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn-red:hover { filter: brightness(1.12); }
.btn-red:active { filter: brightness(0.95); }

.link-btn {
  background: none; border: none; padding: 0;
  color: var(--muted); text-decoration: underline; cursor: pointer;
  font: inherit; font-size: 14px;
}
.form-error { color: #e2857c; font-size: 14px; min-height: 1em; margin: 12px 0 0; }
.form-ok { color: #8fbf9a; font-size: 14px; min-height: 1em; margin: 6px 0 0; }

/* ---------- LEADERBOARD ---------- */
.leaderboard { list-style: none; margin: 0; padding: 0; }
.leaderboard li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(244,239,226,0.08);
  font-size: 17px;
}
.leaderboard li:last-child { border-bottom: none; }
.lb-rank {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  width: 26px;
  text-align: center;
  color: var(--muted);
  flex-shrink: 0;
}
.leaderboard li.first .lb-rank { color: var(--red); }
.leaderboard li.first { background: rgba(193,39,32,0.08); border-radius: 4px; }
.leaderboard li.first .lb-name { font-weight: 600; }
.lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-today { font-size: 13px; color: var(--muted); }
.lb-total {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--cream);
  min-width: 40px;
  text-align: right;
}

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item { position: relative; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: rgba(0,0,0,0.28);
  cursor: zoom-in;
  transition: filter 0.15s ease;
}
.gallery-item img:hover { filter: brightness(1.08); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 7px 4px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  border-radius: 0 0 4px 4px;
}
.gallery-caption .count { color: var(--muted); }

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- LIGHTBOX ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 8, 11, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  color: #4d707a;
  font-size: 13px;
  letter-spacing: 0.04em;
  max-width: 460px;
  margin: 40px auto 0;
  padding-bottom: 60px;
}

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  .frog-lure { right: 6%; }
}
