@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #212121;
  --heading: #573344;
  --muted: #757575;
  --line: #e0e0e0;
  --pine: #1976d2;
  --pine-2: #1565c0;
  --mist: #e3f2fd;
  --clay: #573344;
  --good: #2e7d32;
  --good-soft: #e8f5e9;
  --bad-soft: #ffebee;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.7;
}
button, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; }

.screen {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 20px 18px 120px;
}
body.has-dock .screen { padding-bottom: 128px; }

.net {
  background: #2d3333;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 1rem;
}

.hello {
  padding-top: 28px;
  text-align: center;
}
.hello img.logo {
  width: min(220px, 70%);
  height: auto;
}
h1 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--heading);
}
.say {
  margin: 0 auto 22px;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.big {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--pine);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}
.big:hover { background: var(--pine-2); }
.big:disabled {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: default;
}
.big.line {
  background: transparent;
  color: var(--pine);
  box-shadow: inset 0 0 0 2px var(--pine);
}
.big.line:hover { background: #fff; }
.big:focus-visible, .row:focus-visible, .choice:focus-visible, .back:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
}

.or {
  margin: 28px 0 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.pick {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  text-align: left;
  box-shadow: 0 0 0 1px var(--line);
}
.pick .pic {
  position: relative;
  display: block;
}
.pick img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.pick .cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--pine);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.pick:hover .cta { background: var(--pine-2); }
.pick .name {
  display: block;
  padding: 14px 16px 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.back {
  border: 0;
  background: transparent;
  color: var(--pine);
  font-weight: 700;
  font-size: 1.15rem;
  min-height: 48px;
  padding: 8px 0;
}
.count { color: var(--muted); font-weight: 600; }

h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--heading);
}
.tag {
  margin: 0 0 6px;
  color: var(--clay);
  font-weight: 700;
}

.prose p { margin: 0 0 0.75em; }
.prose a { color: var(--pine); font-weight: 700; }
.prose img {
  display: block;
  margin: 10px 0;
  border-radius: 14px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  text-align: left;
}
.row strong { font-size: 1.15rem; line-height: 1.4; }
.num {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--pine);
  font-weight: 700;
  font-size: 1.25rem;
}
.row.done .num { background: var(--good-soft); color: var(--good); }

.watch {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  background: #2d3333;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
}
.watch i {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  color: var(--pine);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1.6rem;
}
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #2d3333;
  margin: 8px 0 14px;
}
.frame iframe, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.note { display: block; margin-top: 8px; }
.note span { display: block; font-weight: 700; margin-bottom: 6px; }
textarea {
  width: 100%;
  min-height: 110px;
  border: 0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 1.05rem;
}
textarea:focus { outline: 3px solid var(--pine); }

.choice {
  display: block;
  width: 100%;
  min-height: 64px;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--line);
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.45;
}
.choice.on {
  background: var(--pine);
  color: #fff;
  box-shadow: none;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(255, 255, 255, 0));
}
.result {
  background: var(--good-soft);
  border-radius: 20px;
  padding: 22px 18px;
  margin-top: 8px;
}
.result.no { background: var(--bad-soft); }
.score {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}
.miss {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
}
.miss .right { color: var(--good); font-weight: 700; }
.gap { height: 12px; }
.meters { margin: 4px 0 18px; }
.meter { margin-bottom: 12px; }
.meter p { margin: 0 0 6px; font-weight: 700; font-size: 1rem; }
.track {
  height: 12px;
  background: #e0e0e0;
  border-radius: 99px;
  overflow: hidden;
}
.track span { display: block; height: 100%; background: var(--pine); }
.track.names {
  position: relative;
  height: 52px;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.track.names .fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: auto;
  background: var(--clay);
}
.track.names .seg {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  background: transparent;
}
.track.names .seg:not(:last-child) {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.55);
}
.track.names .seg b {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #757575;
  white-space: nowrap;
}
.track.names .seg small {
  font-size: 0.62rem;
  font-weight: 700;
}
.track.names .seg.light b { color: #fff; }
.burst {
  margin: 8px 0 0;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--clay);
}
.celebrate h2 { margin-top: 0; }
.field {
  display: block;
  margin: 0 0 14px;
  font-weight: 700;
}
.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font: inherit;
  font-weight: 400;
  font-size: 1.05rem;
}
.field input:focus { outline: 3px solid var(--pine); }
.hint {
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--pine);
}

.quiet {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 48px;
  font-size: 1rem;
}

@media (max-width: 420px) {
  body { font-size: 18px; }
  .screen { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 2rem; }
  .big { font-size: 1.35rem; min-height: 68px; }
}

.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.start-page { padding-top: 22px; }
.start-page .logo { width: min(150px, 50%); }
.start-page .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 14px;
  border-radius: 999px; background: var(--mist); color: var(--pine-2); font-weight: 600; font-size: .85rem;
}
.start-page h1 { margin: 12px 0 6px; font-size: clamp(1.8rem, 7vw, 2.3rem); }
.start-page .say { margin-bottom: 20px; font-size: 1.02rem; }
.hero { border-radius: 24px; box-shadow: 0 12px 36px rgba(25, 118, 210, .18); border: 0; margin-bottom: 18px; }
.hero img { aspect-ratio: 4 / 3; transition: transform .4s ease; }
.hero:hover img { transform: scale(1.04); }
.hero .pic { overflow: hidden; }
.hero .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.hero .cta {
  z-index: 1; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%);
  gap: 10px; min-height: 60px; padding: 12px 30px; border-radius: 999px; font-size: 1.15rem;
  background: var(--pine); transition: transform .2s ease, background .2s ease;
}
.hero:hover .cta { transform: translate(-50%, -50%) scale(1.06); }
.hero .name { display: block; font-size: 1.15rem; }
.hero .row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero .name .ico { color: var(--pine); transition: transform .25s ease; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.fact { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; background: var(--mist); color: var(--pine-2); font-weight: 600; font-size: .85rem; line-height: 1.3; }
.fact .ico { width: 1.6rem; height: 1.6rem; }
.fact b { color: var(--heading); font-size: 1.05rem; }
.start-page .big { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.1rem; min-height: 56px; border-radius: 16px; }
.start-page .quiet { display: flex; align-items: center; justify-content: center; gap: 8px; }

.progress { display: block; margin-top: 12px; }
.progress .bar { display: block; height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.progress .fill { display: block; height: 100%; min-width: 0; border-radius: 999px; background: linear-gradient(90deg, #42a5f5, var(--pine-2)); transition: width .6s ease; }
.progress .pct { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.hero { transition: transform .25s ease, box-shadow .25s ease; }
.hero:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(25, 118, 210, .3); }
.hero:active { transform: translateY(-1px) scale(.99); }
.hero:hover .name .ico { transform: translateX(6px); }
.hero .cta { box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 0 rgba(25,118,210,.5); }
.hero:hover .cta, .hero:focus-visible .cta { box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.28); }
.hero:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.start-page .big { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.start-page .big:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,118,210,.25); }
.start-page .big:active { transform: scale(.98); }
.start-page .big.line:hover { background: var(--mist); }
.start-page .quiet { transition: color .2s ease, background .2s ease; border-radius: 12px; }
.start-page .quiet:hover { color: var(--pine-2); background: var(--mist); }
.fact { transition: transform .2s ease, box-shadow .2s ease; }
.fact:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(25,118,210,.18); }

:root { --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); }
.hero { transition: transform .6s var(--ease), box-shadow .6s var(--ease); will-change: transform; }
.hero:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(25,118,210,.28); }
.hero:active { transform: translateY(-2px) scale(.992); transition-duration: .25s; }
.hero img { transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.hero:hover img { transform: scale(1.06); filter: saturate(1.08); }
.hero .pic::after { transition: opacity .8s var(--ease); background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.5)); }
.hero .pic::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1.1s var(--ease);
}
.hero:hover .pic::before { transform: translateX(120%); }
.hero .cta { transition: transform .5s var(--spring), box-shadow .6s var(--ease), background .4s ease; }
.hero:hover .cta, .hero:focus-visible .cta { transform: translate(-50%, -50%) scale(1.07); }
.hero:active .cta { transform: translate(-50%, -50%) scale(.97); transition-duration: .15s; }
.hero .cta .ico { transition: transform .5s var(--spring); }
.hero:hover .cta .ico { transform: scale(1.2) translateX(2px); }
.hero .name .ico { transition: transform .5s var(--spring); }
.progress .fill { transition: width 1.2s var(--ease); }
.start-page .big, .start-page .quiet, .fact { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s ease, color .4s ease; }
.start-page .big:hover { transform: translateY(-3px); }
.start-page .big .ico { transition: transform .5s var(--spring); }
.start-page .big:hover .ico { transform: scale(1.15); }
.start-page .big:active { transform: scale(.985); transition-duration: .15s; }
.fact:hover { transform: translateY(-4px); }
@keyframes pulse-ring { 0% { box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 18px rgba(255,255,255,0); } }
.hero:not(:hover) .cta { animation: pulse-ring 2.6s ease-out infinite; }

/* GSAP-driven hover: neutralise CSS transform transitions */
.hero, .hero img, .hero .cta, .hero .cta .ico, .hero .name .ico, .start-page .big, .start-page .big .ico, .start-page .quiet, .fact { transition: none !important; }
.hero:hover, .hero:active, .hero:hover img, .hero:hover .cta, .hero:active .cta, .hero:hover .cta .ico, .hero:hover .name .ico, .start-page .big:hover, .start-page .big:active, .start-page .big:hover .ico, .fact:hover { transform: none; }
.hero:hover .cta, .hero:focus-visible .cta { box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.25); }
.hero { transform-style: preserve-3d; --mx: 50%; --my: 50%; }
.hero .cta { top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: max-content; height: min-content; transform: none; }
.hero .pic::before { transform: none; transition: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 55%); opacity: 0; }
.hero:hover .pic::before { transform: none; opacity: 1; }
.hero .pic::before { transition: opacity .6s ease !important; }
.hero .pic { border-radius: inherit; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.nav { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .45s ease; }
.nav .fillbg { position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease); border-radius: inherit; }
.nav:hover:not(:disabled) .fillbg, .nav:focus-visible .fillbg { transform: scaleX(1); }
.nav .ni { display: inline-flex; transition: transform .5s var(--spring); }
.nav:active:not(:disabled) { transform: scale(.97); transition-duration: .15s; }
.nav .ico { width: 1.25em; height: 1.25em; stroke-width: 2.4; }

.back.nav-back {
  padding: 8px 20px 8px 14px; min-height: 46px; border-radius: 999px; background: var(--mist); color: var(--pine-2);
  box-shadow: inset 0 0 0 2px rgba(25,118,210,.18);
}
.back.nav-back .fillbg { background: var(--pine); }
.back.nav-back:hover, .back.nav-back:focus-visible { color: #fff; box-shadow: 0 8px 20px rgba(25,118,210,.28); }
.back.nav-back:hover .ni { transform: translateX(-5px); }

.big.nav-next { gap: 12px; background: var(--pine); box-shadow: 0 8px 22px rgba(25,118,210,.28); }
.big.nav-next .fillbg { background: linear-gradient(90deg, #0d47a1, var(--pine-2)); }
.big.nav-next:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(25,118,210,.4); }
.big.nav-next:hover:not(:disabled) .ni { transform: translateX(6px); }
.big.nav-next:disabled { box-shadow: none; }
.big.nav-next .fillbg { transition-duration: .7s; }

.fade-hint {
  position: fixed; left: 0; right: 0; bottom: 0; height: 170px; z-index: 5; pointer-events: none; opacity: 0;
  transition: opacity .6s var(--ease);
}
.fade-hint.above-dock { height: 200px; }
.fade-hint.show { opacity: 1; }
.fade-hint i { position: absolute; inset: 0; }
.fade-hint i:nth-child(1) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 0%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, transparent 100%); }
.fade-hint i:nth-child(2) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%); mask-image: linear-gradient(to top, #000 0%, transparent 70%); }
.fade-hint i:nth-child(3) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 45%); mask-image: linear-gradient(to top, #000 0%, transparent 45%); }
.fade-hint i:nth-child(4) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 25%); mask-image: linear-gradient(to top, #000 0%, transparent 25%); }
.dock { z-index: 10; background: transparent; }
.big.nav-next, .big.nav-next:hover:not(:disabled), .back.nav-back:hover { box-shadow: none; }
.dock { background: var(--bg); }
.fade-hint, .fade-hint.above-dock { height: 110px; }

.big.nav-next:not(:disabled) { background: #7eb1e4; }
.big.nav-next .fillbg { display: none; }
.big.nav-next .progbg {
  position: absolute; inset: 0; z-index: -1; transform: scaleX(var(--p, 0)); transform-origin: left center;
  background: linear-gradient(90deg, #1976d2, #0d47a1); transition: transform .35s var(--ease); border-radius: inherit;
}
.big.nav-next.ready::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%); animation: next-shine 1.1s var(--ease) .1s 1 forwards;
}
.big.nav-next.ready { animation: next-pop .7s var(--spring) 1; }
.big.nav-next.ready .ni { animation: next-nudge 1.4s var(--ease) .8s infinite; }
@keyframes next-shine { to { transform: translateX(120%); } }
@keyframes next-pop { 0% { transform: scale(1); } 40% { transform: scale(1.045); } 100% { transform: scale(1); } }
@keyframes next-nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(7px); } }

.big.nav-next:not(:disabled) { background: #2f86dc; color: #fff; cursor: pointer; }
.big.nav-next:not(:disabled) .progbg { background: linear-gradient(90deg, #0d47a1, #0a3a85); }
.big.nav-next:not(:disabled):hover { transform: translateY(-2px); }

.nav-next .lk { position: relative; display: inline-flex; width: 1.25em; height: 1.25em; }
.nav-next .lk .ico { position: absolute; inset: 0; transition: opacity .35s ease, transform .6s var(--spring); }
.nav-next .lk-off { opacity: 0; transform: scale(.4) rotate(-25deg); }
.nav-next.ready .lk-on { opacity: 0; transform: scale(.4) rotate(25deg); }
.nav-next.ready .lk-off { opacity: 1; transform: scale(1) rotate(0); animation: unlock-pop .7s var(--spring) 1; }
@keyframes unlock-pop { 0% { transform: scale(.4) rotate(-25deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

.watch, .frame {
  border: 3px solid transparent;
  background: linear-gradient(#1f2a2e, #2d3a40) padding-box, linear-gradient(135deg, #64b5f6, #1565c0 55%, #573344) border-box;
  box-shadow: 0 14px 34px rgba(25,118,210,.22);
  border-radius: 22px;
}
.frame { background: linear-gradient(#000, #000) padding-box, linear-gradient(135deg, #64b5f6, #1565c0 55%, #573344) border-box; }
.frame iframe, .frame video { border-radius: 18px; }
.watch {
  position: relative; overflow: hidden; cursor: pointer; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.watch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(66,165,245,.35), transparent 60%);
  opacity: .6; transition: opacity .6s ease, transform 1s var(--ease);
}
.watch:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(25,118,210,.35); }
.watch:hover::before { opacity: 1; transform: scale(1.25); }
.watch:active { transform: scale(.985); transition-duration: .15s; }
.watch i {
  position: relative; width: 84px; height: 84px; background: #fff; color: var(--pine);
  box-shadow: 0 10px 28px rgba(0,0,0,.35); transition: transform .5s var(--spring), background .4s ease, color .4s ease;
}
.watch i svg { width: 38px; height: 38px; margin-left: 5px; }
.watch i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: play-ring 2.2s ease-out infinite; }
.watch:hover i { transform: scale(1.12); background: var(--pine); color: #fff; }
@keyframes play-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.watch span { font-size: 1.2rem; letter-spacing: .01em; }
.watch small { font-size: .78rem; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .12em; }
.seen-badge, .seen-bar {
  display: inline-flex; align-items: center; gap: 6px; background: var(--good-soft); color: var(--good);
  font-weight: 700; font-size: .85rem; padding: 5px 12px 5px 9px; border-radius: 999px; font-style: normal;
}
.seen-badge { position: absolute; top: 12px; right: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.seen-bar { margin: -6px 0 14px; }
.seen-badge .ico, .seen-bar .ico { width: 1.1em; height: 1.1em; stroke-width: 3; }
.watch.is-seen i::after { border-color: rgba(129,199,132,.8); }

.watch i { width: 58px; height: 58px; }
.watch i svg { width: 26px; height: 26px; margin-left: 3px; }
.watch i::after { animation-name: play-ring-sm; }
@keyframes play-ring-sm { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.watch { gap: 6px; }
.watch span { font-size: 1.1rem; }
.watch small { max-width: 88%; text-align: center; text-transform: none; letter-spacing: .01em; font-size: .85rem; line-height: 1.3; opacity: .8; }

.nav-next .reqs { display: inline-flex; gap: 6px; }
.nav-next .req { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); color: #fff; transition: background .4s ease, transform .5s var(--spring); }
.nav-next .req .ico { position: absolute; width: 14px; height: 14px; stroke-width: 2.6; transition: opacity .3s ease, transform .5s var(--spring); }
.nav-next .req .ri { fill: none; }
.nav-next .req .tk { opacity: 0; transform: scale(.3); }
.nav-next .req.done { background: #2e9d4f; transform: scale(1.08); }
.nav-next .req.done .ri { opacity: 0; transform: scale(.3); }
.nav-next .req.done .tk { opacity: 1; transform: scale(1); }

.choice {
  position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s ease, color .35s ease;
}
.choice::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid #b0bec5; background: #fff center / 14px no-repeat;
  transition: border-color .35s ease, background-color .35s ease, transform .5s var(--spring);
}
.choice::after {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--mist); opacity: 0; transform: translateX(-30%);
  transition: opacity .45s ease, transform .6s var(--ease); pointer-events: none;
}
.choice > * { position: relative; z-index: 1; }
.choice:hover:not(.on) { transform: translateX(6px); box-shadow: 0 0 0 2px var(--pine), 0 10px 24px rgba(25,118,210,.16); }
.choice:hover:not(.on)::before { border-color: var(--pine); transform: scale(1.12); }
.choice:hover:not(.on)::after { opacity: 1; transform: none; }
.choice:active { transform: scale(.985); transition-duration: .12s; }
.choice.on { box-shadow: 0 10px 26px rgba(25,118,210,.3); }
.choice.on::before {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  animation: choice-tick .5s var(--spring);
}
@keyframes choice-tick { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.choice { isolation: isolate; }
.choice::after { z-index: -1; }

.qcard {
  position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 14px; padding: 18px 16px;
  border-radius: 20px; background: linear-gradient(135deg, #e3f2fd, #f3e5f5); overflow: hidden;
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, #f1f8ff, #f8eef9), linear-gradient(135deg, #64b5f6, #573344);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 10px 28px rgba(25,118,210,.14);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.qcard:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(25,118,210,.22); }
.qcard::after { content: "?"; position: absolute; right: 10px; bottom: -34px; font-size: 7rem; font-weight: 700; color: rgba(25,118,210,.07); line-height: 1; pointer-events: none; }
.qicon {
  flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine); color: #fff; box-shadow: 0 6px 16px rgba(25,118,210,.35);
}
.qicon .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.qicon::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--pine); opacity: 0; animation: q-ring 2.8s ease-out infinite; }
@keyframes q-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
.qcard:hover .qicon .ico { animation: q-wiggle .7s var(--ease); }
@keyframes q-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(10deg); } }
.qbody { min-width: 0; position: relative; z-index: 1; }
.qlabel { display: block; margin-bottom: 4px; color: var(--pine-2); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qtext, .qtext p { margin: 0; color: var(--heading); font-size: 1.12rem; line-height: 1.5; font-weight: 700; }
.qtext strong { font-weight: 700; }
.note > span { display: flex; align-items: center; gap: 8px; }
textarea { border-radius: 16px; border: 2px solid var(--line); transition: border-color .35s ease, box-shadow .35s ease; }
textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(25,118,210,.15); }

.qcard {
  background: #f5f7fa; border: 1px solid var(--line); border-left: 4px solid var(--pine); border-radius: 12px;
  box-shadow: none; transition: none; padding: 16px;
}
.qcard:hover { transform: none; box-shadow: none; }
.qcard::after { display: none; }
.qicon { width: 40px; height: 40px; box-shadow: none; background: var(--pine); }
.qicon::after { display: none; }
.qcard:hover .qicon .ico { animation: none; }
.qicon .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.qlabel { color: var(--muted); letter-spacing: .06em; }
.qtext, .qtext p { font-size: 1.08rem; }
textarea:focus { box-shadow: none; }

.note { margin-top: 14px; }
.note .nlabel { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; color: var(--heading); }
.note .nlabel .ico { width: 18px; height: 18px; color: var(--pine); }
.nwrap { position: relative; display: block; }
.nwrap textarea {
  display: block; width: 100%; min-height: 130px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; font-size: 1.05rem; line-height: 1.6; resize: vertical; transition: border-color .25s ease, background .25s ease;
}
.nwrap textarea:hover { border-color: #b0bec5; }
.nwrap textarea:focus { outline: none; border-color: var(--pine); background: #fff; box-shadow: none; }
.nhint { position: absolute; top: 16px; left: 18px; display: none; align-items: center; gap: 4px; color: #9e9e9e; font-size: 1.05rem; line-height: 1.6; pointer-events: none; }
.nwrap textarea:placeholder-shown + .nhint { display: inline-flex; }
.ncaret { display: inline-block; width: 2px; height: 1.2em; background: var(--pine); margin-right: 2px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.nwrap textarea:focus:placeholder-shown + .nhint .ncaret { display: none; }
.nstatus { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.nstatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #bdbdbd; }
.nstatus.ok { color: var(--good); }
.nstatus.ok::before { background: var(--good); }

.note .nhint { display: none; margin: 0; font-weight: 400; }
.note .nwrap textarea:placeholder-shown + .nhint { display: inline-flex; }
.note .nwrap textarea:focus:placeholder-shown + .nhint .ncaret { display: none; }
.note .nwrap { margin: 0; font-weight: 400; }
.note .nstatus { display: flex; margin-bottom: 0; }
.note .nlabel { display: flex; }

.topbar {
  position: sticky; top: 0; z-index: 15; background: var(--bg);
  margin: -20px -18px 14px; padding: 14px 18px 8px;
  transition: box-shadow .3s ease;
}
.topbar.stuck { box-shadow: 0 1px 0 var(--line); }
@media (max-width: 420px) { .topbar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }

.head {
  position: sticky; top: 0; z-index: 15; background: var(--bg);
  margin: -20px -18px 14px; padding: 14px 18px 2px; transition: box-shadow .3s ease;
}
.head.stuck { box-shadow: 0 6px 12px -8px rgba(0,0,0,.18); }
.head .topbar, .head .topbar.stuck { position: static; margin: 0; padding: 0 0 4px; box-shadow: none; background: transparent; }
.head .meters { margin: 4px 0 10px; }
@media (max-width: 420px) { .head { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }

.qres { text-align: center; padding: 18px 0 6px; }
.qres-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 8px; }
.qres-icon .ico { width: 44px; height: 44px; stroke-width: 2; }
.qres.pass .qres-icon { background: var(--good-soft); color: var(--good); }
.qres.fail .qres-icon { background: var(--bad-soft); color: #c62828; }
.qres h1 { margin: 6px 0 4px; }
.qres-score { margin: 0; font-size: 3rem; font-weight: 700; line-height: 1.1; color: var(--heading); }
.qres-score b { color: var(--pine); }
.qres.fail .qres-score b { color: #c62828; }
.qres .say { margin-top: 10px; }
.big .ico { width: 1.2em; height: 1.2em; margin: 0 8px; }

.qlist-h { margin: 8px 0 10px; text-align: center; font-size: 1.2rem; }
.qlist { display: flex; flex-direction: column; gap: 8px; }
.qrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.qrow.good { background: var(--good-soft); color: #1b5e20; }
.qrow.bad { background: var(--bad-soft); color: #b71c1c; }
.qmark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-top: 1px; }
.qrow.good .qmark { background: var(--good); }
.qrow.bad .qmark { background: #d32f2f; }
.qmark .ico { width: 15px; height: 15px; margin: 0; stroke-width: 3; }

.qcircles { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.qc { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qc-n { font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.qc-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.qc.good .qc-dot { background: var(--good); }
.qc.bad .qc-dot { background: #d32f2f; }
.qc-dot .ico { width: 26px; height: 26px; margin: 0; stroke-width: 3; }
@media (max-width: 380px) { .qcircles { gap: 10px; } .qc-dot { width: 46px; height: 46px; } }

.achv { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 4px; padding: 16px; border-radius: 14px; background: var(--mist); }
.achv-k { color: var(--pine-2); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.achv strong { color: var(--heading); font-size: 1.3rem; line-height: 1.3; }
.achv-c { color: var(--muted); font-weight: 600; font-size: .95rem; }
.cert-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.55); overflow-y: auto; }
.cert-box { width: min(420px, 100%); max-height: 100%; overflow-y: auto; background: #fff; border-radius: 18px; padding: 20px; text-align: center; }
.cert-title { margin: 0 0 14px; font-size: 1.2rem; font-weight: 700; color: var(--heading); }
.cert-bar { height: 12px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.cert-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--pine); transition: width .35s ease; }
.cert-step { margin: 12px 0 4px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.cert-img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; }
.cert-box .big { margin-bottom: 10px; min-height: 58px; font-size: 1.15rem; text-decoration: none; }
.cert-box .quiet { margin-top: 0; }

.achv { margin: 4px 0 0; text-align: center; align-items: center; }
.achv-c { font-size: .95rem; }
.achv strong { font-size: 1.35rem; }

.screen.fit { padding: 8px 18px 14px; min-height: 0; }
.screen.fit .topbar { margin-bottom: 0; padding: 6px 0 2px; }
.screen.fit .back.nav-back { min-height: 36px; padding: 4px 14px 4px 10px; font-size: .95rem; }
.screen.fit .qres { padding: 4px 0 0; }
.screen.fit .qres-icon { width: 54px; height: 54px; margin-bottom: 2px; }
.screen.fit .qres-icon .ico { width: 30px; height: 30px; }
.screen.fit .qres h1 { margin: 2px 0 0; font-size: 1.55rem; line-height: 1.2; }
.screen.fit .qres-score { font-size: 1.9rem; line-height: 1.15; }
.screen.fit .qres .say { margin: 4px auto 0; font-size: .9rem; line-height: 1.35; max-width: 24rem; }
.screen.fit .achv { margin: 10px 0 0; padding: 10px 12px; gap: 1px; }
.screen.fit .achv-k { font-size: .72rem; }
.screen.fit .achv strong { font-size: 1.05rem; line-height: 1.25; }
.screen.fit .achv-c { font-size: .8rem; line-height: 1.3; }
.screen.fit .qlist-h { margin: 10px 0 4px; font-size: .9rem; line-height: 1.2; }
.screen.fit .qcircles { gap: 10px; }
.screen.fit .qc { gap: 3px; }
.screen.fit .qc-n { font-size: .8rem; line-height: 1; }
.screen.fit .qc-dot { width: 34px; height: 34px; }
.screen.fit .qc-dot .ico { width: 18px; height: 18px; }
.screen.fit .gap { height: 8px; }
.screen.fit .big { min-height: 50px; padding: 8px 16px; font-size: 1.05rem; border-radius: 14px; }

.big.nextlesson { flex-direction: column; gap: 2px; min-height: 76px; padding: 12px 18px; }
.nextlesson .nl-top { display: inline-flex; align-items: center; gap: 4px; font-size: 1.2rem; font-weight: 700; }
.nextlesson .nl-top .ico { margin: 0 6px 0 0; width: 1em; height: 1em; }
.nextlesson .nl-name { font-size: .95rem; font-weight: 600; opacity: .9; line-height: 1.3; }

.screen.qpass .qres { padding-top: 24px; }
.screen.qpass .qres h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); line-height: 1.35; margin: 10px 0 6px; }
.screen.qpass .qres-score { font-size: 3.3rem; line-height: 1.3; }
.screen.qpass .qres .say { font-size: 1.3rem; line-height: 1.85; max-width: 26rem; margin: 14px auto 8px; }
.screen.qpass .achv { gap: 8px; margin: 22px 0 8px; padding: 20px 18px; }
.screen.qpass .achv-c { font-size: 1.1rem; line-height: 1.6; }
.screen.qpass .achv-k { font-size: .95rem; }
.screen.qpass .achv strong { font-size: 1.5rem; line-height: 1.5; }
.screen.qpass .qlist-h { font-size: 1.35rem; line-height: 1.6; margin: 18px 0 14px; }
.screen.qpass .qc-n { font-size: 1.15rem; line-height: 1.6; }
.screen.qpass .qcircles { gap: 16px; margin-bottom: 8px; }
.screen.qpass .big { font-size: 1.3rem; line-height: 1.6; }
.screen.qpass .nextlesson { gap: 6px; padding: 16px 18px; min-height: 88px; }
.screen.qpass .nextlesson .nl-top { font-size: 1.35rem; line-height: 1.5; }
.screen.qpass .nextlesson .nl-name { font-size: 1.1rem; line-height: 1.55; }
.screen.qpass .gap { height: 16px; }

.lsteps { display: flex; align-items: flex-start; margin: 0 0 14px; }
.ls { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; min-width: 64px; }
.ls-c { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1rem; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px #cfd8dc; transition: background .3s ease, box-shadow .3s ease, color .3s ease; }
.ls-c .ico { width: 18px; height: 18px; stroke-width: 3; }
.ls-t { font-size: .78rem; font-weight: 600; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.ls.done .ls-c { background: var(--good); color: #fff; box-shadow: none; }
.ls.done .ls-t { color: var(--good); }
.ls.cur .ls-c { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pine); }
.ls.cur:not(.done) .ls-c { background: var(--pine); color: #fff; }
.ls.cur .ls-t { color: var(--pine-2); font-weight: 700; }
.ls-line { flex: 1 1 0; min-width: 14px; height: 2px; background: #cfd8dc; margin-top: 17px; }

.lsteps { margin: 0 0 10px; }
.ls { min-width: 52px; gap: 2px; }
.ls-c { width: 26px; height: 26px; font-size: .82rem; }
.ls-c .ico { width: 14px; height: 14px; }
.ls-t { font-size: .68rem; }
.ls.cur .ls-c { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pine); }
.ls-line { margin-top: 12px; }

.llist { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lhl { position: absolute; left: 0; right: 0; top: 0; z-index: 0; border-radius: 16px; background: var(--mist); box-shadow: inset 0 0 0 2px var(--pine); pointer-events: none; will-change: transform; }
.lrow { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; cursor: pointer; transition: box-shadow .3s ease; }
.lrow:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #90caf9; }
.lc { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px #cfd8dc; transition: background .35s ease, color .35s ease, box-shadow .35s ease; }
.lc .ico { width: 20px; height: 20px; stroke-width: 3; }
.lt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lt small { color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.3; }
.lt strong { color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.ls2 { flex: none; color: var(--muted); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; }
.ls2 .ico { width: 20px; height: 20px; color: var(--pine); }
.lrow.done .lc { background: var(--good); color: #fff; box-shadow: none; }
.lrow.cur .lc { background: var(--pine); color: #fff; box-shadow: none; }
.lrow.cur.done .lc { background: var(--good); }
.lrow.cur .lt small { color: var(--pine-2); }
.lrow.soon { cursor: default; opacity: .55; }
.lrow.soon .lt strong { color: var(--muted); }
.lrow:disabled { cursor: default; }

.ls { min-width: 0; }
.ls.soon .ls-c { opacity: .5; }
.ls-line { min-width: 4px; margin-top: 12px; }
.lsteps { margin-bottom: 4px; }
.lcap { margin: 0 0 10px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--pine-2); line-height: 1.3; }
@media (max-width: 380px) { .ls-c { width: 22px; height: 22px; font-size: .72rem; } .ls-line { margin-top: 10px; } }

.count.ltitle { flex: 1 1 0; min-width: 0; margin-left: 12px; text-align: right; font-size: 1rem; font-weight: 700; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.head .topbar, .head .topbar.stuck { padding: 0 0 8px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.head .lcap { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.head .meters { margin-bottom: 12px; }

.back.nav-back { min-width: 120px; padding-left: 20px; padding-right: 26px; justify-content: center; }
.head .back.nav-back { min-width: 120px; }

.back.nav-back, .head .back.nav-back { min-width: 160px; padding-left: 28px; padding-right: 32px; }

.qcircles.many { gap: 10px; }
.qcircles.many .qc-dot { width: 40px; height: 40px; }
.qcircles.many .qc-dot .ico { width: 20px; height: 20px; }
.qcircles.many .qc { gap: 4px; }
