:root {
  --ink: #14171A;
  --teal: #1B8A82;
  --tealdk: #0F5F59;
  --orange: #E8792B;
  --paper: #F4F3EF;
  --card: #161616;
  --border: #2b2b2b;
  --grey: #B9BDB8;
  --dim: #868A85;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000000;
  color: var(--paper);
  font-family: 'Source Sans 3', sans-serif;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('trail-sign-match/assets/topo-bg.webp');
  background-size: 480px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 32px;
}

.display, h1, .brand, .btn-primary {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 20px;
}
.topbar .mark { width: 32px; height: 32px; }
.topbar .brand {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.topbar .brand .accent { color: var(--orange); }

.panel { width: 100%; max-width: 720px; }

.intro {
  text-align: center;
  margin-bottom: 28px;
}
.intro h1 {
  font-size: clamp(24px, 6vw, 34px);
  margin: 0 0 10px;
  color: var(--orange);
}
.intro p {
  margin: 0 auto;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 720px;
}
@media (min-width: 640px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover, .game-card:active {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.game-card .shot {
  aspect-ratio: 16 / 11;
  background: #0a0a0a;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.game-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s ease;
}
.game-card:hover .shot img { transform: scale(1.04); }

.game-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex-grow: 1;
}

.game-card .tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--tealdk);
  background: rgba(27, 138, 130, 0.14);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
}

.game-card h2 {
  margin: 0;
  font-size: 19px;
  color: var(--paper);
}

.game-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey);
}

.game-card .explainer {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}
.game-card .explainer li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  padding-left: 15px;
  position: relative;
}
.game-card .explainer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange);
}

.game-card .play-link {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-top: 2px;
}
.game-card:hover .play-link, .game-card:active .play-link { color: var(--tealdk); }

.coming-soon {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.back-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 20px;
}

.motto-banner {
  display: block;
  max-width: 280px;
  width: 100%;
  margin: 8px auto 12px;
  opacity: 0.85;
}

.foot {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
}
