/* Account medals also render in the profile without loading the Sinapsis layout. */
.snp-profile-medals {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #2b4e64;
  border-radius: 22px;
  background: #0e2232;
  color: #eef7fb;
  scroll-margin-top: 110px;
}
.snp-medals-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.snp-medals-heading h2 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.2;
  margin: 8px 0;
}
.snp-medals-heading p {
  margin: 0;
  color: #b2c9d5;
}
.snp-medals-heading > div > span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #80cfc9;
}
.snp-medals-heading a {
  color: #7ae5d4;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.snp-medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 14px;
  text-align: left;
}
.snp-medal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid #365065;
  border-radius: 18px;
  background: #122b3d;
  min-width: 0;
}
.snp-medal svg {
  width: 68px;
  flex: 0 0 68px;
  height: 78px;
}
.snp-medal h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 7px 0;
}
.snp-medal p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: #b7cbd7;
}
.snp-medal small {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  color: #8adccd;
}
.snp-medal-state {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8cecd7;
}
.snp-medal.is-locked {
  background: #102333;
  border-style: dashed;
}
.snp-medal.is-locked svg {
  filter: grayscale(1);
  opacity: 0.55;
}
.snp-medal.is-locked .snp-medal-state {
  color: #afc0ce;
}
.snp-medals-dialog {
  width: min(1100px, calc(100vw - 32px)) !important;
  max-width: 1100px !important;
}
.snp-medals-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid #31576a;
  border-radius: 12px;
  background: #0e2938;
  color: #a0eadd;
  font-size: 14px;
}
.snp-medals-button svg {
  width: 24px;
  height: 28px;
}
.snp-success-scene {
  position: relative;
  flex: 0 0 132px;
  width: 132px;
  height: 124px;
  pointer-events: none;
}
.snp-success-scene svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.snp-success-mascot {
  transform-origin: 90px 132px;
  animation: snp-success-jump 1.25s ease-out both;
}
.snp-success-arm {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: snp-success-wave 0.32s ease-in-out 4 alternate;
}
.snp-success-arm.right {
  transform-origin: 0 70%;
  animation-delay: 0.1s;
}
.snp-success-eyes {
  transform-origin: 90px 74px;
  animation: snp-success-blink 0.2s 0.6s 2 alternate;
}
.snp-success-rays {
  transform-origin: 90px 80px;
  animation: snp-success-rays 1.5s ease-out both;
}
.snp-success-check {
  transform-origin: 140px 119px;
  animation: snp-check-pop 0.6s 0.35s both;
}
.snp-success-check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: snp-check-draw 0.4s 0.7s forwards;
}
.snp-success-scene i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: #6ae6d1;
  animation: snp-success-spark 1.1s var(--delay) ease-out both;
}
.snp-success-scene i:nth-of-type(2n) {
  background: #ffcf77;
}
.snp-success-scene i:nth-of-type(3n) {
  background: #bba0ed;
}
.snp-combo-celebration {
  position: fixed;
  z-index: 1500;
  right: 28px;
  top: 160px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #e1b767;
  border-radius: 22px;
  background: linear-gradient(120deg, #19344a, #253343);
  box-shadow: 0 20px 60px #0008;
  color: #f7e6be;
  pointer-events: none;
  animation: snp-combo-enter 0.5s cubic-bezier(0.15, 1.5, 0.45, 1) both;
}
.snp-combo-celebration > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #efc46e;
  color: #493927;
  font-size: 42px;
  animation: snp-combo-orbit 1s ease-in-out 3;
}
.snp-combo-celebration strong {
  font-size: 23px;
  line-height: 1.25;
}
.snp-combo-celebration p {
  font-size: 15px;
  margin: 5px 0 0;
  color: #d3dbe3;
}
.snp-combo-counter {
  padding: 12px 16px;
  border: 1px solid #345069;
  border-radius: 14px;
  background: #12293b;
  color: #a4e7d8;
}
.snp-combo-counter b {
  font-size: 22px;
  color: #6ee5ce;
}
@keyframes snp-success-jump {
  0% {
    transform: translateY(12px) scale(0.85);
  }
  30% {
    transform: translateY(-12px) rotate(-5deg);
  }
  52% {
    transform: translateY(2px) rotate(4deg);
  }
  73% {
    transform: translateY(-4px);
  }
  100% {
    transform: none;
  }
}
@keyframes snp-success-wave {
  to {
    transform: rotate(20deg);
  }
}
@keyframes snp-success-blink {
  to {
    transform: scaleY(0.15);
  }
}
@keyframes snp-success-rays {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  40% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
}
@keyframes snp-check-pop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes snp-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes snp-success-spark {
  0% {
    opacity: 1;
    transform: rotate(var(--angle)) translateY(-16px) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(-88px) scale(1);
  }
}
@keyframes snp-combo-enter {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes snp-combo-orbit {
  50% {
    transform: rotate(-12deg) scale(1.12);
  }
}
@media (max-width: 700px) {
  .snp-success-scene {
    flex-basis: 84px;
    width: 84px;
    height: 88px;
  }
  .snp-combo-celebration {
    right: 16px;
    left: 16px;
    top: 130px;
    padding: 16px;
  }
  .snp-combo-celebration strong {
    font-size: 19px;
  }
  .snp-profile-medals {
    padding: 18px;
  }
  .snp-medals-button {
    font-size: 12px;
    padding: 6px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .snp-success-scene *,
  .snp-combo-celebration,
  .snp-combo-celebration * {
    animation: none !important;
  }
  .snp-success-check path {
    stroke-dashoffset: 0;
  }
  .snp-success-scene i {
    display: none;
  }
}
