.analytics-consent-backdrop,
.analytics-consent {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.analytics-consent-open {
  overflow: hidden;
}

.analytics-consent-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(3, 4, 10, 0.78);
  backdrop-filter: blur(8px);
}

.analytics-consent {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(100%, 460px);
  max-height: 92vh;
  overflow: auto;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: #f7fbff;
  background: linear-gradient(155deg, #151126 0%, #090d18 70%);
  border: 1px solid rgba(160, 76, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62), 0 0 38px rgba(126, 42, 255, 0.16);
}

.analytics-consent-mascot {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 22px;
}

.analytics-consent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #f7fbff;
  background: rgba(15, 18, 30, 0.88);
  border: 1px solid #596277;
  border-radius: 50%;
  font: 700 1.7rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.analytics-consent-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.analytics-consent-copy p {
  margin: 0;
  color: #c7d2df;
  font-size: 0.96rem;
  line-height: 1.5;
}

.analytics-consent-copy a {
  display: inline-block;
  margin-top: 9px;
  color: #70e8ff;
  font-size: 0.86rem;
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 12px;
}

.analytics-consent-actions button {
  min-height: 48px;
  padding: 11px 14px;
  color: #f7fbff;
  background: #222b3a;
  border: 1px solid #445066;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.analytics-consent-actions .analytics-consent-reject {
  background: #293246;
  border-color: #66738d;
}

.analytics-consent-actions .analytics-consent-accept {
  color: #061019;
  background: #53d8fb;
  border-color: #53d8fb;
}

.analytics-consent-actions button:focus-visible,
.analytics-consent-close:focus-visible {
  outline: 3px solid #c55cff;
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .analytics-consent {
    gap: 13px;
    padding: 20px 16px 16px;
  }

  .analytics-consent-mascot {
    width: 132px;
    height: 132px;
  }

  .analytics-consent-copy strong {
    font-size: 1.2rem;
  }

  .analytics-consent-actions button {
    min-height: 46px;
    padding-inline: 9px;
    font-size: 0.88rem;
  }
}
