/* GENERATED by .tools/space-css.py from the .src.css file. Do not edit. */
/* pfs-space.css: the owner's "deep space" look, copied from their Claude Design
   export "Phonics Land.html" (20 Oct 2026). Shared by every child tab page whose
   <body> has class="pfs-space". Colours, fonts, sizes, shadows and animations
   are the export's own values.

   Two changes from the export, both asked for by the owner on 20 Oct 2026:
   the tab tiles are a little smaller (70px instead of 78px) so all 15 fit on a
   laptop, and on a tablet they shrink a little more (turned sideways) or sit in
   two rows of 8 and 7 (held upright).

   Built from css/pfs-space.src.css by .tools/space-css.py, which adds a plain
   colour before every oklch() colour for older tablets that cannot read
   oklch(). Edit the .src.css file, then run the script. */

@font-face { font-family: 'Caprasimo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/caprasimo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caprasimo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/caprasimo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* The export's "Organic" design tokens, unchanged. */
.pfs-space {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;
  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;
  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;
  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

/* ---------- The page and its sky ---------- */
html:has(> body.pfs-space) { background: rgba(14,17,53,1); background: oklch(0.2 0.07 275); scroll-behavior: smooth; }
body.pfs-space {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  background: radial-gradient(ellipse at 12% 18%, rgba(87,40,143,0.55), transparent 50%), radial-gradient(ellipse at 88% 55%, rgba(0,98,131,0.5), transparent 55%), radial-gradient(ellipse at 40% 100%, rgba(117,30,95,0.35), transparent 50%), rgba(14,17,53,1); background: radial-gradient(ellipse at 12% 18%, oklch(0.4 0.16 300 / .55), transparent 50%), radial-gradient(ellipse at 88% 55%, oklch(0.45 0.12 220 / .5), transparent 55%), radial-gradient(ellipse at 40% 100%, oklch(0.4 0.14 340 / .35), transparent 50%), oklch(0.2 0.07 275);
}
.pfs-space button { font-family: inherit; }
.pfs-space *:focus-visible { outline: 3px solid var(--color-accent-300); outline-offset: 3px; }

.pfs-skyfix { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

@keyframes pfTwinkle { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }
@keyframes pfSpark { 0%, 100% { opacity: .3; transform: scale(.6) rotate(0) } 50% { opacity: 1; transform: scale(1) rotate(45deg) } }
@keyframes pfFloat { 0%, 100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-14px) rotate(3deg) } }
@keyframes pfCube { from { transform: rotateX(-18deg) rotateY(0) } to { transform: rotateX(-18deg) rotateY(360deg) } }
@keyframes pfSpin { to { transform: rotate(360deg) } }
@keyframes pfFly { from { left: -10% } to { left: 108% } }
@keyframes pfBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
@keyframes pfFlame { 0%, 100% { transform: scaleX(1); opacity: .95 } 50% { transform: scaleX(.6); opacity: .7 } }
@keyframes pfLaunch { 0% { transform: translate(0, 0) scale(1) } 25% { transform: translate(-14px, 4px) scale(1) } 100% { transform: translate(900px, -260px) scale(.4) } }
@keyframes pfShoot { 0%, 88% { transform: translate(0, 0); opacity: 0 } 90% { opacity: 1 } 100% { transform: translate(-420px, 220px); opacity: 0 } }
@keyframes pfGlow { 0%, 100% { box-shadow: 0 0 0 6px var(--color-accent), 0 0 24px 6px rgba(242,118,54,0.55); box-shadow: 0 0 0 6px var(--color-accent), 0 0 24px 6px oklch(0.7 0.17 45 / .55) } 50% { box-shadow: 0 0 0 6px var(--color-accent), 0 0 44px 16px rgba(242,118,54,0.75); box-shadow: 0 0 0 6px var(--color-accent), 0 0 44px 16px oklch(0.7 0.17 45 / .75) } }
@keyframes pfPulse { 0% { box-shadow: 0 0 0 0 rgba(231,182,67,0.9); box-shadow: 0 0 0 0 oklch(0.8 0.14 85 / .9) } 100% { box-shadow: 0 0 0 22px rgba(231,182,67,0); box-shadow: 0 0 0 22px oklch(0.8 0.14 85 / 0) } }
/* ---------- Header: logo,
name and the grown-ups' button ---------- */
body.pfs-space > header,
body.pfs-space > div > header {
  position: sticky !important; top: 0 !important; z-index: 50 !important;
  background: rgba(14,17,53,0.78) !important; background: oklch(0.2 0.07 275 / .78) !important;
  -webkit-backdrop-filter: blur(14px) !important; backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important; border-bottom: 1px solid oklch(1 0 0 / .1) !important;
}
body.pfs-space > header > div:first-child,
body.pfs-space > div > header > div:first-child {
  max-width: 1240px !important; margin: 0 auto !important;
  align-items: center !important; justify-content: space-between !important; gap: 16px !important;
  padding: 12px clamp(16px, 3vw, 28px) !important;
}
body.pfs-space > header a[href="index.html"],
body.pfs-space > div > header a[href="index.html"] {
  align-items: center !important; gap: 12px !important;
  text-decoration: none !important; color: var(--color-neutral-100) !important;
}
body.pfs-space > header a[href="index.html"] > img,
body.pfs-space > div > header a[href="index.html"] > img {
  width: 52px !important; height: 52px !important; border-radius: 50% !important; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,0.18), 0 0 22px rgba(78,188,235,0.55) !important; box-shadow: 0 0 0 3px oklch(1 0 0 / .18), 0 0 22px oklch(0.75 0.12 230 / .55) !important;
}
body.pfs-space > header a[href="index.html"] > span,
body.pfs-space > div > header a[href="index.html"] > span {
  font-family: var(--font-heading) !important; font-weight: 400 !important; font-size: 19px !important;
  line-height: 1.05 !important; color: var(--color-neutral-100) !important;
}
body.pfs-space > header a[href="index.html"] > span > span,
body.pfs-space > div > header a[href="index.html"] > span > span { color: var(--color-accent-300) !important; }
/* The grown-ups' button (nav-tiles.js turns the old "Log out" into "🔒 Parents"),
and the teachers' link,
which only a teacher sees. Never "display: ...
   !important" here: core.js hides the teachers' link from a child with an
   inline display:none,
and that must keep winning. */
body.pfs-space > header #pfs-signout,
body.pfs-space > div > header #pfs-signout,
body.pfs-space > header a[href^="students.html"],
body.pfs-space > div > header a[href^="students.html"] {
  display: flex; align-items: center !important; gap: 6px !important;
  min-height: 44px !important; padding: 0 16px !important; border-radius: 999px !important;
  border: 2px solid rgba(255,255,255,0.22) !important; border: 2px solid oklch(1 0 0 / .22) !important; background: transparent !important;
  color: rgba(223,228,242,1) !important; color: oklch(0.92 0.02 270) !important; font-family: var(--font-body) !important;
  font-size: 14px !important; font-weight: 700 !important; text-decoration: none !important;
  box-sizing: border-box !important;
}
/* 21 Oct 2026 (owner): the teachers' link starts hidden for everyone, so a parent
   or child never sees it flash for a moment while the page loads (core.js only
   hides it once the page has drawn). It shows again only on a page carrying the
   TEACHER bar (#pfs-teacher-nav), which core.js adds for a teacher alone. */
body.pfs-space > header a[href^="students.html"],
body.pfs-space > div > header a[href^="students.html"] { display: none; }
body.pfs-space:has(#pfs-teacher-nav) > header a[href^="students.html"],
body.pfs-space:has(#pfs-teacher-nav) > div > header a[href^="students.html"] { display: flex; }
body.pfs-space > header #pfs-signout:hover,
body.pfs-space > div > header #pfs-signout:hover,
body.pfs-space > header a[href^="students.html"]:hover,
body.pfs-space > div > header a[href^="students.html"]:hover {
  background: rgba(255,255,255,0.1) !important; background: oklch(1 0 0 / .1) !important; color: var(--color-neutral-100) !important;
}

/* ---------- The tab tiles and the space band under them ---------- */
.pfs-space .pfs-top {
  position: relative; z-index: 3; max-width: 1240px; margin: 0 auto;
  padding: 10px clamp(12px, 3vw, 24px) 0; container-type: inline-size;
}
.pfs-space .child-nav-wrapper { max-width: none; margin: 0; padding: 0; }
.pfs-space .child-nav-grid {
  display: flex; flex-wrap: nowrap; gap: 7px; margin: 0; padding: 8px 4px 12px;
  overflow-x: auto; scrollbar-width: none; justify-content: safe center; align-items: stretch;
}
.pfs-space .nav-tile {
  flex: 0 0 auto; width: 70px; min-height: 80px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 3px; border-radius: 20px; text-decoration: none;
  background: var(--color-neutral-100); color: var(--color-text) !important;
  border: 3px solid var(--tile-color);
  box-shadow: 0 6px 0 var(--tile-color), 0 14px 22px -10px rgba(0,0,0,0.6), inset 0 10px 14px rgba(255,255,255,0.5); box-shadow: 0 6px 0 var(--tile-color), 0 14px 22px -10px oklch(0 0 0 / .6), inset 0 10px 14px oklch(1 0 0 / .5);
  transition: transform .14s ease, box-shadow .14s ease;
}
.pfs-space .nav-tile.active { background: var(--tile-color); }
.pfs-space .nav-tile:hover, .pfs-space .nav-tile.active:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 6px 0 var(--tile-color), 0 14px 22px -10px rgba(0,0,0,0.6), inset 0 10px 14px rgba(255,255,255,0.5); box-shadow: 0 6px 0 var(--tile-color), 0 14px 22px -10px oklch(0 0 0 / .6), inset 0 10px 14px oklch(1 0 0 / .5);
}
.pfs-space .nav-tile:active, .pfs-space .nav-tile.active:active {
  transform: translateY(4px);
  box-shadow: 0 6px 0 var(--tile-color), 0 14px 22px -10px rgba(0,0,0,0.6), inset 0 10px 14px rgba(255,255,255,0.5); box-shadow: 0 6px 0 var(--tile-color), 0 14px 22px -10px oklch(0 0 0 / .6), inset 0 10px 14px oklch(1 0 0 / .5);
}
.pfs-space .nav-tile-emoji {
  font-size: 29px; line-height: 1; margin: 0; flex-shrink: 0;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,0.25)); filter: drop-shadow(0 4px 3px oklch(0 0 0 / .25));
}
.pfs-space .nav-tile-label, .pfs-space .nav-tile.active .nav-tile-label {
  display: block; width: auto; min-height: 0; font-family: var(--font-body); font-weight: 800;
  font-size: 12px; line-height: 1.1; text-align: center; text-shadow: none;
}
.pfs-space .nav-tile-check { display: inline; margin-left: .28em; font-size: inherit; font-weight: inherit; }

@supports (width: 1cqw) {
  /* Laptop, and a tablet turned sideways: one row, each tile as wide as the
     row allows, never wider than 70px. */
  @container (min-width: 941px) {
    .pfs-space .nav-tile {
      width: min(70px, calc((100cqw - 8px - (var(--tile-count, 15) - 1) * 7px) / var(--tile-count, 15)));
    }
    .pfs-space .nav-tile-emoji {
      font-size: min(29px, calc((100cqw - 8px - (var(--tile-count, 15) - 1) * 7px) / var(--tile-count, 15) * .42));
    }
    .pfs-space .nav-tile-label, .pfs-space .nav-tile.active .nav-tile-label {
      font-size: min(12px, calc((100cqw - 8px - (var(--tile-count, 15) - 1) * 7px) / var(--tile-count, 15) * .185));
    }
  }
  /* A tablet held upright: two rows, centred. 4 Nov 2026: the Discover "Soon"
     tile makes 17 tiles, so up to 9 fit a row (6px apart) and an iPad held
     upright shows 9 and 8 instead of leaving Discover alone on a third row. */
  @container (min-width: 600px) and (max-width: 940px) {
    .pfs-space .child-nav-grid {
      flex-wrap: wrap; overflow: visible; gap: 10px 6px; max-width: 686px; margin: 0 auto;
      justify-content: center;
    }
  }
}

.pfs-space .pfs-band {
  position: relative; height: 150px; margin-top: 6px; border-radius: 30px; overflow: hidden;
  background: radial-gradient(ellipse at 78% 40%, rgba(0,113,146,0.55), transparent 55%), radial-gradient(ellipse at 20% 90%, rgba(122,46,139,0.45), transparent 55%), rgba(7,9,38,1); background: radial-gradient(ellipse at 78% 40%, oklch(0.5 0.12 220 / .55), transparent 55%), radial-gradient(ellipse at 20% 90%, oklch(0.45 0.16 320 / .45), transparent 55%), oklch(0.16 0.06 275);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 22px 40px -22px rgba(0,0,0,0.8); box-shadow: inset 0 0 0 2px oklch(1 0 0 / .08), 0 22px 40px -22px oklch(0 0 0 / .8);
}

/* ---------- Footer, and the strip of sky above it ---------- */
/* overflow: a star placed at the far right edge must not let the page scroll sideways */
.pfs-space .pfs-footsky { position: relative; z-index: 1; height: 120px; overflow: hidden; }
.pfs-space footer.pfs-foot {
  position: relative; z-index: 2; margin: 0; background: rgba(5,6,29,1); background: oklch(0.14 0.05 275);
  color: rgba(217,222,236,1); color: oklch(0.9 0.02 270); padding: 26px 20px 30px; text-align: center;
}
.pfs-space .pfs-foot-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0;
  font-size: 14px; font-weight: 700; line-height: 1.55;
}
.pfs-space .pfs-foot-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: rgba(223,228,242,1); color: oklch(0.92 0.02 270); font-weight: 700; font-size: 14px; text-decoration: none;
}
.pfs-space .pfs-foot-links a:hover {
  background: rgba(255,255,255,0.08); background: oklch(1 0 0 / .08); color: rgba(223,228,242,1); color: oklch(0.92 0.02 270); text-decoration: none;
}
.pfs-space .pfs-qtbar {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px;
  padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.08); border-top: 1px solid oklch(1 0 0 / .08); background: transparent;
  color: inherit; font-size: 13.5px; font-weight: 400;
}
/* The export puts the logo on a light pill; the padding and background here
   draw the same pill around the same 180px logo. */
.pfs-space .pfs-qtbar img {
  display: block; width: 208px; height: auto; max-width: 100%; box-sizing: border-box;
  padding: 6px 14px; border-radius: 999px; background: var(--color-neutral-100);
}
.pfs-space .pfs-qtbar p { margin: 0; font-size: 13.5px; line-height: 1.5; font-weight: 400; max-width: none; }

/* Printing (the Writing tab prints worksheets): no sky, band or dark
   colours on paper. */
@media print {
  .pfs-skyfix, .pfs-band, .pfs-footsky { display: none !important; }
  body.pfs-space, html:has(> body.pfs-space) { background: #fff !important; }
}

/* Calm: no moving decoration for anyone who has asked their device for less
   motion. The export has the same switch ("motion: Calm"); js/pfs-space.js
   draws the calm version of the sky, and this stops the tiles moving. */
@media (prefers-reduced-motion: reduce) {
  .pfs-space .nav-tile, .pfs-space .nav-tile:hover, .pfs-space .nav-tile:active { transition: none; transform: none; }
}
