:root {
  --bg-top: #6b3aa8;
  --bg-bottom: #2e1352;
  --gold: #ffd84d;
  --card: rgba(30, 12, 55, 0.82);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --line: rgba(255, 255, 255, 0.85);
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 28px, transparent 28px 56px),
    linear-gradient(var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.hero { text-align: center; }

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 18px 0 6px;
  color: var(--gold);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.tagline {
  margin: 0 auto 28px;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 4px solid var(--line);
  border-radius: 28px;
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 1.35rem;
}

.card p, .card li { color: var(--text); }
.card > :last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2rem; margin: 8px 0; }
.card li { margin: 4px 0; }

a { color: var(--gold); }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ff8c26;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
}

.button.alt { background: #4a8cff; }

.updated, footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer { margin-top: 32px; }

/* Two languages on one page: only the page's language shows (lang.js sets <html lang>). */
html[lang="fr"] [lang="en"],
html[lang="en"] [lang="fr"] { display: none !important; }

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 4px;
}

.lang-switch button {
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #2e1352;
}

.store {
  display: inline-block;
  margin: 0 0 8px;
}

.store img {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  border-radius: 0;  /* (not the icon's rounded corners: the badge keeps its own white edge) */
  box-shadow: none;
}
