/* Cross-game landing page (/). Plain white platform look — each game keeps its
   own theme (e.g. Sequence's green felt in owner.css/board.css). */

.hidden { display: none !important; }

body {
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  padding: 24px 16px;
  /* column layout so the footer sits at the bottom on short pages */
  display: flex;
  flex-direction: column;
}
.home-wrap { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; }

.home-top { text-align: center; margin: 32px 0 36px; }
.brand {
  font-size: 2.4rem;
  letter-spacing: 0.2em;
  margin: 0 0 6px;
}
.welcome { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
button.signin { min-width: 200px; padding: 12px 20px; font-size: 1rem; }

/* ---- game cards: 3 per row, fewer on narrow screens ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12); }

.game-art {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sequence-art { background: radial-gradient(circle at 50% 0%, #15724a, var(--felt) 55%, var(--felt-dark)); }
.art-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}
.art-chip.blue { background: radial-gradient(circle, transparent 0, transparent 42%, #6ea0ff 46%, var(--team-blue) 100%); }
.art-chip.red { background: radial-gradient(circle, transparent 0, transparent 42%, #ff7a7a 46%, var(--team-red) 100%); }
.art-chip.green { background: radial-gradient(circle, transparent 0, transparent 42%, #62d486 46%, var(--team-green) 100%); }

.ludo-art { background: radial-gradient(circle at 50% 0%, #2c3290, #1d2260 55%, #0e1236); }
.art-token {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 -3px 5px rgba(0, 0, 0, 0.3), inset 0 3px 4px rgba(255, 255, 255, 0.45);
}
.art-token.red { background: #e23b3b; }
.art-token.green { background: #23a455; }
.art-token.yellow { background: #f2c14e; }
.art-token.blue { background: #2f6fed; }

.uno-art { background: radial-gradient(circle at 50% 0%, #c0182a, #8e0f1b 55%, #2a040a); gap: 0; }
.art-card {
  width: 44px;
  height: 66px;
  margin: 0 -6px;
  border-radius: 6px;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}
.art-card.red { background: #e0312f; transform: rotate(-14deg) translateY(4px); }
.art-card.yellow { background: #f5c400; transform: rotate(-5deg); }
.art-card.blue { background: #1f6fd6; transform: rotate(5deg); }
.art-card.wild {
  background: conic-gradient(#e0312f 0 90deg, #1f6fd6 0 180deg, #f5c400 0 270deg, #2ea44f 0);
  transform: rotate(14deg) translateY(4px);
}

.trivia-art {
  background: radial-gradient(circle at 50% 0%, #6a2fc4, #46178f 55%, #1e0a4a);
  display: grid;
  grid-template-columns: 66px 66px;
  grid-auto-rows: 44px;
  align-content: center;
  justify-content: center;
  gap: 8px;
}
.art-opt {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.art-opt.red { background: #e21b3c; }
.art-opt.blue { background: #1368ce; }
.art-opt.yellow { background: #d89e00; }
.art-opt.green { background: #26890c; }

.game-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.game-body p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; flex: 1; }
.game-body .play { font-weight: 700; color: var(--felt); }

/* logout button (top-right corner) */
.logout-btn {
  position: fixed;
  top: 16px;
  right: 18px;
  background: #eef1f4;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10;
}
.logout-btn:hover { background: #e2e6eb; }

.site-footer {
  width: 100%;
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 18px 0 8px;
  border-top: 1px solid #e6e9ee;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a { color: var(--felt); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
