/* Slot Real Game Directory v2.0.2 */
.sr-game-directory {
  --sr-red: #e92336;
  --sr-red-hover: #c9182a;
  --sr-ink: #17243a;
  --sr-muted: #596579;
  --sr-border: #e5e7eb;
  width: 100%;
  margin: 0 auto;
}
.sr-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-game-directory__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
}
.sr-game-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 560px);
  min-height: 52px;
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20, 30, 50, 0.03);
}
.sr-game-search:focus-within {
  border-color: var(--sr-red);
  box-shadow: 0 0 0 3px rgba(233, 35, 54, 0.1);
}
.sr-game-search__icon {
  position: absolute;
  right: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid #7b8492;
  border-radius: 50%;
  pointer-events: none;
}
.sr-game-search__icon:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: #7b8492;
  transform: rotate(45deg);
  border-radius: 2px;
}
.sr-game-search__input {
  width: 100%;
  min-height: 50px;
  margin: 0 !important;
  padding: 12px 46px 12px 16px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sr-ink);
  font-size: 15px;
}
.sr-game-search__input::placeholder {
  color: #8a93a1;
  opacity: 1;
}
.sr-game-search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  color: #536071;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.sr-game-search__clear[hidden] {
  display: none;
}
.sr-game-directory__toolbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.sr-game-directory__count {
  margin: 0;
  color: var(--sr-muted);
  font-size: 13px;
  white-space: nowrap;
}
.sr-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--sr-red);
  border-radius: 8px;
  background: var(--sr-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.sr-filter-toggle:hover,
.sr-filter-toggle[aria-expanded="true"] {
  background: var(--sr-red-hover);
  border-color: var(--sr-red-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 35, 54, 0.18);
}
.sr-filter-toggle__icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  background:
    linear-gradient(#fff, #fff) 0 3px/16px 2px no-repeat,
    linear-gradient(#fff, #fff) 0 8px/16px 2px no-repeat,
    linear-gradient(#fff, #fff) 0 13px/16px 2px no-repeat;
}
.sr-filter-toggle__icon:before,
.sr-filter-toggle__icon:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--sr-red);
  border-radius: 50%;
  background: #fff;
  top: 1px;
  left: 3px;
}
.sr-filter-toggle__icon:after {
  top: 6px;
  left: 10px;
}
.sr-filter-toggle__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 0 0 2px;
  transition: transform 0.18s ease;
}
.sr-filter-toggle[aria-expanded="true"] .sr-filter-toggle__chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}
.sr-game-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px;
  background: #f8f9fb;
  border: 1px solid #edf0f3;
  border-radius: 12px;
}
.sr-game-filters[hidden] {
  display: none !important;
}
.sr-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--sr-ink);
  font-size: 12px;
  font-weight: 600;
}
.sr-filter-rtp-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.sr-filter-select,
.sr-filter-input {
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #465264 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
.sr-filter-select:focus,
.sr-filter-input:focus {
  border-color: var(--sr-red) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(233, 35, 54, 0.1) !important;
}
.sr-filter-reset {
  align-self: end;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--sr-red);
  border-radius: 7px;
  background: #fff;
  color: var(--sr-red);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.sr-filter-reset:hover {
  background: var(--sr-red);
  border-color: var(--sr-red);
  color: #fff;
}
.sr-game-directory__loading {
  display: none;
  margin: -10px 0 14px;
  color: var(--sr-muted);
  font-size: 13px;
}
.sr-game-directory.is-loading .sr-game-directory__loading {
  display: block;
}
.sr-game-directory.is-loading .sr-game-grid {
  opacity: 0.48;
  pointer-events: none;
}
.sr-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 0.15s ease;
}
.sr-game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 12px;
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.sr-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(20, 30, 50, 0.07);
}
.sr-game-card__image-link {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f3f5;
  aspect-ratio: 16/9;
}
.sr-game-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.sr-game-card:hover .sr-game-card__image {
  transform: scale(1.035);
}
.sr-game-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #8992a0;
  font-weight: 700;
}
.sr-game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.sr-game-card__title {
  margin: 0 0 10px !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
.sr-game-card__title a {
  color: var(--sr-ink) !important;
  text-decoration: none !important;
}
.sr-game-card__title a:hover {
  color: var(--sr-red) !important;
}
.sr-game-card__excerpt {
  margin: 0 !important;
  color: var(--sr-muted);
  font-size: 14px;
  line-height: 1.65;
}
.sr-game-card__meta {
  margin: 12px 0 0 !important;
  color: #788292;
  font-size: 12px;
  line-height: 1.5;
}
.sr-game-directory__empty {
  margin: 8px 0 0;
  padding: 28px 20px;
  border: 1px dashed #d9dde4;
  border-radius: 10px;
  background: #fff;
  color: var(--sr-muted);
  text-align: center;
  font-size: 15px;
}
.sr-game-directory__empty[hidden] {
  display: none;
}
.sr-game-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 0;
}
.sr-page-button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--sr-red);
  border-radius: 6px;
  background: var(--sr-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sr-page-button:hover:not(:disabled) {
  background: var(--sr-red-hover);
  border-color: var(--sr-red-hover);
  color: #fff;
}
.sr-page-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sr-page-status {
  color: var(--sr-muted);
  font-size: 13px;
}
@media (max-width: 1024px) {
  .sr-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .sr-game-directory__toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 14px;
  }
  .sr-game-search {
    width: 100%;
  }
  .sr-game-directory__toolbar-side {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .sr-game-directory__count {
    text-align: center;
    width: 100%;
  }
  .sr-filter-toggle {
    min-height: 42px;
    align-self: center;
  }
  .sr-game-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 13px;
    margin-bottom: 18px;
  }
  .sr-filter-rtp-group {
    grid-column: 1/-1;
  }
  .sr-game-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sr-game-card {
    padding: 14px;
  }
  .sr-game-card__title {
    font-size: 20px !important;
  }
  .sr-game-pagination {
    gap: 10px;
  }
  .sr-page-button {
    padding: 9px 12px;
  }
}
@media (max-width: 380px) {
  .sr-game-filters {
    gap: 9px;
    padding: 10px;
  }
  .sr-filter-field {
    font-size: 11px;
  }
  .sr-filter-rtp-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
  }
  .sr-filter-select,
  .sr-filter-input {
    font-size: 12px !important;
    padding: 8px !important;
  }
}
