/* Quick Play tiles on Games page */
:root {
  --qp-tile-width: 210px;
}

#quickPlayStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
}

.qp-tile-btn {
  flex: 0 0 var(--qp-tile-width);
  width: var(--qp-tile-width);
  max-width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
}

.qp-tile {
  position: relative;
  height: 76px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  box-sizing: border-box;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.qp-tile-btn:hover .qp-tile {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.qp-tile-btn:active .qp-tile {
  transform: scale(0.98);
}

.qp-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qp-tile-icon.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.qp-tile-name {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--theme-text-primary, #1a1a2e);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qp-empty {
  font-size: 0.85rem;
  color: var(--theme-text-secondary, #4a4a6a);
  opacity: 0.85;
  padding: 12px 8px;
  width: 100%;
  text-align: center;
  margin: 0;
}

.qp-pin-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(60, 60, 80, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
  padding: 0;
  line-height: 1;
}

.qp-pin-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.92);
  color: #f5a623;
}

.qp-pin-btn.pinned {
  color: #f5a623;
  background: rgba(255, 248, 230, 0.95);
}

.qp-pin-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.game-tile {
  position: relative;
}

[data-dark-mode="true"] .qp-tile {
  background: var(--theme-glass-tint, rgba(14, 22, 32, 0.75));
  border-color: var(--theme-glass-border, rgba(255, 255, 255, 0.08));
}

[data-dark-mode="true"] .qp-tile-name {
  color: var(--theme-text-primary, #f1f5f9);
}
