/* First-launch title card (js/titlecard.js). Above every screen and
   overlay; fades out as level 1 opens underneath. */
#title-card {
  position: fixed; inset: 0; z-index: 200; background: #07050e;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: env(safe-area-inset-top, 0px) 24px env(safe-area-inset-bottom, 0px);
  transition: opacity 0.45s ease;
}
#title-card.tc-out { opacity: 0; pointer-events: none; }
/* Level 1's real board, blurred and dimmed, with the answer cells' lights
   on an identical grid laid exactly over it. */
#title-card .tc-board, #title-card .tc-lamps {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(84vw, 360px); aspect-ratio: 1; display: grid; gap: 6px;
}
#title-card .tc-board { filter: blur(5px) brightness(0.5); }
#title-card .tc-cell { border-radius: 10px; }
#title-card .tc-lamp {
  border-radius: 10px; opacity: 0; filter: blur(3px);
  background: radial-gradient(circle, rgba(255,236,170,0.95) 0%, rgba(240,200,90,0.6) 45%, rgba(200,168,78,0) 75%);
  animation: tc-lamp 3s ease-in-out infinite;
}
@keyframes tc-lamp {
  0% { opacity: 0; transform: scale(0.85); }
  14% { opacity: 1; transform: scale(1); }
  40% { opacity: 0.75; }
  70%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { #title-card .tc-lamp { animation: none; } }
#title-card .tc-content { position: relative; display: flex; flex-direction: column; align-items: center; }
#title-card .tc-logo { width: 120px; height: auto; margin-bottom: 16px; filter: drop-shadow(0 0 22px rgba(200,168,78,0.35)); }
#title-card .tc-name {
  font-family: 'Georgia', serif; font-weight: bold; color: #f0d685; font-size: 34px;
  letter-spacing: 4px; line-height: 1.15; text-shadow: 0 0 26px rgba(200,168,78,0.45);
}
#title-card .tc-kind { font-family: 'Georgia', serif; font-style: italic; color: #e8dcc0; font-size: 19px; margin-top: 12px; }
#title-card .tc-play {
  position: relative; overflow: hidden; margin-top: 40px; width: 200px; height: 56px;
  border: none; border-radius: 999px; background: #c8a84e; color: #1a1608; cursor: pointer;
  font-family: 'Georgia', serif; font-weight: bold; letter-spacing: 3px; text-transform: uppercase; font-size: 17px;
  box-shadow: 0 0 22px rgba(200,168,78,0.45);
}
/* The 3-second auto-start, shown as a fill sweeping across the button. */
#title-card .tc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,246,214,0.45); animation: tc-fill 3s linear forwards; }
@keyframes tc-fill { to { width: 100%; } }
#title-card .tc-label { position: relative; }
#title-card .tc-hint { margin-top: 12px; min-height: 16px; font-size: 11.5px; color: #8a7a58; letter-spacing: 0.5px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
