/* AniPals games website: the shared style (copied to assets/site.css by site/build_site.py) */
@font-face{font-family:Fredoka;font-weight:600;font-display:swap;src:url(fonts/fredoka-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:Fredoka;font-weight:700;font-display:swap;src:url(fonts/fredoka-latin-700-normal.woff2) format('woff2')}
:root{--bg:#2E0F38;--card:#3D2468;--ink:#FFF7EA;--soft:#D9C8F0;--y:#FFE066;--line:rgba(255,255,255,.16)}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;color:var(--ink);font-family:Fredoka,'Arial Rounded MT Bold','Segoe UI',Arial,sans-serif;font-weight:600;line-height:1.4;
  background:radial-gradient(ellipse 90% 50% at 50% 0%,#4E1F63 0%,var(--bg) 70%) no-repeat,var(--bg);min-height:100vh}
/* v6: the home page is plain --bg, the banner's own bottom colour, so the banner melts into it */
body:has(> .banner){background:var(--bg)}   /* (no page uses the old banner since v10) */
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
:focus-visible{outline:3px solid var(--y);outline-offset:2px;border-radius:6px}

/* top bar (game pages) */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;max-width:1200px;margin:0 auto}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:clamp(20px,5vw,26px);font-weight:700;white-space:nowrap}
.brand em{font-style:normal;color:var(--y)}
.back{text-decoration:none;color:var(--soft);font-size:18px;padding:6px 14px;border-radius:20px;background:rgba(255,255,255,.08);white-space:nowrap}
.back:hover{background:rgba(255,255,255,.16);color:var(--ink)}

/* home: banner, search, filters */
/* v6 (the user): the banner fills the whole width. Its picture is the middle third of a 3840 px wide image whose sides are its
   own edge colour, so there is no visible edge on any screen; on narrow screens the middle (logo and friends) fills the width */
.banner{display:block;width:100%;height:min(45.5vw,480px);object-fit:cover;object-position:center top}
.lead{text-align:center;margin:4px auto 0;max-width:760px}
.lead h1{font-size:clamp(28px,4.2vw,44px);margin:0 0 6px;font-weight:700}
.lead p{margin:0;color:var(--soft);font-size:clamp(16px,1.9vw,20px)}
.finder{margin:26px auto 0;background:var(--card);border-radius:24px;padding:18px 20px;border:2px solid var(--line)}
.search{display:flex;align-items:center;gap:10px;background:#fff;border-radius:30px;padding:4px 8px 4px 16px}
.search svg{flex:none}
.search input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:20px;color:#2A1840;padding:10px 4px;background:transparent}
.search input::placeholder{color:#9A8FB0}
.search:focus-within{box-shadow:0 0 0 3px var(--y)}
.groups{display:flex;flex-wrap:wrap;gap:14px 28px;margin-top:16px}
.group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.group>span{color:var(--soft);font-size:16px;margin-right:2px}
.chip{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);background:rgba(255,255,255,.06);border-radius:30px;padding:5px 14px;font-size:16px}
.chip b{font-weight:600}
.chip .skill svg{width:22px;height:22px}
.chip[aria-pressed="true"]{background:var(--y);border-color:var(--y);color:#3A2060}
.chip:hover{border-color:var(--y)}
.status{display:flex;align-items:center;gap:14px;margin:14px 0 0;color:var(--soft);font-size:16px;min-height:28px}
.clear{border:0;background:none;color:var(--y);text-decoration:underline;font-size:16px;padding:0}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:24px;margin-top:16px}
.empty{text-align:center;color:var(--soft);font-size:20px;padding:40px 0}

/* a game card */
.card{background:var(--card);border-radius:24px;border:3px solid var(--c);box-shadow:0 8px 0 rgba(0,0,0,.25);display:flex;flex-direction:column}
.card[hidden]{display:none}
.card .car{border-radius:21px 21px 0 0}
.body{padding:14px 18px 18px;display:flex;flex-direction:column;flex:1}
.head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.head h2{margin:0;font-size:26px;font-weight:700;line-height:1.15;color:var(--c)}
.head h2 a{text-decoration:none;color:var(--c)}
.head h2 a:hover{text-decoration:underline}
.skills{display:flex;gap:4px;flex:none}
.skill{display:inline-flex;align-items:center;gap:6px}
.labels{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.label{font-size:14px;padding:2px 11px;border-radius:20px;background:rgba(255,255,255,.12)}
.label.topic{background:var(--c);color:#2A1840}
.label.grade{background:transparent;border:2px solid var(--line)}
.short{margin:0 0 14px;color:var(--soft);font-size:16px;flex:1}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn{display:inline-block;text-decoration:none;background:var(--y);color:#3A2060;font-weight:700;font-size:17px;padding:8px 18px;border-radius:30px;box-shadow:0 5px 0 #C9A41E;transition:transform .12s;border:0}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #C9A41E}
.btn.alt{background:#fff;box-shadow:0 5px 0 #B9B0CC}

/* the files folder */
.files{position:relative;margin-left:auto}
.folder{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);background:rgba(255,255,255,.06);border-radius:16px;padding:4px 10px 4px 8px;font-size:15px}
.folder:hover,.folder[aria-expanded="true"]{border-color:var(--y)}
.pop{position:absolute;right:0;bottom:calc(100% + 8px);width:min(340px,86vw);background:#fff;color:#2A1840;border-radius:16px;padding:12px;box-shadow:0 12px 30px rgba(0,0,0,.45);z-index:20}
.pop h3{margin:0 0 6px;font-size:16px;padding:0 8px}
.pop ul,.flist{list-style:none;margin:0;padding:0}
.flink{display:flex;align-items:center;gap:12px;text-decoration:none;padding:8px;border-radius:10px;font-size:15px;line-height:1.25}
.flink:hover{background:#F1EAFB}
.flink small{display:block;color:#7A6E90;font-size:12px}
.ficon{flex:none}

/* the pictures */
.car{position:relative;aspect-ratio:16/9;background:#1E0B38;overflow:hidden}
.car img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s;cursor:pointer}
.car img.on{opacity:1}
.car .nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;border:0;background:rgba(30,12,56,.72);color:#fff;font-size:24px;line-height:36px;padding:0}
.car .nav:hover{background:rgba(30,12,56,.95)}
.car .prev{left:8px}.car .next{right:8px}
.dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:7px}
.dots button{width:12px;height:12px;border-radius:50%;border:2px solid #fff;background:rgba(30,12,56,.4);padding:0}
.dots button[aria-current="true"]{background:#fff}

/* a game page */
.hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:8px}
@media (max-width:860px){.hero{grid-template-columns:1fr}}
.hero .car{border-radius:22px;border:3px solid var(--c)}
.info h1{margin:0;font-size:clamp(32px,4vw,46px);line-height:1.1;color:var(--c)}
.info .skills{margin:4px 0 0;gap:16px;flex-wrap:wrap}
.info .skill{font-size:17px}
.info .about{color:var(--soft);font-size:18px;margin:14px 0 20px}
.play{display:inline-flex;align-items:center;gap:10px;text-decoration:none;background:var(--y);color:#3A2060;font-weight:700;font-size:30px;padding:12px 44px;border-radius:40px;box-shadow:0 8px 0 #C9A41E;transition:transform .12s}
.play:hover{transform:translateY(-3px) scale(1.02)}
.play:active{transform:translateY(5px);box-shadow:0 3px 0 #C9A41E}
.facts{color:var(--soft);font-size:16px;margin:14px 0 0}
.panel{background:var(--card);border:2px solid var(--line);border-radius:22px;padding:20px 24px;margin-top:26px}
.panel h2{margin:0 0 12px;font-size:26px}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:0 26px}
@media (max-width:860px){.cols{grid-template-columns:1fr}}
.steps{margin:0;padding:0;list-style:none;counter-reset:s}
.steps li{counter-increment:s;display:flex;gap:12px;align-items:flex-start;font-size:18px;margin-bottom:10px}
.steps li::before{content:counter(s);flex:none;width:32px;height:32px;border-radius:50%;background:var(--y);color:#3A2060;font-weight:700;display:flex;align-items:center;justify-content:center}
.ex{font-size:26px;margin:0 0 8px}
.k{-webkit-text-stroke:1px #1E1430;paint-order:stroke fill}
.words{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.words span{font-size:15px;padding:2px 10px;border-radius:14px;background:rgba(255,255,255,.1)}
.flist{display:grid;gap:8px;max-width:640px}
.flist .flink{background:#fff;color:#2A1840}
.flist .flink:hover{background:#F1EAFB}

/* feedback */
form{display:grid;gap:16px;max-width:720px}
fieldset{border:0;margin:0;padding:0}
legend,.flabel{font-size:18px;margin-bottom:6px;display:block;padding:0}
.stars{display:inline-flex;flex-direction:row-reverse;gap:4px}
.stars input{position:absolute;opacity:0;width:1px;height:1px}
.stars label{font-size:46px;line-height:1;color:rgba(255,255,255,.25);cursor:pointer}
.stars label:hover,.stars label:hover~label,.stars input:checked~label{color:var(--y)}
.stars input:focus-visible+label{outline:3px solid var(--y);border-radius:6px}
textarea,select{width:100%;font:inherit;font-size:17px;color:#2A1840;background:#fff;border:0;border-radius:14px;padding:10px 14px}
textarea{min-height:96px;resize:vertical}
select{width:auto;min-width:220px}
.note{color:var(--soft);font-size:15px;margin:0}
.send{justify-self:start;font-size:20px;padding:10px 28px}
footer{text-align:center;color:rgba(255,247,234,.55);font-size:14px;padding:40px 16px;line-height:1.6}

/* v10 (the user, 30 Nov 2026): the front page. The banner (the intro's last frame without the friends) and the six friends on it,
   bobbing like on the matching game's start screen. --u = the size of one pixel of the 1920 x 1080 intro frame on screen
   (the banner shows that frame at 2/3 size, 583 px high, scaled to the banner's height --h). */
/* v10b (the user: the banner's edges showed as a box): no banner picture any more. The page itself draws the intro's purple glow as one
   round gradient centred on the logo (the intro's own colours, #7A4290 -> #552668 -> the page colour), so it has no edges at any width */
body:has(> .hero-banner){--h:min(45.5vw,480px);--u:calc(var(--h) * .0011435);
  background:radial-gradient(circle calc(1250 * var(--u)) at 50% calc(345 * var(--u)),#7A4290 calc(40 * var(--u)),#552668 calc(500 * var(--u)),#3A1548 calc(900 * var(--u)),var(--bg) calc(1250 * var(--u))) no-repeat,var(--bg)}
.hero-banner{position:relative;height:calc(790 * var(--u))}   /* v10d (the user): a smaller gap under the friends (their feet are at about 775) */
.hero-banner .logo{position:absolute;left:50%;top:0;width:calc(1920 * var(--u));height:auto;transform:translateX(-50%)}
.friends{position:absolute;inset:0;pointer-events:none}
.fr{position:absolute;left:calc(50% + (var(--x) - 960 - 147) * var(--u));top:calc(553.7 * var(--u));width:calc(294 * var(--u))}
.fr img{display:block;width:100%;height:auto;position:relative;animation:bob 1.6s ease-in-out infinite;animation-delay:var(--d)}
.fr::before{content:'';position:absolute;left:28%;right:28%;top:calc(98% - 5 * var(--u));height:calc(16 * var(--u));border-radius:50%;
  background:radial-gradient(closest-side,rgba(15,0,30,.45),rgba(15,0,30,0));animation:bobshadow 1.6s ease-in-out infinite;animation-delay:var(--d)}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(-22 * var(--u)))}}
@keyframes bobshadow{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.8);opacity:.7}}
@media (prefers-reduced-motion:reduce){.fr img,.fr::before{animation:none}}

/* the two big glass buttons: a deep purple icon on a soft glow, only the name */
.bigs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;max-width:820px;margin:30px auto 10px}
@media (max-width:560px){.bigs{gap:16px}}
.big{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;overflow:hidden;
  padding:clamp(18px,4vw,36px) 12px clamp(16px,3vw,28px);border-radius:36px;
  background:linear-gradient(155deg,rgba(255,255,255,.20),rgba(255,255,255,.06) 45%,rgba(255,255,255,.03));
  border:2px solid rgba(255,255,255,.26);box-shadow:inset 0 2px 0 rgba(255,255,255,.30),inset 0 -10px 30px rgba(20,0,40,.25),0 18px 40px rgba(10,0,25,.5),0 0 50px rgba(176,107,224,.22);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .18s,box-shadow .18s}
.big .glow{position:absolute;z-index:-1;left:50%;top:44%;width:85%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(214,160,255,.75),rgba(176,107,224,.35) 45%,rgba(176,107,224,0));transition:opacity .2s,transform .2s;opacity:.85}
.big::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.16) 45%,rgba(255,255,255,0) 60%);transform:translateX(-60%);transition:transform .6s}
.big:hover{transform:translateY(-6px);box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -10px 30px rgba(20,0,40,.25),0 24px 46px rgba(10,0,25,.55),0 0 70px rgba(176,107,224,.45)}
.big:hover .glow{opacity:1;transform:translate(-50%,-50%) scale(1.12)}
.big:hover::after{transform:translateX(60%)}
.big:active{transform:translateY(2px)}
.big .ic{width:min(72%,230px);height:auto;filter:drop-shadow(0 10px 14px rgba(20,0,40,.45));transition:transform .25s}
.big:hover .ic{transform:scale(1.07) rotate(-3deg)}
.big .bt{font-size:clamp(30px,5vw,56px);font-weight:700;color:#fff;line-height:1.1;text-shadow:0 3px 0 rgba(42,11,69,.6),0 0 22px rgba(214,160,255,.55)}
.label.kind{background:#fff;color:#2A1840}
.thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:21px 21px 0 0;overflow:hidden;background:#1E0B38}
.thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.thumb:hover img{transform:scale(1.04)}
.thumb svg,.ytplay svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);filter:drop-shadow(0 4px 6px rgba(0,0,0,.4));transition:transform .15s}
.thumb:hover svg{transform:translate(-50%,-50%) scale(1.12)}
.len{position:absolute;right:10px;bottom:10px;background:rgba(20,8,40,.85);color:#fff;font-size:14px;padding:2px 9px;border-radius:10px}
.yt{position:relative;aspect-ratio:16/9;border-radius:22px;border:3px solid var(--c);overflow:hidden;background:#000}
.yt img{width:100%;height:100%;object-fit:cover;display:block}
.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ytplay{position:absolute;inset:0;border:0;background:transparent;padding:0}
.ytplay svg{width:110px;height:78px}
.ytplay:hover svg{transform:translate(-50%,-50%) scale(1.1)}
.info .note{margin-top:6px}
.gcards{display:grid;gap:12px}
.gcard{display:flex;align-items:center;gap:14px;text-decoration:none;background:rgba(255,255,255,.06);border:2px solid var(--c);border-radius:16px;padding:8px}
.gcard:hover{background:rgba(255,255,255,.12)}
.gcard img{width:150px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;flex:none}
.gcard b{display:block;font-size:20px;color:var(--c)}
.gcard small{color:var(--soft);font-size:15px}
.soon{text-align:center;max-width:620px;margin:30px auto}
.soon img{width:100%;height:auto;border-radius:22px;opacity:.75}
.soon h2{font-size:32px;margin:16px 0 4px}
.soon p{color:var(--soft);font-size:18px}
.soon a{color:var(--y)}

/* v10h (the user, 30 Nov 2026): on the front page the mouse pointer is a white paw print, and a yellow one over the Videos and Games
   buttons (site/make_cursors.py; the click point is the top-left toe, 7 5). Sharp screens get the 64 px pictures. */
body:has(> .hero-banner){cursor:url(img/paw.png) 7 5,auto;
  cursor:-webkit-image-set(url(img/paw.png) 1x,url(img/paw@2x.png) 2x) 7 5,auto;cursor:image-set(url(img/paw.png) 1x,url(img/paw@2x.png) 2x) 7 5,auto}
body:has(> .hero-banner) a{cursor:url(img/paw-point.png) 7 5,pointer;
  cursor:-webkit-image-set(url(img/paw-point.png) 1x,url(img/paw-point@2x.png) 2x) 7 5,pointer;cursor:image-set(url(img/paw-point.png) 1x,url(img/paw-point@2x.png) 2x) 7 5,pointer}
