:root {
  color-scheme: dark;
  --bg: #06090f;
  --spot: #29241e;
  --edge: #050403;
  --ink: #f8f8f4;
  --muted: #8e98a8;
  --panel: #111721;
  --line: rgba(255,255,255,.12);
  --grain-opacity: .13;
  --logo-shadow: rgba(0,0,0,.44);
  --red: #e82f43;
  --blue: #3478f6;
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, var(--spot) 0%, var(--bg) 58%, var(--edge) 115%);
  color: var(--ink);
  font-family: Arial, sans-serif;
  transition: color .3s ease, background-color .3s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
}

body::after {
  z-index: 0;
  background:
    radial-gradient(circle at -8% 50%, color-mix(in srgb, var(--red) 16%, transparent), transparent 35%),
    radial-gradient(circle at 108% 50%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 35%),
    radial-gradient(ellipse at center, transparent 42%, color-mix(in srgb, var(--edge) 48%, transparent) 120%);
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

h1 {
  width: min(760px, calc(100vw - 2rem));
  margin: 0;
  line-height: 0;
  filter: drop-shadow(0 28px 45px var(--logo-shadow));
}

h1 img {
  display: block;
  width: 100%;
  height: auto;
}

.cookie-banner {
  position: fixed;
  z-index: 10;
  bottom: 1.25rem;
  left: 50%;
  display: flex;
  width: min(760px, calc(100vw - 2rem));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1rem 1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(12,13,14,.94);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cookie-banner > div:first-child { min-width: 0; }

.cookie-actions { display: flex; flex: 0 0 auto; gap: .5rem; }

.cookie-actions button {
  min-width: 82px;
  cursor: pointer;
  padding: .68rem .85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cookie-actions button.primary { border-color: #a13b36; background: #8e302c; }
.cookie-actions button:hover { border-color: var(--ink); }
.cookie-actions button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.cookie-settings {
  position: fixed;
  z-index: 9;
  right: 1rem;
  bottom: 1rem;
  cursor: pointer;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  background: rgba(12,13,14,.86);
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-settings[hidden] { display: none; }
.cookie-settings:hover { color: var(--ink); border-color: var(--ink); }
.cookie-settings:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 520px) {
  main { padding: 1rem; }
  h1 { width: min(520px, calc(100vw - 1.5rem)); }
  .cookie-banner { align-items: stretch; flex-direction: column; gap: .9rem; padding: .9rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
