@font-face {
  font-family: "Ma Shan Zheng";
  src: url("./MaShanZheng-Regular.ttf") format("truetype");
  font-display: swap;
}


.break-wind-chime-board {
  position: relative;
  width: 76px;
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.wind-chime {
  position: relative;
  width: 64px;
  height: 308px;
  transform-origin: 50% 0;
  animation: wind-chime-idle 7.2s ease-in-out infinite;
}

.wind-chime.is-ringing {
  animation: none;
}

.wind-chime-line {
  position: absolute;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #abd9f0, #88c7e7);
}

.wind-chime-line-main {
  top: 0;
  height: 136px;
}

.wind-chime-bead {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.98), rgba(255,255,255,0.58) 36%, rgba(173, 214, 234, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.92),
    0 1px 4px rgba(136, 178, 203, 0.2);
}

.wind-chime-bead-top {
  top: 20px;
}

.wind-chime-bead-bottom {
  top: 119px;
}

.wind-chime-bell-button,
.wind-chime-note-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.wind-chime-bell-button {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 58px;
  height: 72px;
  transform: translateX(-50%);
  display: block;
  overflow: visible;
}

.wind-chime-bell-backdrop {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(196, 226, 255, 0.14);
  border: 1px solid rgba(197, 228, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(240, 249, 255, 0.34),
    inset 0 -8px 14px rgba(138, 190, 225, 0.1),
    0 1px 6px rgba(143, 186, 214, 0.1);
  backdrop-filter: blur(12px) saturate(185%) brightness(1.02);
  -webkit-backdrop-filter: blur(12px) saturate(185%) brightness(1.02);
  pointer-events: none;
  z-index: 1;
}

.wind-chime-bell-backdrop::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245,250,255,0.52), rgba(197,228,255,0.06));
  opacity: 0.75;
}

.wind-chime-bell-backdrop::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 28px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(185, 223, 247, 0.34);
  border-top-color: transparent;
  background: linear-gradient(180deg, rgba(220,241,255,0.16), rgba(255,255,255,0));
}

.wind-chime-bell-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.wind-chime-note-button {
  position: absolute;
  top: 130px;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  z-index: 3;
}

.wind-chime-note {
  position: relative;
  width: 48px;
  transform-origin: top center;
  perspective: 720px;
}

.wind-chime-note-pin {
  width: 10px;
  height: 10px;
  margin: 0 auto -2px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.98), rgba(255,255,255,0.62) 35%, rgba(194, 224, 177, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(244, 250, 241, 0.96),
    0 1px 4px rgba(162, 198, 152, 0.22);
}

.wind-chime-note-card {
  position: relative;
  width: 48px;
  height: 164px;
  transform-style: preserve-3d;
  transform-origin: top center;
  will-change: transform;
}

.wind-chime-note-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wind-chime-note-face-front {
  transform: translateZ(0.1px);
}

.wind-chime-note-face-back {
  transform: rotateY(180deg) translateZ(0.1px);
}

.wind-chime-note-paper-body {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px 6px 12px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e7f3de 0%, #d8ebcf 52%, #cde5c3 100%);
  box-shadow:
    inset 0 0 0 1px rgba(244, 250, 241, 0.98),
    0 5px 12px rgba(170, 198, 156, 0.18);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wind-chime-note-paper-body::before,
.wind-chime-note-paper-body::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 214, 222, 0.92) 0 28%, rgba(237, 187, 198, 0.82) 29% 54%, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 28% 58%, rgba(244, 213, 221, 0.86) 0 24%, rgba(255,255,255,0) 25%),
    radial-gradient(circle at 72% 58%, rgba(244, 213, 221, 0.86) 0 24%, rgba(255,255,255,0) 25%);
  opacity: 0.55;
}

.wind-chime-note-paper-body::before {
  top: 10px;
  left: 4px;
  transform: rotate(-16deg);
}

.wind-chime-note-paper-body::after {
  right: 4px;
  bottom: 12px;
  transform: rotate(20deg);
}

.wind-chime-note-lines {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  height: 100%;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wind-chime-note-col {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: pre-wrap;
  font-family: 'Ma Shan Zheng', 'KaiTi', cursive;
  font-size: 12px;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #5d8d5b;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
  max-height: 142px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wind-chime-note-col-right {
  min-height: 142px;
}

.wind-chime-note-col-left {
  min-height: 126px;
  margin-top: 18px;
}

.wind-chime-note-col:empty {
  display: none;
}

@keyframes wind-chime-idle {
  0% { transform: rotate(-0.9deg) translateY(0); }
  50% { transform: rotate(1.15deg) translateY(0.5px); }
  100% { transform: rotate(-0.9deg) translateY(0); }
}

@media (max-width: 960px) {
  .break-wind-chime-board {
    width: 72px;
    margin-top: 6px;
  }

  .wind-chime {
    transform: scale(0.95);
    transform-origin: top center;
  }
}

@media (max-width: 680px) {
  .break-wind-chime-board {
    width: 64px;
    margin-top: 5px;
  }

  .wind-chime {
    width: 56px;
    height: 292px;
  }

  .wind-chime-bell-button {
    width: 50px;
    height: 62px;
  }

  .wind-chime-line-main {
    height: 132px;
  }

  .wind-chime-note-button {
    top: 126px;
    width: 42px;
  }

  .wind-chime-note,
  .wind-chime-note-card,
  .wind-chime-note-paper-body {
    width: 42px;
  }

  .wind-chime-note-card {
    height: 150px;
  }

  .wind-chime-note-paper-body {
    padding: 9px 5px 10px;
  }

  .wind-chime-note-lines {
    gap: 5px;
  }

  .wind-chime-note-col {
    max-height: 131px;
    font-size: 11px;
  }
}
