/* Minimal chrome for the iframe preview — backdrop comes from backgrounds.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text, #f4f6ff);
  background: var(--bg, #07080f);
}

#preview-ui,
.pv-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 12px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.pv-tag {
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #8b95a8;
}
.pv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px 10px;
}
.pv-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pv-brand img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.pv-brand strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-points {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.pv-hero {
  text-align: center;
  padding: 8px 4px 4px;
}
.pv-hero .badge {
  display: inline-block;
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #b8bfd6;
  margin-bottom: 6px;
}
.pv-hero h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}
.pv-hero p {
  font-size: 0.72rem;
  color: #9399b5;
  margin: 0;
  line-height: 1.4;
}
.pv-card {
  background: var(--bg-card, rgba(18, 20, 34, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
}
.pv-card h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #8b95a8;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.pv-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}
.pv-progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.pv-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pv-game {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.58rem;
  color: #b8bfd6;
}
.pv-game .ico {
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}
.pv-game img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  margin: 0 auto 4px;
}
.pv-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pv-menu-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: left;
  min-height: 72px;
}
.pv-menu-tile .ico {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}
.pv-menu-tile strong {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 2px;
}
.pv-menu-tile span {
  font-size: 0.58rem;
  color: #9399b5;
  line-height: 1.3;
}
.pv-pages-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  min-height: 168px;
}
.pv-pages-track {
  display: flex;
  transform: translateX(-33%);
}
.pv-page {
  flex: 0 0 34%;
  padding: 10px 8px;
  opacity: 0.45;
  transform: scale(0.94);
}
.pv-page.active {
  opacity: 1;
  transform: scale(1);
}
.pv-page h4 {
  font-size: 0.68rem;
  margin: 0 0 6px;
}
.pv-page-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px;
  font-size: 0.58rem;
  color: #9399b5;
  min-height: 88px;
}
.pv-pages-tabs {
  display: flex;
  justify-content: space-around;
  gap: 2px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pv-pages-tab {
  flex: 1;
  text-align: center;
  font-size: 0.52rem;
  color: #9399b5;
  padding: 4px 2px;
  border-radius: 8px;
}
.pv-pages-tab.active {
  color: #00e8c8;
  background: rgba(255, 255, 255, 0.04);
}
.pv-pages-tab .ico {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.pv-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pv-stat-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.pv-stat-mini .n {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}
.pv-stat-mini .l {
  font-size: 0.55rem;
  color: #9399b5;
  text-transform: uppercase;
}
.pv-quest {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pv-quest:last-child {
  border-bottom: none;
}
.pv-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0b0f17;
}
.pv-watermark {
  text-align: center;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: auto;
  padding-top: 8px;
}
.pv-promo-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(139, 108, 255, 0.12), transparent 55%),
    rgba(18, 20, 34, 0.88);
  position: relative;
  overflow: hidden;
}
.pv-promo-banner--image {
  padding: 0;
  border: none;
  background: transparent;
  min-height: 72px;
}
.pv-promo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}
.pv-promo-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(7, 8, 15, 0.78), rgba(7, 8, 15, 0.42));
  border-radius: 12px;
}
.pv-promo-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.pv-promo-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-promo-text {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
}
.pv-promo-btn {
  align-self: flex-start;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #0b0f17;
}
.pv-footer-link {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}
.pv-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 2px;
  position: relative;
}
.muted {
  color: var(--muted, #9399b5);
}
