.hero-text p { margin: 8px 0 0 0; max-width: 62ch; }
.hero {
  border: 1px solid #dbeafe;
  border-radius: var(--sai-radius-l);
  padding: 22px 20px;
  background: var(--sai-grad-hero);
  box-shadow: var(--sai-shadow-m);
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 220px; height: 220px; right: -60px; top: -70px; background: radial-gradient(circle, rgba(124,58,237,.22) 0%, transparent 70%); animation: drift 7s ease-in-out infinite; }
.hero::after { width: 180px; height: 180px; left: 30%; bottom: -90px; background: radial-gradient(circle, rgba(29,78,216,.18) 0%, transparent 70%); animation: drift 9s ease-in-out infinite reverse; }
.hero-text { position: relative; z-index: 1; }
.hero h1 span.grad { background: var(--sai-grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points .card { border-color: #dbeafe; }
.login-card { max-width: 480px; display: grid; gap: 12px; background: linear-gradient(180deg, #fff 0%, #f5f7ff 100%); }
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(700px 340px at 20% 10%, #dbeafe 0%, transparent 60%), radial-gradient(700px 340px at 85% 15%, #ede9fe 0%, transparent 55%), radial-gradient(700px 320px at 50% 110%, #fef3c7 0%, transparent 60%), var(--sai-bg); transition: opacity 300ms ease, visibility 300ms ease; }
#splash.hide { opacity: 0; visibility: hidden; pointer-events: none; animation: splashOut 300ms ease forwards; }
.splash-inner { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; animation: splashPop 500ms cubic-bezier(.22,1,.36,1); }
.splash-logo { width: 88px; height: 88px; filter: drop-shadow(0 14px 28px rgba(29,78,216,.35)); animation: float 2s ease-in-out infinite; }
.splash-name { font-size: 34px; font-weight: 900; letter-spacing: .4px; background: var(--sai-grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-sub { color: var(--sai-muted); font-size: 13px; font-weight: 700; }
.splash-bar { width: 210px; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 10px; }
.splash-bar > div { width: 40%; height: 100%; border-radius: 999px; background: var(--sai-grad-brand); animation: splashBar 1s ease-in-out infinite; }
.splash-tag { color: var(--sai-muted); font-size: 13px; margin-top: 2px; }
body[data-route="login"] .nav { display: none; }
body[data-route="login"] .hero { display: none; }
body[data-route="login"] .footer { display: none; }
body[data-route="login"] #saveBtn { display: none; }
body[data-route="login"] #sizeBtn { display: none; }
body[data-route="login"] #kvadBadge { display: none; }
body[data-route="login"] .wrap { display: grid; justify-items: center; padding-top: 32px; }
body[data-route="login"] #page { width: 100%; max-width: 480px; }
body[data-route="login"] .login-card { box-shadow: var(--sai-shadow-l); border-color: #bfdbfe; }
.progress-grid { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 760px) { .progress-grid { grid-template-columns: 1fr 1fr; } .hero { grid-template-columns: 1.35fr .85fr; align-items: center; } }
.detail-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.empty { padding: 28px 20px; text-align: center; color: var(--sai-muted); border: 1.5px dashed #cbd5e1; border-radius: var(--sai-radius-m); background: rgba(255,255,255,.7); }
.loader { padding: 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.loader::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--sai-brand-soft); border-top-color: var(--sai-brand); animation: spin 800ms linear infinite; }
.error { background: var(--sai-bad-soft); border: 1.5px solid #fca5a5; padding: 12px 14px; border-radius: 12px; }
.tech { margin-top: 20px; }
textarea { resize: vertical; }
#page > .card, #page > .grid, #page > h2 { animation: rise var(--sai-dur-2) var(--sai-ease); }
.journey-head { display: grid; gap: 6px; margin-bottom: 14px; }
.journey-head h2 { margin: 0; font-size: 26px; letter-spacing: -.3px; }
.journey-head .skillbar { max-width: 340px; }
.leg { margin: 18px 0 26px; }
.leg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.leg-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; background: #fff; border: 1.5px solid var(--sai-line); border-radius: 14px; box-shadow: var(--sai-shadow-s); }
.leg-skill { font-weight: 900; font-size: 17px; letter-spacing: -.2px; }
.road { list-style: none; margin: 0; padding: 8px 0 4px; position: relative; display: grid; gap: 14px; }
.road::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 4px; border-radius: 999px; background: repeating-linear-gradient(180deg, #1d4ed8 0 10px, #e0e7ff 10px 20px); opacity: .85; }
.stop { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; animation: rise var(--sai-dur-2) var(--sai-ease); }
.pin { display: grid; gap: 2px; justify-items: center; background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; cursor: pointer; position: relative; z-index: 1; }
.pin-num { font-size: 11px; font-weight: 900; color: var(--sai-brand); background: #fff; border: 1.5px solid var(--sai-brand); border-radius: 999px; padding: 1px 8px; }
.pin-dot { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; background: #fff; border: 2.5px solid var(--sai-brand); border-radius: 50%; box-shadow: var(--sai-shadow-m); transition: transform var(--sai-dur-1) var(--sai-ease); }
.pin:hover .pin-dot { transform: scale(1.06); }
.stop.done .pin-dot { background: var(--sai-ok-soft); border-color: #22c55e; }
.stop.tried .pin-dot { border-style: dashed; }
.stop-card { background: #fff; border: 1.5px solid var(--sai-line); border-radius: var(--sai-radius-m); padding: 12px 14px; box-shadow: var(--sai-shadow-s); cursor: grab; transition: transform var(--sai-dur-1) var(--sai-ease), box-shadow var(--sai-dur-1) var(--sai-ease), border-color var(--sai-dur-1) var(--sai-ease); position: relative; overflow: hidden; }
.stop-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sai-silver); opacity: 0; transition: opacity var(--sai-dur-1) var(--sai-ease); }
.stop-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--sai-shadow-m); border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--sai-silver) border-box; border: 1.5px solid transparent; }
.stop-card:hover::after { opacity: 1; }
.stop-card:active { transform: scale(.98) rotate(-.4deg); cursor: grabbing; }
.stop.done .stop-card { border: 2px solid transparent; background: linear-gradient(#f0fdf4, #fff 75%) padding-box, var(--sai-gold) border-box; box-shadow: var(--sai-gold-shadow); }
.stop.done .stop-card::after { background: var(--sai-gold); opacity: 1; }
.pin-dot { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; background: #fff; border: 2.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--sai-silver) border-box; border-radius: 50%; box-shadow: var(--sai-shadow-m); transition: transform var(--sai-dur-1) var(--sai-ease); }
.pin:hover .pin-dot { transform: scale(1.1) rotate(-4deg); }
.pin:active .pin-dot { transform: scale(.94); cursor: grabbing; }
.stop.done .pin-dot { background: linear-gradient(#f0fdf4, #fff) padding-box, var(--sai-gold) border-box; }
.lesson-card { display: grid; gap: 8px; }
.lesson-visual { font-size: 26px; letter-spacing: 2px; background: var(--sai-surface-2); border: 1px dashed var(--sai-line); border-radius: 12px; padding: 8px 10px; text-align: center; }
.lesson-notes { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.5; }
.lesson-ex { font-size: 13.5px; }
.stop.boss .pin-dot { border-color: transparent; background: linear-gradient(#fff7d6, #fff) padding-box, var(--sai-gold) border-box; font-size: 22px; }
.boss-card { border: 2px solid transparent; background: linear-gradient(#fffbeb, #fff) padding-box, var(--sai-gold) border-box; box-shadow: var(--sai-gold-shadow); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.boss-card:hover { transform: translateY(-3px); }
body[data-route="login"] .login-card { box-shadow: var(--sai-gold-shadow); border: 2px solid transparent; background: linear-gradient(#fff, #f5f7ff) padding-box, var(--sai-gold) border-box; }
body[data-route="login"] .login-card:hover { transform: translateY(-2px); }
.stop-card:hover { transform: translateY(-2px); box-shadow: var(--sai-shadow-m); border-color: #bfdbfe; }
.stop.done .stop-card { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 75%); }
.stop-name { font-size: 19px; font-weight: 900; letter-spacing: -.2px; line-height: 1.25; margin: 6px 0 2px; color: var(--sai-ink); }
.stop-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stop-go { display: inline-block; margin-top: 8px; font-weight: 800; font-size: 13px; color: var(--sai-brand); }
.stop.done .stop-go { color: var(--sai-ok); }
@media (min-width: 760px) {
  .road::before { left: 50%; transform: translateX(-50%); }
  .stop { grid-template-columns: 1fr 72px 1fr; }
  .stop.left .pin { grid-column: 2; grid-row: 1; }
  .stop.left .stop-card { grid-column: 1; grid-row: 1; text-align: right; }
  .stop.right .pin { grid-column: 2; grid-row: 1; }
  .stop.right .stop-card { grid-column: 3; grid-row: 1; }
}
.grid.cols-3 > * { animation: rise var(--sai-dur-2) var(--sai-ease); }
.grid.cols-3 > *:nth-child(2) { animation-delay: 40ms; }
.grid.cols-3 > *:nth-child(3) { animation-delay: 80ms; }
.grid.cols-3 > *:nth-child(4) { animation-delay: 120ms; }
.grid.cols-3 > *:nth-child(5) { animation-delay: 160ms; }
.grid.cols-3 > *:nth-child(6) { animation-delay: 200ms; }
