/* Cookie consent — Aurora Arcade (matches cookie-consent.js) */
.cookie-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: none;
  padding: 18px 20px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0));
  border-radius: var(--g26-radius, 14px);
  background: rgba(22, 22, 34, 0.94);
  color: var(--star-white, #f1f5f9);
  border: 1px solid var(--line-soft, rgba(148, 163, 184, 0.15));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--g26-font, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  animation: g26-cookie-slide-up 0.28s ease-out;
}

@keyframes g26-cookie-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-banner.show { display: block; }

.cookie-consent-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent-text { flex: 1; min-width: 260px; }

.cookie-consent-text > div:first-child {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--comet-cyan, #5eead4), var(--g26-accent, #8b7cf8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.cookie-consent-text p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-muted, #94a3b8);
}

.cookie-consent-text a {
  color: var(--comet-cyan, #5eead4);
  font-weight: 600;
  text-decoration: none;
}

.cookie-consent-text a:hover {
  color: var(--star-white, #f1f5f9);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-btn:hover { transform: translateY(-1px); }

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--comet-cyan, #5eead4), var(--g26-accent, #8b7cf8));
  color: #0d0d14;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.2);
}

.cookie-btn-accept:hover {
  box-shadow: 0 0 24px rgba(139, 124, 248, 0.35);
}

.cookie-btn-reject,
.cookie-btn-settings {
  background: rgba(13, 13, 20, 0.5);
  color: var(--star-white, #f1f5f9);
  border-color: var(--line-soft, rgba(148, 163, 184, 0.15));
}

.cookie-btn-reject:hover,
.cookie-btn-settings:hover {
  border-color: rgba(139, 124, 248, 0.45);
  background: rgba(139, 124, 248, 0.12);
}

/* Settings modal */
.cookie-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 13, 20, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cookie-settings-modal.show { display: flex; }

.cookie-settings-content {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--g26-radius, 14px);
  background: var(--space-blue, #161622);
  color: var(--star-white, #f1f5f9);
  border: 1px solid var(--line-soft, rgba(148, 163, 184, 0.15));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: g26-cookie-modal-in 0.22s ease-out;
}

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

.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft, rgba(148, 163, 184, 0.15));
}

.cookie-settings-header > div {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-settings-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-soft, rgba(148, 163, 184, 0.15));
  border-radius: 10px;
  background: rgba(13, 13, 20, 0.5);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-muted, #94a3b8);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.cookie-settings-close:hover {
  border-color: rgba(139, 124, 248, 0.45);
  color: var(--star-white, #f1f5f9);
}

.cookie-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft, rgba(148, 163, 184, 0.1));
}

.cookie-setting-item:last-child { border-bottom: none; }

.cookie-setting-info > div {
  margin-bottom: 4px;
  font-size: 0.92rem;
  font-weight: 600;
}

.cookie-setting-info p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-muted, #94a3b8);
}

.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
}

.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  transition: background 0.2s ease;
}

.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--comet-cyan, #5eead4), var(--g26-accent, #8b7cf8));
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-toggle.disabled { opacity: 0.45; cursor: not-allowed; }

.cookie-settings-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft, rgba(148, 163, 184, 0.15));
}

@media (min-width: 769px) {
  .cookie-consent-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 32px));
  }
  .cookie-consent-banner.show {
    animation: g26-cookie-slide-up-center 0.28s ease-out;
  }
  @keyframes g26-cookie-slide-up-center {
    from { transform: translateX(-50%) translateY(16px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
  }
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    left: 12px;
    right: 12px;
  }
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
  }
  .cookie-consent-buttons .cookie-btn { width: 100%; }
  .cookie-setting-item { flex-direction: column; align-items: flex-start; }
  .cookie-toggle { align-self: flex-end; }
  .cookie-settings-footer { flex-direction: column; }
  .cookie-settings-footer .cookie-btn { width: 100%; }
}
