:root {
  color-scheme: dark;
  --background: #0b0f14;
  --surface: #151c26;
  --surface-raised: #1a2330;
  --text: #f5f7fa;
  --muted: #a9b4c2;
  --accent: #f2a93b;
  --accent-bright: #ffc15c;
  --border: rgba(255, 255, 255, 0.11);
  --danger: #ffb4ab;
  --danger-background: rgba(255, 93, 93, 0.1);
  --success: #82dda0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 169, 59, 0.11), transparent 22rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.consent-card {
  width: min(100%, 640px);
  padding: clamp(24px, 6vw, 48px);
  background: linear-gradient(145deg, rgba(26, 35, 48, 0.98), rgba(17, 23, 32, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(36px, 8vw, 58px);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.current-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.current-state strong {
  color: var(--text);
  text-align: right;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.decision-button {
  min-height: 78px;
  padding: 15px 17px;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid rgba(242, 169, 59, 0.55);
  border-radius: 14px;
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.decision-button:hover {
  background: #222d3b;
  border-color: var(--accent-bright);
}

.decision-button:active {
  transform: translateY(1px);
}

.decision-button:focus-visible,
.privacy-link:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.error-message,
.noscript-message {
  margin: 26px 0 0;
  padding: 16px 18px;
  color: var(--danger);
  background: var(--danger-background);
  border: 1px solid rgba(255, 180, 171, 0.28);
  border-radius: 14px;
  line-height: 1.55;
}

.more-info {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.more-info summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  list-style: none;
}

.more-info summary::-webkit-details-marker {
  display: none;
}

.more-info summary::after {
  content: "+";
  color: var(--accent-bright);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.more-info[open] summary::after {
  content: "−";
}

.more-info summary:hover {
  color: var(--text);
}

.more-info summary:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.more-info-copy {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.more-info-copy p {
  margin: 0;
}

.more-info-copy p + p {
  margin-top: 14px;
}

.noscript-message p {
  margin: 0;
}

.noscript-message p + p {
  margin-top: 8px;
}

.privacy-link {
  display: block;
  width: fit-content;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.privacy-link:hover {
  color: var(--text);
}

.safe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.safe-action {
  appearance: none;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.safe-action:hover { border-color: var(--accent-bright); }

.safe-action:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .page-shell {
    align-items: start;
    padding: 12px;
  }

  .consent-card {
    min-height: calc(100vh - 24px);
    min-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .brand {
    margin-bottom: 42px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .decision-button {
    min-height: 64px;
  }
}

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