/* Rough Raiders website. Plain CSS, no build step. */

@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/LilitaOne.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #5BB8F0;
  --sky-light: #BDE6FF;
  --green: #0C3620;
  --green-mid: #1E6B34;
  --grass: #6FC23A;
  --wood: #8A5A2B;
  --wood-dark: #5E3A17;
  --gold: #FFC93C;
  --cream: #FFF3D6;
  --ink: #2B1D0E;
  --orange: #FF8A1F;
  --orange-dark: #A34A00;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #0B5FA8; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--green);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 64px; height: auto; margin: 4px 0; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: var(--display);
  color: var(--cream);
  text-decoration: none;
  font-size: 17px;
  padding: 8px 9px;
  border-radius: 10px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); }
.nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Store badge and buttons ---------- */

/* The App Store button is a "coming soon" placeholder until the game is live. */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 9px 26px 11px;
  background: var(--ink);
  color: #fff;
  border: 3px solid var(--ink);
  border-bottom-width: 7px;
  border-bottom-color: #000;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
  cursor: default;
  user-select: none;
  line-height: 1.15;
}
.store-badge small { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.store-badge span { font-family: var(--display); font-size: 25px; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--ink);
  background: linear-gradient(180deg, #FFB24D 0%, var(--orange) 48%, #F27405 100%);
  border: 3px solid var(--ink);
  border-bottom: 7px solid var(--orange-dark);
  border-radius: 16px;
  padding: 10px 26px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); border-bottom-width: 4px; }

/* ---------- Character line-up ---------- */

.parade { display: flex; justify-content: center; align-items: flex-end; margin-top: 22px; padding: 0 8px; }
.parade img { height: clamp(110px, 30vw, 230px); width: auto; min-width: 0; flex: 0 1 auto; margin: 0 -8px; filter: drop-shadow(0 5px 0 rgba(43, 29, 14, 0.25)); }
.parade .wide-only { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green);
  color: var(--cream);
  border-top: 4px solid var(--gold);
  padding: 22px 0 26px;
  text-align: center;
  font-size: 15px;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--cream); font-family: var(--display); font-size: 17px; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer p { margin: 0; opacity: 0.85; }

/* ---------- Text pages (privacy, terms, support) ---------- */

.page-top {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 100%);
  border-bottom: 6px solid var(--ink);
  padding: 22px 0 0;
  overflow: hidden;
}
.page-top .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; max-width: 800px; }
.page-top h1 {
  font-size: clamp(32px, 8vw, 52px);
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  padding-bottom: 22px;
}
.page-top img { height: 120px; width: auto; flex: none; margin-bottom: -6px; }

.doc { max-width: 800px; padding-top: 26px; padding-bottom: 44px; }
.doc .updated { font-size: 15px; opacity: 0.75; margin: 0 0 14px; }
.doc h2 { font-size: 25px; color: var(--green); margin: 30px 0 8px; }
.doc h3 { font-size: 20px; color: var(--wood-dark); margin: 20px 0 6px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { overflow-wrap: anywhere; }

.summary-box {
  background: #fff;
  border: 3px solid var(--ink);
  border-bottom-width: 7px;
  border-radius: 18px;
  padding: 14px 18px 6px;
  margin-bottom: 8px;
}
.summary-box h2 { margin-top: 0; }

.faq details {
  background: #fff;
  border: 3px solid var(--ink);
  border-bottom-width: 7px;
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  font-family: var(--display);
  font-size: 21px;
  color: var(--green);
  padding: 14px 46px 14px 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--orange);
  -webkit-text-stroke: 1px var(--ink);
}
.faq details[open] summary::after { content: "-"; }
.faq .answer { padding: 0 18px 8px; }
.faq ol { margin: 0 0 12px; padding-left: 22px; }
.faq li { margin-bottom: 6px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--green);
  color: var(--cream);
  border: 4px solid var(--ink);
  border-bottom-width: 9px;
  border-radius: 24px;
  padding: 18px;
  margin-top: 28px;
}
.contact-card img { height: 120px; width: auto; flex: none; }
.contact-card h2 { color: var(--gold); margin: 0 0 6px; }
.contact-card p { margin: 0 0 12px; }
.contact-card .btn { font-size: 19px; padding: 9px 18px; overflow-wrap: anywhere; }

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
  .brand img { width: 76px; }
  .nav a { font-size: 19px; padding: 8px 14px; }

  .parade .wide-only { display: block; }
}

@media (min-width: 960px) {

  .page-top img { height: 150px; }
}

@media (max-width: 420px) {
  .contact-card { flex-direction: column; text-align: center; }
  .contact-card img { height: 110px; }
  .contact-card .btn { font-size: 16px; padding: 9px 12px; }
  .page-top img { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
