/* Kevjo Apps / SwiftSort: Retro look matching the game */
:root {
  --cream: #F6EEDA;
  --ink: #111111;
  --ink-soft: #4A4A4A;
  --red: #E8361F;
  --orange: #EE9B00;
  --green: #4E7A2E;
  --blue: #0097B2;
  --white: #FFFFFF;
  --border: 3px;
  --drop: 4px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

a { color: var(--ink); }

img { max-width: 100%; height: auto; }   /* keep images in proportion */

/* Thin red / orange / green / blue line, edge to edge, like the game */
.rule {
  display: flex;
  height: 6px;
  width: 100%;
}
.rule span { flex: 1; }
.rule span:nth-child(1) { background: var(--red); }
.rule span:nth-child(2) { background: var(--orange); }
.rule span:nth-child(3) { background: var(--green); }
.rule span:nth-child(4) { background: var(--blue); }

/* ---------- Home page (mirrors the game's main menu) ---------- */

.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home .company {
  display: block;
  width: 150px;
  max-width: 40vw;
  margin: 28px auto 16px;
}

.home main {
  width: 100%;
  max-width: 440px;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 14vw, 76px);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark .s { color: var(--red); }
.wordmark .o { color: var(--orange); }
.wordmark .r { color: var(--green); }
.wordmark .t { color: var(--blue); }

.slogan {
  display: block;
  width: 260px;
  max-width: 80%;
  margin: 18px auto 0;
}

.tagline {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mascot {
  display: block;
  width: 110px;
  margin: 22px auto 26px;
}

/* Chunky outlined buttons with a hard drop shadow, like RetroButton in the app */
.buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 18px;
  border: var(--border) solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 var(--drop) 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 calc(var(--drop) - 1px) 0 var(--ink); }
.btn:active { transform: translateY(var(--drop)); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn.primary { background: var(--red); min-height: 66px; font-size: 21px; }
.btn.orange { background: var(--orange); }

/* Official App Store badge, when assets/app-store-badge.svg is added */
.badge-link { display: inline-block; margin: 0 auto; }
.badge-link img { height: 56px; width: auto; display: block; }

.home footer {
  margin-top: auto;
  padding: 24px 16px 28px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.home footer a { color: var(--ink-soft); }

/* ---------- Inner pages (privacy, support) ---------- */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
}
.page-header a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.page-header img { width: 52px; height: auto; display: block; }
.page-header .mini {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.page-header nav { display: flex; gap: 14px; font-weight: 700; font-size: 15px; }
.page-header nav a { text-decoration: none; }
.page-header nav a:hover, .page-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
.doc h1 { font-weight: 900; font-size: clamp(30px, 7vw, 40px); line-height: 1.1; margin: 0 0 6px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.doc h2 { font-weight: 900; font-size: 22px; margin: 34px 0 8px; }
.doc h3 { font-weight: 800; font-size: 18px; margin: 22px 0 4px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

.card {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 var(--drop) 0 var(--ink);
  padding: 18px 20px;
  margin: 18px 0;
}
.card p { margin: 0; }
.card p + p { margin-top: 8px; }

.doc footer {
  margin-top: 44px;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .page-header .mini { display: none; }
}
