/* Fondo especial para japonés */
body {
  background: linear-gradient(to bottom, #fff 70%, #f5f5f5 100%);
}

.kanji-deco {
  position: fixed;
  font-size: 3rem;
  opacity: 0.2;   /* ← súbele este valor (0.2–0.3 es decente) */
  z-index: -1;
  animation: float 8s infinite ease-in-out;
}


@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.kanji-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 20px auto;
}

.kanji-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #555; /* borde externo */
  background-image: 
    linear-gradient(to right, #555 1px, transparent 1px),
    linear-gradient(to bottom, #555 1px, transparent 1px);
  background-size: 50% 100%, 100% 50%; /* líneas que dividen en 4 */
  z-index: 1;
}

#kanji-target {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* arriba de la cuadrícula */
}

.sakura-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4; /* <--- Ajusta entre 0 (invisible) y 1 (total) */
}
