#gambling-warning,
#affiliate-notice {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  margin: auto;
  background: #fff;
  color: #000;
}

#gambling-warning::backdrop,
#affiliate-notice::backdrop {
  background: rgb(0 0 0 / 55%);
}

#gambling-warning {
  width: 80vw;
  min-height: 20vh;
  min-height: 20dvh;
  max-width: none;
  padding: 10px 38px;
  border: 18px solid #000;
  outline: 2px solid #fff;
  font: bold clamp(15px, 5vw, 48px)/1.12 Helvetica, Arial, sans-serif;
  text-align: center;
}

#gambling-warning[open] {
  display: grid;
  place-items: center;
}

#gambling-warning p,
#gambling-warning form {
  margin: 0;
}

#gambling-warning #gambling-warning-age {
  margin-top: 0.35em;
}

#gambling-warning #gambling-warning-age,
#gambling-warning a {
  font-size: max(0.6em, 12px);
}

#gambling-warning a {
  color: #000;
  text-decoration: underline;
}

#gambling-warning form {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
}

#gambling-warning button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #000;
  font: bold 24px/1 Helvetica, Arial, sans-serif;
  cursor: pointer;
}

#gambling-warning :focus-visible,
#affiliate-notice :focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

#gambling-warning button:focus-visible {
  outline-offset: -2px;
}

#affiliate-notice {
  width: min(34rem, calc(100% - 2rem));
  padding: clamp(1rem, 5vw, 2rem);
  border: 1px solid #252525;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

#affiliate-notice h2 {
  margin: 0 0 0.75rem;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1.2;
}

#affiliate-notice .affiliate-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

#affiliate-notice button,
#affiliate-notice a {
  padding: 0.5rem 1rem;
  border: 1px solid #252525;
  border-radius: 0.25rem;
  background: #fff;
  color: #252525;
  font: inherit;
  cursor: pointer;
}

#affiliate-notice a {
  background: #252525;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  #gambling-warning {
    width: 92vw;
    padding-inline: 32px;
    font-size: clamp(13px, 4.7vw, 28px);
  }

  #gambling-warning button {
    width: 32px;
    height: 32px;
  }
}
