/* BuyRBLX buyer reviews — shared by the homepage and every game page.
   Markup is generated by reviews.js inside <section id="buyerReviews">. */

.rv{
  --rv-blue: var(--brand-blue, #2F5FE0);
  --rv-blue-soft: #EAF0FF;
  --rv-orange: var(--accent-orange, #FF7A29);
  --rv-gold: var(--star-gold, #FFB800);
  --rv-ink: var(--ink, #0F1B3D);
  --rv-muted: var(--muted, #6B7A99);
  --rv-border: var(--card-border, #D7E3FF);
  --rv-green: #1E9E57;
  --rv-star-off: #DDE4F0;
  max-width: 1080px;
  margin: 80px auto 0;
  padding: 0 6vw;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--rv-ink);
  text-align: left;
}
.rv *{ box-sizing: border-box; }

/* ---------- heading ---------- */
.rv-head{ text-align: center; margin-bottom: 28px; }
.rv-kicker{
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF4D6; color: #8A5A00; border: 1px solid #FFE08A;
  font-weight: 800; font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.rv-head h2{
  font-family: 'Baloo 2', sans-serif; font-weight: 800;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 12px 0 0;
}
.rv-head h2 .rv-hl{
  background: linear-gradient(90deg, var(--rv-blue), #7B5CFF 55%, var(--rv-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rv-head p{ color: var(--rv-muted); font-weight: 700; font-size: 14px; margin: 8px 0 0; }

/* ---------- layout ---------- */
.rv-layout{ display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px){ .rv-layout{ grid-template-columns: 1fr; } }

/* ---------- stars ---------- */
.rv-stars{ position: relative; display: inline-block; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.rv-stars .rv-stars-base{ color: var(--rv-star-off); }
.rv-stars .rv-stars-fill{
  position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--rv-gold);
  text-shadow: 0 0 10px rgba(255,184,0,.35);
}

/* ---------- summary card ---------- */
.rv-summary{
  position: sticky; top: 90px;
  background: linear-gradient(160deg, #1B2C66 0%, #2F5FE0 58%, #5B7CFF 100%);
  color: #fff; border-radius: 22px; padding: 24px 22px;
  box-shadow: 0 18px 40px -18px rgba(47,95,224,.65);
  overflow: hidden; isolation: isolate;
}
.rv-summary::before{
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -80px;
  background: radial-gradient(circle, rgba(255,184,0,.45), transparent 65%);
}
@media (max-width: 860px){ .rv-summary{ position: static; } }
.rv-score-row{ display: flex; align-items: center; gap: 14px; }
.rv-score{ font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 58px; line-height: .9; }
.rv-score-side .rv-stars{ font-size: 20px; }
.rv-score-side .rv-stars .rv-stars-base{ color: rgba(255,255,255,.28); }
.rv-score-count{ font-size: 12.5px; font-weight: 700; opacity: .85; margin-top: 6px; }

.rv-bars{ margin-top: 18px; display: grid; gap: 6px; }
.rv-bar-row{
  display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 8px;
  width: 100%; background: transparent; border: 1px solid transparent; color: #fff;
  font: 800 12px 'Nunito Sans', sans-serif; padding: 5px 6px; border-radius: 10px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.rv-bar-row:hover{ background: rgba(255,255,255,.1); }
.rv-bar-row.active{ background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.rv-bar-row:disabled{ cursor: default; opacity: .55; background: transparent; }
.rv-bar-label{ text-align: left; }
.rv-bar-label b{ color: var(--rv-gold); }
.rv-bar{ height: 8px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.rv-bar i{
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #FFD54A, var(--rv-gold));
  width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.rv-bar-num{ text-align: right; opacity: .85; }

.rv-trust{ margin-top: 18px; display: grid; gap: 8px; }
.rv-trust div{
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px;
  font-size: 12px; font-weight: 700;
}
.rv-write-btn{
  display: block; width: 100%; margin-top: 16px; text-align: center; text-decoration: none;
  background: linear-gradient(90deg, var(--rv-orange), #FF9A3D); color: #fff;
  font: 800 14px 'Baloo 2', sans-serif; padding: 11px 16px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(255,122,41,.9);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rv-write-btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(255,122,41,.95); }

/* ---------- toolbar ---------- */
.rv-toolbar{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rv-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip-btn{
  background: #fff; border: 1px solid var(--rv-border); color: var(--rv-muted);
  font: 800 12.5px 'Nunito Sans', sans-serif; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.rv-chip-btn:hover{ border-color: var(--rv-blue); color: var(--rv-blue); }
.rv-chip-btn.active{ background: var(--rv-blue); border-color: var(--rv-blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(47,95,224,.9); }
.rv-chip-btn .rv-chip-star{ color: var(--rv-gold); }
.rv-chip-btn.active .rv-chip-star{ color: #FFE27A; }
.rv-chip-btn small{ opacity: .7; font-weight: 700; margin-left: 2px; }
.rv-sort{
  background: #fff; border: 1px solid var(--rv-border); color: var(--rv-ink);
  font: 800 12.5px 'Nunito Sans', sans-serif; padding: 7px 10px; border-radius: 10px; cursor: pointer;
}

/* ---------- review cards ---------- */
.rv-list{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px){ .rv-list{ grid-template-columns: 1fr; } }
.rv-card{
  position: relative; background: #fff; border: 1px solid var(--rv-border); border-radius: 18px;
  padding: 18px 18px 16px; overflow: hidden;
  box-shadow: 0 6px 18px -14px rgba(15,27,61,.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: rv-pop .45s cubic-bezier(.2,.8,.2,1) both;
}
.rv-card::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--rv-accent, linear-gradient(90deg, var(--rv-blue), #7B5CFF));
}
.rv-card.s5{ --rv-accent: linear-gradient(90deg, #FFB800, #FF7A29); }
.rv-card.s4{ --rv-accent: linear-gradient(90deg, #2F5FE0, #7B5CFF); }
.rv-card.s3{ --rv-accent: linear-gradient(90deg, #6E93FF, #A9BCF5); }
.rv-card.s2, .rv-card.s1{ --rv-accent: linear-gradient(90deg, #B8C3DA, #DDE4F0); }
.rv-card:hover{ transform: translateY(-3px); border-color: #B9CCFF; box-shadow: 0 16px 30px -18px rgba(47,95,224,.55); }
.rv-card-quote{
  position: absolute; right: 14px; top: 2px; font: 800 64px/1 'Baloo 2', serif;
  color: var(--rv-blue-soft); pointer-events: none;
}
.rv-card-top{ position: relative; display: flex; align-items: center; gap: 11px; }
.rv-avatar{
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; padding: 2px;
  background: linear-gradient(135deg, var(--rv-blue), var(--rv-orange));
}
.rv-avatar img, .rv-avatar span{
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover;
  background: #EEF3FF; color: #fff; font: 800 16px 'Baloo 2', sans-serif;
}
.rv-who{ min-width: 0; }
.rv-name{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 800; font-size: 14px; }
.rv-name-text{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.rv-verified{
  display: inline-flex; align-items: center; gap: 3px;
  background: #E7F7EE; color: var(--rv-green); border: 1px solid #BFE8D0;
  font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
}
.rv-meta{ display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--rv-muted); font-size: 11.5px; font-weight: 700; }
.rv-meta .rv-stars{ font-size: 13px; letter-spacing: 1px; }
.rv-text{ position: relative; margin: 12px 0 0; color: #33405F; font-size: 13.5px; font-weight: 600; line-height: 1.6; word-wrap: break-word; }
.rv-text.rv-text-empty{ color: var(--rv-muted); font-style: italic; font-weight: 600; }
.rv-more-text{ background: none; border: 0; padding: 0; margin-left: 4px; color: var(--rv-blue); font: 800 12.5px 'Nunito Sans', sans-serif; cursor: pointer; }
.rv-items{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rv-item{
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  background: var(--rv-blue-soft); color: #2A4AA8; border-radius: 8px;
  font-size: 11px; font-weight: 800; padding: 4px 8px;
}
.rv-item span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-item.rv-item-more{ background: #F2F4F9; color: var(--rv-muted); }

.rv-empty{
  grid-column: 1 / -1; text-align: center; background: #fff; border: 2px dashed var(--rv-border);
  border-radius: 18px; padding: 34px 20px; color: var(--rv-muted); font-weight: 700;
}
.rv-empty-icon{ font-size: 38px; display: block; margin-bottom: 6px; }
.rv-empty b{ display: block; color: var(--rv-ink); font: 800 18px 'Baloo 2', sans-serif; }

.rv-skeleton{ height: 150px; border-radius: 18px; border: 1px solid var(--rv-border);
  background: linear-gradient(90deg, #F2F5FC 25%, #FAFBFF 50%, #F2F5FC 75%); background-size: 200% 100%;
  animation: rv-shimmer 1.2s linear infinite; }

.rv-show-more{
  display: block; margin: 16px auto 0; background: #fff; color: var(--rv-blue);
  border: 2px solid var(--rv-blue); font: 800 13.5px 'Baloo 2', sans-serif;
  padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.rv-show-more:hover{ background: var(--rv-blue); color: #fff; }

/* ---------- write-a-review card ---------- */
.rv-form{
  position: relative; max-width: 640px; margin: 30px auto 0; background: #fff;
  border: 1px solid var(--rv-border); border-radius: 22px; padding: 24px;
  box-shadow: 0 18px 40px -26px rgba(15,27,61,.45); overflow: hidden; scroll-margin-top: 90px;
}
.rv-form::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--rv-blue), #7B5CFF, var(--rv-orange));
}
.rv-form h3{ font: 800 20px 'Baloo 2', sans-serif; margin: 0; }
.rv-form-sub{ color: var(--rv-muted); font-size: 13px; font-weight: 700; margin: 4px 0 0; }
.rv-state{ text-align: center; padding: 8px 0 2px; }
.rv-state-icon{ font-size: 40px; display: block; }
.rv-state h3{ margin-top: 6px; }
.rv-state .rv-btn{ margin-top: 14px; }
.rv-btn{
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--rv-blue), #5B7CFF); color: #fff;
  font: 800 14px 'Baloo 2', sans-serif; padding: 10px 24px; border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(47,95,224,.95); transition: transform .15s ease;
}
.rv-btn:hover{ transform: translateY(-2px); }
.rv-btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }

.rv-reviewer{
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: #F7F9FF; border: 1px solid var(--rv-border); border-radius: 14px; padding: 10px 12px;
}
.rv-reviewer .rv-avatar{ width: 42px; height: 42px; }
.rv-reviewer-name{ font-weight: 800; font-size: 13.5px; }
.rv-reviewer-order{ color: var(--rv-muted); font-size: 12px; font-weight: 700; margin-top: 2px; }

.rv-picker{ display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.rv-pick{
  background: none; border: 0; padding: 2px; cursor: pointer; font-size: 40px; line-height: 1;
  color: var(--rv-star-off); transition: transform .12s ease, color .12s ease;
}
.rv-pick:hover{ transform: scale(1.15); }
.rv-pick.on{ color: var(--rv-gold); text-shadow: 0 0 14px rgba(255,184,0,.55); }
.rv-pick.bump{ animation: rv-bump .3s ease; }
.rv-pick-label{ text-align: center; min-height: 20px; margin-top: 4px; font: 800 14px 'Baloo 2', sans-serif; color: var(--rv-muted); }
.rv-pick-label.on{ color: var(--rv-orange); }

.rv-textarea{
  display: block; width: 100%; margin-top: 14px; min-height: 96px; resize: vertical;
  border: 1.5px solid var(--rv-border); border-radius: 14px; padding: 12px 14px;
  font: 600 13.5px/1.55 'Nunito Sans', sans-serif; color: var(--rv-ink); background: #FBFCFF;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rv-textarea:focus{ outline: none; border-color: var(--rv-blue); box-shadow: 0 0 0 4px rgba(47,95,224,.12); background: #fff; }
.rv-form-foot{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.rv-counter{ color: var(--rv-muted); font-size: 12px; font-weight: 700; }
.rv-error{ color: #C0392B; font-size: 12.5px; font-weight: 800; margin-top: 10px; text-align: center; }

.rv-thanks{ text-align: center; padding: 10px 0 4px; position: relative; }
.rv-thanks-icon{ font-size: 46px; display: block; animation: rv-bump .6s ease; }
.rv-confetti{ position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.rv-confetti i{
  position: absolute; left: 50%; top: 30px; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation: rv-confetti 1.1s ease-out forwards;
}

@keyframes rv-pop{ from{ opacity: 0; transform: translateY(10px) scale(.98); } to{ opacity: 1; transform: none; } }
@keyframes rv-shimmer{ to{ background-position: -200% 0; } }
@keyframes rv-bump{ 0%{ transform: scale(1); } 40%{ transform: scale(1.35); } 100%{ transform: scale(1); } }
@keyframes rv-confetti{
  0%{ opacity: 1; transform: translate(0,0) rotate(0); }
  100%{ opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce){
  .rv-card, .rv-pick.bump, .rv-thanks-icon, .rv-confetti i, .rv-skeleton{ animation: none; }
  .rv-bar i{ transition: none; }
}
