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

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.page-container {
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
}

.screenshot-background {
  min-height: 100vh;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f3f4f6;
  overflow: hidden;
}

.screenshot-picture {
  display: block;
}

.screenshot-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: top left;
  z-index: 1;
}

@media (max-width: 768px) {
  .screenshot-background {
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  .screenshot-img {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  cursor: pointer;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 24px;
  line-height: 1;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 16px;
  margin-top: 0;
}

.modal-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
}

.modal-button {
  background-color: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
}

.modal-button:hover {
  opacity: 0.9;
}

/* Country Modal Styles */
.country-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.country-card {
  flex: 1 1 calc(50% - 8px);
  min-width: 120px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background-color: #fff;
  color: inherit;
  font: inherit;
  text-align: center;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.country-card:hover {
  border-color: #000;
  background-color: #f9f9f9;
}

.country-card:focus-visible, .skip-link:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

/* Borda escura: bandeira com faixa branca (Polônia, Indonésia, Malta) sumia
   no fundo branco do card e parecia só uma linha vermelha. */
.country-flag {
  width: 80px;
  height: auto;
  margin-bottom: 8px;
  border: 1px solid #181818;
  border-radius: 4px;
  display: block;
}

.country-card-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.skip-link {
  color: #666;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.skip-link:hover {
  color: #000;
}

@media (max-width: 480px) {
  .country-options {
    flex-direction: column;
  }

  .country-card {
    min-height: 100px;
  }

  .country-flag {
    width: 60px;
  }
}

/* Captcha Modal Styles */
.captcha-image {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

/* Gender Modal Styles */
.gender-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.gender-card {
  flex: 1;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.gender-card:hover {
  border-color: #000;
  background-color: #f9f9f9;
}

.gender-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.gender-card-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Age Modal Styles */
.age-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.age-card {
  flex: 1;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.age-card:hover {
  border-color: #000;
  background-color: #f9f9f9;
}

.age-card-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

@media (max-width: 480px) {
  .gender-options, .age-options {
    flex-direction: column;
  }
}

/* Tipos sem modal: a página inteira é um link (clique em qualquer lugar leva
   à oferta). Substitui o antigo auto-redirect por JavaScript. */
.fullpage-link { position: fixed; inset: 0; z-index: 50; display: block; }
