/* Same palette and type as spotit/spotit.css. */
:root {
  color-scheme: light;
  --paper: #f4f0e5;
  --white: #fffdf7;
  --ink: #20342d;
  --muted: #728078;
  --line: #d9d5c8;
  --green: #386b4d;
  --green-dark: #284b39;
  --coral: #df654a;
  --yellow: #eccb61;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', 'Gill Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#d8d1bd 0.65px, transparent 0.65px);
  background-size: 13px 13px;
  font-family: var(--sans);
}

a { font: inherit; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.home-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  transform: rotate(-8deg);
}

.home-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { width: min(1100px, 100%); margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px; }

/* Phones: one big card. Tablets: two. Wider: three. Few cards stay centred. */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  animation: pop-in 360ms both;
}

.game-card:hover { border-color: var(--green); transform: translateY(-2px); }
.game-card:active { transform: translateY(0); }

.game-preview {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 4px;
  background: #eef4e9;
}

/* Spot It: the two pictures side by side, with a magnifier between them. */
.spotit-preview { grid-template-columns: 1fr 1fr; gap: 4px; }
.spotit-preview img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }

.spotit-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 3px 0 #b44a33;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.spotit-lens svg { width: 28px; height: 28px; fill: none; stroke: white; stroke-width: 2.8; stroke-linecap: round; }

.game-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 2px; }

.game-stamp {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  transform: rotate(-8deg);
}

@keyframes pop-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  .topbar { min-height: 44px; padding: 4px 14px; }
  .home-mark { width: 32px; height: 32px; }
  .home-mark svg { width: 19px; height: 19px; }
  .app-shell { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
