/* Playground v0 — aligned with homepage / businesses v0 design */

body.mv-playground-v0-page main.flex-1 {
  background: #f7f5f0 !important;
  padding-top: 0;
}

.mv-playground-v0 .mv-biz-v0-hero-media-wrap {
  align-self: center;
  width: 100%;
  max-width: 21rem;
  margin-inline: auto;
}

.mv-playground-v0-hero-frame {
  border-radius: 1.5rem;
  border: 1px solid #e5e0d6;
  background: #fcfaf6;
  box-shadow: 0 24px 50px -28px rgba(27, 67, 50, 0.3);
  padding: 1.25rem 1.5rem 1.5rem;
  overflow: hidden;
}

.mv-playground-v0-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 24rem);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  transform: scale(0.9);
  transform-origin: center center;
}

@media (min-width: 1024px) {
  .mv-playground-v0 .mv-biz-v0-hero-media-wrap {
    max-width: 23rem;
    margin-inline: 0;
  }

  .mv-playground-v0-hero-frame {
    padding: 1.5rem 1.75rem 1.75rem;
  }

  .mv-playground-v0-hero-image {
    max-height: min(72vh, 26rem);
    transform: scale(0.92);
  }
}

.mv-playground-v0-section {
  margin-top: 3.5rem;
}

.mv-playground-v0-section:first-of-type {
  margin-top: 0;
}

.mv-playground-v0-section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mv-biz-accent);
}

.mv-playground-v0-section-title {
  margin: 0.5rem 0 0;
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--mv-biz-foreground);
}

.mv-playground-v0-section-lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mv-biz-muted-fg);
}

.mv-playground-v0-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .mv-playground-v0-grid--games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-playground-v0-grid--scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mv-playground-v0-grid--games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mv-playground-v0-grid--scores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid #e5e0d6;
  background: #ffffff;
  box-shadow: 0 14px 34px -24px rgba(27, 67, 50, 0.35);
  text-decoration: none;
  color: #2a3d34;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-game-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, #c4663c 45%, #e5e0d6);
  box-shadow: 0 22px 44px -20px rgba(27, 67, 50, 0.38);
  text-decoration: none;
  color: #2a3d34;
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-game-card.is-disabled {
  opacity: 0.65;
  pointer-events: none;
  cursor: default;
}

.mv-playground-v0-game-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 55%, #c4663c 100%);
}

.mv-playground-v0-game-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.mv-playground-v0-game-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: #ede9e0;
  font-size: 1.65rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-game-card:hover .mv-playground-v0-game-card__icon {
  background: color-mix(in srgb, #1b4332 10%, #ede9e0);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, #1b4332 18%, transparent);
  transform: scale(1.04);
}

.mv-playground-v0-game-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mv-playground-v0-game-card__badge--live {
  border: 1px solid color-mix(in srgb, #1b4332 25%, transparent);
  background: color-mix(in srgb, #1b4332 8%, #ffffff);
  color: #1b4332;
}

.mv-playground-v0-game-card__badge--soon {
  border: 1px solid #e5e0d6;
  background: #f7f5f0;
  color: #6b7b72;
}

.mv-playground-v0-game-card__badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #1b4332;
}

.mv-playground-v0-game-card__body {
  flex: 1;
}

.mv-playground-v0-game-card__title {
  margin: 0;
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: #2a3d34;
}

.mv-playground-v0-game-card__desc {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #6b7b72;
}

.mv-playground-v0-game-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: #1b4332;
  color: #f7f5f0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-game-card:hover .mv-playground-v0-game-card__cta {
  background: #163728;
}

.mv-playground-v0-game-card__cta svg {
  transition: transform 0.2s ease;
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-game-card:hover .mv-playground-v0-game-card__cta svg {
  transform: translateX(3px);
}

.mv-playground-v0-game-card__cta--muted {
  background: #ede9e0;
  color: #6b7b72;
}

.mv-biz-v0.mv-playground-v0 .mv-playground-v0-leaderboard-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid #e5e0d6;
  background: #ffffff;
  box-shadow: 0 12px 30px -24px rgba(27, 67, 50, 0.28);
}

.mv-playground-v0-leaderboard-card__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mv-playground-v0-leaderboard-card__emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.mv-playground-v0-leaderboard-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mv-biz-foreground);
}

.mv-playground-v0-leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mv-playground-v0-leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.mv-playground-v0-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.mv-playground-v0-leaderboard-rank {
  width: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--mv-biz-muted-fg) 70%, transparent);
}

.mv-playground-v0-leaderboard-name {
  font-weight: 500;
  color: var(--mv-biz-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-playground-v0-leaderboard-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mv-biz-muted-fg);
}

.mv-playground-v0-leaderboard-score {
  font-weight: 700;
  color: var(--mv-biz-primary);
  font-variant-numeric: tabular-nums;
}

.mv-playground-v0-leaderboard-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mv-biz-muted-fg);
}

.mv-playground-v0-village-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--mv-biz-primary) 20%, transparent);
  background: color-mix(in srgb, var(--mv-biz-primary) 6%, var(--mv-biz-card));
}

.mv-playground-v0-village-cta__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--mv-biz-primary) 12%, transparent);
  color: var(--mv-biz-primary);
}

.mv-playground-v0-village-cta__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mv-biz-foreground);
}

.mv-playground-v0-village-cta__text {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mv-biz-muted-fg);
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-leaderboard-card__play {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #1b4332;
  background: #ffffff;
  color: #1b4332;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-leaderboard-card__play:hover,
.mv-biz-v0.mv-playground-v0 a.mv-playground-v0-leaderboard-card__play:focus-visible {
  background: #1b4332;
  border-color: #1b4332;
  color: #f7f5f0;
  text-decoration: none;
}
