/* Saju Score styles. Ink page, obangsaek element tiles, a cinnabar seal for the mark.
 * Mobile first; everything is designed at 390 px and widened from there. */

:root {
  color-scheme: dark;
  --ink: #111214;
  --ink-2: #17181b;
  --ink-3: #1f2024;
  --paper: #ecebe6;
  --paper-2: #c9c8c2;
  --muted: #a4a39d;
  --rule: #2c2d33;
  --rule-2: #3a3b42;
  --seal: #d0412f;
  --seal-soft: #e0715f;
  --wood: #2f8f74;
  --fire: #cf432f;
  --earth: #d9a62c;
  --metal: #ebe8e1;
  --water: #050506;
  --wood-ink: #f4f7f3;
  --fire-ink: #fff6f1;
  --earth-ink: #1b1508;
  --metal-ink: #16171a;
  --water-ink: #e9e8e3;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', Georgia, serif;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --ease: cubic-bezier(0.05, 0.7, 0.1, 1);
  --r: 6px;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--seal); }
:focus-visible { outline: 2px solid var(--earth); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 80px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.ko, [lang="ko"] { font-family: var(--serif); }
.hj { font-family: var(--serif); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--ink); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.seal {
  width: 30px; height: 30px; background: var(--seal); color: #fff4ef; border-radius: 4px;
  display: grid; grid-template-columns: 1fr 1fr; place-items: center; font: 900 11px/1 var(--serif);
  padding: 3px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.18);
}
.seal span { display: block; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: var(--r); font-size: 0.95rem; color: var(--paper-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); background: var(--ink-3); }
@media (max-width: 520px) { .nav a.opt { display: none; } .nav a { padding: 8px 8px; } }

/* Hero and calculator */
.hero { padding: 28px 0 8px; position: relative; }
.hero-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 460px; align-items: start; gap: 48px; padding-top: 24px; } }
.eyebrow { font: 500 0.8rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.eyebrow .ko { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--paper-2); }
.lede { font-size: 1.15rem; color: var(--paper-2); max-width: 44ch; }
.explain-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; margin: 22px 0 0; padding: 0; list-style: none; max-width: 600px; }
@media (min-width: 560px) { .explain-strip { grid-template-columns: repeat(4, 1fr); } }
.explain-strip li { border-top: 2px solid var(--rule-2); padding-top: 8px; font-size: 0.86rem; color: var(--paper-2); line-height: 1.4; }
.explain-strip b { display: block; font: 900 1.6rem/1.1 var(--serif); color: var(--paper); margin-bottom: 4px; }

.card { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
.calc h2 { font-size: 1.25rem; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="date"], input[type="time"], input[type="text"], input[type="email"], input[type="number"], select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 400 1rem var(--sans); color: var(--paper);
  background: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r); appearance: none; -webkit-appearance: none;
}
input::-webkit-calendar-picker-indicator { filter: invert(0.8); }
input:focus, select:focus { border-color: var(--earth); outline: none; box-shadow: 0 0 0 3px rgba(217,166,44,0.25); }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--earth); flex: none; }
.seg { display: flex; border: 1px solid var(--rule-2); border-radius: var(--r); overflow: hidden; }
.seg label { flex: 1; text-align: center; cursor: pointer; font-size: 0.92rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px 6px; min-height: 44px; }
.seg input:checked + span { background: var(--paper); color: var(--ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--earth); outline-offset: -2px; }
.seg label + label { border-left: 1px solid var(--rule-2); }
details.adv { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; }
details.adv summary { cursor: pointer; font-size: 0.92rem; color: var(--paper-2); padding: 6px 0; min-height: 32px; }
details.adv[open] summary { margin-bottom: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  font: 600 1rem var(--sans); color: var(--ink); background: var(--paper); border: 0; border-radius: var(--r);
  cursor: pointer; text-decoration: none; transition: transform 120ms var(--ease), background 200ms;
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.btn.full { width: 100%; }
.btn.seal-btn { background: var(--seal); color: #fff6f2; }
.btn.seal-btn:hover { background: #dd4d3a; }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--rule-2); }
.btn.ghost:hover { border-color: var(--paper-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Place search */
.combo { position: relative; }
.combo ul { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px; list-style: none; background: var(--ink-3); border: 1px solid var(--rule-2); border-radius: var(--r); max-height: 260px; overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.combo li { padding: 10px 10px; border-radius: 4px; cursor: pointer; font-size: 0.95rem; }
.combo li small { color: var(--muted); margin-left: 6px; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--rule); }

/* The chart */
.result { padding: 8px 0 24px; }
.result[hidden] { display: none; }
.result .chart, .result .read-note, .result .notes { max-width: 760px; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: end; margin: 26px 0 14px; }
.result-head h2 { margin: 0; }
.result-head p { margin: 0; }
.chart {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; direction: ltr; align-items: start;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0 14px;
}
.col { display: grid; grid-template-rows: auto auto auto auto auto; gap: 6px; min-width: 0; text-align: center; }
.col-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.col-label .ko { display: block; text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--paper-2); }
.col.is-day .col-label { color: var(--seal-soft); }
.god { font-size: 0.72rem; color: var(--paper-2); min-height: 2.4em; line-height: 1.2; display: flex; align-items: center; justify-content: center; }
.god.self { color: var(--seal-soft); font-weight: 600; }
.tile {
  position: relative; border-radius: 8px; aspect-ratio: 1 / 1.08; display: grid; place-items: center; align-content: center; gap: 2px;
  padding: 6px 2px; overflow: hidden; border: 1px solid transparent;
}
.tile .g { font: 900 clamp(2.2rem, 1.2rem + 5.5vw, 4.4rem)/1 var(--serif); }
.tile .k { font: 600 0.82rem/1 var(--serif); opacity: 0.92; }
.tile .e { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; line-height: 1.1; }
.el-0 { background: var(--wood); color: var(--wood-ink); }
.el-1 { background: var(--fire); color: var(--fire-ink); }
.el-2 { background: var(--earth); color: var(--earth-ink); }
.el-3 { background: var(--metal); color: var(--metal-ink); }
.el-4 { background: var(--water); color: var(--water-ink); border-color: var(--rule-2); }
.tile.empty { background: repeating-linear-gradient(135deg, var(--ink-2) 0 8px, var(--ink-3) 8px 16px); color: var(--muted); border: 1px dashed var(--rule-2); }
.tile.empty .g { font-size: 1.6rem; }
.is-day .tile.stem { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--seal); }
.hidden-stems { font-size: 0.72rem; color: var(--muted); line-height: 1.35; min-height: 2.7em; }
.hidden-stems .hj { font-weight: 600; color: var(--paper-2); }
.stage { font-size: 0.7rem; color: var(--muted); }
.read-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; display: flex; gap: 8px; align-items: center; }
.read-note .arrow { font-family: var(--serif); color: var(--paper-2); }
@media (min-width: 720px) {
  .chart { gap: 14px; padding: 18px 0; }
  .tile .k { font-size: 1rem; }
  .tile .e { font-size: 0.72rem; }
  .god, .col-label { font-size: 0.8rem; }
}

.notes { margin: 12px 0 0; padding: 0; list-style: none; }
.notes li { font-size: 0.88rem; color: var(--paper-2); padding: 8px 12px; border-left: 3px solid var(--earth); background: var(--ink-2); margin-bottom: 6px; border-radius: 0 var(--r) var(--r) 0; }
.meta-line { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.panels { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 900px) { .panels { grid-template-columns: 1.25fr 1fr; } }
.panel { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; min-width: 0; }
.panel h3 { margin-bottom: 10px; }
.panel .kicker { font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dm-head .tile { width: 76px; flex: none; aspect-ratio: 1; }
.dm-head .tile .g { font-size: 2.8rem; }
.dm-head h3 { margin: 0 0 2px; font-size: 1.35rem; }
.dm-head p { margin: 0; color: var(--paper-2); font-size: 0.95rem; }

/* Element cycle */
.cycle { width: 100%; max-width: 360px; margin: 0 auto; }
.cycle text { font-family: var(--serif); }
.el-bars { display: grid; gap: 6px; margin-top: 12px; }
.el-bar { display: grid; grid-template-columns: 72px 1fr 34px; gap: 8px; align-items: center; font-size: 0.86rem; }
.el-bar .track { height: 10px; background: var(--ink); border-radius: 5px; overflow: hidden; border: 1px solid var(--rule); }
.el-bar .fill { display: block; height: 100%; border-radius: 5px; }
.el-bar .track { display: block; }
.el-bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--paper-2); }
.toggle-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 0.86rem; color: var(--paper-2); }

/* Luck pillars */
.luck { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.luck .lp { flex: 0 0 74px; text-align: center; scroll-snap-align: start; }
.luck .lp .tile { aspect-ratio: 1; border-radius: 6px; }
.luck .lp .tile .g { font-size: 1.7rem; }
.luck .lp .tile + .tile { margin-top: 4px; }
.luck .lp .age { font-size: 0.78rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.luck .lp.now .age { color: var(--paper); font-weight: 600; }
.luck .lp.now { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 6px; }

/* Today */
.today { display: grid; gap: 14px; }
@media (min-width: 720px) { .today { grid-template-columns: auto 1fr; align-items: center; } }
.today .pair { display: flex; gap: 6px; }
.today .pair .tile { width: 64px; aspect-ratio: 1; }
.today .pair .tile .g { font-size: 2.2rem; }
.daily-line { font: 600 1.2rem/1.45 var(--serif); margin: 0 0 6px; }

/* Share */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-preview { margin-top: 12px; max-width: 220px; border-radius: 8px; border: 1px solid var(--rule); }

/* Sections below the fold */
.band { padding: 44px 0; border-top: 1px solid var(--rule); }
.band-head { display: flex; gap: 16px; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.vert { writing-mode: vertical-rl; font: 700 1.1rem/1 var(--serif); color: var(--seal-soft); letter-spacing: 0.2em; }
.steps { display: grid; gap: 14px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; }
.steps li::before { counter-increment: s; content: counter(s, cjk-ideographic); display: block; font: 900 1.8rem/1 var(--serif); color: var(--seal-soft); margin-bottom: 8px; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.grid-links a { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; background: var(--ink-2); min-height: 56px; }
.grid-links a:hover { border-color: var(--rule-2); background: var(--ink-3); }
.mini { display: grid; place-items: center; font-family: var(--serif); font-weight: 900; line-height: 1; }
.grid-links .mini { width: 38px; height: 38px; border-radius: 5px; font-size: 1.3rem; flex: none; }
.grid-links .t { font-size: 0.9rem; line-height: 1.25; }
.grid-links .t small { display: block; color: var(--muted); font-size: 0.78rem; }
.sixty { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.sixty a { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
.sixty .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.sixty .duo .mini { width: 100%; height: 40px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.faq details p { margin: 10px 0 0; color: var(--paper-2); }

/* Content pages */
.page-hero { padding: 30px 0 18px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--paper-2); }
.pillar-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pillar-hero .stack { display: grid; gap: 6px; width: 112px; flex: none; }
.pillar-hero .stack .tile { aspect-ratio: 1; }
.pillar-hero .stack .tile .g { font-size: 3.6rem; }
.pillar-hero .names { flex: 1 1 240px; }
.pillar-hero .names .alt { font-size: 1.05rem; color: var(--paper-2); }
.content-grid { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.aside .panel + .panel { margin-top: 14px; }
.facts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.facts th, .facts td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 42%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 1em; list-style: none; }
.chips li { border: 1px solid var(--rule-2); border-radius: 999px; padding: 5px 12px; font-size: 0.88rem; }
.two-lists { display: grid; gap: 14px; }
@media (min-width: 640px) { .two-lists { grid-template-columns: 1fr 1fr; } }
.two-lists h3 { font-size: 1rem; }
.two-lists ul { margin: 0; padding-left: 1.1em; }
.reflect { border-left: 3px solid var(--seal); padding: 10px 14px; background: var(--ink-2); border-radius: 0 var(--r) var(--r) 0; font-family: var(--serif); font-size: 1.1rem; }
.years-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.years-table th, .years-table td { padding: 7px 6px; border-bottom: 1px solid var(--rule); text-align: left; }
.years-table th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 26px 0 0; flex-wrap: wrap; }
.pager a { text-decoration: none; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; font-size: 0.92rem; }

/* Gunghap */
.gh-forms { display: grid; gap: 14px; }
@media (min-width: 860px) { .gh-forms { grid-template-columns: 1fr 1fr; } }
.gh-forms .card h2 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.gh-forms .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.gh-pair { display: grid; gap: 14px; }
@media (min-width: 860px) { .gh-pair { grid-template-columns: 1fr 1fr; } }
.gh-pair .chart { padding: 8px 0; }
.gh-pair .tile .g { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); }
.tone-card { text-align: left; }
.tone-card .tone { font: 900 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.1 var(--serif); margin: 4px 0 8px; }
.meter { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-size: 0.86rem; margin-top: 6px; }
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.links-list .badge { font-size: 0.72rem; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--rule-2); white-space: nowrap; }
.links-list .badge.harmony { border-color: var(--wood); color: #7fd1b6; }
.links-list .badge.tension { border-color: var(--fire); color: #f29a87; }

/* Email and report */
.signup form { display: grid; gap: 10px; }
.signup .line { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .signup .line { grid-template-columns: 1fr auto; } }
.form-msg { font-size: 0.9rem; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: #7fd1b6; }
.form-msg.err { color: #f29a87; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 30px 0 40px; margin-top: 30px; font-size: 0.9rem; color: var(--paper-2); }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h2 { font-size: 0.8rem; font-family: var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .ent { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--muted); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .result:not([hidden]) .tile { animation: rise 520ms var(--ease) both; }
  .result .col:nth-child(1) .tile { animation-delay: 240ms; }
  .result .col:nth-child(2) .tile { animation-delay: 160ms; }
  .result .col:nth-child(3) .tile { animation-delay: 80ms; }
  .result .col:nth-child(4) .tile { animation-delay: 0ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
}
@media print {
  .top, .foot, .calc, .signup, .share-row, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Daily fortune */
.fortune { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.score-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--earth) calc(var(--p) * 1%), var(--rule) 0); }
.score-ring > div { width: 90px; height: 90px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; align-content: center; text-align: center; }
.score-ring b { font: 900 2rem/1 var(--serif); display: block; }
.score-ring small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.fortune-title { margin: 0 0 6px; }
@media (max-width: 480px) { .fortune { grid-template-columns: 1fr; } .score-ring { margin: 0 auto; } }
.score-why { margin: 12px 0 0; font-size: 0.85rem; }
.score-why summary { cursor: pointer; color: var(--paper-2); min-height: 32px; padding: 6px 0; }
.score-why ul { list-style: none; padding: 0; margin: 4px 0 0; }
.score-why li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding: 6px 0; color: var(--paper-2); }
.score-why b { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--paper); }
.score-why b.up { color: #6cc3a4; }
.score-why b.down { color: var(--seal-soft); }
.score-band { display: grid; gap: 22px; align-items: start; }
@media (min-width: 800px) { .score-band { grid-template-columns: 220px 1fr; gap: 40px; } }
.score-demo { display: grid; justify-items: center; gap: 10px; text-align: center; }
.score-demo .score-ring { width: 168px; height: 168px; }
.score-demo .score-ring > div { width: 136px; height: 136px; }
.score-demo .score-ring b { font-size: 3rem; }
.score-demo p { margin: 0; font-size: 0.8rem; color: var(--muted); max-width: 200px; }
.score-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.score-list li { border-left: 3px solid var(--earth); padding: 2px 0 2px 12px; color: var(--paper-2); }
.score-list b { color: var(--paper); }
.lucky { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .lucky { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lucky li { background: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; }
.lucky span { color: var(--muted); display: block; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.lucky b { font-weight: 600; }
.collection { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.collection .cc { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; text-decoration: none; border-radius: 4px; overflow: hidden; opacity: 0.22; filter: grayscale(0.9); }
.collection .cc .mini { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: clamp(0.62rem, 0.3rem + 1.2vw, 1rem); }
.collection .cc.got { opacity: 1; filter: none; }
.collection .cc.now { outline: 2px solid var(--seal); outline-offset: 1px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.people button { font: 500 0.85rem var(--sans); color: var(--paper); background: var(--ink); border: 1px solid var(--rule-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 34px; }
.people button:hover { border-color: var(--paper-2); }
.people .x { color: var(--muted); margin-left: 4px; }
.facts .mini { width: 30px; height: 30px; border-radius: 4px; font-size: 1.05rem; }
