/* Frogtions website: dark swamp green, lime of the logo, light moss text. System fonts only (nothing loaded). */
:root {
  --bg: #0b140d;
  --bg-2: #10200f;
  --panel: rgba(23, 36, 26, .88);
  --panel-hover: rgba(31, 48, 34, .95);
  --line: rgba(163, 217, 59, .22);
  --line-strong: rgba(163, 217, 59, .6);
  --lime: #a3d93b;
  --lime-light: #f2f7a0;
  --text: #eef5e6;
  --muted: #a9bda4;
  --ph: #f5c542;
  --radius: 14px;
  --head: "Arial Black", "Segoe UI Black", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 var(--body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(163, 217, 59, .14), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(35, 90, 40, .25), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime-light); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #10200f; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* fireflies */
.fireflies { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fireflies i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--lime-light); box-shadow: 0 0 10px 3px rgba(242, 247, 160, .55);
  opacity: 0; animation: glow 7s ease-in-out infinite, drift 14s ease-in-out infinite alternate;
}
.fireflies i:nth-child(1) { left: 8%; top: 22%; animation-delay: 0s, 0s; }
.fireflies i:nth-child(2) { left: 18%; top: 64%; animation-delay: 1.5s, -3s; }
.fireflies i:nth-child(3) { left: 28%; top: 38%; animation-delay: 3s, -6s; }
.fireflies i:nth-child(4) { left: 38%; top: 82%; animation-delay: 4.5s, -2s; }
.fireflies i:nth-child(5) { left: 47%; top: 14%; animation-delay: 2s, -8s; }
.fireflies i:nth-child(6) { left: 57%; top: 55%; animation-delay: 5.5s, -4s; }
.fireflies i:nth-child(7) { left: 66%; top: 30%; animation-delay: 1s, -10s; }
.fireflies i:nth-child(8) { left: 74%; top: 74%; animation-delay: 3.5s, -1s; }
.fireflies i:nth-child(9) { left: 83%; top: 18%; animation-delay: 6s, -7s; }
.fireflies i:nth-child(10) { left: 91%; top: 48%; animation-delay: 2.5s, -5s; }
.fireflies i:nth-child(11) { left: 12%; top: 88%; animation-delay: 4s, -9s; }
.fireflies i:nth-child(12) { left: 52%; top: 92%; animation-delay: 0.5s, -11s; }
.fireflies i:nth-child(13) { left: 70%; top: 8%; animation-delay: 5s, -12s; }
.fireflies i:nth-child(14) { left: 33%; top: 6%; animation-delay: 6.5s, -6s; }
@keyframes glow { 0%, 100% { opacity: 0; } 40%, 60% { opacity: .9; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, -60px); } }

header.top, main, footer.bottom { position: relative; z-index: 1; }

/* header */
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 900 18px var(--head); letter-spacing: 1px; }
.brand img { filter: drop-shadow(0 0 8px rgba(163, 217, 59, .35)); }
header.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
header.top nav a {
  color: var(--text); text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s;
}
header.top nav a:hover { border-color: var(--line-strong); background: rgba(163, 217, 59, .08); color: var(--text); }
header.top nav a.lang { border-color: var(--line); }

main { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }

/* hero */
.hero { text-align: center; padding: 28px 0 40px; }
.hero .logo {
  width: min(320px, 70vw); height: auto;
  filter: drop-shadow(0 0 28px rgba(163, 217, 59, .35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 {
  margin: 10px 0 4px; font: 900 clamp(40px, 10vw, 76px)/1.05 var(--head); letter-spacing: 3px;
  background: linear-gradient(100deg, var(--lime) 40%, var(--lime-light) 50%, var(--lime) 60%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.hero .tagline { margin: 0 auto 26px; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2.6vw, 19px); }
.hero.small { padding-top: 80px; }

.address {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 4px 12px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.address .label { grid-column: 1 / -1; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.address code { font: 900 clamp(22px, 5vw, 30px) var(--head); color: var(--lime); letter-spacing: 1px; }
.address .versions { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.copy-btn {
  font: 700 14px var(--body); color: #10200f; background: var(--lime); border: 0; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; transition: transform .15s, background .2s;
}
.copy-btn:hover { background: var(--lime-light); transform: translateY(-1px); }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none;
  color: var(--text); border: 1px solid var(--line-strong); background: rgba(163, 217, 59, .06);
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: rgba(163, 217, 59, .14); color: var(--text); }
.btn.primary { background: var(--lime); color: #10200f; border-color: var(--lime); }
.btn.primary:hover { background: var(--lime-light); color: #10200f; }

/* features */
section h2 { font: 900 clamp(24px, 5vw, 34px)/1.15 var(--head); text-align: center; margin: 30px 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.grid article {
  padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s;
}
.grid article:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-hover); }
.grid svg { width: 32px; height: 32px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid h3 { margin: 10px 0 6px; font-size: 18px; }
.grid p { margin: 0; color: var(--muted); }

/* join */
.join ol { counter-reset: step; list-style: none; padding: 0; max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }
.join li {
  counter-increment: step; display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.join li::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lime); color: #10200f; font-weight: 900;
}
.join b { color: var(--lime); }

/* legal pages */
.legal {
  max-width: 820px; margin: 10px auto 0; padding: clamp(18px, 4vw, 36px); border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere;
}
.legal h1 { font: 900 clamp(26px, 6vw, 36px)/1.15 var(--head); margin: 0 0 12px; color: var(--lime); }
.legal h2 { font: 800 21px/1.3 var(--body); margin: 30px 0 8px; text-align: left; }
.legal h3 { font: 700 17px/1.3 var(--body); margin: 20px 0 6px; }
.legal p, .legal li { color: #dbe7d4; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--lime); background: rgba(163, 217, 59, .06); border-radius: 0 8px 8px 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.legal code { font: 14px ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .25); padding: 1px 6px; border-radius: 5px; }
.legal .back { margin-top: 30px; }
.ph { background: rgba(245, 197, 66, .18); color: var(--ph); border: 1px dashed rgba(245, 197, 66, .6); border-radius: 5px; padding: 0 4px; }

/* updates */
.updates { max-width: 820px; margin: 10px auto 0; }
.updates > h1 { font: 900 clamp(30px, 7vw, 44px)/1.1 var(--head); color: var(--lime); text-align: center; margin: 10px 0 8px; }
.updates .lead { text-align: center; color: var(--muted); margin: 0 0 8px; }
.updates .note { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.updates .none { text-align: center; color: var(--muted); padding: 40px 0; }
.update {
  margin: 18px 0 0; padding: clamp(18px, 4vw, 32px); border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); overflow-wrap: anywhere; scroll-margin-top: 20px;
}
.update:target { border-color: var(--line-strong); }
.update .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.update .badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--lime); }
.update .badge.coming { background: var(--lime); color: #10200f; border-color: var(--lime); }
.update .badge.draft { border-style: dashed; border-color: var(--ph); color: var(--ph); }
.update h2 { font: 900 clamp(22px, 5vw, 28px)/1.2 var(--head); text-align: left; margin: 0 0 10px; }
.update h2 a { color: var(--text); text-decoration: none; }
.update h2 a:hover { color: var(--lime); }
.update h3 { font: 800 18px/1.3 var(--body); margin: 22px 0 6px; color: var(--lime); }
.update p, .update li { color: #dbe7d4; }
.update ul, .update ol { padding-left: 22px; }
.update li { margin: 4px 0; }
.update code { font: 14px ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .25); padding: 1px 6px; border-radius: 5px; }

/* footer */
footer.bottom { max-width: 1100px; margin: 0 auto; padding: 26px 20px 40px; text-align: center; border-top: 1px solid var(--line); }
footer.bottom nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer.bottom nav a { color: var(--text); text-decoration: none; font-weight: 600; }
footer.bottom nav a:hover { color: var(--lime); }
footer.bottom .notice { margin: 16px auto 4px; max-width: 640px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
footer.bottom .copy { margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  header.top { padding: 14px 16px; }
  .brand span { display: none; }
  main { padding: 0 16px 30px; }
  .address { grid-template-columns: 1fr; justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fireflies { display: none; }
  .hero .logo, .hero h1 { animation: none; }
  .grid article, .btn, .copy-btn { transition: none; }
}
