/* Homepage title screen: starry purple-to-pink sky, a big centred gold logo,
   a square pixel PLAY button and a row of pixel tiles matching the in-game UI.
   Fits one screen on phones, iPads and desktops. */

body.home2{ background:#2b1550; }
body.home2::before, body.home2 #candy-sky, body[data-page] #candy-sky{ display:none; }

.ts{ position:relative; overflow:hidden; min-height:100vh; min-height:100svh; box-sizing:border-box;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:max(12px, env(safe-area-inset-top)) 16px 28px; text-align:center; border-bottom:0 !important;
  background:radial-gradient(ellipse at 50% 16%, rgba(255,255,255,.38) 0, rgba(255,255,255,0) 44%),
             radial-gradient(circle at 12% 80%, rgba(255,95,162,.5) 0, rgba(255,95,162,0) 40%),
             radial-gradient(circle at 88% 75%, rgba(70,180,255,.45) 0, rgba(70,180,255,0) 42%),
             linear-gradient(180deg, #3b1d78 0%, #7a3dc4 38%, #ff7eb6 78%, #ffc2df 100%) !important; }
.ts::after{ display:none; }
.ts-snow{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; image-rendering:pixelated; }

.ts-inner{ position:relative; z-index:2; width:min(1180px, 100%); display:flex; flex-direction:column;
  align-items:center; gap:18px; }
.ts-head{ display:flex; flex-direction:column; align-items:center; gap:16px; min-width:0; width:100%; }

/* Big gold pixel logo, optically centred. The letterforms sit 18px left of the
   1488px canvas mid (more transparent padding on the right); the Muddle sits on QUEST.
   Logo PNG files are not modified — only scale and position. */
.ts .brand-logo.ts-logo{
  margin:0 auto; width:min(1240px, 94vw); max-width:100%;
  position:relative; left:calc(18 / 1488 * 100%);
}
.ts .brand-logo.ts-logo .bl-wrap,
.ts .brand-logo.ts-logo img{ max-width:100%; }
.ts-logo .bl-wrap{
  display:block; width:100% !important; position:relative; overflow:visible;
  filter:drop-shadow(3px 3px 0 #2a2233);
}
.ts-logo .bl-wrap img{ display:block; width:100%; height:auto; image-rendering:pixelated; }
/* pixel plus-shaped sparkles around the logo (no soft shine sweep) */
.ts-logo .bl-wrap::before{ content:''; position:absolute; inset:-12% -4% -4%; pointer-events:none;
  background:
    linear-gradient(#fff6b0,#fff6b0) 8% 18%/10px 3px no-repeat,
    linear-gradient(#fff6b0,#fff6b0) calc(8% + 3.5px) calc(18% - 3.5px)/3px 10px no-repeat,
    linear-gradient(#ffe066,#ffe066) 92% 12%/12px 3px no-repeat,
    linear-gradient(#ffe066,#ffe066) calc(92% + 4.5px) calc(12% - 4.5px)/3px 12px no-repeat,
    linear-gradient(#fff,#fff) 96% 42%/8px 2px no-repeat,
    linear-gradient(#fff,#fff) calc(96% + 3px) calc(42% - 3px)/2px 8px no-repeat,
    linear-gradient(#fff6b0,#fff6b0) 4% 62%/8px 2px no-repeat,
    linear-gradient(#fff6b0,#fff6b0) calc(4% + 3px) calc(62% - 3px)/2px 8px no-repeat;
  animation:spark 1.8s steps(2, end) infinite; }
@keyframes spark{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }

/* square pixel PLAY, matching in-game action buttons */
.hero-cta{ display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start; margin-top:2px; }
.play-wrap{ position:relative; display:inline-block; overflow:visible; }
.ts .play-btn.mega{ display:inline-flex; align-items:center; gap:.35em; font-size:clamp(2rem, 6vw, 3.2rem); font-weight:900; letter-spacing:.06em;
  padding:.28em 1.25em .32em; border-radius:0 !important; border:5px solid var(--ink) !important; color:#fff;
  text-shadow:2px 2px 0 #0c5a3a; overflow:visible !important;
  background:#2fc79a !important;
  box-shadow:inset -6px -6px 0 #14895f, inset 6px 6px 0 #8ff3d0, 6px 6px 0 var(--ink) !important; }
.ts .play-btn.mega::after{ display:none !important; }
.ts .play-btn.mega:hover{ transform:translate(-2px,-2px); box-shadow:inset -6px -6px 0 #14895f, inset 6px 6px 0 #8ff3d0, 8px 8px 0 var(--ink) !important; }
.ts .play-btn.mega:active{ transform:translate(3px,3px); box-shadow:inset -6px -6px 0 #14895f, 2px 2px 0 var(--ink) !important; }
.mega-ico{ width:0; height:0; border-left:.62em solid #fff; border-top:.38em solid transparent; border-bottom:.38em solid transparent; filter:drop-shadow(0 3px 0 #0c5a3a); }

/* square pixel page tiles */
.home-tiles{ display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:12px; width:100%; max-width:1180px; }
.htile{ --a:#e8335a; --b:#a8173f; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  min-height:108px; padding:10px 6px 8px; border:5px solid var(--ink); border-radius:0; text-decoration:none; color:#fff;
  font-weight:900; font-size:clamp(.78rem, 1.3vw, 1rem); line-height:1.15;
  text-shadow:2px 2px 0 rgba(42,34,51,.55); background:var(--a);
  box-shadow:inset -5px -5px 0 var(--b), inset 5px 5px 0 rgba(255,255,255,.28), 5px 5px 0 var(--ink);
  transition:transform .08s, box-shadow .08s; }
.htile::before{ display:none; }
.htile img.ht-ico{ width:46px; height:46px; image-rendering:pixelated; filter:drop-shadow(2px 2px 0 rgba(42,34,51,.45)); position:relative; }
.htile span{ position:relative; }
.htile:hover, .htile:focus-visible{ transform:translate(-2px,-2px); }
.htile:active{ transform:translate(2px,2px); box-shadow:inset -3px -3px 0 var(--b), 2px 2px 0 var(--ink); }
.htile:focus-visible{ outline:4px solid #fff; outline-offset:3px; }
.t-how{ --a:#2f9be0; --b:#1f6fb3; } .t-mud{ --a:#8e4fd9; --b:#6230a8; } .t-skill{ --a:#f5b81f; --b:#c4860c; }
.t-score{ --a:#f58a2b; --b:#c25f12; } .t-real{ --a:#ff5fa2; --b:#c73577; } .t-teach{ --a:#2fc79a; --b:#1a8a66; }
.t-rate{ --a:#ffc21f; --b:#d18f00; } .t-clips{ --a:#ef5350; --b:#b3261e; }

.ts-note{ margin:2px 0 0; color:#fff; text-shadow:1px 1px 0 rgba(42,34,51,.6); font-size:.85rem !important; max-width:44em;
  background:rgba(42,34,51,.55); border:3px solid #120e1f; border-radius:0; padding:6px 14px; }
.hero-read-wrap{ margin:0; }
.ts .hero-read{ margin:0; background:transparent !important; border:0 !important; box-shadow:none !important; color:#fff !important;
  text-shadow:1px 1px 0 rgba(42,34,51,.6); font-size:.9rem; font-weight:800; text-decoration:underline; text-underline-offset:3px;
  padding:.2em .4em; overflow:visible; border-radius:0 !important; }
.ts .hero-read::after{ display:none !important; }
.ts .hero-read:hover, .ts .hero-read:focus-visible{ transform:none; background:rgba(255,255,255,.15) !important; border-radius:0 !important; }

@media (max-width:979px){
  .home-tiles{ grid-template-columns:repeat(4, minmax(0, 1fr)); max-width:680px; }
  .ts-inner{ max-width:720px; }
}
@media (max-width:560px){
  .ts{ justify-content:flex-start; padding-top:max(14px, env(safe-area-inset-top)); }
  .ts-inner{ gap:12px; }
  .ts .brand-logo.ts-logo{ width:min(100%, 94vw); }
  .home-tiles{ gap:8px; }
  .htile{ min-height:76px; border-width:3px; padding:8px 2px 6px; font-size:.72rem; }
  .htile img.ht-ico{ width:34px; height:34px; }
  .ts .play-btn.mega{ font-size:clamp(1.7rem, 9vw, 2.3rem); padding:.25em 1em; }
}
@media (max-width:360px){
  .home-tiles{ grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; }
  .htile{ font-size:.64rem; }
}

/* short landscape phones: logo + PLAY on the left, tiles on the right */
@media (orientation:landscape) and (max-height:540px){
  .ts{ justify-content:center; padding:6px 12px 8px; min-height:100svh; }
  .ts-inner{ gap:8px 14px; flex-direction:row; flex-wrap:nowrap; justify-content:center; align-items:center; }
  .ts-head{ width:auto; flex:0 1 46%; gap:8px; }
  .home-tiles{ flex:0 1 50%; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; max-width:none; }
  .ts .brand-logo.ts-logo{ width:min(320px, 46vw); }
  .ts .play-btn.mega{ font-size:1.45rem; padding:.16em .85em .18em; border-width:4px !important; box-shadow:inset -4px -4px 0 #14895f, inset 4px 4px 0 #8ff3d0, 4px 4px 0 var(--ink) !important; }
  .htile{ min-height:58px; border-width:3px; font-size:.64rem; padding:5px 2px; }
  .htile img.ht-ico{ width:24px; height:24px; }
  .ts-note, .hero-read-wrap{ display:none; }
}

/* loading intro (once a session, skippable) */
.intro{ position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg, #3b1d78, #ff7eb6); transition:opacity .35s; }
.intro[hidden]{ display:none; } .intro.out{ opacity:0; pointer-events:none; }
.intro-box{ width:min(440px, 86vw); text-align:center; }
.intro-logo{ width:100%; height:auto; image-rendering:pixelated; }
.intro-bar{ height:24px; margin:18px 0 8px; border:4px solid var(--ink); border-radius:0; background:#fff; overflow:hidden; box-shadow:4px 4px 0 var(--ink); }
.intro-fill{ display:block; height:100%; width:0; background:repeating-linear-gradient(45deg, #ff5fa2 0 14px, #ffd6ec 14px 28px); border-radius:0; animation:fill 1.5s ease-out forwards; }
@keyframes fill{ to{ width:100%; } }
.intro-tip{ color:#fff; font-weight:bold; text-shadow:2px 2px 0 rgba(42,34,51,.5); margin:4px 0 12px; }
.intro-skip{ font:inherit; font-weight:bold; background:#fff; color:var(--ink); border:3px solid var(--ink); border-radius:0; padding:4px 16px; box-shadow:3px 3px 0 var(--ink); cursor:pointer; }

/* Muddles page cards stay square and paper-like */
body[data-page="muddles"] .muddle{ border-radius:0; background:#fff; transition:transform .08s; }
body[data-page="muddles"] .muddle:hover{ transform:translate(-2px,-2px); }
body[data-page="muddles"] main, body[data-page="muddles"] .mini-hero, body[data-page="muddles"] footer{ position:relative; z-index:1; }

@media (prefers-reduced-motion: reduce){
  .ts-logo .bl-wrap, .intro-logo, .intro-fill, .ts-logo .bl-wrap::before{ animation:none !important; }
  .ts-logo .bl-wrap::before{ opacity:.8; }
  .intro-fill{ width:100%; }
  .htile:hover, .htile:focus-visible, .ts .play-btn.mega:hover, .ts .play-btn.mega:active{ transform:none; }
  body[data-page="muddles"] .muddle:hover{ transform:none; }
}

/* ---- Inner pages: same starry sky, square pixel panels, Home + Play ---- */
/* Full-page title-screen sky on every public page (twinkling stars come from #ts-snow). */
body.home2,
body[data-page],
body.sky-page{
  background-color:#2b1550 !important;
  background-image:
    radial-gradient(ellipse at 50% 16%, rgba(255,255,255,.38) 0, rgba(255,255,255,0) 44%),
    radial-gradient(circle at 12% 80%, rgba(255,95,162,.5) 0, rgba(255,95,162,0) 40%),
    radial-gradient(circle at 88% 75%, rgba(70,180,255,.45) 0, rgba(70,180,255,0) 42%),
    linear-gradient(180deg, #3b1d78 0%, #7a3dc4 38%, #ff7eb6 78%, #ffc2df 100%) !important;
  background-attachment:fixed !important;
  background-size:auto !important;
  background-position:0 0 !important;
}
/* One continuous sky: the hero no longer paints its own fill, so nothing turns white below the grass. */
body.home2 .ts{
  background:transparent !important;
}
canvas.mq-stars, canvas#ts-snow, body.home2 .ts-snow, body.sky-page .ts-snow{
  position:fixed !important; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:0; image-rendering:pixelated;
}
body[data-page]:not([data-page="home"]) .mini-hero,
body[data-page]:not([data-page="home"]) .jump,
body[data-page]:not([data-page="home"]) main,
body[data-page]:not([data-page="home"]) footer,
body[data-page]:not([data-page="home"]) .bar{ position:relative; z-index:1; }
body[data-page]:not([data-page="home"]) .topnav{ z-index:60; }

body[data-page] .mini-hero{
  background:transparent; border-bottom:0; flex-direction:column; gap:10px; padding:18px 16px 22px; text-align:center;
}
body[data-page] .mini-hero .tag{
  margin:0; font-weight:900; font-size:clamp(1.5rem, 4vw, 2.4rem); letter-spacing:.03em;
  color:#fff6c8; -webkit-text-fill-color:#fff6c8;
  -webkit-text-stroke:.06em var(--ink); paint-order:stroke fill;
  background-image:none !important; background-clip:border-box !important; -webkit-background-clip:border-box !important;
  text-shadow:0 3px 0 var(--ink);
}
body[data-page] .mh-cta{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:0; }
.home-btn, body[data-page] .home-btn{
  display:inline-flex; align-items:center; justify-content:center; font:inherit; font-weight:900; font-size:1.15rem;
  letter-spacing:.03em; text-decoration:none; color:var(--ink);
  padding:.35em 1.15em; border-radius:0; border:4px solid var(--ink);
  background:#ffd23f;
  box-shadow:inset -4px -4px 0 #c4860c, inset 4px 4px 0 #fff6c8, 4px 4px 0 var(--ink);
  text-shadow:none;
}
.home-btn:hover, body[data-page] .home-btn:hover{ transform:translate(-2px,-2px); }
.home-btn:active, body[data-page] .home-btn:active{ transform:translate(2px,2px); box-shadow:inset -2px -2px 0 #c4860c, 2px 2px 0 var(--ink); }

body[data-page] .card,
body[data-page="home"] .card,
body[data-page="home"] .muddle,
body[data-page="home"] .hero-text{
  border-radius:0 !important;
  background:var(--paper);
  box-shadow:8px 8px 0 rgba(42,34,51,.85);
}
body[data-page="home"] main > .card::before{ display:none; }
body[data-page] .play-btn, body[data-page] .more-btn, body[data-page] .read-btn,
body[data-page] .rv-form button[type=submit]{
  border-radius:0 !important;
  background:var(--blue);
  box-shadow:inset -4px -4px 0 #2462b0, inset 4px 4px 0 #7fd0ff, 4px 4px 0 var(--ink);
}
body[data-page] .play-btn, body[data-page]:not([data-page="home"]) .play-btn{
  background:#2fc79a;
  box-shadow:inset -4px -4px 0 #14895f, inset 4px 4px 0 #8ff3d0, 4px 4px 0 var(--ink);
}
body[data-page] .play-btn::after, body[data-page] .more-btn::after{ display:none !important; }
body[data-page] .what-muddle, body[data-page] .skill-ways li, body[data-page] .skill-chips li,
body[data-page] .rl-grid li, body[data-page] .vstep, body[data-page] .inside li, body[data-page] .steps3 .step{
  border-radius:0 !important;
}
body[data-page] .num, body[data-page] .clip-btn{ border-radius:0 !important; }

@media (prefers-reduced-motion: reduce){
  .home-btn:hover, body[data-page] .home-btn:hover{ transform:none; }
}
@media print{
  body[data-page]{ background:#fff !important; }
  body[data-page]::before, #candy-sky{ display:none !important; }
}

/* ---- Codedex-style home (slim nav, hero + features + news) ---- */
body.home2{ /* sky comes from the shared body[data-page] / body.home2 rule above */ }
body.home2 .topnav{ position:sticky; top:0; }
body.home2 .ts{
  min-height:0; justify-content:center; align-items:stretch;
  padding:28px 20px 48px; text-align:left; border-bottom:0 !important;
  background:radial-gradient(ellipse at 50% 16%, rgba(255,255,255,.38) 0, rgba(255,255,255,0) 44%),
             radial-gradient(circle at 12% 80%, rgba(255,95,162,.5) 0, rgba(255,95,162,0) 40%),
             radial-gradient(circle at 88% 75%, rgba(70,180,255,.45) 0, rgba(70,180,255,0) 42%),
             linear-gradient(180deg, #3b1d78 0%, #7a3dc4 42%, #ff7eb6 82%, #ffc2df 100%) !important;
}
body.home2 .ts-inner{
  width:min(1100px, 100%); margin:0 auto; display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px, 1.05fr);
  gap:28px 40px; align-items:center; text-align:left;
}
.hero-copy{ position:relative; z-index:2; color:#fff; }
.hero-copy h1{ margin:0 0 14px; font-size:clamp(2rem, 5vw, 3.35rem); font-weight:900; line-height:1.12;
  letter-spacing:-.02em; color:#fff; text-shadow:3px 3px 0 #2a1550; }
.hero-sub{ margin:0 0 22px; font-size:clamp(1rem, 2vw, 1.2rem); font-weight:700; line-height:1.45;
  max-width:26em; color:#fff; text-shadow:1px 1px 0 rgba(42,21,80,.55); }
body.home2 .hero-cta{ display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-start; margin:0; }
body.home2 .ts .play-btn.mega{ font-size:clamp(1.15rem, 2.4vw, 1.45rem); padding:.45em 1.1em .5em; letter-spacing:.04em; }
.how-btn{ display:inline-flex; align-items:center; justify-content:center; font:inherit; font-weight:900; font-size:clamp(1.05rem, 2vw, 1.25rem);
  text-decoration:none; color:#fff; background:transparent; border:4px solid #fff; border-radius:0;
  padding:.42em 1.05em; box-shadow:4px 4px 0 #2a1550; text-shadow:1px 1px 0 #2a1550; }
.how-btn:hover{ transform:translate(-2px,-2px); }
.how-btn:active{ transform:translate(2px,2px); box-shadow:2px 2px 0 #2a1550; }
.hero-scene-wrap{ position:relative; z-index:2; display:flex; justify-content:center; }
.hero-scene{ width:min(100%, 520px); height:auto; image-rendering:pixelated; image-rendering:crisp-edges;
  background:transparent; display:block; }

/* feature cards: square, sit over the pink fade */
#features.features{ width:min(1100px, calc(100% - 32px)); margin:-36px auto 10px; position:relative; z-index:3;
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; }
.feat-card{ display:flex; align-items:center; gap:14px; min-height:92px; padding:14px 18px;
  background:#fff; color:#2a2233; text-decoration:none; font-weight:900; font-size:clamp(1.05rem, 2vw, 1.4rem);
  border:4px solid #2a2233; border-radius:0; box-shadow:6px 6px 0 #2a2233; }
.feat-card:hover{ transform:translate(-2px,-2px); }
.feat-card:active{ transform:translate(2px,2px); box-shadow:3px 3px 0 #2a2233; }
.feat-ico{ width:48px; height:48px; flex:none; display:block; image-rendering:pixelated; }
.feat-ico canvas, .feat-ico img{ width:48px; height:48px; image-rendering:pixelated; display:block; }
.feat-lbl{ line-height:1.15; }

/* News from Muddle Primary School */
.news-block{ width:min(1100px, calc(100% - 32px)); margin:28px auto 48px; position:relative; }
.news-block h1, .news-block h2{ margin:0 0 16px; font-size:clamp(1.6rem, 3.5vw, 2.2rem); font-weight:900; color:#2a2233; }
.news-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.news-card{ display:grid; grid-template-columns:minmax(140px, 260px) minmax(0, 1fr); gap:0; background:#fff;
  border:4px solid #2a2233; border-radius:0; box-shadow:6px 6px 0 #2a2233; text-decoration:none; color:#2a2233; overflow:hidden; }
.news-card:hover{ transform:translate(-2px,-2px); }
.news-card img{ width:100%; height:100%; object-fit:cover; object-position:center; image-rendering:pixelated; display:block; background:#3b1d78; }
.news-body{ padding:16px 18px 14px; display:flex; flex-direction:column; gap:6px; }
.news-body h2, .news-body h3{ margin:0; font-size:clamp(1.15rem, 2vw, 1.45rem); font-weight:900; }
.news-body p{ margin:0; font-weight:700; line-height:1.4; }
.news-tag{ display:inline-block; align-self:flex-start; margin:0; padding:3px 8px; font-size:.8rem; font-weight:900;
  border:3px solid #2a2233; border-radius:0; background:#ffe066; color:#2a2233; }
.tag-soon{ background:#ffe066; }
.tag-year{ background:#c9b6ff; }
.tag-secret{ background:#ffb347; }
.tag-dev{ background:#9ad0ff; }
.news-pin{ display:inline-block; align-self:flex-start; margin:0 8px 0 0; padding:3px 8px; font-size:.8rem; font-weight:900;
  background:#2a1a3a; color:#ffe066; border:2px solid #2a2233; box-shadow:2px 2px 0 #2a2233; }
.read-more{ margin-top:6px; font-weight:900; text-decoration:underline; text-underline-offset:3px; color:#2a2233; }
body.home2 .news-block .read-btn, .post .read-btn, .news-block .read-btn{ position:absolute; top:0; right:0; }

/* news article */
article.post{ width:min(800px, 100%); margin:0 auto; }
article.post h1{ margin:.2em 0 .5em; font-size:clamp(1.6rem, 3.5vw, 2.3rem); }
article.post p{ font-weight:700; line-height:1.5; }
.post-fig{ margin:18px 0; border:4px solid #2a2233; box-shadow:6px 6px 0 #2a2233; background:#fff; }
.post-fig img{ display:block; width:100%; height:auto; image-rendering:pixelated; }
.post-fig figcaption{ padding:8px 12px; font-size:.9rem; font-weight:700; border-top:3px solid #2a2233; }

@media (max-width:800px){
  body.home2 .ts-inner{ grid-template-columns:1fr; gap:20px; text-align:center; }
  .hero-copy{ text-align:center; }
  .hero-sub{ margin-left:auto; margin-right:auto; }
  body.home2 .hero-cta{ justify-content:center; }
  #features.features{ grid-template-columns:1fr; margin-top:-20px; }
  .news-card{ grid-template-columns:1fr; }
  .news-card img{ height:180px; }
}
@media (max-width:560px){
  body.home2 .ts{ padding:18px 14px 32px; }
  .feat-card{ min-height:72px; padding:12px 14px; font-size:1.1rem; }
  .feat-ico, .feat-ico canvas, .feat-ico img{ width:40px; height:40px; }
}
@media (prefers-reduced-motion: reduce){
  .how-btn:hover, .feat-card:hover, .news-card:hover{ transform:none; }
}

/* ---- Approved home hero: stacked logo, waving Muddle, grass + hill, picture news ---- */
body.home2{ /* page sky is set in the later home2 + shared sky rules */ }
body.home2 .ts{
  min-height:0; justify-content:flex-end; align-items:stretch; text-align:center;
  padding:32px 20px 0; border-bottom:0 !important;
  background:radial-gradient(ellipse at 50% 12%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 42%),
             linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 86%, #f7b7d0 100%) !important;
  display:flex; flex-direction:column;
}
body.home2 .ts-inner{
  width:min(900px, 100%); margin:0 auto; display:flex; flex-direction:column;
  align-items:center; text-align:center; gap:14px; position:relative; z-index:2;
  padding:8px 12px 18px; grid-template-columns:none;
}
.hero-mark{ position:relative; display:flex; justify-content:center; width:min(560px, 92%); margin:8px auto 0; padding-top:5rem; }
.hero-wordmark{ margin:0; line-height:0; position:relative; z-index:2; }
.hero-wordmark img{ width:100%; height:auto; display:block; image-rendering:pixelated; image-rendering:crisp-edges;
  filter:drop-shadow(3px 3px 0 #2a1550); }
/* Cropped logo-muddle art peeks ABOVE the top edge of the wordmark, never covering letters. */
.hero-muddle-wrap{
  position:absolute; left:50%; top:0; width:7.2rem; height:4.8rem; overflow:hidden;
  pointer-events:none; z-index:3; transform:translateX(-50%); transform-origin:50% 100%;
  animation:mudWave 2.6s ease-in-out infinite;
}
.hero-muddle{ position:absolute; width:calc(1488 / 320 * 100%); height:auto; left:calc(-760 / 320 * 100%); top:0;
  image-rendering:pixelated; image-rendering:crisp-edges; display:block; }
@keyframes mudWave{
  0%,100%{ transform:translateX(-50%) translateY(0) rotate(-6deg); }
  40%{ transform:translateX(-50%) translateY(-8px) rotate(8deg); }
  70%{ transform:translateX(-50%) translateY(-3px) rotate(-3deg); }
}
.hero-tag{ margin:0; color:#fff; font-family:var(--mq-font), Nunito, sans-serif; font-weight:800;
  font-size:clamp(1.05rem, 2.4vw, 1.45rem); text-shadow:1px 1px 0 rgba(42,21,80,.55); max-width:22em; }
body.home2 .ts .play-btn.mega{ font-size:clamp(1.35rem, 3vw, 1.8rem); padding:.4em 1.25em .45em; min-height:50px;
  letter-spacing:.06em; border-radius:0 !important; margin:2px auto 6px; }
.hero-ground{ width:100%; height:56px; position:relative; z-index:1; display:block; }
.hero-ground canvas{ width:100%; height:100%; display:block; image-rendering:pixelated; image-rendering:crisp-edges; }

.news-block{ width:min(960px, calc(100% - 32px)); margin:28px auto 48px; text-align:center; }
.news-block h2{ margin:0 0 20px; color:#2a2233; }
.news-list.news-pics{ list-style:none; margin:0 auto; padding:0; display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; max-width:860px; justify-items:center; }
.news-card.news-pic{ display:block; width:100%; max-width:240px; aspect-ratio:1; padding:0; overflow:hidden;
  background:#fff; border:4px solid #2a2233; border-radius:0; box-shadow:6px 6px 0 #2a2233; text-decoration:none; }
.news-card.news-pic:hover{ transform:translate(-2px,-2px); }
.news-shot{ position:relative; display:block; width:100%; height:100%; overflow:hidden; }
.news-shot img{ width:100%; height:100%; object-fit:cover; object-position:center; image-rendering:pixelated; display:block; }
.news-snow, canvas.news-snow{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none;
  image-rendering:pixelated; display:block; }
.news-snow-fig{ position:relative; }
.news-snow-fig .news-shot{ aspect-ratio:3/2; }

@media (max-width:640px){
  .news-list.news-pics{ grid-template-columns:1fr; }
  .news-card.news-pic{ max-width:260px; }
}
@media (max-height:520px) and (orientation:landscape){
  body.home2 .ts{ padding:10px 16px 0; }
  body.home2 .ts-inner{ gap:6px; padding:0 8px 8px; }
  .hero-mark{ width:min(280px, 46vw); margin:0 auto; padding-top:3rem; }
  .hero-muddle-wrap{ width:4.2rem; height:2.8rem; }
  .hero-tag{ font-size:1rem; }
  body.home2 .ts .play-btn.mega{ font-size:1.35rem; padding:.28em 1em; min-height:50px; }
  .hero-ground{ height:28px; }
}
@media (prefers-reduced-motion: reduce){
  .hero-muddle-wrap{ animation:none; transform:translateX(-50%); }
  .news-card.news-pic:hover{ transform:none; }
}



/* Home: stacked hero fills the viewport (sky, logo, waving Muddle, PLAY, grass + hill), then the footer. */
body.home2{
  background-color:#3b1d78 !important;
  background-image:
    radial-gradient(ellipse at 50% 12%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 86%, #f7b7d0 100%) !important;
  background-attachment:fixed !important;
}
body.home2 .ts{
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 86%, #f7b7d0 100%) !important;
  box-sizing:border-box;
  min-height:calc(100svh - 58px);
  min-height:calc(100dvh - 58px);
  height:calc(100svh - 58px);
  height:calc(100dvh - 58px);
  max-height:calc(100svh - 58px);
  max-height:calc(100dvh - 58px);
  padding:16px 20px 0;
  overflow:hidden;
  border-bottom:0 !important;
  display:flex; flex-direction:column; justify-content:flex-end; align-items:stretch; text-align:center;
}
body.home2 .ts-inner{
  flex:1 1 auto;
  width:min(900px, 100%); margin:0 auto;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; gap:14px; position:relative; z-index:2;
  padding:8px 12px 18px; grid-template-columns:none;
}
body.home2 .hero-ground,
.hero-ground{
  display:block !important;
  width:100%; height:56px; position:relative; z-index:1; flex:0 0 auto;
}
body.home2 .ts-snow{
  position:fixed !important; inset:0; width:100%; height:100%; z-index:0;
  pointer-events:none; image-rendering:pixelated;
}
body.home2 footer.site-foot{
  background:rgba(18,10,32,.55); border-top:4px solid #2a1550; color:#fff6e8;
}
body.home2 .foot-note, body.home2 .copy{ color:#fff6e8; }
body.home2 a.mq-ver, body.home2 .mq-ver{ color:#fff6b0; text-shadow:1px 1px 0 #2a1550; }

@media (max-width:640px){
  body.home2 .ts{ padding:10px 16px 0; min-height:calc(100svh - 52px); min-height:calc(100dvh - 52px); }
  body.home2 .ts-inner{ gap:8px; padding:0 8px 10px; }
  body.home2 .hero-ground, .hero-ground{ height:36px; }
}
@media (max-height:520px) and (orientation:landscape){
  body.home2 .ts{ padding:8px 16px 0; min-height:calc(100svh - 48px); min-height:calc(100dvh - 48px); }
  body.home2 .hero-ground, .hero-ground{ height:28px; display:block !important; }
}

/* Other public pages (news index, changelog, strategies): full-page starry sky and long news rows */
body.sky-page{
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255,255,255,.32) 0, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 100%) !important;
  background-attachment: fixed !important;
  background-color: #3b1d78 !important;
}
body.sky-page .ts-snow{
  position:fixed; inset:0; width:100%; height:100%; z-index:0;
  pointer-events:none; image-rendering:pixelated;
}
body.sky-page .topnav{ position:sticky; top:0; z-index:60; }
body.sky-page main, body.sky-page footer, body.sky-page .mini-hero{
  position:relative; z-index:1;
}
body.sky-page .news-block{
  width:min(860px, calc(100% - 32px)); margin:8px auto 56px; text-align:left;
}
body.sky-page .news-block h1, body.sky-page .news-block h2{
  color:#fff; text-shadow:2px 2px 0 #2a1550; text-align:center; margin:0 0 20px;
}
body.sky-page .news-list,
.news-list{
  list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px;
  grid-template-columns:none;
}
body.sky-page .news-card,
.news-card.news-story{
  display:grid; grid-template-columns:minmax(140px, 240px) minmax(0, 1fr); gap:0;
  width:100%; max-width:none; aspect-ratio:auto;
  background:#fffaf4; color:#2a2233; text-decoration:none; overflow:hidden;
  border:4px solid #2a2233; border-radius:0; box-shadow:6px 6px 0 #2a1550;
}
body.sky-page .news-card:hover,
.news-card.news-story:hover{ transform:translate(-2px,-2px); }
body.sky-page .news-shot,
.news-card.news-story .news-shot{
  position:relative; display:block; width:100%; height:100%; min-height:140px; overflow:hidden;
  background:#3b1d78;
}
body.sky-page .news-shot img,
.news-card.news-story .news-shot img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  image-rendering:pixelated; display:block;
}
body.sky-page .news-body,
.news-card.news-story .news-body{
  padding:16px 18px 14px; display:flex; flex-direction:column; gap:6px; justify-content:center;
  text-align:left;
}
.news-card .news-title, .news-body .news-title, .news-body h2, .news-body h3{
  margin:0; font-size:clamp(1.15rem, 2vw, 1.45rem); font-weight:900; color:#2a2233; display:block;
}
.news-card .news-preview, .news-body .news-preview, .news-body p{
  margin:0; font-weight:700; line-height:1.4; color:#2a2233;
}
.news-tag{ display:inline-block; align-self:flex-start; margin:0; padding:3px 8px; font-size:.8rem; font-weight:900;
  border:3px solid #2a2233; border-radius:0; background:#ffe066; color:#2a2233; }
.read-more{ margin-top:6px; font-weight:900; text-decoration:underline; text-underline-offset:3px; color:#2a2233; }
body.sky-page .news-list.news-pics{ display:flex; flex-direction:column; }
body.sky-page .news-card.news-pic{
  display:grid; max-width:none; aspect-ratio:auto; width:100%;
}

/* News index: filters + search on the sky */
.news-tools{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 18px; }
.news-filters{ display:flex; flex-wrap:wrap; gap:8px; }
.news-filters button, .news-filters a{
  font:inherit; font-weight:900; font-size:.85rem; padding:4px 10px; cursor:pointer;
  border:3px solid #2a2233; border-radius:0; background:#fffaf4; color:#2a2233;
  box-shadow:3px 3px 0 #2a1550; text-decoration:none;
}
.news-filters button.on, .news-filters a.on, .news-filters button[aria-pressed="true"]{
  background:#ffe066;
}
.news-search{ flex:1 1 180px; min-width:160px; }
.news-search input{
  font:inherit; font-weight:700; width:100%; box-sizing:border-box;
  border:3px solid #2a2233; border-radius:0; padding:6px 10px; background:#fffaf4; color:#2a2233;
  box-shadow:3px 3px 0 #2a1550;
}
#news-empty{ color:#fff; font-weight:800; text-align:center; text-shadow:1px 1px 0 #2a1550; }
body.sky-page .mini-hero{ background:none !important; color:#fff; }
body.sky-page .mini-hero .tag{ color:#fff; text-shadow:2px 2px 0 #2a1550; }
body.sky-page footer.site-foot{
  background:rgba(18,10,32,.55); border-top:4px solid #2a1550;
}

@media (max-width:640px){
  body.sky-page .news-card, .news-card.news-story{
    grid-template-columns:1fr;
  }
  body.sky-page .news-shot, .news-card.news-story .news-shot{
    min-height:160px; aspect-ratio:16/9;
  }
}
@media (prefers-reduced-motion: reduce){
  body.sky-page .news-card:hover, .news-card.news-story:hover{ transform:none; }
}


/* Build number (plain numbers, no v) and What's new */
.mq-ver-line{ margin:12px auto 0; text-align:center; }
a.mq-ver, .mq-ver{ font-family:var(--mq-font), Nunito, sans-serif; font-weight:800;
  font-size:.8rem; letter-spacing:.03em; color:#fff; text-decoration:none;
  text-shadow:1px 1px 0 #2a1550; }
a.mq-ver:hover, a.mq-ver:focus-visible{ text-decoration:underline; text-underline-offset:3px; }
body:not(.home2):not(.sky-page) a.mq-ver{ color:#2a2233; text-shadow:none; }
.log-page{ width:min(760px, calc(100% - 32px)); margin:8px auto 56px; }
.log-page h1{ color:#fff; text-shadow:2px 2px 0 #2a1550; text-align:center; }
.log-ver{ background:#fffaf4; color:#2a2233; border:4px solid #2a2233; box-shadow:6px 6px 0 #2a1550;
  border-radius:0; padding:16px 18px; margin:0 0 18px; }
.log-ver h2{ margin:0 0 4px; font-size:1.35rem; font-weight:900; }
.log-ver .log-date{ margin:0 0 10px; font-weight:800; opacity:.8; }
.log-ver ul{ margin:0; padding:0 0 0 1.1em; }
.log-ver li{ font-weight:700; line-height:1.45; margin:0 0 6px; }


/* Home hero: four chunky candy tiles between PLAY and a lower grass strip. */
body.home2 .home-tiles{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  width:min(640px, 100%);
  margin:6px auto 10px;
  position:relative; z-index:2;
  flex:0 0 auto;
}
body.home2 .htile{
  --a:#ff8fc0; --b:#e8335a; --c:#a8173f;
  font-family:var(--mq-font), Nunito, sans-serif;
  min-height:96px; padding:8px 6px 6px;
  border:5px solid var(--ink); border-radius:0;
  color:#fff; text-decoration:none;
  font-weight:900; font-size:clamp(.78rem, 1.4vw, 1rem); line-height:1.15;
  text-shadow:2px 2px 0 rgba(42,34,51,.55);
  background:linear-gradient(180deg, var(--a) 0%, var(--b) 55%, var(--c) 100%);
  box-shadow:inset 4px 4px 0 rgba(255,255,255,.32), inset -5px -5px 0 rgba(0,0,0,.22), 5px 5px 0 var(--ink);
}
body.home2 .htile::before{ display:none; }
body.home2 .t-blog{ --a:#9fe0ff; --b:#2f9be0; --c:#1f6fb3; }
body.home2 .t-mud{ --a:#d8b8ff; --b:#8e4fd9; --c:#6230a8; }
body.home2 .t-skill{ --a:#fff19a; --b:#f5b81f; --c:#c4860c; }
body.home2 .t-score{ --a:#ffd68f; --b:#f58a2b; --c:#c25f12; }
/* Push the grass and hill lower, leaving a clear gap under the tiles. */
body.home2 .ts{ justify-content:flex-end; }
body.home2 .ts-inner{ padding-bottom:18px; }
body.home2 .hero-ground, body.home2 .hero-ground.hero-ground{
  display:block !important;
  height:56px;
  margin-top:0;
  flex:0 0 56px;
}

@media (max-width:640px){
  body.home2 .home-tiles{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:min(340px, 94%);
    gap:10px;
    margin:4px auto 8px;
  }
  body.home2 .htile{ min-height:84px; border-width:4px; font-size:.85rem; }
  body.home2 .htile img.ht-ico{ width:36px; height:36px; }
  body.home2 .ts-inner{ padding-bottom:12px; }
  body.home2 .hero-ground, body.home2 .hero-ground.hero-ground{ height:48px; flex-basis:48px; }
}
@media (min-width:641px) and (max-width:1024px){
  body.home2 .home-tiles{ width:min(680px, 100%); gap:12px; }
  body.home2 .htile{ min-height:90px; }
}
@media (max-height:520px) and (orientation:landscape){
  body.home2 .home-tiles{ grid-template-columns:repeat(4, minmax(0, 1fr)); width:min(560px, 100%); gap:6px; margin:2px auto 4px; }
  body.home2 .htile{ min-height:56px; border-width:3px; font-size:.68rem; padding:4px 2px; }
  body.home2 .htile img.ht-ico{ width:24px; height:24px; }
  body.home2 .hero-ground, body.home2 .hero-ground.hero-ground{ height:28px; flex-basis:28px; display:block !important; }
  body.home2 .ts-inner{ padding-bottom:6px; flex-direction:column; }
}
@media (prefers-reduced-motion: reduce){
  body.home2 .htile:hover, body.home2 .htile:focus-visible{ transform:none; }
}

.post-sign{ margin-top:1.2em; font-weight:800; }

/* Cream page heading under the logo (keep this; no second purple/pink title box). */
body[data-page] .mini-hero .tag,
body.sky-page .mini-hero .tag{
  color:#fff6c8 !important; -webkit-text-fill-color:#fff6c8 !important;
  -webkit-text-stroke:.06em var(--ink); paint-order:stroke fill;
  background-image:none !important; background-clip:border-box !important; -webkit-background-clip:border-box !important;
  text-shadow:0 3px 0 var(--ink);
  font-weight:900; font-size:clamp(1.5rem, 4vw, 2.4rem); letter-spacing:.03em;
}
body.sky-page footer.site-foot,
body[data-page] footer.site-foot{
  background:rgba(18,10,32,.55) !important; border-top:4px solid #2a1550; color:#fff6e8;
}
body.sky-page .copy, body.sky-page .foot-note,
body[data-page] .copy, body[data-page] .foot-note{ color:#fff6e8; }
body.sky-page a.mq-ver, body[data-page] a.mq-ver{ color:#fff6b0; text-shadow:1px 1px 0 #2a1550; }

/* How to Play: short, scannable square pixel cards with menu icons */
.htp-guide{
  width:min(1080px, calc(100% - 32px)); margin:8px auto 28px;
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px;
}
.htp-card{
  margin:0; padding:16px 16px 18px; text-align:left;
  background:#fffaf0; color:var(--ink);
  border:4px solid var(--ink); border-radius:0;
  box-shadow:6px 6px 0 rgba(42,34,51,.85);
}
.htp-card h2{
  margin:.15em 0 .35em; font-size:1.15rem; font-weight:900; color:var(--ink);
  background-image:none !important; -webkit-text-fill-color:var(--ink) !important;
  -webkit-text-stroke:0 !important; text-shadow:none !important;
}
.htp-card p{ margin:0; font-weight:700; line-height:1.45; }
.htp-ico{ width:48px; height:48px; display:grid; place-items:center;
  border:3px solid var(--ink); background:#3b1d78; margin:0 0 8px; }
.htp-ico img.htp-mi, .htp-mi{ width:36px; height:36px; image-rendering:pixelated; display:block; }
@media (max-width:700px){
  .htp-guide{ grid-template-columns:1fr; width:min(640px, calc(100% - 24px)); gap:12px; }
}
@media print{
  .htp-card{ background:#fff; box-shadow:none; }
}

.htp-mini{ display:inline-flex; align-items:center; justify-content:center; width:1.4em; height:1.4em; margin-right:.35em; vertical-align:middle; }
.htp-mini img, .htp-mini .htp-mi{ width:1.35em; height:1.35em; image-rendering:pixelated; display:block; }
.inside li{ display:flex; align-items:center; }


/* 1.2.0 blog icons: starry square sprite tiles, no plain white card bodies. */
.tag-events{ background:#b8e08a; }
body.sky-page .news-card,
.news-card.news-story,
.news-card{
  background:rgba(18,10,32,.78) !important;
  color:#fff6c8;
}
body.sky-page .news-body,
.news-card.news-story .news-body,
.news-body{
  background:transparent;
  color:#fff6c8;
}
.news-card .news-title, .news-body .news-title, .news-body h2, .news-body h3,
.news-card .news-preview, .news-body .news-preview, .news-body p,
.read-more{
  color:#fff6c8;
}
body.sky-page .news-shot,
.news-card.news-story .news-shot,
.news-shot.news-ico-shot{
  aspect-ratio:1 !important;
  min-height:0;
  height:auto;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#2b1550;
}
canvas.news-ico, .news-shot canvas.news-ico{
  width:100%;
  height:100%;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  display:block;
}
@media (max-width:640px){
  body.sky-page .news-shot, .news-card.news-story .news-shot, .news-shot.news-ico-shot{
    aspect-ratio:1 !important;
    min-height:0;
  }
}
body.sky-page article.post,
body.sky-page article.card.post,
article.card.post{
  background:rgba(18,10,32,.78);
  color:#fff6e8;
  border:4px solid #2a2233;
  border-radius:0;
  box-shadow:8px 8px 0 #2a1550;
}
body.sky-page article.post p,
body.sky-page article.post li,
article.card.post p{
  color:#fff6e8;
}
body.sky-page article.post a,
article.card.post a{ color:#ffe066; }
.post-fig.icon-fig, body.sky-page .post-fig.icon-fig{
  width:min(280px, 70vw);
  margin:18px auto;
  background:transparent;
  border:4px solid #2a2233;
  box-shadow:6px 6px 0 #2a1550;
}
.post-fig.icon-fig .news-shot,
.post-fig.icon-fig canvas.news-ico{
  aspect-ratio:1;
  width:100%;
  height:auto;
  display:block;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  background:#2b1550;
}
.post-fig.icon-fig figcaption{
  padding:8px 12px;
  font-size:.9rem;
  font-weight:700;
  border-top:3px solid #2a2233;
  background:rgba(18,10,32,.86);
  color:#fff6c8;
}
body.sky-page .post-sign{ color:#fff6c8; }
.mini-hero h1.tag{ margin:0; font:inherit; }
#post-soon{ max-width:640px; margin:0 auto; padding:8px 16px 32px; color:#fff6e8; text-align:center; }
#post-soon p{ font-weight:700; }


/* Restore the live 1.1.0 home hero (commit 836d614 / deploy 479dfd28).
   Same stacked logo, Muddle position, grass and layout. No candy tiles.
   Footer sits directly under the grass. Inner sky-pages are unchanged. */
body.home2{
  background:#ffe6f2 !important;
  background-image:none !important;
  background-attachment:scroll !important;
}
body.home2 .ts{
  background:radial-gradient(ellipse at 50% 12%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 42%),
             linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 86%, #f7b7d0 100%) !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  justify-content:flex-end !important;
  align-items:stretch !important;
  text-align:center !important;
  padding:32px 20px 0 !important;
  overflow:hidden;
  border-bottom:0 !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box;
}
body.home2 .ts-inner{
  flex:none !important;
  width:min(900px, 100%) !important;
  margin:0 auto !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  align-items:center !important;
  text-align:center !important;
  gap:14px !important;
  position:relative !important;
  z-index:2;
  padding:8px 12px 18px !important;
  grid-template-columns:none !important;
}
body.home2 .hero-mark{
  position:relative; display:flex; justify-content:center;
  width:min(560px, 92%); margin:8px auto 0; padding-top:0 !important;
}
body.home2 .hero-wordmark{ margin:0; line-height:0; position:relative; z-index:2; }
body.home2 .hero-muddle-wrap{
  position:absolute; left:52%; bottom:68%; top:auto !important;
  width:7.6rem !important; height:4.4rem !important; overflow:hidden;
  pointer-events:none; z-index:3; transform:translateX(-18%); transform-origin:50% 90%;
  animation:mudWave110 2.6s ease-in-out infinite;
}
body.home2 .hero-muddle{ position:absolute; width:calc(1488 / 320 * 100%); height:auto; left:calc(-760 / 320 * 100%); top:0;
  image-rendering:pixelated; image-rendering:crisp-edges; display:block; }
@keyframes mudWave110{
  0%,100%{ transform:translateX(-18%) translateY(0) rotate(-5deg); }
  40%{ transform:translateX(-18%) translateY(-8px) rotate(7deg); }
  70%{ transform:translateX(-18%) translateY(-2px) rotate(-3deg); }
}
body.home2 .hero-tag{ margin:0; color:#fff; font-family:var(--mq-font), Nunito, sans-serif; font-weight:800;
  font-size:clamp(1.05rem, 2.4vw, 1.45rem); text-shadow:1px 1px 0 rgba(42,21,80,.55); max-width:22em; }
body.home2 .ts .play-btn.mega{ font-size:clamp(1.35rem, 3vw, 1.8rem) !important; padding:.4em 1.25em .45em !important; min-height:50px;
  letter-spacing:.06em; border-radius:0 !important; margin:2px auto 6px; }
body.home2 .hero-ground, body.home2 .hero-ground.hero-ground{
  display:block !important; width:100%; height:56px !important; flex:0 0 56px !important;
  position:relative; z-index:1; margin-top:0;
}
body.home2 canvas#ts-snow, body.home2 .ts-snow{
  position:absolute !important; inset:0; width:100%; height:100%; z-index:0;
  pointer-events:none; image-rendering:pixelated;
}
body.home2 .home-tiles{ display:none !important; }
body.home2 main#main, body.home2 main{
  margin:0 !important; padding:0 !important; max-width:none !important;
  height:0 !important; min-height:0 !important; overflow:hidden !important;
  border:0 !important;
}
body.home2 footer.site-foot,
body.home2[data-page] footer.site-foot{
  background:#2a2233 !important;
  color:#ddd !important;
  border-top:6px solid #120e1f !important;
  position:relative; z-index:1;
  padding:20px 16px 34px;
}
body.home2 .copy, body.home2[data-page] .copy{ color:#fff !important; }
body.home2 a.mq-ver, body.home2 .mq-ver{ color:#fff6b0; text-shadow:1px 1px 0 #120e1f; }
@media (max-width:560px){
  body.home2 .ts{ padding:18px 14px 0 !important; min-height:0 !important; height:auto !important; max-height:none !important; }
}
@media (max-height:520px) and (orientation:landscape){
  body.home2 .ts{ padding:10px 16px 0 !important; min-height:0 !important; height:auto !important; max-height:none !important; }
  body.home2 .ts-inner{ gap:6px !important; padding:0 8px 8px !important; }
  body.home2 .hero-mark{ width:min(280px, 46vw); margin:0 auto; }
  body.home2 .hero-muddle-wrap{ width:4.4rem !important; height:2.6rem !important; }
  body.home2 .hero-tag{ font-size:1rem; }
  body.home2 .ts .play-btn.mega{ font-size:1.35rem !important; padding:.28em 1em !important; min-height:50px; }
  body.home2 .hero-ground, body.home2 .hero-ground.hero-ground{ height:28px !important; flex-basis:28px !important; }
}
@media (prefers-reduced-motion: reduce){
  body.home2 .hero-muddle-wrap{ animation:none !important; transform:translateX(-18%); }
}


/* 1.2.1: a continuous starry sky down to the footer, and no light page backdrops. */
html{
  background-color:#3b1d78;
  min-height:100%;
}
html:has(body.home2){
  background-color:#2a2233;
}
html:not(:has(body.home2)){
  background-image:
    radial-gradient(ellipse at 50% 8%, rgba(255,255,255,.32) 0, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 86%, #f3b6d6 100%);
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-attachment:scroll;
  min-height:100%;
}
body.sky-page,
body[data-page]:not(.home2){
  background-color:transparent !important;
  background-image:
    radial-gradient(ellipse at 50% 8%, rgba(255,255,255,.32) 0, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3b1d78 0%, #7a3dc4 36%, #e05aa8 68%, #f48cb8 86%, #f3b6d6 100%) !important;
  background-attachment:scroll !important;
  background-repeat:no-repeat !important;
  background-size:100% 100% !important;
  background-position:0 0 !important;
  min-height:100dvh;
  min-height:100vh;
}
body.sky-page canvas.mq-stars,
body.sky-page canvas#ts-snow,
body[data-page]:not(.home2) canvas.mq-stars,
body[data-page]:not(.home2) canvas#ts-snow,
body.sky-page .ts-snow,
body[data-page]:not(.home2) .ts-snow{
  position:fixed !important;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
}
body.sky-page footer.site-foot,
body[data-page]:not(.home2) footer.site-foot{
  background:#2a2233 !important;
  color:#ddd !important;
  border-top:6px solid #120e1f !important;
  padding:20px 16px 34px;
}
body.sky-page footer .copy,
body[data-page]:not(.home2) footer .copy{ color:#fff !important; }
body.sky-page footer a.mq-ver,
body[data-page]:not(.home2) footer a.mq-ver,
body.sky-page footer .mq-ver,
body[data-page]:not(.home2) footer .mq-ver{ color:#fff6b0; }

/* Home: no pale pink below the footer. The hero sky fills the window down to the footer. */
body.home2{
  background:#2a2233 !important;
  background-image:none !important;
  min-height:100dvh !important;
  min-height:100vh !important;
  display:flex !important;
  flex-direction:column !important;
}
body.home2 .ts{
  flex:1 0 auto !important;
  min-height:0;
  height:auto !important;
  max-height:none !important;
}
body.home2 footer.site-foot,
body.home2[data-page] footer.site-foot{
  flex:0 0 auto;
  margin-top:0;
  background:#2a2233 !important;
  color:#ddd !important;
  border-top:6px solid #120e1f !important;
}


/* 1.2.2: blog post Read it to me, and the kids' note list. */
article.post .post-remember{
  margin:1.15em 0 .35em; font-size:1.15rem; font-weight:900;
  color:#fff6c8; text-shadow:0 2px 0 #2a1550;
}
article.post .post-remember-list{
  margin:.2em 0 0; padding-left:1.2em; font-weight:700; line-height:1.45;
}
article.post .post-remember-list li{ margin:.25em 0; }
article.post .post-read,
.post-read{
  position:static !important; float:none !important;
  display:inline-flex; align-items:center; justify-content:center; gap:.4em;
  margin:1.2em auto .2em; padding:.4em .85em;
  border:3px solid #2a2233; border-radius:0;
  background:#fff6c8; color:#2a2233;
  font-family:var(--mq-font), Nunito, sans-serif; font-weight:800; font-size:1rem;
  box-shadow:3px 3px 0 #2a2233; cursor:pointer;
}
article.post .post-read[hidden], .post-read[hidden]{ display:none !important; }
article.post .post-read:hover, article.post .post-read:focus-visible,
.post-read:hover, .post-read:focus-visible{ background:#ffe680; outline:3px solid #f6d04d; outline-offset:2px; }
article.post .post-read:active, .post-read:active{ transform:translate(2px,2px); box-shadow:1px 1px 0 #2a2233; }
article.post .post-read .post-read-ico,
article.post .post-read .ui-ico,
.post-read .post-read-ico, .post-read .ui-ico{
  width:1.25em; height:1.25em; display:block; flex:none;
  image-rendering:pixelated; image-rendering:crisp-edges;
}
article.post .more-row{ margin-top:1em; }
