* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
:root {
  --silver: #cbd5e1;
  --accent: #b89cff;
  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.14);
}

body {
  color: #e9ecf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  background: #0b0b15;
  background-image:
    linear-gradient(120deg, rgba(120,80,255,.25) 0%, rgba(0,0,0,0) 40%),
    linear-gradient(135deg, #1a0a2a 0%, #2a0a3a 45%, #0b0b15 100%);
  background-blend-mode: screen;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(160,120,255,.15), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(120,255,255,.08), transparent 40%),
              linear-gradient(135deg, rgba(12,8,32,.9), rgba(0,0,0,.6) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
  animation: sea 12s linear infinite;
}
@keyframes sea { 0% { transform: translateZ(0) scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 5rem);
  width: 100%;
}
main::before {
  content: "Mind Maze: Psychological Survival Horror Experiment";
  display: block;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  color: #e8eaff;
  text-shadow: 0 2px 10px rgba(120,110,255,.8);
  margin-bottom: 1rem;
  letter-spacing: .4px;
  padding: .25rem 0;
  user-select: none;
}

.image-frame {
  width: min(760px, 92%);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,210,230,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  position: relative;
  backdrop-filter: blur(6px) saturate(1.25);
}
.image-frame img { display: block; width: 100%; height: auto; }

.image-frame::before {
  content: "Mind Maze";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .6rem 1rem;
  background: linear-gradient(to top, rgba(10,10,20,.95), rgba(10,10,20,.55) 60%, rgba(10,10,20,0) 100%);
  color: #e9eaff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: .5rem;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(0,0,0,.2);
  box-shadow: inset 0 0 12px rgba(170,120,255,.65);
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.0) 60%, rgba(0,0,0,.0) 100%);
  mix-blend-mode: overlay;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { 0%{ transform: translateX(-2%); } 100%{ transform: translateX(2%); } }

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  gap: .75rem;
  color: #d9def0;
  background: linear-gradient(to top, rgba(15,14,28,.92), rgba(15,14,28,.60) 60%, rgba(15,14,28,.92));
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(2px);
}
.product-ad {
  width: min(800px, 92%);
  padding: .6rem 0;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
}
.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e9ecf6;
  display: flex; align-items: center; gap: .5rem;
}
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(180,190,210,.5);
  color: #e9ecf5;
  background: linear-gradient(#2a2a2a, #1a1a1a);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover,
.product-ad a:focus {
  outline: 3px solid rgba(130,120,255,.6);
  outline-offset: 2px;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.product-ad a p { margin: 0; font-family: inherit; font-size: .95rem; }

footer p { margin-top: .5rem; font-size: .85rem; color: #aab3cb; }

@media (min-width: 700px) {
  main { padding: 4rem 2rem; }
  .image-frame { width: min(900px, 60%); }
  .product-ad { width: min(900px, 60%); }
}
@media (prefers-color-scheme: dark) {
  body { background-color: #0b0b15; color: #e6e6e6; }
}