.wwf-sky-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #EDE2D2;
  border: 1px solid rgba(43, 29, 22, 0.14);
}
.wwf-sky-tab {
  min-height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #69564C;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}
.wwf-sky-tab.is-active {
  background: #7E2534;
  color: #FFF9F4;
}
.wwf-sky-guide {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F5EDE1;
  border: 1px solid rgba(169, 129, 71, 0.35);
  font-size: 13px;
  line-height: 1.45;
  color: #3D2C23;
}
.wwf-sky-reset {
  font-family: var(--wwf-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #F6EADB;
  background: transparent;
  border: 1px solid rgba(246, 234, 219, 0.32);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.wwf-sky-reset:hover { border-color: #D9B872; }
.wwf-sky-stage {
  background: linear-gradient(180deg, #0C1220 0%, #162038 100%);
  color: #F6EADB;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(217, 184, 114, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wwf-sky-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wwf-sky-pill {
  font-family: var(--wwf-font-sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: #F6EADB;
  background: rgba(13, 19, 34, 0.72);
  border: 1px solid rgba(217, 184, 114, 0.45);
  padding: 5px 11px;
  border-radius: 999px;
}
.wwf-star-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wwf-star-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(43, 29, 22, 0.18);
  background: #F5EDE1;
  color: #2B1D16;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.wwf-star-choice:hover { transform: translateY(-1px); border-color: #A98147; }
.wwf-star-choice.is-selected {
  background: #182036;
  border-color: #D9B872;
  color: #F6EADB;
  font-weight: 600;
}
.wwf-sky-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 184, 114, 0.3);
  background: #0C1220;
}
.wwf-sky-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wwf-sky-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.wwf-twinkle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 209, 0.95) 0%, rgba(255, 244, 209, 0) 70%);
  animation: wwf-sky-twinkle 3.2s ease-in-out infinite;
}
.wwf-meteor {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 244, 209, 0), rgba(255, 244, 209, 0.95));
  border-radius: 999px;
  transform: rotate(-22deg);
  opacity: 0;
  animation: wwf-shoot 7.5s ease-in-out infinite;
}
.wwf-sky-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.wwf-sky-nodes {
  position: absolute;
  inset: 0;
}
.wwf-sky-node {
  position: absolute;
  transform: translate(-50%, -45%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
  transition: transform 180ms ease;
}
.wwf-sky-node:hover { transform: translate(-50%, -48%) scale(1.1); z-index: 6; }
.wwf-sky-node:not(.is-open) .wwf-sky-icon { animation: wwf-star-pulse 3.6s ease-in-out infinite; }
.wwf-sky-node.is-just-lit { animation: wwf-star-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) 1; }
.wwf-sky-node.is-open {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px dashed rgba(246, 234, 219, 0.55);
  background: rgba(13, 19, 34, 0.56);
  color: rgba(246, 234, 219, 0.9);
  font-family: var(--wwf-font-sans);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  transform: translate(-50%, -50%);
}
.wwf-sky-node.is-open.is-targeted {
  border-style: solid;
  border-color: #E6C374;
  background: rgba(217, 184, 114, 0.36);
  box-shadow: 0 0 0 4px rgba(217, 184, 114, 0.25);
}
.wwf-sky-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(246, 216, 140, 0.72));
}
.wwf-sky-tag {
  background: rgba(13, 19, 34, 0.9);
  color: #F6EADB;
  border: 1px solid rgba(217, 184, 114, 0.65);
  border-radius: 999px;
  padding: 1px 8px;
  font-family: var(--wwf-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wwf-sky-node.is-active .wwf-sky-tag, .wwf-sky-node-active .wwf-sky-tag {
  background: #D9B872;
  color: #18100C;
  border-color: #FFF4D1;
}
.wwf-sky-preview {
  background: rgba(252, 248, 241, 0.96);
  color: #2B1D16;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 184, 114, 0.55);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
@keyframes wwf-sky-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes wwf-star-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(246, 216, 140, 0.6)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 240, 188, 0.95)); }
}
@keyframes wwf-shoot {
  0%, 72% { transform: translate(0, 0) rotate(-22deg); opacity: 0; }
  78% { opacity: 0.95; }
  92%, 100% { transform: translate(-240px, 95px) rotate(-22deg); opacity: 0; }
}
@keyframes wwf-star-pop {
  0% { transform: translate(-50%, -45%) scale(0.45); }
  65% { transform: translate(-50%, -45%) scale(1.25); }
  100% { transform: translate(-50%, -45%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wwf-twinkle-dot, .wwf-meteor, .wwf-sky-icon { animation: none !important; }
}
@media (max-width: 520px) {
  .wwf-sky-stage { padding: 14px; }
  .wwf-sky-canvas { aspect-ratio: 4 / 3.6; }
  .wwf-sky-icon { width: 28px; height: 28px; }
  .wwf-sky-tag { font-size: 12px; padding: 1px 6px; max-width: 64px; }
}