:root { --hn-gold: #ffc35a; --hn-gap: #ffffff; }
.dark { --hn-gap: #0e1522; }

.hn-title { margin-top: 0; }
.hn-title-o { display: inline-block; width: 0.6em; height: 0.6em; margin: 0 0.03em; transform: translateY(-0.12em); }

.hn-timbres { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.hn-timbres::-webkit-scrollbar { display: none; }
.hn-timbres > :first-child { margin-left: auto; }
.hn-timbres > :last-child { margin-right: auto; }
.hn-timbres .lg-mode { flex: none; height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; white-space: nowrap; }

.hn-screen > .ftn-main { flex: none; min-height: calc(100vh - 224px); min-height: calc(100svh - 224px); }
.hn-screen .ftn-pad { border-radius: 50%; }
.hn-slot { display: flex; align-items: center; justify-content: center; flex: none; height: 72px; padding: 0 16px; }

.hn-bar {
  position: relative; display: flex; align-items: center; overflow: hidden; width: min(520px, 100%); height: 36px; border-radius: 9999px;
  background: var(--lg-track); color: var(--lg-text);
}
.hn-bar-label { padding: 0 18px; font-size: 14px; font-weight: 800; letter-spacing: 1px; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.hn-fill { position: absolute; inset: 0; display: flex; align-items: center; background: var(--hn-gold); color: #1d1405; transition: clip-path 0.35s ease-out; }
.hn-crack { position: absolute; top: -50%; width: 12px; height: 200%; margin-left: -6px; fill: none; stroke: var(--hn-gap); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hn-bar.broken { opacity: 0.6; }

.hn-bar.strike { animation: ftn-shake 0.42s ease-in-out; }
.hn-bar.enter { animation: hn-enter 0.4s ease-out; }
.hn-bar.sealed { animation: hn-seal 0.4s ease-out; }
.hn-bar.drop { animation: hn-drop 0.5s ease-in forwards; }
.hn-bar.landed { animation: hn-land 0.35s ease-out; }
.hn-bar.shatter { animation: ftn-shake 0.42s ease-in-out, hn-fall 0.9s ease-in 0.5s forwards; }
@keyframes hn-enter { from { opacity: 0; transform: translateY(-48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hn-seal { 0% { filter: brightness(1); } 40% { filter: brightness(1.8) drop-shadow(0 0 14px var(--hn-gold)); } 100% { filter: brightness(1); } }
@keyframes hn-drop { to { opacity: 0; transform: translateY(60vh) scale(0.9); } }
@keyframes hn-land { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hn-fall { to { opacity: 0; transform: translateY(140px) rotate(12deg); } }

.hn-pile { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; padding: 8px 16px 48px; }
.hn-pile:empty { display: none; }
.lg-results .hn-pile { padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .hn-bar.strike, .hn-bar.enter, .hn-bar.sealed, .hn-bar.landed { animation: none; }
  .hn-bar.drop, .hn-bar.shatter { animation: hn-fade 0.4s linear forwards; }
  .hn-fill { transition: none; }
}
@keyframes hn-fade { to { opacity: 0; } }
