/* Google Font loaded via <link> in HTML <head> */

:root {
  --bg-primary: #151516;
  --bg-secondary: #212123;
  --bg-header: #1e1e20;
  --accent: #3dd162;
  --accent-hover: #2db84e;
  --text-primary: #ffffff;
  --text-secondary: #9a9a9a;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-toggle,
#navToggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a1a1c 0%, #1e2a1e 50%, #151516 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem 3rem calc(50% - 450px);
  padding-right: calc(50% - 450px);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 25%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(61, 209, 98, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner__left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1;
  max-width: 380px;
}

.hero-banner__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-banner__sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-banner__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-banner__payments {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-banner__payments span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-banner__right {
  z-index: 1;
  flex-shrink: 0;
}

.hero-banner__amount {
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #c8ccd8 18%,
    #e8eaf2 32%,
    #6e7488 48%,
    #a8acc0 62%,
    #d8dae8 76%,
    #f0f2ff 88%,
    #c0c4d8 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 4px 24px rgba(120, 140, 255, 0.18));
}

.hero-banner__amount span {
  font-size: 3rem;
  font-weight: 900;
  margin-left: 0.2rem;
  vertical-align: super;
}

.popular-games {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: none;
  border: none;
  border-radius: 0;
}

.popular-games__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.popular-games__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.popular-games__nav {
  display: flex;
  gap: 0.4rem;
}

.popular-games__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.popular-games__btn:hover {
  background: var(--accent);
  color: #0a1f10;
  border-color: var(--accent);
}

.popular-games__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.popular-games__track::-webkit-scrollbar {
  display: none;
}

.popular-games__grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 160px;
  height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.game-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 3;
  background: var(--accent);
  color: #0a1f10;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.game-card:hover::after,
.live-card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 100%);
}

.game-card:hover .game-card__play-btn,
.game-card.tapped .game-card__play-btn,
.live-card:hover .game-card__play-btn,
.live-card.tapped .game-card__play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.game-card__badge--jackpot {
  background: var(--accent);
  color: #0a1f10;
}

.game-card__name {
  position: relative;
  z-index: 2;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  line-height: 1.3;
}

.live-block {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.live-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.live-block__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  border: none;
  padding: 0;
}

.live-slider {
  margin: 1.25rem 0;
}

.live-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.live-slider__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-slider__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.live-slider__track::-webkit-scrollbar {
  display: none;
}

.live-card {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-secondary);
}

.live-card:hover {
  transform: translateY(-3px);
}

.live-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  pointer-events: none;
}

.live-card__info {
  position: relative;
  z-index: 2;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-card__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  line-height: 1.2;
}

.live-card__provider {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .game-card {
    width: 130px;
    height: 180px;
  }

  .live-card {
    width: 220px;
    height: 138px;
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1.25rem;
    min-height: unset;
    position: relative;
    overflow: hidden;
  }

  .hero-banner__left {
    max-width: 100%;
    z-index: 2;
  }

  .hero-banner__title {
    font-size: 1.6rem;
  }

  .hero-banner__sub {
    font-size: 0.9rem;
  }

  .hero-banner__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-banner__right {
    position: absolute;
    right: -10px;
    bottom: -20px;
    opacity: 0.15;
    pointer-events: none;
  }

  .hero-banner__amount {
    font-size: 7rem;
  }
}

h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h2 {
  color: var(--accent);
  font-size: 1.6rem;
  border-left: 4px solid var(--accent);
  border-bottom: none;
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

main > h1 + * h2,
main > h2:first-of-type {
  margin-top: 1.5rem;
}

h3 {
  color: #e0e0e0;
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #c0c0c0;
}

section {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

strong {
  color: #e8e8e8;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid rgba(61, 209, 98, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(61, 209, 98, 0.1), 0 4px 24px rgba(0,0,0,0.3);
}

th {
  background: rgba(61, 209, 98, 0.15);
  color: var(--accent);
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(61, 209, 98, 0.3);
  border-right: 1px solid rgba(61, 209, 98, 0.15);
}

th:last-child {
  border-right: none;
}

td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  color: #c8c8c8;
}

td:last-child {
  border-right: none;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: rgba(61, 209, 98, 0.03);
}

tr:hover td {
  background: rgba(61, 209, 98, 0.06);
  color: #e8e8e8;
}

ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

ol li {
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  color: #c0c0c0;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.4rem;
  color: #c0c0c0;
}

footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

footer a {
  color: var(--accent);
}

.providers-section {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.provider-card {
  flex-shrink: 0;
  width: 190px;
  height: 80px;
  background: #1e1e20;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  transition: border-color 0.2s;
}

.provider-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.section-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-play {
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  white-space: normal;
  display: inline-block;
  background: var(--accent);
  color: #0a1f10;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.3s ease;
}

.btn-play:hover {
  background: var(--accent-hover);
  color: #0a1f10;
}

.btn-login {
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-login:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-header {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
  min-height: unset;
}

.nav-play-mobile {
  display: none;
}

.casino-logo {
  width: 120px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.site-logo a:hover {
  color: var(--accent);
}

.site-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
}

.review-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.review-card__header h3 {
  margin: 0;
  color: var(--accent);
}

.review-card__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-card__pros h4 {
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.review-card__cons h4 {
  color: #e63946;
  margin-bottom: 0.5rem;
}

.review-card__pros ul {
  list-style: none;
  padding-left: 0;
}

.review-card__pros ul li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.review-card__pros ul li::before {
  content: "✓ ";
  color: #22c55e;
}

.review-card__cons ul {
  list-style: none;
  padding-left: 0;
}

.review-card__cons ul li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.review-card__cons ul li::before {
  content: "✗ ";
  color: #e63946;
}

.review-card__footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: right;
}

.faq {
  margin: 2rem 0;
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.faq__item h3 {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  font-size: inherit;
  color: inherit;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq__question::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__question[aria-expanded="true"] {
  color: var(--accent);
}

.faq__question[aria-expanded="true"]::after {
  content: "−";
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer p {
  padding-bottom: 1rem;
  color: var(--text-secondary);
  opacity: 1;
}

@media (max-width: 768px) {
  .header-auth {
    display: none;
  }

  .nav-toggle,
  #navToggle {
    display: flex;
  }

  .nav-play-mobile {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem 1rem;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  nav ul li {
    min-height: 44px;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul.nav-open {
    display: flex;
    flex-direction: column;
  }

  main {
    padding: 1rem;
  }

  header {
    position: relative;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
  }

  li {
    font-size: 0.95rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  thead {
    display: none;
  }

  tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
  }

  td {
    display: block;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    word-break: break-word;
  }

  th {
    word-break: break-word;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .review-card__pros-cons {
    grid-template-columns: 1fr;
  }
}

.mobile-sticky-auth {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-auth {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-card, #0f2318);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  .mobile-sticky-auth a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  body {
    padding-bottom: 80px;
  }
}
