/* Let Her Nail – Nail Play｜所有選擇器皆以 .lhn-np 開頭，不影響其他頁面與既有 lhn-* 樣式 */

.lhn-np {
  --lhn-np-surface: #1a1a1a;
  --lhn-np-line: #2e2e2e;
  --lhn-np-line-soft: #242424;
  --lhn-np-text: #d8d8d8;
  --lhn-np-muted: #8a8a8a;
  --lhn-np-white: #fff;
  --lhn-np-accent: #a19982;
  --lhn-np-heading: var(--wp--preset--font-family--heading-font, serif);
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  color: var(--lhn-np-text);
  box-sizing: border-box;
}
.lhn-np *,
.lhn-np *::before,
.lhn-np *::after {
  box-sizing: border-box;
}
.lhn-np [hidden] {
  display: none !important;
}

/* ---------- 載入／備援 ---------- */
.lhn-np .lhn-np-loading,
.lhn-np .lhn-np-fallback,
.lhn-np .lhn-np-noscript {
  margin: 0;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--lhn-np-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  border: 1px solid var(--lhn-np-line-soft);
  border-radius: 3px;
}

/* ---------- 輪盤 ---------- */
.lhn-np .lhn-np-roulette {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lhn-np .lhn-np-wheel-box {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 1.25rem auto 0;
}
.lhn-np .lhn-np-wheel {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  /* 旋轉時方形外框的角會凸出、蓋住下方按鈕；只讓圓形本體接收點擊 */
  pointer-events: none;
}
.lhn-np .lhn-np-wheel-rim,
.lhn-np .lhn-np-seg-fill,
.lhn-np .lhn-np-wheel-inner {
  pointer-events: visiblePainted;
}
.lhn-np .is-spinning .lhn-np-wheel {
  cursor: progress;
}
.lhn-np .lhn-np-wheel-rim {
  fill: #0f0f0f;
  stroke: var(--lhn-np-line);
  stroke-width: 1;
}
.lhn-np .lhn-np-seg-fill {
  fill: #171717;
  stroke: #2a2a2a;
  stroke-width: 1;
}
.lhn-np .lhn-np-seg--alt .lhn-np-seg-fill {
  fill: #1f1f1f;
}
.lhn-np .lhn-np-seg-label {
  fill: #e6e6e6;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  pointer-events: none;
  user-select: none;
}
.lhn-np .lhn-np-seg-sub {
  fill: #8f8f8f;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}
.lhn-np .lhn-np-seg--hl .lhn-np-seg-fill {
  fill: #f2f2f2;
}
.lhn-np .lhn-np-seg--hl .lhn-np-seg-label {
  fill: #111;
}
.lhn-np .lhn-np-seg--hl .lhn-np-seg-sub {
  fill: #5c5c5c;
}
.lhn-np .lhn-np-seg-fill,
.lhn-np .lhn-np-seg-text {
  transition: opacity 0.25s ease;
}
.lhn-np .lhn-np-seg.is-out .lhn-np-seg-text {
  opacity: 0.22;
}
.lhn-np .lhn-np-seg.is-out .lhn-np-seg-fill {
  opacity: 0.45;
}
.lhn-np .lhn-np-wheel-inner {
  fill: #121212;
  stroke: var(--lhn-np-line);
  stroke-width: 1;
}
.lhn-np .lhn-np-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: var(--lhn-np-white);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  pointer-events: none;
}
/* 指針：杏仁甲形，品牌 Primary 色 */
.lhn-np .lhn-np-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 22px;
  height: 34px;
  transform: translateX(-50%);
  background: var(--lhn-np-accent);
  border-radius: 50% 50% 50% 50% / 32% 32% 68% 68%;
  box-shadow: 0 0 0 3px #121212;
  pointer-events: none;
  z-index: 2;
}

.lhn-np .lhn-np-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ---------- 按鈕（沿用站內按鈕規格） ---------- */
.lhn-np .lhn-np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  margin: 0;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--lhn-np-white);
  border-radius: 2px;
  background: var(--lhn-np-white);
  color: #111;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
@media (hover: hover) {
  .lhn-np .lhn-np-btn:not(.is-disabled):not([disabled]):hover {
    background: #e4e4e4;
    border-color: #e4e4e4;
    color: #111;
  }
  .lhn-np .lhn-np-btn--ghost:not(.is-disabled):not([disabled]):hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--lhn-np-white);
  }
}
.lhn-np .lhn-np-btn:not(.is-disabled):not([disabled]):active {
  opacity: 0.85;
}
.lhn-np .lhn-np-btn--ghost {
  background: transparent;
  color: var(--lhn-np-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.lhn-np .lhn-np-btn[disabled],
.lhn-np .lhn-np-btn.is-disabled {
  opacity: 0.36;
  cursor: default;
}
.lhn-np .lhn-np-btn:focus-visible,
.lhn-np .lhn-np-wheel:focus-visible,
.lhn-np .lhn-np-result-name:focus-visible {
  outline: 2px solid var(--lhn-np-accent);
  outline-offset: 3px;
}
.lhn-np .lhn-np-result-name:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- 結果卡 ---------- */
.lhn-np .lhn-np-result {
  width: 100%;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--lhn-np-line);
  scroll-margin-top: 1.5rem;
}
.lhn-np .lhn-np-result.is-in {
  animation: lhn-np-in 0.32s ease-out both;
}
@keyframes lhn-np-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lhn-np .lhn-np-result-label {
  margin: 0;
  color: var(--lhn-np-muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  line-height: 1.7;
}
.lhn-np .lhn-np-result-name {
  margin: 0.5rem 0 0;
  color: var(--lhn-np-white);
  font-family: var(--lhn-np-heading);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.lhn-np .lhn-np-result-zh {
  margin: 0.35rem 0 0;
  color: #9b9b9b;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.lhn-np .lhn-np-result-intro {
  margin: 1.25rem 0 0;
  color: var(--lhn-np-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}
.lhn-np .lhn-np-result-tagline {
  margin: 0.6rem 0 0;
  color: var(--lhn-np-white);
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  line-height: 1.8;
}
.lhn-np .lhn-np-result-intro + .lhn-np-result-tagline {
  margin-top: 0.25rem;
}

.lhn-np .lhn-np-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.lhn-np .lhn-np-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

.lhn-np .lhn-np-details {
  margin: 2rem 0 0;
  padding: 0;
}
.lhn-np .lhn-np-detail {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--lhn-np-line-soft);
}
.lhn-np .lhn-np-detail:last-child {
  border-bottom: 1px solid var(--lhn-np-line-soft);
}
.lhn-np .lhn-np-detail-label {
  margin: 0;
  color: var(--lhn-np-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  line-height: 1.9;
}
.lhn-np .lhn-np-detail-value {
  margin: 0;
  color: #e8e8e8;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.lhn-np .lhn-np-why {
  margin-top: 1.75rem;
  padding: 1.2rem 1.35rem;
  background: var(--lhn-np-surface);
  border: 1px solid var(--lhn-np-line);
  border-radius: 3px;
}
.lhn-np .lhn-np-why-label {
  margin: 0 0 0.35rem;
  color: var(--lhn-np-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.lhn-np .lhn-np-why-text {
  margin: 0;
  color: var(--lhn-np-text);
  font-size: 1rem;
  line-height: 1.85;
}
.lhn-np .lhn-np-why-text + .lhn-np-why-text {
  margin-top: 0.35rem;
}

.lhn-np .lhn-np-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}
.lhn-np .lhn-np-action {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lhn-np .lhn-np-action .lhn-np-btn {
  max-width: none;
}
.lhn-np .lhn-np-action-note {
  margin: 0.45rem 0 0;
  color: #7c7c7c;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 風格索引（伺服器端輸出，SEO 與無 JS 備援） ---------- */
.lhn-np-index {
  margin: 0;
  padding: 0;
}
.lhn-np-index .lhn-np-index-item {
  padding: 1.35rem 0;
  border-top: 1px solid #262626;
}
.lhn-np-index .lhn-np-index-item:last-child {
  border-bottom: 1px solid #262626;
}
.lhn-np-index .lhn-np-index-name {
  margin: 0;
  color: #fff;
  font-family: var(--wp--preset--font-family--heading-font, serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
}
.lhn-np-index .lhn-np-index-zh {
  margin-left: 0.6rem;
  color: #8a8a8a;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
}
.lhn-np-index .lhn-np-index-tagline {
  margin: 0.35rem 0 0;
  color: #d8d8d8;
  font-size: 1rem;
  line-height: 1.85;
}
.lhn-np-index .lhn-np-index-meta {
  margin: 0.25rem 0 0;
  color: #8a8a8a;
  font-size: 0.88rem;
  line-height: 1.8;
}

.lhn-np .lhn-np-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 玩法切換 ---------- */
.lhn-np .lhn-np-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 2rem;
  scroll-margin-top: 1rem;
}
.lhn-np .lhn-np-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 56px;
  margin: 0;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--lhn-np-line);
  border-radius: 2px;
  background: transparent;
  color: var(--lhn-np-white);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lhn-np .lhn-np-switch-en {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
.lhn-np .lhn-np-switch-zh {
  color: var(--lhn-np-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.lhn-np .lhn-np-switch-btn[aria-pressed="true"] {
  background: var(--lhn-np-white);
  border-color: var(--lhn-np-white);
  color: #111;
}
.lhn-np .lhn-np-switch-btn[aria-pressed="true"] .lhn-np-switch-zh {
  color: #555;
}

/* ---------- 題目步驟 ---------- */
.lhn-np .lhn-np-steps-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.lhn-np .lhn-np-progress-num {
  margin: 0;
  color: #9b9b9b;
  font-family: var(--lhn-np-heading);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.lhn-np .lhn-np-progress-bar {
  display: block;
  flex: 1 1 auto;
  height: 1px;
  background: var(--lhn-np-line);
}
.lhn-np .lhn-np-progress-bar i {
  display: block;
  height: 1px;
  background: var(--lhn-np-white);
  transition: width 0.25s ease;
}
.lhn-np .lhn-np-steps-note {
  margin: 0 0 1rem;
  color: var(--lhn-np-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.lhn-np .lhn-np-step-title {
  margin: 0 0 1.25rem;
  color: var(--lhn-np-white);
  font-family: var(--lhn-np-heading);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.5;
}
.lhn-np .lhn-np-step-title:focus {
  outline: none;
}
.lhn-np .lhn-np-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.lhn-np .lhn-np-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  min-height: 52px;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--lhn-np-line);
  border-radius: 3px;
  background: transparent;
  color: var(--lhn-np-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.lhn-np .lhn-np-option-label {
  font-size: 1rem;
  line-height: 1.5;
}
.lhn-np .lhn-np-option-en {
  color: var(--lhn-np-white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.lhn-np .lhn-np-option-zh,
.lhn-np .lhn-np-option-sub {
  color: var(--lhn-np-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.lhn-np .lhn-np-option[aria-pressed="true"] {
  border-color: var(--lhn-np-white);
  background: #1f1f1f;
  color: var(--lhn-np-white);
}
.lhn-np .lhn-np-options--cards .lhn-np-option {
  min-height: 84px;
  padding: 1rem;
}
.lhn-np .lhn-np-options--zodiac {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.lhn-np .lhn-np-option--sign {
  align-items: center;
  min-height: 84px;
  padding: 0.7rem 0.25rem;
  text-align: center;
}
.lhn-np .lhn-np-option--sign .lhn-np-option-label {
  color: var(--lhn-np-white);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.lhn-np .lhn-np-option--sign .lhn-np-option-en {
  color: var(--lhn-np-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.lhn-np .lhn-np-option--sign .lhn-np-option-sub {
  color: #6e6e6e;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}
.lhn-np .lhn-np-back,
.lhn-np .lhn-np-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 1rem 0 0;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: var(--lhn-np-muted);
  font: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-color: #4a4a4a;
  text-underline-offset: 0.3em;
  cursor: pointer;
  touch-action: manipulation;
}

/* ---------- 輪盤候選範圍 ---------- */
.lhn-np .lhn-np-pool {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.25rem;
  text-align: center;
}
.lhn-np .lhn-np-pool-text {
  margin: 0;
  color: var(--lhn-np-text);
  font-size: 0.92rem;
  line-height: 1.8;
}
.lhn-np .lhn-np-pool .lhn-np-link {
  margin-top: 0.1rem;
}

/* ---------- 結果（題目類玩法，結果取代題目） ---------- */
.lhn-np .lhn-np-result--top {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.lhn-np .lhn-np-panel + .lhn-np-panel {
  margin-top: 0.6rem;
}
.lhn-np .lhn-np-result-note {
  margin: 0.9rem 0 0;
  color: #7c7c7c;
  font-size: 0.82rem;
  line-height: 1.8;
}

@media (hover: hover) {
  .lhn-np .lhn-np-switch-btn[aria-pressed="false"]:hover,
  .lhn-np .lhn-np-option:hover {
    border-color: #5a5a5a;
    color: var(--lhn-np-white);
  }
  .lhn-np .lhn-np-back:hover,
  .lhn-np .lhn-np-link:hover {
    color: var(--lhn-np-white);
  }
}
.lhn-np .lhn-np-switch-btn:focus-visible,
.lhn-np .lhn-np-option:focus-visible,
.lhn-np .lhn-np-back:focus-visible,
.lhn-np .lhn-np-link:focus-visible {
  outline: 2px solid var(--lhn-np-accent);
  outline-offset: 2px;
}

@media (min-width: 600px) {
  .lhn-np .lhn-np-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lhn-np .lhn-np-options--zodiac {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 359px) {
  .lhn-np .lhn-np-options--zodiac {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lhn-np .lhn-np-options--cards .lhn-np-option {
    padding: 0.85rem 0.75rem;
  }
}

@media (min-width: 782px) {
  .lhn-np .lhn-np-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .lhn-np .lhn-np-detail {
    grid-template-columns: 8em minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lhn-np .lhn-np-result.is-in {
    animation: none;
  }
  .lhn-np .lhn-np-btn,
  .lhn-np .lhn-np-option,
  .lhn-np .lhn-np-switch-btn,
  .lhn-np .lhn-np-seg-fill,
  .lhn-np .lhn-np-seg-text,
  .lhn-np .lhn-np-progress-bar i {
    transition: none;
  }
}
