/*
  Fan Fighter website: shared look for the landing page, privacy policy,
  and terms. Styled like the game's own menus (scripts/ui/palette.gd,
  resources/ui/theme.tres): Fredoka (OFL, site/OFL.txt), the painted logo
  and primary button, CardPanel cards, cyan headings.
*/
@font-face {
  font-family: "Fredoka";
  src: url("fredoka.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --sky-top: #1b2440;
  --sky-bottom: #0b1020;
  --panel: #222c4d;
  --panel-border: #3a4a80;
  --ink: #0c1122;
  --outline: #10152a;
  --text: #eef1fb;
  --text-dim: #8d97b8;
  --body: #c9d1ec;
  --wind: #8fe3ff;
  --player: #4cb3ff;
  --star: #ffd24a;
  --accent: #ff9f43;
  --warn: #ff8a4c;
}
* { box-sizing: border-box; }
html { background: var(--sky-bottom); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  font-weight: 500;
  color: var(--text);
  background:
    linear-gradient(transparent 0 118px, rgba(143,227,255,.05) 118px 120px, transparent 120px) 0 0 / 38% 100% no-repeat,
    linear-gradient(transparent 0 520px, rgba(143,227,255,.04) 520px 522px, transparent 522px) 100% 0 / 30% 100% no-repeat,
    radial-gradient(ellipse 70rem 40rem at 50% -6rem, rgba(58,79,143,.55), transparent 70%),
    linear-gradient(var(--sky-top), var(--sky-bottom) 42rem) no-repeat,
    var(--sky-bottom);
}
main {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.logo {
  display: block;
  width: min(360px, 78%);
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
/* The game's outlined titles: a shadow ring, so no glyph's outline paints
   over its neighbour (text-stroke does, and hides the thin "I"). Fredoka's
   "IV" kerning pair runs the capitals together, so kerning is off. */
h1, .title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: .04em;
  font-kerning: none;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text);
  text-shadow:
    0 -4px 0 var(--outline), 3px -3px 0 var(--outline), 4px 0 0 var(--outline), 3px 3px 0 var(--outline),
    0 4px 0 var(--outline), -3px 3px 0 var(--outline), -4px 0 0 var(--outline), -3px -3px 0 var(--outline),
    0 6px 0 var(--outline);
}
.lead { margin: 12px auto 4px; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--body); }
.card, section.card {
  margin: 0 0 16px;
  padding: 24px 30px 22px;
  border-radius: 26px;
  border: 3px solid var(--panel-border);
  border-bottom-width: 6px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
h2 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wind);
}
p, li { color: var(--body); font-size: 17px; line-height: 1.6; }
p { margin: 8px 0; }
ul { margin: 8px 0 0; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--wind); }
strong { color: var(--text); font-weight: 700; }
code {
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--wind);
  font: 600 .9em ui-monospace, "SF Mono", Menlo, monospace;
}
a { color: var(--wind); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--wind); outline-offset: 3px; }

/* Language tiles, like the Settings screen. */
.lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 26px;
  border: 3px solid var(--panel-border);
  border-bottom-width: 6px;
  background: var(--panel);
}
.lang button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  border-radius: 16px;
  border: 2px solid #2f3b63;
  background: #1a2240;
  color: var(--text-dim);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.lang button:hover { border-color: var(--player); color: var(--text); }
.lang button.active {
  background: #3a78b0;
  border-color: var(--player);
  color: var(--text);
  box-shadow: 0 0 0 2px rgba(76,179,255,.35), 0 0 18px rgba(76,179,255,.35);
}
.lang svg { width: 54px; height: 32px; border-radius: 3px; box-shadow: 0 0 0 2px var(--outline); }
.lang button:not(.active) svg { filter: saturate(.55) brightness(.8); }
/* Compact pill form for a page header. */
.lang.compact { display: inline-flex; gap: 6px; margin: 0; padding: 6px; border-radius: 18px; border-bottom-width: 4px; }
.lang.compact button { flex-direction: row; gap: 8px; padding: 6px 12px; border-radius: 12px; font-size: 14px; }
.lang.compact svg { width: 26px; height: 16px; border-radius: 2px; }

/* The painted primary button (9-slice, as in the game's theme). */
.play {
  display: inline-block;
  min-width: 240px;
  padding: 6px 30px;
  border-style: solid;
  border-width: 22px 30px;
  border-image: url("button_primary.webp") 22 30 fill / 22px 30px stretch;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}
.play:hover { filter: brightness(1.08); color: var(--ink); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }

footer { padding-top: 14px; color: var(--text-dim); font-size: 15px; text-align: center; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }

/* One language at a time, keyed on <html lang> (English without script). */
html:not([lang="id"]) [data-lang="id"], html[lang="id"] [data-lang="en"] { display: none !important; }

@media (max-width: 560px) {
  main { padding-top: 18px; }
  .card, section.card { padding: 18px 18px 16px; border-radius: 22px; }
  p, li { font-size: 16px; }
  .lang { padding: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
