.html-tag-jump-page {
  --jump-accent: #166534;
  --jump-accent-strong: #14532d;
  --jump-error: #b91c1c;
  --jump-bg-a: rgba(22, 101, 52, 0.13);
  --jump-bg-b: rgba(8, 47, 73, 0.09);
}

.html-tag-jump-page .html-tag-jump {
  display: grid;
  gap: 18px;
  border-color: rgba(22, 101, 52, 0.26);
  background:
    radial-gradient(circle at 10% 0%, var(--jump-bg-a), transparent 52%),
    radial-gradient(circle at 92% 4%, var(--jump-bg-b), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(240, 253, 244, 0.88));
}

.html-tag-jump-page .jump-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.html-tag-jump-page .jump-eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(15, 23, 42, 0.6);
}

.html-tag-jump-page .jump-directions {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, 0.74);
}

.html-tag-jump-page .jump-directions code {
  background: rgba(15, 23, 42, 0.09);
  border-radius: 5px;
  padding: 2px 5px;
}

.html-tag-jump-page .jump-meta {
  border: 1px solid rgba(22, 101, 52, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  min-width: 168px;
}

.html-tag-jump-page .jump-meta p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.8);
}

.html-tag-jump-page .jump-meta p + p {
  margin-top: 4px;
}

.html-tag-jump-page .frog-track-wrap {
  position: relative;
  padding: 22px 4px 10px;
}

.html-tag-jump-page .frog-track {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 6px;
  align-items: center;
}

.html-tag-jump-page .lily-pad {
  width: 100%;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(148, 163, 184, 0.28);
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.html-tag-jump-page .lily-pad.cleared {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.8), rgba(16, 185, 129, 0.85));
  border-color: rgba(22, 101, 52, 0.5);
}

.html-tag-jump-page .lily-pad.active {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.html-tag-jump-page .lily-pad:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.75);
  outline-offset: 1px;
}

.html-tag-jump-page .frog {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.6rem;
  transform: translate(-50%, 0);
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease;
}

.html-tag-jump-page .frog.jumping {
  animation: frog-jump 0.45s ease;
}

@keyframes frog-jump {
  0% {
    transform: translate(-50%, 0);
  }
  45% {
    transform: translate(-50%, -12px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

.html-tag-jump-page .level-card,
.html-tag-jump-page .expected-card,
.html-tag-jump-page .finish-card {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.html-tag-jump-page .level-title {
  margin: 0;
  font-size: 1.05rem;
}

.html-tag-jump-page .level-instructions {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, 0.76);
}

.html-tag-jump-page .expected-card h3 {
  margin: 0;
  font-size: 1rem;
}

.html-tag-jump-page .expected-note {
  margin: 8px 0 10px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.9rem;
}

.html-tag-jump-page .expected-frame {
  width: 100%;
  min-height: 152px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  background: #ffffff;
}

.html-tag-jump-page .tag-code {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #0f172a;
  color: #f8fafc;
  padding: 12px;
  overflow-x: auto;
}

.html-tag-jump-page .tag-code.is-multiline {
  padding-top: 18px;
  padding-bottom: 18px;
}

.html-tag-jump-page .code-line {
  font: 0.93rem/1.65 "Courier New", monospace;
  white-space: pre;
}

.html-tag-jump-page .tag-input {
  width: 94px;
  max-width: 40vw;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  padding: 2px 6px;
  background: #f8fafc;
  color: #0f172a;
  font: 0.86rem/1.4 "Courier New", monospace;
  text-align: center;
}

.html-tag-jump-page .tag-input:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.8);
  outline-offset: 1px;
}

.html-tag-jump-page .tag-input.right {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(220, 252, 231, 0.95);
}

.html-tag-jump-page .tag-input-inner {
  width: 94px;
}

.html-tag-jump-page .tag-input-full {
  width: 132px;
}

.html-tag-jump-page .tag-input.wrong {
  border-color: rgba(239, 68, 68, 0.95);
  background: rgba(254, 226, 226, 0.95);
}

.html-tag-jump-page .feedback {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
}

.html-tag-jump-page .feedback[data-tone="success"] {
  color: var(--jump-accent-strong);
}

.html-tag-jump-page .feedback[data-tone="error"] {
  color: var(--jump-error);
}

.html-tag-jump-page .controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.html-tag-jump-page .jump-button {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: linear-gradient(180deg, #16a34a, #15803d);
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.html-tag-jump-page .jump-button.ghost {
  background: #fff;
  color: #0f172a;
}

.html-tag-jump-page .jump-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.html-tag-jump-page .hidden {
  display: none;
}

@media (max-width: 680px) {
  .html-tag-jump-page .frog-track {
    gap: 4px;
  }

  .html-tag-jump-page .lily-pad {
    height: 12px;
  }

  .html-tag-jump-page .frog {
    font-size: 1.3rem;
    top: 4px;
  }
}

.html-tag-jump-page .student-name-field {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.82);
}

.html-tag-jump-page .student-name-field input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
}

.html-tag-jump-page .student-name-field input:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.75);
  outline-offset: 1px;
}

.html-tag-jump-page .finish-copy {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, 0.74);
}

.html-tag-jump-page .cert-meta {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.html-tag-jump-page .cert-meta div {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.9);
}

.html-tag-jump-page .cert-meta dt {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.58);
}

.html-tag-jump-page .cert-meta dd {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
}

.html-tag-jump-page .cert-status {
  min-height: 1.1em;
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.76);
  font-size: 0.9rem;
}
