/* ═══════ FIND ME PAGE ═══════ */
body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.2s both;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ═══════ SCRATCH-OFF ═══════ */
.scratch-section {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease 0.4s both;
}

.scratch-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.scratch-container {
  position: relative;
  display: inline-block;
  margin: 0 auto 0.75rem;
  touch-action: none;
}

.scratch-answer {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--accent);
  text-align: center;
  padding: 0.75rem 2.5rem;
  min-width: 280px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  user-select: none;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 4px;
  touch-action: none;
}

.scratch-hint {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
  transition: opacity 0.4s ease;
}

.scratch-reset {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  background: none;
  border: 1px solid var(--muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  margin-top: 0.75rem;
}
.scratch-reset:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════ DIVIDER ═══════ */
.divider {
  width: 40px;
  height: 1px;
  background: var(--muted);
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s both;
}

/* ═══════ CONTENT LAYOUT ═══════ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease 0.6s both;
}

.bio-column { min-width: 0; }

/* ═══════ BIO TEXT WITH BLACKOUT ═══════ */
.bio-text {
  margin-bottom: 2.5rem;
}

.bio-paragraph {
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.bio-word {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--fg);
  cursor: pointer;
  padding: 2px 3px;
  margin: 0 1px;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline;
  user-select: none;
}

.bio-word:hover:not(.blacked-out) {
  color: var(--accent);
}

.bio-word.blacked-out {
  background: var(--bg);
  color: var(--bg);
  cursor: default;
}

.blackout-hint {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.blackout-hint em {
  font-style: normal;
  color: var(--accent);
}

/* ═══════ LIFESPAN COUNTDOWN ═══════ */
.lifespan-section {
  border-top: 1px solid var(--dim);
  padding-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.lifespan-preamble {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: baseline;
  width: 100%;
}

.countdown-unit {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.countdown-value {
  font-family: 'Azeret Mono', monospace;
  font-weight: 300;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--fg-bright);
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
}

.countdown-label {
  font-family: 'Azeret Mono', monospace;
  font-size: clamp(0.4rem, 1vw, 0.55rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
  display: block;
}

.countdown-separator {
  font-family: 'Azeret Mono', monospace;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1;
  animation: blink 2s ease-in-out infinite;
  padding: 0 0.15rem;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ═══════ SIDEBAR ═══════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.draw-image-wrap {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  aspect-ratio: 3/4;
}

.draw-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.draw-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
  z-index: 2;
}

.draw-hint {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 0.4rem;
  opacity: 0.5;
}

.sidebar-label {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-links a {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--dim);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: block;
}

.sidebar-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(248,183,3,0.04);
}

/* ═══════ SCANLINE (z-index override) ═══════ */
.scanline {
  z-index: 9998;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 700px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    order: 2;
  }
  .draw-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .sidebar-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .page-wrapper { padding: 1.5rem 1rem 4rem; }
  .scratch-answer { min-width: 220px; padding: 0.75rem 1.5rem; }
}
