/* Shared wrapper for third-party HTML5 game embeds */

.embed-game {
  max-width: 28rem;
  margin: 0 auto var(--space-8);
}

.embed-game--wide {
  max-width: min(960px, 100%);
}

.embed-game__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 1280;
  max-height: min(78vh, 920px);
  margin: 0 auto;
  background: #101318;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.embed-game--wide .embed-game__frame {
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 720px);
}

.embed-game__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.embed-game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-3);
}

.embed-game__note {
  margin: var(--space-3) 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 14px;
}

.tier-table th,
.tier-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.tier-table th {
  background: var(--brand-wash);
  font-weight: 800;
}

.variant-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.variant-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.variant-list strong {
  display: block;
  margin-bottom: 2px;
}

@media (min-width: 720px) {
  .embed-game:not(.embed-game--wide) {
    max-width: 420px;
  }
}
