/* Riftlane's site: the game's night palette (docs/design/v2/tokens.json)
   and its fonts (Lilita One, Nunito; OFL, in fonts/). */
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night-900: #0a0f12;
  --night-800: #121a1f;
  --night-700: #1a252c;
  --line: #2f414b;
  --parchment: #f3ecdd;
  --muted: #a7b2b4;
  --gold: #e9c46a;
  --dawn: #2ec4b6;
  --dawn-glow: #5fe6d8;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night-900);
  color: var(--parchment);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--dawn-glow); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--night-800);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--parchment);
  text-decoration: none;
  font-family: "Lilita One", "Nunito", sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--gold); }

main { padding: 32px 0 48px; }

h1, h2, h3 {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
h1 { font-size: 34px; margin: 0 0 8px; color: var(--gold); }
h2 { font-size: 23px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
p, li { color: var(--parchment); }
.lede { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.panel {
  background: var(--night-800);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-weight: 700; }
.table-scroll { overflow-x: auto; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 40px #2ec4b633; }
.hero h1 { font-size: 46px; margin-top: 16px; }
.hero .lede { font-size: 19px; max-width: 520px; margin: 0 auto; }

.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--night-700);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
}

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.links a {
  display: block;
  background: var(--night-800);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 700;
}
.links a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.links a:hover { border-color: var(--gold); }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer.site a { color: var(--muted); }

/* Home page: the camp painting behind the title, the arena, the heroes. */
.brand img { width: 32px; height: 32px; border-radius: 0; }
.splash {
  text-align: center;
  padding: 48px 0 40px;
  background:
    linear-gradient(180deg, #0a0f1299 0%, #0a0f12cc 60%, var(--night-900) 100%),
    url("/img/scene_home.webp") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.splash .app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 40px #2ec4b644; }
.splash h1 { font-size: 48px; margin: 16px 0 8px; text-shadow: 0 2px 12px #000a; }
.splash .lede { color: var(--parchment); font-size: 19px; max-width: 520px; margin: 0 auto; text-shadow: 0 1px 8px #000c; }
.splash .badges { margin: 24px 0 0; }
.splash .badge { background: #121a1fcc; }

.plays { display: grid; grid-template-columns: 1fr; gap: 8px 28px; align-items: center; }
.plays h2 { margin-top: 0; }
.arena { margin: 0; }
.arena img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line); }
.steps { list-style: none; padding: 0; }
.steps li { margin: 10px 0; }
@media (min-width: 640px) {
  .plays { grid-template-columns: 300px 1fr; }
}

.heroes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.heroes li {
  margin: 0;
  text-align: center;
  background: var(--night-800);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 10px;
}
.heroes img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; margin-bottom: 8px; }
.heroes span { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.heroes small { color: var(--muted); font-size: 13px; }
.plays { margin-top: 8px; }
