:root {
  --bg: #0b001a;
  --mag: #ff2bd6;
  --mag-dark: #c400a0;
  --panel: rgba(255,255,255,0.08);
  --text: #e9e6ff;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #f8f0ff;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,0,210,.25) 2px, transparent 2px),
    radial-gradient(circle at 4px 6px, rgba(255,0,255,.15) 2px, transparent 2px),
    radial-gradient(circle at 7px 3px, rgba(255,0,140,.1) 2px, transparent 2px),
    linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,.6)),
    linear-gradient(#0b001a, #0b001a);
  background-size: 6px 6px, 8px 8px, 12px 12px, 100% 100%, 100% 100%;
  background-blend-mode: overlay, overlay, overlay, normal, normal;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 6rem);
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
}

/* hero label on image-frame (magenta hacker vibe) */
.image-frame::before {
  content: "The Psychological Survival Experiment";
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: .4rem .6rem;
  border-radius: 6px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(255,0,210,.9);
  box-shadow: 0 0 12px rgba(255,0,210,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* frosted glass overlay for depth on the image-frame */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,0,210,.18), rgba(0,0,0,0) 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: .42;
  filter: saturate(120%);
}

/* image inside fills frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}

/* footer / product ad as a frosted glass CTA zone */
footer {
  margin: 2rem auto 0;
  padding: 1rem;
  width: min(92%, 860px);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.product-ad h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 6px;
  color: #0a001a;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, #ff2bd6, #d904e2);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.product-ad a:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}
footer p { margin: 0; color: #ddd; font-size: .9rem; }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .image-frame, .image-frame::before, .image-frame::after { transition: none; }
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; }
}
@media (min-width: 1024px) {
  .image-frame { width: 860px; }
  footer { margin-top: 2rem; }
}

/* Ensure focus visibility on links for accessibility in all platforms */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}