:root {
  --pond-deep: #0b2228;
  --pond-mid: #10323b;
  --pond-border: rgba(20, 184, 166, 0.22);
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --teal-soft: #e6f7f5;
  --duck: #f5b700;
  --duck-bright: #ffd23f;
  --beak: #ea580c;
  --bug: #ef4444;
  --bg: #f8f7f2;
  --surface: #ffffff;
  --ink: #0f1f24;
  --muted: #4b5e64;
  --line: #dfe6e3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 34, 40, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 88% -6%, rgba(245, 183, 0, 0.14), transparent 60%),
    radial-gradient(760px 420px at 8% 12%, rgba(20, 184, 166, 0.11), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: var(--duck);
  color: var(--pond-deep);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

/* ==================== Always-Visible Sticky Top Bar ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 34, 40, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pond-border);
  box-shadow: 0 6px 22px rgba(6, 20, 24, 0.24);
  color: #f4fbf9;
}

.topbar-nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(245, 183, 0, 0.3));
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-word .accent {
  color: var(--duck-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d6ebe7;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(20, 184, 166, 0.2);
  color: #ffffff;
  text-decoration: none;
}

.nav-links a.nav-cta {
  background: var(--duck);
  color: var(--pond-deep);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  background: var(--duck-bright);
  color: var(--pond-deep);
}

/* ==================== Animated Bug-Hunt Rail (Always Visible) ==================== */
.hunt-rail {
  position: relative;
  height: 40px;
  background: linear-gradient(180deg, #07171c 0%, #0d2b33 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

.hunt-canvas {
  display: block;
  width: 100%;
  height: 40px;
}

.hunt-hud {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(7, 23, 28, 0.82);
  border: 1px solid rgba(20, 184, 166, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #bfe8e2;
  pointer-events: none;
}

.hunt-hud strong {
  color: var(--duck-bright);
}

.hunt-hint {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(7, 23, 28, 0.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: rgba(191, 232, 226, 0.72);
  pointer-events: none;
}

@media (max-width: 640px) {
  .hunt-hint {
    display: none;
  }
  .topbar-nav-wrap {
    padding: 8px 14px;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* ==================== Main Layout ==================== */
main {
  flex: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px 20px 68px;
}

/* ==================== Hero ==================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: 36px;
  padding: 40px 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 183, 0, 0.16), transparent 70%);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0b5d56;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.22);
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--pond-deep);
}

.hero h1 .hl {
  background: linear-gradient(180deg, transparent 58%, rgba(245, 183, 0, 0.42) 58%);
  padding: 0 3px;
}

.hero p.lead {
  margin: 0 0 24px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pond-deep);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(11, 34, 40, 0.18);
}

.btn-primary:hover {
  background: var(--pond-mid);
}

.btn-gold {
  background: var(--duck);
  color: var(--pond-deep);
}

.btn-gold:hover {
  background: var(--duck-bright);
}

.btn-outline {
  background: transparent;
  color: var(--pond-deep);
  border-color: #c5d4d0;
}

.btn-outline:hover {
  background: #f0f5f4;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: linear-gradient(145deg, #0b2228 0%, #13424c 100%);
  border: 2px solid rgba(20, 184, 166, 0.35);
  box-shadow: 0 18px 40px rgba(11, 34, 40, 0.22);
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
}

.hero-badge svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .hero-badge {
    max-width: 200px;
  }
}

/* ==================== Sections & Cards ==================== */
.section {
  margin-top: 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--pond-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-featured {
  border-color: rgba(13, 148, 136, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
}

.card-games {
  border-color: rgba(245, 183, 0, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf4 100%);
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tag-teal {
  background: var(--teal-soft);
  color: #0b5d56;
}

.tag-gold {
  background: #fef3c7;
  color: #92400e;
}

.card h3 {
  margin: 2px 0 0;
  font-size: 1.32rem;
  color: var(--pond-deep);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.url-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==================== Forms & Legal ==================== */
.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.35rem);
  letter-spacing: -0.025em;
  color: var(--pond-deep);
}

.page-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 62ch;
}

.form-card {
  max-width: 620px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--pond-deep);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cad6d2;
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
  background: #ffffff;
}

textarea {
  min-height: 135px;
  resize: vertical;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-row input {
  max-width: 140px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
}

.alert-ok {
  background: #e6f7f0;
  border: 1px solid #86efac;
  color: #14532d;
}

.alert-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.muted-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-card {
  max-width: 680px;
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--pond-deep);
}

.legal-card p {
  margin: 6px 0;
}

/* ==================== Footer ==================== */
footer.site-footer {
  background: var(--pond-deep);
  color: #b7d3ce;
  border-top: 1px solid var(--pond-border);
  padding: 22px 20px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d7eeea;
}

.footer-links a:hover {
  color: var(--duck-bright);
}
