/* Cookie-баннер: один на все страницы, включая тёмные игровые. Стили максимально изолированы. */
html.cookie-pending .mcta { display: none !important; }
html.cookie-ok .cookie-banner,
html.cookie-embedded .cookie-banner { display: none !important; }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: auto;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .18);
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  animation: cookie-banner-in .35s ease-out both;
}

.cookie-banner *,
.cookie-banner *::before,
.cookie-banner *::after { box-sizing: border-box; }

.cookie-banner__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

.cookie-banner__icon svg { display: block; width: 22px; height: 22px; }

.cookie-banner__body { flex: 1 1 auto; min-width: 0; }

.cookie-banner__title {
  margin: 0 0 4px;
  padding: 0;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-transform: none;
}

.cookie-banner__text {
  margin: 0;
  padding: 0;
  color: #475569;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}

.cookie-banner__text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover { color: #1d4ed8; }

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s, border-color .15s, color .15s;
}

.cookie-banner__btn:hover { border-color: #94a3b8; background: #f8fafc; }

.cookie-banner__btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}

.cookie-banner__btn--primary:hover { border-color: #1d4ed8; background: #1d4ed8; }

.cookie-banner__btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
    gap: 11px;
    padding: 14px;
    border-radius: 16px;
  }

  .cookie-banner__icon { width: 38px; height: 38px; }
  .cookie-banner__body { flex-basis: calc(100% - 49px); }
  .cookie-banner__actions { width: 100%; margin-left: 0; }
  .cookie-banner__actions .cookie-banner__btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
}

@media (max-width: 380px) {
  .cookie-banner__actions { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .cookie-banner__btn { width: 100%; }
}
