:root {
  --bg: #0a0a1a;
  --bg-2: #0f0f2a;
  --text: #eef2ff;
  --muted: #cbd5e1;
  --accent: #f9f871;
  --accent-2: #ffd96a;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 22px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(253, 234, 128, 0.8);
}
*,
*::before,
*::after { box-sizing: border-box; }
html, body, header, nav, main, article, aside, footer { margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  min-height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Layered ultraviolet gradient + subtle scanlines/noise (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(22,0,60,.95), rgba(6,6,40,.95) 60%, rgba(0,0,0,.95)),
    linear-gradient(rgba(0,0,0,.0), rgba(0,0,0,.0)),
    repeating-linear-gradient(to bottom, rgba(140,0,180,.065) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(to bottom, rgba(0,180,180,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  opacity: 0.98;
  filter: saturate(120%);
  animation: drift 60s linear infinite;
  pointer-events: none;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-2px); } }

/* Global layout helpers used by the page */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  color: var(--text);
}
.card + .card { margin-top: .5rem; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,0.14); }
}

/* Page sections / semantic elements */
header, nav, main, article, aside, footer {
  display: block;
}
header { padding: 1.25rem 1rem; text-align: center; }
header h1 { margin: 0.25rem auto 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: .2px;
}
nav { display: flex; justify-content: center; gap: .75rem; padding-top: .25rem; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

main { padding: 1rem; }
article { margin: 0 auto; }

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: #0b0b12;
  margin: 0 auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content helper (not always present in this markup) */
.content {
  padding: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Utility/token classes required by the spec */
footer { padding: 1rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
.product-ad, .sponsored-page {
  margin: .5rem auto;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .5rem 0; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; color: var(--accent); }
footer p { margin: .25rem 0 0; }

a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Buttons (solid and outline variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .92rem;
  border-radius: 6px;
  border: 1px solid rgba(249, 232, 130, .8);
  background: rgba(249, 232, 130, .25);
  color: #0a0a0a;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(249, 232, 130, .4); }
.btn.primary {
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid rgba(255,255,255,.6);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
}
.btn:active { transform: translateY(0); }

/* Accessibility helpers for lists and images */
ul, li { margin: 0; padding: 0; list-style: none; }
li { padding: .25rem 0; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .image-frame { page-break-inside: avoid; }
  nav, .glass { display: none; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  body::before { animation: none; }
}
