html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.jl {
  --line: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.jl__serp {
  box-sizing: border-box;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.14);
}

.jl__url {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jl__glass {
  display: inline-flex;
  flex: none;
  color: rgba(255, 247, 230, 0.5);
}

.jl__nav {
  min-width: 0;
}

.jl__trail {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jl__li {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.jl__li[hidden] {
  display: none;
}

.jl__sep {
  display: inline-flex;
  flex: none;
  color: rgba(255, 247, 230, 0.34);
}

.jl__crumb {
  padding: 0 4px;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 247, 230, 0.72);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.jl__crumb:hover {
  background: rgba(255, 247, 230, 0.16);
  color: #fff7e6;
}

.jl__crumb:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 1px;
}

.jl__title {
  margin: 4px 0 0;
  color: #6ec8ff;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.jl__panel {
  box-sizing: border-box;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.12);
}

.jl__head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  color: rgba(255, 247, 230, 0.5);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.jl__codewrap {
  position: relative;
}

.jl__code {
  margin: 0;
  color: rgba(255, 247, 230, 0.86);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 16px;
  white-space: pre;
}

.jl__ln {
  display: block;
  height: var(--line);
}

.jl__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--line);
  border-radius: 4px;
  background: rgba(255, 210, 63, 0.3);
  box-shadow: inset 2px 0 0 #ffd23f;
  opacity: 0;
  pointer-events: none;
}

.jl__btn {
  align-self: flex-start;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #ffd23f;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
}

.jl__btn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.jl.is-demo .jl__bar {
  opacity: 1;
  animation-name: jl-scan;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes jl-scan {
  0%, 6% {
    transform: translateY(0);
  }
  22%, 28% {
    transform: translateY(calc(var(--line) * 1));
  }
  44%, 50% {
    transform: translateY(calc(var(--line) * 2));
  }
  66%, 72% {
    transform: translateY(calc(var(--line) * 3));
  }
  88%, 100% {
    transform: translateY(0);
  }
}
.jl.is-demo .jl__crumb {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.jl.is-demo .jl__li:nth-child(1) .jl__crumb {
  animation-name: jl-hit-1;
}

.jl.is-demo .jl__li:nth-child(2) .jl__crumb {
  animation-name: jl-hit-2;
}

.jl.is-demo .jl__li:nth-child(3) .jl__crumb {
  animation-name: jl-hit-3;
}

@keyframes jl-hit-1 {
  0% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  22% {
    background: #ffd23f;
    color: #17141a;
  }
  44% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  100% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
}
@keyframes jl-hit-2 {
  0% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  44% {
    background: #ffd23f;
    color: #17141a;
  }
  66% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  100% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
}
@keyframes jl-hit-3 {
  0% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  66% {
    background: #ffd23f;
    color: #17141a;
  }
  88% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  100% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
}
@media (max-width: 340px) {
  .jl {
    --line: 13px;
    gap: 4px;
  }
  .jl__serp {
    padding: 4px;
    border-radius: 8px;
  }
  .jl__crumb {
    font-size: 10px;
    line-height: 15px;
  }
  .jl__sep svg {
    width: 10px;
    height: 10px;
  }
  .jl__glass svg {
    width: 12px;
    height: 12px;
  }
  .jl__title {
    margin: 0;
    font-size: 12px;
    line-height: 17px;
  }
  .jl__panel {
    padding: 4px;
  }
  .jl__head {
    margin: 0;
    font-size: 9px;
    line-height: 12px;
  }
  .jl__head svg {
    width: 11px;
    height: 11px;
  }
  .jl__code {
    font-size: 9px;
    line-height: 13px;
  }
  .jl__btn {
    padding: 0 8px;
    font-size: 11px;
    line-height: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jl.is-demo .jl__bar,
  .jl.is-demo .jl__crumb {
    animation: none !important;
  }
}
