/* ReGame It Homepage: theme-compatible white version */
.rgi-home {
  --rgi-primary: #00833f;
  --rgi-secondary: #0f253a;
  --rgi-text: #15202a;
  --rgi-muted: #64717b;
  --rgi-border: #e2e8e5;
  --rgi-soft: #f5f8f6;
  background: #fff !important;
  color: var(--rgi-text);
  width: 100%;
  max-width: none;
  padding: clamp(24px, 4vw, 56px) 0;
  font-family: inherit;
  position: relative;
  isolation: isolate;
}
.rgi-home, .rgi-home * { box-sizing: border-box; }
.rgi-home a { color: inherit; text-decoration: none; }
.rgi-home__inner { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }
.rgi-hero { margin: 0 0 clamp(36px, 5vw, 64px); overflow: hidden; border-radius: 20px; background: var(--rgi-secondary); color: #fff; box-shadow: 0 12px 36px rgba(15,37,58,.12); }
.rgi-hero__slides { position: relative; }
.rgi-hero__slide { display: none; height: clamp(330px, 38vw, 540px); grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.rgi-hero__slide.is-active { display: grid; animation: rgiFadeIn .45s ease both; }
.rgi-hero__image { display: block; min-width: 0; min-height: 0; overflow: hidden; background: #dce4df; }
.rgi-hero__image img { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.rgi-hero__content { min-height: 0; overflow: hidden; padding: clamp(24px, 4vw, 58px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.rgi-hero__badges { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.rgi-hero__score { padding: 5px 12px; border-radius: 6px; background: #fff; color: var(--rgi-secondary); font-size: 13px; font-weight: 850; direction: ltr; }
.rgi-hero__tag { display: inline-block; padding: 5px 13px; border-radius: 6px; background: var(--rgi-primary); color: #fff; font-size: 13px; font-weight: 800; }
.rgi-hero__tag--report { background: #2b6cb0; }
.rgi-hero__tag--interview { background: #7a4bb5; }
.rgi-hero__tag--article { background: #b7791f; }
.rgi-hero__tag--news { background: #3f6180; }
.rgi-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 24px; color: #c6d5d0; font-size: 13px; }
.rgi-hero__author { color: #fff; font-weight: 700; }
.rgi-hero__content time { color: #c6d5d0; font-size: 13px; }
.rgi-hero__content h2 { color: #fff; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.5; margin: 0 0 14px; font-weight: 850; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rgi-hero__read { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; background: var(--rgi-primary); color: #fff !important; border-radius: 7px; font-weight: 750; }
.rgi-hero__controls { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #0b1b2a; }
.rgi-hero__controls > button { width: 34px; height: 34px; border: 1px solid #476073; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 23px; line-height: 1; }
.rgi-hero__dots { display: flex; gap: 8px; }
.rgi-hero__dots button { width: 9px; height: 9px; border: 0; padding: 0; border-radius: 50%; background: #71808c; cursor: pointer; }
.rgi-hero__dots button.is-active { background: #27c978; transform: scale(1.25); }
.rgi-section { margin: 0 0 clamp(36px, 5vw, 64px); }
.rgi-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--rgi-border); padding-bottom: 14px; margin-bottom: 22px; }
.rgi-section__heading h2 { margin: 0; padding-right: 14px; border-right: 5px solid var(--rgi-primary); color: var(--rgi-secondary); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.35; font-weight: 850; }
.rgi-section__sub { margin: 6px 0 0; padding-right: 19px; color: var(--rgi-muted); font-size: 14px; }
.rgi-section__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.rgi-more { color: var(--rgi-primary) !important; white-space: nowrap; font-size: 14px; font-weight: 750; }
.rgi-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.rgi-grid--review, .rgi-grid--news, .rgi-grid--best { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rgi-card { min-width: 0; background: #fff; border: 1px solid var(--rgi-border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(15,37,58,.045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.rgi-card:hover { transform: translateY(-3px); border-color: #9acdb0; box-shadow: 0 10px 24px rgba(15,37,58,.09); }
.rgi-card__image { display: block; position: relative; overflow: hidden; background: var(--rgi-soft); aspect-ratio: 16 / 9; }
.rgi-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rgi-card:hover .rgi-card__image img { transform: scale(1.035); }
.rgi-card__body { padding: 17px; }
.rgi-card__date { display: block; color: var(--rgi-muted); font-size: 12px; margin-bottom: 8px; }
.rgi-card h3 { margin: 0; color: var(--rgi-secondary); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.65; font-weight: 800; }
.rgi-tag { position: absolute; top: 12px; right: 12px; padding: 5px 10px; background: var(--rgi-primary); color: #fff; border-radius: 5px; font-size: 12px; font-weight: 800; }
.rgi-tag--report { background: var(--rgi-secondary); }
.rgi-rank { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rgi-secondary); color: #fff; font-size: 16px; font-weight: 850; box-shadow: 0 3px 10px rgba(15,37,58,.25); }
.rgi-card--best:first-child .rgi-rank { background: var(--rgi-primary); }
.rgi-score { position: absolute; bottom: 12px; left: 12px; padding: 5px 11px; border-radius: 7px; background: rgba(15,37,58,.92); color: #fff; font-size: 16px; font-weight: 850; line-height: 1.3; direction: ltr; }
.rgi-score--high { background: #00833f; }
.rgi-score--good { background: #1f7a8c; }
.rgi-score--mid { background: #c27c0e; }
.rgi-score--low { background: #b3261e; }
.rgi-empty ul { margin: 8px 0 0; padding-left: 18px; }
.rgi-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px; color: var(--rgi-primary); font-weight: 850; background: linear-gradient(135deg, #e8f3ec, #eef2f6); }
.rgi-empty { color: var(--rgi-muted); padding: 22px; border: 1px dashed #cbd8d0; border-radius: 10px; background: #f8faf9; line-height: 1.8; }
@keyframes rgiFadeIn { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 1024px) {
  .rgi-home__inner { width: min(100% - 32px, 1440px); }
  .rgi-grid--review { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgi-grid--news, .rgi-grid--best { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgi-hero__slide { grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); }
}
@media (max-width: 640px) {
  .rgi-home { padding: 20px 0 28px; }
  .rgi-home__inner { width: calc(100% - 24px); }
  .rgi-hero { border-radius: 12px; margin-bottom: 32px; }
  .rgi-hero__slide.is-active { display: flex; flex-direction: column; }
  .rgi-hero__image img { min-height: 0; aspect-ratio: 16 / 9; }
  .rgi-hero__slide { height: auto; }
  .rgi-hero__content { padding: 16px 18px; height: 235px; justify-content: flex-start; }
  .rgi-hero__content h2 { font-size: 18px; margin-bottom: 10px; }
  .rgi-hero__meta { margin-bottom: 16px; font-size: 12px; }
  .rgi-hero__badges { margin-bottom: 10px; }
  .rgi-hero__tag, .rgi-hero__score { font-size: 12px; }
  .rgi-hero__controls { padding: 9px 12px; }
  .rgi-section { margin-bottom: 34px; }
  .rgi-section__heading { margin-bottom: 14px; padding-bottom: 11px; }
  .rgi-section__heading h2 { font-size: 21px; padding-right: 10px; border-right-width: 4px; }
  .rgi-more { font-size: 12px; }
  .rgi-grid { gap: 10px; }
  .rgi-grid--review, .rgi-grid--news, .rgi-grid--best { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgi-card__body { padding: 10px; }
  .rgi-card h3 { font-size: 14px; line-height: 1.55; }
  .rgi-card__date { font-size: 10px; margin-bottom: 5px; }
  .rgi-tag { top: 8px; right: 8px; font-size: 10px; padding: 4px 7px; }
  .rgi-rank { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 13px; }
  .rgi-score { bottom: 8px; left: 8px; font-size: 13px; padding: 3px 8px; }
  .rgi-section__sub { font-size: 12px; padding-right: 14px; }
  .rgi-section__links { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rgi-card, .rgi-card__image img { transition: none; }
  .rgi-hero__slide.is-active { animation: none; }
}
