/**
 * Kizmio Games Plugin - CSS Design System
 * Matches Kizmio gaming portal layout, hot-pink branding, and Blogs-style sidebar
 */

:root {
  --kzm-pink: #ff3377;
  --kzm-pink-hover: #e02466;
  --kzm-pink-glow: rgba(255, 51, 119, 0.35);
  --kzm-games-bg: #0b0f19;
  --kzm-games-surface: #131b2e;
  --kzm-games-card: #1a233a;
  --kzm-games-border: #263554;
  --kzm-games-text: #f8fafc;
  --kzm-games-muted: #94a3b8;
  --kzm-games-gold: #f59e0b;
}

/* Base Games Container */
.games-shell {
  min-height: calc(100vh - 120px);
  margin-top: 20px;
  margin-bottom: 40px;
}

.games-layout {
  display: flex;
  gap: 20px;
}

/* Adapt left sidebar to hot-pink Games style (Matches Blogs unified layout) */
.country-sidebar-card.country-places-sidebar.kzm-wishlist-unified-sidebar,
.kzm-wishlist-unified-sidebar {
  border: 1px solid var(--kzm-games-border, #263554) !important;
  border-radius: 16px !important;
  background: var(--kzm-games-surface, #131b2e) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.kzm-wishlist-sidebar-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px !important;
  background: linear-gradient(145deg, rgba(255, 51, 119, 0.12), rgba(19, 27, 46, 0.95)) !important;
  border-bottom: 1px solid var(--kzm-games-border, #263554) !important;
}

.kzm-wishlist-sidebar-identity > span {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3377, #d81b60) !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 18px rgba(255, 51, 119, 0.35) !important;
  font-size: 1.15rem !important;
}

.kzm-wishlist-sidebar-identity small,
.kzm-wishlist-sidebar-identity h2 {
  display: block !important;
  margin: 0 !important;
}

.kzm-wishlist-sidebar-identity small {
  color: #ff3377 !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.kzm-wishlist-sidebar-identity h2 {
  color: #ffffff !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

.kzm-wishlist-sidebar-heading {
  padding: 0 4px 8px !important;
}

.kzm-wishlist-sidebar-heading > span {
  color: #ff3377 !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  display: block !important;
}

.kzm-wishlist-sidebar-heading h3 {
  margin: 2px 0 0 !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
}

.kzm-wishlist-sidebar-grid {
  display: grid !important;
  gap: 7px !important;
}

.kzm-wishlist-sidebar-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px !important;
  color: var(--kzm-games-text, #f8fafc) !important;
  text-align: left !important;
  text-decoration: none !important;
  background: var(--kzm-games-card, #1a233a) !important;
  border: 1px solid var(--kzm-games-border, #263554) !important;
  border-radius: 12px !important;
  transition: all 0.18s ease !important;
}

.kzm-wishlist-sidebar-pill:hover,
.kzm-wishlist-sidebar-pill.is-active {
  color: #ff3377 !important;
  background: rgba(255, 51, 119, 0.14) !important;
  border-color: #ff3377 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255, 51, 119, 0.2) !important;
}

.kzm-wishlist-sidebar-pill__icon {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  color: #ff3377 !important;
  background: #131b2e !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  transition: all 0.18s ease !important;
}

.kzm-wishlist-sidebar-pill:hover .kzm-wishlist-sidebar-pill__icon,
.kzm-wishlist-sidebar-pill.is-active .kzm-wishlist-sidebar-pill__icon {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3377, #d81b60) !important;
  box-shadow: 0 4px 12px rgba(255, 51, 119, 0.35) !important;
}

.kzm-wishlist-sidebar-pill__copy {
  min-width: 0 !important;
  flex: 1 !important;
}

.kzm-wishlist-sidebar-pill__copy strong,
.kzm-wishlist-sidebar-pill__copy small {
  display: block !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.kzm-wishlist-sidebar-pill__copy strong {
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  color: inherit !important;
}

.kzm-wishlist-sidebar-pill__copy small {
  color: var(--kzm-games-muted, #94a3b8) !important;
  font-size: 0.68rem !important;
}

.kzm-wishlist-sidebar-pill:hover .kzm-wishlist-sidebar-pill__copy strong,
.kzm-wishlist-sidebar-pill.is-active .kzm-wishlist-sidebar-pill__copy strong {
  color: #ffffff !important;
}

.kzm-wishlist-sidebar-pill--create {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3377, #d81b60) !important;
  border-color: #ff3377 !important;
  box-shadow: 0 4px 15px rgba(255, 51, 119, 0.35) !important;
}

.kzm-wishlist-sidebar-pill--create .kzm-wishlist-sidebar-pill__icon {
  color: #ff3377 !important;
  background: #ffffff !important;
}

.kzm-wishlist-sidebar-pill--create .kzm-wishlist-sidebar-pill__copy small {
  color: #ffe4ef !important;
}

.kzm-wishlist-sidebar-pill--create:hover {
  color: #ffffff !important;
  background: #e02466 !important;
}

.kzm-wishlist-filter-form {
  display: grid !important;
  gap: 10px !important;
  padding-top: 0 !important;
}

.kzm-wishlist-filter-card {
  display: grid !important;
  gap: 9px !important;
  padding: 12px !important;
  background: var(--kzm-games-surface, #131b2e) !important;
  border: 1px solid var(--kzm-games-border, #263554) !important;
  border-radius: 12px !important;
}

.kzm-wishlist-filter-title {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
}

.kzm-wishlist-filter-title i {
  width: 14px !important;
  color: #ff3377 !important;
  text-align: center !important;
}

.kzm-wishlist-filter-field {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.kzm-wishlist-filter-field > label {
  margin: 0 !important;
  color: var(--kzm-games-muted, #94a3b8) !important;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
}

.kzm-wishlist-filter-form .form-control,
.kzm-wishlist-filter-form .form-select {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 5px 12px !important;
  background-color: var(--kzm-games-card, #1a233a) !important;
  border: 1px solid var(--kzm-games-border, #263554) !important;
  border-radius: 9px !important;
  color: var(--kzm-games-text, #f8fafc) !important;
  font-size: 12.5px !important;
  box-shadow: none !important;
}

.kzm-wishlist-filter-form .form-control:focus,
.kzm-wishlist-filter-form .form-select:focus {
  background-color: var(--kzm-games-card, #1a233a) !important;
  border-color: #ff3377 !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 119, 0.25) !important;
}

.kzm-wishlist-filter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding-top: 1px !important;
}

.kzm-wishlist-filter-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
}

.kzm-wishlist-filter-apply {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3377, #d81b60) !important;
  border: 1px solid #ff3377 !important;
  box-shadow: 0 4px 14px rgba(255, 51, 119, 0.3) !important;
}

.kzm-wishlist-filter-apply:hover,
.kzm-wishlist-filter-apply:focus {
  color: #ffffff !important;
  background: #e02466 !important;
}

.kzm-wishlist-filter-clear {
  color: var(--kzm-games-muted, #94a3b8) !important;
  background: var(--kzm-games-card, #1a233a) !important;
  border: 1px solid var(--kzm-games-border, #263554) !important;
}

.kzm-wishlist-filter-clear:hover,
.kzm-wishlist-filter-clear:focus {
  color: #ff3377 !important;
  border-color: #ff3377 !important;
}

/* Daily Rewards Sidebar Card */
.games-daily-reward-card {
  background: linear-gradient(145deg, #1e1e38, #131b2e);
  border: 1px solid rgba(255, 51, 119, 0.3);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 51, 119, 0.15);
}

.games-reward-chest {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: floatChest 3s ease-in-out infinite;
}

@keyframes floatChest {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.games-daily-reward-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.games-daily-reward-card p {
  font-size: 0.78rem;
  color: var(--kzm-games-muted);
  margin-bottom: 14px;
}

.btn-claim-reward {
  background: linear-gradient(135deg, #ff3377, #ff6b8b);
  color: #ffffff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  width: 100%;
  box-shadow: 0 4px 15px var(--kzm-pink-glow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-claim-reward:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 51, 119, 0.5);
}

/* Main Hero Banner */
.games-hero-banner {
  background: linear-gradient(135deg, #2a0845, #6441a5, #ff3377);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 12px 35px rgba(100, 65, 165, 0.35);
  color: #ffffff;
}

.games-hero-content {
  max-width: 58%;
  z-index: 2;
}

.games-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.games-hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.games-hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 500;
}

.games-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #ff3377 !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.games-hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.games-hero-visual {
  position: relative;
  z-index: 1;
  font-size: 6.5rem;
  opacity: 0.85;
  text-align: right;
  line-height: 1;
}

/* Section Headers */
.games-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 10px;
}

.games-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.games-section-title i {
  color: var(--kzm-pink);
}

.games-shell .games-view-all,
.games-widget-card .games-view-all,
.games-section-header .games-view-all,
.games-view-all {
  color: #ff3377 !important;
  text-decoration: none !important;
  font-weight: 750 !important;
  font-size: 0.82rem !important;
  transition: all 0.2s ease !important;
}

.games-shell .games-view-all:hover,
.games-widget-card .games-view-all:hover,
.games-section-header .games-view-all:hover,
.games-view-all:hover {
  color: #ff6699 !important;
  text-decoration: underline !important;
}

.games-subtitle-kicker {
  color: #94a3b8 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  margin-left: 4px !important;
}

/* Ensure any text-muted in the games shell or widgets is clearly readable */
.games-shell .text-muted,
.games-widget-card .text-muted,
.games-shell small.text-muted {
  color: #94a3b8 !important;
}

/* Game Cards Grid */
.games-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 320px));
  justify-content: start;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 28px;
}

.game-card {
  background: var(--kzm-games-surface);
  border: 1px solid var(--kzm-games-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--kzm-games-text) !important;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  position: relative;
  min-width: 0;
  width: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 51, 119, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.game-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.08);
}

.game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--kzm-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.game-badge.pro {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.game-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-card-description {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 0 0 12px;
  overflow: hidden;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--kzm-games-muted);
  gap: 10px;
  flex-wrap: wrap;
}

.game-card-play {
  align-self: flex-start;
  margin-top: 14px;
  padding: 8px 16px;
  color: #fff;
  background: var(--kzm-pink);
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 800;
}

.game-card-rating {
  color: var(--kzm-games-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Category Grid */
.games-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.game-category-card {
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.game-category-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.game-category-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.game-category-name {
  font-size: 0.88rem;
  font-weight: 800;
}

.game-category-count {
  font-size: 0.68rem;
  opacity: 0.85;
}

/* Right Sidebar / Rail */
.games-right-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.games-widget-card {
  background: var(--kzm-games-surface);
  border: 1px solid var(--kzm-games-border);
  border-radius: 16px;
  padding: 16px;
  color: var(--kzm-games-text);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Player Profile Widget */
.games-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.games-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--kzm-pink);
  object-fit: cover;
}

.games-profile-info h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.games-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff3377, #d81b60);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 2px;
}

.games-level-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  color: #cbd5e1 !important;
}

.games-level-row span {
  color: #cbd5e1 !important;
}

.games-level-progress-bg {
  height: 6px;
  background: #263554;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.games-level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3377, #a855f7);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.games-metrics-pills {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.games-metric-pill {
  flex: 1;
  background: var(--kzm-games-card);
  border: 1px solid var(--kzm-games-border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.games-metric-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
}

.games-metric-lbl {
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Daily Challenge Widget */
.games-challenge-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.games-challenge-badge {
  background: var(--kzm-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.games-challenge-box {
  background: var(--kzm-games-card);
  border: 1px solid var(--kzm-games-border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

.games-challenge-desc {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.games-challenge-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--kzm-games-gold);
  font-weight: 800;
  font-size: 0.82rem;
  margin-top: 8px;
}

/* Top Players Leaderboard Widget */
.games-top-players-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.games-top-player-row {
  display: grid;
  grid-template-columns: 24px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--kzm-games-card);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.games-top-player-row:hover {
  border-color: var(--kzm-games-border);
}

.games-rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
}

.games-rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.games-rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.games-rank-3 { background: linear-gradient(135deg, #b45309, #78350f); }
.games-rank-other { background: #334155; color: #cbd5e1; }

.games-player-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.games-player-name {
  display: block;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-widget-card a.games-player-name:visited,
.games-widget-card a.games-player-name:hover,
.games-widget-card a.games-player-name:focus {
  color: #ffffff !important;
}

.games-player-score {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--kzm-games-gold);
  white-space: nowrap;
}

/* Recent Achievements Widget */
.games-recent-ach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.games-ach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--kzm-games-card);
  border-radius: 10px;
}

.games-ach-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.1rem;
  flex: 0 0 38px;
}

.games-ach-info h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.games-ach-info p {
  font-size: 0.7rem;
  color: var(--kzm-games-muted);
  margin: 0;
}

.games-ach-reward {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--kzm-pink);
}

/* Isolated Game Player Screen */
.game-player-container {
  background: #0f172a;
  border: 1px solid var(--kzm-games-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  margin-bottom: 24px;
}

.game-player-toolbar {
  background: #1e293b;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--kzm-games-border);
}

.game-player-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-player-title-info h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.game-player-actions {
  display: flex;
  gap: 8px;
}

.game-btn-tool {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.game-btn-tool:hover {
  background: var(--kzm-pink);
  border-color: var(--kzm-pink);
  color: #ffffff;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background: #000;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Modals */
.games-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.games-modal.show {
  display: flex;
}

.games-modal-dialog {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  position: relative;
}

.games-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .games-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 300px));
  }
  .games-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) {
  .games-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .games-hero-content {
    max-width: 100%;
  }
  .games-hero-visual {
    margin-top: 16px;
    font-size: 4rem;
  }
  .games-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 300px));
  }
  .games-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .games-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .games-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .games-hero-title {
    font-size: 1.6rem;
  }
  .game-iframe-wrapper {
    height: 480px;
  }
}

@media (max-width: 420px) {
  .games-categories-grid { grid-template-columns: minmax(0, 1fr); }
  .games-top-player-row { grid-template-columns: 24px 32px minmax(0, 1fr); }
  .games-player-score { grid-column: 3; }
}
