@font-face { font-family: "Pu"; src: url("fonts/pu.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --paper: #fbf5ea; --paper2: #f4ead9; --card: #fffdf8; --ink: #2a211c; --ink2: #5f5148; --mute: #93857a; --line: #e6d9c6;
  --red: #e2573a; --teal: #1f8a84; --gold: #d9a441; --ac: #e2573a;
  --disp: "Pu", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --r: 22px; --shadow: 0 1px 0 rgba(42,33,28,.04), 0 10px 30px -12px rgba(74,48,24,.28);
  --w: min(1240px, calc(100vw - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 85% -10%, #ffe6cf 0, transparent 60%), radial-gradient(900px 500px at -10% 20%, #dff2ee 0, transparent 60%); background-attachment: fixed; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, .disp { font-family: var(--disp); font-weight: 900; line-height: 1.2; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 .9em; }
.wrap { width: var(--w); margin: 0 auto; }
::selection { background: var(--red); color: #fff; }

/* bar */
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(20px, calc((100vw - 1240px) / 2));
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; color: var(--red); }
.brand b { font-family: var(--disp); font-size: 24px; font-weight: 900; }
.brand small { font-size: 12px; color: var(--mute); border-left: 1px solid var(--line); padding-left: 10px; letter-spacing: .08em; }
.bar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; color: var(--ink2); white-space: nowrap; transition: background .2s, color .2s; }
.bar nav a:hover { background: var(--paper2); color: var(--ink); }
.bar nav a.on { background: var(--ink); color: var(--paper); }

/* hero */
.hero { position: relative; padding: clamp(28px, 6vh, 64px) 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; justify-items: center; position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--red); }
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.hero h1 { font-size: clamp(64px, 15vw, 168px); line-height: .95; letter-spacing: .04em; background: linear-gradient(180deg, #2a211c 30%, #7b3a26 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .05em 0; }
.hero .lead { max-width: 640px; font-size: clamp(16px, 2vw, 19px); color: var(--ink2); margin: 0; }
.hero .lead b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 8px 20px -10px rgba(42,33,28,.6); }
.btn:hover { transform: translateY(-2px); background: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; margin-top: 8px; color: var(--ink2); font-size: 14px; }
.nums b { font-family: var(--disp); font-size: 30px; color: var(--ink); margin-right: 6px; vertical-align: -3px; }
.parade { position: relative; margin-top: clamp(10px, 3vh, 30px); height: clamp(300px, 52vh, 520px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: radial-gradient(60% 100% at 50% 100%, rgba(74,48,24,.16), transparent 70%); pointer-events: none; }
.track { position: absolute; left: 0; bottom: 0; display: flex; align-items: flex-end; gap: clamp(6px, 2vw, 26px); height: 100%; width: max-content; animation: slide var(--dur, 90s) linear infinite; will-change: transform; }
.parade:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.walker { position: relative; height: 100%; display: flex; align-items: flex-end; text-decoration: none; flex: none; }
.walker img { height: 96%; width: auto; filter: drop-shadow(0 14px 14px rgba(74,48,24,.22)); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); transform-origin: 50% 100%; }
.walker:hover img { transform: scale(1.06) translateY(-6px); }
.walker span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) translateY(8px); background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: .25s; }
.walker:hover span { opacity: 1; transform: translateX(-50%); }

/* sections */
section.blk { padding: clamp(48px, 9vh, 96px) 0 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.head h2 { font-size: clamp(30px, 5vw, 50px); }
.head h2 i { font-style: normal; color: var(--red); }
.head p { margin: 0; color: var(--ink2); max-width: 560px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--red); margin-bottom: 8px; }

/* how to read */
.read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) minmax(0, 1fr); gap: 18px; align-items: center; }
.read .fig { position: relative; aspect-ratio: 3/4.4; border-radius: 28px; background: linear-gradient(170deg, #e7f0fb, #cddcf2); overflow: hidden; box-shadow: var(--shadow); }
.read .fig img.bgp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.read .fig img.g { position: absolute; left: 50%; bottom: 0; height: 96%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 12px 12px rgba(30,40,70,.25)); }
.read .fig img.c { position: absolute; right: 2%; bottom: 0; height: 30%; width: auto; filter: drop-shadow(0 8px 8px rgba(30,40,70,.25)); }
.dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.75), 0 6px 14px rgba(0,0,0,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,255,255,.35), 0 6px 14px rgba(0,0,0,.25); } }
.read ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.read li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 14px 54px; position: relative; box-shadow: var(--shadow); }
.read li b { display: block; font-family: var(--disp); font-size: 18px; }
.read li span { color: var(--ink2); font-size: 14.5px; line-height: 1.6; display: block; }
.read li::before { content: attr(data-n); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* themed line-ups */
.sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; grid-auto-flow: dense; }
.set { border-radius: var(--r); padding: 20px 22px 0; background: linear-gradient(150deg, color-mix(in oklab, var(--ac) 16%, #fffdf8), color-mix(in oklab, var(--ac2) 26%, #fffdf8)); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.set.wide { grid-column: 1 / -1; }
.set h3 { font-size: 24px; }
.set p { margin: 6px 0 0; color: var(--ink2); font-size: 15px; max-width: 640px; }
.lineup { display: flex; align-items: flex-end; justify-content: space-around; gap: 4px; height: 290px; margin-top: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.lineup::-webkit-scrollbar { display: none; }
.lineup a { position: relative; flex: 0 1 auto; height: calc(var(--h) * 92%); display: flex; align-items: flex-end; text-decoration: none; min-width: 0; }
.lineup img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 10px 10px rgba(74,48,24,.2)); transition: transform .3s cubic-bezier(.2,.9,.3,1.3); transform-origin: 50% 100%; }
.lineup a:hover img { transform: scale(1.07); }
.lineup span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(42,33,28,.86); color: #fffdf8; font-size: 12.5px; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 22px; }
.fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fgroup > span { font-size: 13px; color: var(--mute); margin-right: 2px; }
.chip { font-size: 14px; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink2); transition: .18s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search { flex: 1 1 200px; max-width: 280px; position: relative; }
.search input { width: 100%; font: inherit; padding: 8px 14px 8px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); outline: none; }
.search input:focus { border-color: var(--ink); }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--mute); }
.count { font-size: 14px; color: var(--mute); margin-left: auto; }

/* atlas grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card { position: relative; display: block; text-decoration: none; border-radius: var(--r); overflow: hidden; background: linear-gradient(165deg, color-mix(in oklab, var(--ac) 16%, #fff), color-mix(in oklab, var(--ac) 46%, #fff)); box-shadow: var(--shadow); aspect-ratio: 4/5.5; transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0, rgba(255,255,255,.75), transparent 60%); z-index: 0; }
.card .no { position: absolute; left: 14px; top: 10px; z-index: 2; font-family: var(--disp); font-weight: 900; font-size: 15px; color: color-mix(in oklab, var(--ac) 70%, #000); opacity: .75; }
.card .ph { position: absolute; left: 0; right: 0; top: 4%; bottom: 20%; z-index: 1; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .5s cubic-bezier(.2,.8,.3,1); transform-origin: 50% 90%; filter: drop-shadow(0 10px 10px color-mix(in oklab, var(--ac) 60%, rgba(0,0,0,.5))); }
.card .nm { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--ac) 30%, #fffdf8) 46%); }
.card .nm b { display: block; font-family: var(--disp); font-size: 21px; font-weight: 900; line-height: 1.2; }
.card .nm small { display: block; font-size: 12px; color: var(--ink2); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .nm em { font-style: normal; font-size: 12px; color: color-mix(in oklab, var(--ac) 65%, #000); font-weight: 700; }
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 0 rgba(42,33,28,.04), 0 24px 40px -16px color-mix(in oklab, var(--ac) 70%, rgba(0,0,0,.6)); }
.card:hover .ph img { transform: scale(1.07); }
.card.soon .ph { display: grid; place-items: center; color: color-mix(in oklab, var(--ac) 60%, #000); font-size: 13px; opacity: .7; }
.empty { grid-column: 1/-1; text-align: center; color: var(--mute); padding: 40px 0; }

/* colours (not breeds) */
.colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.col .sw { height: 124px; border-radius: 14px; margin-bottom: 12px; position: relative; overflow: hidden; }
.col img { position: absolute; right: 10px; bottom: -8px; height: 138px; width: auto; filter: drop-shadow(0 6px 6px rgba(40,26,12,.25)); }
.col b { font-family: var(--disp); font-size: 20px; display: block; }
.col span { font-size: 14.5px; color: var(--ink2); line-height: 1.65; display: block; }

/* detail */
.detail { padding: 18px 0 0; }
.crumb { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--mute); }
.crumb a { text-decoration: none; font-weight: 700; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.crumb a:hover { border-color: var(--ink); color: var(--ink); }
.dgrid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 54px); align-items: start; }
.stage { position: sticky; top: 76px; height: min(calc(100vh - 100px), 860px); min-height: 520px; border-radius: 32px; overflow: hidden; background: linear-gradient(170deg, color-mix(in oklab, var(--ac) 22%, #fff), color-mix(in oklab, var(--ac) 58%, #fff)); box-shadow: var(--shadow); isolation: isolate; }
.stage .bgp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; animation: bgin 1.2s ease both; }
@keyframes bgin { from { opacity: 0; transform: scale(1.08); } }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--ac) 45%, rgba(255,253,248,.92))); z-index: 1; pointer-events: none; }
.stage .g { position: absolute; z-index: 3; left: 46%; bottom: 1.5%; height: 93%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 18px 16px rgba(40,26,12,.32)); animation: rise .8s cubic-bezier(.2,.9,.25,1.1) both; transition: opacity .35s, transform .5s; }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(40px) scale(.97); } }
.stage .c { position: absolute; z-index: 4; right: 3%; bottom: 2%; height: 31%; width: auto; max-width: 46%; object-fit: contain; object-position: 100% 100%; filter: drop-shadow(0 10px 10px rgba(40,26,12,.35)); animation: pop .6s .35s cubic-bezier(.2,.9,.3,1.4) both; transition: all .5s cubic-bezier(.2,.8,.3,1); transform-origin: 100% 100%; cursor: zoom-in; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.stage.catmode .g { opacity: .0; transform: translateX(-50%) scale(.96); pointer-events: none; }
.stage.catmode .c { right: 50%; transform: translateX(50%); height: 68%; max-width: 92%; bottom: 6%; cursor: zoom-out; object-position: 50% 100%; }
.stage .tag { position: absolute; z-index: 5; left: 16px; top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.stage .tag span, .stage .tag button { font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; background: rgba(255,253,248,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); }
.stage .tag button.on { background: var(--ink); color: var(--paper); }
.stage .cap { position: absolute; z-index: 5; left: 18px; bottom: 14px; font-size: 12.5px; color: var(--ink2); background: rgba(255,253,248,.8); padding: 2px 10px; border-radius: 999px; }
.info { padding-bottom: 20px; min-width: 0; }
.info .no { font-family: var(--disp); font-weight: 900; color: var(--ac2); font-size: 18px; letter-spacing: .06em; }
.info h1 { font-size: clamp(40px, 6.4vw, 76px); margin: 2px 0 2px; }
.info .en { font-family: var(--disp); font-weight: 600; font-size: clamp(16px, 2vw, 21px); color: var(--ink2); letter-spacing: .06em; }
.info .en i { font-style: normal; color: var(--mute); font-size: .8em; margin-left: 10px; font-family: var(--sans); letter-spacing: 0; }
.pitch { font-family: var(--disp); font-weight: 700; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; margin: 18px 0 14px; padding-left: 16px; border-left: 4px solid var(--ac); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.facts span { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; background: color-mix(in oklab, var(--ac) 14%, #fffdf8); border: 1px solid color-mix(in oklab, var(--ac) 30%, #fff); color: var(--ink); }
.facts span b { color: var(--ac2); font-weight: 700; margin-right: 6px; font-size: 12px; }
.share { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background .2s, transform .2s; }
.share:hover { background: var(--ac2); transform: translateY(-2px); }
.sec { margin-top: 34px; position: relative; }
.sec > h3 { font-size: 24px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sec > h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ac); transform: rotate(45deg); }
.sec > h3 small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.decode { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: d; }
.decode li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 12px 12px; transition: border-color .2s, transform .2s; animation: up .5s both; animation-delay: calc(var(--i) * 70ms + .2s); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.decode li:hover { border-color: var(--ac); transform: translateX(4px); }
.decode li::before { content: counter(d); width: 30px; height: 30px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 2px; }
.decode b { font-family: var(--disp); font-size: 18px; display: block; line-height: 1.4; }
.decode span { color: var(--ink2); font-size: 15px; line-height: 1.65; }
.decode li.warn { background: #fff6ea; border-color: #f1cf9d; }
.decode li.warn::before { content: "!"; background: #d9822b; }
.temper { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.temper span { font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.bars { display: grid; gap: 9px; max-width: 460px; }
.bars div { display: grid; grid-template-columns: 52px 1fr 18px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2); }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--paper2); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 20%); border-radius: 99px; background: linear-gradient(90deg, color-mix(in oklab, var(--ac) 55%, #fff), var(--ac)); animation: grow .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: 0 50%; }
@keyframes grow { from { transform: scaleX(0); } }
.bars b { font-family: var(--disp); color: var(--ink); }
.note { font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.sticker { position: absolute; right: -6px; top: -64px; height: 150px; width: auto; transform: rotate(5deg); filter: drop-shadow(0 8px 8px rgba(40,26,12,.25)); animation: wob 5s ease-in-out infinite; transform-origin: 50% 100%; pointer-events: none; }
@keyframes wob { 50% { transform: rotate(-3deg) translateY(-4px); } }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 14px; font-size: 15px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
.prose { font-size: 16px; color: var(--ink); }
.box { border-radius: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); }
.box.warn { background: #fff6ea; border-color: #f1cf9d; }
.box.warn b { color: #b4611a; }
.box.fun { background: color-mix(in oklab, var(--ac) 10%, #fffdf8); border-color: color-mix(in oklab, var(--ac) 30%, #fff); }
.reg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reg div { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 14px; }
.reg b { font-family: var(--disp); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.reg b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--s, #bbb); }
.reg span { font-size: 13.5px; color: var(--ink2); }
.rel { display: flex; flex-wrap: wrap; gap: 10px; }
.rel a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.rel a:hover { border-color: var(--ink); transform: translateY(-2px); }
.rel img { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in oklab, var(--rc, #ccc) 35%, #fff); object-fit: cover; }
.rel b { font-size: 15px; display: block; line-height: 1.2; }
.rel small { font-size: 12px; color: var(--mute); }
details.src { margin-top: 26px; font-size: 13.5px; color: var(--ink2); }
details.src summary { cursor: pointer; color: var(--mute); }
details.src a { color: var(--teal); word-break: break-all; }
details.src li { margin: 4px 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pn a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 16px; border-radius: 20px; background: linear-gradient(165deg, color-mix(in oklab, var(--pc) 16%, #fff), color-mix(in oklab, var(--pc) 40%, #fff)); box-shadow: var(--shadow); transition: transform .25s; min-width: 0; }
.pn a:hover { transform: translateY(-3px); }
.pn a.next { flex-direction: row-reverse; text-align: right; }
.pn img { width: 58px; height: 58px; flex: none; }
.pn small { display: block; font-size: 12px; color: var(--ink2); }
.pn b { font-family: var(--disp); font-size: 19px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tree */
.fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.fam.big { grid-column: 1 / -1; }
.fam svg.focus .edge { opacity: .12; } .fam svg.focus .edge.on { opacity: 1; stroke-width: 3.2; }
.fam svg.focus .node { opacity: .28; } .fam svg.focus .node.on { opacity: 1; }
.fam .node, .fam .edge { transition: opacity .2s; }
.fam { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 8px; box-shadow: var(--shadow); }
.fam h3 { font-size: 22px; }
.fam p { color: var(--ink2); font-size: 14.5px; margin: 4px 0 0; }
.fam svg { width: 100%; height: auto; display: block; overflow: visible; }
.fam .edge { stroke-width: 2.2; fill: none; }
.fam .elab { font-size: 11.5px; fill: var(--mute); text-anchor: middle; paint-order: stroke; stroke: var(--card); stroke-width: 5px; font-family: var(--sans); }
.fam .node text { font-size: 13px; font-weight: 700; text-anchor: middle; fill: var(--ink); font-family: var(--sans); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.fam .node { cursor: pointer; }
.fam .node circle { transition: r .2s; }
.fam .node:hover circle.ring { stroke-width: 5; }
.solo { display: flex; flex-wrap: wrap; gap: 10px; }

/* quiz */
.quiz { max-width: 760px; margin: 0 auto; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.prog { height: 6px; border-radius: 99px; background: var(--paper2); margin-bottom: 22px; overflow: hidden; }
.prog i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--red); border-radius: 99px; transition: width .4s; }
.qcard h3 { font-size: clamp(22px, 3.6vw, 30px); margin-bottom: 18px; }
.opts { display: grid; gap: 10px; }
.opts button { text-align: left; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; transition: .18s; }
.opts button:hover { border-color: var(--ink); transform: translateX(4px); background: #fff; }
.result { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; }
.result .pic { border-radius: 24px; background: linear-gradient(165deg, color-mix(in oklab, var(--ac) 18%, #fff), color-mix(in oklab, var(--ac) 50%, #fff)); aspect-ratio: 3/4.2; position: relative; overflow: hidden; }
.result .pic img { position: absolute; left: 50%; bottom: 0; height: 96%; width: auto; max-width: none; transform: translateX(-50%); }
.result h3 { font-size: clamp(30px, 5vw, 46px); margin: 4px 0 10px; }
.also { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* list */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12.5px; color: var(--mute); font-weight: 700; background: var(--paper2); white-space: nowrap; }
.tbl td:first-child { white-space: nowrap; }
.tbl td:first-child small { margin-left: 6px; }
.tbl td:last-child { min-width: 220px; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.tbl a img { width: 30px; height: 30px; border-radius: 50%; }
.tbl small { color: var(--mute); }
.st { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.st.full { background: var(--teal); } .st.part { background: var(--gold); } .st.none { box-shadow: inset 0 0 0 1.5px #cfc3b3; } .st.unk { background: #ddd; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink2); margin: 0 0 14px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.regs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.regs div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.regs b { font-family: var(--disp); font-size: 40px; line-height: 1; }
.regs h4 { margin: 0 0 4px; font-size: 15px; }
.regs p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.scroll-x { overflow-x: auto; border-radius: 18px; }

/* about */
.about { max-width: 780px; }
.about h3 { font-size: 24px; margin: 34px 0 10px; }
.about a { color: var(--teal); }

.foot { margin-top: 90px; padding: 34px max(20px, calc((100vw - 1240px) / 2)) 50px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; }
.foot b { font-family: var(--disp); color: var(--ink); font-size: 18px; margin-right: 8px; }
.foot p { margin: 0 0 6px; max-width: 820px; }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .brand small { display: none; }
  .sets { grid-template-columns: 1fr; }
  .colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup { height: 240px; justify-content: flex-start; }
  .lineup a { flex: none; }
  .read { grid-template-columns: 1fr; }
  .read .fig { max-width: 420px; margin: 0 auto; width: 100%; order: -1; }
  .dgrid { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: min(118vw, 640px); min-height: 0; border-radius: 26px; }
  .sticker { height: 110px; top: -44px; }
  .result { grid-template-columns: 1fr; }
  .result .pic { max-width: 300px; margin: 0 auto; width: 100%; }
  .reg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --w: calc(100vw - 28px); }
  .bar { padding: 8px 14px; }
  .bar { gap: 6px; }
  .brand { gap: 6px; } .brand svg { width: 24px; height: 24px; } .brand b { font-size: 20px; }
  .bar nav { gap: 0; }
  .bar nav a { padding: 5px 8px; font-size: 13.5px; }
  .fam.big svg { min-width: 760px; } .fam.big { overflow-x: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .colors { grid-template-columns: 1fr; }
  .card .nm b { font-size: 18px; }
  .pn b { font-size: 16px; }
  .nums b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }

/* share poster: fixed 1242 x 1656, only ever rendered by tools/cards.py */
body.cardmode { background: #fff; overflow: hidden; }
body.cardmode .bar, body.cardmode .foot { display: none; }
.poster { width: 1242px; height: 1656px; position: relative; overflow: hidden; background: linear-gradient(175deg, color-mix(in oklab, var(--ac) 20%, #fffdf8), color-mix(in oklab, var(--ac) 44%, #fffdf8)); font-family: var(--sans); color: var(--ink); }
.p-stage { position: absolute; left: 36px; right: 36px; top: 36px; height: 1040px; border-radius: 56px; overflow: hidden; background: color-mix(in oklab, var(--ac) 40%, #fff); }
.p-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 26%; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--ac) 40%, rgba(255,253,248,.9))); }
.p-top { position: absolute; left: 30px; top: 28px; right: 30px; z-index: 5; display: flex; align-items: center; gap: 16px; }
.p-top b { font-family: var(--disp); font-weight: 900; font-size: 44px; background: rgba(255,253,248,.9); padding: 4px 26px; border-radius: 999px; }
.p-top span { font-size: 24px; font-weight: 700; background: rgba(255,253,248,.9); padding: 10px 24px; border-radius: 999px; letter-spacing: .08em; }
.p-top i { margin-left: auto; font-style: normal; font-family: var(--disp); font-weight: 900; font-size: 40px; background: var(--ink); color: var(--paper); padding: 6px 26px; border-radius: 999px; }
.p-g { position: absolute; z-index: 3; left: 44%; bottom: 8px; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 22px 20px rgba(40,26,12,.34)); }
.p-c { position: absolute; z-index: 4; right: 30px; bottom: 16px; height: 31%; width: auto; max-width: 44%; object-fit: contain; object-position: 100% 100%; filter: drop-shadow(0 12px 12px rgba(40,26,12,.36)); }
.p-info { position: absolute; left: 60px; right: 60px; top: 1100px; bottom: 36px; display: flex; flex-direction: column; }
.p-name { display: flex; align-items: flex-end; gap: 28px; }
.p-name h1 { font-size: 136px; line-height: 1.08; white-space: nowrap; }
.p-name div { padding-bottom: 20px; min-width: 0; }
.p-name.long { flex-direction: column; align-items: flex-start; gap: 0; }
.p-name.long div { padding-bottom: 0; display: flex; align-items: baseline; gap: 22px; }
.p-name b { display: block; font-family: var(--disp); font-weight: 700; font-size: 38px; letter-spacing: .04em; white-space: nowrap; }
.p-name span { display: block; font-size: 27px; color: var(--ink2); white-space: nowrap; }
.p-pitch { font-family: var(--disp); font-weight: 700; font-size: 40px; line-height: 1.4; margin: 16px 0 0; padding-left: 22px; border-left: 8px solid var(--ac); }
.p-lab { font-size: 24px; font-weight: 700; letter-spacing: .14em; color: color-mix(in oklab, var(--ac) 70%, #000); margin-top: 26px; }
.p-dec { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 14px; }
.p-dec li { display: flex; align-items: center; gap: 12px; font-size: 31px; font-weight: 700; background: rgba(255,253,248,.92); border-radius: 999px; padding: 8px 26px 8px 10px; white-space: nowrap; }
.p-dec b { width: 44px; height: 44px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-size: 25px; }
.p-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 23px; color: var(--ink2); }
