/* site.css is what the web-host index and its 404 page add to the shared
   theme (web/sdk/theme.css, docs/design/ui.md): a column of game cards and
   a panel. Colours, spacing and radii are the theme's tokens. */

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: var(--lh);
}

h1 {
  margin: 0;
  font-size: var(--fs-24);
}

.site {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: grid;
  gap: var(--space-5);
}

.site-head p {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-14);
}

.site-second {
  display: grid;
  gap: var(--space-3);
}

.site-second h2,
.site-second p {
  margin: 0;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  display: grid;
  gap: var(--space-1);
  height: 100%;
  box-sizing: border-box;
  padding: var(--space-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.card:hover {
  border-color: var(--accent);
  background: var(--panel-2);
}

.card span.muted {
  font-size: var(--fs-13);
}

.tag {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0 var(--space-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: var(--fs-12);
  font-weight: 600;
  vertical-align: middle;
}

.note {
  margin: 0;
  font-size: var(--fs-14);
}

.lost {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.lost p {
  margin: 0;
}

.lost .btn {
  text-decoration: none;
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The "Init session" button under a card (site.js): shown only on a stand
   with a demo operator, hidden as shipped. */
.cards li {
  display: grid;
  gap: var(--space-2);
}

.init {
  justify-self: start;
  text-decoration: none;
}
