/* ===========================================================================
   Leikjanet — the hub. Dark and neutral on purpose: each game brings its own
   palette in its icon, and a quiet background lets all three read as siblings
   rather than compete.

   Mobile-first. The phone rules are the defaults; desktop is the media query.
   =========================================================================== */
:root {
  --bg: #12100e;
  --bg-soft: #1b1815;
  --card: #201c19;
  --line: #322c27;
  --ink: #f2efe6;
  --ink-soft: #a79e91;
  --accent: #cf8b52;
  --terracotta: #c0504a;
  --felt: #1d6a4d;
  --gold: #d4a344;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #12100e; padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.01em; text-decoration: none; font-size: 1.05rem;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.langlink {
  min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: 0.84rem; font-weight: 700;
}
.langlink:hover, .langlink:focus { color: var(--ink); border-color: var(--accent); }

main { max-width: 760px; margin: 0 auto; padding: 0 18px 40px; }
section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.games { padding-top: 6px; }
.games h2 { margin-bottom: 4px; }
.games .sectionlead { margin-bottom: 14px; }
section:last-of-type { border-bottom: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 10px; }
h1 { font-size: clamp(1.9rem, 8.5vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; }
p { margin: 0 0 12px; }

.kicker {
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; font-weight: 800; color: var(--accent);
}
.hero { padding: 22px 0 18px; border-bottom: 0; }
.hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.5rem); }
.lead { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 0; }
.lead strong { color: var(--ink); }
.sectionlead { color: var(--ink-soft); margin-bottom: 18px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; margin-top: 8px; padding: 0 26px;
  background: var(--accent); color: #12100e; text-decoration: none;
  border-radius: 999px; font-weight: 800; letter-spacing: 0.01em;
}
.cta:hover, .cta:focus { background: #e0a06a; }

/* --------------------------------------------------------------- the steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  position: relative; padding: 16px 16px 16px 58px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.stepno {
  position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #12100e; font-weight: 800; font-size: 0.9rem;
}
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.steps strong { color: var(--ink); }

/* ------------------------------------------------------- offline explainer */
.offgrid { display: grid; gap: 12px; margin-bottom: 14px; }
.offcol {
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.offcol h3 { margin: 0 0 6px; font-size: 0.92rem; }
.offcol p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.offcol.yes { border-left: 4px solid var(--felt); }
.offcol.yes h3::before { content: '✓ '; color: #58c295; }
.offcol.no { border-left: 4px solid var(--terracotta); }
.offcol.no h3::before { content: '· '; color: var(--terracotta); }
.offnote { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ------------------------------------------------------------- the games */
.gamelist { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.gamelink {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.gamelink:hover, .gamelink:focus {
  transform: translateY(-2px); background: #262119; border-color: var(--accent);
  border-left-color: var(--accent);
}
.gameicon { width: 62px; height: 62px; border-radius: 14px; flex: 0 0 62px; }
.gamebody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gamehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.gamehead h3 { margin: 0; font-size: 1.12rem; }
.gametag {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.gameblurb { color: var(--ink-soft); font-size: 0.92rem; }
.gamemeta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 2px; flex-wrap: wrap;
}
.players { color: var(--ink-soft); font-size: 0.8rem; }
.gamego { color: var(--accent); font-weight: 800; font-size: 0.92rem; }

.more {
  padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: transparent;
}
.more h3 { margin: 0 0 4px; color: var(--ink); }
.more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  text-align: center; color: var(--ink-soft); font-size: 0.88rem;
}
footer.site p { margin: 0 0 4px; }
footer.site a { color: var(--accent); font-weight: 700; }
footer.site .fine { font-size: 0.78rem; opacity: 0.75; }

@media (min-width: 700px) {
  main { padding-inline: 24px; }
  section { padding: 44px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 18px 16px 16px; }
  .stepno { position: static; margin-bottom: 10px; }
  .offgrid { grid-template-columns: 1fr 1fr; }
  .gameicon { width: 72px; height: 72px; flex-basis: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
