.xdgb-panel {
  --xdgb-bg: #f7f9fc;
  --xdgb-border: #dfe6ef;
  --xdgb-text: #1f2937;
  --xdgb-muted: #6b7280;
  --xdgb-steam-bg: linear-gradient(135deg, #172b4d 0%, #1e3a5f 100%);
  box-sizing: border-box;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--xdgb-border);
  border-radius: 14px;
  background: var(--xdgb-bg);
  color: var(--xdgb-text);
  font-family: inherit;
  line-height: 1.5;
}

.xdgb-panel *,
.xdgb-panel *::before,
.xdgb-panel *::after {
  box-sizing: border-box;
}

.xdgb-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--xdgb-border);
}

.xdgb-meta-item {
  min-width: 0;
  padding: 14px 18px;
  background: var(--xdgb-bg);
}

.xdgb-meta-item span,
.xdgb-meta-item strong {
  display: block;
}

.xdgb-meta-item span {
  margin-bottom: 4px;
  color: var(--xdgb-muted);
  font-size: 12px;
}

.xdgb-meta-item strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xdgb-steam {
  padding: 20px 22px 22px;
  background: var(--xdgb-steam-bg);
  color: #fff;
}

.xdgb-steam-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.xdgb-steam-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 20px;
  font-weight: 700;
}

.xdgb-steam-title strong,
.xdgb-steam-title small {
  display: block;
}

.xdgb-steam-title strong {
  font-size: 15px;
}

.xdgb-steam-title small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
}

.xdgb-steam-level {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
  white-space: nowrap;
}

.xdgb-steam-level.is-positive {
  background: rgba(72, 187, 120, .2);
  color: #9cf0bf;
}

.xdgb-steam-body {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.xdgb-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xdgb-score > strong {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.xdgb-score > span {
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
}

.xdgb-score small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.xdgb-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 10px 0 4px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.xdgb-rate b {
  color: #fff;
  font-weight: 600;
}

.xdgb-updated {
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
}

.xdgb-verdict {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.xdgb-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.xdgb-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66c0f4, #8ed05c);
}

.xdgb-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
}

.xdgb-review-meta b {
  margin-left: 3px;
  color: #fff;
  font-size: 13px;
}

.xdgb-review-meta .is-positive {
  color: #8ed05c;
}

.xdgb-review-meta .is-negative {
  color: #ff8a8a;
}

article.xdgame-status-new .entry-media,
article.xdgame-status-update .entry-media {
  position: relative;
}

article.xdgame-status-new .entry-media::after,
article.xdgame-status-update .entry-media::after {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

article.xdgame-status-new .entry-media::after {
  content: "新游";
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

article.xdgame-status-update .entry-media::after {
  content: "更新";
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

article.xdgame-status-expired .entry-media::after {
  display: none !important;
}

body.night .xdgb-panel {
  --xdgb-bg: #171c24;
  --xdgb-border: #2a3340;
  --xdgb-text: #e5e7eb;
  --xdgb-muted: #9ca3af;
}

@media (max-width: 640px) {
  .xdgb-meta-grid {
    grid-template-columns: 1fr;
  }

  .xdgb-meta-item {
    padding: 11px 14px;
  }

  .xdgb-steam {
    padding: 16px;
  }

  .xdgb-steam-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .xdgb-score > strong {
    font-size: 36px;
  }

  article.xdgame-status-new .entry-media::after,
  article.xdgame-status-update .entry-media::after {
    top: 5px;
    right: 5px;
    padding: 2px 7px;
    font-size: 10px;
  }
}
