:root {
  --bg-deep: #051026;
  --bg-mid: #0d2147;
  --bg-shallow: #1d4078;
  --bg-surface: #3a6cb0;
  --aqua: #4dd0e1;
  --aqua-bright: #80deea;
  --pink: #ff8fc4;
  --pink-light: #ffd1e8;
  --violet: #b39ddb;
  --gold: #ffd54f;
  --text: #f3f8ff;
  --text-soft: #aabcd8;
  --text-quiet: #6e88b0;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, var(--bg-surface) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-shallow) 0%, var(--bg-mid) 35%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.aquarium {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.caustics {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(77, 208, 225, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 85% 35%, rgba(255, 143, 196, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(179, 157, 219, 0.15) 0%, transparent 45%);
  animation: caustics-shift 18s ease-in-out infinite;
}

@keyframes caustics-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.light-ray {
  position: absolute;
  top: -10%;
  width: 200px;
  height: 130%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 60%,
    transparent 100%
  );
  transform-origin: top center;
  filter: blur(8px);
  mix-blend-mode: screen;
}

.ray-1 { left: 10%; transform: rotate(8deg);  animation: ray-pulse 7s ease-in-out infinite; }
.ray-2 { left: 45%; transform: rotate(-5deg); animation: ray-pulse 9s ease-in-out infinite 1.5s; }
.ray-3 { left: 78%; transform: rotate(12deg); animation: ray-pulse 8s ease-in-out infinite 3s; }

@keyframes ray-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.seaweed {
  position: absolute;
  bottom: -10px;
  width: 40px;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, #1a5d3a 40%, #0a3d22 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform-origin: bottom center;
  animation: sway ease-in-out infinite;
  opacity: 0.5;
  filter: blur(0.5px);
}

.seaweed-1 { left: 3%;  height: 240px; animation-duration: 5s; }
.seaweed-2 { left: 18%; height: 180px; animation-duration: 6s; animation-delay: 1s; }
.seaweed-3 { right: 15%; height: 220px; animation-duration: 5.5s; animation-delay: 0.5s; }
.seaweed-4 { right: 4%;  height: 200px; animation-duration: 7s; animation-delay: 2s; }

@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

.bubbles { position: absolute; inset: 0; }

.bubble {
  position: absolute;
  left: var(--x);
  bottom: -50px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: rise var(--dur) linear infinite;
  animation-delay: var(--delay);
}

@keyframes rise {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translate(20px, -50vh) scale(1); }
  90%  { opacity: 0.5; }
  100% { transform: translate(-15px, -110vh) scale(1.2); opacity: 0; }
}

.swimmer {
  position: absolute;
  width: 110px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 8px 20px rgba(255, 143, 196, 0.25));
}

.swimmer svg { width: 100%; height: 100%; display: block; }

.swimmer-1 {
  top: 12%; left: -120px;
  animation: swim-right 38s linear infinite, bob 3s ease-in-out infinite;
}
.swimmer-2 {
  top: 65%; right: -120px;
  animation: swim-left 42s linear infinite 5s, bob 3.5s ease-in-out infinite;
  width: 90px;
}
.swimmer-3 {
  top: 35%; left: -120px;
  animation: swim-right 50s linear infinite 12s, bob 4s ease-in-out infinite;
  width: 75px;
  opacity: 0.7;
}
.swimmer-4 {
  top: 80%; right: -120px;
  animation: swim-left 45s linear infinite 20s, bob 3.2s ease-in-out infinite;
  width: 85px;
  opacity: 0.75;
}

@keyframes swim-right {
  0%   { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(calc(100vw + 240px)) scaleX(1); }
}
@keyframes swim-left {
  0%   { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(calc(-100vw - 240px)) scaleX(-1); }
}
@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding: 0.5rem 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 1rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink), 0 0 24px rgba(255, 143, 196, 0.6);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--pink), 0 0 24px rgba(255, 143, 196, 0.6); }
  50%      { box-shadow: 0 0 18px var(--pink), 0 0 36px rgba(255, 143, 196, 0.9); }
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  position: relative;
}

.title-line {
  background: linear-gradient(180deg, #ffffff 0%, #aabcd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-accent {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 35%, var(--violet) 65%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s linear infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-weight: 400;
}

.tagline .hl {
  color: var(--pink-light);
  font-weight: 600;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 143, 196, 0.18), rgba(179, 157, 219, 0.18));
  border: 1px solid rgba(255, 143, 196, 0.35);
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--pink-light);
}

.status-tag-quiet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-quiet);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  position: relative;
}
.pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  animation: pulse-ring 1.6s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 620px;
  margin: 0 auto 4rem;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
}

.info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.info-value {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.time-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 12px 30px rgba(255, 143, 196, 0.25);
}

.time-value {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.time-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-quiet);
}

.time-sep {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-quiet);
  font-weight: 300;
}

.whitelist {
  max-width: 620px;
  margin: 0 auto 4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.whitelist::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 143, 196, 0.3), transparent 70%);
  border-radius: var(--radius-lg);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
}

.wl-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wl-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wl-sub {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.quest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.quest {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.quest.is-done {
  border-color: rgba(108, 242, 153, 0.5);
  background: rgba(108, 242, 153, 0.07);
}

.quest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.quest.is-done .quest-icon {
  background: rgba(108, 242, 153, 0.18);
  color: #9af0b8;
}

.quest-body {
  flex: 1;
  min-width: 0;
}

.quest-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.quest-sub {
  font-size: 0.78rem;
  color: var(--text-quiet);
  line-height: 1.3;
}

.quest-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 36px;
  padding: 0 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.quest-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--pink);
  transform: translateY(-1px);
}

.quest-btn .quest-check {
  display: none;
  font-size: 1rem;
  font-weight: 700;
}

.quest.is-done .quest-btn {
  background: rgba(108, 242, 153, 0.15);
  border-color: rgba(108, 242, 153, 0.4);
  color: #9af0b8;
  cursor: default;
  transform: none;
}

.quest.is-done .quest-btn:hover {
  transform: none;
}

.quest.is-done .quest-btn-label { display: none; }
.quest.is-done .quest-btn .quest-check { display: inline; }

.quest-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.quest-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.quest-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--aqua) 0%, var(--pink) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quest-progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  white-space: nowrap;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wl-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-quiet);
  padding-left: 0.25rem;
}

.wl-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0 0.6rem 0 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wl-input-wrap:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 143, 196, 0.15);
}

.wl-prefix {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-quiet);
  font-weight: 500;
  margin-right: 0.25rem;
  user-select: none;
}

.wl-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  padding: 0.85rem 0.5rem;
  min-width: 0;
}

.wl-input-wrap input::placeholder {
  color: var(--text-quiet);
}

.wl-paste {
  background: transparent;
  border: none;
  color: var(--text-quiet);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  transition: color 0.2s ease, background 0.2s ease;
}

.wl-paste:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.wl-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.5rem;
  margin-top: 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wl-submit:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 143, 196, 0.5);
}

.wl-submit:active { transform: scale(0.98); }

.wl-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.wl-submit-arrow { transition: transform 0.2s ease; }
.wl-submit:hover:not(:disabled) .wl-submit-arrow { transform: translateX(4px); }

.wl-message {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  min-height: 1.5rem;
  margin-top: 0.75rem;
  color: var(--aqua-bright);
  text-align: center;
}

.wl-message.error { color: #ff8fb1; }

.footer {
  text-align: center;
}

.socials {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(255, 143, 196, 0.3) 0%, rgba(179, 157, 219, 0.3) 100%);
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 143, 196, 0.4);
}

.socials {
  margin-bottom: 1.75rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-quiet);
  letter-spacing: 0.5px;
}

@media (max-width: 720px) {
  .container { padding: 1rem 1rem 2rem; }
  .topbar { margin-bottom: 2.5rem; }
  .hero { margin-bottom: 2.5rem; }
  .countdown { gap: 0.25rem; margin-bottom: 2.5rem; }
  .time-box { min-width: 78px; padding: 0.9rem 0.75rem; }
  .time-sep { display: none; }
  .whitelist { padding: 1.5rem 1.25rem; margin-bottom: 2.5rem; }
  .wl-submit { width: 100%; padding: 0.95rem 1.5rem; justify-content: center; }
  .info-grid { margin-bottom: 2.5rem; }
  .info-card { padding: 1rem 0.5rem; }
  .swimmer-3, .swimmer-4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
