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

html, body {
  height: 100%;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(160deg, #ffe9f3 0%, #e3f4ff 50%, #fff7d6 100%);
  color: #3b2d4a;
  -webkit-tap-highlight-color: transparent;
}

.hub-header {
  text-align: center;
  padding: 32px 16px 12px;
}
.hub-photo {
  width: clamp(80px, 12vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 0 #ffd1e0, 0 10px 20px rgba(0,0,0,.12);
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hub-header h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #ff5c8a;
  text-shadow: 0 4px 0 #ffd1e0;
}
.hub-header p {
  margin-top: 8px;
  font-size: 1.2rem;
  color: #7a6b8a;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  justify-content: center;
  gap: 22px 18px;
  padding: 20px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  user-select: none;
  transition: transform .15s ease;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-4px) scale(1.05);
  outline: none;
}
.game-card:active { transform: scale(.95); }

/* مربع الأيقونة بحجم أيقونة تطبيق */
.game-card .icon,
.game-card .icon-img {
  width: 76px;
  height: 76px;
  border-radius: 22%;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  line-height: 1;
  background: #fff;
  border: 3px solid var(--accent, #ffb3c9);
  box-shadow: 0 5px 0 var(--shadow, #e9dcef), 0 8px 16px rgba(0,0,0,.1);
  object-fit: cover;
}
.game-card .title {
  font-size: .85rem;
  font-weight: 800;
  color: var(--accent, #ff5c8a);
  text-align: center;
  max-width: 96px;
}
