:root {
  --color-bg: #050505;
  --color-surface: #151515;
  --color-accent: #ffc100;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.melbet {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: inherit;
}


header.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: radial-gradient(circle at top, #111 0, #050505 60%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.header__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #444;
  color: var(--color-text);
  background: transparent;
  white-space: nowrap;
}

.header__btn--primary {
  background: var(--color-accent);
  color: #000;
  border-color: transparent;
  font-weight: 600;
}

.header__btn--ghost {
  background: transparent;
}

.header__icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.header__icon-btn img {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

.header__burger {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
}

.menu-overlay.is-open {
  display: block;
}

.menu-overlay__inner {
  height: 100%;
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
}

.menu-overlay__close {
  align-self: flex-end;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 22px;
  padding: 4px;
}

.menu-overlay__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-overlay__list a {
  font-size: 18px;
  text-decoration: none;
  color: var(--color-text);
}


main {
  padding: 0 12px 24px;
}

section {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: #ffcc00;
  color: #000;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  font-weight: 600;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}


.hero {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #2b2410 0, #050505 55%);
}

.hero h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

.hero p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}


.content--de {
  margin-top: 24px;
}

.content h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.content p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}


.content-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.content-table th,
.content-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #242424;
}

.content-table th {
  text-align: left;
  color: #fff;
  font-weight: 600;
}

.content-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}


.section {
  margin-top: 32px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.section__icon {
  width: 100%;
  overflow: hidden;
}

.section__icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
}

.section--app .section__icon img,
.section--bonus .section__icon img,
.section--registration .section__icon img {
  max-height: 280px;
}


.section__content h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.section__content p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}


.section--app {
  background: radial-gradient(circle at top left, #2b2640 0, #050515 55%);
}

.section--bonus {
  background: radial-gradient(circle at top, #5a1010 0, #180606 55%);
}

.section--registration {
  background: radial-gradient(circle at top left, #10302f 0, #050f10 55%);
}


.games__tabs {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.games__tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #333;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.tab.active {
  background: var(--color-accent);
  color: #000;
  border-color: transparent;
}


.games__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.games__grid--real {
  display: none;
}

.games--loaded .games__grid--skeleton {
  display: none;
}

.games--loaded .games__grid--real {
  display: grid;
}

.game-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card__thumb {
  position: relative;
}

.game-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.game-card__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-card__badge--top {
  background: linear-gradient(135deg, #ffc100, #ffdf6a);
  color: #000;
}

.game-card__badge--new {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
  color: #000;
}

.game-card__badge--live {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  color: #fff;
}

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card__title {
  font-size: 13px;
  margin: 0;
}

.game-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.game-card__provider,
.game-card__rtp {
  font-size: 11px;
  color: var(--color-text-muted);
}

.game-card__provider {
  max-width: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.skeleton {
  position: relative;
  overflow: hidden;
  background: #222;
  border-radius: 8px;
}

.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.3s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton--thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton--title {
  width: 70%;
  height: 12px;
  margin-top: 8px;
}

.skeleton--meta {
  width: 50%;
  height: 10px;
  margin-top: 6px;
}

.skeleton--button {
  width: 60px;
  height: 24px;
  margin-top: 10px;
  border-radius: 999px;
}


.providers {
  margin-top: 32px;
}

.providers__title {
  font-size: 18px;
  margin: 0 0 6px;
}

.providers__subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.providers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.providers__item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.providers__item img {
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.9;
}


.faq {
  margin-top: 32px;
}

.faq h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: 8px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "▾";
  font-size: 12px;
  margin-left: 8px;
}

.faq-item[open] summary::after {
  content: "▴";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}


.footer {
  margin-top: 32px;
  padding: 24px 16px 32px;
  background: #050505;
  border-top: 1px solid #222;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.footer__text {
  margin: 0;
}

.footer__title {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--color-text);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__list a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--color-accent);
}

.footer__payments {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__payments-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer__pill {
  border-radius: 999px;
  border: 1px solid #333;
  padding: 4px 10px;
  font-size: 11px;
}

.footer__bottom {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__rg,
.footer__copy {
  margin: 0;
}


@media (max-width: 480px) {
  .header__actions {
    gap: 6px;
  }

  .header__btn--ghost {
    display: none; 
  }

  .header__icon-btn {
    display: none; 
  }
}

@media (max-width: 360px) {
  .header__actions {
    display: none;
  }
}

@media (min-width: 768px) {
  main {
    max-width: 960px;
    margin: 0 auto 32px;
    padding-inline: 16px;
  }

  .games__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .providers__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .section {
    padding: 20px;
  }

  .section--app .section__icon img,
  .section--bonus .section__icon img,
  .section--registration .section__icon img {
    max-height: 260px;
  }
}

@media (min-width: 992px) {
  header.header {
    padding-inline: 32px;
  }

  .header__burger {
    display: none;
  }

  .menu-overlay {
    display: none !important;
  }

  .footer {
    padding-inline: 32px;
    font-size: 13px;
  }

  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__col--brand {
    max-width: 260px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
