/* Mini-preview do layout Gamer dentro do <aside id="previewAside"> do /memory/create.
   Mostra o "lobby" (página da experiência) do detail_gamer.html em miniatura.
   Seletores isolados em .gamer-preview para não conflitar com o detail real. */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&display=swap");

.gamer-preview {
  --rxp-bg:        #17181c;
  --rxp-bg-2:      #202227;
  --rxp-card:      #26282e;
  --rxp-line:      rgba(255,255,255,0.09);
  --rxp-blue:      #4b7cfa;
  --rxp-green:     #00b06f;
  --rxp-gold:      #ffb000;
  --rxp-purple:    #b06cff;
  --rxp-teal:      #58c36a;
  --rxp-text:      #f4f5f7;
  --rxp-text-soft: rgba(244,245,247,0.75);
  --rxp-text-dim:  rgba(244,245,247,0.45);

  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rxp-bg);
  border: 1px solid var(--rxp-line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  color: var(--rxp-text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gamer-preview.hidden {
  display: none;
}

/* Top bar */
.gamer-preview .rxp-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--rxp-bg-2);
  border-bottom: 1px solid var(--rxp-line);
}
.gamer-preview .rxp-mark {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--rxp-blue);
  transform: rotate(12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.gamer-preview .rxp-brand {
  font-family: "Baloo 2", sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.gamer-preview .rxp-topbar-right {
  margin-left: auto;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rxp-text-dim);
}

/* Hero 16:9 */
.gamer-preview .rxp-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #23283a, #1a1c24);
  overflow: hidden;
}
.gamer-preview .rxp-hero img,
.gamer-preview .rxp-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gamer-preview .rxp-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  opacity: 0.45;
}
.gamer-preview .rxp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(23,24,28,0.85));
  pointer-events: none;
}
.gamer-preview .rxp-hero-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  background: var(--rxp-green);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Corpo do lobby */
.gamer-preview .rxp-body {
  padding: 10px 12px 12px;
}
.gamer-preview .rxp-title {
  font-family: "Baloo 2", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 2px;
  word-break: break-word;
}
.gamer-preview .rxp-creator {
  font-size: 9px;
  font-weight: 700;
  color: var(--rxp-text-dim);
  margin: 0 0 8px;
}
.gamer-preview .rxp-creator strong {
  color: var(--rxp-blue);
  font-weight: 800;
}
.gamer-preview .rxp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rxp-blue);
  color: #fff;
  font-size: 6px;
  margin-left: 1px;
  vertical-align: 1px;
}

/* Stats */
.gamer-preview .rxp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}
.gamer-preview .rxp-stat {
  background: var(--rxp-card);
  border: 1px solid var(--rxp-line);
  border-radius: 8px;
  padding: 5px 3px;
  text-align: center;
}
.gamer-preview .rxp-stat-value {
  font-family: "Baloo 2", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.gamer-preview .rxp-stat-label {
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rxp-text-dim);
  margin-top: 1px;
}

/* Botão Jogar (decorativo no preview) */
.gamer-preview .rxp-play-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: "Baloo 2", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--rxp-green);
  border-radius: 9px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2.5px 0 #00854f;
}
.gamer-preview .rxp-play-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* Trilha sonora */
.gamer-preview .rxp-music-card {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--rxp-card);
  border: 1px solid var(--rxp-line);
  border-radius: 9px;
  padding: 6px 8px;
  margin-bottom: 8px;
}
.gamer-preview .rxp-music-card.hidden {
  display: none;
}
.gamer-preview .rxp-music-thumb {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--rxp-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--rxp-blue);
}
.gamer-preview .rxp-music-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: unset;
}
.gamer-preview .rxp-music-meta {
  flex: 1;
  min-width: 0;
}
.gamer-preview .rxp-music-title {
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.gamer-preview .rxp-music-artist {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--rxp-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.gamer-preview .rxp-music-bar {
  width: 100%;
  height: 3px;
  background: var(--rxp-bg-2);
  border-radius: 2px;
  overflow: hidden;
}
.gamer-preview .rxp-music-fill {
  height: 100%;
  width: 35%;
  background: var(--rxp-blue);
  border-radius: 2px;
}
.gamer-preview .rxp-music-play {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rxp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  flex-shrink: 0;
}

/* Inventário (mini-grid) */
.gamer-preview .rxp-section-title {
  font-family: "Baloo 2", sans-serif;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 5px;
}
.gamer-preview .rxp-inventory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}
.gamer-preview .rxp-inventory.hidden {
  display: none;
}
.gamer-preview .rxp-item {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background: var(--rxp-card);
  border: 1px solid var(--rxp-line);
  border-bottom: 2px solid var(--item-color, var(--rxp-line));
}
.gamer-preview .rxp-item img,
.gamer-preview .rxp-item video {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  object-fit: cover;
  display: block;
  max-height: unset;
}
.gamer-preview .rxp-item-rarity {
  display: block;
  padding: 2px 4px;
  font-size: 5.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--item-color, var(--rxp-blue));
}

/* Missão (mensagem) */
.gamer-preview .rxp-mission-card {
  background: var(--rxp-card);
  border: 1px solid var(--rxp-line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 8px;
}
.gamer-preview .rxp-mission-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  background: var(--rxp-bg-2);
  border-bottom: 1px solid var(--rxp-line);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--rxp-blue);
}
.gamer-preview .rxp-mission-body {
  padding: 7px 9px 9px;
}
.gamer-preview .rxp-mission-greeting {
  font-family: "Baloo 2", sans-serif;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 3px;
}
.gamer-preview .rxp-mission-text {
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--rxp-text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.gamer-preview .rxp-mission-reward {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--rxp-gold);
  margin: 5px 0 0;
}

/* Emblemas (teaser) */
.gamer-preview .rxp-emblems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.gamer-preview .rxp-emblem {
  background: var(--rxp-card);
  border: 1px solid var(--rxp-line);
  border-radius: 8px;
  padding: 6px 2px 5px;
  text-align: center;
}
.gamer-preview .rxp-emblem-icon {
  font-size: 12px;
  line-height: 1;
  display: block;
  margin-bottom: 3px;
  filter: grayscale(1);
  opacity: 0.4;
}
.gamer-preview .rxp-emblem.earned .rxp-emblem-icon {
  filter: grayscale(0);
  opacity: 1;
}
.gamer-preview .rxp-emblem.earned {
  border-color: rgba(255,176,0,0.45);
  background: rgba(255,176,0,0.07);
}
.gamer-preview .rxp-emblem-name {
  font-size: 5.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rxp-text-dim);
  line-height: 1.3;
}

/* Footer */
.gamer-preview .rxp-footer {
  text-align: center;
  padding: 8px 12px 12px;
  font-size: 8px;
  font-weight: 800;
  color: var(--rxp-text-dim);
}
.gamer-preview .rxp-footer span {
  color: var(--rxp-teal);
}
