@font-face {
  font-family: "Lora PTS";
  src: url("asset.php?f=lora.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --lacquer: #173a33;
  --lacquer-2: #21504a;
  --mist: #e6ece8;
  --paper: #f8faf7;
  --ink: #1d2a26;
  --ink-2: #4b5c56;
  --ink-3: #7a8a84;
  --gold: #c39b45;
  --gold-ink: #866420;
  --son: #a8322d;
  --son-soft: #f3dcd8;
  --line: #cfd9d3;
  --good: #2f6b4f;
  --good-soft: #dcebe2;
  --mid: #8a6a22;
  --mid-soft: #f1e7cf;
  --bad: #a8322d;
  --bad-soft: #f3dcd8;
  --serif: "Lora PTS", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-s: 6px;
  --r-m: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Header theo giao diện chung của site ---------- */
.site-nav { background: #0b281f; border-bottom: 1px solid rgba(195,155,69,.28); color: #eef5ed; position: relative; z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: #eef5ed; font-weight: 800; letter-spacing: .085em; font-size: 16px; white-space: nowrap; text-decoration: none; font-family: var(--sans); }
.site-brand small { font-size: 11px; color: #e6bf70; letter-spacing: .04em; }
.site-brand .brand-em { color: #ffe2a0; }
.nav-action { border: 1px solid #8b7955; background: #2c4838; color: #f4d691; padding: 9px 15px; border-radius: 10px; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.nav-action:hover { border-color: #e6bf70; }
.site-nav .pts-account-slot { margin-left: auto; }
.hero { background: var(--lacquer); color: #eef1ea; padding: 36px 0 30px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(195,155,69,.22); box-shadow: 0 0 0 28px rgba(195,155,69,.05), 0 0 0 56px rgba(195,155,69,.035);
  pointer-events: none;
}
.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05;
  margin: 0 0 14px; color: var(--gold); letter-spacing: -.01em;
}
.hero-sub { max-width: 62ch; margin: 0 0 22px; color: #c9d5cf; }
.switch { display: inline-flex; background: rgba(0,0,0,.22); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; position: relative; z-index: 1; }
.sw { border: 0; background: transparent; color: #d7e0db; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.sw.on { background: var(--gold); color: #1b2a22; }

/* ---------- Form ---------- */
.main { padding-top: 28px; padding-bottom: 48px; }
.pair {
  display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px;
}
.person { border: 0; margin: 0; padding: 0; min-width: 0; }
.person legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0; }
.seal-mini {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 6px;
  background: var(--son); color: #fbeee9; font-size: 1.05rem; font-weight: 400; transform: rotate(-4deg);
}
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink-2); }
.fld em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fld input, .fld select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; min-height: 46px;
}
.fld input:focus, .fld select:focus { border-color: var(--lacquer-2); outline: none; box-shadow: 0 0 0 3px rgba(33,80,74,.15); }
.fld input.bad { border-color: var(--son); background: #fff8f7; }
.date-row { display: flex; gap: 8px; }
.date-row input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.date-seg { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 46px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; cursor: text; transition: border-color .14s, box-shadow .14s; }
.date-seg:focus-within { border-color: var(--lacquer-2); box-shadow: 0 0 0 3px rgba(33,80,74,.15); }
.date-seg.bad { border-color: var(--son); background: #fff8f7; }
.fld .date-seg input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--ink); }
.fld .date-seg input:focus { box-shadow: none; border: 0; }
.fld .date-seg .ds-y { flex-grow: 1.5; }
.date-seg input::placeholder { color: var(--ink-3); font-size: 14px; }
.ds-sep { color: var(--gold-ink); font-size: 20px; line-height: 1; padding: 0 1px; user-select: none; }
.cal { display: flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; flex: none; }
.cal-b { border: 0; background: #fff; padding: 0 12px; cursor: pointer; color: var(--ink-2); min-height: 44px; }
.cal-b.on { background: var(--lacquer); color: #f0ead6; }
.leap { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: .92rem; }
.hint { display: block; color: var(--ink-3); font-size: .82rem; margin-top: 6px; }

.thread { position: relative; display: grid; place-items: center; }
.thread svg { position: absolute; inset: 30% 0 auto; width: 100%; height: 40%; overflow: visible; }
.thread path { fill: none; stroke: var(--son); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.knot {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--son); color: var(--son); font-size: 1.4rem;
}

.range { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin-top: 6px; }
.actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.err { margin: 0; color: var(--son); font-weight: 600; flex: 1 1 260px; }
.go {
  border: 0; background: var(--son); color: #fff6f2; padding: 13px 28px; border-radius: 999px; font-weight: 700;
  cursor: pointer; min-height: 48px; font-size: 1.02rem;
}
.go:hover { background: #8f2925; }
.go[disabled] { opacity: .6; cursor: progress; }

/* ---------- Result: chung ---------- */
.result { margin-top: 26px; }
.result:empty { display: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; margin-bottom: 18px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 12px; line-height: 1.25; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin: 0 0 8px; }
.prose p { margin: 0 0 12px; max-width: 72ch; }
.prose p:last-child { margin-bottom: 0; }
.chip { display: inline-block; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; white-space: nowrap; }
.chip.tot { background: var(--good-soft); color: var(--good); }
.chip.vua { background: var(--mid-soft); color: var(--mid); }
.chip.xau { background: var(--bad-soft); color: var(--bad); }
.muted { color: var(--ink-3); font-size: .9rem; }
.warn { color: var(--gold-ink); font-size: .88rem; margin-top: 4px; }

/* ---------- Kết quả vợ chồng: dải chỉ hồng ---------- */
.verdict { background: var(--lacquer); color: #eef1ea; border: 0; padding: 26px 22px 24px; position: relative; overflow: hidden; }
.v-stage { display: grid; grid-template-columns: 1fr minmax(150px, 210px) 1fr; align-items: center; gap: 8px; }
.v-person { text-align: center; }
.v-seal {
  width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 10px; background: var(--son); color: #fbeee9;
  display: grid; place-items: center; font-size: 2.1rem; letter-spacing: .02em; font-family: var(--serif);
  box-shadow: inset 0 0 0 4px var(--son), inset 0 0 0 6px rgba(251,238,233,.65);
}
.v-person:first-child .v-seal { transform: rotate(-5deg); }
.v-person:last-child .v-seal { transform: rotate(4deg); }
.v-name { font-family: var(--serif); font-size: 1.1rem; color: #f4efdf; }
.v-meta { font-size: .88rem; color: #b9c8c1; line-height: 1.45; }
.v-knot { position: relative; height: 170px; display: grid; place-items: center; }
.v-knot svg { position: absolute; left: -40%; width: 180%; height: 100%; overflow: visible; }
.v-knot .rope { fill: none; stroke: #d6564f; stroke-width: 2.4; stroke-linecap: round; }
.v-knot .rope-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s cubic-bezier(.6,.1,.2,1) forwards; }
.v-score {
  position: relative; width: 132px; height: 132px; border-radius: 50%; background: var(--paper); color: var(--ink);
  display: grid; place-items: center; text-align: center; border: 3px solid var(--gold);
  opacity: 0; transform: scale(.85); animation: pop .5s .9s ease-out forwards;
}
.v-score b { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; display: block; }
.v-score small { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.v-head { text-align: center; margin-top: 18px; }
.v-tier { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--gold); color: #1d2a22; font-weight: 700; font-size: .9rem; }
.v-title { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 500; margin: 10px 0 0; color: #f6efd9; line-height: 1.2; }
.v-gap { color: #b9c8c1; font-size: .9rem; margin-top: 6px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }

/* Tiêu chí */
.crit-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.radar svg { width: 100%; height: auto; display: block; }
.radar .ax { stroke: var(--line); fill: none; }
.radar .ring { stroke: var(--line); fill: none; }
.radar .area { fill: rgba(168,50,45,.18); stroke: var(--son); stroke-width: 2; }
.radar .dot { fill: var(--son); }
.radar text { font-size: 11px; fill: var(--ink-2); font-family: var(--sans); }
.crit { border-top: 1px solid var(--line); }
.crit:first-child { border-top: 0; }
.crit-h {
  width: 100%; display: grid; grid-template-columns: 1fr 150px 82px; align-items: center; gap: 10px;
  background: none; border: 0; text-align: left; padding: 13px 4px; cursor: pointer;
}
.crit-h .nm { font-weight: 700; }
.crit-h .chip { justify-self: end; }
.crit-h .sc { font-family: var(--serif); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 6px; background: #e3e9e5; border-radius: 3px; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: var(--son); border-radius: 3px; transform-origin: left; }
.bar i.tot { background: var(--good); } .bar i.vua { background: var(--gold); } .bar i.xau { background: var(--son); }
.crit-b { padding: 0 4px 16px; display: grid; grid-template-columns: 1fr 170px; gap: 18px; align-items: start; }
.crit-b .pair-lb { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.crit-b .pair-lb b { color: var(--ink); font-weight: 600; }
.crit-b p { margin: 0; max-width: 68ch; }
.crit-h[aria-expanded="false"] + .crit-b { display: none; }
.crit-h .chev { width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-left: 8px; display: inline-block; transition: transform .2s; }
.crit-h[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.mini svg { width: 100%; height: auto; display: block; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two .card { margin-bottom: 0; }
.card-gap { height: 18px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.list.good li::before { background: var(--good); }
.list.bad li::before { background: var(--son); }

.fix { counter-reset: none; display: grid; gap: 14px; }
.fix-i { border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; }
.fix-i h4 { margin: 0 0 4px; font-size: 1rem; }
.fix-i p { margin: 0; max-width: 70ch; }

table.yr { width: 100%; border-collapse: collapse; font-size: .95rem; }
.yr th, .yr td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yr th { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.yr td.y { font-family: var(--serif); font-weight: 600; white-space: nowrap; }
.yr .note { color: var(--ink-2); font-size: .88rem; }
.tbl-wrap { overflow-x: auto; }
.bridge { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ghost { border: 1.5px solid var(--lacquer); background: transparent; color: var(--lacquer); padding: 10px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; min-height: 44px; }
.ghost:hover { background: var(--lacquer); color: #f0ead6; }

/* ---------- Kết quả năm sinh con ---------- */
.lead { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; max-width: 70ch; margin: 0; }
.chart-wrap { overflow-x: auto; margin: 6px -6px 0; padding: 0 6px; }
.chart svg { display: block; min-width: 620px; width: 100%; height: auto; }
.chart .grid { stroke: #dde5e0; }
.chart .yl { font-size: 11px; fill: var(--ink-3); }
.chart .bar-g { cursor: pointer; }
.chart .b { rx: 4; }
.chart .b.tot { fill: var(--good); } .chart .b.vua { fill: var(--gold); } .chart .b.xau { fill: var(--son); }
.chart .bar-g.sel .b { stroke: var(--ink); stroke-width: 2; }
.chart .bar-g:focus { outline: none; }
.chart .bar-g:focus-visible .b { stroke: var(--gold); stroke-width: 3; }
.chart .xl { font-size: 12px; fill: var(--ink); font-family: var(--serif); font-weight: 600; }
.chart .xl2 { font-size: 11px; fill: var(--ink-3); }
.chart .val { font-size: 12px; fill: var(--ink); font-weight: 700; }
.chart .star { fill: var(--son); }
.chart .star-t { fill: #fff; font-size: 10px; font-weight: 700; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l1 { background: var(--good); } .legend .l2 { background: var(--gold); } .legend .l3 { background: var(--son); }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pick { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; background: #fff; cursor: pointer; text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.pick:hover { border-color: var(--lacquer-2); }
.pick .ps { width: 64px; height: 64px; border-radius: 8px; background: var(--son); color: #fbeee9; display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; transform: rotate(-3deg); }
.pick .py { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.pick .pd { font-size: .88rem; color: var(--ink-2); }

.detail-h { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-seal { width: 74px; height: 74px; border-radius: 10px; background: var(--son); color: #fbeee9; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; flex: none; }
.detail-score { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-left: auto; text-align: right; line-height: 1; }
.detail-score small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-3); font-weight: 400; margin-top: 4px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.vs-col { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; background: #fff; }
.vs-col h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.08rem; display: flex; justify-content: space-between; }
.vs-row { padding: 8px 0; border-top: 1px dashed var(--line); }
.vs-row:first-of-type { border-top: 0; }
.vs-row .k { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .92rem; }
.vs-row p { margin: 4px 0 0; font-size: .93rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.fact { background: var(--mist); border-radius: var(--r-s); padding: 12px; font-size: .92rem; }
.fact b { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.loading { display: flex; gap: 12px; align-items: center; color: var(--ink-2); padding: 20px 0; }
.loading i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--son); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bản mệnh ---------- */
.prof { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; background: #fff; }
.prof-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.prof-seal { width: 52px; height: 52px; border-radius: 8px; background: var(--son); color: #fbeee9; display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; flex: none; }
.prof p { margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 4px 10px; margin: 0 0 12px; font-size: .93rem; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; }
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dir { border-radius: var(--r-s); padding: 7px 8px; font-size: .82rem; line-height: 1.35; }
.dir b { display: block; font-size: .9rem; }
.dir span { display: block; font-weight: 600; }
.dir small { display: block; color: var(--ink-2); }
.dir.tot { background: var(--good-soft); } .dir.tot span { color: var(--good); }
.dir.xau { background: var(--bad-soft); } .dir.xau span { color: var(--bad); }
.fix-i.shared { margin-top: 16px; }
.cq { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.cq-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.cq p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.fact-w { grid-column: 1 / -1; }

/* ---------- Năm cưới chi tiết ---------- */
.yr-row { cursor: pointer; }
.yr-row:hover td { background: #eef3ef; }
.yr-row.sel td { background: var(--mid-soft); }
.yr-row:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.yr .sc2 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.ypick { margin: 18px 0 8px; }
.ypick label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: 6px; }
.ypick-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ypick-row input { width: 96px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); text-align: center; font-family: var(--serif); font-size: 1.1rem; min-height: 44px; background: #fff; }
.yb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.yb:hover { border-color: var(--lacquer-2); }
.ypick .err { margin-top: 6px; }
#wed-detail { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
#wed-detail:empty { display: none; }
#wed-detail .detail-score small .chip { margin-top: 6px; }
.wcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 6px; }
.wcol h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.05rem; }
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { padding: 8px 0 8px 12px; border-left: 3px solid var(--line); margin-bottom: 8px; font-size: .92rem; }
.wl li b { display: block; }
.wl li span { color: var(--ink-2); }
.wl li .wl-more { display: inline-block; margin-top: 4px; font-weight: 600; }
.wl li.tot { border-color: var(--good); } .wl li.vua { border-color: var(--gold); } .wl li.xau { border-color: var(--son); }
.mh { font-family: var(--serif); font-size: 1.1rem; margin: 18px 0 10px; }
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mo { border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--r-s); padding: 10px; background: #fff; font-size: .88rem; }
.mo.tot { border-top-color: var(--good); } .mo.vua { border-top-color: var(--gold); } .mo.xau { border-top-color: var(--son); }
.mo-h { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.mo-h b { font-family: var(--serif); font-size: 1rem; }
.mo-d { color: var(--ink-3); margin: 4px 0 6px; font-size: .84rem; }
.mo p { margin: 0; color: var(--ink-2); }
.mo .mo-w { color: var(--son); font-weight: 600; margin-top: 4px; }

/* ---------- Footer ---------- */
.foot { background: var(--lacquer); color: #b9c8c1; font-size: .88rem; padding: 22px 0; }
.foot p { margin: 0 0 6px; max-width: 80ch; }
.foot-b { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: #aebeb2; }
.foot-b .site-brand { font-size: 13px; }

/* ---------- Phần xem trước khi bị khóa ---------- */
.lock { background: linear-gradient(150deg, #1f4634, #123128); color: #f4efe5; border: 1px solid #9b885e; }
.lock-tag { display: inline-block; color: #ffde9a; font-size: .82rem; font-weight: 800; margin-bottom: 6px; }
.lock p { max-width: 70ch; }
.lock-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.lock-list li { padding: 8px 12px 8px 34px; position: relative; background: rgba(255,255,255,.05); border-radius: var(--r-s); color: #d4e2d6; filter: none; }
.lock-list li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 12px; margin-top: -6px; border: 2px solid #e6bf70; border-radius: 2px; }
.lock-cta { text-align: center; border-top: 1px solid #64846e; padding-top: 16px; margin-top: 8px; }
.lock-cta strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: #ffdc93; }
.lock-cta p { color: #d4e2d6; margin: 8px auto 12px; }
.lock-cta a { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid #dbb970; background: #f0d491; color: #243327; font-weight: 800; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .months { grid-template-columns: repeat(3, 1fr); }
  .crit-grid { grid-template-columns: 1fr; }
  .radar { max-width: 320px; margin: 0 auto; }
  .picks { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pair { grid-template-columns: 1fr; padding: 18px 16px; }
  .thread { height: 70px; }
  .thread svg { inset: 0 auto 0 50%; width: 40px; height: 100%; transform: translateX(-50%) rotate(90deg) scaleX(1.75); }
  .two, .vs { grid-template-columns: 1fr; }
  .crit-b { grid-template-columns: 1fr; }
  .crit-b .mini { max-width: 200px; }
  .v-stage { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .v-knot { grid-column: 1 / -1; grid-row: 2; height: 120px; margin-top: 6px; }
  .v-knot svg { left: 0; width: 100%; }
  .v-seal { width: 70px; height: 70px; font-size: 1.5rem; }
  .v-score { width: 104px; height: 104px; }
  .v-score b { font-size: 2rem; }
  .v-knot { height: 130px; }
  .v-meta { font-size: .8rem; }
  .facts { grid-template-columns: 1fr; }
  .wcols { grid-template-columns: 1fr; }
  .yr thead { display: none; }
  .yr tr { display: grid; grid-template-columns: 78px 50px 1fr; align-items: start; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .yr td { border: 0; padding: 4px 6px; }
  .yr td.note { grid-column: 1 / -1; }
  .yr .chip { white-space: normal; }
  .months { grid-template-columns: 1fr 1fr; }
  .dirs { grid-template-columns: 1fr 1fr; }
  .detail-score { margin-left: 0; text-align: left; }
  .range { max-width: none; }
  .actions { justify-content: stretch; }
  .go { width: 100%; }
  .nav-action { padding: 7px 10px; font-size: 12px; }
  .site-brand { font-size: 13px; }
  .yr .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .v-knot .rope-draw { stroke-dashoffset: 0; }
  .v-score { opacity: 1; transform: none; }
}
@media print {
  .site-nav, .hero, .pair, .foot, .ghost, .ypick { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; }
  .verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 520px) {
  .switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
  .sw { padding: 10px 6px; border-radius: 10px; font-size: .9rem; line-height: 1.3; }
}
@media (max-width: 420px) {
  .date-seg { padding: 0 4px; }
  .date-seg input::placeholder { font-size: 12.5px; }
  .ds-sep { font-size: 18px; padding: 0; }
  .cal-b { padding: 0 10px; }
}
