/* Core theme variables */
:root {
  --bg: #0e1116;
  --surface: #121826;
  --card: #141c2c;
  --text: #e7ecf3;
  --muted: #a7b0c0;
  --brand: #3dd06e;
  --brand-700: #24a450;
  --warn: #ffcc00;
  --focus: #7dd3fc;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.24), 0 2px 8px rgba(0, 0, 0, 0.24);
}

/* Base & accessibility */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,
    Arial, Ubuntu, Inter, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1000px 600px at -10% -20%, rgba(61, 208, 110, 0.25), transparent 70%),
    radial-gradient(800px 500px at 110% 0%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(700px 500px at 50% 120%, rgba(168, 85, 247, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg), #0b0f16 600px);
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.6;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:where(a, button, [role="button"], .cta):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 1000;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Brand mark (used in header previously; safe for reuse elsewhere) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}
.brand .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

/* Hero */
.hero {
  padding: 48px 0 16px;
}
.hero-wrap {
  background: linear-gradient(
    180deg,
    rgba(61, 208, 110, 0.08),
    rgba(61, 208, 110, 0)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}
h1 {
  font-size: 2rem;
  margin: 0 0 10px;
  line-height: 1.25;
}
.lead {
  color: var(--text);
  max-width: 72ch;
  margin: 0;
}

/* Offers */
.offers {
  padding: 22px 0 8px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin: 8px 0 16px;
}
.section-title .trophy {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.offer-card {
  grid-column: span 12;
  background: linear-gradient(180deg, var(--card), #0f1624);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  padding: 18px;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .offer-card {
    grid-column: span 6;
  }
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #092012;
  background: linear-gradient(
    180deg,
    rgba(61, 208, 110, 0.9),
    rgba(61, 208, 110, 0.7)
  );
  border: 1px solid rgba(61, 208, 110, 0.95);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 6px 14px rgba(61, 208, 110, 0.25);
  margin: 0;
  margin-left: auto;
}
.offer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.offer-logo {
  width: auto;
  height: 50px;
}
.offer-name {
  margin: 0;
  font-size: 1.125rem;
}
.rating {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
}
.rating strong {
  color: var(--text);
}
.kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
@media (min-width: 1024px) {
  .kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kpi .box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.kpi dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.kpi dd {
  margin: 4px 0 0;
  font-weight: 700;
}
.kpi .label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.kpi .value {
  display: block;
  margin: 4px 0 0;
  font-weight: 700;
}

/* Unified meta block (rating, votes, RTP, Levantamento) */
.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
@media (min-width: 1024px) {
  .meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.meta .item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.meta .label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.meta .value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}
.bonus {
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(61, 208, 110, 0.12),
    rgba(61, 208, 110, 0.05)
  );
  border: 1px solid rgba(61, 208, 110, 0.5);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 0 0 3px rgba(61, 208, 110, 0.08) inset;
}
.bonus strong {
  font-size: 1.6rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #08130c;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 16px rgba(61, 208, 110, 0.25);
  text-decoration: none;
  width: 100%;
}
.cta:hover {
  background: var(--brand-700);
  text-decoration: none;
}
.cta .ext {
  width: 16px;
  height: 16px;
}

/* Content */
.content {
  padding: 22px 0;
}
h2 {
  font-size: 1.5rem;
  margin: 22px 0 8px;
}
h3 {
  font-size: 1.1rem;
  margin: 16px 0 6px;
}
ul {
  padding-left: 18px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

/* Cards (used on inner pages) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

/* Footer */
footer {
  margin-top: 20px;
  background: #0a0f18;
  border-top: 1px solid var(--border);
}
.footer-inner {
  padding: 22px 16px;
}
.legal {
  color: var(--muted);
  font-size: 0.95rem;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.logos a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.logos a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.logos a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.logos img {
  height: 24px;
  width: auto;
  opacity: 0.95;
  display: block;
}
/* Style non-linked badges like 18+ consistently with anchors */
.logos > img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}
.copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}
.container-legal {
  padding-top: 48px;
}
@media (max-width: 600px) {
  .hero-wrap {
    padding: 10px;
  }
  .offer-card {
    padding: 10px;
  }
  .container-legal {
    padding-top: 22px;
  }
  .hero {
    padding: 22px 0 0 0;
  }
  h1 {
    font-size: 1.5rem;
  }
  .offer-badge {
    text-align: center;
    font-size: 0.7rem;
  }
}
