:root{color-scheme:light;--paper:#faf7f0;--ink:#303c34;--muted:#626c61;--sage:#dce5d2;--line:#dfdfd3}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit}a:focus-visible,summary:focus-visible{outline:3px solid #4479ae;outline-offset:5px}h1,h2,h3,p{margin:0 0 18px}h1,h2,h3{line-height:1.12;letter-spacing:-.045em}h1{font-size:clamp(44px,5.1vw,74px);font-weight:650}h2{font-size:clamp(30px,3vw,43px);font-weight:600}h3{font-size:29px}h1 em{font-style:normal;color:#71866a}.wrap{max-width:1180px;margin:auto;padding-left:34px;padding-right:34px}.bar{display:flex;align-items:center;justify-content:space-between;padding-top:25px;padding-bottom:25px;border-bottom:1px solid var(--line);gap:20px}.brand{font-size:20px;font-weight:650;text-decoration:none;letter-spacing:-.04em;white-space:nowrap}.brand-dot{font-size:32px;color:#8c9b7f;vertical-align:middle;margin-right:10px}.bar nav{display:flex;gap:26px;align-items:center}.bar nav a{text-decoration:none;font-size:14px}.nav-play{border:1px solid #cdd5c4;padding:8px 18px;border-radius:99px}.hero{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:70px;padding-top:83px;padding-bottom:90px}.kicker{font-size:11px;font-weight:700;letter-spacing:.16em;color:#6c7f62;margin-bottom:21px}.lead{font-size:20px;color:var(--muted);max-width:600px;line-height:1.55;margin:25px 0 30px}.button{display:inline-flex;align-items:center;gap:35px;background:#dce5d2;text-decoration:none;padding:15px 27px;border-radius:15px;font-size:17px;font-weight:650;min-height:56px}.button:hover{background:#cbdabc}.subtle{font-size:12px;color:var(--muted);margin-top:16px}.hero-art{position:relative;padding:20px 20px 40px;transform:rotate(3deg)}.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:17px;max-width:380px;margin:auto}.tiles>span{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:27%;background:#edece0;box-shadow:inset 0 -7px 0 #00000008;color:#4f6753;font-size:clamp(45px,6vw,82px);font-weight:650}.tiles svg{width:100%;height:100%}.speech{position:relative;bottom:-15px;margin:auto;background:#fffdf8;box-shadow:0 12px 30px #313d3410;border:1px solid #e8e4d9;padding:16px 20px;border-radius:16px;text-align:center;transform:rotate(-6deg);font-size:16px}.speech span{color:#899d7c;margin-left:15px}.spark{position:absolute;font-size:50px;right:-10px;top:-40px;color:#d2b76d}.games{padding-top:30px;padding-bottom:90px;scroll-margin-top:30px}.section-title{margin-bottom:35px}.section-title p:not(.kicker){color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.game-card{display:block;border:1px solid var(--line);border-radius:25px;overflow:hidden;text-decoration:none;transition:transform .15s;background:#fefcf7}.game-card:hover{transform:translateY(-4px)}.mini-art{padding:26px;background:#ecefe3}.mini-art .tiles{width:120px;gap:7px;transform:rotate(-4deg)}.mini-art .tiles>span{font-size:38px}.game-card>div:last-child{padding:25px}.game-card .kicker{font-size:9px}.game-card h3{margin:12px 0}.game-card h3 span{float:right;color:#8d9d7e}.game-card p{font-size:15px;color:var(--muted);line-height:1.6;margin:0}.parent-section{background:#edf0e7;padding:75px 0;scroll-margin-top:20px}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.parent-grid p{color:#566353;font-size:16px}.text-link{text-decoration:none;font-weight:650;border-bottom:1px solid #a4b494}.faq-title{font-size:26px;margin-bottom:25px}.faq details{border-bottom:1px solid #d3d9cc;padding:16px 0}.faq details:first-child{border-top:1px solid #d3d9cc}.faq summary{cursor:pointer;line-height:1.4;font-weight:600;font-size:16px;padding-right:10px}.faq p{font-size:15px;margin:16px 0 3px;line-height:1.65;color:var(--muted)}.end-cta{text-align:center;padding-top:70px;padding-bottom:80px}.end-cta h2{margin:20px 0 28px}.flower{font-size:50px;color:#b08d68}.footer{border-top:1px solid var(--line);padding-top:28px;padding-bottom:32px;display:flex;align-items:center;justify-content:space-between;gap:15px}.footer p{margin:0;font-size:12px;color:var(--muted)}.footer>div{display:flex;gap:20px;font-size:12px}.breadcrumb{padding-top:25px;font-size:13px;color:var(--muted);display:flex;gap:12px}.breadcrumb a{text-decoration:none}.topic.hero{padding-top:45px;padding-bottom:65px}.topic-content{display:grid;grid-template-columns:1.25fr .75fr;gap:80px;padding-bottom:80px}.topic-content article h2{font-size:28px;margin-top:40px}.topic-content article h2:first-of-type{margin-top:0}.topic-content article p,.topic-content li{font-size:16px;color:#566353}.topic-content aside{align-self:start;background:#ecefe3;border-radius:24px;padding:27px}.topic-content aside h2{font-size:25px}.topic-content aside .button{margin-top:28px;background:#d3dfc9;width:100%;justify-content:center}.pills{display:flex;gap:9px;list-style:none;flex-wrap:wrap;padding:0;margin:20px 0}.pills li{border:1px solid #d5dbcb;border-radius:50px;padding:5px 14px;font-size:14px}.cards.two{grid-template-columns:repeat(2,1fr)}.skip{position:fixed;top:-100px;left:10px;background:white;z-index:3;padding:12px}.skip:focus{top:10px}@media(max-width:800px){.wrap{padding-left:24px;padding-right:24px}.bar nav{gap:15px}.bar nav a:not(.nav-play){display:none}.hero{gap:30px;padding-top:50px;padding-bottom:60px}.hero-art{padding:10px 0 30px}.tiles{gap:12px}.speech{font-size:13px;padding:12px}.cards{gap:14px}.game-card>div:last-child{padding:20px}.game-card h3{font-size:25px}.parent-grid,.topic-content{gap:35px}.footer{flex-wrap:wrap}.footer>div{width:100%}}@media(max-width:590px){.brand{font-size:17px}.brand-dot{font-size:26px;margin-right:5px}.bar{padding-top:17px;padding-bottom:17px}.bar nav .nav-play{font-size:12px;padding:7px 13px}.hero{grid-template-columns:1fr;padding-top:40px;gap:25px}.hero h1{font-size:45px}.lead{font-size:18px;margin-top:20px}.hero-art{max-width:290px;width:100%;justify-self:center}.hero-art .tiles>span{font-size:65px}.spark{right:-15px;top:0;font-size:36px}.hero-art .tiles{gap:14px}.cards,.cards.two{grid-template-columns:1fr}.game-card{display:grid;grid-template-columns:110px 1fr}.mini-art{padding:15px;display:flex;align-items:center}.mini-art .tiles{width:82px;gap:5px}.mini-art .tiles>span{font-size:27px}.game-card p{font-size:14px}.game-card .kicker{font-size:8px;letter-spacing:.09em}.game-card h3{font-size:25px;margin-top:8px}.games{padding-bottom:55px}.parent-grid,.topic-content{grid-template-columns:1fr}.parent-section{padding-top:45px;padding-bottom:45px}.parent-grid{gap:35px}.topic-content{padding-bottom:40px;gap:25px}.topic.hero{padding-top:28px;padding-bottom:35px}.footer>div{flex-wrap:wrap;gap:14px}.footer .brand{font-size:18px}.end-cta{padding-top:45px;padding-bottom:50px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.game-card{transition:none}}

.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.header-actions>.nav-play{text-decoration:none;font-size:14px;white-space:nowrap;min-height:44px;display:flex;align-items:center}.site-menu{position:relative;z-index:5}.site-menu>summary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;min-width:72px;padding:8px 12px;border:1px solid #d5dbce;border-radius:24px;cursor:pointer;list-style:none;font-size:19px}.site-menu>summary::-webkit-details-marker{display:none}.menu-lines{font-size:18px;color:#626c61}.site-menu[open]>summary{background:#edf0e7}.menu-panel{position:absolute;right:0;top:calc(100% + 12px);width:248px;max-width:calc(100vw - 48px);padding:14px;background:#fffdf8;border:1px solid #dfdfd3;border-radius:20px;box-shadow:0 12px 35px #303c341c}.bar .menu-panel nav{display:flex;flex-direction:column;align-items:stretch;gap:2px}.bar .menu-panel nav a{display:flex;align-items:center;min-height:44px;padding:9px 13px;font-size:15px;text-decoration:none;border-radius:11px}.bar .menu-panel nav a:hover{background:#f0f2e9}.menu-links{padding-bottom:10px;border-bottom:1px solid var(--line)}.menu-label{font-size:11px;color:var(--muted);letter-spacing:.07em;margin:14px 13px 6px}.languages a[aria-current]{background:#edf0e2;font-weight:650}.languages a[aria-invalid]{outline:2px solid #bd715d}.benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-bottom:55px}.benefits article{border-top:1px solid var(--line);padding:26px 0 0}.benefit-icon{--tc-icon-size:2.25rem;margin-bottom:12px}.benefits h2{font-size:23px;letter-spacing:-.03em;margin-bottom:12px}.benefits p{font-size:15px;color:var(--muted);line-height:1.65;max-width:310px}.footer>div{flex-wrap:wrap}@media(max-width:590px){.bar{gap:8px}.bar .brand{font-size:15px;white-space:normal;line-height:1.2;max-width:150px}.brand-dot{display:none}.header-actions{gap:7px}.header-actions>.nav-play{font-size:12px;padding:7px 12px}.site-menu>summary{min-width:64px;gap:7px;padding:8px 10px}.benefits{grid-template-columns:1fr;gap:4px;margin-bottom:32px}.benefits article{display:grid;grid-template-columns:36px 1fr;column-gap:12px;padding-top:20px}.benefit-icon{grid-row:1/3;margin:0}.benefits h2{font-size:21px;margin-bottom:8px}.benefits p{max-width:none;margin-bottom:20px}.menu-panel{max-width:calc(100vw - 48px)}}
/* Optional statistics controls appear only on public pages for parents. */
.analytics-choice{position:fixed;z-index:20;bottom:16px;left:16px;right:16px;max-width:620px;margin:auto;padding:24px;background:#faf7f0;color:#293a35;border:1px solid #b6beb5;border-radius:20px;box-shadow:0 6px 30px #23352c33;font-family:inherit;max-height:80dvh;overflow:auto}
.analytics-choice[hidden]{display:none}
.analytics-choice h2{font-size:1.35rem;margin:0 0 10px}
.analytics-choice p{font-size:1rem;line-height:1.5;margin:0 0 16px}
.analytics-choice>div{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.analytics-choice button{flex:1;min-width:150px;min-height:48px;padding:10px 16px;background:#fff;color:#293a35;border:1px solid #526459;border-radius:12px;font:inherit;cursor:pointer}
.analytics-choice a{font-size:.9rem;text-decoration:underline}
.analytics-settings{padding:0;background:none;border:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;text-align:left;min-height:44px}
.analytics-choice button:focus-visible,.analytics-settings:focus-visible{outline:3px solid #518ccf;outline-offset:3px}

.site-menu>summary{min-width:44px;width:44px;padding:8px}.menu-lines{font-size:21px}.bar .menu-panel .menu-section{font-weight:650}.bar .menu-panel .menu-login{border-top:1px solid var(--line);margin-top:8px;border-radius:0;padding-top:14px}.language-options{margin-top:6px}.language-options>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 13px;font-size:14px;cursor:pointer;list-style:none;border-radius:11px}.language-options>summary::-webkit-details-marker{display:none}.language-options>summary:after{content:'⌄';margin-left:auto}.language-options[open]>summary:after{content:'⌃'}.language-options>summary:hover{background:#f0f2e9}.language-options .languages{padding:3px 0 0 10px}.menu-panel{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}

.hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.hero-actions>.text-link{font-size:15px;min-height:44px;display:inline-flex;align-items:center}

.learning-stages{padding-top:15px;padding-bottom:65px;scroll-margin-top:25px}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.stage-grid article{border:1px solid var(--line);border-radius:22px;padding:25px;background:#fefcf7}.stage-grid h3{font-size:25px;margin-bottom:14px}.stage-grid p{font-size:15px;color:var(--muted)}.stage-grid .stage-age{font-size:11px;color:#6c7f62;letter-spacing:.05em;margin-bottom:15px}.stage-grid .text-link{min-height:44px;display:inline-flex;align-items:center;font-size:14px}@media(max-width:690px){.stage-grid{grid-template-columns:1fr;gap:14px}.learning-stages{padding-bottom:40px}.stage-grid article{padding:23px}.stage-grid h3{font-size:25px}}

/* Parent journal: quiet illustrations and a comfortable reading measure. */
.journal-intro{padding-top:clamp(2rem,7vw,5rem);padding-bottom:2rem;max-width:960px}.journal-intro h1{font-size:clamp(2.6rem,6vw,5rem);max-width:850px}.journal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1.5rem;padding-bottom:5rem}.journal-card{display:block;text-decoration:none;color:inherit;border:1px solid #d8ddd1;border-radius:24px;padding:2rem;background:#f1f3e9}.journal-card h2{font-size:1.8rem;line-height:1.2}.journal-card p{line-height:1.7}.journal-reading{max-width:820px;padding-bottom:5rem}.journal-reading h1{font-size:clamp(2.3rem,5vw,3.8rem);line-height:1.08}.journal-reading h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.25;margin-top:2.5rem}.journal-reading p{font-size:1.08rem;line-height:1.85}.journal-reading .article-meta{font-size:.9rem;color:#596253}.concept-diagram{margin:2rem 0;padding:1.2rem;background:#edf0e5;border-radius:24px}.diagram-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.diagram-panel{text-align:center;min-width:0}.diagram-panel svg{display:block;width:100%;max-width:220px;margin:auto;background:#fffdf8;border-radius:18px}.diagram-panel h3{font-size:1.1rem;line-height:1.3;margin:1rem 0 .4rem}.diagram-panel p{font-size:.9rem;line-height:1.55;margin:0}.concept-diagram figcaption{font-size:.9rem;line-height:1.6;margin-top:1.2rem}.journal-game{background:#edf0e5;border-radius:20px;padding:1.5rem;margin:2rem 0}.journal-game h2{margin-top:0}.article-sources{border-top:1px solid #d8ddd1;margin-top:3rem}.article-sources p,.article-sources li{font-size:.9rem;line-height:1.7}.journal-card:focus-visible{outline:3px solid #385b44;outline-offset:4px}@media(max-width:600px){.diagram-grid{grid-template-columns:1fr;gap:1.6rem}.diagram-panel{display:grid;grid-template-columns:100px 1fr;column-gap:1rem;align-items:center;text-align:left}.diagram-panel svg{grid-row:1/3;max-width:100px}.diagram-panel h3{margin:0 0 .3rem}.diagram-panel p{margin:0}.journal-reading p{font-size:1rem}.journal-reading .lead{font-size:1.1rem}.concept-diagram{padding:1rem}.article-sources li{overflow-wrap:anywhere}}

/* Editorial topics use real links and existing hubs, without filter scripts. */
.topic-tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}.topic-tags a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:7px 14px;border:1px solid #cbd5c2;border-radius:24px;background:#fffdf8;font-size:14px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}.topic-tags a:hover{background:#e3eadb}.topic-browse>span{flex-basis:100%;font-size:14px;font-weight:650;margin-bottom:3px}.journal-card h2 a{text-decoration:none}.journal-card h2 a:hover{text-decoration:underline;text-underline-offset:4px}.journal-topics{padding-bottom:5rem}.journal-topics>h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:25px}.topic-collections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.topic-collection{border-top:1px solid var(--line);padding:25px 0 5px;scroll-margin-top:25px}.topic-collection:target{border-top:3px solid #71866a}.topic-collection h3{font-size:25px;line-height:1.3}.topic-collection p,.topic-collection li{font-size:16px;line-height:1.7}.topic-collection p{color:var(--muted)}.topic-collection ul{padding-left:22px}.topic-collection li{padding-bottom:10px}.topic-collection a{overflow-wrap:anywhere}.topic-collection .text-link{display:inline-flex;align-items:center;min-height:44px}.journal-card .topic-tags{margin-top:22px}@media(max-width:600px){.topic-collections{grid-template-columns:1fr;gap:10px}.journal-card{padding:1.5rem}.journal-topics{padding-bottom:3rem}.topic-browse{margin-top:25px}}

/* Bubble Garden follows the existing quiet colours and rounded game cards. */
.cards.with-bubbles{grid-template-columns:repeat(2,minmax(0,1fr))}

.site-mascots{display:inline-block;width:40px;height:36px;object-fit:cover;vertical-align:middle;margin-right:9px}.brand{display:inline-flex;align-items:center}.bubble-art span{background:radial-gradient(ellipse at 30% 22%,#ffffffed 0 9%,#ffffff30 20%,transparent 40%),radial-gradient(circle at 60% 80%,var(--bubble-art),#ffffffcf 80%);border:2px solid var(--bubble-art);box-shadow:inset 0 0 0 2px #ffffffb0,0 6px 16px #34443509;opacity:.8}

/* Account actions share the same menu rhythm as the other navigation rows. */
.nav-account{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}.nav-account form{margin:0}.bar .nav-account [hidden]{display:none}.bar .nav-account button{display:flex;align-items:center;min-height:44px;width:100%;padding:9px 13px;border:0;border-radius:11px;background:none;color:inherit;font:inherit;font-size:15px;text-align:left;cursor:pointer}.bar .nav-account button:hover{background:#f0f2e9}.bar .nav-account button:focus-visible{outline:3px solid #4479ae;outline-offset:3px}

/* Soft play is the default; warm light keeps the original paper palette. */
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #1e2234;
  --ink: #f4eee6;
  --muted: #c2c3d5;
  --sage: #30384e;
  --line: #50566d;
  --panel: #2b3046;
  --accent: #e6c680;
}
:root:not([data-theme="light"]) :is(.game-card, .stage-grid article, .journal-card, .menu-panel, .speech, .parent-section, .topic-content aside, .concept-diagram, .journal-game, .skip) {
  background: var(--panel);
  border-color: var(--line);
}
:root:not([data-theme="light"]) :is(.mini-art, .tiles>span, .site-menu[open]>summary, .bar .menu-panel nav a:hover, .bar .nav-account button:hover, .languages a[aria-current], .language-options>summary:hover, .topic-tags a) { background: var(--sage); }
:root:not([data-theme="light"]) :is(h1 em, .kicker, .speech span, .game-card h3 span, .stage-grid .stage-age, .flower, .spark) { color: var(--accent); }
:root:not([data-theme="light"]) :is(.tiles>span, .menu-lines, .bar .nav-account button) { color: var(--ink); }
:root:not([data-theme="light"]) :is(.parent-grid p, .topic-content article p, .topic-content li, .menu-label) { color: var(--muted); }
:root:not([data-theme="light"]) :is(.site-menu>summary, .nav-play, .bar .nav-account, .faq details, .faq details:first-child, .language-options, .pills li, .topic-tags a) { border-color: var(--line); }
:root:not([data-theme="light"]) :is(.button, .topic-content aside .button) { background: var(--accent); color: #282436; }
:root:not([data-theme="light"]) .button:hover { background: #f1d695; }
:root:not([data-theme="light"]) :is(a, button, summary, select):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[data-appearance] { border-top: 1px solid var(--line); margin-top: 8px; padding: 10px 12px 2px; }
[data-appearance] label { display: grid; gap: 4px; font-size: 14px; }
[data-appearance] select { width: 100%; min-height: 44px; padding: 5px 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; font: inherit; }

/* Welcome, games and home activities flow in the ordinary document. */
.home-scenes > .home-scene + .home-scene { border-top: 1px solid var(--line); }
.home-scene { scroll-margin-top: 1rem; }
.home-settle { scroll-snap-type: y proximity; }
.scene-fits { scroll-snap-align: start; }
.home-scenes .hero { grid-template-columns: minmax(0,1fr) minmax(0,.72fr); gap: clamp(1.25rem,5vw,4rem); padding-block: clamp(2.25rem,7vw,5rem); }
.hero h1 { font-size: var(--tc-title); line-height: 1.06; letter-spacing: -.043em; overflow-wrap: anywhere; }
.home-scenes .hero h1 { max-width: 15ch; }
.hero .lead, .journal-intro .lead, .section-title p { max-width: var(--tc-measure); }
.hero-actions { gap: .35rem var(--tc-gap); }
.home-scenes > :is(.games,#at-home) { padding-block: clamp(1.75rem,5vw,3.75rem); }
.section-title { margin-bottom: var(--tc-gap); }
.section-title h2, .journal-reading article section h2 { font-size: var(--tc-heading); line-height: 1.16; text-wrap: balance; }
.home-scenes :is(.benefits,.learning-stages:not(#at-home)) { margin-block: clamp(1.75rem,4vw,3rem); }
.hero-art { padding: var(--tc-gap); transform: none; }
.hero-art .tiles { transform: translateY(var(--art-drift,0px)) rotate(-3deg); }
.tiles { gap: clamp(7px,1.4vw,15px); }
.tiles > span {
  --tile-tone: var(--tc-rose);
  min-width: 0;
  color: var(--tc-ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 -4px 0 #00000016;
}
.tiles > span:nth-child(2) { --tile-tone: var(--tc-blue); }
.tiles > span:nth-child(3) { --tile-tone: var(--tc-gold); }
.tiles > span:nth-child(4) { --tile-tone: var(--tc-leaf); }
.kolory i { display: block; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--tile-tone); }
.tiles svg { width: 79%; height: 79%; fill: var(--tile-tone); stroke: var(--tc-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.figury > span:last-child svg { stroke: var(--tc-lilac); stroke-width: 4; }
.bubble-art svg { fill: color-mix(in srgb,var(--tile-tone),transparent 77%); stroke: var(--tile-tone); stroke-width: 3.5; }
.tiles.litery > span { font-family: system-ui,sans-serif; font-weight: 740; }
.speech { display:flex; align-items:center; justify-content:center; gap:.55rem; width:fit-content; bottom:auto; margin-top:1rem; padding:.4rem .8rem; transform:none; font-size:clamp(1.2rem,3vw,1.65rem); line-height:1.12; }
.speech span { margin-left:0; }
.speech .tc-icon { --tc-icon-size: 1.5rem; color: var(--tc-icon-ink); }
.game-card { min-width: 0; }
.game-card h3 { text-wrap: balance; }
.game-card .mini-art { display:grid; place-items:center; padding:var(--tc-gap); }
.game-card .mini-art .tiles { width:clamp(70px, 14vw, 128px); }
.benefits article { min-width:0; }
#at-home .stage-grid article { border-top: 3px solid var(--tc-leaf); }
.journal-reading article { max-width: 780px; margin-inline: auto; }
.journal-reading article section p { max-width: var(--tc-measure); }
.journal-reading h1 { font-size: var(--tc-title); line-height: 1.05; }

.activity-library [hidden] { display:none !important; }
.activity-library .journal-intro { max-width: 1120px; padding-bottom: 1rem; }
.activity-library .journal-intro h1 { color: var(--accent, var(--ink)); }
.activity-controls { margin-top:var(--tc-gap); }
.activity-filters, .activity-status, .activity-pager { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.activity-status { justify-content:space-between; gap:.25rem 1rem; color:var(--muted); font-size:.875rem; }
.activity-status p { margin:0; }
:is(.activity-filters, .activity-status, .activity-pager) button, .demo-replay {
  min-height:44px; min-width:44px; padding:.4rem .75rem; border:1px solid var(--line); border-radius:14px;
  color:var(--ink); background:var(--paper); font:inherit; font-size:.875rem; cursor:pointer;
}
.activity-filters button:hover, .activity-pager button:hover, .demo-replay:hover { background:var(--sage); }
.activity-filters [aria-pressed="true"] { background:var(--sage); border-color:currentColor; font-weight:750; }
.activity-library button[aria-disabled="true"] { opacity:.68; cursor:default; }
.activity-library :is(button,a):focus-visible { outline:2px solid var(--accent, #375f8a); outline-offset:3px; }
.activity-library .activity-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 17rem),1fr)); gap:var(--tc-gap); padding-bottom:var(--tc-gap); }
.activity-grid .activity-card { padding:0; display:grid; grid-template-rows:auto 1fr; align-content:start; min-width:0; }
.activity-art {
  position:relative;
  overflow:hidden;
  border-radius: 21px 21px 0 0;
  background: radial-gradient(ellipse at 35% 15%, color-mix(in srgb,var(--tc-blue),transparent 80%),transparent 73%), var(--sage);
  border-bottom:1px solid var(--line);
}
.activity-art > svg { display:block; width:100%; aspect-ratio:260/144; }
.activity-copy { padding: var(--tc-gap); display:grid; align-content:start; }
.activity-copy :is(p,h2) { margin:0 0 .55rem; }
.activity-copy h2 { font-size:clamp(1.22rem,1.1rem + .45vw,1.52rem); line-height:1.18; text-wrap:balance; }
.activity-copy .text-link { justify-self:start; min-height:44px; display:inline-flex; align-items:center; gap:.3em; }
.activity-copy p:not(.kicker) { color:var(--muted); }
.demo-replay { position:absolute; right:8px; bottom:8px; display:grid; place-items:center; padding:0; }
.demo-replay .tc-icon { --tc-icon-size:1.7rem; }
.activity-empty { padding-block:var(--tc-gap); }
@media (max-width:700px) {
  .home-scenes .hero { grid-template-columns:minmax(0,1fr); }
  .home-scenes .hero h1 { max-width:18ch; }
  .home-scenes .hero-art { width:min(100%, 14rem); padding:0 .8rem .8rem; }
}
@media (max-width:640px) and (min-height:400px) {
  .activity-library .activity-grid { display:grid; grid-auto-flow:column; grid-auto-columns:min(83%,22rem); grid-template-columns:none; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding-inline:20px; padding-block:5px var(--tc-gap); }
  .activity-grid .activity-card { scroll-snap-align:start; }
}
@media (max-width:520px) {
  .cards.with-bubbles { grid-template-columns:1fr; }
  .game-card { grid-template-columns:5.5rem minmax(0,1fr); }
  .game-card .mini-art .tiles { width:100%; }
}
@media (prefers-reduced-motion:no-preference) {
  .demo-playing [data-demo-piece] { transform-box:fill-box; transform-origin:center; animation: demo-slide 1.6s ease-out both; }
  [data-demo="shapes"].demo-playing [data-demo-piece] { animation-name:demo-turn; }
  [data-demo="letters"].demo-playing [data-demo-piece] { animation-name:demo-trace; }
  [data-demo="counting"].demo-playing [data-demo-piece] { animation: demo-step .88s ease-out calc(var(--step) * .35s) both; }
  [data-demo="matching"].demo-playing [data-demo-piece]:last-child { animation-name:demo-group; }
  [data-demo="bubbles"].demo-playing [data-demo-piece] { animation-name:demo-pop; }
}
@keyframes demo-slide { from { transform:translateX(34px); } 75%,to { transform:none; } }
@keyframes demo-turn { from { transform:rotate(-105deg); } 75%,to { transform:none; } }
@keyframes demo-trace { from { opacity:0; transform:translateY(5px); } 75%,to { opacity:1; transform:none; } }
@keyframes demo-step { from { transform:translateY(-13px); opacity:.45; } 80%,to { transform:none; opacity:1; } }
@keyframes demo-group { from, 25% { transform:translateX(19px); } 80%,to { transform:none; } }
@keyframes demo-pop { 0%, 75%, 100% { transform:none; opacity:1; } 45% { transform:scale(1.14); opacity:.48; } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; scroll-snap-type:none !important; }
  .activity-library .activity-grid { scroll-snap-type:none; }
  .hero-art .tiles { transform:rotate(-3deg); }
}
.game-preview { min-width:0; display:grid; grid-template-rows:1fr auto; }
.game-details { justify-self:start; display:inline-flex; align-items:center; min-height:44px; padding-inline:.4rem; font-size:.9rem; }

/* Capability-led paths use the same typography and surfaces as the library. */
.skill-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skill-grid article { min-width: 0; }
.skill-grid h3 a { color: inherit; text-decoration: none; }
.skill-grid h3 a:hover, .skill-grid h3 a:focus-visible { text-decoration: underline; }
.skill-grid .benefit-icon { margin-bottom: .65rem; }
.skills-index, .skill-path { padding-block: clamp(1.6rem, 5vw, 3.8rem); }
.skills-index h1, .skill-path h1 { margin-block: .3rem .6rem; font-size: clamp(2.1rem, 5.7vw, 4rem); max-width: 19ch; overflow-wrap: break-word; }
.skills-index > .lead { max-width: 38rem; margin-bottom: 1.75rem; }
.skill-path { max-width: 50rem; }
.skill-path .breadcrumb { margin-bottom: 1.5rem; }
.skill-path header > p { max-width: 38rem; }
.skill-shortcuts { padding: 1.15rem 1.4rem; margin-block: 1.4rem; border: 1px solid var(--line); border-radius: 1.25rem; }
.skill-shortcuts h2 { margin: 0; font-size: 1.16rem; }
.skill-shortcuts ol { margin: .65rem 0 0; padding-left: 1.4rem; }
.skill-shortcuts a { display: inline-flex; align-items: center; min-height: 36px; }
.skill-steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
.skill-step { min-width: 0; padding: clamp(1rem, 4vw, 1.65rem); border: 1px solid var(--line); border-radius: 1.4rem; background: var(--panel, #fefcf7); scroll-margin-top: 1rem; }
.skill-step:target { outline: 2px solid currentColor; outline-offset: -2px; }
.skill-step-heading { display: flex; align-items: center; gap: .8rem; }
.skill-number { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; flex: 0 0 2.25rem; height: 2.25rem; font-weight: 750; }
.skill-step h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.skill-step dl { display: grid; gap: .9rem; margin: 1rem 0; }
.skill-step dt { font-weight: 750; }
.skill-step dd { margin: .25rem 0 0; }
.skill-actions { display: flex; flex-wrap: wrap; column-gap: 1.2rem; }
.skill-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.skill-source { margin-top: 1.3rem; }
@media (max-width: 820px) { .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .skill-grid { grid-template-columns: 1fr; } }
.skill-crosslink { margin-block: 0 2rem; }

/* Shared type, icon and spacing scales. */
:root {
  --tc-hand: "Toddler Hand", "Toddler Hand Fallback", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --tc-title: clamp(2.125rem, 1.35rem + 3.6vw, 4.4rem);
  --tc-display: clamp(2.15rem, 1.5rem + 3vw, 4rem);
  --tc-heading: clamp(1.45rem, 1.15rem + 1.3vw, 2.35rem);
  --tc-measure: 62ch;
  --tc-gap: clamp(.875rem, .5rem + 1.4vw, 1.75rem);
  --tc-icon-size: 2rem;
  --tc-target: 44px;
  --tc-ink: #495b6b;
  --tc-rose: #d77d76;
  --tc-blue: #79a8d4;
  --tc-gold: #edc56b;
  --tc-leaf: #83b29b;
  --tc-lilac: #ac95bd;
}
:root:not([data-theme="light"]) { --tc-ink: #e4ddf1; }

/* Caveat, copyright the Caveat project authors. License: fonts/caveat-OFL.txt. */
@font-face {
  font-family: "Toddler Hand";
  src: url("/parent/assets/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+0304, U+0308, U+2000-206F, U+20AC, U+2191, U+2193;
}
@font-face {
  font-family: "Toddler Hand";
  src: url("/parent/assets/fonts/caveat-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* A narrower local fallback keeps the accent on the same line on cold loads. */
@font-face {
  font-family: "Toddler Hand Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700;
  size-adjust: 78%;
}

.tc-header {
  --nav-surface: #fffdf8;
  --nav-hover: #eef0e8;
  --nav-border: #d2d4c8;
  --nav-text: #283933;
  --nav-muted: #536359;
  --nav-focus: #375f8a;
  display: grid;
  grid-template-columns: var(--tc-target) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  column-gap: 12px;
}
:root:not([data-theme="light"]) .tc-header {
  --nav-surface: #2b3046;
  --nav-hover: #3a405a;
  --nav-border: #5b627a;
  --nav-text: #f4eee6;
  --nav-muted: #d0cfe0;
  --nav-focus: #e6c680;
}
.tc-header > .tc-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  color: var(--nav-text);
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 750;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.tc-header > .tc-brand img { flex: none; width: 42px; height: 40px; margin: 0; object-fit: cover; }
.tc-header > .tc-action { justify-self: end; min-height: 44px; margin: 0; white-space: nowrap; }
.tc-header > .nav-play { display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; }
.tc-header .tc-menu { position: relative; z-index: 12; width: 44px; margin: 0; }
.tc-header .tc-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--nav-border);
  border-radius: 15px;
  background: transparent;
  color: var(--nav-text);
}
.tc-header .tc-menu > summary::-webkit-details-marker { display: none; }
.tc-header .tc-menu-backdrop {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: #10132370;
  touch-action: none;
}
.tc-header .tc-menu[open] > summary { position: relative; z-index: 3; background: var(--nav-hover); }
.tc-header .tc-menu[open] > summary .tc-menu-lines { background: transparent; }
.tc-header .tc-menu[data-drawer] > summary { z-index: auto; }
.tc-menu[open] > summary .tc-menu-lines::before { top: 0; transform: rotate(45deg); }
.tc-menu[open] > summary .tc-menu-lines::after { top: 0; transform: rotate(-45deg); }
.tc-menu-lines { display: block; position: relative; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.tc-menu-lines::before, .tc-menu-lines::after { position: absolute; content: ""; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.tc-menu-lines::before { top: -6px; }
.tc-menu-lines::after { top: 6px; }
.tc-header .tc-menu-panel {
  position: fixed;
  z-index: 2;
  inset: 0 auto 0 0;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-width: none;
  max-height: none;
  padding: max(10px, env(safe-area-inset-top)) 18px max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: var(--nav-surface);
  color: var(--nav-text);
  border: 0;
  border-radius: 0;
  box-shadow: 12px 0 44px #0c122b30;
}
.tc-header .tc-menu-panel[data-full-drawer] { width: 100%; }
.tc-header .tc-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; font-weight: 750; }
.tc-header .tc-drawer-heading button {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--nav-hover);
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.tc-header [data-drawer] .tc-drawer-heading button { display: inline-flex; }
.tc-header .tc-menu:not([data-drawer]) .tc-drawer-heading { padding-left: 58px; }
.tc-header .tc-menu-panel nav { display: block; padding: 0; border: 0; }
.tc-header .tc-menu-panel .tc-group + .tc-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--nav-border); }
.tc-header .tc-menu-panel .tc-group-title {
  margin: 5px 0 3px;
  color: var(--nav-muted);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .055em;
}
.tc-header .tc-menu-panel .tc-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 4px 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-text);
  font: inherit;
  font-size: .96rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tc-header .tc-menu-panel .tc-item[hidden] { display: none; }
.tc-header .tc-menu-panel .tc-item:hover { background: var(--nav-hover); }
.tc-header .tc-game-links { display: grid; grid-template-columns: minmax(0,1fr); }
.tc-header .tc-game-links [aria-current="true"] { background: var(--nav-hover); font-weight: 750; }
.tc-header .tc-game-links .tc-icon { --tc-icon-size: 1.65rem; }
.tc-header .tc-adult-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; }
@media (max-width: 340px) { .tc-header .tc-menu-panel { width: 100%; } }
@media (orientation: landscape) and (max-height: 490px) {
  .tc-header .tc-menu-panel { width: 100%; padding-right: max(18px, env(safe-area-inset-right)); }
  .tc-header .tc-menu-panel nav { display: grid; grid-template-columns: 1fr 1.65fr 1fr; gap: 12px; }
  .tc-header .tc-menu-panel .tc-group + .tc-group { margin: 0; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--nav-border); }
  .tc-header .tc-adult-links { grid-template-columns: minmax(0,1fr); }
}
.tc-header :is(a, button, summary, select):focus-visible { outline: 2px solid var(--nav-focus); outline-offset: 2px; }
/* One rounded-stroke icon set, sized by its surface. */
.tc-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--tc-icon-size);
  height: var(--tc-icon-size);
  border-radius: .36em;
  font-size: var(--tc-icon-size);
  color: var(--tc-icon-ink);
  background: var(--tc-icon-paper);
}
.tc-icon::before {
  content: "";
  width: 64%;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: var(--tc-icon-drawing) center / contain no-repeat;
  mask: var(--tc-icon-drawing) center / contain no-repeat;
}
.tc-icon--colours {
  --tc-icon-paper: #f3e4cd;
  --tc-icon-ink: #795335;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iNyIgY3k9IjgiIHI9IjMiLz48Y2lyY2xlIGN4PSIxNyIgY3k9IjgiIHI9IjMiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjE3IiByPSIzIi8+PC9zdmc+Cg==");
}
.tc-icon--shapes {
  --tc-icon-paper: #dcebe2;
  --tc-icon-ink: #41665a;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iNy41IiBjeT0iNy41IiByPSIzLjUiLz48cGF0aCBkPSJtMTYgOSA1IDEwSDExeiIvPjwvc3ZnPgo=");
}
.tc-icon--letters {
  --tc-icon-paper: #eee1f2;
  --tc-icon-ink: #654b77;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0ibTUgMTkgNy0xNCA3IDE0TTggMTRoOCIvPjwvc3ZnPgo=");
}
.tc-icon--bubbles {
  --tc-icon-paper: #deebf6;
  --tc-icon-ink: #3f6384;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iOC41IiBjeT0iMTUiIHI9IjUiLz48Y2lyY2xlIGN4PSIxNy41IiBjeT0iNyIgcj0iMy41Ii8+PHBhdGggZD0iTTYuNSAxMy41Yy4zLS43IDEtMS4yIDEuNy0xLjMiLz48L3N2Zz4K");
}
.tc-icon--tap {
  --tc-icon-paper: #f3e4cd;
  --tc-icon-ink: #795335;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTggMTNWN2EyIDIgMCAwIDEgNCAwdjVsMS0xYTIgMiAwIDAgMSAyIDBsNCAzYTIgMiAwIDAgMSAuNSAybC0xIDRIOWwtNC01YTIgMiAwIDAgMSAzLTJaIi8+PHBhdGggZD0iTTQgNSAzIDNtMTMgMyAxLTIiLz48L3N2Zz4K");
}
.tc-icon--replay {
  --tc-icon-paper: #dcebe2;
  --tc-icon-ink: #41665a;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTUgMTBhNyA3IDAgMSAxIDEuNCA3LjZNNSA1djVoNSIvPjwvc3ZnPgo=");
}
.tc-icon--spark {
  --tc-icon-paper: #eee1f2;
  --tc-icon-ink: #654b77;
  --tc-icon-drawing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTExIDNjMCA1LTIgNy03IDcgNSAwIDcgMiA3IDcgMC01IDItNyA3LTctNSAwLTctMi03LTdaIi8+PHBhdGggZD0iTTE5IDE1djZtLTMtM2g2Ii8+PC9zdmc+Cg==");
}

.hero:not(.topic) h1 em, .welcome h1, .journal-intro h1, .login-layout h1, .speech {
  font-family: var(--tc-hand);
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
}
.hero:not(.topic) h1 em { display: block; font-size: 1.13em; line-height: .96; }
:is(.hero, .journal-intro, .journal-article, .login-layout, .welcome) h1 { text-wrap: balance; }
.journal-intro h1, .login-layout h1 { font-size: var(--tc-display); line-height: 1.06; }
.welcome .game-tile-icon.tc-icon { --tc-icon-size: 2.375rem; }
@media (max-width: 420px) {
  .tc-header { column-gap: 8px; }
  .tc-header > .tc-brand img { width: 35px; height: 36px; }
  .tc-header > .tc-action.nav-play { padding-inline: 11px; }
}

.bar.tc-header { margin-top: 12px; padding-block: 0; }
@media (max-width: 600px) {
  .bar.tc-header, .shell { padding-inline: 20px; }
  .shell { padding-top: 12px; }
  main:has(> .feedback-header.tc-header) { margin-top: 12px; padding-inline: 20px; }
  .app:has(> .tc-header) { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
}

.tc-appearance-button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid var(--line, currentColor);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tc-appearance-button svg { width: 1.25rem; height: 1.25rem; flex: none; }
.tc-appearance-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
