/* CogNative Games */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #FAFAFA;
  color: #1A1A1A;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
header {
  background: #FFF;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid #E8E8E8;
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: #111;
}

.tagline {
  font-size: 1rem;
  color: #777;
  line-height: 1.6;
  font-style: italic;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Main Content ─── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── Game Cards ─── */
.game-card {
  --accent: #00C4C4;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.game-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.card-inner {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  align-items: flex-start;
}

.card-logo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #F0F0F0;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.version {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
  max-width: 540px;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.card-meta span {
  display: inline-block;
  background: #F0F0F0;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.78rem;
  color: #666;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-actions-secondary {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  background: #111;
  color: #FFF;
}

.store-btn:hover {
  background: #333;
}

.store-btn svg {
  flex-shrink: 0;
}

.action-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  background: var(--accent);
  color: #FFF;
}

.action-btn:hover {
  opacity: 0.85;
}

.action-btn-outline {
  background: transparent;
  border: 1px solid #D0D0D0;
  color: #555;
}

.action-btn-outline:hover {
  border-color: #BBB;
  background: #F5F5F5;
  opacity: 1;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #AAA;
  font-size: 0.8rem;
  border-top: 1px solid #E8E8E8;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  header {
    padding: 2.5rem 1rem 2rem;
  }

  .logo {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 1.6rem;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  .card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .card-logo {
    width: 120px;
    height: 120px;
  }

  .card-header {
    justify-content: center;
  }

  .card-desc {
    max-width: none;
  }

  .card-meta {
    justify-content: center;
  }

  .card-actions,
  .card-actions-secondary {
    justify-content: center;
  }
}
