/* Binary Drift Interactive / Slime Tycoon website — no external fonts, scripts or trackers. */
:root {
  --night: #2b1a52;
  --night-2: #3d2775;
  --ink: #241538;
  --paper: #fffaf3;
  --muted: #6b5f78;
  --goo: #6fdc3c;
  --goo-dark: #3f9a1b;
  --pink: #ff6fb5;
  --gold: #ffd23f;
  --radius: 22px;
  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: #fff; font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--goo); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────────────── */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.studio { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.studio img { width: 36px; height: 36px; border-radius: 9px; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; margin-left: 18px; opacity: .9; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--night) url("town.webp") center bottom / cover no-repeat;
  padding: 96px 0 150px;
}
.hero::after { /* green slime ground line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(var(--goo), var(--goo-dark));
}
.hero .logo { width: min(560px, 88vw); margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.hero .tagline { font-size: clamp(1.1rem, 3.6vw, 1.45rem); font-weight: 700; margin: 10px auto 26px; max-width: 34ch;
  text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.mascot { position: absolute; bottom: 18px; width: clamp(70px, 13vw, 150px); animation: wobble 3.2s ease-in-out infinite; }
.mascot.left { left: 4%; }
.mascot.right { right: 4%; animation-delay: -1.6s; }
@keyframes wobble { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.06, .94) translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  color: var(--ink); background: var(--goo); border-radius: 999px; padding: 14px 26px;
  box-shadow: 0 5px 0 var(--goo-dark), 0 10px 24px rgba(0,0,0,.3);
}
.btn.soon { background: #fff; box-shadow: 0 5px 0 #c9bfe0, 0 10px 24px rgba(0,0,0,.3); cursor: default; }
.btn small { font-weight: 600; color: var(--muted); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; text-align: center; }
.lead { text-align: center; color: #d9cff0; margin: 0 auto 36px; max-width: 46ch; }

.intro .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.intro img { border-radius: 44px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.intro h2, .intro .lead { text-align: left; margin-left: 0; }
.intro p { color: #e8e1f6; }

.features { background: var(--night-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; }
.card .emoji { font-size: 2rem; line-height: 1; }
.card h3 { margin: 10px 0 6px; font-size: 1.15rem; color: var(--gold); }
.card p { margin: 0; color: #e8e1f6; font-size: .98rem; }

.contact { text-align: center; }
.contact p { color: #e8e1f6; }

/* ── Footer ─────────────────────────────────────────────── */
footer { background: #1d1138; color: #b8aed0; font-size: .92rem; padding: 26px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { color: #e8e1f6; margin-left: 16px; }
footer a:first-child { margin-left: 0; }

/* ── Document pages (privacy) ───────────────────────────── */
.doc-head { background: linear-gradient(rgba(43,26,82,.62), rgba(43,26,82,.62)), var(--night) url("town.webp") center bottom / cover no-repeat;
  padding: 90px 0 40px; text-align: center; }
.doc-head h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.4rem); text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.doc-head p { margin: 6px 0 0; color: #efe8ff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.doc { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 44px) 36px;
  margin: -10px auto 56px; max-width: 820px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.doc h2 { text-align: left; font-size: 1.2rem; margin: 28px 0 6px; padding-top: 18px; border-top: 1px solid #eadfd2; }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc p, .doc li { color: var(--ink); }
.doc a { color: #b0246b; }
.doc ul { padding-left: 1.3em; }
.doc .summary { background: #eefbe6; border-radius: 14px; padding: 14px 18px; }
.doc .summary ul { margin: 6px 0 0; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .top nav a { margin-left: 12px; font-size: .95rem; }
  .studio span { display: none; }
  .hero { padding: 80px 0 120px; }
  .intro .wrap { grid-template-columns: 1fr; text-align: center; }
  .intro img { width: 160px; margin: 0 auto; border-radius: 34px; }
  .intro h2, .intro .lead { text-align: center; margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; text-align: center; }
  footer a { margin: 0 8px; }
}
