/* Bulba guides: the app's light palette (src/theme/colors.ts) and Nunito, no JavaScript needed. */
@font-face { font-family: Nunito; src: url(/learn/fonts/Nunito_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(/learn/fonts/Nunito_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/learn/fonts/Nunito_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #FBF8F1; --surface: #FFFFFF; --surface-alt: #F3EEE2; --border: #E6DFCF;
  --text: #2F3A34; --muted: #6E7A72; --green: #8DBF9F; --green-soft: #DCEDE2; --green-deep: #4F8A66;
  --yellow-soft: #FBEFCB; --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 Nunito, system-ui, sans-serif; }
a { color: var(--green-deep); }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.start { font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--green-soft); color: #1F3A2A; }

h1 { font-weight: 800; font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 8px 0 16px; }
h2 { font-weight: 800; font-size: 25px; line-height: 1.25; margin: 40px 0 12px; }
.lead { font-size: 20px; }
.crumbs { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }
strong { font-weight: 800; }

.lt { font-weight: 700; }
.w { white-space: nowrap; position: relative; }
.say { position: relative; z-index: 1; }
/* Bulba jumps right out from behind the bulvė button, looks around, and drops back down. */
.peeker { position: absolute; z-index: 0; right: -3px; bottom: 0; width: 32px; pointer-events: none;
  transform-origin: 50% 100%; animation: peek 1.6s ease-in-out forwards; }
@keyframes peek {
  0% { transform: translateY(0) rotate(0); }
  22% { transform: translateY(-112%) rotate(0); }
  30% { transform: translateY(-100%) rotate(0); }
  42% { transform: translateY(-104%) rotate(-10deg); }
  56% { transform: translateY(-104%) rotate(10deg); }
  70% { transform: translateY(-102%) rotate(0); }
  100% { transform: translateY(0) rotate(0); }
}
/* Shy Bulba for its own name: sneaks out sideways from behind the button's right edge, eyes only, twice. */
.peeker.shy { width: 28px; right: 2px; bottom: 1px; transform-origin: 0 100%; animation: peek-shy 2.4s ease-in-out forwards; }
@keyframes peek-shy {
  0% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(45%) rotate(12deg); }
  34% { transform: translateX(45%) rotate(12deg); }
  42% { transform: translateX(0) rotate(0); }
  58% { transform: translateX(0) rotate(0); }
  72% { transform: translateX(55%) rotate(16deg); }
  86% { transform: translateX(55%) rotate(16deg); }
  100% { transform: translateX(0) rotate(0); }
}
/* The little pack for bulvytės: the whole bunch hops up above the button, bounces twice, and sinks back. */
.peeker.pack { width: 46px; right: -10px; animation: peek-pack 1.9s ease-in-out forwards; }
@keyframes peek-pack {
  0% { transform: translateY(0); }
  20% { transform: translateY(-125%); }
  32% { transform: translateY(-100%); }
  44% { transform: translateY(-125%); }
  56% { transform: translateY(-100%); }
  80% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}
/* One small potato for bulvytė: pops out from behind the button, comes round in front of it and
   zooms in, then shrinks and hides behind it again (z-index flips around the button's 1). */
.peeker.pop { width: 20px; right: 5px; bottom: 5px; transform-origin: 50% 50%; animation: pop 1.8s ease-in-out forwards; }
@keyframes pop {
  0% { transform: translateY(0) scale(0.8); z-index: 0; }
  22% { transform: translateY(-120%) scale(1); z-index: 0; }
  38% { transform: translateY(-120%) scale(1) rotate(-10deg); z-index: 0; }
  39% { z-index: 2; }
  60% { transform: translateY(0) scale(1.9); z-index: 2; }
  76% { transform: translateY(0) scale(1.9) rotate(8deg); z-index: 2; }
  86% { transform: translateY(0) scale(0.9); z-index: 2; }
  87% { z-index: 0; }
  100% { transform: translateY(0) scale(0.8); z-index: 0; }
}
.vs { color: var(--muted); margin: 0 8px; }
td.name { white-space: nowrap; }
.say { font: inherit; font-size: 12px; line-height: 1; width: 26px; height: 26px; margin: 0 2px 0 6px; vertical-align: 2px;
  border: 0; border-radius: 50%; background: var(--green); color: #1F3A2A; cursor: pointer; }
.say:hover, .say:focus-visible { background: var(--green-deep); color: #fff; outline: none; }
.gloss { color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-alt); font-weight: 800; font-size: 15px; }
tbody tr:last-child td { border-bottom: 0; }
td.letter { font-weight: 800; font-size: 20px; white-space: nowrap; }
td .gloss { display: block; font-size: 15px; }

.pairs { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pairs li { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.pairs .gloss { display: block; font-size: 16px; }
.pairs .contrast { grid-column: 1 / -1; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 6px; }
.tips li { margin: 6px 0; }

.faq { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; }

.cta { margin: 48px 0 0; padding: 24px; border-radius: var(--radius); background: var(--yellow-soft); text-align: center; }
.cta h2 { margin-top: 0; }
.button { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 14px; background: var(--green); color: #1F3A2A;
  font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 var(--green-deep); }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards a { display: block; padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.cards a:hover { border-color: var(--green); }
.cards span { display: block; color: var(--muted); font-size: 16px; }

.foot { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 15px; text-align: center; }
.foot a { color: var(--muted); }

/* /android/: numbered steps, each with its button. */
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; counter-reset: none; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.steps .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: #1F3A2A; font-weight: 800; display: grid; place-items: center; }
.steps h2 { margin: 4px 0 4px; font-size: 21px; }
.steps p { margin: 0 0 8px; }
