:root {
  --primary: #141414;
  --secondary: #3dff6a;
  --fg: #e8ffe9;
  --ghost: #d8ffe4;
  --font-display: "Nosifer", "Creepster", Georgia, serif;
  --font-body: "Creepster", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--primary);
  overflow-x: hidden;
}

button {
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(61, 255, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #1c1c1c 0%, #101010 50%, #0a0a0a 100%);
}

.dots {
  position: absolute;
  inset: -25%;
  pointer-events: none;
}

.dots-right {
  opacity: 0.7;
  background-image:
    radial-gradient(circle, #2a2a2a 1.4px, transparent 1.6px),
    radial-gradient(circle, #3dff6a 1.1px, transparent 1.3px);
  background-size: 30px 30px, 48px 48px;
  background-position: 0 0, 15px 12px;
  animation: drift-right 42s linear infinite;
}

.dots-up {
  opacity: 0.55;
  background-image:
    radial-gradient(circle, #0d4a1c 1.25px, transparent 1.45px),
    radial-gradient(circle, #3dff6a 0.95px, transparent 1.15px);
  background-size: 38px 38px, 24px 24px;
  background-position: 8px 0, 0 14px;
  animation: drift-up 52s linear infinite;
}

.dots-corner {
  opacity: 0.4;
  background-image:
    radial-gradient(circle, #1a1a1a 1.5px, transparent 1.7px),
    radial-gradient(circle, #145c28 1px, transparent 1.2px);
  background-size: 54px 54px, 32px 32px;
  background-position: 0 0, 12px 10px;
  animation: drift-corner 64s linear infinite;
}

@keyframes drift-right {
  from {
    background-position: 0 0, 15px 12px;
  }
  to {
    background-position: 300px 0, 315px 12px;
  }
}

@keyframes drift-up {
  from {
    background-position: 8px 0, 0 14px;
  }
  to {
    background-position: 8px -360px, 0 -346px;
  }
}

@keyframes drift-corner {
  from {
    background-position: 0 0, 12px 10px;
  }
  to {
    background-position: 280px -280px, 292px -270px;
  }
}

.goo {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(
    180deg,
    #1dbd3a 0%,
    #3dff6a 20%,
    #2ee85a 40%,
    #1fbf45 60%,
    #3dff6a 80%,
    #128a32 100%
  );
  box-shadow: 0 0 18px rgba(61, 255, 106, 0.55);
}

.goo-left {
  left: 0;
  border-radius: 0 45% 40% 0 / 0 10% 14% 0;
}

.goo-right {
  right: 0;
  border-radius: 40% 0 0 35% / 8% 0 0 12%;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.25rem 2.5rem 3rem;
  text-align: center;
}

.header {
  margin-bottom: 1.75rem;
}

.bio-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.grave {
  position: relative;
  padding: 1.1rem 1.2rem 1.25rem;
  text-align: left;
  color: var(--fg);
  background: linear-gradient(180deg, #3a3f3a 0%, #1a1e1a 100%);
  border: 2px solid rgba(61, 255, 106, 0.35);
  border-radius: 6px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(61, 255, 106, 0.08);
}

.grave.ghostly {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 255, 214, 0.12), transparent 50%),
    linear-gradient(180deg, #3a433a 0%, #1c221c 100%);
}

.bio,
.dni {
  flex: 1 1 0;
}

.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(61, 255, 106, 0.5);
}

.bio p,
.dni p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ghost);
  text-shadow: 0 0 10px rgba(61, 255, 106, 0.25);
}

.label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(61, 255, 106, 0.75);
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.25rem 0 0.5em;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 3.6rem);
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--secondary);
  text-shadow:
    0 0 8px rgba(61, 255, 106, 0.85),
    0 0 22px rgba(20, 80, 30, 0.85),
    0 3px 0 #050505;
}

.title span {
  position: relative;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  width: 100%;
}

.card {
  background: linear-gradient(180deg, #323632 0%, #1a1e1a 100%);
  border: 2px solid rgba(61, 255, 106, 0.3);
  border-radius: 6px;
  padding: 0.5rem;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: none;
  padding: 0;
  background: #0e120e;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame img.missing {
  display: none;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(61, 255, 106, 0.45);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.frame img:not(.missing) + .placeholder {
  display: none;
}

.sale {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  color: #141414;
  background: linear-gradient(180deg, #6dff86 0%, #2ee85a 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transform: rotate(7deg);
  transition: transform 0.18s ease-out;
}

.sale:hover {
  transform: rotate(7deg) scale(1.12);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: flex !important;
  pointer-events: none;
}

.lightbox:not([hidden]) {
  pointer-events: auto;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .page {
    padding: 1.75rem 4rem 3.5rem;
  }

  .bio-wrap {
    flex-direction: row;
    align-items: stretch;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }

  .goo {
    width: 36px;
  }
}

@media (max-width: 639px) {
  .page {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .goo {
    width: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots-right,
  .dots-up,
  .dots-corner {
    animation: none;
  }

  .sale {
    transition: none;
  }
}