:root {
  --xbox-green: #107c10;
  --bg: #0f0f10;
  --surface: #17181a;
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --border: #26272b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 16px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  margin: 16px;
  background: color-mix(in oklab, var(--surface) 92%, black 8%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 960px;
  width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
  transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
  z-index: 2147483647;
}

.cookie-banner[data-hidden="true"] {
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
}

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--muted);
}

.cookie-text a {
  color: var(--text);
  text-underline-offset: 2px;
}

.cookie-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--xbox-green);
  color: white;
}

.btn-primary:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px;
  }
  .cookie-actions {
    justify-content: flex-start;
  }
}

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