/* PlayMyStory Game Engine – Frontend */
.pmse-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.pmse-game-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #E4DDF8;
  box-shadow: 0 4px 20px rgba(58,31,138,.08);
  transition: transform .25s, box-shadow .25s;
}
.pmse-game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(58,31,138,.15);
}
.pmse-card-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #1A3A1A;
}
.pmse-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #1A3A1A, #0D2B0D);
}
.pmse-card-body {
  padding: 18px 20px;
}
.pmse-card-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: #150D2E;
  margin: 0 0 6px;
}
.pmse-card-body p {
  font-size: 13px;
  color: #8B7BB5;
  line-height: 1.6;
  margin-bottom: 14px;
}
.pmse-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7B4FE0, #4E2DA8);
  color: #fff !important;
  text-decoration: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(123,79,224,.3);
}
.pmse-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,79,224,.4);
}
.pmse-embed {
  margin: 16px 0;
}
/* ── GAMES WALL ───────────────────────────────── */
.pmse-wall-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
}
.pmse-wall-empty {
  text-align: center; padding: 64px 24px;
  background: #F8F5FF; border-radius: 16px;
  border: 2px dashed #E4DDF8;
}
.pmse-wall-empty-icon { font-size: 56px; margin-bottom: 16px; }
.pmse-wall-empty h3 {
  font-size: 20px; font-weight: 800; color: #1A1035;
  margin-bottom: 8px; font-family: 'Nunito', sans-serif;
  text-transform: none;
}
.pmse-wall-empty p {
  color: #7A6A9A; font-size: 15px; line-height: 1.6;
  font-family: 'Nunito', sans-serif; text-transform: none;
}
.pmse-wall-empty a { color: #7B4FE0; font-weight: 700; }

.pmse-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Card — matches homepage demo card style */
/* Card */
.pmse-wall-card {
  background: #ffffff;
  border: 1.5px solid #E4DDF8;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 4px 20px rgba(58,31,138,.08);
}
.pmse-wall-card:hover {
  transform: translateY(-6px);
  border-color: #7B4FE0;
  box-shadow: 0 16px 48px rgba(58,31,138,.18);
}

/* Thumbnail */
.pmse-wall-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.pmse-wall-thumb-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  filter: blur(20px);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.pmse-wall-thumb-emoji {
  font-size: 72px;
  position: relative; z-index: 1;
  line-height: 1;
}
.pmse-wall-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.pmse-wall-card:hover .pmse-wall-play-overlay { opacity: 1; }
.pmse-wall-play-circle {
  width: 56px; height: 56px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transform: scale(.8); transition: transform .3s;
}
.pmse-wall-card:hover .pmse-wall-play-circle { transform: scale(1); }

/* Card body */
.pmse-wall-body { padding: 20px 22px; }
.pmse-wall-badge {
  display: inline-block;
  background: rgba(123,79,224,.2);
  color: #A882F5;
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Nunito', sans-serif;
}
.pmse-wall-title {
  font-size: 19px; font-weight: 800;
  color: #150D2E; margin: 0 0 8px;
  line-height: 1.25;
  font-family: 'Nunito', sans-serif;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.pmse-wall-desc {
  color: #8B7BB5;
  font-size: 13px; line-height: 1.6;
  margin-bottom: 16px;
  font-family: 'Nunito', sans-serif;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}
.pmse-wall-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #3DC9C0; font-weight: 800; font-size: 13px;
  letter-spacing: .3px; transition: gap .2s;
  text-decoration: none; font-family: 'Nunito', sans-serif;
  text-transform: none !important;
}
.pmse-wall-link:hover { gap: 10px; }