/* Slottica – single stylesheet, mobile-first, fast */
:root {
  --space: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --container: min(100% - var(--space) * 2, 1200px);
  --header-h: 56px;
  --blue: #1245ff;
  --green: #2ec417;
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-elevated: #e6ecff;
  --text: #111827;
  --text-muted: #52575c;
  --accent: var(--blue);
  --accent-hover: #365dff;
  --cta: var(--green);
  --cta-hover: #35d322;
  --border: rgba(15,23,42,.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
ul, ol { padding: 0; margin: 0; list-style: none; }
body, h1, h2, h3, p, figure { margin: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space); }

/* Header */
.header {
  position: sticky; top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(135deg, #b2c3ff 0%, #6385ff 30%, #1044ff 100%);
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--space);
  max-width: var(--container);
  margin-inline: auto;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 32px; width: auto; }
.header__nav { display: none; }
.header__nav-list {
  display: flex;
  gap: 1.25rem;
}
.header__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.header__nav a:hover {
  text-decoration: underline;
}
.nav-toggle {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__bar {
  position: absolute;
  left: 50%;
  margin-left: -11px;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__bar:nth-child(1) { top: 50%; margin-top: -7px; }
.nav-toggle__bar:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-toggle__bar:nth-child(3) { top: 50%; margin-top: 5px; }
.header__actions {
  display: none;
  align-items: center;
  gap: var(--space);
}
.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.header__btn--login {
  background: rgba(255,255,255,.95);
  color: var(--blue);
  border: 1px solid rgba(255,255,255,.9);
}
.header__btn--login:hover {
  background: #ffffff;
  color: #0a35d4;
}
.header__btn--reg { background: var(--cta); color: #fff; }
.header__btn--reg:hover { background: var(--cta-hover); }

/* Mobile nav */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #101321;
  padding: var(--header-h) var(--space) var(--space);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--transition), opacity var(--transition);
}
.nav-panel.is-open { visibility: visible; opacity: 1; }
.nav-panel__logo { margin-bottom: var(--space-lg); }
.nav-panel__logo img { height: 36px; }
.nav-panel__links { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-panel__links a {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
}
.nav-panel__links a:hover { background: rgba(148,163,253,.25); color: #ffffff; }
.nav-panel__btns { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: 0.75rem; }
.nav-panel__btns .header__btn { width: 100%; }
.body-lock { overflow: hidden; }

/* Hero slider – constrained to content width on desktop, aligned with games block */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg-card);
  max-width: var(--container);
  margin: 0 auto;
}
.hero__track {
  display: flex;
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.hero__slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 200px;
}
.hero__slide picture,
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide img { min-height: 200px; }
.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space);
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff;
}
.hero__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.hero__desc { font-size: 0.875rem; opacity: .9; }
.hero__cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.hero__cta:hover { background: var(--accent-hover); }
.hero__dots {
  position: absolute;
  bottom: var(--space);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.hero__dot.is-active { background: var(--accent); transform: scale(1.2); }
.hero__prev,
.hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  color: #fff;
  border-radius: 50%;
  transition: background var(--transition);
}
.hero__prev:hover, .hero__next:hover { background: rgba(0,0,0,.8); }
.hero__prev { left: var(--space); }
.hero__next { right: var(--space); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .header__inner { justify-content: flex-start; gap: var(--space-lg); }
  .header__nav { display: block; margin-left: var(--space); }
  .header__actions { display: flex; margin-left: auto; }
  .hero__slide { min-height: 220px; }
  .hero__slide img { min-height: 220px; }
  .hero__caption { padding: var(--space-lg); }
  .hero__title { font-size: 1.75rem; }
  .hero__desc { font-size: 1rem; }
  .hero__cta {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
  }
  .hero__prev, .hero__next { display: flex; }
}

@media (min-width: 1024px) {
  .hero__slide { min-height: 260px; }
  .hero__slide img { min-height: 260px; }
}

@media (max-width: 767.98px) {
  .hero__caption {
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.9) 70%);
  }
  .hero__title,
  .hero__desc {
    text-shadow: 0 2px 4px rgba(0,0,0,.7);
  }
  .hero__dots {
    bottom: 0.4rem;
  }
}

/* Main content */
.main { padding-block: var(--space-lg); }
.main h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: var(--space);
}
.main .lead {
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Games block */
.games-sec { margin-top: var(--space-xl); }
.games-sec__title { font-size: 1.5rem; margin-bottom: var(--space); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space);
}
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.game-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.9));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.game-card:hover .game-card__overlay { opacity: 1; }
.game-card__btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}
.game-card__btn--play { background: var(--cta); color: #fff; }
.game-card__btn--play:hover { background: var(--cta-hover); }
.game-card__btn--demo {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.7);
  color: #ffffff;
}
.game-card__btn--demo:hover {
  background: rgba(255,255,255,.22);
}
.game-card__name {
  padding: 0.5rem var(--space);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 600px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Page content */
.page-content {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.page-content h2:first-child {
  margin-top: 0;
}
.page-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.page-content p:last-child { margin-bottom: 0; }
.page-content .content-notice {
  margin-top: var(--space-lg);
  padding: var(--space);
  background: rgba(18, 69, 255, 0.06);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

/* Content lists */
.content-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.5rem;
  list-style: none;
}
.content-list li {
  position: relative;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
  line-height: 1.55;
}
.content-list li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
@media (min-width: 768px) {
  .content-list { padding-left: 1.75rem; }
  .content-list li::before { left: -1.25rem; }
}

/* Content table */
.table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.content-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.content-table thead {
  background: var(--blue);
  color: #fff;
}
.content-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.content-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.content-table tbody tr:nth-child(even) {
  background: rgba(18, 69, 255, 0.04);
}
.content-table tbody tr:last-child td {
  border-bottom: none;
}
.content-table tbody tr:hover {
  background: rgba(18, 69, 255, 0.08);
}
@media (max-width: 767.98px) {
  .content-table th,
  .content-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Footer */
.footer {
  margin-top: var(--space-xl);
  background: #101321;
  border-top: 1px solid rgba(15,23,42,.7);
  padding-block: var(--space-lg);
  color: #e5e7eb;
}
.footer__top {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__logo img { height: 36px; margin-bottom: 0.5rem; }
.footer__logo-caption { font-size: 0.8rem; color: rgba(229,231,235,.7); }
.footer__badges { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.footer__badges img { height: 36px; width: auto; opacity: .8; }
.footer__links-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.footer__links-title::after {
  content: "+";
  float: right;
  font-weight: 400;
}
.footer__links-title.is-open::after { content: "−"; }
.footer__links { display: none; }
.footer__links.is-open { display: block; }
.footer__links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: rgba(229,231,235,.75);
}
.footer__links a:hover { color: #ffffff; }
.footer__carousel-wrap { margin: var(--space-lg) 0; overflow: hidden; }
.footer__carousel-title { font-size: 0.9rem; color: rgba(229,231,235,.7); margin-bottom: 0.75rem; text-align: center; }
.footer__carousel {
  display: flex;
  gap: var(--space);
  animation: scroll 30s linear infinite;
  width: max-content;
}
.footer__carousel img { height: 40px; width: auto; object-fit: contain; flex-shrink: 0; }
.footer__carousel--providers img { height: 44px; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.footer__legal {
  font-size: 0.75rem;
  color: rgba(229,231,235,.7);
  line-height: 1.6;
  margin-top: var(--space-lg);
  padding-top: var(--space);
  border-top: 1px solid var(--border);
}
.footer__copyright { font-size: 0.75rem; color: rgba(229,231,235,.7); margin-top: 0.5rem; }

@media (min-width: 768px) {
  .footer__top { grid-template-columns: auto 1fr 1fr 1fr; align-items: start; }
  .footer__links-title { cursor: default; }
  .footer__links-title::after { display: none; }
  .footer__links { display: block; }
  body { padding-bottom: 0; }
}

/* Mobile bottom CTA bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.5rem var(--space);
  background: linear-gradient(135deg, #b2c3ff 0%, #6385ff 30%, #1044ff 100%);
  display: flex;
  gap: var(--space);
}
.mobile-cta__btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,.7);
  color: #ffffff;
}
.mobile-cta__btn--primary {
  background: #ffffff;
  color: #1044ff;
  border-color: transparent;
}
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}
