/* -------------------------
   Base & Layout
-------------------------- */
:root {
  --gm-bg: #020b2a;
  --gm-bg-alt: #07123a;
  --gm-bg-accent: radial-gradient(circle at top left, #223d9c, #020b2a 55%);
  --gm-surface: #071735;
  --gm-surface-soft: #0d214a;
  --gm-surface-alt: #081939;
  --gm-border-subtle: rgba(255, 255, 255, 0.08);
  --gm-border-strong: rgba(255, 255, 255, 0.16);

  --gm-text-main: #f7f9ff;
  --gm-text-muted: #a4b2de;
  --gm-text-soft: #8a96c2;
  --gm-text-highlight: #ffd76b;

  --gm-primary: #ffcf32;
  --gm-primary-strong: #ffb800;
  --gm-primary-soft: rgba(255, 207, 50, 0.1);
  --gm-primary-dark: #c79100;
  --gm-accent: #2f7bff;
  --gm-danger: #ff4e6a;

  --gm-radius-lg: 24px;
  --gm-radius-md: 16px;
  --gm-radius-sm: 999px;
  --gm-radius-chip: 999px;

  --gm-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.6);
  --gm-shadow-hero: 0 32px 80px rgba(0, 0, 0, 0.75);

  --gm-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gm-header-height: 72px;
  --gm-content-max-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--gm-font-sans);
  background: radial-gradient(circle at top, #102767 0, #020b2a 45%);
  color: var(--gm-text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding-top: var(--gm-header-height);
  padding-bottom: 80px; /* space above sticky bar on mobile */
}

.gm-container {
  width: 100%;
  max-width: var(--gm-content-max-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.gm-section {
  padding: 40px 0;
}

.gm-section--accent {
  background: linear-gradient(135deg, #071d4a 0, #040f33 50%, #071d4a 100%);
}

.gm-section--banded {
  background: linear-gradient(180deg, #040f33, #050c2a);
}

.gm-section--support {
  background: radial-gradient(circle at top right, #1e3d8f, #02091f 55%);
}

.gm-section__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gm-section__inner--split {
  gap: 32px;
}

.gm-section__header h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.gm-section__header p {
  margin: 0;
  color: var(--gm-text-muted);
  max-width: 640px;
}

.gm-section__body {
  background: rgba(5, 18, 58, 0.9);
  border-radius: var(--gm-radius-lg);
  border: 1px solid var(--gm-border-subtle);
  padding: 20px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.gm-section__inner--split .gm-section__body {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.gm-section__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gm-section__side--image img {
  border-radius: 18px;
  border: 1px solid var(--gm-border-subtle);
  background: radial-gradient(circle at top, #2f54a8, #050c29);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.gm-section__side--badges {
  align-items: stretch;
}

/* -------------------------
   Header
-------------------------- */
.gm-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(3, 11, 40, 0.92), rgba(5, 20, 60, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gm-header-height);
  gap: 16px;
}

.gm-logo {
  display: inline-flex;
  align-items: center;
}

.gm-logo img {
  width: 120px;
  height: auto;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gm-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gm-border-subtle);
  background: rgba(6, 17, 50, 0.9);
  cursor: pointer;
}

.gm-nav__icon {
  width: 20px;
  height: 20px;
}

.gm-nav__icon--close {
  display: none;
}

.gm-nav__list {
  position: fixed;
  inset-inline: 16px;
  top: calc(var(--gm-header-height) + 8px);
  padding: 10px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #152a6a, #02061b);
  border: 1px solid var(--gm-border-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  list-style: none;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.gm-nav__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--gm-text-soft);
}

.gm-nav__list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gm-text-main);
}

.gm-nav--open .gm-nav__list {
  display: flex;
}

.gm-nav--open .gm-nav__icon--open {
  display: none;
}

.gm-nav--open .gm-nav__icon--close {
  display: block;
}

.gm-header__actions {
  display: none;
  align-items: center;
  gap: 10px;
}

/* -------------------------
   Buttons
-------------------------- */
.gm-btn {
  border-radius: var(--gm-radius-chip);
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.gm-btn--primary {
  background: linear-gradient(135deg, var(--gm-primary), var(--gm-primary-strong));
  border-color: rgba(0, 0, 0, 0.2);
  color: #1c1300;
  box-shadow: 0 10px 25px rgba(255, 200, 20, 0.5);
}

.gm-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(255, 200, 20, 0.65);
}

.gm-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--gm-text-main);
}

.gm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.gm-btn--light {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1b1b24;
}

.gm-btn--light:hover {
  background: #ffffff;
}

.gm-btn--lg {
  padding-block: 11px;
  padding-inline: 26px;
  font-size: 0.98rem;
}

.gm-btn--sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.gm-btn--full {
  width: 100%;
}

/* -------------------------
   Hero
-------------------------- */
.gm-hero {
  padding-top: 32px;
  padding-bottom: 28px;
  background: radial-gradient(circle at top, #1f3f9a, #020b2a 50%);
}

.gm-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gm-hero__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-hero__eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gm-text-muted);
  margin: 0;
}

.gm-hero__title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

.gm-hero__subtitle {
  margin: 4px 0 0;
  color: var(--gm-text-muted);
  font-size: 0.98rem;
}

.gm-hero__cta-group {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.gm-hero__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gm-text-soft);
}

.gm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.gm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 15, 51, 0.92);
  border-radius: var(--gm-radius-chip);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--gm-text-soft);
}

.gm-pill__icon {
  width: 18px;
  height: 18px;
}

.gm-hero-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, #2a55a8, #071137 60%);
  box-shadow: var(--gm-shadow-hero);
}

.gm-hero-card__image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gm-hero-card__badge {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(3, 6, 28, 0.92), rgba(9, 19, 50, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gm-hero-card__label {
  font-size: 0.8rem;
  color: var(--gm-text-soft);
}

.gm-hero-card__value {
  font-size: 0.95rem;
  font-weight: 700;
}

/* -------------------------
   Typography helpers
-------------------------- */
.gm-content p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: var(--gm-text-soft);
}

.gm-content h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.gm-content ul,
.gm-content ol {
  margin: 0 0 10px 18px;
  padding-left: 0;
}

.gm-content li {
  margin-bottom: 6px;
  color: var(--gm-text-soft);
}

.gm-content strong {
  color: #ffffff;
}

/* -------------------------
   Tables & Lists
-------------------------- */
.gm-table-wrapper {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid var(--gm-border-strong);
  overflow: hidden;
  background: radial-gradient(circle at top, #10255b, #040d29);
  box-shadow: var(--gm-shadow-soft);
}

.gm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gm-table thead {
  background: linear-gradient(90deg, #1b3a86, #2749ac);
}

.gm-table th,
.gm-table td {
  padding: 10px 14px;
  text-align: left;
}

.gm-table th {
  font-weight: 600;
}

.gm-table tbody tr:nth-child(odd) {
  background: rgba(2, 10, 40, 0.9);
}

.gm-table tbody tr:nth-child(even) {
  background: rgba(3, 15, 52, 0.9);
}

.gm-table tbody tr:hover {
  background: rgba(53, 92, 211, 0.25);
}

.gm-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border-left: 3px solid var(--gm-primary);
  background: rgba(255, 207, 50, 0.06);
}

.gm-alert h3 {
  margin-top: 0;
  font-size: 0.98rem;
}

/* -------------------------
   Games grid
-------------------------- */
.gm-games {
  margin: 14px 0 18px;
}

.gm-games__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gm-games__item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin: 0;
  background: radial-gradient(circle at top, #224798, #040c26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.gm-games__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-games__item figcaption {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(1, 4, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.72rem;
}

.gm-games__title {
  font-weight: 600;
}

.gm-games__actions {
  display: inline-flex;
  gap: 4px;
}

.gm-btn--xs {
  padding: 4px 8px;
  font-size: 0.7rem;
}

.gm-games__actions .gm-btn--xs {
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.gm-games__actions .gm-btn--primary.gm-btn--xs {
  background: rgba(255, 207, 50, 0.96);
  border-color: rgba(0, 0, 0, 0.25);
}

.gm-games__actions .gm-btn--ghost.gm-btn--xs {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
}

/* -------------------------
   Payments & Badges
-------------------------- */
.gm-payments {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gm-payments img {
  height: 28px;
  width: auto;
  border-radius: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gm-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--gm-border-strong);
  background: rgba(4, 14, 44, 0.95);
  box-shadow: var(--gm-shadow-soft);
}

.gm-badge img {
  width: 32px;
  height: 32px;
}

.gm-badge span {
  font-size: 0.9rem;
  color: var(--gm-text-muted);
}

.gm-badge--age {
  background: radial-gradient(circle at left, #2d4aa0, #050f33);
}

.gm-badge--secure {
  background: radial-gradient(circle at right, #1e8648, #050f33);
}

/* -------------------------
   FAQ (highlighted block)
-------------------------- */
.gm-faq {
  background: radial-gradient(circle at top, #283f9b, #02091f 60%);
  position: relative;
}

.gm-faq::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 40%;
  background: radial-gradient(circle at top, rgba(255, 207, 50, 0.16), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
}

.gm-faq__header {
  position: relative;
  z-index: 1;
}

.gm-faq__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.gm-faq__item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(4, 9, 35, 0.96), rgba(9, 26, 76, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.gm-faq__question {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: var(--gm-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.gm-faq__question::after {
  content: "＋";
  font-size: 1.1rem;
  color: var(--gm-text-highlight);
  flex-shrink: 0;
}

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

.gm-faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  background: rgba(2, 8, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: max-height 0.18s ease-out, padding-bottom 0.18s ease-out;
}

.gm-faq__answer p {
  margin: 10px 0 12px;
  color: var(--gm-text-soft);
  font-size: 0.9rem;
}

.gm-faq__item--open .gm-faq__answer {
  max-height: 300px;
  padding-bottom: 10px;
}

/* -------------------------
   Sticky mobile auth bar
-------------------------- */
.gm-sticky-auth {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: 10px;
  padding: 8px 14px 12px;
  background: radial-gradient(circle at top, rgba(15, 39, 110, 0.98), rgba(1, 3, 12, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.85);
}

.gm-sticky-auth .gm-btn {
  border-radius: 999px;
  font-size: 0.86rem;
}

.gm-sticky-auth .gm-btn--ghost {
  background: rgba(2, 8, 26, 0.9);
}

.gm-sticky-auth .gm-btn--primary {
  box-shadow: 0 8px 20px rgba(255, 200, 20, 0.6);
}

/* -------------------------
   Footer
-------------------------- */
.gm-footer {
  padding: 20px 0 30px;
  background: #01051a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gm-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.gm-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: 0.86rem;
  color: var(--gm-text-muted);
}

.gm-footer__links a:hover {
  color: #ffffff;
}

.gm-footer__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gm-text-soft);
}

/* -------------------------
   Medium & Up
-------------------------- */
@media (min-width: 768px) {
  main {
    padding-top: calc(var(--gm-header-height) + 12px);
    padding-bottom: 40px;
  }

  .gm-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .gm-hero__inner {
    flex-direction: row;
    align-items: stretch;
  }

  .gm-hero__content {
    flex: 1.15;
    padding-right: 10px;
  }

  .gm-hero__title {
    font-size: 2.1rem;
  }

  .gm-hero__subtitle {
    font-size: 1.02rem;
  }

  .gm-hero__cta-group {
    flex-direction: row;
    align-items: center;
  }

  .gm-hero-card {
    flex: 1;
  }

  .gm-section {
    padding: 52px 0;
  }

  .gm-section__inner--split {
    flex-direction: row;
  }

  .gm-section__body {
    padding: 22px 22px;
  }

  .gm-section__inner--split .gm-section__body {
    flex: 1.5;
  }

  .gm-section__inner--split .gm-section__side {
    flex: 1;
  }

  .gm-games__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gm-nav__toggle {
    display: none;
  }

  .gm-nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .gm-nav__list a {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--gm-text-soft);
  }

  .gm-nav__list a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }

  .gm-header__actions {
    display: flex;
  }

  .gm-sticky-auth {
    display: none !important;
  }
}

/* -------------------------
   Small Screens (mobile-first optimisations)
-------------------------- */
@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .gm-header {
    position: fixed;
  }

  .gm-header__inner {
    position: relative;
    justify-content: center;
  }

  .gm-logo {
    margin-inline: auto;
  }

  .gm-nav {
    position: absolute;
    right: 16px;
  }

  .gm-section__body {
    padding: 16px 14px;
  }

  .gm-hero__title {
    font-size: 1.4rem;
  }

  .gm-hero__content {
    text-align: center;
    align-items: center;
  }

  .gm-hero__cta-group {
    align-items: center;
  }

  .gm-hero__meta {
    justify-content: center;
  }

  .gm-hero-card__badge {
    inset-inline: 12px;
    bottom: 12px;
    padding: 9px 11px;
  }

  .gm-sticky-auth {
    display: flex;
  }

  .gm-header__actions {
    display: none;
  }

  .gm-footer {
    padding-bottom: 90px; /* keep full footer visible above sticky auth bar */
  }
}

