/* duduangfree.buzz — horoscope.css : วงล้อ 12 ราศี + แผงผลลัพธ์แบบ HUD */

/* ---------- วงล้อ ---------- */
.hz-stage { padding-top: 4px; }
.hz-wheel-wrap { display: flex; justify-content: center; }
.hz-wheel { overflow: hidden; position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.hz-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.hz-ring-a { inset: 8.5%; border: 1px solid var(--border-2); box-shadow: 0 0 40px -14px var(--red-glow), inset 0 0 40px -18px var(--red-glow); }
.hz-ring-b { inset: 3%; border: 1px dashed rgba(247, 197, 72, .35); animation: hzRot 60s linear infinite; }
.hz-ring-c { inset: 21%; border: 1px solid rgba(168,85,247, .35); background: radial-gradient(circle, rgba(42,16,72, .55), rgba(7,3,15, .2) 70%); }
.hz-wheel.hz-spin .hz-ring-b { animation: hzRot .9s var(--ease-out) 1; }
@keyframes hzRot { to { transform: rotate(360deg); } }

.hz-node {
  position: absolute; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 50%; border: 1px solid var(--border-2); background: rgba(14,6,24, .92); color: var(--text); font: inherit; cursor: pointer; padding: 0;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s, background .25s;
}
.hz-node-glyph { font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', serif; font-size: clamp(1.15rem, 5.2vw, 1.7rem); line-height: 1; color: var(--gold-2); text-shadow: 0 0 10px var(--gold-glow); }
.hz-node-name { font-family: var(--font-head); font-size: clamp(.56rem, 2.2vw, .72rem); color: var(--text-2); line-height: 1.1; }
.hz-node:hover { transform: translate(-50%, -50%) scale(1.14); border-color: var(--red); box-shadow: 0 0 22px -4px var(--red); background: rgba(168,85,247, .14); }
.hz-node.active { border-color: var(--gold); background: linear-gradient(180deg, rgba(247, 197, 72, .28), rgba(168,85,247, .2)); box-shadow: 0 0 0 2px rgba(247, 197, 72, .35), 0 0 28px -2px var(--gold); transform: translate(-50%, -50%) scale(1.12); }
.hz-node.active .hz-node-glyph { color: #fff6dc; }
.hz-node:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.hz-hub {
  position: absolute; inset: 24%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; padding: 6px;
}
.hz-hub-glyph { font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', serif; font-size: clamp(2.2rem, 12vw, 3.6rem); line-height: 1; color: var(--gold-2); text-shadow: 0 0 18px var(--gold), 0 0 40px var(--red); animation: hzPulse 3s ease-in-out infinite; }
.hz-hub-name { font-family: var(--font-head); font-size: clamp(.9rem, 4vw, 1.25rem); color: var(--text); }
.hz-hub-sub { font-size: .62rem; letter-spacing: .22em; color: var(--red-2); }
@keyframes hzPulse { 50% { transform: scale(1.07); filter: brightness(1.25); } }
.hz-find { margin-top: 12px; }

/* ---------- ผลลัพธ์ ---------- */
.hz-result-sec { padding-top: 22px; scroll-margin-top: 76px; }
.hz-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hz-result [data-seq] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.hz-result [data-seq].hz-in { opacity: 1; transform: none; }
.hz-more.hz-in { animation: hzFade .6s ease both; }
@keyframes hzFade { from { opacity: 0; } to { opacity: 1; } }

.hz-empty, .hz-scan { text-align: center; padding: 34px 18px; }
.hz-empty-glyph { font-family: 'Noto Sans Symbols', serif; font-size: 2.2rem; color: var(--gold-2); letter-spacing: 8px; margin-bottom: 8px; text-shadow: 0 0 16px var(--gold-glow); }
.hz-scan { display: grid; gap: 14px; justify-items: center; }
.hz-scan-text { color: var(--red-2); letter-spacing: .14em; font-size: .85rem; min-height: 1.4em; }

.hz-deck-head { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.hz-deck-title { flex: 1; min-width: 0; }
.hz-deck-title h2 { margin: 0; font-size: 1.6rem; }
.hz-deck-title .meta { color: var(--text-2); font-size: .92rem; }
.hz-badge { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: 'Noto Sans Symbols', serif; font-size: 2.3rem; color: var(--gold-2);
  background: radial-gradient(circle at 30% 30%, rgba(168,85,247, .45), rgba(7,3,15, .95)); border: 1px solid var(--border-2); box-shadow: var(--shadow-gold); }
.hz-period-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 16px; }
.hz-period-label { color: var(--text-2); font-size: .92rem; }

.hz-core { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.hz-core-gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hz-core-band { font-family: var(--font-head); font-size: 1.1rem; }
.hz-headline { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; margin-bottom: 10px; }
.hz-lead { margin: 0 0 10px; font-size: 1.05rem; color: var(--text); min-height: 3.2em; overflow-wrap: anywhere; }
.hz-more { margin: 0 0 10px; color: var(--text-2); }

.hz-ticker { margin-top: 0; }

.hz-block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hz-block-head h3 { margin: 0; font-size: 1.25rem; }
.hz-block-head .help { margin-left: auto; }

/* ภารกิจรายด้าน */
.hz-quests { display: grid; gap: 10px; }
.hz-quest { border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(14,6,24, .8); transition: border-color .25s; }
.hz-quest[open] { border-color: var(--border-2); }
.hz-quest summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.hz-quest summary::-webkit-details-marker { display: none; }
.hz-quest summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hz-q-ic { flex: none; font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--red-dim); border: 1px solid var(--border); }
.hz-q-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hz-q-top { display: flex; gap: 10px; align-items: baseline; }
.hz-q-top b { font-family: var(--font-head); font-weight: 500; }
.hz-q-band { font-size: .8rem; }
.hz-q-line { font-size: .92rem; color: var(--text-2); overflow-wrap: anywhere; }
.hz-q-num { flex: none; font-size: 1.4rem; font-weight: 700; min-width: 2ch; text-align: right; }
.hz-q-body { padding: 2px 16px 14px 70px; color: var(--text-2); font-size: .96rem; }
.hz-q-body p { margin: 0 0 6px; }
.hz-q-advice { color: var(--gold-2); }
.hz-meter { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hz-meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--red-3), var(--col, var(--gold))); box-shadow: 0 0 10px var(--col, var(--gold)); transition: width 1s var(--ease-out); }

/* เลขนำโชค */
.hz-lucky h3 { margin: 4px 0 6px; }
.hz-lucky-line { margin: 0 0 14px; }
.hz-lucky-slots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hz-slot { --slot-h: 64px; }
.hz-slot-gap { color: var(--gold); font-size: 1.6rem; }
.hz-lucky-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* โปรไฟล์ */
.hz-profile-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hz-sub { font-family: var(--font-head); font-size: .85rem; color: var(--text-3); margin-bottom: 6px; }

/* อันดับ */
.hz-lb { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
.hz-lb-row { display: grid; grid-template-columns: 26px 26px 52px 1fr 30px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(14,6,24, .8); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.hz-lb-row:hover { border-color: var(--red); background: rgba(168,85,247, .1); }
.hz-lb-row.me { border-color: var(--gold); background: rgba(247, 197, 72, .1); }
.hz-lb-rank { font-size: .7rem; color: var(--text-3); }
.hz-lb-glyph { font-family: 'Noto Sans Symbols', serif; color: var(--gold-2); font-size: 1.2rem; }
.hz-lb-name { font-family: var(--font-head); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-lb-score { font-size: .85rem; font-weight: 700; text-align: right; }
.hz-lb-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 700px) {
  .hz-core { grid-template-columns: 1fr; gap: 16px; }
  .hz-lb { grid-template-columns: 1fr; }
  .hz-q-body { padding-left: 16px; }
  .hz-block-head .help { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .hz-badge { width: 58px; height: 58px; font-size: 1.8rem; }
  .hz-deck-title h2 { font-size: 1.3rem; }
  .hz-deck-head .badge { display: none; }
  .hz-q-ic { width: 38px; height: 38px; font-size: 1.3rem; }
  .hz-slot { --slot-h: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-ring-b, .hz-hub-glyph { animation: none; }
  .hz-result [data-seq] { opacity: 1; transform: none; transition: none; }
}
