*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.mg-root {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #0b0f1a;
  color: #e5e7eb;
  min-height: 100dvh;
  overflow-x: hidden;
}

.mg-skip {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: #f97316;
  color: #0b0f1a;
  font-weight: 700;
}

.mg-skip:focus {
  left: 1rem;
  top: 1rem;
}

.mg-frame {
  max-width: 1440px;
  margin: 0 auto;
}

.mg-mast {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(17, 24, 39, 0.92);
  position: sticky;
  top: 0;
  z-index: 45;
  backdrop-filter: blur(12px);
}

.mg-mast__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mg-lockup {
  font-family: system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #facc15;
}

.mg-lockup--dim {
  color: #cbd5e1;
}

.mg-mast__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.mg-mast__links a {
  font-family: system-ui, sans-serif;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
}

.mg-mast__links a:hover,
.mg-mast__links a:focus-visible {
  color: #22d3ee;
  outline: none;
}

.mg-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 14px;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(125deg, #f97316, #db2777, #6d28d9);
  box-shadow: 0 0 28px rgba(109, 40, 217, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-action:hover,
.mg-action:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.45);
  outline: none;
}

.mg-action--xl {
  padding: 0.85rem 1.9rem;
  font-size: 1.05rem;
}

.mg-cover {
  position: relative;
  width: 100%;
}

.mg-cover__img {
  display: block;
  width: 100%;
  height: auto;
}

.mg-cover__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(5, 7, 13, 0.2) 0%, rgba(11, 15, 26, 0.65) 100%);
  pointer-events: none;
}

.mg-cover__box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.mg-panel {
  max-width: 580px;
  padding: 1.75rem 2rem;
  border-radius: 16px;
  backdrop-filter: blur(18px);
  background: rgba(17, 24, 39, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: system-ui, sans-serif;
}

.mg-h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 3.8vw, 2rem);
  line-height: 1.2;
  color: #fff;
}

.mg-h2 {
  margin: 0 0 0.65rem;
  font-family: system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  color: #facc15;
}

.mg-dek,
.mg-lead {
  margin: 0 0 1rem;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #cbd5e1;
}

.mg-split {
  display: grid;
  gap: 2rem;
  padding: 4rem 1.25rem;
  align-items: start;
}

.mg-roller {
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.mg-roller__list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mg-roller__list li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.mg-card {
  display: block;
  width: 136px;
  text-decoration: none;
  color: #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(109, 40, 217, 0.3);
  font-family: system-ui, sans-serif;
  transition: transform 0.2s ease;
}

.mg-card:hover,
.mg-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.mg-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.mg-card__lbl {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.78rem;
  text-align: center;
  color: #cbd5e1;
}

.mg-notebox {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(109, 40, 217, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-family: system-ui, sans-serif;
}

.mg-notebox__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: #22d3ee;
}

.mg-notebox__txt {
  margin: 0;
  color: #94a3b8;
  line-height: 1.5;
}

.mg-block {
  padding: 0 1.25rem 4.5rem;
}

.mg-block__in {
  max-width: 900px;
}

.mg-block--faq {
  padding-bottom: 3rem;
}

.mg-twrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mg-tbl {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  background: rgba(17, 24, 39, 0.65);
}

.mg-tbl caption {
  caption-side: top;
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 800;
  color: #22d3ee;
}

.mg-tbl th,
.mg-tbl td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.mg-tbl th {
  background: rgba(249, 115, 22, 0.14);
  color: #fff;
}

.mg-foot {
  padding: 2.5rem 1.25rem;
  background: linear-gradient(0deg, #05070d, #111827);
  border-top: 1px solid rgba(250, 204, 21, 0.12);
}

.mg-foot__in {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.mg-paylogos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.mg-paylogos img {
  height: 28px;
  width: auto;
}

.mg-foot__tiny {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: #64748b;
}

.mg-up {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(200deg, #6d28d9, #f97316);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mg-up.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .mg-split {
    grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr);
  }
}

@media (max-width: 767px) {
  .mg-frame,
  #mg-root-main {
    width: 100%;
  }

  .mg-root {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }

  .mg-mast {
    padding: 0.75rem 0.9rem;
  }

  .mg-mast__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem 0.85rem;
    align-items: center;
  }

  .mg-mast__links {
    gap: 0.75rem;
    justify-content: flex-end;
  }

  .mg-mast__links a {
    font-size: 0.88rem;
  }

  .mg-action {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.35);
  }

  .mg-mast .mg-action {
    grid-column: 1 / -1;
  }

  .mg-cover .mg-action {
    width: auto;
    min-width: 180px;
  }

  .mg-cover__box {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .mg-tbl {
    min-width: 0;
  }

  .mg-tbl tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
  }

  .mg-tbl td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mg-tbl td:last-child {
    border-bottom: none;
  }

  .mg-tbl td::before {
    font-weight: 800;
    color: #facc15;
    flex: 0 0 44%;
    max-width: 44%;
  }

  .mg-twrap {
    overflow-x: visible;
  }

  .mg-tbl--bonus tr:first-child,
  .mg-tbl--payments tr:first-child {
    display: none;
  }

  .mg-tbl--bonus td:nth-child(1)::before {
    content: "Részlet";
  }

  .mg-tbl--bonus td:nth-child(2)::before {
    content: "Sportbónusz";
  }

  .mg-tbl--bonus td:nth-child(3)::before {
    content: "Kaszinóbónusz";
  }

  .mg-tbl--payments td:nth-child(1)::before {
    content: "Fizetési mód";
  }

  .mg-tbl--payments td:nth-child(2)::before {
    content: "Min befizetés";
  }

  .mg-tbl--payments td:nth-child(3)::before {
    content: "Max befizetés";
  }

  .mg-panel {
    max-width: none;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.62);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .mg-h1 {
    font-size: clamp(1.1rem, 6vw, 1.4rem);
    line-height: 1.25;
  }

  .mg-dek,
  .mg-lead,
  .mg-block p,
  .mg-block li {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .mg-block__in {
    max-width: 100%;
  }

  .mg-block h2,
  .mg-block h3 {
    line-height: 1.3;
  }

  .mg-split {
    gap: 1rem;
    padding: 2rem 0.9rem;
  }

  .mg-block {
    padding: 0 0.9rem 2.5rem;
  }

  .mg-card {
    width: 118px;
    border-radius: 12px;
  }

  .mg-card__lbl {
    font-size: 0.72rem;
    padding: 0.42rem 0.4rem;
  }

  .mg-notebox {
    padding: 1rem;
    border-radius: 12px;
  }

  .mg-up {
    width: 44px;
    height: 44px;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .mg-lockup {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .mg-h2 {
    font-size: 1.2rem;
  }

  .mg-tbl td {
    padding: 0.58rem 0.8rem;
    font-size: 0.9rem;
    align-items: flex-start;
  }

  .mg-tbl td::before {
    font-size: 0.82rem;
    max-width: 48%;
  }

  .mg-foot {
    padding: 2rem 0.9rem;
  }

  .mg-paylogos {
    gap: 0.6rem;
  }

  .mg-paylogos img {
    height: 24px;
  }
}
