/* Site de TCG Ranked : mêmes couleurs que l'app (gris sidéral et orange).
   Aucune police ni script externe : rien n'est chargé depuis un autre site. */
:root {
  --space: #0e0f11;
  --graphite: #16171a;
  --surface: #1e1f23;
  --steel: #3d3f46;
  --silver: #a6a8b0;
  --text: #ededef;
  --orange: #ff7a1a;
  --orange-light: #ffa455;
  --on-orange: #1a0c00;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--orange-light); }
a:hover { color: var(--orange); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  background: var(--space);
  border-bottom: 1px solid var(--steel);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.brand span { color: var(--orange); }

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

nav.site a {
  color: var(--silver);
  text-decoration: none;
  padding: 6px 0;
}

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--orange-light); }

main { padding: 32px 0 48px; }

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

h2 {
  margin: 32px 0 8px;
  font-size: 21px;
  font-weight: 800;
}

p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lead { color: var(--silver); font-size: 19px; }
.updated { color: var(--silver); font-size: 15px; }

.hero {
  padding: 28px 0 8px;
  text-align: center;
}

.hero h1 { font-size: 40px; }
.hero h1 span { color: var(--orange); }

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 26px;
  border-radius: 14px;
  background: linear-gradient(var(--orange-light), var(--orange));
  color: var(--on-orange);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 #d9520a;
}

.button:hover { color: var(--on-orange); filter: brightness(1.05); }
.button.soon { background: var(--surface); color: var(--silver); box-shadow: none; border: 1px solid var(--steel); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.card {
  padding: 18px;
  border: 1px solid var(--steel);
  border-radius: 18px;
  background: var(--surface);
}

.card h2 { margin-top: 0; font-size: 18px; color: var(--orange-light); }
.card p { margin: 0; color: var(--silver); font-size: 16px; }

.note {
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: var(--surface);
}

footer.site {
  border-top: 1px solid var(--steel);
  background: var(--space);
  color: var(--silver);
  font-size: 14px;
}

footer.site .wrap { padding-top: 20px; padding-bottom: 28px; }
footer.site p { margin-bottom: 8px; }

@media (max-width: 520px) {
  h1 { font-size: 27px; }
  .hero h1 { font-size: 32px; }
}
