:root {
  --bg: #0a0a0f;
  --bg-2: #141021;
  --text: #e8e0ff;
  --muted: #c9b7ea;
  --accent: #d4af37;
  --accent-2: #8e3bd6;
  --panel: rgba(255,255,255,.12);
  --panel-strong: rgba(255,255,255,.22);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.5);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(212,175,55,.65);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(20,0,60,.95) 0%, rgba(8,0,20,.95) 60%, rgba(0,0,0,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,215,0,.04) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 20% -10%, rgba(255,215,0,.12), transparent 40%);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

header { padding: 1rem 0; text-align: center; }
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 3vw, 2.4rem);
  letter-spacing: .4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

nav { display: none; } /* reserved for future navigation if needed */

main { display: flex; justify-content: center; padding: 0.5rem 1rem 1rem; width: 100%; }
article { width: 100%; max-width: clamp(320px, 90vw, 860px); padding: 0.5rem; }

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}

.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.content { padding: 0.75rem; }

.product-ad { display: block; padding: 0.9rem; text-align: center;
  border-radius: var(--radius); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28); box-shadow: var(--shadow);
  margin: 1rem 0; }
.product-ad a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.product-ad a:hover { text-decoration: underline; }

.sponsored-page { display: block; padding: 0.9rem; text-align: center;
  border-radius: var(--radius); background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28); box-shadow: var(--shadow);
  margin: 0.5rem 0; }
.sponsored-page a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.sponsored-page a:hover { text-decoration: underline; }

footer { padding: 1rem; display: grid; gap: 0.75rem; justify-items: center; align-items: center; text-align: center; color: var(--muted); }

ul { padding-inline-start: 1rem; margin: 0; }
li { margin: .25rem 0; }

a, button, .btn, .cta {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  font: inherit;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(212,175,55,.95), rgba(128,0,128,.95));
  color: #111;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 0; }

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), #b58a00); border-color: rgba(255,255,255,.4); }
.btn.secondary { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.4); }

.cta { composes: .btn; }

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Typography */
h1, h2, h3 { line-height: 1.2; margin: .25rem 0; }
p { margin: .5rem 0; }

/* Print styles */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5ff;
    --bg-2: #ffffff;
    --text: #1a0e2b;
    --muted: #5a4a66;
    --panel: rgba(255,255,255,.92);
    --panel-strong: rgba(255,255,255,.98);
    --border: rgba(0,0,0,.15);
    --shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  body {
    background: linear-gradient(135deg, #f7f7ff 0%, #fbfbff 100%);
    color: var(--text);
  }
  .image-frame { border-color: rgba(0,0,0,.08); }
  header h1 { text-shadow: none; color: #1a0e2b; }
  a, .btn { color: #2a1b54; }
}
