/* Saju Score styles: minhwa (Korean folk painting) and obangsaek (the five traditional colours).
 * Hanji paper, ink line, mineral colour, papercut layers. Mobile first at 390 px.
 * Fonts are subsets made by tools/make-fonts.py from four SIL OFL fonts (see /credits). */

@font-face { font-family: 'Saju Display'; src: url(fonts/saju-display.woff2) format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Saju Text'; src: url(fonts/saju-text-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F, U+2190-2193; }
@font-face { font-family: 'Saju Text'; src: url(fonts/saju-text-ko.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF; }
@font-face { font-family: 'Saju Hanja'; src: url(fonts/saju-hanja.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Saju Brush'; src: url(fonts/saju-brush.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --hanji: #f1e6cf;
  --hanji-2: #e6d6b6;
  --hanji-3: #fbf6ea;
  --ink: #1f1b1a;
  --ink-2: #4b423d;
  --muted: #5f554e;
  --rule: #cdbb97;
  --cheong: #1d4f91;
  --cheong-deep: #15315e;
  --jeok: #c8372d;
  --hwang: #e9b224;
  --baek: #fbf6ea;
  --hong: #e27d86;
  --nok: #3f8f4e;
  --wood: #237388; --fire: #cc3b2c; --earth: #e3aa28; --metal: #f7f1e3; --water: #2a2729;
  --wood-t: #cfe2e3; --fire-t: #f5cfc0; --earth-t: #f6e3b2; --metal-t: #fbf6ea; --water-t: #d8d2cc;
  --seal: var(--jeok);
  --display: 'Saju Display', 'Hahmlet', Georgia, 'Times New Roman', serif;
  --sans: 'Saju Text', 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --serif: 'Saju Hanja', 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
  --brush: 'Saju Brush', 'Nanum Brush Script', 'Saju Text', cursive;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1.1);
  --r: 12px;
  --gutter: 16px;
  --max: 1160px;
  --lift: 0 4px 0 var(--ink);
}

*, *::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(--hanji); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* Hanji fibres: a small SVG noise tile, multiplied onto the paper. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .5 -.18'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .top, .foot, .saekdong { position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--jeok); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cheong); }
:focus-visible { outline: 3px solid var(--cheong); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.35rem + 4vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 700; }
.ko, [lang="ko"] { font-family: var(--sans); }
.hj { font-family: var(--serif); font-weight: 900; }
.brush { font-family: var(--brush); font-weight: 400; color: var(--jeok); letter-spacing: 0; text-transform: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.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.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* 색동 saekdong stripe */
.saekdong { height: 6px; background: linear-gradient(90deg, var(--jeok) 0 16.6%, var(--hwang) 0 33.3%, var(--nok) 0 50%, var(--baek) 0 66.6%, var(--cheong) 0 83.3%, var(--hong) 0); }

/* Header */
.top { background: var(--hanji-3); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; gap: 6px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font: 800 1.2rem/1 var(--display); }
.brand .seal { transform: rotate(-6deg); flex: none; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 8px; border-radius: 999px; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.nav a:hover { background: var(--hanji-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--baek); }
@media (max-width: 520px) { .nav a.opt { display: none; } }
@media (max-width: 400px) { .brand { font-size: 1.08rem; gap: 8px; } .nav a { font-size: .9rem; padding: 8px 6px; } }
@media (max-width: 360px) { .brand { font-size: .98rem; gap: 6px; } .brand .seal { width: 26px; height: 26px; } .nav a { font-size: .82rem; padding: 8px 4px; } }

/* The painted screen on the home page */
.screen { position: relative; overflow: hidden; background: var(--cheong-deep); border-bottom: 3px solid var(--ink); }
.screen .scene { width: 100%; height: clamp(360px, 44vw, 560px); }
.screen .scene.wide { display: none; }
@media (min-width: 700px) { .screen .scene.narrow { display: none; } .screen .scene.wide { display: block; } }
.walk-in { position: absolute; left: 50%; top: 14%; width: min(600px, 84vw); transform: translateX(-50%); z-index: 2; }
.walk-in .animal { width: 100%; height: auto; }
.walk-in.quad { top: auto; bottom: 16%; width: min(440px, 70vw); }
.today-tag {
  position: absolute; left: var(--gutter); bottom: 16px; z-index: 3; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 2 * var(--gutter));
  background: var(--hanji-3); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px 8px 10px; box-shadow: var(--lift);
}
.today-tag:hover { background: #fff; }
.today-tag .pair { display: grid; gap: 2px; flex: none; }
.today-tag .pair .mini { width: 30px; height: 30px; border-radius: 7px; border: 2px solid var(--ink); font-size: 1.1rem; }
.today-tag b { font: 800 1.05rem/1.15 var(--display); display: block; }
.today-tag small { color: var(--ink-2); font-size: .82rem; display: block; line-height: 1.35; }
.today-tag .brush { font-size: 1.25rem; line-height: 1; display: block; }
@media (min-width: 1192px) { .today-tag { left: calc(50% - var(--max) / 2 + var(--gutter)); bottom: 26px; } }

/* Hero and calculator */
.hero { padding: 26px 0 10px; position: relative; }
.hero-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 460px; gap: 56px; align-items: start; } .hero-grid .calc { margin-top: -110px; } }
.eyebrow { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font: 700 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.eyebrow .brush { font-size: 1.55rem; }
.eyebrow .ko { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.explain-strip { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 600px; }
@media (min-width: 560px) { .explain-strip { grid-template-columns: repeat(4, 1fr); } }
.explain-strip li { background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px 9px; font-size: .8rem; line-height: 1.3; color: var(--ink-2); box-shadow: 0 3px 0 var(--ink); }
.explain-strip b { display: block; font: 800 1.6rem/1 var(--display); color: var(--ink); margin-bottom: 3px; }
.explain-strip li:nth-child(1) b { color: var(--cheong); } .explain-strip li:nth-child(2) b { color: var(--jeok); } .explain-strip li:nth-child(3) b { color: #b8841a; } .explain-strip li:nth-child(4) b { color: var(--nok); }

.card { position: relative; background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 18px; padding: 20px 18px 18px; box-shadow: 0 6px 0 var(--ink), 0 24px 40px -26px rgba(0,0,0,.5); }
.calc { z-index: 4; }
.calc::before, .gh-forms .card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -2px; height: 8px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--jeok) 0 20%, var(--hwang) 0 40%, var(--nok) 0 60%, var(--cheong) 0 80%, var(--hong) 0); }
.calc h2 { font-size: 1.5rem; margin: 6px 0 14px; }
.field { margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
input[type="date"], input[type="time"], input[type="text"], input[type="email"], input[type="number"], select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem var(--sans); color: var(--ink);
  background: var(--hanji); border: 2px solid var(--ink); border-radius: 10px; appearance: none; -webkit-appearance: none;
}
/* iOS Safari gives date and time inputs an intrinsic minimum width that ignores width: 100%, so they poke out of narrow forms. */
input[type="date"], input[type="time"] { display: block; min-width: 0; max-width: 100%; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
input:focus, select:focus { outline: none; border-color: var(--cheong); box-shadow: 0 0 0 3px rgba(29,79,145,.25); }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cheong); flex: none; }
.seg { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--hanji); }
.seg label { flex: 1; text-align: center; cursor: pointer; font-size: .95rem; font-weight: 700; }
.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(--cheong); color: var(--baek); }
.seg input:focus-visible + span { outline: 3px solid var(--hwang); outline-offset: -3px; }
.seg label + label { border-left: 2px solid var(--ink); }
details.adv { border-top: 2px dotted var(--rule); margin-top: 6px; padding-top: 10px; }
details.adv summary { cursor: pointer; font-size: .95rem; font-weight: 700; padding: 6px 0; min-height: 32px; }
details.adv[open] summary { margin-bottom: 10px; }
/* The optional email on the calculator: one box once an address is typed. */
.calc-email { border: 0; border-top: 2px dotted var(--rule); margin: 6px 0 14px; padding: 12px 0 0; min-width: 0; }
.calc-email legend { padding: 0 6px 0 0; font-weight: 700; font-size: .95rem; }
.calc-email .field { margin: 8px 0 10px; }
.calc-email .field > label { font-weight: 500; font-size: .92rem; }
.calc-email-boxes { display: grid; gap: 10px; margin: 0 0 6px; }
.calc-email-boxes[hidden] { display: none; }
.calc-email .check span { font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.calc-email .form-msg:empty { display: none; }
.calc-email .form-msg { margin-top: 8px; }
.calc-note { margin: 10px 0 0; }
.result-signup { margin: 0 0 18px; padding: 14px 18px; }
.result-signup p { margin: 0; }
.result-signup .form-msg { font-size: .98rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 11px 22px;
  font: 800 1.02rem/1.1 var(--display); color: var(--ink); background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--lift); cursor: pointer; text-decoration: none; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.full { width: 100%; }
.btn.seal-btn { background: var(--jeok); color: var(--baek); }
.btn.seal-btn:hover { background: #d44435; }
.btn.seal-btn::before { content: "印"; width: 26px; height: 26px; border-radius: 50%; background: var(--baek); color: var(--jeok); display: grid; place-items: center; font: 900 13px/1 var(--serif); flex: none; }
.btn.ghost { background: var(--hanji-3); }
.btn.small-btn { min-height: 38px; padding: 6px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .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(--hanji-3); border: 2px solid var(--ink); border-radius: 12px; max-height: 260px; overflow: auto; box-shadow: 0 6px 0 var(--ink); }
.combo li { padding: 10px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.combo li small { color: var(--muted); margin-left: 6px; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--earth-t); }
.combo li.pf-none { cursor: default; color: var(--muted); }
.combo li.pf-none:hover { background: none; }
.combo li.pf-more { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.combo input[type="text"] { scroll-margin-top: 84px; }
.pf-toggle { display: inline-block; margin-top: 4px; padding: 6px 0; min-height: 32px; font: 700 .88rem var(--sans); color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pf-toggle:hover { color: var(--cheong); }
.pf-panel { margin-top: 6px; padding: 10px 12px 12px; border: 2px dashed var(--rule); border-radius: 12px; }
.pf-panel[hidden] { display: none; }
.pf-panel p { margin: 0 0 8px; font-size: .92rem; }
.pf-panel label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form-msg.err[role="alert"] { margin: 10px 0 16px; }
.form-msg.err[role="alert"]:empty { display: none; }

/* Bands and section heads */
.band { padding: 54px 0; position: relative; border-top: 2px solid var(--ink); }
.band.tint { background: var(--hanji-2); }
.band-head { display: grid; gap: 2px; margin-bottom: 20px; }
.band-head h2 { margin: 0; }
.band-head .brush, .vert { font: 400 1.85rem/1 var(--brush); color: var(--jeok); writing-mode: horizontal-tb; letter-spacing: 0; }
.ink-line { width: 150px; height: 14px; margin-top: 6px; }

/* The result: four pillars as a folding screen (병풍), read right to left */
.result { padding: 10px 0 36px; background: var(--hanji-2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.result[hidden] { display: none; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: end; margin: 26px 0 14px; }
.result-head h2 { margin: 0; }
.result-head .brush { display: block; font-size: 1.85rem; line-height: 1; }
.result-head p { margin: 0; max-width: 60ch; }
.result-top { display: grid; gap: 18px; align-items: start; }
@media (min-width: 960px) { .result-top { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } }
.chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; direction: ltr; align-items: stretch; perspective: 1400px; }
.chart .col {
  position: relative; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 5px; padding: 8px 5px 10px;
  background: var(--hanji-3); border: 7px solid transparent; outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 3px;
  background-image: linear-gradient(var(--hanji-3), var(--hanji-3)), repeating-linear-gradient(45deg, var(--cheong) 0 6px, #2b62a8 6px 12px);
  background-clip: padding-box, border-box; background-origin: border-box; transform-origin: 0 50%;
}
.chart .col.is-day { background-image: linear-gradient(var(--hanji-3), var(--hanji-3)), repeating-linear-gradient(45deg, var(--jeok) 0 6px, #d95345 6px 12px); }
.col-label { font-weight: 800; font-size: .76rem; line-height: 1.2; letter-spacing: .02em; }
.col-label .ko { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); }
.god { font-size: .7rem; font-weight: 700; min-height: 2.4em; line-height: 1.15; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.god.self { color: var(--baek); background: var(--jeok); border-radius: 999px; min-height: auto; padding: 3px 4px; margin: 4px 0; }
.tile {
  position: relative; border: 2px solid var(--ink); border-radius: 12px; aspect-ratio: 1 / 1.08; display: grid; place-items: center; align-content: center; gap: 2px;
  padding: 6px 2px; overflow: hidden; box-shadow: 0 3px 0 var(--ink);
}
.tile .g { font: 900 clamp(2rem, 1.2rem + 3.6vw, 3.8rem)/1 var(--serif); }
.tile .k { font: 700 .72rem/1 var(--sans); }
.tile .e { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.el-0 { background: var(--wood); color: var(--baek); }
.el-1 { background: var(--fire); color: var(--baek); }
.el-2 { background: var(--earth); color: var(--ink); }
.el-3 { background: var(--metal); color: var(--ink); }
.el-4 { background: var(--water); color: var(--baek); }
.tile.branch.art { aspect-ratio: 1 / 1.35; align-content: end; place-items: end center; padding: 0 2px 6px; color: var(--ink); }
.tile.branch.art.el-0 { background: var(--wood-t); } .tile.branch.art.el-1 { background: var(--fire-t); } .tile.branch.art.el-2 { background: var(--earth-t); }
.tile.branch.art.el-3 { background: var(--metal-t); } .tile.branch.art.el-4 { background: var(--water-t); }
.tile.branch.art .g { position: absolute; top: 5px; left: 7px; font-size: clamp(1.05rem, .85rem + 1vw, 1.7rem); }
.tile.branch.art .animal { width: 116%; max-width: none; height: auto; margin: 0 -8% 0; align-self: center; }
.tile.branch.art .e { display: none; }
.tile.empty { background: repeating-linear-gradient(135deg, var(--hanji) 0 8px, var(--hanji-2) 8px 16px); color: var(--muted); border-style: dashed; box-shadow: none; }
.tile.empty .g { font-size: 1.6rem; }
.is-day .tile.stem { box-shadow: 0 3px 0 var(--ink), 0 0 0 4px var(--hanji-3), 0 0 0 6px var(--jeok); }
.hidden-stems { font-size: .7rem; color: var(--ink-2); line-height: 1.35; min-height: 2.7em; }
.hidden-stems .hj { font-weight: 900; color: var(--ink); }
.stage { font-size: .68rem; color: var(--muted); line-height: 1.25; }
.read-note { font-size: .85rem; color: var(--ink-2); margin: 10px 0 0; display: flex; gap: 8px; align-items: center; }
.read-note .arrow { font-family: var(--serif); }
@media (min-width: 720px) {
  .chart { gap: 5px; }
  .tile .k { font-size: .85rem; }
  .god, .col-label { font-size: .8rem; }
  .hidden-stems, .stage { font-size: .76rem; }
}

.notes { margin: 12px 0 0; padding: 0; list-style: none; }
.notes li { font-size: .88rem; color: var(--ink-2); padding: 8px 12px; border: 2px solid var(--ink); border-left: 8px solid var(--hwang); background: var(--hanji-3); margin-bottom: 6px; border-radius: 10px; }
.meta-line { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.panels { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 900px) { .panels { grid-template-columns: 1.2fr 1fr; } }
.panel { position: relative; background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 18px; padding: 20px 18px; min-width: 0; box-shadow: 0 5px 0 var(--ink); }
.panel h3 { margin-bottom: 10px; }
/* Featured partner card: a dark ink panel under a saekdong stripe, so it stands apart from the
   hanji panels, with the partner's banner, a gold pill button and the disclosure under it. */
.partner {
  container-type: inline-size; position: relative; display: grid; gap: 18px; margin-top: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(29, 79, 145, .6), transparent 62%), var(--ink);
  color: var(--baek); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--jeok);
  padding: 26px 18px 20px;
}
.partner::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--jeok) 0 16.6%, var(--hwang) 0 33.3%, var(--nok) 0 50%, var(--baek) 0 66.6%, var(--cheong) 0 83.3%, var(--hong) 0); }
.partner-media a { display: block; max-width: 320px; margin-inline: auto; border-radius: 12px; }
.partner-media img { width: 100%; height: auto; border-radius: 12px; border: 2px solid rgba(251, 246, 234, .25); }
.partner-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 .9rem/1.3 var(--sans); color: #d9ccb4; }
.partner-tag span { background: var(--jeok); color: var(--baek); border-radius: 999px; padding: 3px 11px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.partner h3 { color: var(--baek); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin: 0 0 14px; }
.partner-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.partner-points li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.partner-points .tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--hwang); color: var(--ink); font: 900 .8rem/1 var(--sans); }
.partner-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 24px;
  font: 800 1.1rem/1.15 var(--display); color: var(--ink); background: var(--hwang);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--jeok); text-decoration: none;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms;
}
.partner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--jeok); background: #f2c240; }
.partner-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--jeok); }
.partner a:focus-visible { outline: 3px solid var(--baek); outline-offset: 3px; }
.partner-note { margin: -2px 0 14px; font-size: .86rem; line-height: 1.45; color: #d9ccb4; }
.partner-note a { color: var(--baek); text-decoration-color: var(--hwang); }
.partner.compact h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); margin-bottom: 8px; }
.partner.compact .partner-note { margin: 0 0 16px; }
@media (min-width: 600px) {
  .partner:not(.compact) { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: center; gap: 28px; padding: 30px 26px 24px; }
  .partner:not(.compact) .partner-body { max-width: 62ch; }
  .partner:not(.compact) .partner-btn { width: auto; display: inline-flex; }
}
@container (min-width: 640px) {
  .partner.compact .partner-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  .partner.compact .partner-tag, .partner.compact h3, .partner.compact .partner-note { grid-column: 1; }
  .partner.compact h3 { margin-bottom: 0; }
  .partner.compact .partner-note { margin: 6px 0 0; }
  .partner.compact .partner-btn { grid-column: 2; grid-row: 1 / span 3; width: auto; }
}
.gh-out .partner { margin: 22px 0 0; }
/* Amazon books panel in the guide sidebar: a hanji panel, never an ink partner card. */
.books-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.books-list li { line-height: 1.4; }
.books-list a { font-weight: 700; }
.kicker { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font: 700 .76rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.kicker .brush { font-size: 1.35rem; }
.panel.blue { background: var(--cheong); color: var(--baek); }
.panel.blue .kicker { color: #c9d6ee; } .panel.blue .kicker .brush { color: #f6cf5a; }
.panel.blue a { text-decoration-color: var(--hwang); }
.panel.blue .muted { color: #c9d6ee; }
.panel.red { background: var(--fire-t); }
.panel.yellow { background: var(--earth-t); }
.dm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dm-head .tile { width: 80px; 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(--ink-2); font-size: .95rem; }

/* Your animal */
.my-animal { overflow: hidden; }
.my-animal .orb { position: absolute; right: -44px; top: -44px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid var(--ink); }
.my-animal > *:not(.orb) { position: relative; }
.my-animal .art { margin: -4px -8px 4px; }
.my-animal .art .animal { width: 100%; height: auto; }
.my-animal h3 { font-size: 1.65rem; margin-bottom: 4px; }
.my-animal .names { font-size: .95rem; color: var(--ink-2); margin-bottom: 10px; }

/* Element cycle */
.cycle { width: 100%; max-width: 340px; margin: 0 auto; }
.cycle text { font-family: var(--sans); }
.cycle .disc text:first-of-type { font-family: var(--serif); }
.el-bars { display: grid; gap: 8px; margin-top: 12px; }
.el-bar { display: grid; grid-template-columns: 80px 1fr 34px; gap: 10px; align-items: center; font-size: .88rem; font-weight: 700; }
.el-bar .track { display: block; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--hanji); overflow: hidden; }
.el-bar .fill { display: block; height: 100%; border-right: 2px solid var(--ink); }
.el-bar .n { text-align: right; font-variant-numeric: tabular-nums; }
.toggle-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: .88rem; color: var(--ink-2); }

/* Luck pillars */
.luck { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.luck .lp { flex: 0 0 70px; text-align: center; scroll-snap-align: start; }
.luck .lp .tile { aspect-ratio: 1; border-radius: 10px; }
.luck .lp .tile .g { font-size: 1.7rem; }
.luck .lp .tile + .tile { margin-top: 5px; }
.luck .lp .age { font-size: .78rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.luck .lp.now .age { color: var(--ink); font-weight: 700; }
.luck .lp.now { outline: 3px solid var(--jeok); outline-offset: 3px; border-radius: 10px; }

/* 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: 700 1.08rem/1.45 var(--display); margin: 0 0 6px; }
.today-hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--ink); }
.today-hero .stage-art { width: 100%; height: clamp(300px, 36vw, 440px); font-size: inherit; }
.today-hero .stage-art.wide { display: none; }
@media (min-width: 700px) { .today-hero .stage-art.narrow { display: none; } .today-hero .stage-art.wide { display: block; } }
.tomorrow { display: flex; gap: 12px; align-items: center; }
.tomorrow .animal { width: 96px; height: auto; flex: none; filter: grayscale(1) opacity(.45); }

/* Share */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-preview { margin-top: 12px; max-width: 220px; border-radius: 10px; border: 2px solid var(--ink); }

/* How it works and grids */
.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(--hanji-3); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 4px 0 var(--ink); }
.steps li::before { counter-increment: s; content: counter(s, cjk-ideographic); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--jeok); color: var(--baek); border: 2px solid var(--ink); font: 900 1.3rem/1 var(--serif); margin-bottom: 10px; }
.steps li:nth-child(2)::before { background: var(--cheong); } .steps li:nth-child(3)::before { background: var(--hwang); color: var(--ink); }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid-links a { display: flex; gap: 10px; align-items: center; padding: 10px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; background: var(--hanji-3); min-height: 60px; box-shadow: 0 3px 0 var(--ink); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.grid-links a:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 6px 0 var(--ink); }
.mini { display: grid; place-items: center; font-family: var(--serif); font-weight: 900; line-height: 1; }
.grid-links .mini { width: 40px; height: 40px; border-radius: 9px; border: 2px solid var(--ink); font-size: 1.3rem; flex: none; }
.grid-links .t { font-size: .92rem; line-height: 1.25; font-weight: 700; }
.grid-links .t small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.sixty { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.sixty a { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
.sixty .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sixty .duo .mini { width: 100%; height: 36px; }
.sixty .pic { display: block; height: 70px; }
.sixty .pic .animal { height: 70px; width: 100%; }
/* Animal cards (home parade, the animals index, element pages) */
.parade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .parade { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .parade { grid-template-columns: repeat(6, 1fr); } }
.parade a { text-decoration: none; background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 10px 12px; box-shadow: 0 4px 0 var(--ink); display: grid; gap: 2px; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.parade a:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 7px 0 var(--ink); }
.parade .pic { height: 108px; display: grid; place-items: center; }
.parade .pic .animal { max-height: 108px; width: 100%; height: 100%; }
.parade b { font: 800 1.1rem/1.1 var(--display); }
.parade small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.parade .hjk { font: 900 1rem var(--serif); color: var(--jeok); }
.parade a.here { background: var(--earth-t); }

.faq details { border-bottom: 2px dotted var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Content pages */
.page-hero { padding: 28px 0 18px; }
.email-page { padding-bottom: 48px; }
.email-page .email-art { max-width: 220px; }
.email-page .signup { max-width: 640px; margin-top: 22px; }
.email-page p .btn { margin: 0 8px 12px 0; }
.crumbs { font-size: .86rem; color: var(--ink-2); margin-bottom: 12px; }
.pillar-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pillar-hero .stack { display: grid; gap: 8px; width: 118px; flex: none; }
.pillar-hero .stack .tile { aspect-ratio: 1; }
.pillar-hero .stack .tile .g { font-size: 3.6rem; }
.pillar-hero .stack .tile.branch.art { aspect-ratio: 1 / 1.25; }
.pillar-hero .names { flex: 1 1 240px; }
.pillar-hero .names .alt { font-size: 1.05rem; color: var(--ink-2); }
.animal-hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--ink); }
.animal-hero .stage-art { width: 100%; height: clamp(320px, 46vw, 540px); font-size: inherit; }
.animal-hero .stage-art.wide { display: none; }
@media (min-width: 700px) { .animal-hero .stage-art.narrow { display: none; } .animal-hero .stage-art.wide { display: block; } }
.animal-hero .runner, .today-hero .runner { position: absolute; left: 50%; bottom: 9%; width: min(520px, 78vw); transform: translateX(-50%); z-index: 2; }
.animal-hero .runner .animal, .today-hero .runner .animal { width: 100%; height: auto; }
.animal-hero .runner.long, .today-hero .runner.long { width: min(640px, 92vw); bottom: 16%; }
.content-grid { display: grid; gap: 28px; padding-bottom: 44px; }
@media (min-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; } }
.aside { display: grid; gap: 18px; align-content: start; }
.facts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.facts th, .facts td { text-align: left; padding: 8px 6px; border-bottom: 2px dotted var(--rule); vertical-align: top; }
.facts th { color: var(--ink-2); font-weight: 700; width: 42%; }
.panel.blue .facts th, .panel.blue .facts td { border-color: rgba(251,246,234,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; list-style: none; }
.chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 700; background: var(--hanji-3); box-shadow: 0 2px 0 var(--ink); }
.chips li:nth-child(4n+1) { background: var(--fire-t); } .chips li:nth-child(4n+2) { background: var(--earth-t); } .chips li:nth-child(4n+3) { background: var(--wood-t); }
.two-lists { display: grid; gap: 14px; }
@media (min-width: 640px) { .two-lists { grid-template-columns: 1fr 1fr; } }
.two-lists > div { background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; }
.two-lists h3 { font-size: 1.05rem; }
.two-lists ul { margin: 0; padding-left: 1.1em; }
.reflect { position: relative; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px 14px 20px; background: var(--hanji-3); font: 700 1.12rem/1.5 var(--display); box-shadow: 0 4px 0 var(--ink); }
.reflect::before { content: ""; position: absolute; left: -2px; top: 12px; bottom: 12px; width: 7px; border-radius: 0 6px 6px 0; background: var(--jeok); }
.years-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; background: var(--hanji-3); border: 2px solid var(--ink); }
.years-table th, .years-table td { padding: 8px 8px; border-bottom: 2px dotted var(--rule); text-align: left; }
.years-table th { background: var(--hanji-2); font-weight: 700; }
.years-table tr.now td { background: var(--earth-t); font-weight: 700; }
.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: 2px solid var(--ink); border-radius: 999px; padding: 9px 16px; font-size: .92rem; font-weight: 700; background: var(--hanji-3); box-shadow: 0 3px 0 var(--ink); }

/* Five colour variants of an animal (animal pages) */
.five { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
@media (min-width: 640px) { .five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.five > a, .five > div { text-decoration: none; background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 8px 10px; box-shadow: 0 4px 0 var(--ink); text-align: center; }
.five > .now { background: var(--hwang); }
.five .pic { height: 86px; display: grid; place-items: center; }
.five .pic .animal { max-height: 86px; width: 100%; height: 100%; }
.five b { display: block; font: 800 .98rem/1.2 var(--display); }
.five small { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.35; }
/* The twelve branch wheel */
.wheel { max-width: 380px; margin: 10px auto 0; }
.wheel svg { width: 100%; height: auto; }
.legend { display: grid; gap: 6px; font-size: .88rem; margin: 10px 0 0; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 26px; height: 0; border-top: 4px solid; vertical-align: middle; margin-right: 8px; }
.compat td:first-child { width: 56px; }
.compat .animal { width: 52px; height: 36px; }
.tag { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--hanji-3); margin: 0 4px 3px 0; }
.tag.harmony { background: var(--wood-t); } .tag.tension { background: var(--fire-t); } .tag.same { background: var(--earth-t); }

/* Gunghap */
.gh-forms { display: grid; gap: 18px; }
@media (min-width: 860px) { .gh-forms { grid-template-columns: 1fr 1fr; } }
.gh-forms .card h2 { font-size: 1.2rem; display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.gh-forms .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid var(--ink); }
.gh-meet { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; margin: 8px 0 4px; max-width: 640px; }
.gh-meet .animal { width: 100%; height: auto; }
.gh-meet .flip .animal { transform: scaleX(-1); }
.gh-meet .heart { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--jeok); color: var(--baek); border: 2px solid var(--ink); font: 900 1.2rem var(--serif); margin-bottom: 30px; }
.gh-meet figcaption { text-align: center; font-weight: 700; font-size: .88rem; }
.gh-pair { display: grid; gap: 18px; }
@media (min-width: 860px) { .gh-pair { grid-template-columns: 1fr 1fr; } }
.gh-pair .chart .col { border-width: 5px; padding: 6px 3px 8px; }
.gh-pair .tile .g { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.8rem); }
.tone-card .tone { font: 800 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.1 var(--display); margin: 4px 0 8px; }
.meter { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-size: .88rem; font-weight: 700; margin-top: 8px; }
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { padding: 10px 0; border-bottom: 2px dotted var(--rule); font-size: .93rem; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.links-list .badge { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; border: 2px solid var(--ink); white-space: nowrap; background: var(--hanji-3); }
.links-list .badge.harmony { background: var(--wood-t); }
.links-list .badge.tension { background: var(--fire-t); }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.people button { font: 700 .88rem var(--sans); color: var(--ink); background: var(--hanji-3); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; box-shadow: 0 2px 0 var(--ink); }
.people button:hover { background: var(--earth-t); }
.people .x { color: var(--muted); margin-left: 4px; }

/* Email and report */
.signup form { display: grid; gap: 10px; }
.signup .line { display: grid; gap: 8px; grid-template-columns: 1fr; }
.signup .btn.send { justify-self: start; }
@media (max-width: 559px) { .signup .btn.send { justify-self: stretch; } }
.form-msg { font-size: .9rem; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: #1f6b3a; font-weight: 700; }
.form-msg.err { color: #a3261c; font-weight: 700; }
.panel.blue .form-msg.ok { color: #bfe8c8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Daily fortune */
.fortune { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: center; }
.score-ring { position: relative; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--hwang) calc(var(--p) * 1%), rgba(31,27,26,.14) 0); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.score-ring > div { width: 98px; height: 98px; border-radius: 50%; background: var(--baek); border: 2px solid var(--ink); display: grid; place-items: center; align-content: center; text-align: center; color: var(--ink); }
.score-ring b { font: 800 2.3rem/1 var(--display); display: block; }
.score-ring small { font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .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: .86rem; }
.score-why summary { cursor: pointer; font-weight: 700; 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: 2px dotted var(--rule); padding: 6px 0; }
.score-why b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-why b.up { color: #1f6b3a; }
.score-why b.down { color: #a3261c; }
.panel.blue .score-why li { border-color: rgba(251,246,234,.35); }
.panel.blue .score-why b.up { color: #bfe8c8; } .panel.blue .score-why b.down { color: #ffc2b8; }
.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: 170px; height: 170px; }
.score-demo .score-ring > div { width: 136px; height: 136px; }
.score-demo .score-ring b { font-size: 3rem; }
.score-demo p { margin: 0; font-size: .82rem; 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: 6px solid var(--hwang); padding: 2px 0 2px 12px; color: var(--ink-2); }
.score-list b { color: var(--ink); }
.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(--hanji); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; font-size: .84rem; line-height: 1.3; }
.panel.blue .lucky li { background: rgba(251,246,234,.1); border-color: rgba(251,246,234,.55); }
.lucky span { color: var(--muted); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.panel.blue .lucky span { color: #c9d6ee; }
.lucky b { font-weight: 700; }

/* Sixty day collection and streak */
.collection { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 760px; }
@media (min-width: 700px) { .collection { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.collection .cc { position: relative; aspect-ratio: 1; display: grid; place-items: center; text-decoration: none; border: 2px dashed rgba(31,27,26,.35); border-radius: 10px; background: var(--hanji); color: rgba(31,27,26,.4); overflow: hidden; }
.collection .cc .animal { width: 92%; height: auto; }
.collection .cc.got { border: 2px solid var(--ink); background: var(--hanji-3); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.collection .cc.now { background: var(--hwang); border-width: 3px; overflow: visible; }
.collection .cc.now::after { content: "Today"; position: absolute; top: -9px; right: -6px; background: var(--jeok); color: var(--baek); font: 700 9px/1 var(--sans); padding: 3px 5px; border-radius: 999px; border: 1.5px solid var(--ink); }
.collection .cc .n { font: 700 .72rem/1 var(--sans); }
.progress { display: flex; gap: 12px; align-items: center; margin: 8px 0 4px; font-weight: 700; }
.progress .track { flex: 1; height: 14px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--hanji); max-width: 520px; }
.progress .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--jeok) 0 20%, var(--hwang) 0 40%, var(--nok) 0 60%, var(--cheong) 0 80%, var(--hong) 0); border-right: 2px solid var(--ink); }
.streak { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-weight: 700; font-size: .95rem; }
.streak .knots { display: flex; gap: 4px; }
.streak .knots i { width: 18px; height: 18px; border-radius: 50%; background: var(--hwang); border: 2px solid var(--ink); display: block; }
.streak .knots i.off { background: transparent; border-color: rgba(31,27,26,.35); }
.panel.blue .streak .knots i.off { border-color: rgba(251,246,234,.55); }
.milestones { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.milestones li { border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; background: var(--hanji-3); }
.milestones li.done { background: var(--hwang); }
.milestones li.todo { border-style: dashed; color: var(--muted); }

/* Family board */
.board { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 26px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--hanji); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 12px 6px 8px; }
.board li.me { background: var(--earth-t); }
.board .rank { font: 800 1.1rem var(--display); text-align: center; }
.board .animal { width: 56px; height: 40px; }
.board .who b { display: block; font-weight: 700; line-height: 1.2; }
.board .who small { color: var(--ink-2); font-size: .8rem; }
.board .sc { font: 800 1.5rem/1 var(--display); }

/* Footer */
.foot { background: var(--ink); color: #e9dfcb; margin-top: 0; font-size: .92rem; }
.foot .wave { display: block; width: 100%; height: 36px; margin-top: -1px; background: var(--hanji); }
.foot .wrap { padding-top: 30px; padding-bottom: 36px; }
.foot a { color: var(--baek); text-decoration-color: var(--hwang); }
.foot .brand { color: var(--baek); }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-grid > div:first-child { grid-column: auto; } }
.foot h2 { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b9ad97; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot .foot-disc { margin: 22px 0 0; max-width: 75ch; font-size: .84rem; line-height: 1.5; color: #d9ccb4; }
.foot .foot-disc + .foot-care { margin-top: 8px; }
.foot .ent { margin-top: 22px; padding-top: 16px; border-top: 1px solid #3b3431; font-size: .84rem; color: #b9ad97; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .foot, .calc, .signup, .share-row, .no-print, .screen, .animal-hero, .today-hero { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
}

/* Returning visitor panels on the home page, and the gunghap result */
.welcome { display: grid; gap: 18px; margin-top: 24px; }
.welcome[hidden] { display: none; }
.gh-out { margin-top: 30px; }
.gh-out[hidden] { display: none; }
.gh-meet > div { min-width: 0; }
.facts .mini { width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--ink); font-size: 1.05rem; }
@media (max-width: 600px) { .pillar-hero .stack { grid-auto-flow: column; grid-auto-columns: 108px; width: auto; align-items: end; } }
.collection .cc:not(.got) .n { color: var(--muted); }
.parade a.here .hjk { color: var(--ink); }
.panel.yellow .brush, .panel.red .brush, .my-animal .brush, .band.tint .brush, .result .brush { color: #a3261c; }
