.cookie-dialog:not([open]),
.cookie-preferences[hidden],
.game-clip [hidden] {
  display: none;
}

.cookie-dialog {
  box-sizing: border-box;
  inline-size: min(calc(100% - 2rem), 30rem);
  max-block-size: calc(100% - 2rem);
  padding: clamp(1rem, 4vw, 1.75rem);
  overflow: auto;
  border: 1px solid #555;
  border-radius: .85rem;
  color: #171717;
  background: #fff;
}

.cookie-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.cookie-dialog-content {
  display: grid;
  gap: .8rem;
}

.cookie-dialog-content :is(h2, p) {
  margin: 0;
}

.cookie-actions,
.cookie-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
}

.cookie-actions button,
.media-choice button {
  min-block-size: 44px;
  padding: .55rem .8rem;
  border: 1px solid #555;
  border-radius: .45rem;
  color: #171717;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions button:hover,
.media-choice button:hover {
  background: #f0f0f0;
}

.cookie-preferences,
.cookie-links button {
  min-block-size: 44px;
  padding: .25rem 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

.cookie-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.game-clip [data-media-frame] iframe {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.game-clip :is(button, iframe):focus-visible,
.cookie-preferences:focus-visible,
.cookie-dialog :is(button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
