.egt-games-widget {
  --eg-bg: #051411;
  --eg-surface: #08241f;
  --eg-surface-2: #0b3029;
  --eg-surface-3: #12463b;
  --eg-border: rgba(255, 193, 7, 0.22);
  --eg-text: #f7fbff;
  --eg-muted: #a8bdb6;
  --eg-red: #ffc107;
  --eg-chip: #f6f8fb;
  width: 100%;
  color: var(--eg-text);
  font-family: Arial, Helvetica, sans-serif;
}

html {
  color-scheme: dark;
}

body.casino-index-body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 193, 7, 0.12), transparent 28%),
    linear-gradient(180deg, #071d18 0%, #051411 46%, #03100d 100%);
  color: #f7fbff;
  font-family: Arial, Helvetica, sans-serif;
}

.casino-index-body *,
.casino-index-body *::before,
.casino-index-body *::after {
  box-sizing: border-box;
}

.casino-index-page {
  width: min(100%, 1372px);
  margin: 0 auto;
  padding: 28px 16px 54px;
}

.casino-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 193, 7, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 193, 7, 0.11), rgba(255, 109, 0, 0.05)),
    #08241f;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.casino-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.casino-breadcrumb a {
  color: #ffc107;
  text-decoration: none;
}

.casino-breadcrumb i {
  font-size: 9px;
}

.casino-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ffc107;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.casino-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.casino-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.75;
}

.casino-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.casino-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.casino-hero-links a:hover {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.12);
  color: #ffeb3b;
}

.casino-provider-section {
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid rgba(255, 193, 7, 0.16);
  border-radius: 16px;
  background: rgba(4, 23, 19, 0.78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.casino-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.casino-info-grid article {
  padding: 20px;
  border: 1px solid rgba(255, 193, 7, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.casino-info-grid i {
  color: #ffc107;
  font-size: 22px;
}

.casino-info-grid h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 18px;
}

.casino-info-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.egw-section-heading {
  display: flex;
  justify-content: center;
  margin: 0 0 22px;
  color: #f7fbff;
  font-family: Arial, Helvetica, sans-serif;
}

.egw-section-heading span,
.egw-section-heading h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border: 1px solid rgba(122, 165, 192, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #132f42 0%, #0b2130 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: #f7fbff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.egt-games-widget * {
  box-sizing: border-box;
}

.egw-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(170px, 1fr)) 48px;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.egw-search,
.egw-select select,
.egw-refresh {
  min-height: 48px;
  border: 1px solid var(--eg-border);
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.egw-search {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.egw-search__icon {
  display: grid;
  width: 42px;
  height: 48px;
  place-items: center;
  color: var(--eg-muted);
}

.egw-search__icon svg,
.egw-refresh svg,
.egp-back svg,
.egp-frame-top button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.egw-search input,
.egw-select select {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  outline: 0;
}

.egw-search input {
  min-width: 0;
  padding-right: 14px;
}

.egw-search input::placeholder {
  color: var(--eg-text);
  opacity: 0.82;
}

.egw-select {
  position: relative;
  display: block;
}

.egw-select::after {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--eg-red);
  border-right: 2px solid var(--eg-red);
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.egw-select select {
  appearance: none;
  padding: 0 40px 0 18px;
}

.egw-select option {
  background: #08241f;
  color: #fff;
}

.egw-refresh {
  display: grid;
  width: 48px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.egw-refresh:hover,
.egw-more:hover {
  border-color: rgba(228, 35, 20, 0.72);
}

.egw-status {
  min-height: 20px;
  margin: -10px 0 16px;
  color: var(--eg-muted);
  font-size: 13px;
  font-weight: 800;
}

.egw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 24px;
}

.egw-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 58px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--eg-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--eg-surface-2), var(--eg-surface));
  color: var(--eg-text);
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.egw-card:hover {
  border-color: rgba(228, 35, 20, 0.7);
  transform: translateY(-3px);
}

.egw-card__image {
  position: relative;
  aspect-ratio: 496 / 420;
  overflow: hidden;
  background: #071b25;
}

.egw-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.egw-card__title {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0 14px;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.egw-card__tag {
  position: absolute;
  right: 0;
  top: 14px;
  min-width: 54px;
  padding: 8px 11px;
  border-radius: 18px 0 0 18px;
  background: var(--eg-chip);
  color: #93073e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.egw-card__jackpot {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 80px);
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(6, 23, 34, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.egw-card--skeleton {
  min-height: 238px;
  background: linear-gradient(110deg, #0b2130 8%, #17384c 18%, #0b2130 33%);
  background-size: 200% 100%;
  animation: egw-shine 1.4s linear infinite;
}

@keyframes egw-shine {
  to {
    background-position-x: -200%;
  }
}

.egw-empty,
.egw-error {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--eg-border);
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-muted);
  font-weight: 800;
  text-align: center;
}

.egw-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.egw-more-wrap[hidden] {
  display: none;
}

.egw-more {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--eg-border);
  border-radius: 8px;
  background: var(--eg-surface-3);
  color: var(--eg-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.egp-body {
  min-height: 100vh;
  margin: 0;
  background: #061722;
  color: #f7fbff;
  font-family: Arial, Helvetica, sans-serif;
}

.egp-body * {
  box-sizing: border-box;
}

.egp-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
}

.egp-topbar,
.egp-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(122, 165, 192, 0.22);
  background: #0b2130;
}

.egp-back,
.egp-source,
.egp-frame-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7fbff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.egp-source,
.egp-frame-top a {
  color: #9bb2c0;
}

.egp-error {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  text-align: center;
}

.egp-error h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.egp-error p {
  margin: 0;
  color: #9bb2c0;
}

.egp-frame-shell {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  background: #061722;
}

.egp-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 116px);
  border: 0;
  background: #000;
}

.egp-frame-top strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .egw-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .egw-search {
    grid-column: 1 / -1;
  }

  .egw-refresh {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .casino-index-page {
    padding: 18px 10px 40px;
  }

  .casino-hero {
    border-radius: 14px;
    padding: 22px 18px;
  }

  .casino-hero-links a {
    justify-content: center;
    width: 100%;
  }

  .casino-provider-section {
    padding: 16px 10px;
  }

  .casino-info-grid {
    grid-template-columns: 1fr;
  }

  .egw-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .egw-section-heading {
    margin-bottom: 16px;
  }

  .egw-section-heading span {
    width: 100%;
    min-height: 42px;
    padding: 0 18px;
    font-size: 16px;
  }

  .egw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .egw-card {
    grid-template-rows: auto 50px;
  }

  .egw-card__title {
    padding: 0 8px;
    font-size: 11px;
  }

  .egw-card__tag {
    min-width: 48px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .egp-topbar,
  .egp-frame-top {
    padding: 9px 12px;
  }

  .egp-frame-shell iframe {
    min-height: calc(100vh - 114px);
  }
}
