/* Chaichi — support and privacy pages.
   Same palette as the app's launch screen, so the site and the game look
   like the same thing. Self-contained: one stylesheet, one font, one image. */

@font-face {
  font-family: 'Silkscreen';
  src: url('assets/Silkscreen-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --table-dark: #2b1a10;
  --table: #3d2718;
  --table-edge: #5f3f27;
  --cream: #f2ddb0;
  --tea-light: #f7b246;
  --tea-mid: #c25a0e;
  --saucer: #cfb082;
  --muted: #b39b78;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--table-dark);
  color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header { text-align: center; margin-bottom: 56px; }

header img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  image-rendering: pixelated; /* the icon is pixel art — never smooth it */
  display: block;
  margin: 0 auto 22px;
}

.wordmark {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-weight: 700;
  /* Silkscreen is a wide face — at a fixed size the wordmark fills the line
     exactly and tips into overflow on a narrow phone. Scale it instead. */
  font-size: clamp(19px, 6.4vw, 34px);
  letter-spacing: 0.06em;
  color: var(--cream);
  margin: 0;
}

.rule {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 20px auto 14px;
  width: min(306px, 78%);
}
/* Nine equal blocks that shrink together, so the bar never sets the page
   width on a small screen. */
.rule span { flex: 1 1 0; height: 11px; }

.tagline { color: var(--muted); margin: 0; font-size: 15px; }

nav { text-align: center; margin-top: 26px; }
nav a {
  color: var(--tea-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 178, 70, 0.35);
  margin: 0 12px;
  font-size: 15px;
}
nav a:hover { border-bottom-color: var(--tea-light); }

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--cream);
}

h2 {
  font-size: 19px;
  margin: 40px 0 10px;
  color: var(--tea-light);
}

.updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }

p { margin: 0 0 16px; }

ul { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }

a { color: var(--tea-light); }

.card {
  background: var(--table);
  border: 1px solid var(--table-edge);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 28px 0;
}

.card p:last-child { margin-bottom: 0; }

.big {
  font-size: 20px;
  color: var(--cream);
  font-weight: 600;
}

footer {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--table-edge);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 40px 20px 72px; }
  h1 { font-size: 25px; }
}
