/* Base & Theme Tokens */
:root {
  --rose: #b76e79;
  --rose-dark: #8a4952;
  --hot: #ff2b88;
  --hot-2: #ff85c8;
  --glow: rgba(255, 64, 128, 0.45);

  --bg: #0a0a0f;
  --bg-2: #11131a;
  --text: #e9e9f0;
  --muted: #b9b9c8;

  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);

  --accent: #ff2b88;
  --accent-2: #ffd1e9;

  --focus: #66e6ff;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Global & Layout Reset (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.5;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + subtle glow/scanlines (pure CSS) */
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient( circle at 20% 0%, rgba(183,110,121,0.15) 0%, rgba(183,110,121,0) 40% ),
    radial-gradient( circle at 90% 10%, rgba(255, 105, 180, 0.10) 0%, rgba(255,105,180,0) 40% ),
    linear-gradient(135deg, rgba(12,0,20,0.65), rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.8) 100%);
  background-blend-mode: screen, screen, overlay;
  filter: saturate(110%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* Structural selectors (required) */
html, body, header, nav, main, article, footer, aside { min-height: 0; }
.image-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 26px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panel / frosted surface with fallback */
.content {
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,.14); }
}

/* Page typography & hero */
header { text-align: center; padding: 1.25rem 1rem; }
header h1 {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0.25rem 0 0.25rem;
  letter-spacing: .2px;
  color: var(--text);
}
nav { margin-top: 0.5rem; }
nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; text-decoration: underline; }

/* Layout helpers & utilities */
.container {
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  padding: .9rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}

/* Content elements & interactivity */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Buttons: solid and outline variants with focus rings */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: var(--accent);
  color: #fff; text-decoration: none; cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(255,43,136,.5); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn--outline {
  background: transparent; color: var(--accent);
  border-color: var(--accent);
}
.btn + .btn { margin-left: .5rem; }

/* Utility elements used in footer sections */
footer { padding: 1.25rem 1rem; border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
}
footer .product-ad, footer .sponsored-page {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  margin: .25rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
footer .product-ad a, footer .sponsored-page a { color: var(--accent-2); text-decoration: none; font-weight: 700; }
footer .product-ad a:hover, footer .sponsored-page a:hover { text-decoration: underline; }

/* Typography helpers for content blocks */
p { margin: .5rem 0; color: var(--text); }
ul { margin: .5rem 0 1rem 1.2rem; }
li { margin: .25rem 0; }

/* Image frame helper usage (for consistency) */
.image-frame { /* already defined above, but ensure block-level centering if used in container */ margin: 0 auto; }

/* Print styles for basic readability */
@media print {
  body { color: #000; background: #fff; }
  header, nav, main, article, footer { display: block; }
  a { color: #00f; text-decoration: underline; }
  .content { background: transparent; border: none; box-shadow: none; }
}

/* Reduced motion safeguard (GPU-friendly) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}