/* Element Pop — elementpop.arcware.tr. Colours from the game
   (lib/ui/theme/palette.dart), type is the game's Baloo 2. */

@font-face { font-family: "Baloo 2"; font-weight: 500; font-display: swap; src: url("/assets/baloo2-500.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("/assets/baloo2-700.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("/assets/baloo2-800.woff2") format("woff2"); }

:root {
  --bg-top: #22252e;
  --bg-bottom: #121318;
  --board: #0b0c10;
  --surface: #1c1e25;
  --surface-high: #2a2d37;
  --ink: #f1f3f8;
  --ink-muted: #9aa1b2;
  --gold: #ffc83d;
  --gold-deep: #d9932b;
  --fire: #f2453d;
  --water: #2f8cf0;
  --earth: #3ec85b;
  --air: #c9cfdb;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(60vmax 60vmax at 8% 4%, rgb(242 69 61 / 0.09), transparent 70%),
    radial-gradient(55vmax 55vmax at 96% 30%, rgb(47 140 240 / 0.08), transparent 70%),
    radial-gradient(55vmax 55vmax at 20% 92%, rgb(62 200 91 / 0.06), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg-bottom) 70vh);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #ffd76e; }

.wrap { width: min(100% - 32px, 760px); margin-inline: auto; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { color: var(--gold); font-weight: 800; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 999px;
}
.top nav a:hover { color: var(--ink); background: var(--surface); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--surface-high); }

/* Landing */
.hero { position: relative; margin: 8px 0 0; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.intro { text-align: center; padding: 36px 0 8px; }
.intro .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 14px 40px rgb(0 0 0 / 0.5); }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0; }
.title { font-size: clamp(48px, 11vw, 76px); margin-top: 18px; letter-spacing: -0.5px; }
.title b { color: var(--gold); font-weight: 800; }
.tagline { font-size: clamp(20px, 4.4vw, 26px); font-weight: 700; color: var(--ink); margin: 4px 0 0; }
.lede { color: var(--ink-muted); max-width: 560px; margin: 14px auto 0; }
.pill {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #3b2a06;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 0 var(--gold-deep);
  text-decoration: none;
}
a.pill:hover { color: #3b2a06; background: #ffd76e; }

.section { padding: 48px 0 0; }
.section > h2 { font-size: clamp(28px, 6vw, 36px); text-align: center; }
.section > h2 b { color: var(--gold); }
.section > p.sub { text-align: center; color: var(--ink-muted); margin: 6px 0 0; }

.elements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.element {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
}
.element img { width: 60px; height: 60px; flex: none; }
.element h3 { font-size: 22px; }
.element p { margin: 2px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 1.4; }
.fire h3 { color: #ff8f80; }
.water h3 { color: #86c6ff; }
.earth h3 { color: #93ec96; }
.air h3 { color: var(--air); }

.steps { display: grid; gap: 14px; margin-top: 24px; counter-reset: step; }
.step {
  position: relative;
  padding: 18px 20px 18px 72px;
  background: var(--surface);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold);
  color: #3b2a06;
  font-weight: 800;
  font-size: 20px;
}
.step h3 { font-size: 20px; }
.step p { margin: 2px 0 0; color: var(--ink-muted); font-size: 16px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

/* Text pages (privacy, terms, support) */
.doc { padding: 24px 0 0; }
.doc h1 { font-size: clamp(36px, 8vw, 52px); }
.doc .updated { color: var(--ink-muted); margin: 8px 0 0; font-size: 16px; }
.doc h2 { font-size: 26px; margin: 36px 0 8px; color: var(--gold); }
.doc h3 { font-size: 20px; margin: 22px 0 4px; }
.doc p, .doc li { color: #d6dae4; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.card {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 6px solid var(--gold);
}
.card p { margin: 0; color: var(--ink); }
.card p + p { margin-top: 8px; }

/* Footer */
.foot {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--surface-high);
  color: var(--ink-muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-muted); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .top nav { justify-content: flex-start; margin-left: -12px; }
  .elements { grid-template-columns: 1fr; }
}
