/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #1a1534;
  --bg-soft: #231b46;
  --bg-card: #2a2352;
  --bg-chip: #332a60;
  --accent: #e2f538;
  --accent-2: #e2f110;
  --text: #f4f3ff;
  --muted: #b8b3e0;
  --line: #3a2f6a;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% -200px, #2b2356 0%, rgba(43, 35, 86, 0) 60%), var(--bg);
  line-height: 1.55
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 14, 50, .7);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s ease
}

.topbar.shadow {
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35)
}

.nav {
  display: flex;
  align-items: center;
  padding: 14px 15px
}

.brand {
  display: flex;
  align-items: center;
  gap: 1px;
  font-weight: 900;
  letter-spacing: .4px
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent)
}

.brand span {
  color: var(--accent)
}

.navlinks {
  display: flex;
  gap: 16px;
  margin-left: 24px;
  flex-wrap: wrap
}

.navlinks a {
  color: var(--text);
  opacity: .85;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  position: relative
}

.navlinks a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s
}

.navlinks a:hover {
  opacity: 1
}

.navlinks a:hover:after {
  width: 100%
}

.rightnav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center
}

.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-chip);
  color: #fff
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex
}

/* Burger */
.burger {
    display: none;          /* або inline-grid */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;                  /* зона для кліку */
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: white;
}
.burger .icon {
    width: 20px;
    height: 20px;
    pointer-events: none; /* Щоб кліки проходили до кнопки, а не до SVG */
}
.mobile {
  display: none;
}

@media (max-width: 920px) {
  .navlinks {
    display: none
  }

  .burger {
    display: inline-grid;
    place-items: center
  }

  .mobile {
    display: none; /* завжди сховане за замовчуванням */
    position: absolute;
    top: 60px;
    left: 16px;   /* відступ зліва */
    right: 16px;  /* відступ справа */
    background: #1b1540;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px;
    z-index: 120;
}

  .mobile a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none
  }

  .mobile a:hover {
    background: rgba(255, 255, 255, .06)
  }

  .mobile.show {
    display: block;
}
}

/* Hero */
.hero {
  background: radial-gradient(900px 350px at 60px -120px, rgba(87, 66, 190, .35), rgba(0, 0, 0, 0)), linear-gradient(180deg, #1c1643 0%, #19133c 100%);
  border-bottom: 1px solid var(--line)
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
  align-items: center;
  padding: 52px 0 66px
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 10px
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted)
}

.buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .2px;
  background: var(--accent);
  color: #042d26;
  box-shadow: 0 8px 30px rgba(56, 245, 190, .25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(0);
  transition: transform .15s, box-shadow .2s
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(56, 245, 190, .35)
}

.btn.secondary {
  background: transparent;
  outline: 2px solid var(--accent);
  color: var(--text);
  box-shadow: none
}

.hero .slot {
  width: 100%;
  aspect-ratio: 1/.9;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .15)), url('/assets/hero.webp') center/cover no-repeat;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
  border: 1px solid rgba(255, 255, 255, .05)
}

.note {
  margin: 22px 0;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px
}

/* Rows */
.section-title {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--accent)
}

.list {
  display: grid;
  gap: 14px
}

.row {
  display: grid;
  grid-template-columns: 56px 1fr 180px 120px;
  align-items: center;
  gap: 40px;
  background: var(--bg-card);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .05);
  transition: transform .1s
}

.row:hover {
  transform: translateY(-1px)
}

.num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb55f, #ff8b36);
  color: #281b3f;
  font-weight: 900
}

.brandcol .name {
  font-size: 16px;
  font-weight: 900
}

.meta {
  color: var(--muted);
  font-size: 13px
}

.rating {
  font-weight: 900;
  color: #c2ffd7
}

.cta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end
}

.cta a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: opacity .15s
}

.cta .go {
  background: var(--accent);
  color: #062b23
}

.cta .view {
  background: transparent;
  outline: 1px solid rgba(255, 255, 255, .14);
  color: #fff
}

.cta a:hover {
  opacity: .9
}

/* Key-values */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.kv {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  overflow: hidden
}

.kv .k {
  background: #271f4f;
  padding: 12px 14px;
  color: var(--muted)
}

.kv .v {
  background: #201a41;
  padding: 12px 14px
}

/* Table */
.table {
  margin-top: 26px;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  vertical-align: top
}

.table th {
  color: var(--accent)
}

.table tr:hover td {
  background: rgba(255, 255, 255, .03)
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #19133c 0%, #171234 100%);
  color: var(--muted);
  font-size: 14px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 10px
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  font-size: 14px
}

.footer-grid a:hover {
  color: #fff
}

.copy {
  margin-top: 18px;
  text-align: center;
  color: #8e87bf;
  font-size: 13px
}


.btn.small {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
}

/* Back to top */
.backtotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-chip);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  opacity: .85;
  transition: transform .15s, opacity .2s
}

.backtotop:hover {
  transform: translateY(-2px);
  opacity: 1
}

.backtotop.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px)
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .row {
    grid-template-columns: 48px 1fr;
    grid-auto-rows: auto
  }

  .cta {
    justify-content: flex-start;
    margin-top: 8px
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* ===== Mobile refinements ===== */
:root {
  --sp: 16px;
}
/*===
.container {
  padding: 0 var(--sp)
}
=== */
/* Make CTA buttons full-width on tiny screens */
@media (max-width: 540px) {
  .buttons {
    gap: 10px
  }

  .btn,
  .btn.secondary {
    width: 100%;
    justify-content: center
  }

  .hero h1 {
    font-size: 28px
  }

  .hero p {
    font-size: 14px
  }
}

/* Row (casino list) -> vertical cards with perfect alignment */
@media (max-width: 860px) {
  .row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "num name"
      "num meta"
      "num rating"
      "num cta";
    align-items: start;
    gap: 10px 12px;
  }

  .row .num {
    grid-area: num
  }

  .row .brandcol {
    grid-area: name
  }

  .row .brandcol .meta {
    grid-area: meta
  }

  .row .rating {
    grid-area: rating
  }

  .row .cta {
    grid-area: cta;
    justify-content: flex-start
  }

  .brandcol .name {
    margin-top: 2px
  }
}

/* Key-values grid: 2 cols -> 1 col for small screens */
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr
  }

  .kv {
    grid-template-columns: 160px 1fr
  }
}

@media (max-width: 480px) {
  .kv {
    grid-template-columns: 120px 1fr
  }

  .kv .k {
    font-size: 13px
  }

  .kv .v {
    font-size: 13px
  }
}

/* Tables: make horizontally scrollable with sticky headers */
.table {
  margin-top: 20px
}

.table table {
  min-width: 760px
}

.table {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px
}

.table::-webkit-scrollbar {
  height: 10px
}

.table::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 999px
}

/* Footer: stack columns neatly, align left with spacing */
@media (max-width: 960px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 560px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px
  }
}

/* Mobile navigation spacing */
#mobileNav {
  left: 16px;
  right: 16px
}

#mobileNav a {
  font-weight: 700
}

/* Back-to-top button comfortable tapping area */
.backtotop {
  width: 48px;
  height: 48px
}