:root{--paper:#fff8ee;--ink:#173f35;--muted:#53665b;--orange:#ff934c;--orange-light:#ffb271;--mint:#d9e8cc;--green:#779d78;--pink:#efbeb0;--cream:#ffe6ad;--rule:#dddccd;--white:#fffdf7;--dark-orange:#9e3c15;--shadow:#173f351c;--font-body:'Chillax',ui-rounded,'Arial Rounded MT Bold',Arial,sans-serif;--font-display:var(--font-body);--color-accent-ink:var(--ink)}
*{box-sizing:border-box}html,body{overflow-x:clip}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.6}::selection{background:var(--orange-light);color:var(--ink)}a{color:inherit}button{font:inherit}a,button{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--dark-orange);outline-offset:5px}button:disabled{cursor:default}a:active,button:active{transform:translateY(1px)}.wrap{width:min(1200px,calc(100% - 96px));margin-inline:auto}.header{height:108px;display:flex;align-items:center;justify-content:space-between;gap:32px}.brand{font-size:32px;font-weight:600;letter-spacing:-1.6px;text-decoration:none;display:flex;align-items:center;gap:8px}.brand svg{width:43px;height:43px}.header nav{display:flex;gap:32px}.header nav a{font-size:15px;text-decoration:none;white-space:nowrap}.header nav a:hover,.quiet-link:hover{color:var(--dark-orange)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 24px;border:1px solid var(--ink);border-radius:10px;background:var(--orange);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:0 3px 0 var(--ink);transition:transform .18s}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(2px);box-shadow:none}.nav-play{min-height:46px}.hero{min-height:600px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:center;padding-block:36px 72px}h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.08;overflow-wrap:break-word;min-width:0;text-wrap:balance;margin:0}h1{font-size:clamp(60px,6.3vw,88px);letter-spacing:-5px}h2{font-size:48px;letter-spacing:-2.4px}h3{font-size:36px;letter-spacing:-1.2px}.hero-copy>p{font-size:23px;line-height:1.45;margin:24px 0 32px}.quiet-link{display:inline-block;margin-top:24px;font-size:13px;text-underline-offset:5px}.hero-art{background:var(--mint);padding:28px;border-radius:35px 35px 90px 35px;transform:rotate(3deg);box-shadow:8px 10px 0 var(--ink)}.art-heading,.art-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.art-heading>span:first-child{font-size:22px;font-weight:600}.art-heading>span:last-child{font-size:11px;max-width:140px;line-height:1.4}.display-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.display-tile{border:2px solid var(--ink);aspect-ratio:1;border-radius:16px;background:var(--paper);display:grid;place-items:center;box-shadow:0 4px 0 var(--ink)}.display-tile svg{width:90%}.display-tile:nth-child(2){transform:rotate(-7deg)}.display-tile:nth-child(4){transform:rotate(6deg)}.back{background:var(--ink)}.back svg{opacity:.35}.back .fur{fill:var(--mint)}.art-foot{font-size:12px}.round-link{background:var(--orange);border:1px solid var(--ink);border-radius:50%;width:45px;height:45px;display:grid;place-items:center;text-decoration:none}.fur{fill:var(--orange)}.ear{fill:var(--pink)}.face,.whisker,.stripe{fill:none;stroke:var(--ink);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.stripe{stroke:var(--dark-orange);stroke-width:6}.green .fur{fill:var(--green)}.pink .fur{fill:var(--pink)}.cream .fur{fill:var(--cream)}.company-line{border-block:1px solid var(--rule);padding:20px 0}.company-line>.wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.company-line span:first-child{font-weight:600;font-size:14px}.games{padding-block:84px 96px}.section-top{display:flex;justify-content:space-between;align-items:center;gap:44px;margin-bottom:40px}.section-top h2{max-width:650px}.section-top p{font-size:15px;line-height:1.5}.featured{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:64px;align-items:center}.featured-art{position:relative;min-height:365px;background:var(--orange-light);border-radius:24px;overflow:hidden}.pair-card{position:absolute;top:50px;left:45px;width:165px;height:185px;border-radius:18px;background:var(--paper);border:2px solid var(--ink);transform:rotate(-12deg);box-shadow:5px 6px 0 var(--ink)}.pair-card:nth-child(2){top:95px;left:210px;transform:rotate(14deg)}.pair-card svg{width:100%;height:100%}.pair-word{position:absolute;left:30px;bottom:20px;font-weight:600;font-size:31px;line-height:1;letter-spacing:-1px}.tag{font-size:12px;border-bottom:1px solid var(--rule);display:inline-block;padding-bottom:8px;margin-bottom:16px}.game-copy p{color:var(--muted);max-width:420px}.game-copy dl{display:flex;gap:36px;margin-block:24px}.game-copy dt{font-size:12px;color:var(--muted)}.game-copy dd{margin:0;font-size:13px}.play-section{background:var(--mint);padding-block:80px}.play-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:64px;align-items:center}.play-layout p{max-width:360px}.small{font-size:13px;line-height:1.7;margin-block:24px}.game-board{background:var(--paper);padding:24px;border-radius:24px}.game-status{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.game-status h3{font-size:22px}.game-status span{font-size:12px}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tile{aspect-ratio:1;border:1.5px solid var(--ink);border-radius:10px;background:var(--ink);color:var(--paper);cursor:pointer;display:grid;place-items:center;position:relative;box-shadow:0 3px 0 var(--green);padding:4px}.tile svg{display:none;width:95%;height:95%}.tile:after{content:'m';font-size:35px;font-weight:600;line-height:1}.tile.revealed,.tile.matched{background:var(--white)}.tile.revealed:after,.tile.matched:after{display:none}.tile.revealed svg,.tile.matched svg{display:block}.tile.matched{box-shadow:none;border-color:var(--green)}.tile:hover:not(:disabled){outline:2px solid var(--orange);outline-offset:2px}.tile.kind-4 .fur{fill:var(--ink)}.tile.kind-4 .face,.tile.kind-4 .whisker{stroke:var(--paper)}.tile.kind-5 .fur{fill:var(--orange-light)}#message{font-size:12px;margin-bottom:0;min-height:20px}.studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;padding-block:96px}.studio-mark{width:155px;margin:32px 0 0 24px;transform:rotate(-9deg)}.studio-copy .lead{font-size:23px;line-height:1.5;margin-top:0}.studio-copy>p:not(.lead){color:var(--muted)}details{border-block:1px solid var(--rule);padding:16px 0;font-size:14px}summary{cursor:pointer;font-weight:600}details p{font-size:13px}.company-details{display:grid;gap:4px;margin-top:24px;font-size:14px}.company-details span{font-size:12px;color:var(--muted);margin-top:12px}.company-details address{font-style:normal}.contact{background:var(--ink);color:var(--paper);overflow:clip}.contact-inner{display:flex;justify-content:space-between;align-items:center;padding-block:64px}.contact h2{font-size:56px}.contact p{font-size:14px}.contact a{display:inline-block;margin-top:8px;font-size:22px;text-underline-offset:8px}.contact-cat{width:290px;transform:rotate(12deg)}.contact-cat .fur{fill:var(--orange)}footer{padding-block:36px}.footer-top,.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px}.footer-top>div{display:flex;gap:24px;font-size:13px}.footer-top a{text-decoration:none}.footer-bottom{font-size:11px;color:var(--muted);margin-top:24px}.skip{position:absolute;top:-100px;background:var(--ink);color:var(--paper);padding:8px;z-index:10}.skip:focus-visible{top:10px}
@media(min-width:1500px){.hero{min-height:670px}}@media(max-width:900px){.wrap{width:calc(100% - 48px)}.header nav{gap:16px}.hero{gap:24px;min-height:560px}h1{font-size:62px;letter-spacing:-3px}.hero-art{padding:16px}.art-heading>span:last-child{display:none}.display-grid{gap:8px}.featured,.play-layout,.studio{gap:32px}h2{font-size:38px}.pair-card{width:130px;left:25px}.pair-card:nth-child(2){left:150px}.game-copy dl{flex-direction:column;gap:8px}.company-line>.wrap{font-size:10px}.company-line span:first-child{font-size:12px}}
@media(max-width:620px){.wrap{width:calc(100% - 40px)}.header{height:85px;gap:16px}.brand{font-size:27px}.brand svg{width:34px}.header nav{gap:16px}.header nav a{font-size:12px}.header nav a:last-child{display:none}.nav-play{display:none}.hero{grid-template-columns:minmax(0,1fr);padding-top:24px;gap:44px;padding-bottom:60px}.hero h1{font-size:64px}.hero-copy>p{font-size:20px;margin:24px 0}.quiet-link{font-size:12px}.hero-art{margin:0 8px 0 0;padding:24px}.art-heading>span:last-child{display:block}.company-line>.wrap{flex-direction:column;align-items:flex-start;gap:4px}.section-top{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:24px}.section-top p br{display:none}.games{padding-block:56px}.featured,.play-layout,.studio{grid-template-columns:minmax(0,1fr)}.featured{gap:28px}.featured-art{min-height:320px}.pair-card{width:140px;left:35px}.pair-card:nth-child(2){left:175px;top:75px}.game-copy dl{flex-direction:row;gap:24px}.play-section{padding-block:56px}.game-board{padding:16px}.game-status span{font-size:10px}.board{gap:8px}.studio{padding-block:56px;gap:20px}.studio-title{display:flex;align-items:center}.studio-mark{width:95px;margin:0}.studio-copy .lead{font-size:20px}.contact-inner{padding-block:48px}.contact h2{font-size:42px}.contact-cat{width:100px;flex-shrink:0;align-self:flex-end}.contact a{font-size:16px}.contact p{font-size:12px}.footer-top{align-items:flex-start;flex-direction:column;gap:16px}.footer-top>div{gap:20px}.footer-bottom{align-items:flex-start;flex-direction:column;gap:4px}.art-foot{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

@media(max-width:620px){.pair-card{top:25px;width:125px;height:165px}.pair-card:nth-child(2){top:52px;left:165px}.section-top p br:after{content:" "}.hero h1{font-size:58px}}


/* Version 2: an original cat garden, inspired by Finch's friendly outdoor world. */
:root {
  --paper: #fffdf6;
  --ink: #365d63;
  --muted: #586e70;
  --orange: #f2b576;
  --orange-light: #f9d8ac;
  --mint: #edf4e3;
  --green: #8bb597;
  --pink: #e9b4c1;
  --cream: #f9dc9f;
  --rule: #dfe7dc;
  --white: #fffefb;
  --dark-orange: #84572d;
  --sky: #d8eef3;
  --button: #477b66;
  --button-shadow: #32634f;
  --muzzle: #fff0d6;
  --cheek: #e7a397;
  --font-body: 'Nunito', ui-rounded, system-ui, sans-serif;
}
.header { height: 100px; position: absolute; inset: 0 0 auto; z-index: 5; }
.brand { font-size: 33px; font-weight: 900; letter-spacing: -1.3px; }
.brand svg { width: 48px; height: 48px; }
.header nav a { font-size: 16px; font-weight: 800; }
.button { border: 0; border-radius: 999px; background: var(--button); color: var(--white); font-size: 16px; font-weight: 800; padding: 14px 30px; min-height: 52px; box-shadow: 0 4px 0 var(--button-shadow); }
.button:hover { background: var(--button-shadow); }
.button:focus-visible,.secondary-button:focus-visible { outline-color: var(--ink); }
.nav-play { min-height: 46px; padding: 10px 26px; font-size: 15px; }
.hero-world { position: relative; isolation: isolate; overflow: clip; background: var(--sky); min-height: 850px; }
.hero { display: block; min-height: 0; padding: 160px 0 430px; text-align: center; position: relative; z-index: 2; }
.hero-copy { max-width: 740px; margin-inline: auto; }
h1,h2,h3 { font-weight: 900; letter-spacing: -1.5px; }
.hero h1 { font-size: clamp(50px,5vw,72px); line-height: 1.08; color: var(--white); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; letter-spacing: -1.5px; }
.hero-copy > p { font-size: 21px; font-weight: 700; margin: 24px 0 28px; line-height: 1.5; }
.actions { display: flex; justify-content: center; align-items: center; gap: 16px; }
.secondary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; background: var(--white); font-weight: 800; font-size: 16px; }
.secondary-button:hover { background: var(--mint); }
.hero-note { display: block; font-size: 13px; font-weight: 700; margin-top: 20px; }
.garden-scene { position: absolute; width: 100%; height: auto; bottom: 0; left: 0; z-index: 1; }
.cloud { position: absolute; width: 170px; height: 58px; background: var(--white); border-radius: 100px; opacity: .8; z-index: 0; }
.cloud:before,.cloud:after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud:before { width: 80px; height: 80px; left: 25px; bottom: 10px; }
.cloud:after { width: 100px; height: 100px; right: 12px; bottom: 0; }
.cloud-one { top: 225px; left: -30px; transform: scale(1.4); }
.cloud-two { top: 160px; right: -5px; transform: scale(1.2); }
.cloud-three { top: 92px; left: 33%; transform: scale(.65); opacity: .5; }
.company-line { background: #e5efd4; border: 0; padding: 24px 0; }
.company-line>.wrap { font-size: 13px; }
.games { padding-block: 96px; }
.section-top { flex-direction: column; text-align: center; gap: 4px; margin-bottom: 48px; }
.section-top h2 { max-width: none; }
.section-top p { font-size: 18px; }
h2 { font-size: 46px; line-height: 1.15; }
.featured { gap: 72px; }
.featured-art { background: #f7e9d7; border-radius: 48px; min-height: 390px; }
.pair-card { border: 0; border-radius: 28px; box-shadow: 0 8px 0 #e4cfb3; top: 50px; left: 60px; }
.pair-card:nth-child(2) { top: 98px; left: 245px; }
.pair-word { color: var(--ink); font-size: 28px; left: 32px; bottom: 24px; }
.game-copy h3 { font-size: 40px; }
.game-copy p { font-size: 18px; }
.game-copy dd { font-size: 15px; }
.tag { border: 0; background: var(--mint); border-radius: 20px; padding: 5px 13px; font-weight: 700; margin-top: 14px; margin-bottom: 0; }
.muzzle { fill: var(--muzzle); }
.eye { fill: var(--ink); }
.cheek { fill: var(--cheek); }
.face { stroke-width: 2.5px; }
.stripe { stroke-width: 5px; opacity: .55; }
.play-section { background: var(--mint); border-radius: 70px 70px 0 0; padding-block: 88px; }
.play-layout p { font-size: 18px; }
.play-layout .small { font-size: 14px; }
.game-board { background: var(--white); border-radius: 32px; padding: 30px; box-shadow: 0 8px 0 #dce8d1; }
.board { gap: 12px; }
.tile { border: 0; border-radius: 18px; background: #92b8a0; box-shadow: 0 4px 0 #749e83; }
.tile:after { color: var(--white); font-weight: 900; }
.tile.revealed,.tile.matched { background: #fff3df; }
.tile.matched { outline: 2px solid var(--green); outline-offset: -2px; }
.tile.kind-4 .face { stroke: var(--ink); }
.game-status h3 { font-size: 25px; }
.game-status span,#message { font-size: 13px; }
.studio { padding-block: 100px; }
.studio-mark { width: 190px; background: #f8e9cc; padding: 24px; border-radius: 50%; margin-top: 35px; }
.studio-copy .lead { font-size: 24px; font-weight: 800; }
.studio-copy>p:not(.lead) { font-size: 17px; }
.company-details { font-size: 16px; }
.company-details span { font-size: 13px; }
.contact { background: #f3e6da; color: var(--ink); border-radius: 65px 65px 0 0; }
.contact h2 { font-size: 48px; }
.contact p { font-size: 16px; }
.contact-cat { width: 230px; }
.contact a { font-size: 24px; font-weight: 800; }
.footer-top>div { font-size: 14px; }
.footer-bottom { font-size: 12px; }
@media(min-width:1600px) { .hero-world { min-height: 940px; } .garden-scene { max-height: 550px; object-fit: fill; } }
@media(max-width:1000px) {
  .hero { padding-top: 160px; padding-bottom: 340px; }
  .hero-world { min-height: 780px; }
  .garden-scene { width: 125%; max-width: none; left: -12.5%; }
  .featured { gap: 40px; }
  .pair-card { left: 25px; width: 140px; }
  .pair-card:nth-child(2) { left: 180px; }
}
@media(max-width:620px) {
  .header { height: 86px; }
  .brand { font-size: 27px; }
  .brand svg { width: 36px; height: 36px; }
  .header nav { gap: 14px; }
  .header nav a { font-size: 13px; }
  .hero-world { min-height: 760px; }
  .hero { padding: 135px 0 300px; }
  .hero h1 { font-size: 46px; -webkit-text-stroke-width: 5px; letter-spacing: -1px; }
  .hero-copy>p { font-size: 17px; margin-block: 22px; }
  .actions { gap: 12px; flex-direction: column; }
  .actions a { min-width: 210px; }
  .hero-note { font-size: 12px; }
  .garden-scene { width: 220%; left: -60%; height: 300px; object-fit: fill; }
  .cloud-one { top: 160px; left: -130px; transform: scale(.8); }
  .cloud-two { top: 85px; right: -100px; transform: scale(.7); }
  .cloud-three { display: none; }
  .company-line>.wrap { text-align: center; align-items: center; font-size: 11px; gap: 8px; }
  .company-line span:first-child { font-size: 14px; }
  .games { padding-block: 60px; }
  h2 { font-size: 34px; }
  .section-top { gap: 8px; margin-bottom: 30px; }
  .section-top p { font-size: 17px; }
  .featured-art { min-height: 325px; border-radius: 30px; }
  .pair-card { left: 24px; top: 25px; width: 125px; height: 165px; }
  .pair-card:nth-child(2) { left: 165px; top: 55px; }
  .pair-word { font-size: 25px; bottom: 18px; }
  .game-copy h3 { font-size: 34px; }
  .game-copy p { font-size: 17px; }
  .game-copy dd { font-size: 13px; }
  .play-section { padding-block: 55px; border-radius: 38px 38px 0 0; }
  .game-board { padding: 18px; }
  .game-status { gap: 8px; }
  .game-status h3 { font-size: 22px; }
  .game-status span { font-size: 11px; }
  .board { gap: 10px; }
  .tile { border-radius: 12px; }
  .studio { padding-block: 60px; }
  .studio-title { justify-content: space-between; }
  .studio-mark { width: 90px; padding: 10px; margin: 0; flex-shrink: 0; }
  .studio-copy .lead { font-size: 21px; }
  .contact { border-radius: 38px 38px 0 0; }
  .contact h2 { font-size: 34px; }
  .contact p { font-size: 14px; }
  .contact a { font-size: 17px; }
  .contact-cat { width: 85px; }
}

@media(max-width:620px){
  .garden-scene{width:100%;left:0;height:auto;object-fit:contain;}
  .contact-inner>div:first-child{min-width:0;}
  .contact-cat{width:70px;margin-left:8px;}
  .contact a{overflow-wrap:anywhere;}
}
@media(max-width:380px){
  .header{gap:10px;}
  .header .brand{font-size:23px;gap:4px;letter-spacing:-1px;}
  .header .brand svg{width:30px;height:30px;}
  .header nav{gap:10px;}
  .header nav a{font-size:12px;}
  .hero h1{font-size:41px;}
}

/* Playful, recognizably feline characters and an accessible game playground. */
:root { --cat-fur:#efad65; --cat-stripe:#c47b42; --cat-eye:#d4dcaa; --cat-nose:#d99089; --cat-shadow:#8eb578; --yarn:#e7a6b8; --yarn-line:#bd788e; }
[hidden] { display:none !important; }
.eye-shape { fill:var(--cat-eye); }
.pupils { stroke:var(--ink); stroke-width:3; stroke-linecap:round; }
.nose { fill:var(--cat-nose); }
.whisker { stroke-width:2; opacity:.85; }
.cat-shadow { fill:var(--cat-shadow); opacity:.45; }
.cat-tail { fill:none; stroke:var(--cat-fur); stroke-width:21; stroke-linecap:round; transform-origin:158px 259px; animation:tail-swish 4s ease-in-out infinite; }
.pet-cat .fur,#chase-cat .fur,.yarn-art .fur { fill:var(--cat-fur); }
.pet-cat .stripe,#chase-cat .stripe { stroke:var(--cat-stripe); }
.cat-breathe { animation:cat-breathe 4s ease-in-out infinite; transform-origin:110px 280px; }
.cat-head .eye-shape,.cat-head .pupils { animation:cat-blink 6s infinite; transform-box:fill-box; transform-origin:center; }
.leg-line,.toe-line { fill:none; stroke:var(--cat-stripe); stroke-width:3; opacity:.65; stroke-linecap:round; }
.misty { --cat-fur:#a6b3c2; --cat-stripe:#6b7f90; --cat-eye:#bfd79b; }
.hero-world { min-height:960px; }
.garden-pets { position:absolute; inset:auto 0 80px; height:300px; z-index:3; max-width:1440px; margin:auto; }
.pet-cat { position:absolute; bottom:0; width:245px; padding:0; border:0; background:none; cursor:pointer; color:var(--ink); }
.pet-cat svg { display:block; width:100%; }
.pet-cat.maple { left:13%; }
.pet-cat.misty { right:13%; }
.pet-cat span { display:inline-block; font-size:13px; font-weight:800; padding:4px 14px; background:var(--paper); border-radius:20px; }
.garden-yarn { position:absolute; left:38%; bottom:10px; width:86px; border:0; background:none; cursor:pointer; padding:0; animation:yarn-idle 5s ease-in-out infinite; }
.garden-yarn.rolling { animation:yarn-roll 1.2s ease-in-out; }
.yarn-fill { fill:var(--yarn); }
.yarn-thread,.yarn-lines { fill:none; stroke:var(--yarn-line); stroke-width:3; stroke-linecap:round; }
.garden-controls { position:absolute; bottom:20px; left:0; right:0; z-index:4; display:flex; justify-content:center; align-items:center; gap:20px; color:var(--ink); font-size:13px; }
#motion-toggle { background:var(--paper); border:1px solid var(--button); border-radius:24px; color:var(--ink); min-height:42px; padding:8px 18px; cursor:pointer; font-size:13px; font-weight:800; }
.cloud-one { animation:cloud-drift 19s ease-in-out infinite alternate; }
.cloud-two { animation:cloud-drift 25s ease-in-out infinite alternate-reverse; }
.cloud-three { animation:cloud-drift 30s ease-in-out infinite alternate; }
@keyframes cloud-drift { from{translate:-30px 0} to{translate:45px 0} }
@keyframes tail-swish { 0%,100%{transform:rotate(-7deg)}50%{transform:rotate(9deg)} }
@keyframes cat-breathe { 0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.018)} }
@keyframes cat-blink { 0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.1)} }
@keyframes yarn-idle { 0%,70%,100%{transform:rotate(0)}80%{transform:rotate(9deg)}90%{transform:rotate(-7deg)} }
@keyframes yarn-roll { 50%{transform:translateX(50px) rotate(130deg)} }
.motion-paused *, .offscreen *, .page-hidden * { animation-play-state:paused!important; }
.motion-paused #chase-cat { transition:none; }
.game-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.game-card { display:block; border-radius:30px; overflow:clip; background:var(--white); border:1px solid var(--rule); text-decoration:none; transition:transform .2s; }
.game-card:hover { transform:translateY(-5px); }
.catalog-art { height:235px; position:relative; overflow:hidden; }
.catalog-copy { padding:24px; }
.catalog-copy>span { font-size:13px; color:var(--muted); }
.catalog-copy h3 { font-size:28px; margin:8px 0; }
.catalog-copy p { font-size:16px; min-height:52px; margin:10px 0 18px; }
.catalog-copy strong { display:inline-block; color:var(--button); font-size:15px; border-bottom:2px solid var(--mint); }
.memory-art { background:#f8e7ce; display:flex; align-items:center; justify-content:center; }


.photo-art img { width:100%; height:100%; object-fit:cover; }
.photo-art:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent 32.7%,var(--white) 32.7% 33.4%,transparent 33.4% 66%,var(--white) 66% 66.7%,transparent 66.7%),linear-gradient(transparent 49%,var(--white) 49% 50%,transparent 50%); pointer-events:none; }
.yarn-art { background:#e2eee0; }
.yarn-art>svg:first-child { position:absolute; width:155px; bottom:0; left:12%; }
.yarn-art>svg:last-child { position:absolute; width:85px; bottom:20px; right:10%; }
.play-heading { text-align:center; }
.play-heading>p { font-size:18px; }
.game-tabs { display:flex; justify-content:center; gap:12px; margin:30px auto 48px; }
.game-tabs button { padding:12px 24px; border:1px solid var(--button); border-radius:999px; background:var(--white); color:var(--ink); font-weight:800; cursor:pointer; min-height:48px; }
.game-tabs button[aria-selected=true] { background:var(--button); color:var(--white); }
.puzzle-options { display:grid; gap:8px; margin-block:24px; }
.puzzle-options label { font-size:14px; font-weight:800; }
.puzzle-options select { max-width:240px; background:var(--white); border:1px solid var(--green); border-radius:12px; padding:10px; color:var(--ink); font:inherit; }
.puzzle-options input { width:100%; font:inherit; font-size:13px; }
.puzzle-options input::file-selector-button { background:var(--white); color:var(--ink); border:1px solid var(--green); border-radius:12px; padding:10px 12px; cursor:pointer; margin-right:12px; font:inherit; }
.puzzle-options .small { margin:0; }
select:focus-visible,input:focus-visible { outline:3px solid var(--dark-orange); outline-offset:4px; }
.puzzle-actions { display:flex; flex-wrap:wrap; gap:12px; }
.puzzle-actions .button,.puzzle-actions .secondary-button { font-size:14px; padding:12px 20px; }
#puzzle-board { display:grid; grid-template-columns:repeat(var(--puzzle-size,3),minmax(0,1fr)); aspect-ratio:3/2; gap:4px; border-radius:14px; overflow:clip; }
.puzzle-piece { min-width:0; min-height:0; position:relative; border:0; cursor:pointer; padding:0; }
.puzzle-piece.selected { outline:5px solid var(--orange); outline-offset:-5px; }
.puzzle-piece:focus-visible { outline:4px solid var(--ink); outline-offset:-4px; z-index:1; }
.puzzle-piece span { position:absolute; bottom:5px; left:5px; background:var(--paper); color:var(--ink); border-radius:6px; font-size:12px; font-weight:800; padding:0 5px; }
#puzzle-status,#yarn-status { font-size:14px; min-height:44px; margin-bottom:0; }
.photo-credit { font-size:12px!important; }
.photo-reference { margin-top:24px; }
.photo-reference img { display:block; width:min(100%,280px); height:auto; margin:16px 0; border-radius:16px; }
#yarn-field { position:relative; aspect-ratio:1.3; background:#dfedce; border-radius:24px; overflow:hidden; }
#chase-cat { position:absolute; width:26%; left:25%; top:70%; transform:translate(-50%,-70%); transition:left .4s ease-out,top .4s ease-out; pointer-events:none; }
#yarn-target { position:absolute; width:16%; min-width:48px; min-height:48px; padding:0; background:none; border:0; transform:translate(-50%,-50%); cursor:pointer; }
#yarn-target.caught { opacity:.35; cursor:default; }
#yarn-target svg { width:100%; display:block; }
.field-flower { position:absolute; right:10%; bottom:8%; font-size:35px; color:var(--white); pointer-events:none; }
.legal-page .header { position:static; }
.legal-document { max-width:800px; margin:55px auto 90px; padding:0 24px; }
.legal-document h1 { font-size:46px; margin-bottom:20px; letter-spacing:-1px; }
.legal-document h2 { font-size:25px; margin-top:36px; letter-spacing:-.4px; }
.legal-document p,.legal-document li { font-size:17px; line-height:1.8; }
.legal-document .legal-meta { color:var(--muted); font-size:14px; }
.legal-document table { border-collapse:collapse; width:100%; font-size:14px; }
.legal-document th,.legal-document td { padding:12px; border-bottom:1px solid var(--rule); text-align:left; vertical-align:top; }
.legal-document a { text-underline-offset:3px; }
@media(max-width:900px) { .game-catalog{gap:16px}.catalog-art{height:190px}.catalog-copy{padding:18px}.catalog-copy h3{font-size:24px}.pet-cat{width:205px}.garden-pets{bottom:70px}.hero-world{min-height:920px}.garden-yarn{width:70px} }
@media(max-width:620px) {
  .hero-world{min-height:850px}.hero{padding-bottom:330px}.garden-pets{height:220px;bottom:72px}.pet-cat{width:140px}.pet-cat.maple{left:3%}.pet-cat.misty{right:3%}.pet-cat span{font-size:11px;padding:3px 10px}.garden-yarn{left:43%;bottom:6px;width:58px}.garden-controls{gap:8px;bottom:14px;flex-direction:column;font-size:12px}#motion-toggle{min-height:36px;font-size:12px;padding:5px 14px}.garden-scene{height:330px;object-fit:fill}
  .game-catalog{grid-template-columns:minmax(0,1fr);gap:24px}.catalog-art{height:230px}.catalog-copy{padding:24px}.catalog-copy p{min-height:0}.memory-art .portrait-card{width:35%}.yarn-art>svg:first-child{left:17%;width:150px}.catalog-copy h3{font-size:28px}
  .game-tabs{gap:6px;margin:24px auto 36px}.game-tabs button{font-size:12px;padding:10px 12px;min-height:44px}.play-heading>p{font-size:16px}#puzzle-board{gap:3px}.puzzle-piece span{font-size:10px;bottom:3px;left:3px}.puzzle-options input{font-size:12px}.game-status h3{font-size:20px}.footer-top>div{flex-wrap:wrap;gap:14px}.legal-document{margin-top:30px}.legal-document h1{font-size:36px}.legal-document p,.legal-document li{font-size:16px}
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }

/* A single whole-body storybook sprite. Position, facing and pose use separate layers. */
.cat-garden { position:absolute; left:50%; bottom:100px; transform:translateX(-50%); width:min(1200px,100%); height:315px; z-index:3; isolation:isolate; }
.garden-ground { position:absolute; inset:30% 0 0; cursor:crosshair; }
.cat-actor { position:absolute; top:0; left:0; width:300px; height:300px; border:0; padding:0; background:none; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; will-change:transform; }
.cat-actor:active { translate:0; }
.cat-facing,.real-cat-sprite { position:absolute; inset:0; display:block; pointer-events:none; }
.real-cat-sprite { background-image:url('assets/maple-storybook-sheet.png'); background-size:400% 200%; background-repeat:no-repeat; background-position:33.333333% 100%; }
.maple-shadow { position:absolute; left:20%; right:12%; height:15px; bottom:16.5%; border-radius:50%; background:#668b5c26; filter:blur(5px); pointer-events:none; }
.cat-heart { position:absolute; top:14%; left:60%; color:#bd617a; font-size:30px; opacity:0; pointer-events:none; }
.cat-actor.is-petted .cat-heart { opacity:1; animation:maple-love 1.5s ease-out infinite; }
@keyframes maple-love { from{transform:translateY(0) scale(.8);opacity:1}to{transform:translateY(-34px) scale(1.1);opacity:0} }
.cat-toy { position:absolute; width:52px; height:52px; top:0; left:0; background:none; border:0; padding:5px; cursor:grab; touch-action:none; user-select:none; will-change:transform; }
.cat-toy.dragging { cursor:grabbing; }
.toy-ball { display:block; width:42px; height:42px; border-radius:50%; background:radial-gradient(circle at 32% 25%,#f9d7df 0 7%,transparent 32%),repeating-linear-gradient(35deg,transparent 0 7px,#ba728e88 8px 10px,transparent 11px 16px),radial-gradient(circle at 33% 30%,#e9aec3,#c27b99 75%); box-shadow:inset -3px -4px 6px #97577540; pointer-events:none; }
.toy-shadow { position:absolute; top:0; left:0; width:50px; height:12px; border-radius:50%; background:var(--ink); filter:blur(4px); pointer-events:none; }
.garden-caption { position:absolute; top:8px; left:50%; transform:translateX(-50%); text-align:center; pointer-events:none; font-size:13px; width:300px; color:var(--ink); }
.garden-caption strong { display:block; font-size:21px; font-weight:900; }
.garden-controls { bottom:24px; flex-direction:column; gap:12px; padding:0 20px; text-align:center; }
.garden-buttons { display:flex; align-items:center; justify-content:center; gap:10px; }
.garden-buttons button { border:1px solid #779b79; border-radius:24px; min-height:42px; padding:8px 20px; background:#fffdf4; color:var(--ink); font:800 13px var(--font-body); cursor:pointer; }
.garden-buttons button:hover { background:#edf4e3; }
#pet-status { min-height:21px; }
@media(min-width:1600px){.hero-world{min-height:1000px;}.cat-garden{bottom:110px;}}
@media(max-width:900px){.cat-garden{height:290px;bottom:110px;}.cat-actor{width:260px;height:260px;}.garden-caption{top:0;}}
@media(max-width:620px){
 .hero-world{min-height:890px;}.hero{padding-bottom:365px;}.cat-garden{height:230px;bottom:115px;width:100%;}.cat-actor{width:210px;height:210px;}.garden-caption{top:0;font-size:11px;}.garden-caption strong{font-size:17px;}.garden-caption span{display:none;}.garden-controls{bottom:18px;padding:0 14px;gap:10px;}#pet-status{font-size:12px;max-width:340px;min-height:36px;}.garden-buttons{gap:6px;}.garden-buttons button,#motion-toggle{font-size:11px;padding:7px 11px;min-height:40px;}.garden-scene{height:350px;}.maple-shadow{height:10px;}
}
@media(prefers-reduced-motion:reduce){.cat-actor.is-petted .cat-heart{animation:none;}}
.catalog-maple { position:absolute; width:230px; height:230px; left:3%; bottom:0; }
.catalog-maple .real-cat-sprite { background-position:33.333333% 100%; }
#chase-cat { width:38%; aspect-ratio:1; }
#chase-cat .real-cat-sprite { background-position:0 100%; transform:scaleX(var(--chase-facing,1)); }
#chase-cat.is-chasing .real-cat-sprite { animation:chase-steps .5s steps(1,end); }
@keyframes chase-steps { 0%{background-position:0 0}25%{background-position:33.333333% 0}50%{background-position:66.666666% 0}75%,100%{background-position:100% 0} }
@media(prefers-reduced-motion:reduce){#chase-cat.is-chasing .real-cat-sprite{animation:none;}}

/* Muted cloth toy and soft ground contact match the illustrated cat and meadow. */
.toy-ball { background:radial-gradient(circle at 32% 25%,#f4d1da 0 6%,transparent 36%),repeating-linear-gradient(35deg,transparent 0 8px,#bd859b66 9px 10px,transparent 11px 17px),#ddaabd; box-shadow:inset -2px -3px 4px #ad78922b; }

/* Six recognizable coat patterns share one softly painted portrait atlas. */
.cat-portrait{display:block;aspect-ratio:1;background-image:url("assets/cat-portraits-storybook.png");background-size:300% 200%;background-repeat:no-repeat;width:100%;}
.portrait-0{background-position:0 0}.portrait-1{background-position:50% 0}.portrait-2{background-position:100% 0}
.portrait-3{background-position:0 100%}.portrait-4{background-position:50% 100%}.portrait-5{background-position:100% 100%}
.memory-art .portrait-card{display:block;width:42%;padding:8px;background:#fffdf7;border-radius:24px;transform:rotate(-9deg);box-shadow:0 5px 0 #d9be9633;}
.memory-art .portrait-card+.portrait-card{transform:rotate(9deg);margin-left:-8px;}
.tile .cat-portrait{display:none;}
.tile.revealed .cat-portrait,.tile.matched .cat-portrait{display:block;}
@media(max-width:620px){.memory-art .portrait-card{width:35%;}}

/* Brand and section mascots use the same painted orange tabby as Paw Pairs. */
.brand .cat-portrait{width:48px;height:48px;flex-shrink:0;}
@media(max-width:620px){.brand .cat-portrait{width:36px;height:36px;}}
@media(max-width:380px){.header .brand .cat-portrait{width:30px;height:30px;}}

/* Keep the meadow full bleed when a wide window exceeds the artwork ratio. */
@media(min-width:901px){
 .garden-scene{width:100%;height:clamp(460px,32vw,560px);max-height:none;left:0;object-fit:fill;object-position:center bottom;}
}
@media(min-width:1600px){
 .wrap{width:min(1440px,calc(100% - 128px));}
 .hero-copy{max-width:740px;}
}
