/* ================================================================
   Layout — Stage, card, header, footer, accessibility
   ================================================================ */

/* ── Layout ─────────────────────────────────────────────────────── */
.stage {
  width: 100%; max-width: var(--max-width);
  padding: 16px; margin: 0 auto;
  background: transparent; flex-shrink: 0;
  position: relative; z-index: 1;
  animation: fadeInUp 1s ease-out;
}

/* ── Header ─────────────────────────────────────────────────────── */
header h1 {
  margin: 0 0 8px; font-size: clamp(18px, 5vw, 28px);
  color: var(--accent); text-align: center; line-height: 1.3;
  animation: glowPulse 3s ease-in-out infinite, titleReveal 1.2s ease-out;
}

#subtitle,
#subtitle-2 {
  color: var(--text-secondary); margin: 0 0 16px;
  font-size: clamp(11px, 3vw, 13px); opacity: 0.95;
  text-align: center; line-height: 1.5;
  animation: fadeIn 1.5s ease-out 0.3s both;
}

/* ── Main Card ──────────────────────────────────────────────────── */
.card {
  display: flex; gap: 20px; align-items: stretch; flex-direction: column;
  width: 100%; background: rgba(255,255,255,0.01);
  padding: 16px; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  position: relative; backdrop-filter: blur(2px);
  animation: cardSlideIn 0.8s ease-out 0.5s both;
}

.card::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px; padding: 1px;
  background: linear-gradient(135deg, var(--purple-glow), transparent 50%, rgba(255,239,119,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; animation: borderGlow 4s ease-in-out infinite;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.meta {
  margin-top: 16px; font-size: clamp(10px, 2.5vw, 12px);
  color: #97b0d8; text-align: center; animation: fadeIn 1s ease-out 1.4s both;
}

.meta p { margin: 0; }

.meta a {
  color: var(--accent); text-decoration: none;
  transition: all 0.3s ease; position: relative;
}

.meta a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}

.meta a:hover::after { width: 100%; }
.meta a:hover { opacity: 0.8; text-shadow: 0 0 10px rgba(255,239,119,0.5); }

/* ── Accessibility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: var(--bg); padding: 8px 16px;
  z-index: 1000; text-decoration: none; font-weight: 600;
  border-radius: 0 0 4px 0; transition: top 0.3s ease;
}

.skip-link:focus { top: 0; }
