/* =====================================================================
   เช็กดวงจากวันเกิด (birth-check.html) — รายงานดวงชะตาส่วนตัว
   ===================================================================== */
/* ---------- ฟอร์ม ---------- */
.bc-form { display: grid; gap: 14px; }
.bc-date-row { display: grid; gap: 10px; grid-template-columns: .8fr 1.4fr 1.1fr; }
.bc-opt-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .bc-opt-row { grid-template-columns: 1fr 1fr; } }
.bc-form .hint { font-size: .78rem; color: var(--text-3); }
.bc-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.bc-edit > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-head); font-weight: 600; min-height: 44px; }
.bc-edit > summary::-webkit-details-marker { display: none; }
.bc-edit > summary svg { width: 18px; height: 18px; color: var(--gold); transition: transform .2s; }
.bc-edit[open] > summary svg.chev { transform: rotate(180deg); }
.bc-edit[open] > summary { margin-bottom: 12px; }

/* ---------- mini-nav ---------- */
.bc-nav { position: sticky; top: calc(var(--header-h) + 6px); z-index: 20; margin: 18px 0 6px; padding: 6px; border-radius: 999px; background: rgba(27, 13, 49, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bc-nav .chip-row { padding: 0; gap: 4px; }
.bc-nav a.chip { padding: 7px 13px; font-size: .84rem; min-height: 36px; border-color: transparent; background: transparent; }
.bc-nav a.chip:hover { background: var(--surface-2); }
.bc-sec { scroll-margin-top: calc(var(--header-h) + 70px); padding: 14px 0; }
.bc-sec > .card + .card { margin-top: 14px; }
.bc-sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.bc-sec-h .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .9rem; font-family: var(--font-body); font-weight: 500; color: var(--ink); background: var(--gold-grad); }

/* ---------- สรุป ---------- */
.bc-sum { position: relative; overflow: hidden; text-align: center; padding-top: 28px; }
.bc-sum::before { content: ''; position: absolute; left: 50%; top: -120px; width: 420px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 40%, transparent), transparent 62%); pointer-events: none; }
.bc-sum > * { position: relative; }
.bc-emblem { width: 112px; height: 112px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55), transparent 42%), radial-gradient(circle, var(--pc), color-mix(in srgb, var(--pc) 45%, #12081f));
  box-shadow: 0 0 0 4px rgba(227, 194, 122, .5), 0 0 0 10px rgba(227, 194, 122, .1), 0 16px 40px -10px var(--pc); }
.bc-emblem::after { content: ''; position: absolute; inset: -22px; border-radius: 50%; border: 1px dashed rgba(227, 194, 122, .45); animation: spinSlow 30s linear infinite; }
.bc-emblem b { font-family: var(--font-head); font-size: 2.6rem; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); line-height: 1; }
.bc-sum h2 { margin: 6px 0 2px; font-size: clamp(1.5rem, 4.6vw, 2.3rem); }
.bc-sum .when { color: var(--text-2); font-size: .98rem; }
.bc-facts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 18px 0 14px; text-align: left; }
@media (min-width: 720px) { .bc-facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .bc-facts { grid-template-columns: repeat(6, 1fr); } }
.bc-fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); min-width: 0; transition: .2s; }
a.bc-fact:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.bc-fact .k { font-size: .74rem; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.bc-fact .k svg { width: 13px; height: 13px; color: var(--gold); }
.bc-fact .v { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.bc-fact .v .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: 0; margin-right: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.bc-saved { color: var(--good); }

/* ---------- นิสัย ---------- */
.bc-kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.bc-colors { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* ---------- ทักษา ---------- */
.bc-taksa { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .bc-taksa { grid-template-columns: 360px 1fr; gap: 28px; } }
.bc-wheel { width: min(100%, 360px); margin: 0 auto; display: block; }
.bc-wheel .seg { fill: rgba(255, 244, 222, .05); stroke: rgba(227, 194, 122, .45); stroke-width: 1; }
.bc-wheel .seg.good { fill: rgba(227, 194, 122, .16); }
.bc-wheel .seg.bad { fill: rgba(240, 138, 138, .12); }
.bc-wheel text { text-anchor: middle; dominant-baseline: central; font-family: 'Prompt', sans-serif; }
.bc-wheel .pos { font-size: 13px; font-weight: 600; fill: #f5dfa6; }
.bc-wheel .pos.bad { fill: #f6a5a5; }
.bc-wheel .pname { font-size: 10.5px; fill: #cfc2e2; }
.bc-wheel .pnum { font-size: 10px; font-weight: 600; fill: #fff; }
.bc-wheel .hub { fill: url(#bc-hubg); stroke: rgba(227, 194, 122, .7); stroke-width: 1.5; }
.bc-wheel .hub-lbl { font-size: 10px; fill: #2a1640; }
.bc-wheel .hub-name { font-family: 'Noto Serif Thai', serif; font-size: 16px; font-weight: 700; fill: #2a1640; }
.bc-tk-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bc-tk-list { grid-template-columns: 1fr 1fr; } }
.bc-tk { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.bc-tk.good { border-color: rgba(227, 194, 122, .35); background: rgba(227, 194, 122, .06); }
.bc-tk.bad { border-color: rgba(240, 138, 138, .3); background: rgba(240, 138, 138, .05); }
.bc-tk .num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 6px 14px -6px var(--c); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bc-tk b { font-family: var(--font-head); font-weight: 600; }
.bc-tk .sub { font-size: .8rem; color: var(--text-3); }
.bc-tk p { margin: 3px 0 0; font-size: .84rem; color: var(--text-2); line-height: 1.6; }
.bc-boost { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .bc-boost { grid-template-columns: repeat(5, 1fr); } }
.bc-boost .swatch { padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.bc-boost .swatch .sw { width: 38px; height: 38px; }
.bc-boost .swatch.bad { border-color: rgba(240, 138, 138, .3); }

/* ---------- ราศี / นักษัตร ---------- */
.bc-two { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bc-two { grid-template-columns: 1fr 1fr; } }
.bc-badge-big { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bc-badge-big .zc { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; flex: none; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 45%), var(--zc); box-shadow: 0 0 0 3px rgba(227, 194, 122, .4); }
.bc-badge-big h3 { margin: 0; font-size: 1.3rem; }
.bc-badge-big small { color: var(--text-3); font-size: .84rem; }
.bc-cn { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); background: radial-gradient(circle at 32% 26%, #fff6d8, #f0d08a 45%, #b88a3e); box-shadow: 0 0 0 3px rgba(227, 194, 122, .25), 0 10px 24px -10px rgba(227, 194, 122, .7); }
.bc-match { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- เลขศาสตร์ ---------- */
.bc-nums { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bc-nums { grid-template-columns: repeat(3, 1fr); } }
.bc-num-card { text-align: center; }
.bc-num-card .num-ball { margin: 0 auto 8px; }
.bc-num-card h3 { font-size: 1.08rem; margin-bottom: .2em; }
.bc-num-card .t { color: var(--gold-2); font-family: var(--font-head); font-size: .95rem; margin-bottom: 6px; }
.bc-num-card p { color: var(--text-2); font-size: .9rem; text-align: left; margin: 0; }
.bc-lucky-nums { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }

/* ---------- ดวงวันนี้ ---------- */
.bc-today { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .bc-today { grid-template-columns: auto 1fr; } }
.bc-today .ring { margin: 0 auto; }
.bc-today-lucky { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.bc-today-lucky > div { padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); text-align: center; font-size: .8rem; color: var(--text-3); }
.bc-today-lucky b { display: block; color: var(--text); font-size: .98rem; font-family: var(--font-head); }

@media (prefers-reduced-motion: reduce) { .bc-emblem::after { animation: none; } }
