#jr-app {
  --jr-mint: #a7efe3;
  --jr-pink: #ff9dbf;
  --jr-border: #54445d;
  max-width: 850px;
  margin: 0 auto;
}
#jr-app [hidden] {
  display: none !important;
}
.jr-intro {
  font-size: 1.08rem;
  line-height: 1.55;
  color: #e7dfe9;
  max-width: 64ch;
}
.jr-selector {
  margin: 1.6rem 0 1rem;
  padding: 22px;
  border: 1px solid #68516b;
  border-radius: 20px;
  background: linear-gradient(145deg, #362039, #20232c);
}
.jr-selector fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.jr-selector legend {
  font-size: 1.25rem;
  font-weight: 730;
  padding: 0 0 1rem;
}
.jr-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 14px;
}
.jr-fields label {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
  color: #f7e9f6;
}
.jr-fields select {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem;
  background: #221e2a;
  color: white;
  border-radius: 9px;
  border: 1px solid var(--jr-border);
  font: inherit;
}
.jr-actions,
.jr-links,
.jr-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.jr-actions {
  margin: 16px 0 7px;
}
.jr-actions button,
.jr-links a {
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}
.jr-actions button {
  background: var(--jr-mint);
  color: #13241e;
}
.jr-actions .jr-secondary,
.jr-links a {
  background: #2c2532;
  color: #f7e9f6;
  border-color: var(--jr-border);
}
.jr-links {
  margin: 18px 0 24px;
}
.jr-links a[aria-current] {
  border-color: var(--jr-pink);
  color: var(--jr-pink);
}
.jr-card,
.jr-trophy {
  padding: 16px 20px;
  border: 1px solid var(--jr-border);
  border-radius: 16px;
  margin: 12px 0;
  background: #24202d;
}
.jr-card.jr-current {
  border-color: var(--jr-mint);
}
.jr-card h2 {
  margin: 0.25em 0 0.45em;
}
.jr-card a,
.jr-evidence a,
.jr-trophy a {
  color: var(--jr-mint);
  text-underline-offset: 3px;
}
.jr-card p,
.jr-trophy p,
.jr-note {
  line-height: 1.55;
  max-width: 70ch;
}
.jr-steps li,
.jr-missions li {
  padding: 0.4rem 0 0.8rem;
}
.jr-steps li p {
  margin: 0.3em 0;
}
.jr-missions li + li {
  border-top: 1px solid #423646;
}
.jr-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  margin-left: 0.8em;
  font-size: 0.85rem;
}
.jr-tools {
  justify-content: space-between;
}
.jr-tools input,
.jr-check input {
  accent-color: #5dd7bb;
  width: 18px;
  height: 18px;
}
.jr-evidence,
#jr-profile {
  color: #d1c1d3;
  font-size: 0.85rem;
  line-height: 1.55;
}
.jr-payout {
  border-left: 3px solid var(--jr-mint);
  padding-left: 12px;
}
.jr-trophy {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}
.jr-trophy details {
  flex: 1;
  min-width: 0;
}
#jr-app summary {
  cursor: pointer;
  min-height: 40px;
  align-content: center;
  line-height: 1.6;
}
.jr-medal {
  font-size: 0.76rem;
  font-weight: bold;
  margin-right: 0.7em;
  color: #e5b294;
}
.jr-medal.gold {
  color: #f4d777;
}
.jr-medal.silver {
  color: #d4dbeb;
}
.jr-medal.platinum {
  color: #a7efe3;
}
@media (max-width: 560px) {
  .jr-selector,
  .jr-card,
  .jr-trophy {
    padding: 14px;
  }
  .jr-trophy {
    display: block;
  }
  .jr-check {
    margin-left: 0;
    margin-right: 8px;
  }
  .jr-missions .jr-check {
    display: flex;
  }
}
.jr-fallback {
  padding: 0.8rem 1rem;
  background: #232432;
  border-radius: 10px;
}
.jr-resume {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: #302a38;
  border-radius: 12px;
  margin: 0.8rem 0;
}
.jr-resume label {
  display: grid;
  gap: 0.4rem;
}
.jr-resume select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  color: #f6eef8;
  background: #211d29;
  border: 1px solid #776283;
  border-radius: 8px;
  padding: 0 8px;
}
.jr-resume button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 7px 12px;
  background: #a7efe3;
  color: #12281f;
  font-weight: 650;
}
.jr-resume p {
  margin: 0;
}
