.gallery-scroll {
  position: relative;
}

.gallery-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--scale-black);
}

.gallery-images {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

.gallery-image.is-active {
  opacity: 0.75;
  transform: scale(1);
}

.gallery-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.gallery-bg-video__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--scale-black) 70%);
}

.gallery-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  text-align: center;
}

.gallery-labels {
  position: absolute;
  left: 0;
  top: clamp(5.75rem, 16vh, 9.5rem);
  width: min(720px, 100%);
  min-height: 1px;
  pointer-events: none;
}

.gallery-label {
  --accent: rgba(168, 146, 124, 0.85);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  max-width: min(720px, 100%);
  white-space: normal;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.gallery-label.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.gallery-label::before {
  content: '';
  width: 10px;
  height: 34px;
  border-radius: 9999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #ffffff 10%), rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.gallery-label::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: conic-gradient(
    from 120deg,
    color-mix(in srgb, var(--accent) 70%, rgba(255, 255, 255, 0.2) 30%),
    rgba(121, 100, 140, 0.6),
    rgba(25, 58, 41, 0.55),
    color-mix(in srgb, var(--accent) 70%, rgba(255, 255, 255, 0.2) 30%)
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.18;
  pointer-events: none;
}

.gallery-scroll-hint {
  font-size: 0.75rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(10, 10, 10, 0.4); /* Darker background for better contrast */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25); /* More visible border */
  border-radius: 999px;
  font-weight: 600; /* Bolder text */
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  display: inline-flex; /* Ensure it stays a pill shape */
  align-items: center;
  justify-content: center;
}

.gallery-cta {
  pointer-events: auto;
}

.gallery-actions {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  pointer-events: auto;
}

@media (min-width: 720px) {
  .gallery-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-action-card {
  text-align: left;
  width: 100%;
  border-radius: 18px;
  padding: 1.05rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.95rem;
  align-items: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.gallery-action-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from 140deg,
    rgba(168, 146, 124, 0.78),
    rgba(121, 100, 140, 0.78),
    rgba(25, 58, 41, 0.70),
    rgba(168, 146, 124, 0.78)
  );
  opacity: 0.16;
  filter: blur(0.2px);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  border-radius: 18px;
  pointer-events: none;
}

.gallery-action-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(168, 146, 124, 0.35), rgba(121, 100, 140, 0) 62%);
  opacity: 0.20;
  transform: rotate(16deg);
  pointer-events: none;
  animation: galleryScan 5.2s ease-in-out infinite;
}

.gallery-action-card:hover {
  transform: translate3d(0, -2px, 0);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(168, 146, 124, 0.35);
}

.gallery-action-card:active {
  transform: translate3d(0, -1px, 0) scale(0.995);
}

.gallery-action-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.gallery-action-card__icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(
    from 140deg,
    rgba(168, 146, 124, 0.78),
    rgba(121, 100, 140, 0.78),
    rgba(25, 58, 41, 0.70),
    rgba(168, 146, 124, 0.78)
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.22;
  animation: gallerySpin 10s linear infinite;
  pointer-events: none;
}

.gallery-action-card__icon svg {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  animation: galleryIconFloat 3.8s ease-in-out infinite;
}

.gallery-action-card__icon path,
.gallery-action-card__icon circle {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
  animation: galleryStroke 5.6s ease-in-out infinite;
}

.gallery-action-card:hover .gallery-action-card__icon path,
.gallery-action-card:hover .gallery-action-card__icon circle {
  animation-duration: 3.6s;
}

.gallery-action-card__icon .ga-icon {
  display: block;
}

.ga-icon--net .ga-net__ring {
  transform-origin: 24px 24px;
  animation: gaNetSpin 7s linear infinite;
}

.ga-icon--net .ga-net__mesh {
  transform-origin: 24px 24px;
  animation: gaNetBreath 3.8s ease-in-out infinite;
}

.ga-icon--net .ga-node {
  transform-origin: center;
  animation: gaNodePulse 1.9s ease-in-out infinite;
}

.ga-icon--net .ga-net__nodes circle:nth-child(2) {
  animation-delay: 0.15s;
}
.ga-icon--net .ga-net__nodes circle:nth-child(3) {
  animation-delay: 0.3s;
}
.ga-icon--net .ga-net__nodes circle:nth-child(4) {
  animation-delay: 0.45s;
}
.ga-icon--net .ga-net__nodes circle:nth-child(5) {
  animation-delay: 0.6s;
}
.ga-icon--net .ga-net__nodes circle:nth-child(6) {
  animation-delay: 0.75s;
}

.ga-icon--net .ga-core-glow {
  animation: gaCoreGlow 2.6s ease-in-out infinite;
}

.ga-icon--net .ga-core-pulse {
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  animation: gaCorePulse 1.8s ease-in-out infinite;
}

.gallery-action-card:hover .ga-icon--net .ga-net__ring {
  animation-duration: 3.4s;
}

.gallery-action-card:hover .ga-icon--net .ga-net__mesh {
  animation-duration: 2.6s;
}

.ga-icon--win .ga-win__x path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: gaDrawX 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, gaXBreath 2.8s ease-in-out infinite 1.1s;
}

.ga-icon--win .ga-win__scan {
  opacity: 0;
  animation: gaScan 2.4s ease-in-out infinite;
}

.gallery-action-card:hover .ga-icon--win .ga-win__scan {
  animation-duration: 1.6s;
}

.ga-icon--lock .ga-lock__shackle {
  transform-origin: 24px 19px;
  animation: gaShackle 2.9s ease-in-out infinite;
}

.ga-icon--lock .ga-lock__agent {
  transform-origin: 24px 30px;
  animation: gaAgent 3.4s ease-in-out infinite;
}

.ga-icon--lock .ga-lock__glow {
  opacity: 0.22;
  animation: gaGlow 2.7s ease-in-out infinite;
}

.gallery-action-card:hover .ga-icon--lock .ga-lock__shackle {
  animation-duration: 2.1s;
}

.gallery-action-card:hover .ga-icon--lock .ga-lock__agent {
  animation-duration: 2.6s;
}

.gallery-action-card__meta {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.gallery-action-card__kicker {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-action-card__title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.2;
}

.gallery-action-card__dots {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.gallery-action-card__dots span {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0.6;
  animation: galleryDot 1.6s ease-in-out infinite;
}

.gallery-action-card__dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.gallery-action-card__dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.upload-modal.is-open {
  display: block;
}

.upload-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: uploadFade 0.22s ease forwards;
}

.upload-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.98);
  width: min(560px, calc(100% - 2rem));
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: uploadPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  color: rgba(255, 255, 255, 0.95);
}

.upload-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.upload-modal__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.upload-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, background 0.18s ease;
}

.upload-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.upload-modal__close:active {
  transform: scale(0.98);
}

.upload-modal__form {
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.upload-modal__alert {
  display: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.35;
}

.upload-modal__alert.is-visible {
  display: block;
}

.upload-field {
  display: grid;
  gap: 0.35rem;
}

.upload-field__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.upload-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.upload-input:focus {
  border-color: rgba(168, 146, 124, 0.55);
  box-shadow: 0 0 0 4px rgba(168, 146, 124, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.upload-textarea {
  resize: vertical;
  min-height: 96px;
}

.upload-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.upload-btn {
  width: 100%;
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  font-weight: 600;
}

.coinbase-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: none;
}

.coinbase-modal.is-open {
  display: block;
}

.coinbase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: uploadFade 0.22s ease forwards;
}

.coinbase-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.98);
  width: min(520px, calc(100% - 2rem));
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: uploadPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  color: rgba(255, 255, 255, 0.95);
}

.coinbase-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.coinbase-modal__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.coinbase-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, background 0.18s ease;
}

.coinbase-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.coinbase-modal__close:active {
  transform: scale(0.98);
}

.coinbase-modal__body {
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.coinbase-modal__text {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.coinbase-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 515;
  display: none;
}

.upgrade-modal.is-open {
  display: block;
}

.upgrade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: uploadFade 0.22s ease forwards;
}

.upgrade-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.98);
  width: min(560px, calc(100% - 2rem));
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
  opacity: 0;
  animation: uploadPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.upgrade-modal__banner {
  width: 100%;
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.upgrade-modal__banner-img {
  display: block;
  width: 100%;
  max-height: 88px;
  min-height: 48px;
  object-fit: contain;
  object-position: center;
}

.upgrade-modal__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.upgrade-modal__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.upgrade-modal__coin {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.upgrade-modal__brandtext {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.upgrade-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, background 0.18s ease;
}

.upgrade-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.upgrade-modal__close:active {
  transform: scale(0.98);
}

.upgrade-modal__body {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.9rem;
}

.upgrade-modal__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.upgrade-modal__amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.upgrade-amount {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.upgrade-amount:hover {
  transform: translate3d(0, -1px, 0);
  border-color: rgba(168, 146, 124, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.upgrade-amount.is-selected {
  border-color: rgba(168, 146, 124, 0.55);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(168, 146, 124, 0.14), 0 18px 46px rgba(0, 0, 0, 0.55);
}

.upgrade-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.training-modal {
  position: fixed;
  inset: 0;
  z-index: 525;
  display: none;
}

.training-modal.is-open {
  display: block;
}

.training-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  z-index: 2000;
  animation: uploadFade 0.22s ease forwards;
}

.training-modal__panel {
  position: fixed;
  left: 50%;
  top: 55%; /* Shifted down from 50% to move away from top menu */
  transform: translate3d(-50%, -50%, 0) scale(0.9); /* Zoomed out slightly from 0.98 to 0.9 */
  width: min(520px, calc(100% - 3rem)); /* Narrowed slightly for better fit */
  max-height: 85vh; /* Reduced max height to ensure it fits better */
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  opacity: 0;
  z-index: 2001;
  animation: uploadPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  color: rgba(255, 255, 255, 0.95);
  overflow-y: auto;
  scrollbar-width: none;
}

.training-modal__panel::-webkit-scrollbar {
  display: none;
}

.training-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.85rem; /* Increased padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.training-modal__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.training-modal__close {
  width: 36px; /* Slightly smaller */
  height: 36px;
  border-radius: 12px;
  display: grid; 
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-right: 0.25rem; /* Move it inward slightly */
}

.training-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.training-modal__close:active {
  transform: scale(0.98);
}

.training-modal__body {
  padding: 1.1rem 1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.training-hero {
  height: auto;
  min-height: 250px;
  max-height: 500px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(168, 146, 124, 0.08), rgba(0, 0, 0, 0) 70%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.training-hero__gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

/* Reward Highlight in Training Modal */
.training-reward-highlight {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0 4px;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
  animation: rewardPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes rewardPop {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.training-modal__status {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  font-size: 0.95rem;
  text-align: center;
}

.training-modal__bar {
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.training-modal__barfill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(168, 146, 124, 0.95), rgba(121, 100, 140, 0.9), rgba(25, 58, 41, 0.9));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: width 0.9s ease;
}

.training-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.training-modal__timer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.training-modal__tag {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.training-modal__actions {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.training-modal__actions [data-training-done] {
  grid-column: 1 / -1;
}

.training-modal__actions [hidden] {
  display: none !important;
}

.training-modal__actions .upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes trainingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes trainingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes trainingNode {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(0, -1.2px, 0) scale(1.25);
    opacity: 0.7;
  }
}

@keyframes galleryDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(0, -1px, 0);
  }
}

@keyframes galleryIconFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -1.5px, 0);
  }
}

@keyframes gaNetSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gaNetBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes gaNodePulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
  }
}

@keyframes gaCoreGlow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes gaCorePulse {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.75;
  }
  50% {
    stroke-dashoffset: 18;
    opacity: 1;
  }
}

@keyframes gaDrawX {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gaXBreath {
  0%,
  100% {
    opacity: 0.75;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, -0.6px, 0);
  }
}

@keyframes gaScan {
  0% {
    opacity: 0;
    transform: translate3d(0, -7px, 0);
  }
  20% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.1;
    transform: translate3d(0, 7px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 7px, 0);
  }
}

@keyframes gaShackle {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -1.2px, 0);
  }
}

@keyframes gaAgent {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(0, -0.8px, 0);
    opacity: 1;
  }
}

@keyframes gaGlow {
  0%,
  100% {
    opacity: 0.14;
  }
  50% {
    opacity: 0.32;
  }
}

@keyframes galleryStroke {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.92;
  }
  50% {
    stroke-dashoffset: 34;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.92;
  }
}

@keyframes galleryScan {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(16deg);
    opacity: 0.16;
  }
  50% {
    transform: translate3d(2%, 2%, 0) rotate(16deg);
    opacity: 0.26;
  }
  100% {
    transform: translate3d(-2%, -2%, 0) rotate(16deg);
    opacity: 0.16;
  }
}

@keyframes gallerySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes uploadFade {
  to {
    opacity: 1;
  }
}

@keyframes uploadPop {
  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-action-card::after,
  .gallery-action-card__icon::before,
  .gallery-action-card__icon svg:not(.ga-icon-v3),
  .gallery-action-card__dots span,
  .training-hero::after,
  .training-hero__core,
  .training-hero__ring,
  .training-hero__nodes span {
    animation: none;
  }
}
