@charset "UTF-8";
/* nani CSS Document */

body {
  background: #000;
  color: #fff;
  text-align: center;
  font-family: sans-serif;
  margin: 0;
  padding: 2em 1em;
}

.kanji-road {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  overflow-x: auto;    /* Changed */
  overflow-y: hidden;
  max-width: 100%;     /* New */
}

.kanji-img {
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translateX(200px);
}

.kanji-img.animate {
  animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Toggle text (the line that says "... Tap to see the power of kanji.") */
.expand-toggle {
  display: block;
  margin-top: 1em;
  text-align: left;
  color: #ceaa64;
  font-size: 1em;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}

.expandable-note {
  color: #ceaa64;
  max-width: 90%;
  margin: 2em auto 0;
  text-align: left;
  font-size: 1.15em;
  line-height: 1.6;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* ← match your project */
  font-weight: normal; /* or 400 */
}

.hint-intro {
  color: #fff;
  font-size: 1em;
  text-align: center;
  margin: 1.5em 0;
  cursor: pointer;
}

#kanjiReveal {
  display: none;
  justify-content: center;
  gap: 0.5em;
  margin: -1em 0 0 0;
}

.show-kanji #tapHint {
  display: none;
}

.show-kanji #kanjiReveal {
  display: flex;
}

.hint-paragraph {
  color: #ceaa64;
  line-height: 1.6;
}

.hidden-kanji {
  display: none;
  margin-top: 1.2em;
}

.hidden-kanji.show {
  display: flex;
}

.kanji-img2 {
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translateX(200px);
}

.kanji-img2.animate {
  animation: slideInLeft 0.6s ease forwards;
}

.hint-paragraph {
  font-size: 0.95em;
  color: #ceaa64;
  line-height: 1.5em;
  max-width: 400px;
  margin: 0 auto 1.5em auto;
  text-align: left;
}

.hint-intro.blink {
  animation: blinkFade 1.8s ease-in-out infinite;
}

@keyframes blinkFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}