/* レビュー評価ボックス
   色は下の変数で調整できます */
.rsb {
  --rsb-accent: #f08c00;      /* 総合点の色（評価で自動切替） */
  --rsb-star:   #f5b400;      /* 星の色 */
  --rsb-star-off: #dfe2e7;    /* 星の空き部分 */
  --rsb-bar:    #f5b400;      /* バーの色 */
  --rsb-bg:     #fff;
  --rsb-soft:   #f6f7f9;
  --rsb-line:   #e6e8ec;
  --rsb-text:   #2b2f36;
  --rsb-sub:    #6b7280;

  margin: 2em 0;
  overflow: hidden;
  border: 1px solid var(--rsb-line);
  border-radius: 14px;
  background: var(--rsb-bg);
  color: var(--rsb-text);
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.rsb-tier-s { --rsb-accent: #e8a200; }
.rsb-tier-a { --rsb-accent: #f08c00; }
.rsb-tier-b { --rsb-accent: #3b82c4; }
.rsb-tier-c { --rsb-accent: #8a94a3; }

.rsb-head {
  padding: 10px 18px;
  border-bottom: 1px solid var(--rsb-line);
  background: var(--rsb-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* 星（割合で塗る） */
.rsb-stars {
  display: inline-block;
  background: linear-gradient(90deg, var(--rsb-star) var(--rsb-p), var(--rsb-star-off) var(--rsb-p));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}
.rsb-stars-lg { font-size: 22px; }
.rsb-stars-sm { font-size: 13px; }

/* 点数エリア */
.rsb-score {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px 18px;
  align-items: center;
}
.rsb-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 12px;
  background: var(--rsb-soft);
  text-align: center;
}
.rsb-total-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--rsb-sub);
  letter-spacing: .08em;
}
.rsb-total-num {
  color: var(--rsb-accent);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  font-feature-settings: "tnum";
}
.rsb-total-num small {
  margin-left: 2px;
  color: var(--rsb-sub);
  font-size: 15px;
  font-weight: 700;
}
.rsb-comment {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.rsb-items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rsb-item {
  display: grid;
  grid-template-columns: minmax(9.5em, 13em) 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 !important;
  padding: 7px 0 !important;
  border-bottom: 1px dashed var(--rsb-line);
  list-style: none !important;
}
.rsb-item::before { content: none !important; }
.rsb-item:last-child { border-bottom: none; }
.rsb-item-label {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
.rsb-item-label small {
  margin-top: 1px;
  color: var(--rsb-sub);
  font-size: 11px;
  font-weight: 400;
}
.rsb-item-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--rsb-star-off);
  overflow: hidden;
}
.rsb-item-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--rsb-bar);
}
.rsb-item-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rsb-item-val b {
  min-width: 2em;
  font-size: 14px;
  text-align: right;
  font-feature-settings: "tnum";
}

/* プレイ時間・購入価格 */
.rsb-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rsb-line);
}
.rsb-fact {
  padding: 14px 18px 16px;
}
.rsb-fact + .rsb-fact { border-left: 1px solid var(--rsb-line); }
.rsb-facts .rsb-fact:only-child { grid-column: 1 / -1; }
.rsb-fact-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--rsb-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.rsb-ico {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rsb-soft);
  font-size: 11px;
}
.rsb-fact-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rsb-fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
}
.rsb-fact-row span { color: var(--rsb-sub); }
.rsb-fact-row b {
  font-size: 17px;
  font-feature-settings: "tnum";
}
.rsb-price { justify-content: flex-start; align-items: center; }
.rsb-price b { font-size: 24px; }
.rsb-price b small { font-size: 13px; margin-left: 1px; }
.rsb-store {
  padding: 2px 8px;
  border-radius: 4px;
  background: #555;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
}
.rsb-store-dlsite { background: #1e63c8; }
.rsb-store-fanza  { background: #d92b3a; }
.rsb-store-steam  { background: #1b2838; }
.rsb-list s { opacity: .8; }
.rsb-off {
  padding: 1px 8px;
  border-radius: 999px;
  background: #ff3d7f;
  color: #fff;
  font-size: 12px !important;
}
.rsb-fact-note {
  margin-top: 8px;
  color: var(--rsb-sub);
  font-size: 11.5px;
}

.rsb-empty {
  padding: 16px;
  color: var(--rsb-sub);
  font-size: 13px;
  text-align: center;
}

/* 価格の内訳 */
.rsb-price .rsb-off { margin-left: auto; }
.rsb-breakdown {
  list-style: none !important;
  margin: 8px 0 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  background: var(--rsb-soft);
  font-size: 12.5px;
}
.rsb-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 3px 0 !important;
  list-style: none !important;
}
.rsb-breakdown li::before { content: none !important; }
.rsb-breakdown span { display: inline-flex; align-items: center; gap: 6px; color: var(--rsb-sub); }
.rsb-breakdown b { font-feature-settings: "tnum"; }
.rsb-breakdown i {
  padding: 1px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}
.rsb-breakdown .is-sale i   { background: #ff3d7f; }
.rsb-breakdown .is-coupon i { background: #7c4dff; }
.rsb-breakdown .is-sale b,
.rsb-breakdown .is-coupon b { color: #d0245e; }
.rsb-breakdown .is-total {
  margin-top: 4px !important;
  padding-top: 6px !important;
  border-top: 1px dashed var(--rsb-line);
}
.rsb-breakdown .is-total span { color: var(--rsb-text); font-weight: 700; }
.rsb-breakdown .is-total b { color: #d0245e; font-size: 14px; }

/* スマホ */
@media (max-width: 600px) {
  .rsb-score {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 14px;
  }
  .rsb-total { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 12px; }
  .rsb-total-label { width: 100%; }
  .rsb-total-num { font-size: 38px; }
  .rsb-comment { width: 100%; }
  .rsb-item { grid-template-columns: 1fr auto; gap: 4px 8px; }
  .rsb-item-bar { grid-column: 1 / -1; grid-row: 2; }
  .rsb-item-val .rsb-stars { display: none; }
  .rsb-facts { grid-template-columns: 1fr; }
  .rsb-fact + .rsb-fact { border-left: none; border-top: 1px solid var(--rsb-line); }
}
