/* One stylesheet for the three pages. The palette is the app's own dark theme,
   read off app/src/theme/themes.ts: a green-black ground, raised panels, and
   the aegean green the boards use for anything correct. */

:root {
  --paper: #111713;
  --raised: #1A231C;
  --sunken: #0B100C;
  --ink: #E6EDE6;
  --line: #28332A;
  --aegean: #6ED089;
  --citrus: #F5B940;
  --teal: #3FD4B6;
  --dim: rgba(230, 237, 230, 0.62);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Rubik, Assistant, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.hero {
  position: relative;
  padding: 72px 24px 56px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 18%, #1D2A20 0%, var(--paper) 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% 16%;
  height: 150px;
  background: linear-gradient(90deg, rgba(110, 208, 137, 0.34), rgba(110, 208, 137, 0));
  transform: rotate(-8deg);
  filter: blur(30px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.icon {
  width: 132px;
  height: 132px;
  border-radius: 29%;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  display: block;
  margin: 0 auto 18px;
}

h1 {
  font-size: clamp(34px, 7vw, 56px);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, var(--aegean), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline { color: var(--dim); margin: 0 0 8px; font-size: clamp(15px, 2.6vw, 19px); }

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0B100C;
  background: var(--aegean);
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 700;
}

main { max-width: 860px; margin: 0 auto; padding: 44px 22px 90px; }

section { margin-bottom: 46px; }

h2 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--aegean);
  border-bottom: 2px solid rgba(110, 208, 137, 0.25);
  padding-bottom: 8px;
}

h3 { font-size: 17px; margin: 22px 0 6px; color: var(--citrus); }

p, li { color: rgba(230, 237, 230, 0.88); }

a { color: var(--aegean); }

ul { padding-inline-start: 22px; }

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

/* The two-language pages put each language in its own card, so a reader is
   never made to scan past a direction they do not read. */
.rtl { direction: rtl; text-align: right; }
.ltr { direction: ltr; text-align: left; }

/* A term that stays left-to-right inside a right-to-left sentence. */
.ltr-inline { direction: ltr; unicode-bidi: isolate; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.games .card h3 { margin-top: 0; }

.meta { color: var(--dim); font-size: 14px; }

nav.links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
nav.links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(230, 237, 230, 0.22);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}
nav.links a:hover { border-color: var(--aegean); color: var(--aegean); }

footer {
  border-top: 1px solid var(--line);
  padding: 26px 22px 48px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}
footer a { color: var(--dim); }
