/* Space between the two separate cards so the theme background (mh-wrapper) shows */
.bwb-gsw-game-stats + .bwb-gsw-game-stats { margin-top: 16px; }

/* Widget container */
.bwb-gsw-game-stats {
  background-color:#000;
  border-radius:5px;
  padding:14px;
  color:#fff;
  font-size:15px;
  font-weight:normal;
  box-shadow:0 4px 10px rgba(0,0,0,.5);
}
/* Thumbnail wrapper ensures all 4 image corners are clipped */
.bwb-gsw-thumb{
  border-radius:4px;
  overflow:hidden;
  margin-bottom:4px;
}

/* Reset radius on the img itself to avoid double rounding artifacts */
.bwb-gsw-thumb img{
  display:block;
  border-radius:0;
}

/* List + items */
.bwb-gsw-game-stats ul{ list-style:none; margin:0; padding:0; }
.bwb-gsw-game-stats li{
  position:relative;
  margin-top:0;
  padding:2px 10px 2px 16px;
}
.bwb-gsw-game-stats li:nth-child(odd){  background:rgba(255,255,255,0.035); }
.bwb-gsw-game-stats li:nth-child(even){ background:rgba(255,255,255,0.07); }
.bwb-gsw-game-stats li:first-child{
  border-top-left-radius:4px;
  border-top-right-radius:4px;
}
.bwb-gsw-game-stats li:last-child{
  border-bottom:0;
  border-bottom-left-radius:4px;
  border-bottom-right-radius:4px;
}

/* small white dot before each row */
.bwb-gsw-game-stats li::before{
  content:" ";
  display:block;
  height:6px; width:6px;
  border-radius:3px;
  position:absolute;
  top:50%; left:6px;
  transform:translateY(-50%);
  background-color:#fff;
  opacity:.7;
}

/* Labels vs values */
.bwb-gsw-game-stats li > span:first-child{ color:#fff; font-weight:600; }
.bwb-gsw-game-stats li{ font-weight:400; }

/* Numeric/value pieces normal weight */
.bwb-gsw-rank-number,
.bwb-gsw-user-score-badge,
.bwb-gsw-top-countries{ font-weight:400; }

/* Highlighted metric rows (dashed frames) */
.bwb-gsw-game-stats__rank,
.bwb-gsw-game-stats__user-score,
.bwb-gsw-game-stats__top-countries,
.bwb-gsw-game-stats__critic-score{
  border:1px dashed rgba(255,255,255,0.28);
  border-radius:6px;
  background:transparent;
  background-clip:padding-box;
  font-weight:normal;
}
.bwb-gsw-game-stats__rank{ margin-top:8px; }

/* If USER SCORE is the last row, restore the bottom dashed edge */
.bwb-gsw-game-stats li.bwb-gsw-game-stats__user-score:last-child{
  border-bottom:1px dashed rgba(255,255,255,0.28) !important;
  border-bottom-left-radius:6px;
  border-bottom-right-radius:6px;
}

/* Rank value group */
.bwb-gsw-game-stats .bwb-metric-value{
  display:inline-flex; align-items:center; gap:0; font-weight:400;
}
.bwb-gsw-game-stats .bwb-gsw-rank-number{ margin-right:4px; }

/* Trend formatting */
.bwb-gsw-game-stats .bwb-trend-group{ display:inline-flex; align-items:center; }
.bwb-gsw-game-stats .bwb-trend-group::before{ content:"("; color:#fff; }
.bwb-gsw-game-stats .bwb-trend-group::after{  content:")"; color:#fff; }
.bwb-gsw-game-stats .bwb-trend{ font-weight:400; white-space:nowrap; }
.bwb-gsw-game-stats .bwb-trend--up{   color:#61d66e; }
.bwb-gsw-game-stats .bwb-trend--down{ color:#ff6a6a; }
.bwb-gsw-game-stats .bwb-trend--flat{ color:#9aa0a6; }

/* Tip bubble */
.bwb-gsw-game-stats .bwb-help{
  display:inline-flex; align-items:center; justify-content:center;
  width:14px; height:14px; border-radius:50%;
  background:#3b82f6; color:#fff;
  border:1px solid rgba(255,255,255,.65);
  font-size:12px; line-height:1; font-weight:600;
  cursor:help; opacity:.95; margin-left:6px;
}
.bwb-gsw-game-stats .bwb-help:hover{ opacity:1; border-color:#fff; }

/* Top countries: small gap after flag */
.bwb-gsw-game-stats__top-countries .bwb-flag{
  display:inline-block; margin-right:6px; line-height:1;
}

/* User score badge */
.bwb-gsw-user-score-badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:4px 6px;
  line-height:.8;
  font-size:15px;
  min-width:14px;
  border-radius:3px;
  font-weight:700;
  color:#000 !important;
}
.bwb-gsw-user-score-badge.bwb-score--red{   background:#ff6874; }
.bwb-gsw-user-score-badge.bwb-score--amber{ background:#f39c12; }
.bwb-gsw-user-score-badge.bwb-score--green{ background:#27ae60; }
.bwb-gsw-user-score-badge.bwb-score--na{
  background:transparent !important;
  color:#fff !important;
  font-weight:400 !important;
  display:inline !important;
  padding:0 !important;
  min-width:0 !important;
  border-radius:0 !important;
  line-height:inherit !important;
}

/* Optional label beside score */
.bwb-gsw-user-score-note{
  display:inline-block;
  margin-left:2px;
  font-size:13px; line-height:1.2;
  font-weight:400; color:#fff; opacity:.9;
}

/* Critic badge (same sizing as user) */
.bwb-gsw-critic-score-badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:4px 6px;
  line-height:.8;
  font-size:15px;
  min-width:14px;
  border-radius:3px;
  font-weight:700;
  color:#000 !important;
}
.bwb-gsw-critic-score-badge.bwb-score--red{   background:#ff6874; }
.bwb-gsw-critic-score-badge.bwb-score--amber{ background:#f39c12; }
.bwb-gsw-critic-score-badge.bwb-score--green{ background:#27ae60; }
.bwb-gsw-critic-score-badge.bwb-score--na{
  background:transparent !important;
  color:#fff !important;
  font-weight:400 !important;
  display:inline !important;
  padding:0 !important;
  min-width:0 !important;
  border-radius:0 !important;
  line-height:inherit !important;
}
/* Tighter bottom padding for the first card so "Release" sits closer to the edge */
.bwb-gsw-game-stats--part1 { padding-bottom: 12px; }

/* Ensure the last row in the first list hugs the card bottom */
.bwb-gsw-list--part1 > li:last-child { padding-bottom: 0; }

/* Provider row links styling (actual key: studio) */
.bwb-gsw-game-stats__studio a {
  font-weight:400 !important;
  color:inherit !important;
  text-decoration:none;
  border:0;
}
.bwb-gsw-game-stats__studio a:hover {
  color:inherit !important;
  text-decoration:underline;
}

/* External-link icon image (uploaded SVG) */
.bwb-gsw-game-stats__studio .bwb-ext-icon-img{
  display:inline-block;
  width:12px;
  height:12px;
  margin-left:3px;
  vertical-align:baseline;
  position:relative;
  top:1px; /* subtle baseline align */
  opacity:.85;
}
.bwb-gsw-game-stats__studio a:hover + .bwb-ext-icon-img{
  opacity:1;
}