:root{
  --ink:    #f4f2ff;
  --paper:  #1a0b2e;
  --acc:    #ff2fd0;
  --acc2:   #2ee6ff;
  --acc3:   #ffdf5e;
  --line:   #ff2fd0;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 15%, #3d1a6b 0%, transparent 55%),
    linear-gradient(180deg, #2b0a4d 0%, #170a35 45%, #0c0a24 100%);
  font-family: "Courier New", ui-monospace, monospace;
  color: var(--ink);
  padding: 24px;
  overflow: hidden;
  position: relative;
}

/* retro grid horizon */
body::before{
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 55vh;
  background-image:
    linear-gradient(rgba(46,230,255,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,230,255,0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: perspective(300px) rotateX(55deg);
  transform-origin: bottom;
  z-index: 0;
  pointer-events: none;
}

/* sun */
body::after{
  content: "";
  position: fixed;
  top: 10%;
  left: 50%;
  width: 260px;
  height: 260px;
  background: linear-gradient(180deg, var(--acc3) 0%, var(--acc) 60%, var(--acc2) 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 80px 10px rgba(255,47,208,0.55);
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0 8px,
      #170a35 8px 14px),
    linear-gradient(180deg, var(--acc3) 0%, var(--acc) 60%, var(--acc2) 100%);
  background-blend-mode: normal;
  -webkit-mask-image: none;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* wide stage so photos can sit clear of the card, not on top of it */
.scene{
  position: relative;
  width: min(980px, 100%);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* the card itself: deliberately a hair off-square */
.card{
  position: relative;
  width: min(420px, 100%);
  background: rgba(20, 8, 40, 0.72);
  backdrop-filter: blur(6px);
  border: 3px solid var(--line);
  padding: 34px 28px 26px;
  transform: rotate(-0.6deg);
  box-shadow:
    10px 10px 0 rgba(0,0,0,0.35),
    0 0 24px rgba(255,47,208,0.45),
    0 0 48px rgba(46,230,255,0.15) inset;
  z-index: 1;
}

.stamp{
  position: absolute;
  top: -18px;
  right: -14px;
  background: var(--acc2);
  color: #0c0a24;
  font-weight: bold;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  transform: rotate(6deg);
  box-shadow: 0 0 12px rgba(46,230,255,0.7);
}

.name{
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--ink);
  text-shadow:
    0 0 6px var(--acc),
    0 0 18px var(--acc),
    2px 2px 0 var(--acc2);
}
.name .dot{ color: var(--acc3); text-shadow: 0 0 10px var(--acc3); }

.role{
  margin: 6px 0 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--acc2);
  text-shadow: 0 0 8px rgba(46,230,255,0.7);
}

.rule{
  border: none;
  border-top: 2px dashed var(--acc2);
  margin: 18px -4px;
  transform: rotate(0.4deg);
  opacity: 0.7;
}

.blurb{
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 20px;
  color: #e7dfff;
}

.contact{
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 0.85rem;
}
.contact li{
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,47,208,0.4);
}
.contact li:last-child{ border-bottom: none; }

.tag{
  flex: 0 0 auto;
  background: var(--acc);
  color: #170a35;
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 2px 6px;
  align-self: center;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255,47,208,0.6);
}

a{
  color: var(--acc2);
  text-decoration: underline;
}
a:hover{ color: var(--acc3); text-shadow: 0 0 8px var(--acc3); }

.tape{
  position: absolute;
  width: 70px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(46,230,255,0.4);
  top: -10px;
  left: 40%;
  transform: rotate(-4deg);
}

.foot{
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  text-align: right;
  color: var(--acc2);
}

/* polaroid-style photo placeholders, taped around the card */
.polaroid{
  position: absolute;
  width: 108px;
  margin: 0;
  background: rgba(20, 8, 40, 0.85);
  border: 1px solid var(--acc2);
  padding: 8px 8px 12px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.35), 0 0 14px rgba(46,230,255,0.35);
  font-size: 0.62rem;
  text-align: center;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0.2s;
  cursor: default;
}

.polaroid:hover,
.polaroid:focus-within{
  transform: scale(2.1) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.4), 0 0 26px rgba(255,47,208,0.6);
}

.polaroid:hover .polaroid__img{
  filter: none;
}

.polaroid__img{
  display: block;
  width: 100%;
  height: 92px;
  margin-bottom: 8px;
  object-fit: cover;
  border: 1px solid rgba(46,230,255,0.5);
  filter: saturate(1.3) hue-rotate(-8deg) contrast(105%);
}

.polaroid figcaption{
  font-family: "Comic Sans MS", cursive, sans-serif;
  color: var(--acc3);
  opacity: 0.85;
}

/* clear of the card on all sides, not stacked over it */
.polaroid--1{ top: 2%;    left: 0;   transform: rotate(-8deg); }
.polaroid--2{ bottom: 2%; right: 6%; transform: rotate(6deg); }
.polaroid--3{ top: 6%;    right: 0;  transform: rotate(-3deg); }
.polaroid--4{ bottom: 0;  left: 6%;  transform: rotate(5deg); }
.polaroid--5{ top: 42%;   left: -2%; transform: rotate(3deg); }

@media (max-width: 760px){
  .scene{
    flex-direction: column;
    min-height: 0;
    gap: 22px;
    padding: 10px 0;
  }
  .polaroid{
    position: static;
    transform: none !important;
    order: 2;
  }
  .card{ order: 1; }
}

@media (max-width: 420px){
  .card{ transform: rotate(0deg); padding: 26px 20px; }
  .name{ font-size: 1.7rem; }
}
