/* =========================================================
   English Effect — style.css (shared by every page)
   Brand: green #3BA62F, lime #8DC63F, dark #0F2A33, yellow #FFD43B
   ========================================================= */

:root {
  --green: #3BA62F;
  --green-dk: #2E8A24;
  --lime: #8DC63F;
  --dark: #0F2A33;
  --dark-2: #163B47;
  --dark-3: #1E4A57;
  --yellow: #FFD43B;
  --ink: #12262D;
  --muted: #5B6F75;
  --line: #E1E9E4;
  --soft: #F3F8F1;
  --white: #FFFFFF;

  --font: "Montserrat", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bn: "Hind Siliguri", "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --radius: 18px;
  /* shared card look: every card (course, feature, task, contact, cred) uses these */
  --card-pad: 1.6rem;
  --card-lift: translateY(-5px);
  --card-shadow: 0 28px 48px -34px rgba(15,42,51,.5);
  --card-move: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, background .3s;
}

/* smooth fade between pages (Chrome/Edge) */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  animation: pageIn .6s var(--ease) both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.bn { font-family: var(--bn); }

.wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Scroll reveal ----------
   JS only hides elements that start BELOW the screen, then shows them as you scroll. */
.pre { opacity: 0; transform: translateY(28px); }
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.7rem;
  font: 700 .95rem/1 var(--font); letter-spacing: .01em; text-decoration: none;
  border: 2px solid transparent; border-radius: 12px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
/* shine sweep on primary buttons */
.btn-green::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-green:hover::after { transform: translateX(120%); }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 10px 24px -12px rgba(59,166,47,.8); }
.btn-green:hover { background: var(--green-dk); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dk); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link { font-weight: 700; color: var(--green-dk); text-underline-offset: 4px; }

/* ---------- Navbar (injected by main.js) ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(15,42,51,.45); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--dark); flex: none; }
.logo img { height: 46px; width: auto; transition: transform .4s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.footer .logo img { height: 56px; }
.logo-mark {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--green); color: var(--white); font: 900 1.02rem/1 var(--font); letter-spacing: -.01em;
  transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark span { color: var(--yellow); }
.logo-name { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.logo-name b { font-weight: 800; color: var(--green); }
.logo-light { color: var(--white); }
.logo-light .logo-name b { color: var(--lime); }

.menu { display: flex; align-items: center; gap: 1.7rem; }
.menu > a:not(.btn), .drop > button {
  position: relative; text-decoration: none; font: 600 .93rem var(--font); color: var(--ink);
  background: none; border: 0; padding: .4rem 0; cursor: pointer;
}
.menu > a:not(.btn)::after, .drop > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.menu > a:not(.btn):hover::after, .menu > a.active::after, .drop:hover > button::after, .drop.active > button::after { transform: scaleX(1); }
.menu > a.active, .drop.active > button { color: var(--green-dk); }

.drop { position: relative; }
.drop > button { display: flex; align-items: center; gap: .35rem; }
.drop > button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .3s var(--ease); }
.drop:hover > button svg, .drop.open > button svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 520px;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .7rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(15,42,51,.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.drop-panel::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.drop:hover .drop-panel, .drop.open .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-panel a { display: flex; gap: .8rem; align-items: center; padding: .7rem; border-radius: 12px; text-decoration: none; transition: background .2s; }
.drop-panel a:hover { background: var(--soft); }
.drop-panel .chip { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: .78rem; letter-spacing: -.02em; }
.drop-panel b { display: block; font-size: .93rem; }
.drop-panel small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }

.burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; place-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: transform .25s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* course colour chips (used in nav + cards) */
.c-pte    { background: var(--dark);   color: var(--lime); }
.c-ielts  { background: var(--green);  color: var(--white); }
.c-spoken { background: var(--lime);   color: var(--dark); }
.c-kids   { background: var(--yellow); color: var(--dark); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 480px at 80% 10%, rgba(59,166,47,.25), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(141,198,63,.12), transparent 60%),
    var(--dark);
}
.hero::before { /* faint dotted world grid */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.route { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.4; stroke-dasharray: 2 9; stroke-linecap: round; }
.trail { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.pin { fill: var(--yellow); }
.pin-ring { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: .45; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
.pin-text { fill: rgba(255,255,255,.7); font: 700 12px var(--font); letter-spacing: .12em; }
.plane-body path { fill: var(--white); }
#plane { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); opacity: 0; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 3.5rem; align-items: center;
  padding-block: 4.5rem 8.5rem;
}
.creds { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.creds li {
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--lime); background: rgba(141,198,63,.1); border: 1px solid rgba(141,198,63,.3);
}
.creds li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(141,198,63,.25); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 900; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
/* headline: words rise one after another */
.hero h1 .w { display: inline-block; animation: wordUp .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes wordUp { from { opacity: 0; transform: translateY(40%) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 .hl { color: var(--lime); }
.hero-sub { margin-top: 1.4rem; max-width: 52ch; font-size: 1.15rem; line-height: 1.75; color: rgba(255,255,255,.8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Boarding pass ---------- */
.pass {
  position: relative; color: var(--ink); background: var(--white);
  border-radius: 20px; padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.6);
  max-width: 390px; justify-self: end; width: 100%;
  animation: passIn 1.1s .35s var(--ease) both;
}
@keyframes passIn { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: rotate(-2deg); } }
.pass:hover { transform: rotate(0deg) translateY(-4px); transition: transform .5s var(--ease); }
.pass-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.pass-brand { font-weight: 800; font-size: .85rem; color: var(--green); }
.pass-kind { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); background: var(--yellow); padding: .32rem .6rem; border-radius: 6px; }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.3rem 0 1.1rem; }
.pass-code { display: block; font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; color: var(--dark); }
.pass-city { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: .3rem; }
.pass-dest { text-align: right; }
.pass-dest .pass-code, .pass-dest .pass-city { transition: opacity .35s, transform .35s var(--ease); }
.pass-dest.swap .pass-code, .pass-dest.swap .pass-city { opacity: 0; transform: translateY(-8px); }
.pass-line { position: relative; flex: 1; max-width: 100px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 9px); }
.pass-line::after { /* small plane travelling along the dashed line */
  content: ""; position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin-top: -9px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z' transform='rotate(90 12 12)'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z' transform='rotate(90 12 12)'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: hop 3.2s var(--ease) infinite;
}
@keyframes hop { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 18px); opacity: 0; } }
.pass-info { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 0; padding: 1rem 0 1.2rem; border-top: 1px solid var(--line); }
.pass-info dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pass-info dd { margin: .15rem 0 0; font-weight: 700; font-size: 1rem; color: var(--dark); font-variant-numeric: tabular-nums; }
.pass-tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 -1.5rem 1.1rem; }
.pass-tear::before, .pass-tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--dark); }
.pass-tear::before { left: -11px; }
.pass-tear::after { right: -11px; }
.pass-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; background: var(--dark); color: var(--white); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .2s; }
.pass-cta:hover { background: var(--green); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--green); color: var(--white); padding-block: 1.05rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; gap: 3rem; font-weight: 800; font-size: 1.05rem; white-space: nowrap; letter-spacing: -.01em; }
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: 6rem; position: relative; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: var(--white); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
.head > div { max-width: 640px; }
.kicker { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--green-dk); margin-bottom: .7rem; }
.section-dark .kicker { color: var(--lime); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.lead { margin-top: .9rem; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.section-dark .lead { color: rgba(255,255,255,.72); }

/* ---------- Course cards ---------- */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.course {
  display: flex; flex-direction: column; min-width: 0; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: var(--card-move);
}
.course:hover { transform: var(--card-lift); box-shadow: var(--card-shadow); border-color: var(--lime); }
.thumb {
  position: relative; aspect-ratio: 16 / 11; max-width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem 1.25rem; overflow: hidden;
}
.thumb::before, .thumb::after { content: ""; position: absolute; border-radius: 50%; transition: transform .8s var(--ease); }
.thumb::after { width: 150%; aspect-ratio: 1; right: -78%; top: -95%; border: 28px solid rgba(255,255,255,.13); }
.thumb::before { width: 60%; aspect-ratio: 1; right: -18%; top: -22%; border: 14px solid rgba(255,255,255,.1); }
.course:hover .thumb::after { transform: rotate(40deg) scale(1.08); }
.course:hover .thumb::before { transform: translate(-12px, 14px); }
.c-spoken.thumb::after, .c-kids.thumb::after, .c-spoken.thumb::before, .c-kids.thumb::before { border-color: rgba(15,42,51,.08); }
.thumb-word { position: relative; z-index: 1; font-size: 3.3rem; font-weight: 900; letter-spacing: -.05em; line-height: .9; transition: transform .6s var(--ease); transform-origin: left bottom; }
.course:hover .thumb-word { transform: scale(1.08); }
.thumb-note { position: relative; z-index: 1; margin-top: .55rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.3rem 1.35rem; color: var(--ink); }
.course h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.course-body > p { margin-top: .5rem; color: var(--muted); font-size: .95rem; flex: 1; }
.course-more { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--green-dk); }
.course-more i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); transition: background .3s, transform .4s var(--ease); }
.course-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.course:hover .course-more i { background: var(--green); color: var(--white); transform: rotate(-45deg); }

/* ---------- Live band + countdown ---------- */
.live { position: relative; overflow: hidden; background: var(--yellow); color: var(--dark); }
.live::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; aspect-ratio: 1; border-radius: 50%; border: 50px solid rgba(15,42,51,.06); }
.live-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 3rem; align-items: center; padding-block: 3.5rem; }
.live .h2 { max-width: 18ch; }
.live p { margin-top: .7rem; max-width: 50ch; font-size: 1.05rem; }
.live-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.countdown { display: flex; gap: .6rem; }
.countdown div { min-width: 78px; padding: .8rem .6rem .7rem; border-radius: 14px; background: var(--dark); color: var(--white); text-align: center; }
.countdown b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown small { display: block; margin-top: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.countdown b.tick { animation: tick .4s var(--ease); }
@keyframes tick { from { transform: translateY(-30%); opacity: .2; } to { transform: none; opacity: 1; } }
.live-now { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: #C62828; }
.live-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #E53935; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { padding: var(--card-pad); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); min-width: 0; transition: var(--card-move); }
.feature:hover { transform: var(--card-lift); border-color: var(--lime); box-shadow: var(--card-shadow); }
.section-dark .feature { background: var(--dark-2); border-color: rgba(255,255,255,.08); }
.section-dark .feature:hover { border-color: var(--lime); }
.f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--green-dk); margin-bottom: 1.3rem; }
.section-dark .f-icon { background: rgba(141,198,63,.12); color: var(--lime); }
.f-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .45rem; }
.feature p { color: var(--muted); }
.section-dark .feature p { color: rgba(255,255,255,.7); }

/* ---------- Timeline steps (line draws on scroll) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 12%; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.timeline.in::before { transform: scaleX(1); }
.timeline li { position: relative; counter-increment: s; min-width: 0; }
.timeline li::before {
  content: counter(s); position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem; border-radius: 16px;
  background: var(--green); color: var(--white); font-weight: 900; font-size: 1.3rem;
  box-shadow: 0 12px 24px -12px rgba(59,166,47,.9);
}
.timeline h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .35rem; }
.timeline p { color: var(--muted); }
.section-dark .timeline p { color: rgba(255,255,255,.7); }

/* ---------- Instructor teaser ---------- */
.instructor { display: grid; grid-template-columns: 380px 1fr; gap: 4.5rem; align-items: center; }
.photo-wrap { position: relative; }
.photo-wrap::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 24px; border: 2px solid var(--lime); transition: transform .6s var(--ease); }
.photo-wrap:hover::before { transform: translate(-10px, -10px); }
.photo { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 24px; box-shadow: 0 40px 60px -40px rgba(15,42,51,.55); }
.photo-empty { display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, var(--green), var(--dark)); }
.photo-empty::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; border: 30px solid rgba(141,198,63,.25); left: -60%; bottom: -60%; }
.photo-empty span { position: relative; font-size: 4rem; font-weight: 900; letter-spacing: -.04em; color: var(--white); }
.instructor-text { min-width: 0; }
.badges { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; max-width: 460px; }
.badges li { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.badges li i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--green-dk); }
.badges svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badges b { display: block; font-weight: 800; color: var(--green-dk); }
.instructor-text p { max-width: 60ch; font-size: 1.06rem; margin-bottom: 1.6rem; }

/* ---------- Credentials (data: assets/js/credentials.js) ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cred { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--card-move); }
.cred:hover { transform: var(--card-lift); border-color: var(--lime); box-shadow: var(--card-shadow); }
.cred-img { display: block; aspect-ratio: 4 / 3; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.cred-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s var(--ease); }
.cred-img.is-certificate img { object-position: center top; }
.cred:hover .cred-img img { transform: scale(1.04); }
.cred-body { display: flex; flex-direction: column; flex: 1; gap: .45rem; padding: var(--card-pad); }
.cred-issuer { align-self: flex-start; padding: .25rem .65rem; border-radius: 999px; background: var(--soft); color: var(--green-dk); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.cred h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.cred-date { color: var(--muted); font-size: .88rem; }
.cred-view { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--green-dk); text-decoration: none; }
.cred-view svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cred-view:hover svg { transform: translateX(4px); }
.cred-mini-wrap { margin: 0 0 1.6rem; }
.cred-mini-wrap .kicker { margin-bottom: .5rem; }
.cred-mini { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.cred-thumb { display: block; width: 76px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: var(--card-move); }
.cred-thumb:hover { transform: var(--card-lift); border-color: var(--lime); box-shadow: var(--card-shadow); }
.cred-mini img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cred-all { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--green-dk); text-decoration: none; }
.cred-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Packages (PTE / IELTS). Data: assets/js/courses-data.js ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.pkg { position: relative; grid-column: span 3; display: flex; flex-direction: column; gap: .55rem; min-width: 0; padding: var(--card-pad); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: var(--card-move); }
.pkg:hover { transform: var(--card-lift); border-color: var(--lime); box-shadow: var(--card-shadow); }
.pkg-private { grid-column: span 5; }
.pkg-full { grid-column: span 7; padding: calc(var(--card-pad) + .4rem); border: 2px solid var(--green); box-shadow: 0 28px 48px -36px rgba(59,166,47,.7); }
.pkg-full:hover { border-color: var(--green); }
.pkg-chip { align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; background: var(--yellow); color: var(--dark); font-size: .75rem; font-weight: 800; letter-spacing: .03em; }
.pkg h3 { font-size: 1.15rem; font-weight: 800; }
.pkg-full h3 { font-size: 1.4rem; }
.pkg-desc { color: var(--muted); font-size: .95rem; }
.pkg-note { padding: .5rem .75rem; border-radius: 10px; background: var(--soft); color: var(--green-dk); font-size: .85rem; }
.pkg-note-lg { margin: 0 0 1.2rem; font-size: .95rem; }
.pkg-fee { margin-top: auto; padding-top: .6rem; }
.pkg-fee b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pkg-full .pkg-fee b { font-size: 2rem; color: var(--green-dk); }
.pkg-compare { color: var(--muted); font-size: .82rem; }
.pkg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.pkg-actions .btn { flex: 1 1 auto; }
.pkg-back { margin-top: 1.6rem; }
@media (max-width: 1080px) {
  .pkg, .pkg-private, .pkg-full { grid-column: span 6; }
}
@media (max-width: 640px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg, .pkg-private, .pkg-full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pkg:hover { transform: none; }
}

/* ---------- Menu: small dropdowns (Free Tools, About) + FREE chip ---------- */
.drop-sm .drop-panel { width: 300px; grid-template-columns: 1fr; }
.chip.c-plain { background: var(--soft); color: var(--green-dk); }
.chip.c-plain svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.free-chip { display: inline-flex; align-items: center; padding: .12rem .42rem; border-radius: 6px; background: var(--lime); color: var(--dark); font-size: .62rem; font-weight: 800; letter-spacing: .06em; line-height: 1.4; }

/* ---------- Home: Free tools ---------- */
.tools-sec { padding-bottom: 0; }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.tool-card { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "chip prev" "title prev" "text prev" "go prev"; align-content: start; gap: .5rem 1.4rem; min-width: 0; padding: 1.8rem; border-radius: var(--radius); color: var(--white); text-decoration: none; overflow: hidden; transition: var(--card-move); }
.tool-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; aspect-ratio: 1; border-radius: 50%; border: 28px solid rgba(255,255,255,.07); transition: transform .6s var(--ease); pointer-events: none; }
.tool-card:hover { transform: var(--card-lift); box-shadow: var(--card-shadow); }
.tool-card:hover::after { transform: translate(-14px, -10px); }
.tc-ielts { background: linear-gradient(135deg, #1F6E1A, var(--green)); }
.tc-pte { background: var(--dark); }
.tool-card .free-chip { grid-area: chip; justify-self: start; }
.tool-card h3 { grid-area: title; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tool-card p { grid-area: text; color: rgba(255,255,255,.78); font-size: .95rem; max-width: 34ch; }
.tool-go { grid-area: go; display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-weight: 700; font-size: .92rem; color: var(--lime); }
.tc-ielts .tool-go { color: var(--yellow); }
.tool-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.tool-card:hover .tool-go svg { transform: translateX(4px); }
.tool-prev { grid-area: prev; align-self: center; position: relative; z-index: 1; width: 128px; height: 112px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; align-content: center; }
.tool-prev small { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.tool-prev b { font-size: 2.9rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--white); transition: transform .4s var(--ease); }
.tool-card:hover .tool-prev b { transform: scale(1.08); }
.tool-bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 16px 18px 14px; }
.tool-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--lime), var(--green)); transform-origin: bottom; transition: transform .45s var(--ease); }
.tool-bars i:nth-child(3) { background: linear-gradient(180deg, var(--yellow), #E9B500); }
.tool-card:hover .tool-bars i { transform: scaleY(1.08); }
.tool-target { position: absolute; left: 12px; right: 12px; top: 34%; border-top: 2px dashed rgba(255,212,59,.85); }

/* ---------- PTE/IELTS page: small link to the calculator ---------- */
.tool-link { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--green); text-decoration: none; color: var(--ink); transition: var(--card-move); }
.tool-link:hover { transform: var(--card-lift); border-style: solid; box-shadow: var(--card-shadow); }
.tool-link > span:not(.free-chip) { flex: 1; min-width: 0; }
.tool-link b { display: block; font-weight: 800; }
.tool-link small { display: block; color: var(--muted); font-size: .9rem; }
.tool-link i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--green-dk); }
.tool-link i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 860px) {
  .drop-sm .drop-panel { width: auto; }
  .drop > button .free-chip { margin: 0 auto 0 .5rem; }  /* keep chip next to the label */
}
@media (max-width: 760px) {
  .tool-cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tool-card { grid-template-columns: 1fr; grid-template-areas: "chip" "prev" "title" "text" "go"; }
  .tool-prev { width: 100%; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card:hover, .tool-link:hover, .tool-card:hover::after, .tool-card:hover .tool-prev b, .tool-card:hover .tool-bars i, .tool-card:hover .tool-go svg { transform: none; }
}

/* ---------- Level test card, NEW chip, word-of-day slot, courses banner ---------- */
.new-chip { display: inline-flex; vertical-align: 2px; margin-left: .35rem; padding: .08rem .38rem; border-radius: 6px; background: var(--yellow); color: var(--dark); font-size: .6rem; font-weight: 800; letter-spacing: .06em; }
.tc-level { grid-column: 1 / -1; padding: 2.2rem 2.4rem; background: linear-gradient(120deg, var(--dark) 0%, #17414D 55%, #1F6E1A 130%); border: 2px solid var(--lime); }
.tc-level h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.tc-level p { max-width: 52ch; font-size: 1rem; }
.tool-levels { width: 220px; height: 120px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.tool-levels i { flex: 1; display: grid; place-items: end center; padding-bottom: 6px; border-radius: 8px 8px 4px 4px; background: rgba(141,198,63,.35); color: var(--white); font-style: normal; font-size: .72rem; font-weight: 800; transition: transform .45s var(--ease), background .3s; transform-origin: bottom; }
.tool-levels i:nth-child(1) { height: 35%; }
.tool-levels i:nth-child(2) { height: 55%; }
.tool-levels i:nth-child(3) { height: 75%; background: var(--lime); color: var(--dark); }
.tool-levels i:nth-child(4) { height: 95%; }
.tc-level:hover .tool-levels i { transform: scaleY(1.06); }
.wod-slot { margin-top: 1.4rem; }
.lt-banner { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; padding: .85rem 1.1rem; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; transition: var(--card-move); }
.lt-banner:hover { border-color: var(--lime); transform: var(--card-lift); box-shadow: var(--card-shadow); }
.lt-banner > span:not(.free-chip) { flex: 1; min-width: 0; }
.lt-banner b { color: var(--green-dk); }
.lt-banner i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--green-dk); }
.lt-banner i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) {
  .tc-level { padding: 1.8rem; }
  .tool-levels { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-level:hover .tool-levels i, .lt-banner:hover { transform: none; }
}

/* Lightbox */
html.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,22,27,.94); color: var(--white); }
.lightbox::backdrop { background: rgba(8,22,27,.6); }
.lightbox[open] { display: grid; place-items: center; animation: pageIn .25s ease both; }
.lb-figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 4.5rem 4.5rem 1.5rem; }
.lb-figure img { max-width: min(100%, 960px); max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: var(--white); }
.lb-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3rem .7rem; max-width: 760px; text-align: center; font-size: .92rem; color: rgba(255,255,255,.82); }
.lb-issuer { color: var(--lime); }
.lb-count { color: rgba(255,255,255,.55); }
.lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Big CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 4rem 3.5rem;
  background: var(--dark); color: var(--white);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-box::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; right: -160px; top: -240px; background: radial-gradient(circle, rgba(59,166,47,.5), transparent 65%); animation: float 8s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(-80px, 60px); } }
.cta-box > * { position: relative; }
.cta-box p { margin-top: .8rem; color: rgba(255,255,255,.75); max-width: 50ch; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--dark);
  padding-block: 4.5rem 4.5rem;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px); background-size: 26px 26px;
}
.page-hero .ghost {
  position: absolute; right: -2%; bottom: -12%; z-index: 0;
  font-size: clamp(8rem, 22vw, 18rem); font-weight: 900; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(141,198,63,.22);
  animation: drift 14s ease-in-out infinite alternate; white-space: nowrap; pointer-events: none;
}
@keyframes drift { to { transform: translateX(-6%); } }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs span::before { content: "/"; margin-right: .5rem; opacity: .5; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; max-width: 18ch; text-wrap: balance; }
.page-hero p { margin-top: 1.1rem; max-width: 58ch; font-size: 1.12rem; color: rgba(255,255,255,.78); }
.page-hero .hero-cta { margin-top: 1.8rem; }
.page-hero > .wrap > * { animation: rise .8s var(--ease) both; }
.page-hero > .wrap > *:nth-child(2) { animation-delay: .08s; }
.page-hero > .wrap > *:nth-child(3) { animation-delay: .16s; }
.page-hero > .wrap > *:nth-child(4) { animation-delay: .24s; }
.page-hero > .wrap > *:nth-child(5) { animation-delay: .32s; }
.page-hero .hero-meta { margin-top: .7rem; font-size: .95rem; font-weight: 700; letter-spacing: .02em; color: var(--lime); }
.ph-pte    { background: var(--dark); }
.ph-ielts  { background: linear-gradient(135deg, #1F6E1A, var(--green)); }
.ph-ielts .ghost { -webkit-text-stroke-color: rgba(255,255,255,.2); }
.ph-spoken { background: linear-gradient(135deg, var(--dark), #2E5A2A); }
.ph-kids   { background: linear-gradient(135deg, var(--dark), #4A4A1A); }
.ph-kids .ghost { -webkit-text-stroke-color: rgba(255,212,59,.28); }

/* ---------- Course detail layout ---------- */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 3.5rem; align-items: start; }
.detail-main { min-width: 0; display: grid; gap: 4rem; }
.detail-main .h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 1.4rem; }
.side {
  position: sticky; top: 100px; padding: 1.6rem; border-radius: 22px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15,42,51,.5);
}
.side h3 { font-size: 1.1rem; font-weight: 800; }
.side dl { margin: 1.2rem 0 1.4rem; display: grid; gap: .1rem; }
.side dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.side dt { color: var(--muted); }
.side dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.side .btn + .btn { margin-top: .7rem; }
.side small { display: block; margin-top: 1rem; color: var(--muted); font-size: .85rem; }

.tasks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.task { padding: var(--card-pad); border-radius: var(--radius); background: var(--soft); border: 1px solid transparent; transition: var(--card-move); min-width: 0; }
.task:hover { border-color: var(--lime); background: var(--white); transform: var(--card-lift); box-shadow: var(--card-shadow); }
.task h3 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.task h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--green); transform: rotate(45deg); }
.task p { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.task ul { margin: .7rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.task li { font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; min-width: 0; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

/* score scale meter */
.meter { padding: 1.8rem; border-radius: 20px; background: var(--dark); color: var(--white); }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.meter-top h3 { font-size: 1.05rem; font-weight: 700; }
.meter-top span { font-size: .85rem; color: rgba(255,255,255,.6); }
.meter-bar { position: relative; height: 14px; margin: 2.2rem 0 .8rem; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--green), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease); }
.meter.in .meter-fill { transform: scaleX(1); }
.meter-scale { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.bands { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 2rem 0 .8rem; }
.bands span { height: 46px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: end center; padding-bottom: 4px; font-size: .8rem; font-weight: 800; color: rgba(255,255,255,.5); transition: background .4s, color .4s, transform .4s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.meter.in .bands span { background: var(--green); color: var(--white); transform: translateY(calc((9 - var(--i)) * 0px)); }
.meter.in .bands span:nth-child(n+7) { background: var(--lime); color: var(--dark); }
.meter.in .bands span:nth-child(n+9) { background: var(--yellow); color: var(--dark); }
.meter-note { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: .6rem; }

/* ---------- Course finder (courses page) ---------- */
.finder { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.finder button {
  font: 600 .93rem var(--bn); padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.finder button:hover { border-color: var(--green); transform: translateY(-2px); }
.finder button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--white); }
.courses.filtering .course { opacity: .28; transform: scale(.97); filter: grayscale(.6); }
.courses.filtering .course.match { opacity: 1; transform: translateY(-6px); filter: none; box-shadow: 0 30px 50px -30px rgba(15,42,51,.55); }
.finder-msg { min-height: 1.6em; margin: -1.2rem 0 1.6rem; color: var(--green-dk); font-weight: 600; }

/* compare table */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
thead th { background: var(--soft); font-weight: 800; }
tbody th { font-weight: 700; color: var(--muted); width: 18%; }
tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Enroll page ---------- */
.enroll { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: s; display: grid; gap: 1.6rem; }
.steps li { position: relative; padding-left: 3.6rem; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: var(--white); font-weight: 800; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: -1.4rem; width: 2px; background: var(--line); }
.steps h3 { font-size: 1.08rem; font-weight: 700; }
.steps p { color: var(--muted); margin-top: .2rem; }
.pay { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 340px; margin-top: .7rem; padding: .7rem .7rem .7rem 1rem; border-radius: 12px; background: var(--soft); font-size: .95rem; }
.pay span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.pay b { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.pay-head { margin-top: 1.4rem; font-weight: 700; color: var(--dark); }
.pay-note { max-width: 340px; margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.copy-btn { font: 700 .78rem var(--font); padding: .45rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--dark); color: var(--white); }

.form { padding: 2.2rem; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 70px -45px rgba(15,42,51,.5); display: grid; gap: .45rem; }
.form h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .4rem; }
.form label { font-size: .85rem; font-weight: 700; margin-top: .55rem; display: block; }
.form input, .form select {
  width: 100%; min-height: 50px; padding: 0 1rem; font: 500 1rem var(--font); color: var(--ink);
  background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(59,166,47,.15); }
.form .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: .9rem; }
.form .row > div { min-width: 0; }
.form .btn { margin-top: 1.2rem; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.form-note.ok { color: var(--green-dk); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; }
.botcheck { display: none; }  /* Web3Forms spam trap: bots tick it, people never see it */

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: start; }
.faq-nav { position: sticky; top: 100px; display: grid; gap: .3rem; }
.faq-nav a { padding: .7rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--muted); transition: background .2s, color .2s; }
.faq-nav a:hover { background: var(--soft); color: var(--ink); }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq-group .faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-weight: 600; font-size: 1.06rem; transition: color .2s; }
.faq summary:hover { color: var(--green-dk); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8A24' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.faq .ans { overflow: hidden; }
.faq p { padding-bottom: 1.25rem; color: var(--muted); max-width: 65ch; }
.faq[open] p { animation: rise .45s var(--ease); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.contact { display: flex; flex-direction: column; gap: .5rem; padding: 1.7rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; min-width: 0; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.contact:hover { transform: var(--card-lift); border-color: var(--lime); box-shadow: var(--card-shadow); }
.contact .f-icon { margin-bottom: .6rem; }
.contact h3 { font-size: 1.08rem; font-weight: 800; }
.contact p { color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.contact b { margin-top: auto; padding-top: .8rem; color: var(--green-dk); font-size: .9rem; }

/* ---------- Footer (injected) ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding-block: 4.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid > div { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .4rem; }
.footer a:not(.logo) { text-decoration: none; width: fit-content; transition: color .2s, transform .2s; }
.footer a:not(.logo):hover { color: var(--lime); transform: translateX(3px); }
.tagline { margin-top: .9rem; font-weight: 800; font-size: 1.1rem; color: var(--white); max-width: 18ch; line-height: 1.3; }
.footer .small { font-size: .88rem; }
.copy { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* back to top */
.to-top { position: fixed; right: calc(max(20px, env(safe-area-inset-right, 0px)) + 4px); bottom: calc(20px + 56px + 12px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; background: var(--green); color: var(--white); display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(59,166,47,.9); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), bottom .45s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* floating WhatsApp button (injected by main.js on every page) */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; align-items: center; justify-content: flex-end; height: 56px; border-radius: 999px;
  background: var(--green); color: var(--white); text-decoration: none;
  box-shadow: 0 16px 30px -12px rgba(59,166,47,.85), 0 2px 6px rgba(15,42,51,.18);
  transition: transform .35s var(--ease), opacity .3s, background .2s, bottom .45s var(--ease);
}
.wa-float:hover { background: var(--green-dk); }
.wa-icon { flex: 0 0 56px; height: 56px; display: grid; place-items: center; }
.wa-icon svg { width: 28px; height: 28px; fill: currentColor; }
/* label slides out on hover (desktop only) */
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-weight: 700; font-size: .9rem; transition: max-width .4s var(--ease), opacity .25s, padding .4s var(--ease); }
@media (hover: hover) and (min-width: 861px) {
  .wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 220px; opacity: 1; padding-left: 1.3rem; }
}
.wa-float.bounce { animation: waBounce 1.1s var(--ease) 1; }
@keyframes waBounce { 0%, 100% { transform: none; } 20% { transform: translateY(-12px); } 40% { transform: none; } 60% { transform: translateY(-5px); } 80% { transform: none; } }
/* phone: tucked away while typing in a form or while the Enroll submit button is on screen */
.wa-float.tucked { opacity: 0; transform: translateY(24px) scale(.8); pointer-events: none; }
.to-top.show.tucked { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 640px) {
  .wa-float { height: 52px; }
  .wa-icon { flex-basis: 52px; height: 52px; }
  .to-top { right: calc(max(20px, env(safe-area-inset-right, 0px)) + 2px); bottom: calc(20px + 52px + 12px + env(safe-area-inset-bottom, 0px)); }
  /* so the last line of the footer can scroll clear of both floating buttons */
  .footer { padding-bottom: calc(2rem + 140px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float.bounce { animation: none; }
}
/* phone install banner (install.js adds html.ee-bar-open): lift both buttons above it.
   The banner is up to ~108px tall on a 390px phone (text wraps), so 124px keeps a gap. */
html.ee-bar-open .wa-float { bottom: calc(20px + 124px + env(safe-area-inset-bottom, 0px)); }
html.ee-bar-open .to-top { bottom: calc(20px + 56px + 12px + 124px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  html.ee-bar-open .to-top { bottom: calc(20px + 52px + 12px + 124px + env(safe-area-inset-bottom, 0px)); }
}
/* header "Install app" button (shown by install.js). No room in the desktop menu between
   861px and 1100px, so it is hidden there; the phone menu (860px and below) still has it. */
.menu [data-install-app] { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1100px) {
  html.ee-can-install .menu [data-install-app] { display: none; }
}
/* menu labels never wrap; tighter spacing on small laptops/tablets */
@media (min-width: 861px) {
  .menu > a:not(.btn), .drop > button { white-space: nowrap; }
}
@media (min-width: 861px) and (max-width: 980px) {
  .menu { gap: .95rem; }
  .menu > a:not(.btn), .drop > button { font-size: .88rem; }
  .menu .btn-sm { padding: 0 .95rem; }
}

/* scroll progress bar */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--green), var(--lime), var(--yellow)); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .menu { gap: 1.2rem; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem 8rem; }
  .pass { justify-self: start; }
  .instructor, .enroll, .detail, .live-inner, .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .photo-wrap { max-width: 320px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .timeline::before { display: none; }
  .side { position: static; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; }
  .cta-box { grid-template-columns: 1fr; padding: 3rem 2rem; }
}
@media (max-width: 860px) {
  .burger { display: grid; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 76px); overflow-y: auto;
    padding: .5rem max(20px, env(safe-area-inset-right, 0px)) 1.4rem max(20px, env(safe-area-inset-left, 0px));
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(15,42,51,.5);
  }
  .menu.open { display: flex; animation: rise .35s var(--ease); }
  .menu > a:not(.btn), .drop > button { padding: .95rem 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; justify-content: space-between; }
  .menu > a:not(.btn)::after, .drop > button::after { display: none; }
  .drop-panel { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .3rem 0; }
  .drop.open .drop-panel { display: grid; transform: none; }
  .drop:hover .drop-panel { transform: none; }
  .menu .btn { margin-top: 1rem; }
}
@media (max-width: 640px) {
  .courses, .features, .timeline, .tasks, .checks, .contact-grid, .cred-grid { grid-template-columns: 1fr; }
  .lb-figure { padding: 4.2rem .75rem 5.5rem; }
  .lb-figure img { max-height: calc(100dvh - 13rem); }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .section { padding-block: 4.2rem; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown b { font-size: 1.6rem; }
  .form { padding: 1.5rem; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bands span { height: 38px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* keep gentle fades, remove movement */
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; }
  .pre { transform: none; }
  .meter-fill { transform: none; }
}

/* =========================================================
   Games (games.html, typing.html, kids-game.html)
   ========================================================= */
.game-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.game-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; text-decoration: none; color: var(--white); background: var(--dark); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.game-card:hover { transform: translateY(-8px); box-shadow: 0 40px 60px -36px rgba(15,42,51,.7); }
.game-art { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; display: grid; place-items: center; }
.game-art.typing { background: radial-gradient(500px 260px at 70% 0%, rgba(141,198,63,.35), transparent 60%), var(--dark-2); }
.game-art.kids { background: var(--yellow); }
.game-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.game-body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.game-body p { color: rgba(255,255,255,.75); flex: 1; }
.game-body .course-more { color: var(--lime); border-top-color: rgba(255,255,255,.12); }
.game-body .course-more i { background: rgba(255,255,255,.08); }
.game-card:hover .course-more i { background: var(--lime); color: var(--dark); }
/* animated keyboard art */
.kb { display: grid; gap: 7px; transform: rotate(-6deg); }
.kb div { display: flex; gap: 7px; justify-content: center; }
.kb span { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); animation: key 3.2s infinite; animation-delay: calc(var(--k) * 220ms); }
@keyframes key { 0%, 12%, 100% { background: rgba(255,255,255,.07); transform: none; color: rgba(255,255,255,.75); } 5% { background: var(--lime); color: var(--dark); transform: translateY(3px); } }
/* floating tiles art */
.float-tiles { display: flex; gap: 10px; }
.float-tiles span { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 1.8rem; color: var(--dark); background: var(--white); box-shadow: 0 10px 0 rgba(15,42,51,.15); animation: bob 2.6s ease-in-out infinite; animation-delay: calc(var(--k) * 180ms); }
.float-tiles span:nth-child(2) { background: var(--lime); }
.float-tiles span:nth-child(3) { background: var(--green); color: var(--white); }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-4deg); } }
.float-emoji { position: absolute; font-size: 2.6rem; animation: bob 3.4s ease-in-out infinite; }

/* shared game shell */
.game { max-width: 920px; margin-inline: auto; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { font: 700 .88rem var(--font); padding: .6rem 1rem; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(15,42,51,.4); }
.panel { position: relative; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(15,42,51,.55); padding: 2rem; }

/* typing */
.tt-stats { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 1rem; align-items: center; margin-bottom: 1.6rem; }
.tt-timer { position: relative; width: 96px; height: 96px; }
.tt-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-timer circle { fill: none; stroke-width: 7; }
.tt-timer .bg { stroke: var(--soft); }
.tt-timer .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.tt-timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat { padding: 1rem 1.1rem; border-radius: 16px; background: var(--soft); min-width: 0; }
.stat small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; margin-top: .2rem; font-size: 1.7rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tt-area { position: relative; cursor: text; }
.tt-text { height: 9.6rem; overflow: hidden; font-size: 1.45rem; line-height: 3.2rem; font-weight: 500; color: #9AABAF; letter-spacing: .01em; word-break: break-word; scroll-behavior: smooth; }
.tt-text span { transition: color .1s; }
.tt-text .ok { color: var(--ink); }
.tt-text .bad { color: #D93025; background: rgba(217,48,37,.1); border-radius: 3px; }
.tt-text .cur { position: relative; }
.tt-text .cur::before { content: ""; position: absolute; left: -1px; top: .45em; height: 1.2em; width: 2.5px; border-radius: 2px; background: var(--green); animation: blink 1s steps(1) infinite; }
.running .tt-text .cur::before { animation: none; }
.tt-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.tt-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); backdrop-filter: blur(2px); border-radius: 12px; font-weight: 700; color: var(--green-dk); }
.tt-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
kbd { font: 700 .78rem var(--font); padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); }
.result { position: absolute; inset: 0; z-index: 3; border-radius: 24px; background: var(--dark); color: var(--white); display: grid; place-items: center; text-align: center; padding: 2rem; animation: rise .5s var(--ease); }
.result h2 { font-size: 1.1rem; font-weight: 700; color: var(--lime); }
.result .big { display: flex; justify-content: center; gap: 2.5rem; margin: 1rem 0 .4rem; flex-wrap: wrap; }
.result .big div b { display: block; font-size: clamp(2.8rem, 7vw, 4.2rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.result .big div small { color: rgba(255,255,255,.6); font-weight: 600; }
.result p { color: rgba(255,255,255,.78); margin: .6rem 0 1.4rem; }
.new-best { display: inline-block; margin-top: .8rem; padding: .35rem .8rem; border-radius: 999px; background: var(--yellow); color: var(--dark); font-weight: 800; font-size: .8rem; animation: wordUp .6s var(--ease); }

/* kids game */
.kg-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.kg-progress { flex: 1; height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.kg-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.kg-chip { padding: .45rem .85rem; border-radius: 999px; background: var(--soft); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kg-chip.star { background: var(--yellow); }
.kg-stage { text-align: center; }
.kg-pic { font-size: clamp(5rem, 16vw, 7.5rem); line-height: 1.1; }
.kg-pic.pop { animation: popIn .6s var(--ease); }
@keyframes popIn { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); } 100% { transform: none; opacity: 1; } }
.kg-bn { margin-top: .4rem; font-size: 1.15rem; font-weight: 600; color: var(--muted); }
.kg-actions { display: flex; justify-content: center; gap: .6rem; margin-top: 1rem; }
.kg-slots { display: flex; justify-content: center; gap: .6rem; margin: 1.8rem 0 1.4rem; flex-wrap: wrap; }
.slot { width: 62px; height: 70px; border-radius: 14px; border: 3px dashed #C9D6CF; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: var(--dark); transition: background .25s, border-color .25s; }
.slot.filled { border-style: solid; border-color: var(--green); background: #EAF6E6; animation: popIn .35s var(--ease); }
.kg-slots.win .slot { background: var(--green); border-color: var(--green); color: var(--white); animation: jump .6s var(--ease) both; }
.kg-slots.win .slot:nth-child(2) { animation-delay: .06s; } .kg-slots.win .slot:nth-child(3) { animation-delay: .12s; } .kg-slots.win .slot:nth-child(4) { animation-delay: .18s; } .kg-slots.win .slot:nth-child(5) { animation-delay: .24s; } .kg-slots.win .slot:nth-child(6) { animation-delay: .3s; }
@keyframes jump { 40% { transform: translateY(-16px); } }
.kg-tiles { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.tile { width: 64px; height: 64px; border-radius: 16px; border: 0; cursor: pointer; font: 900 1.8rem var(--font); color: var(--dark); background: var(--yellow); box-shadow: 0 6px 0 #D9A900; transition: transform .15s, box-shadow .15s, opacity .3s; animation: popIn .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: translateY(4px); box-shadow: 0 2px 0 #D9A900; }
.tile.used { opacity: .15; transform: scale(.85); cursor: default; box-shadow: none; animation: none; }
.tile.shake { animation: shake .4s; background: #FFB4A8; box-shadow: 0 6px 0 #E0796A; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.tile.hint { outline: 4px solid var(--green); outline-offset: 3px; animation: bob 1s ease-in-out infinite; }
.kg-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.kg-burst i { position: absolute; width: 10px; height: 14px; border-radius: 3px; opacity: 0; }
.kg-burst.go i { animation: confetti 1.2s var(--ease) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--r)); } }
.kg-burst b { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; font-size: 1.6rem; font-weight: 900; color: var(--dark); background: var(--white); padding: .5rem 1.1rem; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(15,42,51,.6); opacity: 0; text-align: center; }
.kg-burst b span { display: block; color: #E8B100; font-size: 1.3rem; letter-spacing: .1em; }
.kg-burst.go b { animation: badge 1.5s var(--ease) forwards; }
@keyframes badge { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -20px); } }
.kg-end { text-align: center; padding: 1rem 0; }
.kg-end h2 { font-size: 1.8rem; font-weight: 900; }
.kg-final-stars { display: flex; justify-content: center; gap: .4rem; margin: 1.2rem 0 .6rem; font-size: 3rem; color: #E1E9E4; }
.kg-final-stars .on { color: var(--yellow); animation: popIn .6s var(--ease) both; animation-delay: calc(var(--i) * 150ms); text-shadow: 0 4px 0 #D9A900; }
.kg-end p { color: var(--muted); margin-bottom: 1.4rem; }
.kg-end .score { font-size: 1.2rem; font-weight: 800; color: var(--ink); }

@media (max-width: 760px) {
  .game-cards { grid-template-columns: 1fr; }
  .tt-stats { grid-template-columns: 1fr 1fr 1fr; }
  .tt-timer { grid-column: 1 / -1; justify-self: center; }
  .panel { padding: 1.3rem; }
  .tt-text { font-size: 1.15rem; line-height: 2.6rem; height: 7.8rem; }
  .slot { width: 46px; height: 54px; font-size: 1.5rem; }
  .tile { width: 54px; height: 54px; font-size: 1.5rem; }
  .kb span { width: 28px; height: 28px; font-size: .7rem; }
  .float-tiles span { width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ---------- Interactive globe (home hero) ---------- */
.hero-grid { padding-block: 4rem 5rem; }
@media (max-width: 960px) { .hero-grid { padding-block: 3rem 3.5rem; } }
.globe-wrap { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.globe { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1; cursor: grab; animation: globeIn 1.4s .2s var(--ease) both; }
.globe.grabbing { cursor: grabbing; }
.globe canvas { display: block; width: 100%; height: 100%; }
@keyframes globeIn { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
.globe-label {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem; white-space: nowrap;
  padding: .55rem 1rem .55rem .7rem; border-radius: 999px;
  background: rgba(15,42,51,.75); border: 1px solid rgba(141,198,63,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white); font-size: .85rem; pointer-events: none;
}
.globe-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,212,59,.25); }
.globe-label span { color: rgba(255,255,255,.65); font-weight: 600; }
.globe-label b { font-weight: 800; transition: opacity .25s, transform .25s var(--ease); }
.globe-label.swap b { opacity: 0; transform: translateY(-5px); }
.globe-hint { margin-top: .4rem; text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); }
@media (max-width: 960px) {
  .globe-wrap { justify-self: center; max-width: 420px; margin-top: -1rem; }
}
