/* Horoworld Core — component styles (theme sets colors via CSS vars; fallbacks here) */
:root{
  --hw-primary:#2a1454; --hw-primary-2:#4b2a8a; --hw-gold:#e6be5a; --hw-ink:#1f1a2e; --hw-muted:#6b6480;
  --hw-bg:#ffffff; --hw-surface:#f6f3fb; --hw-line:#e6e0f2; --hw-good:#1b8a4c; --hw-bad:#c62828; --hw-radius:14px;
}
.hw-main{max-width:960px;margin:0 auto;padding:16px}
.hw-title{font-size:clamp(1.4rem,3.5vw,2rem);line-height:1.3;margin:.2em 0 .6em;color:var(--hw-ink)}
.hw-breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0 0 10px;font-size:.85rem;color:var(--hw-muted)}
.hw-breadcrumb li+li::before{content:"›";margin-right:6px}
.hw-lead{font-size:1.05rem}
.hw-sub,.hw-date,.hw-note,.hw-byline{color:var(--hw-muted);font-size:.9rem}
.hw-btn{display:inline-block;background:var(--hw-primary);color:#fff!important;padding:10px 18px;border-radius:999px;text-decoration:none;font-weight:600;border:0;cursor:pointer}
.hw-btn:hover{background:var(--hw-primary-2)}
.hw-tag{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--hw-surface);font-size:.85rem;margin:2px 4px 2px 0}
.hw-tag.hw-good{background:#e6f5ec;color:var(--hw-good)} .hw-tag.hw-bad{background:#fdecec;color:var(--hw-bad)}
.hw-bad{color:var(--hw-bad)} .hw-good{color:var(--hw-good)}
.hw-error{color:var(--hw-bad)} .hw-empty,.hw-loading{color:var(--hw-muted)}

/* grids */
.hw-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));margin:12px 0 20px}
.hw-grid-days{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.hw-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px 8px;border:1px solid var(--hw-line);border-radius:var(--hw-radius);background:var(--hw-surface);text-decoration:none;color:var(--hw-ink);text-align:center;transition:transform .15s,box-shadow .15s}
.hw-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(42,20,84,.12)}
.hw-card .hw-sym{font-size:1.8rem;color:var(--hw-primary)} .hw-card .hw-name{font-weight:700} .hw-card .hw-range{font-size:.75rem;color:var(--hw-muted)}
.hw-dot{width:18px;height:18px;border-radius:50%;background:var(--c,#999);display:inline-block;box-shadow:0 0 0 3px #fff,0 0 0 4px var(--c,#999)}

/* feed */
.hw-feed-head{display:flex;gap:16px;align-items:center;margin-bottom:12px}
.hw-feed-icon{font-size:3rem;line-height:1;color:var(--hw-primary);width:72px;height:72px;display:flex;align-items:center;justify-content:center;background:var(--hw-surface);border-radius:50%}
.hw-period-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}
.hw-period-tabs a{padding:7px 14px;border-radius:999px;border:1px solid var(--hw-line);text-decoration:none;color:var(--hw-ink);font-size:.9rem}
.hw-period-tabs a.is-active{background:var(--hw-primary);color:#fff;border-color:var(--hw-primary)}
.hw-score{font-weight:600;margin-bottom:8px} .hw-stars{color:var(--hw-gold);letter-spacing:2px}
.hw-overall{font-size:1.1rem;line-height:1.7}
.hw-aspect{font-size:1.1rem;margin:18px 0 4px;padding-left:12px;border-left:4px solid var(--hw-gold)}
.hw-advice{background:var(--hw-surface);border-radius:var(--hw-radius);padding:12px 16px;margin:14px 0}
.hw-lucky{list-style:none;padding:0;display:flex;gap:10px;flex-wrap:wrap}
.hw-lucky li{background:var(--hw-surface);padding:8px 14px;border-radius:999px}
.hw-latest,.hw-hub-excerpt,.hw-colorcard,.hw-number-result,.hw-intro{background:var(--hw-surface);border-radius:var(--hw-radius);padding:16px 18px;margin:18px 0}
.hw-related ul{columns:2;list-style:none;padding:0;font-size:.9rem} .hw-related li{break-inside:avoid;margin:4px 0}

/* color */
.hw-colorcard ul{list-style:none;padding:0;margin:8px 0 0} .hw-colorcard li{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed var(--hw-line)}
.hw-swatch{width:22px;height:22px;border-radius:6px;display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);vertical-align:middle;margin-right:6px;flex:none}

/* tables */
.hw-table{width:100%;border-collapse:collapse;font-size:.95rem;margin:10px 0 20px}
.hw-table th,.hw-table td{padding:8px 10px;border-bottom:1px solid var(--hw-line);text-align:left}
.hw-table th{background:var(--hw-surface)}
.hw-auspicious tr.hw-good td{background:#eef9f2;font-weight:600} .hw-auspicious tr.hw-bad td{background:#fdf1f1;color:var(--hw-bad)}
.hw-daylist{list-style:none;padding:0} .hw-daylist li{padding:8px 0;border-bottom:1px dashed var(--hw-line)}
.hw-prevnext{display:flex;justify-content:space-between;margin:16px 0}

/* number */
.hw-form{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:10px 0}
.hw-form label{display:flex;flex-direction:column;gap:4px;font-size:.9rem;flex:1 1 200px}
.hw-form input{padding:10px 12px;border:1px solid var(--hw-line);border-radius:10px;font-size:1rem}
.hw-form button{padding:11px 20px;border:0;border-radius:999px;background:var(--hw-primary);color:#fff;font-weight:600;cursor:pointer}
.hw-scorebar{height:14px;background:var(--hw-line);border-radius:999px;position:relative;overflow:hidden;margin:8px 0}
.hw-scorebar::before{content:"";position:absolute;inset:0;width:0;background:linear-gradient(90deg,var(--hw-bad),var(--hw-gold),var(--hw-good));transition:width .8s}
.hw-scorebar.is-on::before{width:calc(var(--pct) * 1%)}
.hw-scorebar span{position:absolute;right:8px;top:-22px;font-weight:700}
.hw-verdict{font-size:1.15rem;font-weight:700}
tr.hw-grade-A td,.hw-grade-A{color:var(--hw-good)} tr.hw-grade-B td,.hw-grade-B{color:#2e7d32} tr.hw-grade-D td,.hw-grade-D{color:#e65100} tr.hw-grade-F td,.hw-grade-F{color:var(--hw-bad)}
.hw-pairs-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}
.hw-pair{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-radius:10px;background:var(--hw-surface);text-decoration:none;color:var(--hw-ink);border:1px solid var(--hw-line)}
.hw-pair b{font-size:1.3rem} .hw-pair small{font-size:.7rem;text-align:center;color:var(--hw-muted)}
.hw-pair.hw-grade-A{border-color:var(--hw-good)} .hw-pair.hw-grade-F,.hw-pair.hw-grade-D{border-color:var(--hw-bad)}
.hw-pair-hero{display:flex;align-items:baseline;gap:14px} .hw-pair-num{font-size:4rem;font-weight:800;color:var(--hw-primary)} .hw-pair-grade{font-size:1.2rem}

/* tarot */
.hw-tarot-deck{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.hw-tarot-row{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-top:16px}
.hw-tarot-card{background:var(--hw-surface);border-radius:var(--hw-radius);padding:14px;text-align:center}
.hw-tarot-pos{font-size:.8rem;color:var(--hw-muted);text-transform:uppercase;letter-spacing:1px}
.hw-tarot-img img{max-width:180px;border-radius:10px;margin:8px auto;display:block;transition:transform .4s}
.hw-tarot-card.is-reversed .hw-tarot-img img{transform:rotate(180deg)}
.hw-tarot-back{font-size:4rem;padding:30px 0}

/* dream */
.hw-dreamlist{list-style:none;padding:0} .hw-dreamlist li{padding:10px 0;border-bottom:1px dashed var(--hw-line)} .hw-dreamlist a{text-decoration:none;color:var(--hw-ink)}
.hw-linklist{columns:2;list-style:none;padding:0} .hw-linklist li{margin:4px 0}

/* profile (finder) */
.hw-profile{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:12px 0}

@media (max-width:600px){ .hw-related ul,.hw-linklist{columns:1} .hw-feed-head{flex-direction:column;align-items:flex-start} .hw-table{font-size:.85rem} }
@media (prefers-color-scheme:dark){ :root{--hw-bg:#120a24;--hw-surface:#1e1436;--hw-line:#33285a;--hw-ink:#efeafc;--hw-muted:#b3a9cf} .hw-tag.hw-good{background:#123b25} .hw-tag.hw-bad{background:#4a1c1c} .hw-auspicious tr.hw-good td{background:#123b25} .hw-auspicious tr.hw-bad td{background:#4a1c1c} }

.hw-card .hw-sym img,.hw-feed-icon img{width:100%;height:100%;object-fit:contain;transform:scale(1.15)}
.hw-card .hw-sym{width:56px;height:56px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center}
