:root{
  --bg: #0a0a12;
  --bg-2: #14141e;
  --text: #eafaff;
  --muted: #a8a8c7;
  --accent: #a6ff00;        /* lime */
  --accent-2: #ff4dff;      /* magenta */
  --panel: rgba(14, 14, 28, 0.28);
  --panel-strong: rgba(14, 14, 28, 0.42);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.45);
  --radius: 14px;
  --gap: 1.25rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
/* Base & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: magenta lime dot pattern + gradient + subtle scanlines */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(166,255,0,.38) 1px, transparent 1px),
    radial-gradient(circle at 6px 6px, rgba(255,0,170,.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(20,0,35,.92), rgba(0,0,0,.92)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,0) 1px 2px);
  background-size: 12px 12px, 18px 18px, cover;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
:focus { outline: none; }
*::focusable { outline: none; }

.container { width: min(92%, 1100px); margin-inline: auto; padding-inline: 0.75rem; }

header, main, footer, aside { padding-block: 1rem; }

/* Glass panels helper (fallback included) */
.content, .card, .product-ad, .sponsored-page, aside {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(10px)) {
  .content, .card, .product-ad, .sponsored-page, aside {
    background: rgba(14,14,28,.66);
  }
}

/* Header / Hero */
header {
  text-align: center;
  padding: 1.25rem 1rem 0.75rem;
}
header h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.25rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: .25rem;
  display: inline-block;
  padding-inline: .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
}
@media (prefers-color-scheme: light) {
  body { background: #f7f7fb; color: #111; }
  header, .content, .card, .product-ad { background: rgba(255,255,255,.8); border: 1px solid rgba(0,0,0,.1); color: #111; }
  a { color: #1a4ed8; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Main content / article */
main { padding: 0 0.5rem; }
article { max-width: min(860px, 92vw); margin-inline: auto; padding: 0.25rem; display: grid; gap: 1rem; }

/* Image blocks (supporting .image-frame & .image-frame img) */
.image-frame, .featured-image { width: 100%; }
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #000;
  margin: 0.25rem 0;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content blocks (typography) */
.content { font-size: clamp(0.95rem, 1.8vw, 1.05rem); line-height: 1.5; color: var(--text); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .25rem 0 .5rem; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
p { margin: .6rem 0; color: rgba(230,240,255,.95); }
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Utility blocks / product / promos */
.product-ad, .sponsored-page { display: block; margin: .5rem 0; text-align: center; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }
.product-ad a, .sponsored-page a { display: inline-flex; align-items: center; justify-content: center; padding: .75em 1.1em; border-radius: 999px; width: 100%; text-decoration: none; }
.product-ad { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }
.product-ad a { color: var(--text); background: linear-gradient(135deg, rgba(166,255,0,.2), rgba(255,0,230,.2)); }
.product-ad a:hover { filter: brightness(1.05); }

/* Buttons / links / CTAs */
a, button, .btn, .cta {
  text-decoration-skip-ink: auto;
}
a, .cta { color: var(--accent-2); }
button, .btn {
  font-family: inherit;
  font-size: 1rem;
  border: 0;
  border-radius: 999px;
  padding: .75em 1.1em;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn {
  background: linear-gradient(135deg, var(--accent-2), #ff8bf0);
  color: #04040a;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid rgba(166,255,0,.95);
  outline-offset: 2px;
}
.cta { display: inline-flex; align-items: center; gap: .5rem; }

/* Lists / tags */
ul, li { list-style: disc inside; }
.tag {
  display: inline-block;
  padding: .25em .55em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(166,255,0,.18);
  color: #eaffcf;
  border: 1px solid rgba(166,255,0,.38);
}

/* Grid utilities (responsive) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .content, .card, .product-ad { background: none; border: none; box-shadow: none; }
}
