/* Kampfire's website: the game's look (night navy, cream, the UI's orange, white rounded cards). */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #2d3d58;
  --night-deep: #233049;
  --cream: #fdead1;
  --orange: #f26e2e;
  --orange-lip: #c4531c;
  --orange-ink: #b84a14;
  --paper: #eef1f5;
  --card: #ffffff;
  --ink: #2b2d3a;
  --muted: #5f6878;
  --line: #dde2ea;
  --fire: #e8433a;
  --water: #1f9be0;
  --nature: #3fae3a;
  --dark: #5b4a8a;
  --light: #e3a20c;
  --radius: 20px;
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* --- top bar ------------------------------------------------------------------ */
.top { background: var(--night); color: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 700 1.35rem var(--head); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand:hover { color: #fff; }
.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--cream); text-decoration: none; font: 700 .98rem var(--head); padding: 6px 12px; border-radius: 999px; }
.top nav a:hover { background: rgba(253, 234, 209, .12); color: #fff; }
.top nav .lang { border: 2px solid rgba(253, 234, 209, .45); }

/* --- buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1.2rem var(--head); text-decoration: none;
  padding: 14px 26px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--orange); color: #fff;
  box-shadow: 0 5px 0 var(--orange-lip);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 0 var(--orange-lip); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--orange-lip); }
.btn.white { background: var(--card); color: var(--ink); box-shadow: 0 5px 0 #c9cfd9; }
.btn.white:hover { color: var(--ink); }
.btn.discord { background: #5865f2; box-shadow: 0 5px 0 #3c45b5; }

/* --- hero ------------------------------------------------------------------------ */
.hero { background: var(--night); color: var(--cream); text-align: center; padding-bottom: 56px; }
.hero picture img { width: 100%; max-height: 520px; object-fit: cover; }
.hero .tag { font: 700 clamp(1.4rem, 3.6vw, 2.1rem) var(--head); margin: 8px 0 6px; }
.hero .sub { color: #d6dbe6; font-size: 1.12rem; max-width: 620px; margin: 0 auto 26px; }
.hero .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero .note { color: #b9c2d3; font-size: .95rem; margin: 0; }
.pill { display: inline-block; background: rgba(253, 234, 209, .14); color: var(--cream); padding: 4px 12px; border-radius: 999px; font: 700 .9rem var(--head); }

/* --- sections ------------------------------------------------------------------- */
section { padding: 64px 0; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 32px; }
.starters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.starter { background: var(--card); border-radius: var(--radius); padding: 18px 10px 16px; text-align: center; box-shadow: 0 2px 0 var(--line); }
.starter img { width: 110px; margin: 0 auto 8px; }
.starter b { display: block; font: 700 1.1rem var(--head); }
.chip { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 999px; color: #fff; font: 700 .85rem var(--head); }
.chip.fire { background: var(--fire); } .chip.water { background: var(--water); } .chip.nature { background: var(--nature); }
.chip.dark { background: var(--dark); } .chip.light { background: var(--light); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px 26px 18px; box-shadow: 0 2px 0 var(--line); position: relative; overflow: hidden; }
.feature h3 { padding-right: 96px; }
.feature p { color: var(--muted); margin-bottom: .6em; }
.feature img { position: absolute; right: 14px; top: 14px; width: 84px; }
.feature .dots { position: absolute; right: 22px; top: 26px; display: grid; grid-template-columns: repeat(3, 20px); gap: 6px; }
.feature .dots i { width: 20px; height: 20px; border-radius: 6px; display: block; }
.g-fire { background: var(--fire); } .g-water { background: var(--water); } .g-nature { background: var(--nature); }
.g-dark { background: var(--dark); } .g-light { background: var(--light); } .g-heart { background: #ff6f91; }
.flush-top { padding-top: 0; }
.after { margin-top: 28px; }

/* --- screenshots: a strip that scrolls sideways, one phone at a time ----------------- */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; justify-content: safe center; }
.shots img { flex: 0 0 auto; width: min(220px, 60vw); border-radius: 18px; box-shadow: 0 4px 0 var(--line); scroll-snap-align: center; }
.shots:focus-visible { outline-offset: -3px; }

.band { background: var(--night); color: var(--cream); }
.band .lead { color: #d6dbe6; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.socials a { color: var(--cream); text-decoration: none; border: 2px solid rgba(253, 234, 209, .4); padding: 8px 18px; border-radius: 999px; font: 700 1rem var(--head); }
.socials a:hover { background: rgba(253, 234, 209, .12); color: #fff; }

/* --- text pages (privacy, deletion, press) -------------------------------------- */
.page-head { background: var(--night); color: var(--cream); padding: 42px 0 36px; }
.page-head p { color: #d6dbe6; margin: 0; }
.doc { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); margin: -18px auto 56px; box-shadow: 0 2px 0 var(--line); }
.doc h2 { font-size: 1.55rem; margin-top: 1.6em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.2em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin: .25em 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--head); background: #f6f8fb; }
.doc .box { background: #fff6ec; border-left: 5px solid var(--orange); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.2em; }
.toc { columns: 2; gap: 24px; padding-left: 1.2em; }
.updated { color: var(--muted); font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 12px 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 1rem/32px var(--head); text-align: center; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0 0 1.2em; }
.dl a { display: block; background: #f6f8fb; border-radius: 14px; padding: 12px; text-decoration: none; color: var(--ink); text-align: center; font: 700 .95rem var(--head); }
.dl a img { margin: 0 auto 8px; border-radius: 10px; max-height: 140px; width: auto; }
.facts th { width: 34%; }

/* --- footer ---------------------------------------------------------------------- */
footer { background: var(--night-deep); color: #c5ccd9; padding: 34px 0; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--cream); }
footer p { margin: 0; }

@media (max-width: 860px) {
  .starters { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr; }
  .toc { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .starters { grid-template-columns: repeat(2, 1fr); }
  .starter img { width: 92px; }
  .top nav a { padding: 6px 9px; font-size: .92rem; }
  .brand span { display: none; }
  section { padding: 48px 0; }
  .btn { width: 100%; }
  .feature h3 { padding-right: 76px; }
  .feature img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
