@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 450 900;
  font-display: swap;
  src: url(/assets/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 450 900;
  font-display: swap;
  src: url(/assets/nunito-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/source-sans-3-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/source-sans-3-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;
}
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
:root {
  --header-height: 4.65rem; --white: #fff; --ink: #1b2b45; --muted: #506077; --blue: #2467df; --line: #e0e6ee; --sky: #e9f4ff;
  --focus-ring: none;
  -webkit-tap-highlight-color: transparent;
  color-scheme: light; background: var(--white); color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif; font-size: 100%; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); }
button, a { touch-action: manipulation; }
button { padding: 0; background: transparent; border: 0; font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus, :focus-visible { outline: none; }
/* Keyboard navigation marks the label or icon itself. */
:root:not([data-quiet-focus]) :is(a, button, summary, select):focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}
:root:not([data-quiet-focus]) :is(a, button, label):has(:focus-visible) :is(img, svg),
:root:not([data-quiet-focus]) :is(a, button):focus-visible :is(img, svg) {
  filter: brightness(.7);
}
:root:not([data-quiet-focus]) label:has(:is(input, textarea):focus-visible) {
  text-decoration: underline;
  text-underline-offset: .2em;
}
::selection { color: #173a73; background: #d3e6ff; }
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
main:not(.policy) { overflow-x: clip; }
.masthead { border-bottom: 1px solid var(--line); }
.topline, .foot-inner { width: min(100% - 2.5rem,42rem); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; }
.topline { min-height: var(--header-height); }
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { width: 8.8rem; height: auto; }
.language { display: inline-flex; align-items: center; gap: .57rem; font-size: .9rem; font-weight: 500; }
/* Let the unused space fall below the controls on tall displays. */
.intro {
  text-align: center;
  width: min(100% - 2.5rem, 42rem);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100lvh - var(--header-height));
  margin-inline: auto;
  padding: clamp(2rem, calc(25svh - 7rem), 11rem) 0 2.5rem;
}
.scene { width: min(100%,32.7rem); aspect-ratio: 1440/560; position: relative; margin-inline: auto; }
.scene > img { position: absolute; inset: 0; width: 100%; height: auto; pointer-events: none; }
.mascot { transform-origin: 60% 83%; }
.sounding .tiles { animation: tap .35s ease-out; }
@keyframes tap { 45% { transform: translateY(-2px); } }
.pronounce { position: absolute; left: 21%; bottom: -1%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: .42rem; min-height: 44px; padding: .2rem .55rem; color: #526179; font-size: .9rem; font-weight: 500; border-radius: .6rem; white-space: nowrap; }
.pronounce svg { color: var(--blue); }
.sound-rule { width: 1px; height: .88em; background: #cdd4dd; margin-inline: .04rem; }
h1, h2 { font-weight: 650; letter-spacing: -.036em; line-height: 1.08; text-wrap: balance; }
.intro h1 { margin-top: 1.55rem; font-size: clamp(2rem,7.15vw,3.55rem); }
.entry { display: grid; gap: .68rem; width: min(100%,22rem); margin: 2.85rem auto 0; }
.signin { min-height: 3.2rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: .73rem; font-size: 1rem; font-weight: 520; border-radius: .85rem; }
.signin img { object-fit: contain; }
.telegram { background: var(--blue); color: #fff; border: 1px solid var(--blue); box-shadow: 0 2px 0 #1b53b6; }
.provider { background: white; border: 1.5px solid #d6dde5; box-shadow: 0 2px 0 #d6dde5; }
.intro-copy { max-width: 35ch; margin: .8rem auto 0; color: var(--muted); line-height: 1.55; font-size: clamp(1rem, 2.45vw, 1.14rem); text-wrap: pretty; }
.notice { color: #964129; margin-top: .8rem; }
.chapter { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: clamp(2rem,6vh,4.2rem) 1.25rem; }
.chapter-inner { width: min(100%,37rem); margin-inline: auto; }
.chapter h2 { font-size: clamp(2.05rem,6.6vw,3.25rem); }
.lead { max-width: 35ch; margin-top: .8rem; color: var(--muted); font-size: clamp(1rem,2.3vw,1.15rem); line-height: 1.55; }
/* A longer example can move the centered game within its section. Keep the
   viewport on the section rather than following the previous word. */
.practice { background: var(--sky); overflow-anchor: none; }
.practice .lead { color: #36567a; }
.pace { background: white; }
.site-footer { border-top: 1px solid var(--line); }
.foot-inner { align-items: flex-start; gap: 1.5rem; padding-block: 2.4rem; }
.foot-brand img { width: 5.85rem; height: auto; }
.foot-brand span { display: block; color: var(--muted); font-size: .81rem; line-height: 1.5; margin-top: .15rem; }
.site-footer nav { display: grid; }
.site-footer a, .back { display: inline-flex; align-items: center; min-height: 44px; color: #455875; text-decoration: none; font-size: .9rem; }
.policy { width: min(100% - 2.5rem,40rem); margin-inline: auto; padding: clamp(2rem,5vw,4rem) 0; }
.policy h1 { font-size: clamp(1.85rem,6vw,3.1rem); overflow-wrap: anywhere; }
.policy .date { font-size: .88rem; color: var(--muted); }
.policy h2 { font-size: clamp(1.3rem,4vw,1.6rem); margin-top: 2rem; }
.policy p { margin-top: .85rem; color: #3f4e62; line-height: 1.65; }
.policy p a { color: #185cae; }
@media (min-width:52rem) and (min-height:36rem) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html.landing { scroll-snap-type:y proximity; }
  .landing .masthead, .landing .chapter { scroll-snap-align:start; }
  .landing .site-footer { scroll-snap-align:end; }
}
@media (any-pointer:coarse) {
  html.landing { scroll-snap-type:none; scroll-behavior:auto; }
}
@media (hover:hover) {
  .pronounce:hover { background: #f3f7fd; }
  .site-footer a:hover, .back:hover { color: var(--blue); text-decoration: underline; }
}
@media (max-width: 580px) {
  :root { --header-height: 3.95rem; }
  .brand img { width: 7.5rem; }
  .language { font-size: .85rem; gap: .43rem; }
  .language svg { width: 21px; }
  .intro { padding-top: clamp(1.6rem, calc(25svh - 6.35rem), 9rem); }
  .scene { width: min(100%,26rem); }
  .pronounce { bottom: -11%; font-size: .82rem; gap: .3rem; }
  .pronounce svg { width: 17px; }
  .intro h1 { margin-top: 1.95rem; }
  .entry { margin-top: 2.55rem; }
  .chapter { padding: clamp(1.7rem,5vh,3rem) 1.25rem; }
  .foot-inner { flex-direction: column; gap: .85rem; }
}
@media (max-width: 360px) {
  .intro,.topline,.foot-inner,.policy { width: calc(100% - 2rem); }
  .chapter { padding-inline: 1rem; }

}
@media (max-width: 580px) and (max-height: 635px) {
  .intro { padding: 1.4rem 0 1.2rem; }
  .intro .scene { max-width: 19.5rem; }
  .intro h1 { margin-top: 1.45rem; font-size: clamp(1.7rem, 7.6vw, 2rem); }
  .intro-copy { margin-top: .55rem; font-size: .96rem; line-height: 1.45; }
  .entry { gap: .55rem; margin-top: 1.75rem; }
  .signin { min-height: 2.9rem; }
}
@media (min-width: 581px) and (min-height: 651px) and (max-height: 780px) {
  .intro { padding-top: clamp(1rem, calc(75svh - 30rem), 5rem); padding-bottom: 1rem; }
  .intro .scene { max-width: 65svh; }
}
@media (orientation: landscape) and (max-height: 520px), (min-width: 581px) and (max-height: 650px) {
  :root { --header-height: 3.1rem; }
  .brand img { width: 7rem; }
  .intro {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    grid-template-areas: "scene title" "scene description" "scene entry";
    align-content: center;
    align-items: center;
    column-gap: clamp(1rem, 4vw, 2.75rem);
    padding-block: .9rem 1.25rem;
  }
  .intro .scene { grid-area: scene; width: 100%; }
  .intro h1 { grid-area: title; margin: 0; font-size: clamp(1.55rem, 3.8vw, 2rem); }
  .intro-copy { grid-area: description; margin: .35rem auto 0; font-size: .94rem; line-height: 1.35; }
  .intro .entry { grid-area: entry; gap: .38rem; margin-top: 1.55rem; }
  .intro .signin { min-height: 2.75rem; }
  .intro .notice { grid-column: 1 / -1; }
  .intro .pronounce { bottom: -16%; }
}
@media (prefers-reduced-motion: no-preference) {
  .wordgame-friend.route-arrived .quiz-cat { animation:cat-arrives .45s cubic-bezier(.2,.8,.25,1); }
  .lesson-route.route-arrived .resting-cat { animation:cat-arrives .5s ease-out; }
  @keyframes cat-arrives { from { transform:translate(-5px,3px) rotate(-2deg); } }
  .mascot {
    --stretch: welcome-stretch .72s cubic-bezier(.2,.8,.25,1) .14s backwards;
    animation: var(--stretch);
  }
  .sounding .mascot { animation: var(--stretch), cat-listens .47s ease-in-out; }
  @keyframes welcome-stretch {
    from { scale: .96 1.025; }
    55% { scale: 1.028 .965; }
    to { scale: 1; }
  }
  @keyframes cat-listens {
    0%, 100% { rotate: 0deg; }
    40% { rotate: -3deg; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot, .quiz-cat, .resting-cat, .tiles { transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
