/* The Tiny Hands bar on Play (prototype, 29 Oct 2026): the same bar as Learn, Feel and Move. "✌️ Tiny Hands"
   (the product name slides in once the page's big logo is scrolled away), Play · Learn · Feel · Move in the
   middle, Grown-ups on the right; it stays at the top. Also the logo family for the hero's big logo. */
.th-bar { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px); background: rgba(255, 255, 255, 0.7);   /* the same bar as Learn, Feel and Move's */ -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(124, 107, 191, 0.12);
  /* Play's homepage fills the screen under an iPhone's or iPad's clock (viewport-fit=cover, for the games): the bar
     starts below it (Mauro, 1 Nov: from the Home Screen the bar sat under the iPad's time and date). 0 elsewhere. */
  padding-top: calc(14px + env(safe-area-inset-top)); }
.th-logo { --th: #E2653F; display: inline-flex; align-items: center; gap: 0.18em; font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; line-height: 1; text-decoration: none; }
.th-logo img { width: 1.75em; height: 1.75em; transform: rotate(-10deg); filter: drop-shadow(0 3px 4px rgba(200, 120, 0, 0.25)); }
.th-logo-words { display: flex; flex-direction: column; align-items: flex-start; }
.th-logo-top { font-size: 0.5em; color: #3B3470; letter-spacing: 0.01em; }
.th-logo-name { font-size: 1.2em; color: var(--th); margin-top: -0.04em; letter-spacing: -0.01em; }
.th-logo.line { gap: 0.3em; }
.th-logo.line img { width: 1.35em; height: 1.35em; }
.th-logo.line .th-logo-words { flex-direction: row; align-items: baseline; gap: 0.28em; white-space: nowrap; }
.th-logo.line .th-logo-top, .th-logo.line .th-logo-name { font-size: 1em; margin: 0; }
.th-logo.line .th-logo-top { color: #4B3F9E; }
.th-bar .bar-logo { font-size: 1.25rem; justify-self: start; white-space: nowrap; }
.th-bar .bar-logo .th-logo-name { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; vertical-align: bottom; transition: max-width .45s ease, opacity .35s ease; }
.th-bar .bar-logo.show-name .th-logo-name { max-width: 5em; opacity: 1; }
.th-bar .pl-switch { justify-self: center; position: relative; isolation: isolate; display: flex; gap: 4px; background: rgba(124, 107, 191, 0.08); padding: 4px; border-radius: 999px; }
.th-bar .pl-switch a { line-height: 1.6; padding: 7px 16px; border-radius: 999px; text-decoration: none; font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; font-size: 1rem; color: #5A4FA3; transition: color .25s; }
.th-bar .pl-switch a:hover { background: rgba(255, 255, 255, 0.7); }
.th-bar .pl-switch a[aria-current="page"] { background: #fff; color: var(--c); box-shadow: 0 2px 8px rgba(60, 40, 90, 0.12); }
.th-bar .sw-play { --c: #E2653F; } .th-bar .sw-learn { --c: #2F75C0; } .th-bar .sw-feel { --c: #1F8A80; } .th-bar .sw-move { --c: #D9681F; }
.th-bar .sw-pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(60, 40, 90, 0.12); opacity: 0;
  transition: transform .42s cubic-bezier(.34, 1.45, .55, 1), width .42s cubic-bezier(.34, 1.45, .55, 1), opacity .2s; }
.th-bar .pl-switch.has-pill .sw-pill { opacity: 1; }
.th-bar .pl-switch.has-pill a[aria-current="page"], .th-bar .pl-switch.has-pill a:hover { background: transparent; box-shadow: none; }
.th-bar .pl-switch.has-pill a.sw-on { color: var(--c); }
.th-bar .pl-switch.no-anim .sw-pill { transition: none; }
.th-bar a.gu-btn { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px; text-decoration: none;
  font: 800 0.95rem 'Nunito', sans-serif; color: #5A4FA3; background: rgba(124, 107, 191, 0.08); transition: background .2s; }
.th-bar a.gu-btn:hover { background: rgba(124, 107, 191, 0.16); }
.th-bar .gu-btn svg { width: 22px; height: 22px; transition: transform .6s ease; }
.th-bar .gu-btn:hover svg { transform: rotate(60deg); }
@media (max-width: 860px) { .th-bar .bar-logo .th-logo-name { display: none; } }
@media (max-width: 760px) { .th-bar .gu-btn span { display: none; } .th-bar a.gu-btn { padding: 9px; } }
@media (max-width: 560px) {
  .th-bar { grid-template-columns: auto 1fr auto; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); gap: 8px; }
  .th-bar .bar-logo .th-logo-words { display: none; }
  .th-bar .pl-switch a { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) { .th-bar .sw-pill { transition: none; } }
/* the hero's big logo: "✌️ Tiny Hands / Play", the same family as "Tiny Hands Learn" */
.hero-text h1.th-hero-logo { margin: 0; font-size: clamp(2.6rem, 7vw, 4rem); }
/* on Play's homepage the bar runs the full width (the landing column is 960px wide) */
#landing > .th-bar { width: 100vw; box-sizing: border-box; align-self: center; }

/* Play's intro (prototype): built like the intros of Learn, Feel and Move, so the games start right below */
.play-intro { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(18px, 4vh, 40px) 0 4px; }
.play-intro::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 58%; width: min(720px, 120vw); height: 340px; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 35%, rgba(255, 255, 255, 0) 70%); filter: blur(6px); }
.play-intro .hero-buddy { position: static; translate: none; display: block; width: clamp(120px, 14vw, 170px); height: auto; margin: 0 0 -6px;
  filter: drop-shadow(0 12px 18px rgba(120, 80, 160, 0.22)); animation: heroBob 4s ease-in-out infinite; }
.play-intro h1.th-hero-logo { margin: 0; font-size: clamp(2.4rem, 7vw, 3.6rem); }
.play-intro p { margin: 12px 0 0; font-size: clamp(1rem, 2.2vw, 1.15rem); color: #5E5873; font-weight: 600; }
.play-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0 clamp(18px, 3vh, 28px); padding: 0; list-style: none; }
.play-trust li { font: 800 0.95rem 'Nunito', sans-serif; color: #5A4FA3; display: flex; align-items: center; gap: 7px; }
.play-trust li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none; background: #2E9A5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (prefers-reduced-motion: reduce) { .play-intro .hero-buddy { animation: none; } }

/* Play's banner (prototype): the same banner as the products on Learn, Feel and Move, in Play's coral, with
   Biscuit. "Browse games" scrolls down to the games, "Learn more" opens the story. */
.play-intro { padding-bottom: 0; }
.play-intro .play-trust { margin-bottom: 0; }
.play-banner { position: relative; z-index: 5; box-sizing: border-box; width: min(100%, 860px); display: flex; align-items: center; gap: clamp(16px, 4vw, 36px);
  margin: clamp(16px, 3vw, 28px) 0 clamp(22px, 4vw, 36px); padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 44px); border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #FFB199, #F99A7A 50%, #F4845F); box-shadow: 0 10px 28px rgba(200, 90, 50, 0.28); overflow: hidden; }
.play-banner-art { flex: none; width: clamp(150px, 26vw, 240px); margin: -24px -12px; display: grid; place-items: center; }
.play-banner-art img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(170, 70, 30, 0.35)); animation: heroBob 4s ease-in-out infinite; }
.play-banner-words { flex: 1; min-width: 0; text-align: left; }
.play-banner h2 { margin: 0; font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.05; color: #fff; }
.play-banner p { margin: 10px 0 0; font: 700 clamp(1.05rem, 2.4vw, 1.25rem)/1.5 'Nunito', sans-serif; color: #fff; opacity: 0.95; max-width: 26em; }
.play-banner-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.play-banner-btn { border: 0; cursor: url("../assets/emoji/cursors/hand-point-32.png") 16 4, pointer; font: 900 1.1rem 'Nunito', sans-serif; padding: 12px 30px; border-radius: 999px; background: #fff; color: #E2653F;
  box-shadow: 0 4px 10px rgba(150, 50, 20, 0.2); transition: transform .15s; }
.play-banner-btn:hover { transform: translateY(-2px); }
.play-banner-btn:active { transform: scale(0.97); }
.play-banner-more { border: 0; background: none; padding: 0 0 1px; cursor: url("../assets/emoji/cursors/hand-point-32.png") 16 4, pointer; font: 800 1rem 'Nunito', sans-serif; color: #fff; border-bottom: 2px solid rgba(255, 255, 255, 0.6); }
.play-banner-more::after { content: ' \2192'; }
.play-banner-more:hover { border-color: #fff; }
.play-banner-btn:focus-visible, .play-banner-more:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) {
  .play-banner { flex-direction: column; text-align: center; padding-top: 18px; }
  .play-banner-art { width: 150px; margin: -6px 0 -10px; }
  .play-banner-words { text-align: center; }
  .play-banner-acts { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .play-banner-art img { animation: none; } }
/* "Browse games" (and any link to #games) stops below the sticky bar, not under it */
#landing .games-grid { scroll-margin-top: calc(var(--th-bar-h, 64px) + 20px); }

/* ===== The family footer (Play's homepage and every generated page; Learn, Feel and Move have the same in css/pillars.css) ===== */
footer.tf { display: block; margin-top: 64px; background: #fff; border-top: 1px solid #EEE8FA; padding: 44px clamp(16px, 4vw, 40px) 28px; text-align: left; font-family: 'Nunito', sans-serif; }
/* on Play's homepage the page column is 960px: the footer spans the whole window, like the bar (the page never scrolls sideways) */
#landing > footer.tf { width: 100vw; align-self: center; box-sizing: border-box; margin-top: 72px; }
.tf .tf-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(6, 1fr); gap: 28px 24px; }
.tf .tf-brand .th-logo { font-size: 1.35rem; }
.tf .tf-brand p { margin: 12px 0 0; font-size: 0.95rem; line-height: 1.55; color: #5A5A5A; max-width: 22em; }
.tf h2 { margin: 2px 0 12px; font: 700 1rem 'Fredoka', 'Nunito', sans-serif; color: #3B3470; }
.tf h2 a { color: inherit; text-decoration: none; }
.tf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tf li { font-size: 0.93rem; line-height: 1.35; margin: 0; }
.tf li a { color: #5A4FA3; text-decoration: none; font-weight: 400; }
.tf li:has(> a[hidden]) { display: none; }   /* "Cookie settings" shows only in Europe */
.tf .tf-soon { color: #9A94AE; }
.tf .tf-soon small, .tf .tf-soon-tag { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #B4AEC6; margin-left: 4px; }
.tf .tf-more a { font-weight: 800; }
.tf .tf-more a::after { content: ' \2192'; }
.tf .tf-dad { font-weight: 700; color: #5A4FA3; }
.tf .tf-dad a { color: #E2653F; font-weight: 800; text-decoration: none; }
.tf .tf-dad a.tf-story { color: #5A4FA3; text-decoration: underline; text-decoration-color: rgba(90, 79, 163, 0.35); text-underline-offset: 3px; }
.tf .tf-social { display: flex; gap: 10px; }
.tf .tf-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(124, 107, 191, 0.1); color: #5A4FA3; transition: background .2s, color .2s; }
.tf .tf-social svg { width: 20px; height: 20px; }
.tf .footer-langs, .tf .pg-langs { max-width: 1120px; margin: 28px auto 0; text-align: center; }
.tf .tf-note { max-width: 1120px; margin: 18px auto 0; padding-top: 18px; border-top: 1px solid #F0ECF8; font-size: 0.82rem; color: #9A94AE; text-align: center; }
.tf .tf-note a { color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .tf h2 a:hover, .tf li a:hover { text-decoration: underline; }
  .tf .tf-social a:hover { background: #5A4FA3; color: #fff; }
}
@media (max-width: 1100px) { .tf .tf-in { grid-template-columns: repeat(3, 1fr); } .tf .tf-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tf .tf-in { grid-template-columns: repeat(2, 1fr); } }

/* the brand on its own full-width row: the logo with its line on the left, made-by-a-dad and the socials on the
   right, each kept on one line; the six columns below get the whole width */
.tf .tf-in { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 28px; }
.tf .tf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; padding-bottom: 26px; border-bottom: 1px solid #F0ECF8; }
.tf .tf-brand > .th-logo { grid-column: 1; grid-row: 1; justify-self: start; }
.tf .tf-brand > p:not(.tf-dad):not(.tf-social), .pl-body .tf .tf-brand > p:not(.tf-dad):not(.tf-social) { grid-column: 1; grid-row: 2; margin: 0; max-width: none; }
.tf .tf-brand > .tf-dad, .pl-body .tf .tf-brand > .tf-dad { grid-column: 2; grid-row: 2; justify-self: end; margin: 0; max-width: none; white-space: nowrap; }
.tf .tf-brand > .tf-social, .pl-body .tf .tf-brand > .tf-social { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
@media (max-width: 1100px) { .tf .tf-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tf .tf-brand { grid-template-columns: 1fr; }
  .tf .tf-brand > *, .pl-body .tf .tf-brand > * { grid-column: 1 !important; grid-row: auto !important; justify-self: start !important; white-space: normal !important; }
}
@media (max-width: 560px) { .tf .tf-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== The bar on generated pages (games, guides, About...): the page isn't a 960px column there ===== */
.pg-body > .th-bar { margin: 0; }
@media print { .th-bar, footer.tf { display: none !important; } }

/* Play's homepage FAQ: on a white panel, like the reading on Learn, Feel and Move */
#landing .faq { box-sizing: border-box; width: min(888px, 100%); max-width: none;   /* as wide as the game cards (three 280px cards and two 24px gaps); landing.css caps .faq at 760px */ margin: 40px auto 0; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 24px rgba(90, 70, 140, 0.08); }
@media (max-width: 935px) { #landing .faq { width: min(584px, 100%); } }   /* two cards a row below 936px wide: two 280px cards and a 24px gap */
#landing .faq h2 { margin-top: 0; }
#landing .faq-list dt { margin-top: 0; padding-top: 16px; border-top: 1px solid #F0ECF8; font-size: 1.05rem; color: #3B3470; }
#landing .faq-list dt:first-child { border-top: 0; padding-top: 0; }
#landing .faq-list dd { margin: 6px 0 16px; color: #4A4A4A; font-size: 1rem; }
#landing .faq-list dd:last-child { margin-bottom: 0; }

.tf .tf-dad .inline-emoji { width: 1.05em; height: 1.05em; vertical-align: -0.15em; }

/* ===== Footer layout v3 (Mauro, 29 Oct 2026): the brand stacked on the left (logo, line, made with ❤️ by a dad +
   Donate), the six columns, then one bottom bar: the note on the left, languages and socials on the right ===== */
.tf .tf-brand, .pl-body .tf .tf-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 26px; border-bottom: 1px solid #F0ECF8; }
.tf .tf-brand > *, .pl-body .tf .tf-brand > * { grid-column: auto !important; grid-row: auto !important; justify-self: auto !important; margin: 0; max-width: none; white-space: normal; }
.tf .tf-brand > p:not(.tf-dad), .pl-body .tf .tf-brand > p:not(.tf-dad) { margin-top: 4px; font-size: 0.98rem; color: #5A5A5A; }
.tf .tf-dad, .pl-body .tf .tf-dad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-weight: 700; color: #5A4FA3; }
.tf .tf-dad::before { content: none !important; }
.tf .tf-dad a.tf-story, .pl-body .tf .tf-dad a.tf-story { color: #5A4FA3; text-decoration: none; font-weight: 800; }
.tf .tf-dad a.tf-story:hover { text-decoration: underline; }
.tf .tf-dad a.tf-donate, .pl-body .tf .tf-dad a.tf-donate { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #F4845F; color: #fff; font-weight: 800; font-size: 0.9rem; text-decoration: none; box-shadow: 0 3px 8px rgba(226, 101, 63, 0.25); transition: transform .15s; }
.tf .tf-dad a.tf-donate:hover { transform: translateY(-1px); }
.tf .tf-bottom { max-width: 1120px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid #F0ECF8; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.tf .tf-bottom .tf-note, .pl-body .tf .tf-bottom .tf-note { max-width: none; margin: 0; padding: 0; border: 0; text-align: left; flex: 1 1 320px; font-size: 0.82rem; color: #9A94AE; }
.tf .tf-end { display: flex; align-items: center; gap: 12px; }
.tf .tf-end .tf-social { display: flex; gap: 8px; margin: 0; }
.tf .tf-end .tf-social a { width: 36px; height: 36px; }
.tf .tf-end .footer-langs, .tf .tf-end .pg-langs { position: relative; margin: 0; max-width: none; text-align: left; }
.tf .tf-end .footer-langs-list, .tf .tf-end .pg-langs-list { position: absolute; z-index: 20; right: 0; bottom: calc(100% + 10px); width: min(560px, 86vw); margin: 0; padding: 12px; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(60, 40, 90, 0.18); }
@media (max-width: 560px) { .tf .tf-bottom { flex-direction: column-reverse; align-items: flex-start; } .tf .tf-end .footer-langs-list, .tf .tf-end .pg-langs-list { left: 0; right: auto; } }

/* the feedback page: the form on a white panel */
.pl-body .fb-intro { margin-top: 18px; }
.fb-frame { max-width: 760px; margin: 22px auto 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(90, 70, 140, 0.08); }
.fb-frame iframe { display: block; width: 100%; height: min(680px, 78vh); border: 0; }
.pl-body .fb-alt { text-align: center; margin: 14px 0 0; font-weight: 700; }
.pl-body .fb-alt a { color: #5A4FA3; }
/* the footer's feedback button, beside Donate */
.tf .tf-dad a.tf-fb, .pl-body .tf .tf-dad a.tf-fb { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(124, 107, 191, 0.12); color: #5A4FA3; font-weight: 800; font-size: 0.9rem; text-decoration: none; transition: background .2s; }
.tf .tf-dad a.tf-fb:hover { background: rgba(124, 107, 191, 0.22); }
