.nySeoBar {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, #1a140e, #24180f 50%, #1a140e);
  border-bottom: 1px solid rgba(247, 229, 121, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.nySeoBar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 10px 8px;
  color: #ededed;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  animation: nyBarPulse 2.8s ease-in-out infinite;
}
.nySeoBar strong {
  background-image: linear-gradient(90deg, #f7e579 0%, #df9339 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nySeoBar__more {
  color: #1b1b1b;
  background: linear-gradient(90deg, #f7e579 0%, #df9339 100%);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 768px) {
  .nySeoBar a { font-size: 13px; padding: 8px 4px; }
}

.nyTree {
  position: fixed;
  left: 16px;
  bottom: 22px;
  z-index: 11000;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.nyTree:hover {
  transform: translateY(-3px) scale(1.04);
}
.nyTree.is-dim {
  opacity: 0.28;
  pointer-events: none;
}
.nyTree__glow {
  position: absolute;
  inset: 8px 10px 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 229, 121, 0.45), rgba(247, 229, 121, 0) 70%);
  animation: nyGlow 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.nyTree__svg {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 108px;
  overflow: visible;
}
.nyTree__star {
  transform-origin: 40px 12px;
  animation: nyTwinkle 1.15s ease-in-out infinite;
}
.nyTree__light {
  animation: nyBlink 1.1s ease-in-out infinite;
}
.nyTree__light.l1 { fill: #ff4d4d; animation-delay: 0s; }
.nyTree__light.l2 { fill: #ffe566; animation-delay: 0.12s; }
.nyTree__light.l3 { fill: #6ecbff; animation-delay: 0.24s; }
.nyTree__light.l4 { fill: #ff9a3c; animation-delay: 0.36s; }
.nyTree__light.l5 { fill: #fff; animation-delay: 0.48s; }
.nyTree__light.l6 { fill: #ff4d4d; animation-delay: 0.6s; }
.nyTree__light.l7 { fill: #6ecbff; animation-delay: 0.18s; }
.nyTree__light.l8 { fill: #ffe566; animation-delay: 0.42s; }
.nyTree__light.l9 { fill: #b388ff; animation-delay: 0.72s; }
.nyTree__label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7e579;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.nyModal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.nyModal.is-open {
  display: flex;
  animation: nyFadeIn 0.28s ease;
}
.nyModal.is-open .nyModal__panel {
  animation: nyPopIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.nyModal.is-closing {
  display: flex;
  animation: nyFadeOut 0.28s ease forwards;
}
.nyModal.is-closing .nyModal__panel {
  animation: nyPopOut 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nyModal__tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 12px 0;
}
.nyModal__tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 229, 121, 0.3);
  background: transparent;
  color: #f7e579;
  font-weight: 800;
  cursor: pointer;
}
.nyModal__tab.is-on {
  background: linear-gradient(90deg, #f7e579 0%, #df9339 100%);
  color: #1b1b1b;
  border-color: transparent;
}
.nyModal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(94vh, 980px);
  display: flex;
  flex-direction: column;
  background: #120f0c;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(247, 229, 121, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(223, 147, 57, 0.18);
  transform-origin: 8% 100%;
}
.nyModal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.nyModal__close:hover {
  background: rgba(223, 147, 57, 0.85);
}
.nyModal__poster {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.nyModal__poster img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 78px);
  object-fit: contain;
}
.nyModal__bar {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #1b1712;
  border-top: 1px solid rgba(247, 229, 121, 0.16);
}
.nyModal__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7e579 0%, #df9339 100%);
  color: #1b1b1b;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nyModal__call:hover {
  opacity: 0.94;
}
.nyModal__fold {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes nyBlink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 3px currentColor); }
  50% { opacity: 0.18; filter: drop-shadow(0 0 0 transparent); }
}
@keyframes nyTwinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.55; transform: scale(0.86) rotate(8deg); }
}
@keyframes nyGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes nyBarPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(247,229,121,0)); }
  50% { filter: drop-shadow(0 0 8px rgba(247,229,121,.35)); }
}
@keyframes nyFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nyFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes nyPopIn {
  from { opacity: 0; transform: scale(0.18) translate(-38vw, 32vh); }
  to { opacity: 1; transform: scale(1) translate(0, 0); }
}
@keyframes nyPopOut {
  from { opacity: 1; transform: scale(1) translate(0, 0); }
  to { opacity: 0; transform: scale(0.18) translate(-38vw, 32vh); }
}

@media (max-width: 768px) {
  .nyTree {
    left: 8px;
    bottom: 14px;
    width: 74px;
  }
  .nyTree__svg {
    width: 62px;
    height: 86px;
  }
  .nyTree__label {
    font-size: 9px;
  }
  .nyModal {
    padding: 8px;
    align-items: flex-end;
  }
  .nyModal__panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px 14px 10px 10px;
  }
  .nyModal__poster img {
    max-height: calc(94vh - 72px);
  }
  .nyModal__call {
    min-width: 0;
    flex: 1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nyTree__light,
  .nyTree__star,
  .nyTree__glow,
  .nySeoBar a {
    animation: none !important;
  }
  .nyModal.is-open,
  .nyModal.is-open .nyModal__panel,
  .nyModal.is-closing,
  .nyModal.is-closing .nyModal__panel {
    animation: none !important;
  }
}
