.michi-journey {
  --mj-time: 4.9s;
  --mj-start: 32%;
  --mj-middle: 43%;
  --mj-near: 61%;
  --mj-end: 77%;
  --mj-final: 78%;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: clamp(10px, 3vw, 42px);
  background: linear-gradient(135deg, #1266a4f5, #13b6aaf5);
  color: #173b59;
  font-family: 'DM Sans', system-ui, sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 10000;
  animation: mj-reveal .22s ease-out both;
}
.michi-journey[open] { display: flex; align-items: center; justify-content: center; }
.michi-journey::backdrop { background: #173b59bf; backdrop-filter: blur(9px); }
.michi-journey * { box-sizing: border-box; }
.michi-journey .mj-shell { width: min(1240px, 100%); min-width: 0; margin: auto; flex: none; border: 2px solid #ffffffc2; border-radius: 30px; background: #ffffff; overflow: hidden; box-shadow: 0 28px 100px #173b5960; }
.michi-journey .mj-heading { min-height: 122px; padding: 23px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 0; background: #ffffff; }
.michi-journey .mj-heading > div { min-width: 0; }
.michi-journey .mj-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: #147bc1; margin: 0 0 6px; line-height: 1.5; }
.michi-journey h2 { font-family: Fredoka, system-ui, sans-serif; font-weight: 600; font-size: clamp(25px, 3.1vw, 39px); line-height: 1.1; letter-spacing: -.8px; margin: 0 0 8px; color: #173b59; overflow-wrap: anywhere; }
.michi-journey .mj-heading p:last-child { font-size: 13px; margin: 0; line-height: 1.45; color: #1266a4; overflow-wrap: anywhere; }
.michi-journey .mj-skip { flex: none; min-height: 44px; font-family: inherit; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 20px; color: #173b59; background: #ffb020; border: 2px solid #e99213; border-radius: 14px; padding: 13px 16px; box-shadow: 0 3px 0 #e99213; cursor: pointer; transition: background .15s, transform .15s; }
.michi-journey .mj-skip:hover { background: #ffc94b; transform: translateY(-2px); filter: none; }
.michi-journey .mj-skip:focus-visible { outline: 4px solid #147bc1; outline-offset: 4px; }
.michi-journey .mj-skip span { font-size: 21px; line-height: 1; }
.michi-journey .mj-scene { isolation: isolate; position: relative; height: clamp(390px, 51vh, 580px); overflow: hidden; background: #60d6ed; border-top: 1px solid #ffffff; border-bottom: 1px solid #ffb020; }
.michi-journey .mj-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.michi-journey .mj-clouds { position: absolute; left: 0; top: 3%; width: 155%; height: 37%; animation: mj-cloud-drift var(--mj-time) linear both; }
.michi-journey .mj-village { position: absolute; left: 0; bottom: 17%; width: 230%; height: 65%; animation: mj-village-drift var(--mj-time) linear both; }
.michi-journey .mj-road { position: absolute; left: 0; bottom: 0; width: 100%; height: 28%; }
.michi-journey .mj-route { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 15px; width: max-content; max-width: calc(100% - 24px); border: 1px solid #ffffff; border-radius: 30px; background: #fffffff2; box-shadow: 0 4px 17px #1266a421; padding: 11px 18px; color: #173b59; font-size: 11px; font-weight: 800; text-align: center; }
.michi-journey .mj-route > span { min-width: 0; }
.michi-journey .mj-route b { flex: none; color: #13b6aa; letter-spacing: 2px; }
.michi-journey .mj-destination { position: absolute; bottom: 22%; right: -39%; width: 33%; min-width: 225px; max-width: 390px; animation: mj-arrive var(--mj-time) cubic-bezier(.28, .34, .3, 1) both; }
.michi-journey .mj-destination > svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 7px 0 #1266a415); }
.michi-journey .mj-destination > span { display: block; width: max-content; max-width: 100%; text-align: center; position: absolute; left: 50%; transform: translateX(-50%); bottom: 2%; font-size: 11px; font-weight: 800; background: #ffffff; color: #1266a4; border: 2px solid #ffb020; border-radius: 18px; padding: 7px 13px; box-shadow: 0 4px 14px #173b5912; }
.michi-journey .mj-walkers { position: absolute; left: 35%; bottom: 12.2%; width: 285px; height: 280px; transform: translateX(-50%); transform-origin: 60% 100%; animation: mj-walk-path var(--mj-time) ease-in-out both; }
.michi-journey .mj-trainer { position: absolute; left: 0; bottom: 0; width: 165px; height: 258px; animation: mj-person-bounce .4s ease-in-out infinite; }
.michi-journey .mj-trainer > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.michi-journey .mj-trainer-body { transform-origin: 80px 150px; animation: mj-person-sway .8s ease-in-out infinite; }
.michi-journey .mj-leg { transform-box: view-box; transform-origin: 80px 158px; animation: mj-leg-swing .8s ease-in-out infinite; }
.michi-journey .mj-leg-back { animation-delay: -.4s; }
.michi-journey .mj-arm { transform-box: view-box; transform-origin: 80px 111px; animation: mj-arm-swing .8s ease-in-out infinite; }
.michi-journey .mj-arm-back { animation-delay: -.4s; }
.michi-journey .mj-name { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 165px; font-size: 11px; font-weight: 800; line-height: 1.25; letter-spacing: .2px; background: #ffffff; color: #173b59; border-radius: 16px; padding: 6px 12px; box-shadow: 0 3px 0 #1266a420; text-align: center; overflow-wrap: anywhere; }
.michi-journey .mj-you { bottom: 96%; background: #ffb020; color: #173b59; letter-spacing: 1.5px; left: 50%; }
.michi-journey .mj-cat { position: absolute; left: 150px; bottom: -4px; width: 133px; height: 148px; }
.michi-journey .mj-cat-picture { position: absolute; inset: 0; z-index: 1; animation: mj-cat-hop .4s ease-in-out infinite; transform-origin: 50% 90%; filter: drop-shadow(0 5px 0 #ffffff4a); }
.michi-journey .mj-cat-picture > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.michi-journey .mj-cat .mj-name { bottom: 103%; color: #1266a4; border: 1px solid #13b6aa; }
.michi-journey .mj-cat-shadow { position: absolute; bottom: 0; left: 17%; width: 74%; height: 11px; border-radius: 50%; background: #173b5922; animation: mj-shadow .4s ease-in-out infinite; }
.michi-journey .mj-fallback-cat { font-size: 100px; line-height: 1.4; }
.michi-journey .mj-walk-spark { position: absolute; color: #ffb020; filter: drop-shadow(0 2px 1px #e9921350); animation: mj-float-spark 1.2s ease-in-out infinite; font-size: 24px; }
.michi-journey .mj-walk-spark-one { left: -15px; bottom: 140px; }
.michi-journey .mj-walk-spark-two { left: 285px; bottom: 115px; animation-delay: -.6s; color: #fa7353; }
.michi-journey .mj-foreground { position: absolute; left: 0; right: -90%; bottom: -19px; height: 70px; display: flex; justify-content: space-around; align-items: flex-end; pointer-events: none; animation: mj-foreground-drift var(--mj-time) linear both; }
.michi-journey .mj-foreground span { font-family: serif; font-size: 80px; line-height: 1; color: #fa7353; text-shadow: 0 5px 0 #149b75; }
.michi-journey .mj-foreground span:nth-child(even) { color: #ffb020; font-size: 66px; }
.michi-journey .mj-footer { margin: 0; padding: 17px 28px 19px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; font-size: 12px; color: #1266a4; background: #ffffff; }
.michi-journey .mj-status { font-weight: 800; color: #173b59; line-height: 1.45; }
.michi-journey .mj-tip { font-size: 11px; grid-column: 1/-1; color: #1266a4; }
.michi-journey .mj-progress { height: 8px; width: 130px; display: block; border-radius: 8px; background: #dbeeff; overflow: hidden; }
.michi-journey .mj-progress i { height: 100%; display: block; transform-origin: left; background: linear-gradient(90deg, #147bc1, #13b6aa, #ffb020); border-radius: 8px; animation: mj-progress var(--mj-time) linear both; }
.michi-journey.mj-homeward .mj-eyebrow { color: #d94a30; }
.michi-journey.mj-homeward .mj-destination { width: 30%; max-width: 355px; }
.michi-journey.mj-homeward .mj-route { color: #1266a4; background: #fffffff2; }
@keyframes mj-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes mj-cloud-drift { to { transform: translateX(-12%); } }
@keyframes mj-village-drift { to { transform: translateX(-39%); } }
@keyframes mj-foreground-drift { to { transform: translateX(-45%); } }
@keyframes mj-arrive { 0%, 15% { right: -39%; } 75%, 100% { right: 5%; } }
@keyframes mj-walk-path {
  0% { left: var(--mj-start); bottom: 12.2%; transform: translateX(-50%) scale(.98); opacity: 0; }
  7% { opacity: 1; }
  58% { left: var(--mj-middle); bottom: 12.2%; transform: translateX(-50%) scale(1); opacity: 1; }
  82% { left: var(--mj-near); bottom: 17%; transform: translateX(-50%) scale(.88); opacity: 1; }
  96% { left: var(--mj-end); bottom: 23%; transform: translateX(-50%) scale(.57); opacity: 1; }
  100% { left: var(--mj-final); bottom: 24%; transform: translateX(-50%) scale(.52); opacity: 0; }
}
@keyframes mj-person-bounce { 50% { transform: translateY(-4px); } }
@keyframes mj-person-sway { 25% { transform: rotate(1.5deg); } 75% { transform: rotate(-1.5deg); } }
@keyframes mj-leg-swing { 0%, 100% { transform: rotate(-13deg); } 50% { transform: rotate(14deg); } }
@keyframes mj-arm-swing { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-13deg); } }
@keyframes mj-cat-hop { 0%, 100% { transform: translateY(0) rotate(-3deg) scaleY(.96); } 50% { transform: translateY(-11px) rotate(3deg) scaleY(1.04); } }
@keyframes mj-shadow { 50% { transform: scaleX(.75); opacity: .65; } }
@keyframes mj-float-spark { 0%, 100% { transform: translateY(0) scale(.8); opacity: .35; } 50% { transform: translateY(-13px) scale(1.1); opacity: 1; } }
@keyframes mj-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.michi-journey.mj-reduced, .michi-journey.mj-reduced * { animation: none !important; transition: none !important; }
.michi-journey.mj-reduced .mj-destination { right: 5%; }
.michi-journey.mj-reduced .mj-walkers { left: var(--mj-middle); bottom: 12.2%; opacity: 1; transform: translateX(-50%) scale(.9); }
.michi-journey.mj-reduced .mj-progress i { transform: scaleX(1); }
.michi-journey.mj-reduced .mj-clouds { transform: translateX(-5%); }
.michi-journey.mj-reduced .mj-village { transform: translateX(-15%); }
@media (max-width: 700px) {
  .michi-journey { --mj-start: 43%; --mj-middle: 47%; --mj-near: 60%; --mj-end: 72%; --mj-final: 73%; padding: 10px; }
  .michi-journey .mj-shell { border-radius: 22px; }
  .michi-journey .mj-heading { padding: 18px; gap: 12px; align-items: flex-start; min-height: 135px; }
  .michi-journey .mj-heading p:last-child { font-size: 12px; }
  .michi-journey h2 { font-size: 28px; }
  .michi-journey .mj-eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .michi-journey .mj-skip { font-size: 11px; padding: 10px; gap: 7px; border-radius: 11px; }
  .michi-journey .mj-route { top: 13px; gap: 8px; font-size: 10px; padding: 9px 12px; }
  .michi-journey .mj-route b { width: 30px; overflow: hidden; font-size: 9px; letter-spacing: 0; white-space: nowrap; direction: rtl; }
  .michi-journey .mj-scene { height: clamp(320px, 48dvh, 460px); }
  .michi-journey .mj-walkers { width: 218px; height: 220px; }
  .michi-journey .mj-trainer { width: 126px; height: 197px; }
  .michi-journey .mj-cat { left: 113px; width: 103px; height: 115px; bottom: -3px; }
  .michi-journey .mj-name { max-width: 140px; font-size: 10px; padding: 6px 9px; }
  .michi-journey .mj-destination { min-width: 176px; width: 40%; bottom: 23%; }
  .michi-journey.mj-homeward .mj-destination { width: 38%; min-width: 165px; }
  .michi-journey .mj-destination > span { font-size: 9px; padding: 5px 7px; }
  .michi-journey .mj-walk-spark-one { left: 0; bottom: 120px; }
  .michi-journey .mj-walk-spark-two { left: 217px; bottom: 90px; font-size: 19px; }
  .michi-journey .mj-footer { padding: 14px 18px; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px 12px; }
  .michi-journey .mj-status { font-size: 11px; }
  .michi-journey .mj-progress { width: 72px; }
  .michi-journey .mj-tip { font-size: 10px; }
  .michi-journey .mj-foreground { bottom: -26px; }
}
@media (max-width: 390px) {
  .michi-journey { --mj-start: 44%; --mj-middle: 47%; --mj-near: 60%; --mj-end: 70%; --mj-final: 71%; padding: 8px; }
  .michi-journey .mj-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 12px; gap: 10px; }
  .michi-journey h2 { font-size: 24px; }
  .michi-journey .mj-skip { gap: 4px; padding: 9px 7px; }
  .michi-journey .mj-route { font-size: 9px; gap: 6px; padding: 9px; max-width: calc(100% - 18px); }
  .michi-journey .mj-route b { width: 19px; }
  .michi-journey .mj-walkers { width: 196px; height: 207px; }
  .michi-journey .mj-trainer { width: 117px; height: 183px; }
  .michi-journey .mj-cat { left: 105px; width: 90px; height: 103px; }
  .michi-journey .mj-name { max-width: 126px; }
  .michi-journey .mj-destination { min-width: 155px; }
  .michi-journey.mj-homeward .mj-destination { min-width: 148px; }
  .michi-journey .mj-walk-spark-two { left: 195px; bottom: 85px; }
  .michi-journey .mj-footer { padding: 13px 12px; }
}
@media (max-height: 650px) and (min-width: 701px) {
  .michi-journey { padding: 12px; }
  .michi-journey .mj-heading { padding: 14px 22px; min-height: 96px; }
  .michi-journey .mj-scene { height: clamp(280px, 49dvh, 330px); }
  .michi-journey .mj-route { top: 8px; }
  .michi-journey .mj-walkers { height: 210px; width: 226px; }
  .michi-journey .mj-trainer { width: 122px; height: 190px; }
  .michi-journey .mj-cat { left: 116px; width: 104px; height: 118px; }
  .michi-journey .mj-footer { padding: 12px 22px; }
}
@media (max-height: 420px) and (min-width: 600px) {
  .michi-journey { padding: 8px; }
  .michi-journey .mj-shell { border-radius: 18px; }
  .michi-journey .mj-heading { padding: 10px 16px; min-height: 0; align-items: center; }
  .michi-journey h2 { font-size: 24px; margin-bottom: 4px; }
  .michi-journey .mj-eyebrow { font-size: 8px; margin-bottom: 3px; }
  .michi-journey .mj-heading p:last-child { font-size: 11px; }
  .michi-journey .mj-scene { height: 220px; }
  .michi-journey .mj-route { top: 8px; font-size: 9px; padding: 6px 12px; gap: 10px; }
  .michi-journey .mj-walkers { width: 180px; height: 160px; }
  .michi-journey .mj-trainer { width: 92px; height: 144px; }
  .michi-journey .mj-cat { left: 90px; width: 84px; height: 95px; }
  .michi-journey .mj-name { font-size: 9px; max-width: 130px; padding: 4px 8px; }
  .michi-journey .mj-destination { min-width: 180px; width: 28%; }
  .michi-journey.mj-homeward .mj-destination { min-width: 160px; width: 26%; }
  .michi-journey .mj-destination > span { font-size: 9px; padding: 4px 8px; }
  .michi-journey .mj-walk-spark-one { bottom: 90px; left: 0; font-size: 18px; }
  .michi-journey .mj-walk-spark-two { bottom: 75px; left: 177px; font-size: 17px; }
  .michi-journey .mj-footer { padding: 8px 16px; gap: 5px 16px; }
  .michi-journey .mj-status { font-size: 10px; }
  .michi-journey .mj-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .michi-journey, .michi-journey * { animation: none !important; transition: none !important; }
  .michi-journey .mj-destination { right: 5%; }
  .michi-journey .mj-walkers { left: var(--mj-middle); bottom: 12.2%; opacity: 1; transform: translateX(-50%) scale(.9); }
  .michi-journey .mj-progress i { transform: scaleX(1); }
}
