/* Minimal base styles for homepage and cards */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #111;
}

img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.game-home-layout {
  width: 100%;
  padding: 10px;
  margin: auto;
  background: #ffffff;
}

.game-item {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
  background: #fff;
  display: block;
  padding: 0;
}

.game-item .game-icon {
  aspect-ratio: 1;
}

.game-item .game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.hot-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 44px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.hot-game .game-icon img {
  transform: scale(1.12);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.game-item .game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-item:hover .game-title {
  opacity: 1;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

