/* ============================================================
   Gamerouters.com — Stylesheet
   Mobile-first · Matches Accesscontroller + Safesite design
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0a8754;
  --accent-hover: #06693f;
  --border: #e0e0e0;
  --radius: 12px;
  --max-w: 720px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Header ── */

header {
  text-align: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.trust-badge {
  display: inline-block;
  background: rgba(10, 135, 84, 0.08);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Grid ── */

main {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 16px 0 0;
}

/* ── Cards ── */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card:active {
  transform: translateY(0);
}

.card__icon {
  font-size: 2rem;
  line-height: 1;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__cta {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.card:hover .card__cta {
  color: var(--accent);
}

/* ── Responsible gambling icons ── */

.responsible {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.responsible__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  padding: 24px 16px;
}

.responsible__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.responsible__badge:hover {
  opacity: 1;
}

.responsible__badge img {
  height: 28px;
  width: auto;
}

/* ── Footer ── */

footer {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  padding: 16px 16px 32px;
}

.disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 8px;
}

.disclaimer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Desktop (≥640px) ── */

@media (min-width: 640px) {
  header {
    padding: 32px 16px 8px;
  }

  header h1 {
    font-size: 1.75rem;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    padding: 2rem 1.25rem;
  }

  .card__icon {
    font-size: 2.4rem;
  }

  .card__title {
    font-size: 1.05rem;
  }
}

/* ── Focus accessibility ── */

.card:focus-visible,
.responsible__badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Reduced motion ── */

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