:root {
  color-scheme: dark;
}

html {
  scroll-padding-top: 24px;
}

body {
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111111;
  color: #f7f1e8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-weight: 700;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 176, 92, 0.78);
  outline-offset: 3px;
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 14, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.consent-banner[hidden],
.consent-prefs-button[hidden] {
  display: none !important;
}

.consent-copy {
  display: grid;
  gap: 8px;
}

.consent-copy strong {
  color: #f7f1e8;
  font-size: 0.98rem;
}

.consent-copy p {
  margin: 0;
  color: rgba(247, 241, 232, 0.72);
  line-height: 1.65;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.consent-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.consent-button-primary {
  color: #16110c;
  background: linear-gradient(135deg, #ffd29e 0%, #ffb05c 100%);
}

.consent-button-secondary {
  color: #f7f1e8;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.consent-prefs-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 998;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.92);
  color: #f7f1e8;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

@media (max-width: 700px) {
  .consent-banner {
    left: 10px;
    right: 10px;
    width: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .consent-actions {
    display: grid;
  }

  .consent-button,
  .consent-prefs-button {
    width: 100%;
  }

  .consent-prefs-button {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }
}
