/* 메인 화면: 게임 고르기 */

.home main { max-width: 920px; }
.home header { padding-top: 28px; }

.game-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 휴대폰: 두 줄씩 */
  gap: 12px;
}
@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(120, 70, 40, 0.18);
}
.game-card:active { transform: scale(0.98); }
.game-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #efe6d6;
}

.gc-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.gc-body b { font-size: 1.02rem; line-height: 1.3; word-break: keep-all; }
.gc-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.35; word-break: keep-all; flex: 1; }
.gc-who {
  align-self: flex-start;
  margin-top: 4px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #fff3c4;
  color: #8a5a1c;
  font-size: 0.75rem;
  font-weight: 700;
}
.gc-new {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 2px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
}

.home-foot { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.home-foot a { color: var(--accent); }
