/* WhiskerVale companion site. Same palette, type and fluid shell as the coming-soon page. */
:root{--ink:#211344;--muted:#5f537a;--soft:#7d6c96;--purple:#6536e8;--purple-2:#562bea;--violet:#8c5dff;--pink:#eb4aa9;--pink-soft:#ffe7f4;--blue-soft:#e4f3ff;--lilac:#ede5ff;--line:#e2dcf5;--line-2:#eee7f6;--paper:#fff;--bg:#faf8ff;--bg-2:#f1edfc;--ok:#2f8a57;--ok-soft:#e3f6ea;--warn:#a2620b;--warn-soft:#fff3dc;--radius:16px;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 'Segoe UI',system-ui,-apple-system,Arial,sans-serif}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;flex:none}
svg.portrait{width:100%;height:auto;stroke:none}
h1,h2,h3,h4{line-height:1.1;letter-spacing:-.035em;margin:0;font-weight:850;overflow-wrap:anywhere}
p{color:var(--muted);margin:0 0 16px}
:focus-visible{outline:3px solid #006db4;outline-offset:3px}
.shell{width:min(92vw,2200px);margin-inline:auto}
@media(min-width:1101px){.shell{width:calc(100% - 200px)}}
@media(max-width:720px){.shell{width:calc(100% - 32px)}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip{position:fixed;top:-100px;left:18px;z-index:60;padding:12px 20px;background:#fff;border:2px solid var(--purple);border-radius:8px}
.skip:focus{top:10px}
[hidden]{display:none!important}

/* network strip + header */
.network{background:#16102d;color:#e2dcf5;font-size:11px}
.network>.shell{display:flex;align-items:center;gap:22px;min-height:40px}
.publisher{display:flex;gap:10px;align-items:center;font-size:9px;font-weight:800;letter-spacing:.12em}
.publisher img{width:42px;height:32px;object-fit:contain}
.network nav{display:flex;gap:20px;margin-left:auto}
.network a:hover{color:#c7f4ff}
.header{position:sticky;top:0;z-index:30;background:#fffffff2;backdrop-filter:blur(16px);box-shadow:0 2px 14px #50259d13;border-bottom:1px solid #e2daf5}
.nav-shell{display:flex;align-items:center;gap:26px;min-height:78px}
.brand{display:block;width:190px;flex:none}
.brand img{width:100%;height:auto}
.main-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.main-nav a{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750;color:#443567;padding:10px 14px;border-radius:999px}
.main-nav a svg{width:18px;height:18px;color:#8a62d9}
.main-nav a:hover{background:#f3eeff;color:var(--purple)}
.main-nav a[aria-current=page]{background:var(--lilac);color:#4b23b8}
.menu{display:none;margin-left:auto;border:1px solid #bba9e1;background:#f7f3ff;border-radius:10px;color:#4b267c;width:44px;height:44px;place-items:center}
.header .button.small{flex:none}

/* buttons, chips, badges */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:11px 22px;border:1px solid #ad8dff;border-radius:12px;background:linear-gradient(130deg,var(--violet),var(--purple-2));color:#fff;font-weight:750;font-size:14px;box-shadow:0 4px 18px #7946ec35,inset 0 1px 1px #ffffff70;transition:transform .2s,box-shadow .2s}
.button:hover{transform:translateY(-2px);box-shadow:0 0 24px #804cff55}
.button svg{width:19px;height:19px}
.button.secondary{background:#fffffff0;border-color:#9b78eb;color:#5b2bd1;box-shadow:0 3px 12px #55278712}
.button.small{font-size:12px;min-height:40px;padding:8px 16px}
.button.disabled,.button[aria-disabled=true]{cursor:not-allowed;opacity:.75;transform:none;box-shadow:none}
.link-arrow{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:750;color:#5b2bd1}
.link-arrow svg{width:16px;height:16px}
.link-arrow:hover{text-decoration:underline}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;background:var(--lilac);color:#4b2a8c;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}
.chip svg{width:14px;height:14px}
.chip.pink{background:var(--pink-soft);color:#a12a72}
.chip.blue{background:var(--blue-soft);color:#215f96}
.chip.ok{background:var(--ok-soft);color:var(--ok)}
.chip.warn{background:var(--warn-soft);color:var(--warn)}
.chip.quiet{background:#f4f1f9;color:#62547a}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.swatch{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid #0000002a;flex:none}
.eyebrow{display:block;font-size:10px;font-weight:850;letter-spacing:.2em;color:#8555ba;margin-bottom:12px;text-transform:uppercase}

/* demo / notice banners */
.notice{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-radius:12px;background:var(--warn-soft);border:1px solid #f0d49b;color:#5f3d05;font-size:13px;line-height:1.55}
.notice svg{color:var(--warn);margin-top:1px;width:20px;height:20px}
.notice strong{color:#4a2f03}
.demo-banner{background:var(--warn-soft);border-bottom:1px solid #f0d49b}
.demo-banner .notice{border:0;border-radius:0;padding:10px 0;background:transparent}

/* hero */
.hero{position:relative;background:linear-gradient(90deg,#fbf4fff2 0%,#faf4ffe6 26%,#faf4ffaa 44%,#faf4ff00 68%),url('assets/village-hero-1920.webp') center/cover;border-bottom:1px solid #ded1ee}
.hero-inner{min-height:620px;display:flex;align-items:center}
.hero-copy{max-width:590px;padding:64px 0 90px}
.hero-wordmark{width:min(440px,90%);height:auto;margin-bottom:10px}
.tagline{font-size:clamp(18px,2vw,24px);font-weight:800;letter-spacing:.01em;color:#4b2a8c;margin:0 0 14px}
.hero-copy>p{font-size:17px;color:#4d3c64;margin:0 0 26px;max-width:520px;line-height:1.8}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.release-note{font-size:12px;color:#665371;margin:18px 0 0}
.hero-caption{position:absolute;bottom:48px;right:24px;background:#1e133bba;border:1px solid #ffffff55;padding:5px 10px;border-radius:6px;color:#fff;font-size:10px}
.promise{position:relative;margin-top:-34px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #dfd5f3;border-radius:14px;background:#fffffff7;box-shadow:0 10px 32px #4d238913;z-index:2}
.promise>span{display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:750;padding:18px 14px;color:#513381}
.promise>span+span{border-left:1px solid #eae2f6}
.promise svg{color:#7e48e2}
.page-hero{background:linear-gradient(90deg,#fbf4fff5 0%,#faf4ffe8 40%,#faf4ff99 70%,#faf4ff55),url('assets/village-hero-1920.webp') center 40%/cover;border-bottom:1px solid #ded1ee}
.page-hero .shell{padding:46px 0 40px}
.page-hero h1{font-size:clamp(32px,4vw,50px)}
.page-hero p{max-width:720px;font-size:16px;margin:14px 0 0;color:#4d3c64}
.crumbs{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:700;color:#5b2bd1;margin-bottom:14px}
.crumbs svg{width:16px;height:16px}

/* sections */
.section{padding:64px 0}
.section.tight{padding:40px 0}
.section.alt{background:linear-gradient(var(--bg),var(--bg-2))}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px;flex-wrap:wrap}
.section-heading h2{font-size:clamp(28px,3vw,40px)}
.section-heading h2>span{color:#7042b8}
.section-heading p{margin:8px 0 0;max-width:720px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 5px 20px #4e27890b}
.panel-pad{padding:24px}
.panel h2,.panel h3{display:flex;align-items:center;gap:10px}
.panel h2 svg,.panel h3 svg{color:#7a4ae0}

/* features */
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.feature{display:flex;flex-direction:column;border:1px solid #e0d8ed;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 5px 20px #4e27890b}
.feature>img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover}
.feature>div{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.feature-icon{display:grid;place-items:center;background:var(--lilac);color:#7741d8;border-radius:12px;height:42px;width:42px;margin-bottom:14px}
.feature-icon.pink{background:var(--pink-soft);color:#db459d}
.feature-icon.blue{background:var(--blue-soft);color:#337dc3}
.feature-icon.green{background:var(--ok-soft);color:var(--ok)}
.feature h3{font-size:21px;margin-bottom:8px}
.feature p{font-size:14px;margin:0 0 12px;flex:1}
.feature small{font-size:11px;color:var(--soft)}

/* stats strip */
.stats-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.stat{padding:18px 20px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.stat strong{display:block;font-size:30px;line-height:1.1;color:#4b23b8;letter-spacing:-.03em}
.stat span{font-size:13px;color:var(--muted)}

/* cat cards */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}
.cat-grid.reel{grid-template-columns:repeat(6,minmax(0,1fr))}
.cat-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 4px 16px #4e27890a;transition:transform .2s,box-shadow .2s}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px #4e278918}
.cat-card .portrait-wrap{background:linear-gradient(160deg,#f7f1ff,#fdf0f8);padding:12px 18px 0}
.cat-card .body{padding:12px 14px 14px}
.cat-card h3{font-size:18px;letter-spacing:-.02em}
.cat-card .meta{font-size:12.5px;color:var(--muted);margin:2px 0 8px}
.cat-card .chips{gap:6px}
.cat-card .chip{font-size:11px;padding:2px 9px}
.cat-card a.cover{position:absolute;inset:0;border-radius:inherit}
.cat-card a.cover:focus-visible{outline-offset:-3px}
.demo-tag{position:absolute;top:10px;left:10px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:#fff7e6;color:var(--warn);border:1px solid #f0d49b;padding:2px 7px;border-radius:6px}
.private-tag{position:absolute;top:10px;right:10px}

/* litters */
.litter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.litter{padding:18px 20px}
.litter header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;font-size:13px;color:var(--muted)}
.litter header strong{color:var(--ink);font-size:15px}
.mini-row{display:flex;gap:12px;flex-wrap:wrap}
.mini{display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:13px;font-weight:700}
a.mini:hover{border-color:#b79cf0;background:#faf7ff}
.mini svg.portrait{width:36px;height:36px}
.mini small{display:block;font-weight:500;color:var(--soft);font-size:11px;line-height:1.2}

/* breeding steps */
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;counter-reset:step}
.step{padding:20px;border-radius:16px;background:#fff;border:1px solid var(--line)}
.step::before{counter-increment:step;content:'0' counter(step);display:block;font-size:26px;font-weight:900;color:#7a4ae0;letter-spacing:-.03em;margin-bottom:6px}
.step h3{font-size:17px;margin-bottom:6px}
.step p{font-size:13.5px;margin:0}

/* gallery + news + lore */
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.gallery-card{display:block;background:#fff;border:1px solid #ded4ef;border-radius:14px;overflow:hidden}
.gallery-card img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover}
.gallery-card span{display:block;padding:12px 14px;font-size:14px;font-weight:800;color:#482b73}
.gallery-card small{display:block;font-size:11px;font-weight:500;color:var(--soft)}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.news-card{padding:20px 22px}
.news-card .when{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;font-size:12px;color:var(--soft)}
.news-card h3{font-size:18px;margin-bottom:8px}
.news-card p{font-size:14px;margin:0}
.lore{display:grid;grid-template-columns:1.1fr 1fr;gap:34px;align-items:center}
.lore img{border-radius:18px;border:1px solid var(--line);aspect-ratio:16/10;object-fit:cover;width:100%;height:auto}
.lore h2{font-size:clamp(28px,3vw,40px);margin-bottom:16px}
.lore p{font-size:16px;line-height:1.85}

/* registry */
.registry{display:grid;grid-template-columns:280px minmax(0,1fr);gap:26px;align-items:start}
.filters{position:sticky;top:96px;padding:18px}
.filters>summary{display:none}
.filters h2{font-size:18px;margin-bottom:6px}
.filter-group{border:0;margin:0;padding:12px 0;border-top:1px solid var(--line-2)}
.filter-group legend{font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#6c4fa6;padding:0;margin-bottom:8px}
.filter-options{display:flex;flex-wrap:wrap;gap:6px}
.filter-options label{position:relative}
.filter-options input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.filter-options span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12.5px;font-weight:650;color:#4b3a6e}
.filter-options span em{font-style:normal;font-weight:600;color:var(--soft);font-size:11px}
.filter-options input:checked+span{background:var(--purple);border-color:var(--purple);color:#fff}
.filter-options input:checked+span em{color:#e5dcff}
.filter-options input:focus-visible+span{outline:3px solid #006db4;outline-offset:2px}
.filter-options input:disabled+span{opacity:.45}
.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.search{position:relative;flex:1 1 260px}
.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8a74b3;width:20px;height:20px}
.search input,.select{width:100%;min-height:46px;border:1px solid #d5c9ee;border-radius:12px;background:#fff;padding:10px 14px}
.search input{padding-left:44px}
.select{width:auto;min-width:170px}
.results-count{font-size:13px;color:var(--muted);margin:0 0 14px}
.pager{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:26px;flex-wrap:wrap}
.pager button{min-width:44px;min-height:44px;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:700}
.pager button[aria-current=page]{background:var(--purple);border-color:var(--purple);color:#fff}
.pager button:disabled{opacity:.45;cursor:default}
.empty{padding:40px 20px;text-align:center}
.empty svg{width:48px;height:48px;color:#a487dd;margin:0 auto 10px;display:block}

/* profile */
.profile{display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);gap:24px;align-items:start}
.profile-portrait{padding:18px;background:linear-gradient(160deg,#f7f1ff,#fdf0f8)}
.profile-portrait figcaption{font-size:11px;color:var(--soft);text-align:center;margin-top:8px}
.profile-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.profile-head h1{font-size:clamp(34px,4vw,48px)}
.profile .lead{font-size:15.5px;max-width:720px}
.meters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.meter{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.meter-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:750;margin-bottom:8px}
.meter-bar{height:8px;border-radius:99px;background:#efe9f8;overflow:hidden}
.meter-bar i{display:block;height:100%;width:var(--v,0%);border-radius:inherit;background:var(--c,#7a4ae0)}
.meter[data-stat=hunger]{--c:#ef8a3a}
.meter[data-stat=happiness]{--c:#3fae6a}
.meter[data-stat=energy]{--c:#3b82e0}
.meter[data-stat=love]{--c:#e5559e}
.features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.feature-cell{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.feature-cell small{display:block;font-size:11px;font-weight:750;color:var(--soft);text-transform:uppercase;letter-spacing:.06em}
.feature-cell strong{display:flex;align-items:center;gap:7px;font-size:14.5px}
.feature-cell em{display:block;font-style:normal;font-size:11.5px;color:#7a5fb0}
.sub-h{font-size:15px;font-weight:850;margin:20px 0 10px;display:flex;align-items:center;gap:8px;color:#3b2466}
.sub-h svg{width:18px;height:18px;color:#7a4ae0}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}

/* pedigree */
.pedigree-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.depth-toggle{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.depth-toggle button{border:0;background:#fff;padding:7px 12px;font-size:12.5px;font-weight:750;min-height:38px}
.depth-toggle button[aria-pressed=true]{background:var(--purple);color:#fff}
.pedigree{overflow-x:auto;padding:12px 4px 16px;-webkit-overflow-scrolling:touch}
.ped-branch{display:flex;align-items:center}
.ped-parents{position:relative;display:flex;flex-direction:column;justify-content:center;padding-left:30px}
.ped-parents::before{content:'';position:absolute;left:0;top:50%;width:15px;border-top:2px solid #cdbdea}
.ped-parents>.ped-branch{position:relative;padding:6px 0}
.ped-parents>.ped-branch::before{content:'';position:absolute;left:-15px;top:50%;width:15px;border-top:2px solid #cdbdea}
.ped-parents>.ped-branch::after{content:'';position:absolute;left:-15px;border-left:2px solid #cdbdea}
.ped-parents>.ped-branch:first-child::after{top:50%;bottom:0}
.ped-parents>.ped-branch:last-child::after{top:0;bottom:50%}
.ped-parents>.ped-branch:only-child::after{display:none}
.ped-node{display:flex;align-items:center;gap:10px;width:200px;padding:8px 12px 8px 8px;border-radius:14px;border:1px solid var(--line);background:#fff;box-shadow:0 3px 10px #4e278910;font-size:12.5px;line-height:1.35;flex:none}
a.ped-node:hover{border-color:#b79cf0;background:#fbf8ff}
.ped-node svg.portrait{width:46px;height:46px}
.ped-node strong{display:block;font-size:14px;color:var(--ink)}
.ped-node span{color:var(--muted)}
.ped-node.self{border:2px solid #f0a35a;background:#fff8f0;width:220px}
.ped-node.hidden{border-style:dashed;background:#faf8fd;color:var(--soft)}
.ped-node.hidden svg{width:30px;height:30px;color:#a993d3;margin:8px}
.ped-node.founder{border-style:dashed;background:transparent;box-shadow:none;color:var(--soft);font-size:12px;justify-content:center;width:150px}
.ped-role{display:block;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#a0459a}
.ped-more{font-size:11px;color:#7a5fb0;margin-left:10px;white-space:nowrap}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}

/* genetics */
.glossary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gloss{padding:16px 18px}
.gloss h3{font-size:16px;text-transform:capitalize;margin-bottom:6px}
.gloss p{font-size:13.5px;margin:0}
.rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rule{padding:18px 20px}
.rule h3{font-size:17px;margin-bottom:8px}
.rule p{font-size:14px;margin:0}
.matrix{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.matrix th,.matrix td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line-2);vertical-align:top}
.matrix th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6c4fa6;background:#faf7ff}
.matrix td:first-child{font-weight:750;white-space:nowrap}
.matrix td.desc{color:var(--muted)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.trait-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.trait-tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font-weight:750;font-size:13px;min-height:40px}
.trait-tabs button[aria-selected=true]{background:var(--purple);border-color:var(--purple);color:#fff}
.punnett-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:start}
.punnett-controls{display:grid;gap:14px}
.punnett-controls label{display:grid;gap:6px;font-weight:750;font-size:14px}
.punnett{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:380px}
.punnett div{display:grid;place-items:center;min-height:64px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:800;font-size:15px;text-align:center;padding:6px}
.punnett .head{background:#f3eeff;color:#5b2bd1;min-height:44px}
.punnett .corner{background:transparent;border:0}
.punnett .shows{background:#efe7ff}
.punnett small{display:block;font-size:10.5px;font-weight:650;color:var(--muted)}
.odds{font-size:15px;margin-top:12px}
.odds strong{color:#4b23b8}

/* catteries */
.cattery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.cattery-card{position:relative;padding:20px 22px}
.cattery-card .badge{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--lilac);color:#6b3fd4;margin-bottom:12px}
.cattery-card .badge svg{width:28px;height:28px}
.cattery-card h3{font-size:20px;margin-bottom:4px}
.cattery-card p{font-size:14px;margin:8px 0 12px}
.cattery-card .meta{font-size:12.5px;color:var(--soft)}
.cattery-card a.cover{position:absolute;inset:0;border-radius:inherit}
.cattery-hero{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.cattery-hero .badge{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;background:#fff;border:1px solid var(--line);color:#6b3fd4}
.cattery-hero .badge svg{width:38px;height:38px}
.description{white-space:pre-line}

/* dashboard */
.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:16px;flex-wrap:wrap}
.tabs button{border:0;background:transparent;padding:10px 14px;font-weight:750;font-size:14px;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-1px;min-height:44px}
.tabs button[aria-selected=true]{color:#4b23b8;border-bottom-color:var(--purple)}
.dash-table{width:100%;border-collapse:collapse;font-size:14px}
.dash-table th,.dash-table td{padding:10px 12px;border-bottom:1px solid var(--line-2);text-align:left;vertical-align:middle}
.dash-table th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6c4fa6}
.dash-table td .who{display:flex;align-items:center;gap:10px;font-weight:750}
.dash-table svg.portrait{width:36px;height:36px}
.account-state{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.account-state .icon{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--lilac);color:#6b3fd4}
.account-state .icon svg{width:32px;height:32px}

/* loading */
.skeleton{background:linear-gradient(90deg,#f1ecf9 25%,#f8f5fd 50%,#f1ecf9 75%);background-size:200% 100%;animation:shimmer 1.3s infinite;border-radius:16px;min-height:240px}
@keyframes shimmer{to{background-position:-200% 0}}
.error-box{padding:22px;border-radius:14px;border:1px solid #f1c3d8;background:#fff5f9;color:#7b2150}

/* documents */
.document{max-width:850px;padding:56px 0}
.document h1{font-size:42px;margin-bottom:24px}
.document h2{font-size:24px;margin:28px 0 12px}
.document a{color:#5b2bd1;text-decoration:underline}
.document p,.document li{font-size:16px;line-height:1.85;color:var(--muted)}
.page-missing{text-align:center;padding:90px 0}
.page-missing h1{font-size:44px;margin:24px 0 16px}
.page-missing .actions{justify-content:center}
.page-missing>svg{width:70px;height:70px;margin:auto;color:#9866d2}

/* footer */
footer{background:#fff;padding:34px 0 22px;border-top:1px solid #e5ddf2;margin-top:40px}
.footer-top{display:flex;align-items:center;justify-content:space-between;gap:30px;padding-bottom:22px;flex-wrap:wrap}
.footer-top .brand{width:160px}
.footer-top nav{display:flex;gap:22px;flex-wrap:wrap;font-size:12.5px;font-weight:650;color:#614780}
.footer-top nav a:hover{text-decoration:underline}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line-2);padding-top:18px;font-size:11px;color:#81738e;flex-wrap:wrap}

@media(max-width:1200px){.cat-grid.reel{grid-template-columns:repeat(3,minmax(0,1fr))}.feature-grid,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.glossary{grid-template-columns:repeat(2,minmax(0,1fr))}.features{grid-template-columns:repeat(2,minmax(0,1fr))}.main-nav a{padding:9px 10px}}
@media(max-width:1000px){.registry,.profile{grid-template-columns:1fr}.filters{position:static}.meters{grid-template-columns:repeat(2,minmax(0,1fr))}.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.news-grid{grid-template-columns:1fr 1fr}.lore,.punnett-wrap{grid-template-columns:1fr}.profile-portrait{max-width:380px}}
@media(max-width:900px){.menu{display:grid}.main-nav{display:none;position:absolute;top:100%;left:16px;right:16px;padding:12px;flex-direction:column;align-items:stretch;border:1px solid #d1bcee;border-radius:0 0 14px 14px;background:#fff;box-shadow:0 12px 20px #4a267a22;margin:0}.main-nav.open{display:flex}.header .button.small{display:none}.filters>summary{display:flex;align-items:center;gap:8px;font-weight:800;cursor:pointer;min-height:44px}.filters:not([open]){padding-block:6px}}
@media(max-width:720px){.network nav a:nth-child(n+2){display:none}.network .publisher>span{display:none}.nav-shell{min-height:70px;gap:12px}.brand{width:150px}.hero{background:linear-gradient(#fbf4fff2 0%,#fbf4ffe8 52%,#fbf4ff30 85%),url('assets/village-hero-960.webp') 68% bottom/cover}.hero-inner{min-height:0;align-items:flex-start}.hero-copy{padding:36px 0 230px}.promise{grid-template-columns:1fr 1fr;margin-top:-20px}.promise>span{font-size:11.5px;padding:14px 10px;justify-content:flex-start}.promise>span:nth-child(3){border-left:0}.promise>span:nth-child(n+3){border-top:1px solid #eae2f6}.feature-grid,.gallery-grid,.news-grid,.litter-grid,.rules,.glossary,.stats-strip{grid-template-columns:1fr}.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cat-grid.reel{grid-template-columns:repeat(2,minmax(0,1fr))}.steps{grid-template-columns:1fr}.section{padding:44px 0}.facts{grid-template-columns:1fr 1fr}.select{flex:1 1 100%}.panel-pad{padding:18px}.hero-caption{right:16px;left:16px;text-align:center;width:fit-content;margin:auto}.dash-table .hide-sm{display:none}}
@media(max-width:420px){.cat-card .body{padding:10px 10px 12px}.cat-card h3{font-size:16px}.features,.meters{grid-template-columns:1fr 1fr}.ped-node{width:170px}.ped-node.self{width:180px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.button:hover,.cat-card:hover{transform:none}}
.cattery-card .demo-tag{left:auto;right:14px;top:14px}
@media(max-width:720px){.page-hero{background:linear-gradient(#fbf4fff5,#faf4ffeb),url('assets/village-hero-960.webp') center/cover}}
.profile-head+.chips{margin-bottom:12px}

/* Touch targets and the Giant Gamers network on phones (18 Oct polish). Links outside running text
   are at least 24px tall (WCAG 2.5.8), 44px on phones; Forum and Account stay reachable on phones. */
.network nav a{display:inline-flex;align-items:center;min-height:40px}
.footer-top nav a{display:inline-flex;align-items:center;min-height:32px}
.ped-more{display:inline-flex;align-items:center;min-height:32px}
@media(max-width:720px){.network nav{gap:16px}.network nav a:nth-child(n+2){display:inline-flex}.network nav a{min-height:44px}.footer-top nav{gap:0 18px}.footer-top nav a{min-height:44px}.main-nav a{min-height:48px}.depth-toggle button{min-height:44px;min-width:44px}}

/* Pedigree on phones: an indented family list instead of a sideways-scrolling tree. */
@media(max-width:600px){
.pedigree{overflow-x:visible;padding:8px 0 4px}
.ped-branch{flex-direction:column;align-items:stretch}
.ped-parents{padding-left:16px;margin-left:22px}
.ped-parents::before{display:none}
.ped-parents>.ped-branch{padding:8px 0 0}
.ped-parents>.ped-branch::before{left:-16px;top:38px;width:14px}
/* Each branch draws its own piece of the vertical line; the last one stops at its node. */
.ped-parents>.ped-branch::after,.ped-parents>.ped-branch:first-child::after,.ped-parents>.ped-branch:only-child::after{display:block;left:-16px;top:0;bottom:0}
.ped-parents>.ped-branch:last-child::after{bottom:auto;height:39px}
.ped-node,.ped-node.self{width:auto;max-width:100%}
.ped-node.founder{width:auto;justify-content:flex-start;padding:10px 12px}
.ped-more{margin:4px 0 0 6px;min-height:44px}
}

/* Fish Dex (fish.html) and the cattery Fish Dex panel. Rarity tiers 1-5: Common .. Legendary Neon. */
.fish-filters{display:grid;gap:12px;margin-bottom:18px}
.filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.filter-label{font-size:12px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:var(--soft);min-width:64px}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:750;color:#443567}
.pill svg{width:16px;height:16px;color:#7a4ae0}
.pill:hover{border-color:#b9a2ef;background:#f8f4ff}
.pill[aria-pressed=true]{background:var(--purple);border-color:var(--purple);color:#fff}
.pill[aria-pressed=true] svg{color:#fff}
.pill:focus-visible{outline:3px solid #8c5dff;outline-offset:2px}
.fish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.fish-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:grid;gap:14px;box-shadow:0 5px 20px #4e27890b;scroll-margin-top:110px}
.fish-card.highlight{outline:3px solid var(--violet);outline-offset:2px}
.fish-head{display:flex;gap:14px;align-items:flex-start}
.fish-head h3{font-size:19px;margin-bottom:8px}
.fish-badge{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;flex:none;background:#f1edf7;color:#7d6c96}
.fish-facts{display:grid;gap:8px;margin:0;font-size:13px}
.fish-facts div{display:grid;grid-template-columns:80px 1fr;gap:10px}
.fish-facts dt{font-weight:800;color:var(--soft)}
.fish-facts dd{margin:0;overflow-wrap:anywhere}
.chip.rarity.tier-1{background:#f2efe9;color:#5f5444}
.chip.rarity.tier-2{background:#e5f6e2;color:#2c6b22}
.chip.rarity.tier-3{background:#e3efff;color:#1f58a8}
.chip.rarity.tier-4{background:#f1e4ff;color:#6d2bb0}
.chip.rarity.tier-5{background:linear-gradient(90deg,#d8fff8,#e6f0ff);color:#00756b;box-shadow:0 0 0 1px #6fe3d4 inset}
.fish-badge.tier-2{background:#e5f6e2;color:#3d8a31}
.fish-badge.tier-3{background:#e3efff;color:#2b6cc4}
.fish-badge.tier-4{background:#f1e4ff;color:#8040c8}
.fish-badge.tier-5{background:linear-gradient(135deg,#c9fff5,#dfe9ff);color:#00897b}
.gear-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-top:16px}
.gear-grid .stat strong{font-size:18px}
.fish-gear{margin-bottom:18px}
.dex-meter{height:12px;border-radius:999px;background:#f1edf7;overflow:hidden;margin:4px 0 6px}
.dex-fill{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#8c5dff,#33c7b8)}
.trophies{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.trophies li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.trophies a{font-weight:800;color:#3b2466;min-height:24px;display:inline-flex;align-items:center}
.trophies a:hover{color:var(--purple)}
.trophy-weight{font-size:13px;color:var(--muted);margin-left:auto}
@media(max-width:720px){.pill{min-height:44px}.trophy-weight{margin-left:0;width:100%}.fish-facts div{grid-template-columns:72px 1fr}}
/* Leaderboards (leaderboards.html). */
.tabs button{display:inline-flex;align-items:center;gap:8px}
.tabs button svg{width:18px;height:18px}
.tabs button:focus-visible{outline:3px solid #8c5dff;outline-offset:2px;border-radius:8px}
.board-table td{vertical-align:middle}
.board-table td.rank{font-weight:850;white-space:nowrap;color:#4b23b8;width:72px}
.board-table td.rank svg{width:16px;height:16px;margin-right:4px;vertical-align:-3px}
.board-table td.rank.top-1 svg{color:#d9a400}
.board-table td.rank.top-2 svg{color:#9aa3b5}
.board-table td.rank.top-3 svg{color:#b8743a}
.board-name{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:#3b2466;min-height:32px}
.board-name:hover{color:var(--purple)}
.board-badge{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--lilac);color:#6b3fd4;flex:none}
.board-badge svg{width:18px;height:18px}
.demo-tag.inline{position:static;margin-left:4px}
.board-table td a:not(.board-name){color:#5b2bd1;font-weight:700}
.board-note{margin-top:18px}
@media(max-width:600px){.board-table .hide-sm{display:none}.board-table th,.board-table td{padding:10px 8px}.board-table td.rank{width:auto}}
/* Seven main-nav entries: labels never wrap; from 1181 to 1439 px the icons hide to make room, and
   below 1181 px the menu button is used, as on phones (measured: no overflow or wrapping at any width). */
.main-nav a{white-space:nowrap}
@media(min-width:1181px) and (max-width:1439px){.main-nav a{padding:10px 10px}.main-nav a svg{display:none}}
@media(max-width:1180px){.menu{display:grid}.main-nav{display:none;position:absolute;top:100%;left:16px;right:16px;padding:12px;flex-direction:column;align-items:stretch;border:1px solid #d1bcee;border-radius:0 0 14px 14px;background:#fff;box-shadow:0 12px 20px #4a267a22;margin:0}.main-nav.open{display:flex}.header .button.small{display:none}}