/* ===== Home Button ===== */
.home-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.home-btn:focus-visible {
  outline: 3px solid #4d96ff;
  outline-offset: 2px;
}

/* ===== How-to-Play Overlay ===== */
.htp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.htp-overlay.show { display: flex; }
.htp-card {
  background: white;
  border-radius: 28px;
  padding: 36px 32px 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.htp-em { font-size: 4rem; }
.htp-title {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: #333;
}
.htp-desc {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}
.htp-btn {
  padding: 12px 36px;
  border: none;
  border-radius: 50px;
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(255,107,107,0.35);
  transition: transform 0.1s, box-shadow 0.1s;
}
.htp-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(255,107,107,0.35); }
.htp-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(255,107,107,0.35); }
.htp-btn:focus-visible {
  outline: 3px solid #4d96ff;
  outline-offset: 2px;
}

/* ===== Confetti Particles ===== */
.confetti-piece {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  animation: confettiFall 1.2s ease-in forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== Screen Reader Only ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Live Region for Announcements ===== */
.live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
