:root {
  --bg: #001b53;
  --panel: #072b74;
  --panel-2: #0b3b9c;
  --line: #2b58ab;
  --text: #f8fbff;
  --muted: #c8d8ff;
  --brand: #fcd116;
  --danger: #ce1126;
  --warn: #ffd750;
  --mobile-shell-width: 430px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #0e46b2 0, var(--bg) 44%, #001138 100%);
  color: var(--text);
}

body.is-embed {
  background: radial-gradient(circle at top, #0e46b2 0, var(--bg) 44%, #001138 100%);
}

a {
  color: #ffe58a;
  text-decoration-color: rgba(255, 229, 138, 0.65);
  text-underline-offset: 2px;
}

a:hover {
  color: #fff8ce;
}

.container {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

body:not(.is-embed) .container {
  width: min(var(--mobile-shell-width), calc(100% - 16px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #2b58ab;
  background: rgba(0, 22, 70, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(210px, 50vw);
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  color: #cce1ff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 6px;
}

.header-link:hover {
  color: #ffffff;
}

.header-cta {
  border: 1px solid #4a72bf;
  background: #0e3686;
  color: #eef5ff;
  border-radius: 10px;
  height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.header-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-cta:hover {
  border-color: #88aef8;
}

.header-cta-real {
  border-color: #f7d96b;
  background: linear-gradient(180deg, #fcd116 0%, #f2b705 100%);
  color: #3d060f;
}

.site-main {
  padding: 20px 0 36px;
}

body.is-embed .site-main {
  padding: 20px 0 36px;
}

body.is-embed .container {
  width: min(var(--mobile-shell-width), calc(100% - 16px));
}

.hero {
  margin-bottom: 14px;
}

.embed-title-wrap {
  margin-bottom: 14px;
  text-align: center;
}

.embed-title {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--text);
}

.embed-description {
  margin: 10px auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.9vw, 2rem);
  line-height: 1.25;
}

.hero-copy {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.45;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  padding: 14px;
}

.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.provider-slider {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.provider-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #4f71b6;
  background: #0f347e;
  color: #f6f9ff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.provider-nav-btn:hover {
  border-color: #96b8ff;
  transform: translateY(-1px);
}

.provider-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.provider-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}

.provider-tabs::-webkit-scrollbar {
  display: none;
}

.provider-tabs.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.provider-tab {
  border: 1px solid #4b66a5;
  background: linear-gradient(180deg, #2f4e8d 0%, #26457f 100%);
  border-radius: 10px;
  width: 104px;
  min-width: 104px;
  height: 44px;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.provider-tab.active {
  border-color: #fcd116;
  background: linear-gradient(180deg, #3c5ea2 0%, #315596 100%);
  box-shadow: 0 0 0 2px rgba(252, 209, 22, 0.26);
}

.provider-tab-logo {
  width: 88px;
  height: 28px;
  border-radius: 0;
  border: 0;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}

.sort-quick-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-label {
  color: #f5f8ff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sort-pill {
  border: 1px solid #5074bb;
  background: #123a8d;
  color: #edf4ff;
  border-radius: 999px;
  min-width: 70px;
  height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.sort-pill.is-active {
  border-color: #fbd97f;
  background: linear-gradient(180deg, #ffd74b 0%, #f4ba0b 100%);
  color: #3f0912;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.search-wrap input,
.search-wrap select,
.search-wrap button {
  width: 100%;
  border: 1px solid #2d4872;
  border-radius: 10px;
  color: #e9f2ff;
  font-size: 0.95rem;
  height: 40px;
  background: #132b4c;
}

.search-wrap input,
.search-wrap select {
  padding: 0 12px;
}

.search-wrap button {
  cursor: pointer;
  border-color: #f7d96b;
  background: linear-gradient(180deg, #fcd116 0%, #f2b705 100%);
  color: #3d060f;
  font-weight: 700;
}

.search-wrap select {
  display: none;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.game-card {
  border: 1px solid #2f5aab;
  border-radius: 12px;
  background: #0a327f;
  padding: 10px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.game-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid #305482;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d9e7ff;
  text-align: center;
  padding: 4px;
  line-height: 1.2;
}

.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 1px 0 2px;
}

.provider-code {
  margin: 0 0 8px;
  color: #8fb4e4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.meter-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.meter-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #5b86d0;
  background: #072255;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fcd116 0%, #ff8f00 100%);
  transition: width 0.25s ease-out;
}

.meter-value {
  color: #ffe78f;
  font-weight: 700;
  font-size: 0.86rem;
  min-width: 52px;
  text-align: right;
}

.meter-arrow {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.meter-arrow.up {
  color: #ffd74b;
}

.meter-arrow.down {
  color: #ff8a93;
}

.game-subline {
  color: #a6bbdd;
  font-size: 0.8rem;
  margin: 7px 0;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.trend-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.82rem;
  color: #abc0e1;
}

.trend-value {
  font-weight: 700;
}

.trend-value.green {
  color: #ffd750;
}

.trend-value.red {
  color: #ff7a8b;
}

.pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.load-more-btn {
  min-width: 170px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #f9dc80;
  background: linear-gradient(180deg, #fdd84d 0%, #f3b905 100%);
  color: #3d0610;
  font-weight: 700;
  cursor: pointer;
}

.load-more-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-text {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.seo-copy {
  margin-top: 16px;
  color: #afc3e3;
  line-height: 1.52;
}

.seo-copy h2 {
  margin: 0 0 8px;
  color: #e8f1ff;
  font-size: 1.08rem;
}

.trust-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d6e3ff;
}

.trust-list li {
  margin: 0 0 8px;
  line-height: 1.5;
}

.faq {
  margin-top: 16px;
}

.faq h2 {
  margin: 0 0 10px;
  color: #f2f7ff;
  font-size: 1.08rem;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid #3966b6;
  border-radius: 10px;
  background: #0b2f79;
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #f5f9ff;
}

.faq-item p {
  margin: 8px 0 0;
  color: #d2deff;
  line-height: 1.5;
}

.content-page {
  padding-top: 4px;
}

.content-panel {
  border: 1px solid #2a456f;
  border-radius: 14px;
  background: linear-gradient(180deg, #122846 0%, #101f37 100%);
  padding: clamp(14px, 3vw, 22px);
}

.content-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
}

.content-panel p {
  margin: 0 0 12px;
  line-height: 1.62;
  color: #bed1ef;
}

.content-panel h2 {
  margin: 14px 0 8px;
  font-size: 1.02rem;
  color: #e6f0ff;
}

.content-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #bed1ef;
}

.content-list li {
  margin: 0 0 8px;
  line-height: 1.55;
}

.error-page {
  display: flex;
  align-items: center;
  min-height: min(72vh, 720px);
}

.error-panel {
  text-align: center;
}

.error-kicker {
  margin: 0 0 6px;
  color: #ffd77a;
  letter-spacing: 0.2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.error-code {
  margin: 0 0 4px;
  font-size: clamp(2.2rem, 10vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  color: #fcd116;
  text-shadow: 0 8px 20px rgba(252, 209, 22, 0.24);
}

.error-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #4f70aa;
  color: #e8f1ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  background: #1a3560;
}

.error-btn:hover {
  border-color: #98b8ef;
}

.error-btn-primary {
  border-color: #f7d96b;
  background: linear-gradient(180deg, #fcd116 0%, #f2b705 100%);
  color: #3d060f;
}

.error-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.error-links a {
  color: #c3d6f8;
  text-decoration: none;
  font-size: 0.85rem;
}

.error-links a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #b8cef0;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid #2f5ba9;
  padding: 14px 0 26px;
  color: #d2dfff;
  font-size: 0.9rem;
}

.site-footer p a {
  color: #ffd750;
  text-decoration: none;
  font-weight: 700;
}

.site-footer p a:hover {
  color: #fff6c5;
}

.noscript-warning {
  margin: 12px auto 20px;
  width: min(1120px, calc(100% - 28px));
  border: 1px solid #805b00;
  border-radius: 10px;
  background: #3d2e08;
  color: #ffd983;
  padding: 10px 12px;
}

.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(8, 23, 42, 0.96);
  color: #f0f6ff;
  border: 1px solid #355986;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ui-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.casino-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 45;
}

.casino-modal.open {
  display: block;
}

.casino-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 20, 0.75);
  backdrop-filter: blur(4px);
}

.casino-modal-dialog {
  position: relative;
  margin: min(12vh, 100px) auto 0;
  width: min(720px, calc(100% - 26px));
  border-radius: 18px;
  border: 1px solid #355887;
  background: radial-gradient(circle at top, #1b3762 0%, #0f223f 45%, #0b1a31 100%);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.casino-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #4d678f;
  background: #173156;
  color: #dce9ff;
  font-size: 1.05rem;
  cursor: pointer;
}

.casino-modal-kicker {
  margin: 0 0 4px;
  color: #8dffbf;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.casino-modal-dialog h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.casino-modal-subline {
  margin: 8px 0 14px;
  color: #a8bee2;
  line-height: 1.45;
  font-size: 0.92rem;
}

.casino-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.casino-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
  border: 1px solid #38567f;
  padding: 12px;
  min-height: 192px;
  background: linear-gradient(180deg, #122846 0%, #0f223c 100%);
  color: #eef5ff;
  overflow: hidden;
  gap: 12px;
}

.casino-card-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
}

.casino-brand-wrap {
  min-height: 92px;
  border-radius: 12px;
  border: 1px solid #29486f;
  background: linear-gradient(180deg, #203c63 0%, #162d4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.casino-brand-logo {
  width: 100%;
  max-width: 78px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  display: block;
}

.casino-card-copy {
  min-width: 0;
}

.casino-name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ecf4ff;
}

.casino-tagline {
  margin: 0;
  color: #b8cae7;
  font-size: 0.86rem;
  line-height: 1.35;
}

.casino-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.casino-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.casino-action-register {
  border-color: #2ad770;
  color: #062113;
  background: linear-gradient(180deg, #35e67c 0%, #21a758 100%);
}

.casino-action-login {
  border-color: #4c6994;
  color: #e4f0ff;
  background: linear-gradient(180deg, #2e4a74 0%, #1f3353 100%);
}

.casino-action-btn:hover {
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  :root {
    --mobile-shell-width: 100%;
  }

  .brand-logo {
    height: 34px;
  }

  .header-cta {
    padding: 0 10px;
    font-size: 0.79rem;
    height: 34px;
  }

  .provider-tab {
    width: 96px;
    min-width: 96px;
    height: 40px;
    padding: 3px 5px;
  }

  .provider-slider {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .provider-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .provider-tab-logo {
    width: 62px;
    height: 20px;
  }

  .casino-card {
    min-height: 172px;
  }

  .casino-card-head {
    grid-template-columns: 74px 1fr;
    gap: 10px;
  }

  .casino-brand-wrap {
    min-height: 74px;
  }

  .casino-brand-logo {
    max-width: 62px;
    max-height: 62px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  body:not(.is-embed) .container,
  body.is-embed .container {
    width: min(1240px, calc(100% - 36px));
  }

  .panel {
    padding: 16px;
  }
}
