/* Colors and font from igaming-platform-frontend tailwind.config.js (origin/main) */
:root {
  --bg: #0c0d12;
  --card: #151822;
  --card-mid: #1f2432;
  --card-light: #363d54;
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.67);
  --text-3: rgba(255, 255, 255, 0.5);
  --stroke: rgba(198, 208, 255, 0.1);
  --hairline: rgba(198, 208, 255, 0.2);
  --indigo: #5868e1;
  --indigo-dark: #30397b;
  --cyan: #49b5f5;
  --gold: #faaf33;
  --radius: 16px;
  --content: 1272px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geologica", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
}
.btn-join {
  background: linear-gradient(to right, var(--indigo-dark), var(--indigo));
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 1px rgba(160, 200, 255, 0.32), 0 0 16px rgba(84, 99, 215, 0.34);
}
.btn-join:hover { filter: brightness(1.12); }
.btn-ghost { padding: 0 8px; }
.btn-ghost:hover { color: var(--cyan); }
.btn-lg { height: 52px; padding: 0 32px; font-size: 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo img { height: 30px; width: auto; }
.mainnav { display: flex; gap: 22px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--text); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  min-width: 240px; border-radius: 999px; background: var(--card-mid); color: var(--text-3); font-size: 14px;
}
.search svg { flex: none; }
.subnav { display: none; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: 999px; background: var(--card-mid);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--card-light); }
.lang-menu summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lang-menu img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; flex: none; }
.lang-menu .chev { color: var(--text-3); transition: transform 0.2s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--hairline);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); display: grid; gap: 2px;
}
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.lang-list a:hover { background: var(--card-mid); color: var(--text); }
.lang-list a[aria-current="true"] { background: var(--card-mid); color: var(--text); font-weight: 600; }

/* Sections */
main { padding-bottom: 48px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.section-head .more { margin-left: auto; font-size: 14px; color: var(--text-2); }
.section-head .more:hover { color: var(--text); }
.arrows { display: flex; gap: 6px; }
.arrows button {
  width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--card-mid); color: var(--text);
}
.page-title { margin: 28px 0 0; font-size: 28px; font-weight: 600; }

/* Hero */
.hero { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 20px; scrollbar-width: none; }
.hero::-webkit-scrollbar { display: none; }
.slide {
  position: relative; scroll-snap-align: start; border-radius: 20px; overflow: hidden;
  min-height: 300px; display: flex; align-items: center; background: var(--card) center/cover no-repeat;
}
.slide-1 { background-image: url(/assets/img/hero-welcome.webp); }
.slide-2 { background-image: url(/assets/img/hero-rewards.webp); }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,18,0.85) 0%, rgba(12,13,18,0.35) 55%, rgba(12,13,18,0) 100%); }
.slide-body { position: relative; padding: 32px 40px; max-width: 560px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.14); font-size: 13px; font-weight: 500; }
.slide h2 { margin: 12px 0 6px; font-size: 42px; line-height: 1.1; font-weight: 700; }
.slide p { margin: 0 0 22px; font-size: 18px; font-weight: 500; color: var(--text); }

/* Pills */
.pills { display: flex; gap: 8px; overflow-x: auto; margin-top: 24px; padding-bottom: 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 12px; background: var(--card-mid); border: 1px solid var(--stroke); font-size: 14px; font-weight: 500;
}
.pill:hover { background: var(--card-light); }
.pill { gap: 8px; }
.pill img { width: 24px; height: 24px; flex: none; object-fit: contain; }

/* Game rows and grid */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 7 * 12px) / 8); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.game { scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 408 / 546; transition: transform .15s; }
.game img { width: 100%; height: 100%; object-fit: cover; }
.game:hover { transform: translateY(-3px); }
.grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }

.providers { grid-auto-columns: calc((100% - 9 * 12px) / 10); }
.provider { height: 72px; border-radius: 12px; background: var(--card); border: 1px solid var(--stroke); display: flex; align-items: center; justify-content: center; padding: 14px; }
.provider img { max-height: 40px; width: auto; }

/* Promotions */
.promos { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.promo { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--stroke); scroll-snap-align: start; }
.promo-img { aspect-ratio: 16 / 10; background: var(--card-mid); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.promo-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: rgba(250,175,51,0.16); color: var(--gold); font-size: 12px; font-weight: 600; }
.promo-title { font-weight: 600; font-size: 16px; }
.promo-sub { color: var(--text-2); font-size: 14px; }
.promo-more { margin-top: auto; padding-top: 8px; color: var(--cyan); font-size: 14px; font-weight: 500; }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-top: 24px; }
.legal-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; align-self: start; }
.legal-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.legal-nav a:hover { background: var(--card); color: var(--text); }
.legal-nav a[aria-current="page"] { background: var(--card-mid); color: var(--text); }
.tc { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px 28px; color: var(--text-2); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.tc h2 { margin: 0 0 8px; color: var(--text); font-size: 22px; }
.tc h3 { margin: 26px 0 8px; color: var(--text); font-size: 16px; }
.tc ul { margin: 6px 0 10px; padding-left: 20px; }
.tc b { color: var(--text); }
.tc a { color: var(--cyan); }

/* Homepage SEO copy */
.seo { margin: 48px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.seo h1 { margin: 0 0 14px; color: var(--text); font-size: 30px; line-height: 1.25; font-weight: 700; }
.seo h2 { margin: 40px 0 12px; color: var(--text); font-size: 22px; line-height: 1.3; font-weight: 600; }
.seo p { margin: 0 0 14px; }
.seo strong { color: var(--text); font-weight: 600; }
.seo ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.seo ul li { padding: 6px 14px; border-radius: 999px; background: var(--card-mid); border: 1px solid var(--stroke); font-size: 14px; }

.table-wrap { margin: 6px 0 18px; overflow-x: auto; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--card); }
.dz-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.dz-table th { text-align: left; padding: 12px 16px; background: var(--card-mid); color: var(--text); font-weight: 600; white-space: nowrap; }
.dz-table td { padding: 12px 16px; border-top: 1px solid var(--stroke); color: var(--text-2); vertical-align: top; }
.dz-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.dz-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.faq { display: grid; gap: 10px; margin-top: 4px; }
.faq-item { border: 1px solid var(--stroke); border-radius: 14px; background: var(--card); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; flex: 1; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.4; }
.faq-item summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-mid); color: var(--cyan); font-size: 18px; font-weight: 600; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover h3 { color: var(--cyan); }
.faq-item summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.faq-a { padding: 0 18px 16px; }
.faq-a p { margin: 0; }

/* Footer */
.footer { margin-top: 56px; border-top: 1px solid var(--stroke); background: #0e1016; padding: 36px 0 28px; color: var(--text-2); font-size: 14px; }
.footer-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--stroke); }
.footer-top .logo img { height: 28px; }
.footer-top .spacer { flex: 1; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-switch a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--stroke); }
.lang-switch a[aria-current="true"] { background: var(--card-mid); color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 28px 0; }
.footer-cols h3 { margin: 0 0 12px; color: var(--text); font-size: 15px; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a:hover { color: var(--text); }
.footer-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--stroke); }
.footer-row h3 { margin: 0; font-size: 14px; color: var(--text); font-weight: 600; }
.payments { display: flex; flex-wrap: wrap; gap: 10px; }
.payments span { height: 34px; padding: 0 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--stroke); display: flex; align-items: center; }
.payments img { height: 18px; width: auto; }
.age { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--text-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--text); }

/* ?cta=1 helper: shows every CTA id */
.cta-debug { outline: 2px dashed var(--gold) !important; outline-offset: 2px; position: relative; }
.cta-debug::after {
  content: attr(data-cta-label); position: absolute; left: 0; top: 0; z-index: 5;
  background: var(--gold); color: #000; font: 600 10px/1.4 monospace; padding: 1px 4px; white-space: nowrap; pointer-events: none;
}

/* Tablet */
@media (max-width: 1100px) {
  .row { grid-auto-columns: calc((100% - 5 * 12px) / 6); }
  .grid { grid-template-columns: repeat(6, 1fr); }
  .providers { grid-auto-columns: calc((100% - 5 * 12px) / 6); }
  .promos { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .search { min-width: 0; }
  .search span { display: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* Phone */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .header .wrap { height: 56px; gap: 8px; }
  .logo img { height: 18px; }
  .mainnav, .search { display: none; }
  .header-right { gap: 4px; }
  .btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .btn-ghost { padding: 0 4px; }
  .header .logo { flex: none; }
  .lang-menu summary { height: 36px; width: 36px; padding: 0; justify-content: center; }
  .lang-menu .lang-code, .lang-menu .chev { display: none; }
  .lang-list { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; grid-template-columns: 1fr 1fr; }
  .subnav { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card-mid); font-size: 13px; font-weight: 500; color: var(--text-2); }
  .subnav a[aria-current="page"] { color: var(--text); background: var(--card-light); }
  .hero { margin-top: 12px; grid-auto-columns: 100%; gap: 10px; }
  .slide { min-height: 0; aspect-ratio: 4 / 3; align-items: flex-end; }
  .slide::before { background: linear-gradient(0deg, rgba(12,13,18,0.92) 0%, rgba(12,13,18,0.4) 60%, rgba(12,13,18,0) 100%); }
  .slide-body { padding: 18px; }
  .slide h2 { font-size: 26px; margin-top: 8px; }
  .slide p { font-size: 14px; margin-bottom: 14px; }
  .btn-lg { height: 44px; font-size: 16px; padding: 0 24px; }
  .section { margin-top: 26px; }
  .section-head h2 { font-size: 18px; }
  .arrows { display: none; }
  .row { grid-auto-columns: calc((100% - 2 * 10px) / 3.3); gap: 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .providers { grid-auto-columns: 40%; }
  .promos { grid-auto-columns: 78%; }
  .promo-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; margin-top: 18px; }
  .legal { grid-template-columns: 1fr; gap: 16px; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .legal-nav a { flex: none; background: var(--card); }
  .tc { padding: 18px 16px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .seo { margin-top: 36px; font-size: 14px; }
  .seo h1 { font-size: 24px; }
  .seo h2 { font-size: 19px; margin-top: 32px; }
  /* Tables become one card per row, each cell labelled with its column name */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .dz-table, .dz-table tbody, .dz-table tr, .dz-table td { display: block; width: 100%; }
  .dz-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dz-table tr { margin-bottom: 10px; border: 1px solid var(--stroke); border-radius: 14px; background: var(--card); overflow: hidden; }
  .dz-table tbody tr:nth-child(even) td { background: none; }
  .dz-table td { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; text-align: right; white-space: normal; }
  .dz-table td:first-child { border-top: 0; background: var(--card-mid); }
  .dz-table tbody tr:nth-child(even) td:first-child { background: var(--card-mid); }
  .dz-table td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--text-3); font-weight: 500; }
  .faq-item summary { padding: 14px 14px; }
  .faq-item summary h3 { font-size: 15px; }
  .faq-a { padding: 0 14px 14px; }
}
